Sv Read 1 - 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
Command Format
1
0
x 10
x 10
@
W
Node no.
Header
code
Response Format
Parameters
4-5-15 SV READ 1 – R#
Command Format
1
x 10
x 10
@
Node no.
Response Format
x 10
@
Node no.
3
2
1
x 10
x 10
x 10
x 10
J
Beginning word*
Note Beginning word: 0000 to 0023 in CPM2A/CPM2C PCs, 0000 to 0015 in
CPM1/CPM1A and SRM1(-V2) PCs
An end code of 00 indicates normal completion.
x 10
@
Write Data (Command)
Specify in order the contents of the number of words to be written to the AR area
in hexadecimal, starting with the specified beginning word.
Note If data is specified for writing which exceeds the allowable range, an error will be
generated and the writing operation will not be executed. If, for example, 12 is
specified as the beginning word for writing in a CPM1 PC, and five words of data
are specified, then 16 will become the last word for writing data, and the com-
mand will not be executed because AR 16 is beyond the writable range.
Searches for the first instance of a timer or counter instruction (TIM, TIMH(15),
TIML(––), TMHH(––), CNT, or CNTR(12)) with the specified TC number in the
user's program and reads the PV, which is assumed to be set as a constant. The
SV that is read is a 4-digit decimal number (BCD). The program is searched from
the beginning, which may take as much as 10 seconds to produce a response.
0
OP1 OP2
OP3 OP4 x 10
R
#
Header
Name
code
Note TC number: 0000 to 0255 in CPM2A/CPM2C PCs and 0000 to 0127 in
CPM1/CPM1A/SRM1(-V2) PCs
1
0
1
x 10
x 16
x 16
R
#
Header
End code
code
0
3
2
1
0
x 16
x 16
x 16
x 16
Write data (1 word)
Write data
(for the number of words to write)
1
0
1
x 10
x 16
W
J
Node no.
Header
End code
code
3
2
1
x 10
x 10
x 10
TC number*
0
3
2
1
0
x 10
x 10
x 10
x 10
SV
Section
:
FCS
Terminator
0
x 16
::
Terminator
FCS
0
:
Terminator
FCS
:
Terminator
FCS
4-5
289

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents