Mitsubishi Melsec-L Series User Manual page 148

Communication module
Hide thumbs Also See for Melsec-L Series:
Table of Contents

Advertisement

(4) Executing the protocols (program example)
Device
X20
CPRTCL instruction execution command
D300
Inverter Station Number designation device
Execution result storing device for the
D10
Execution protocol number designation
D12
M0
CPRTCL
Predefined
execution
protocol
command
ready
9 - 38
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
Purpose
CPRTCL instruction
device
Completion device
Receive data are stored to the receive data storage area (D200 to D203)
that is set to the receive packet.
9 DATA COMMUNICATION USING THE PREDEFINED PROTOCOL
Device
M1
Status display device at completion
M101
M102
D100
-
Purpose
Normal completion flag
Error completion flag
Error code storing 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.
9 - 38

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lj71c24Lj71c24-r2

Table of Contents