4-5
Section
Host Link Commands
281
Example Program
This example shows ladder programs that copy the status of IR 000 in each
SRM1 to IR 200 in the other SRM1.
25313 (Always ON)
MOV(21)
000
LR00
MOV(21)
LR08
200
Program in the Master
MOV(21)
000
LR08
MOV(21)
LR00
200
25313 (Always ON)
Program in the Slave
LR00
LR07
LR08
LR00
LR07
LR08
LR15
Writing area
Reading area
Write
Read
Reading area
Writing area
LR15
Write
Read
IR 000
IR 200
IR 000
IR 200
4-5
Host Link Commands
This section explains the commands that can be issued from the host computer
to the PC.
4-5-1 IR/SR AREA READ – RR
Reads the contents of the specified number of IR and SR words, starting from
the specified word.
Command Format
@
FCS
x 10
1
x 10
0
x 10
3
x 10
2
↵
R
R
x 10
1
x 10
0
x 10
3
x 10
2
x 10
1
x 10
0
Node no.
Header
code
Beginning word*
No. of words
(0000 to 0256)
Terminator
Note
*Beginning word: 0000 to 0049 and 0200 to 0255 in CPM2A/CPM2C PCs, 0000
to 0019 and 0200 to 0255 in CPM1/CPM1A/SRM1(-V2) PCs.
(A response of “0000” will be returned for non-existent IR and SR words.)
Response Format
An end code of 00 indicates normal completion.
@
R
R
FCS
x 10
1
x 10
0
x 16
1
x 16
0
↵
x 16
3
x 16
2
x 16
1
x 16
0
End code
Read data (1 word)
Read data (for number of words read)
Terminator
Node no.
Header
code
Note
1. Words 0050 to 0199 cannot be specified in CPM2A/CPM2C PCs and words
0020 to 0199 cannot be specified in CPM1/CPM1A/SRM1(-V2) PCs. If an
attempt to read any of these words is made, a response of 0000 will be re-
turned.
2. The response will be divided when reading more than 30 words of data.
Parameters
Read Data (Response)
The contents of the number of words specified by the command are returned in
hexadecimal as a response. The words are returned in order, starting with the
specified beginning word.
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...