4-5
Section
Host Link Commands
289
Command Format
@
W
J
FCS
x 10
1
x 10
0
x 10
3
x 10
2
↵
x 10
1
x 10
0
x 16
3
x 16
2
x 16
1
x 16
0
Write data
(for the number of words to write)
Write data (1 word)
Beginning word*
Node no.
Header
code
Terminator
Note
Beginning word: 0000 to 0023 in CPM2A/CPM2C PCs, 0000 to 0015 in
CPM1/CPM1A and SRM1(-V2) PCs
Response Format
An end code of 00 indicates normal completion.
@
W
J
x 10
1
x 10
0
x 16
1
x 16
0
:
↵
FCS
Node no.
End code
Header
code
Terminator
Parameters
Write Data (Command)
Specify in order the contents of the number of words to be written to the AR area
in hexadecimal, starting with the specified beginning word.
Note
If data is specified for writing which exceeds the allowable range, an error will be
generated and the writing operation will not be executed. If, for example, 12 is
specified as the beginning word for writing in a CPM1 PC, and five words of data
are specified, then 16 will become the last word for writing data, and the com-
mand will not be executed because AR 16 is beyond the writable range.
4-5-15 SV READ 1 – R#
Searches for the first instance of a timer or counter instruction (TIM, TIMH(15),
TIML(––), TMHH(––), CNT, or CNTR(12)) with the specified TC number in the
user’s program and reads the PV, which is assumed to be set as a constant. The
SV that is read is a 4-digit decimal number (BCD). The program is searched from
the beginning, which may take as much as 10 seconds to produce a response.
Command Format
@
R
#
FCS
x 10
1
x 10
0
OP1 OP2
↵
OP3 OP4 x 10
3
x 10
2
x 10
1
x 10
0
Node no.
Header
code
Terminator
Name
TC number*
Note
TC number: 0000 to 0255 in CPM2A/CPM2C PCs and 0000 to 0127 in
CPM1/CPM1A/SRM1(-V2) PCs
Response Format
@
R
#
x 10
1
x 10
0
x 16
1
x 16
0
↵
FCS
x 10
3
x 10
2
x 10
1
x 10
0
SV
Terminator
Node no.
Header
code
End code
Содержание 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 ...