Timer/Counter Status Read - - Rg - Omron CJ - REFERENCE MANUAL 07-2009 Reference Manual

Communications commands
Hide thumbs Also See for CJ - REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

C-mode Command Details
4-3-6
TIMER/COUNTER STATUS READ – – RG
Command Format
1
@
x 10
x 10
Unit No. (BCD)
Response Format
@
Limitations
110
the specified words exceed the data area boundaries, or are not specified in
BCD, or if the number of words to read is 0.
End code (Hex)
00
13
14
15
18
21
Reads the ON/OFF status of the Completion Flags of the specified number of
timers/counters starting from the designated word (T0000 to T2047 or C0000
to C2047).
0
3
2
R
G
x 10
x 10
x 10
Header
Beginning word:
code
Timer (0000 to 2047)
Counter (2048 to 4095)
1
0
R
G
x 10
x 10
x 16
Unit No.
Header
End code
(BCD)
code
The number of words per frame for response data is different to that for C-
series Units. For details refer to 2-4 Precautions when Reusing Programs
from Earlier Models.
The text portion of the response's first frame can contain up to 121 words. If
more than 121 words are read, the data will be returned in multiple frames.
In the second and later frames, the text portion of the response can contain
up to 124 words.
The INITIALIZE and ABORT commands can be sent instead of the delimiter
for multiple responses for this command. If other commands are sent, they will
be treated as delimiters.
Designate 0000 to 2047 for timers and 2048 to 4095 for counters (add 2048 to
the actual counter number).
Timers T2048 to T4095 and counters C2048 to C4095 cannot be read.
Commands are divided with regard to timers and counters. If an attempt is
made to designate across timers and counters, an end code of 15 (entry num-
ber data error) will be returned.
Normal completion
FCS error
Format error
Entry number data error
Frame length error
Not executable due to CPU Unit CPU error.
1
0
3
2
1
x 10
x 10
x 10
x 10
No. of words
(0001 to 2048)
1
0
x 16
Read data
(1 word)
Read data
(for number of words read)
1: ON
0: OFF
Section 4-3
Contents
0
*
x 10
FCS
Terminator
*
FCS
Terminator

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents