Sv Read 2 - R - Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

Host Link Commands
Parameters
4-5-16 SV READ 2 – R$
Command Format
1
0
x 10
x 10
@
R
$
Node no.
Header
code
Response Format
1
0
x 10
x 10
@
R
Node no.
Header
code
290
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
OP1
OP2
T
I
T
I
T
I
T
M
C
N
C
N
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.
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.
3
2
1
0
x 10
x 10
x 10
x 10
OP1 OP2 OP3 OP4 x 10
Program
address
Note TC number: 0000 to 0255 in CPM2A/CPM2C PCs and 0000 to 0127 in
CPM1/CPM1A/SRM1(-V2) PCs
An end code of 00 indicates normal completion.
1
0
x 16
x 16
OP1 OP2 OP3 OP4
$
End code
Operand
OP3
OP4
M
(Space) TIMER
M
H
HIGH-SPEED TIMER
M
L
LONG TIMER
H
H
VERY HIGH-SPEED TIMER
T
(Space) COUNTER
T
R
REVERSIBLE COUNTER
3
x 10
Name
TC number*
3
2
x 10
x 10
x 10
SV
Section
Instruction name
:
2
1
0
x 10
x 10
FCS
Terminator
1
0
:
x 10
FCS
Terminator
4-5

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?

Questions and answers

Table of Contents