PLC Communications
5-5
386/ATM Coprocessor User Manual
The command syntax for performing an IOREAD operation is:
:ir:a:b::<cr>
where:
:
is a required delimiter for the command string.
ir
is the command for IOREAD (lower or upper case).
a
is the local point number for the 4 local WY points in the 386/ATM.
The 386/ATM start point is from 5 through 8, inclusive.
b
is the number of IO points to read. Valid numbers for
b
are 1, 2, 3,
and 4.
You cannot read beyond the boundary of the 4 WY points, and the
count
b
is limited by the start point (value of
a
). For example, if you
use address 5 for
a
, you can obtain up to 4 points of WY information.
If you use address 6 as the start point for
a
, then you can read only
up to a total of 3 points from the local WYs.
::
is the terminating delimiter for the command string; these characters
must be present for the command to operate.
<cr>
represents the ASCII character 0D HEX; this character must be
present in order to tell PCCOMM that the command string is
complete.
After receiving an IOREAD, PCCOMM responds in the following format.
:ir:e:f:g:h:i::<cr>
where:
:
is the delimiter for the response.
ir
indicates the response is from an IOREAD operation.
e
is the error code returned from the operation.
if positive, the number represents the number of data items read.
if zero, the number represents an error indicating a bad start point or
a bad count, and no words were read.
f–i
are the data values in ASCII/decimal that are returned as the result
of the operation.
::
is the end delimiter of the response string.
<cr>
is the ASCII character 0D HEX denoting the end of the response
transaction.
Command Syntax:
IOREAD
Response Syntax:
IOREAD
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com