3 ) programming example, Message send and receive functions – Yaskawa JAPMC-MC2303-E User Manual
Page 128
6
Message Send and Receive Functions
6.5 Programming Example
6.5.4 Sending Request (Client)/Response (Server) according to Non-procedure Protocol
6-43
( 3 ) Programming Example
The following shows an example of ladder programming executed by the settings in the previous page.
IF
SB000003==true
0000
0000
NL-1
STORE
Source 00001
Dest
DW00002
0001
0001
NL-2
0002
0002
NL-2
STORE
Source 00100
Dest
DW00005
0003
0003
NL-2
STORE
Source 000513
Dest
DW00006
0004
0004
NL-2
STORE
Source 00000
Dest
DW00007
0005
0005
NL-2
STORE
Source 00000
Dest
DW00008
0006
0006
NL-2
STORE
Source 00000
Dest
DW00009
0007
0007
NL-2
STORE
Source 00000
Dest
DW00010
0008
0008
NL-2
STORE
Source 00000
Dest
DW00011
0009
0009
NL-2
STORE
Source 00000
Dest
DW00012
0010
0010
NL-2
STORE
Source 00000
Dest
DW00024
0011
0011
NL-2
Sets the remote node number.
Sets the data address (address 100).
Sets the data size (513 words)
including one-word transaction code.
Sets the remote CPU number.
STORE
Source 00000
Dest
DW00025
0012
0012
NL-2
END_IF
Set the transaction code (10000) in
MW00100 and the data in MW00101
to 00612.
One scan at startup
Sets the input relay offset.
Sets the input register offset.
Sets the holding register offset.
Clears the system registers.
Clears the normal pass counter.
Clears the error counter.
Sets parameters in the first scan after
startup.
(Low-speed scan (DWG.L): SB000003,
High-speed scan (DWG.H): SB000001)
Sets the coil offset.