![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414307.webp)
4-5
Section
Host Link Commands
287
Command Format
@
W
C
FCS
x 10
1
x 10
0
x 10
3
x 10
2
↵
x 10
1
x 10
0
x 10
3
x 10
2
x 10
1
x 10
0
Node no.
Header
code
Terminator
Beginning timer/counter*
Write data (1 timer/counter)
Write data
(for no. of PV to write)
Note
1. Beginning T/C: 0000 to 0255 in CPM2A/CPM2C PCs, 0000 to 0127 in
CPM1/ CPM1A/SRM1(-V2) PCs
2. Divide the command when writing more than 29 words of data.
Response Format
An end code of 00 indicates normal completion.
@
W
C
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 decimal numbers (BCD) the present values for the number of timers/
counters that are to be written, starting from the beginning timer/counter.
Note
1. When this command is used to write data to the PV area, the Completion
Flags for the timers/counters that are written will be turned OFF.
2. 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 exam-
ple, 126 is specified as the beginning word for writing in a CPM1 PC, and
three words of data are specified, then 128 will become the last word for writ-
ing data, and the command will not be executed because TC 128 is beyond
area boundary.
4-5-12 TC STATUS WRITE – WG
Writes the status of the Completion Flags for timers and counters in the TC area,
starting from the specified timer/counter (number). Writing is done number by
number.
Command Format
@
W
G
FCS
x 10
1
x 10
0
x 10
3
x 10
2
↵
x 10
1
x 10
0
Node no.
Header
code
Write data
(1 timer/counter)
Write data
(for number of TC to write)
Beginning timer/counter*
Terminator
ON/
OFF
Note
1. Beginning T/C: 0000 to 0255 in CPM2A/CPM2C PCs, 0000 to 0127 in
CPM1/ CPM1A/SRM1(-V2) PCs
2. Divide the command when writing the status of more than 118 timer/count-
ers.
Response Format
An end code of 00 indicates normal completion.
@
W
G
x 10
1
x 10
0
x 16
1
x 16
0
↵
FCS
Node no.
End code
Header
code
Terminator