Predefined Protocol Function Instructions; Executing The Predefined Protocol (Sp.ecprtcl) - Mitsubishi Electric Q03UDVCPU User Manual

Qnucpu series (communication via built-in ethernet port)
Hide thumbs Also See for Q03UDVCPU:
Table of Contents
6.4

Predefined Protocol Function Instructions

The predefined protocol function instructions are provided for the CPU module to use the predefined protocol function.
This section describes the predefined protocol function instructions.
Instruction
SP.SOCOPEN
SP.SOCCLOSE
SP.SOCCINF
SP.SOCCSET
SP.ECPRTCL
If the instruction has a completion device, do not change any data (such as control data and request data) specified for the
instruction until the execution is completed.
6.4.1

Executing the predefined protocol (SP.ECPRTCL)

This instruction sends and receives packets set by the predefined protocol support function of GX Works2.
Usage of the SP.ECPRTCL instruction is the same as that of the GP.ECPRTCL instruction for the Ethernet interface
module, except for some differences. For the GP.ECPRTCL instruction, refer to the following.
Q Corresponding Ethernet Interface Module User's Manual (Basic)
The following are the differences.
Item
Setting data Un
Setting data n1
Protocol execution status
Pairing open
Cancellation of protocol execution
CHAPTER 6 DATA COMMUNICATIONS USING THE PREDEFINED PROTOCOL
Description
Establishes a connection with the external device.
If an Active open is performed by the CPU module, the
SP.SOCOPEN instruction is used to establish a connection with
the external device.
Closes a connection with the external device.
Reads out connection information.
Changes the target of the connection for UDP/IP
communications.
Executes the configured predefined protocol.
U0 (dummy) needs to be specified.
Since this is a dummy, no change is required when replacing from the GP.ECPRTCL
instruction of the Ethernet interface module.
The connection No. set in the "Open Setting" of the "Built-in Ethernet Port Setting" tab
need to be specified.
The protocol execution status can be checked by "Start Device to Store Predefined
Protocol" in the "Open Setting" of the "Built-in Ethernet Port Setting" tab.
The pairing open setting is not available in the CPU module. The CPU module sends
and receives data using one connection.
Protocol execution can be cancelled by "Start Device to Store Predefined Protocol"
(offset+18) set in the "Open Setting" of the "Built-in Ethernet Port Setting" tab.
(
Page 81, Section 6.2 (1) )
Page 88, Section 7.1
Page 106, Section
7.4.1
Page 110, Section
7.4.2
Page 124, Section
7.4.6
Page 127, Section
7.4.7
Page 83, Section 6.4.1
Differences
Reference
6
83
Table of Contents
loading

Table of Contents