5 ) programming example, Message send and receive functions – Yaskawa JAPMC-MC2303-E User Manual
Page 132

6
Message Send and Receive Functions
6.5 Programming Example
6.5.5 Sending Request/Receiving Response (Client) according to Non-procedure Protocol
6-47
( 5 ) 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 00000
Dest
DW00005
0002
0002
NL-2
STORE
Source 00001
Dest
DW00002
0001
0001
NL-2
STORE
Source 00001
Dest
DW00006
0003
0003
NL-2
STORE
Source 00000
Dest
DW00007
0004
0004
NL-2
STORE
Source 00000
Dest
DW00011
0005
0005
NL-2
STORE
Source 00000
Dest
DW00012
0006
0006
NL-2
STORE
Source 00000
Dest
DW00024
0007
0007
NL-2
STORE
Source 00000
Dest
DW00025
0008
0008
NL-2
STORE
Source 10000
Dest
DW00052
0009
0009
NL-2
STORE
Source 32767
Dest
DW00053
0010
0010
NL-2
STORE
Source 00000
Dest
DW00054
0011
0011
NL-2
STORE
Source 00000
Dest
DW00064
0012
0012
NL-2
Sets the remote node.
Sets the send register number.
Sets the send data size.
Sets the remote CPU number.
One scan at startup
Sets parameters in the first scan after
startup.
(Low-speed scan (DWG.L): SB000003,
High-speed scan (DWG.H): SB000001)
Sets the holding register offset.
Clears the system registers.
Clears the normal pass counter.
Clears the system registers.
Clears the normal pass counter.
Clears the error counter.
Leading address of receive area
(1000)
Final address of receive area
(32767)