![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414310.webp)
4-5
Section
Host Link Commands
290
Parameters
Name, TC Number (Command)
Specify the instruction for reading the SV in “Name.” Make this setting in 4 char-
acters. In “TC number,” specify the timer/counter number used for the instruc-
tion.
Name
Instruction name
OP1
OP2
OP3
OP4
T
I
M
(Space) TIMER
T
I
M
H
HIGH-SPEED TIMER
T
I
M
L
LONG TIMER
T
M
H
H
VERY HIGH-SPEED TIMER
C
N
T
(Space) COUNTER
C
N
T
R
REVERSIBLE COUNTER
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.
4-5-16 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), TIML(––), TMHH(––), CNT, or CNTR(12) instruction at the spe-
cified program address in the user’s program. This can only be done with a pro-
gram of less than 10K.
Command Format
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
Name
TC number*
Terminator
FCS
Header
code
Note
TC number: 0000 to 0255 in CPM2A/CPM2C PCs and 0000 to 0127 in
CPM1/CPM1A/SRM1(-V2) PCs
Response Format
An end code of 00 indicates normal completion.
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
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...