9 - 38 9 - 38
9 DATA COMMUNICATION USING THE PREDEFINED PROTOCOL
(4) Executing the protocols (program example)
Create a program with the dedicated instruction (CPRTCL instruction) using GX
Works2.
Switch the CPU to RUN, and execute the registered protocol by the dedicated
instruction (CPRTCL instruction).
The following table shows the devices to be used.
(a) I/O signal of LJ71C24
Predefined protocol ready: X1D
(b) 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.
Normal completion flag
ON
Error completion flag ON
Error code is stored.
CPRTCL
execution
command
Predefined
protocol
ready
Communicated at CH2.
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 LJ71C24
Page 1: ......
Page 2: ......
Page 18: ...A 16 A 16 INDEX REVISIONS WARRANTY...
Page 22: ...A 20 A 20 2 LJ71C24 R2 LJ71C24 R2 Before Using the Product...
Page 23: ...A 21 A 21 MEMO...
Page 38: ...4 2 4 2 4 PROCEDURES PRIOR TO OPERATION MEMO 4...
Page 105: ...7 30 7 30 7 SETTINGS FOR THE C24 MEMO...
Page 425: ......
Page 426: ......
Page 427: ......