456
Host Link Commands
Section 6-5
Parameters
Name, TC Number (Command)
Specify the instruction for reading the SV in “Name.” Make this setting in 4
characters. In “TC number,” specify the timer/counter number used for the
instruction.
SV (Response)
The constant SV is returned.
Note
1.
The instruction specified under “Name” must be in four characters.
2.
If the same instruction is used more than once in a program, only the first
one will be read.
3.
Use this command only when it is definite that a constant SV has been set.
4.
The response end code will indicate an error (16) if the SV wasn’t entered
as a constant.
6-5-18 SV READ 2 –– R$
Reads the constant SV or the word address where the SV is stored. The SV
that is read is a 4-digit decimal number (BCD) written as the second operand
for the TIM, TIMH(15), TTIM, CNT, or CNTR(12) instruction at the specified
program address in the user’s program. This can only be done with a program
of less than 10,000.
Command Format
Response Format
An end code of 00 indicates normal completion.
Parameters
Name, TC Number (Command)
Specify the name of the instruction for reading the SV in “Name.” Make this
setting in 4 characters. In “TC number,” specify the timer/counter number
used by the instruction.
Instruction name
Classification
OP1
OP2
OP3
OP4
T
I
M
(Space)
TIMER
T
I
M
H
HIGH-SPEED TIMER
T
T
I
M
TOTALIZING TIMER
C
N
T
(Space)
COUNTER
C
N
T
R
REVERSIBLE COUNTER
x 10
0
x 10
0
@
R
$
x 10
0
x 10
1
x 10
3
x 10
2
x 10
1
OP1 OP2 OP3 OP4 x 10
3
x 10
2
x 10
1
*
↵
Node
No.
Program address
(0000 to 9999)
Name
TC number
(0000 to 0511)
Terminator
FCS
Header
code
x 16
0
@
R
$
OP1 OP2 OP3 OP4
x 10
0
x 10
0
x 10
1
x 16
1
x 10
3
x 10
2
x 10
1
↵
*
Node
No.
Header
code
End code
Operand
SV
Terminator
FCS
Instruction name
Classification
OP1
OP2
OP3
OP4
T
I
M
(Space)
TIMER
T
I
M
H
HIGH-SPEED TIMER
T
T
I
M
TOTALIZING TIMER
C
N
T
(Space)
COUNTER
C
N
T
R
REVERSIBLE COUNTER