83
CHAPTER 6 DATA COMMUNICATIONS USING THE PREDEFINED PROTOCOL
6
6.4 Pr
edefined Protocol Function Instruction
s
6.4.1 Executin
g the pre
define
d protocol (SP.ECPRT
C
L)
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.
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.
Instruction
Description
Reference
SP.SOCOPEN
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.
Page 88, Section 7.1
Page 106, Section
7.4.1
SP.SOCCLOSE
Closes a connection with the external device.
SP.SOCCINF
Reads out connection information.
SP.SOCCSET
Changes the target of the connection for UDP/IP
communications.
SP.ECPRTCL
Executes the configured predefined protocol.
Item
Differences
Setting data Un
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.
Setting data n1
The connection No. set in the "Open Setting" of the "Built-in Ethernet Port Setting" tab
need to be specified.
Protocol execution status
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.
Pairing open
The pairing open setting is not available in the CPU module. The CPU module sends
and receives data using one connection.
Cancellation of protocol execution
Protocol execution can be cancelled by "Start Device to Store Predefined Protocol"
(18) set in the "Open Setting" of the "Built-in Ethernet Port Setting" tab.
(
Summary of Contents for melsec q03ud(E)cpu
Page 2: ......
Page 11: ...9 Memo ...
Page 209: ...207 APPENDICES A Appendix 4 Specifications Comparison with Ethernet Module Memo ...
Page 213: ...211 Memo ...
Page 219: ......