5. LADDER COMMUNICATION
IM9000F02-E2
48
5.3 Example of sequence program
5.3.1 MELSEC Series (MITSUBISHI)
The ladder communication send/receive program using the MITSUBISHI MELSEC Series
(A2CCPU24) is described below.
Send data creation program (example)
M000
Send data
creation switch
D11
H0002
MOVP
D12
H0100
MOVP
D13
H0001
MOVP
D14
H0001
MOVP
D15
H0A0D
MOVP
Data setting
(Number of read data = 1)
Termination character
setting (CR, LF)
Command (CMD) setting
Identifier setting
(Measured value)
STX setting
Address setting = 01
Send program (example)
Y1F0
SET
K6
D10
H0
K61
TOP
Send request
resetting
Send request setting
Transfer to send
buffer
Data length setting
D10
K5
MOVP
Send completion
X1E0
Send
request
Send
completion
Send start
switch
Y1F0
X1E0
M001
Y1F0
RST