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.
Содержание MELSEC LJ71C24
Страница 1: ......
Страница 2: ......
Страница 18: ...A 16 A 16 INDEX REVISIONS WARRANTY...
Страница 22: ...A 20 A 20 2 LJ71C24 R2 LJ71C24 R2 Before Using the Product...
Страница 23: ...A 21 A 21 MEMO...
Страница 38: ...4 2 4 2 4 PROCEDURES PRIOR TO OPERATION MEMO 4...
Страница 105: ...7 30 7 30 7 SETTINGS FOR THE C24 MEMO...
Страница 391: ...App 62 App 62 APPENDIXES 3 Refresh parameter setting In Refresh Parameter set the following network parameters...
Страница 425: ......
Страница 426: ......
Страница 427: ......