Timer/Counter Pv Read - - Rc - 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-5
TIMER/COUNTER PV READ – – RC
Command Format
1
@
x 10
x 10
Unit No. (BCD)
Response Format
1
@
x 10
x 10
Unit No. (BCD)
Limitations
Execution Conditions
Commands
Single
Multiple
Single
OK
No
End Codes
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 contents of the specified number of timer/counter PVs (present val-
ues T0000 to T2047 or C0000 to C2047) starting from the specified timer/
counter.
0
3
2
R
C
x 10
x 10
x 10
Header
Beginning word:
code
Timer (0000 to 2047)
Counter (2048 to 4095)
0
1
0
R
C
x 16
x 16
x 10
Header
End code
code
The text portion of the response's first frame can contain up to 30 words. If
more than 30 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 31 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 2048 to 4095 and counters 2048 to 4095 cannot be read.
Commands are divided among timers and counters for execution. If an
attempt is made to designate across timers and counters, an end code of 15
(entry number data error) will be returned.
Responses
Multiple
RUN
OK
OK
OK
An end code of 14 (format error) will be returned if the length of the command
is incorrect and an end code of 15 (entry number data error) will be returned if
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)
3
2
1
0
x 10
x 10
x 10
Read data (1 word)
Read data (for number of words read)
PLC Mode
MON
PROG
OK
OK
Section 4-3
Contents
0
*
x 10
FCS
Terminator
*
FCS
Terminator
UM Area
Write-protected
Read-protected
OK
OK
109

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents