C-mode Command Details
4-3-17 TIMER/COUNTER SV READ 1 – – R#
Command Format
1
@
x 10
x 10
Unit No. (BCD) Header
Response Format
@
x 10
Unit No. (BCD)
Parameters
Limitations
Execution Conditions
Commands
Single
Multiple
Single
OK
No
Reads the constant SV (4 digits BCD) written in the operands of designated
timer/counter instructions from cyclic task 0. If there are multiple timer/counter
instructions designated in cyclic task 0, TIMER/COUNTER SV READ 1 will
read the SV of the designated instruction with the lowest program address.
0
R
#
Timer/counter type
code
Instruction name
HIGH-SPEED COUNTER
WAIT
TIMER WAIT
COUNTER WAIT
HIGH-SPEED TIMER
TOTALIZING TIMER
REVERSIBLE COUNTER
TIMER
COUNTER
Note "SP" represents a space (20 Hex).
1
0
1
R
#
x 10
x 16
x 16
Header
End code
code
Timer/Counter Type (Command)
Designate in ASCII characters the type of TC instruction for reading the con-
stant SV.
Timer Counter Number (Command)
Designate in four digits (BCD) the timer/counter number for reading the con-
stant SV.
Timers T2048 to T4095 and counters C2048 to C4095 cannot be read.
The second word of the instruction must be a constant.
This command cannot be executed while UM read protection is in effect.
If there are multiple relevant instructions in the UM Area, a search will be con-
ducted from program address 0, and the first instruction found will be read.
SV can be read only from cyclic task 0.
Responses
Multiple
RUN
OK
No
OK
3
2
1
x 10
x 10
x 10
x 10
Timer/counter
number
Timer/counter type
Char-
Char-
acter 1
acter 2
T
M
T
I
C
N
T
I
T
T
C
N
T
I
C
N
0
3
2
1
0
x 10
x 10
x 10
x 10
SV of instruction des-
ignated by command
(constant)
PLC Mode
MON
PROG
OK
OK
Section 4-3
0
*
↵
Terminator
FCS
Timer/counter
number (BCD)
Char-
Char-
acter 3
acter 4
H
W
0000 to 2047
M
W
T
W
M
H
I
M
T
R
M
(SP)
T
(SP)
*
↵
FCS
Terminator
UM Area
Write-protected
Read-protected
OK
No
121
Need help?
Do you have a question about the CJ - REFERENCE MANUAL 07-2009 and is the answer not in the manual?