8 - 20 8 - 20
MELSEC-Q
8 DATA COMMUNICATION USING THE PRE-DEFINED PROTOCOL
(d) Executing the protocols (program example)
Create a program with the dedicated instruction (CPRTCL instruction) using
GX Developer.
Switch the CPU module to RUN, and execute the registered protocol by the
dedicated instruction (CPRTCL instruction).
The following table shows the devices to be used.
•
I/O signal of QJ71C24N
Predefined protocol ready: X1D
•
Devices used in program example
Device Purpose Device
Purpose
X20
CPRTCL instruction execution command
M1
Status display device at
completion
D300
Inverter Station Number designation device
M101
Normal completion flag
D10
Execution result storing device for the
CPRTCL instruction
M102
Error completion flag
D12
Execution protocol number designation
device
D100
Error code storing device
M0 Completion
device —
—
Stores set values in the
Send data storage area.
Protocol No.1 is specified.
Protocol is executed.
Communicated at CH2.
Normal completion flag
ON
Error completion flag ON
Error code is stored.
CPRTCL
execution
command
Predefined
protocol
ready
Receive data are stored to the receive data storage area (D200 to D203)
that is set to the receive packet.
Summary of Contents for MELSEC QJ71C24
Page 1: ......
Page 2: ......
Page 103: ...3 42 3 42 MELSEC Q 3 SPECIFICATIONS MEMO ...
Page 177: ...6 33 6 33 MELSEC Q 6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MEMO ...
Page 397: ...App 24 App 24 MELSEC Q APPENDIXES Connection example 3 Connection example 4 ...
Page 441: ......
Page 442: ......