Command Syntax: Iowrite; Response Syntax: Iowrite - Siemens SIMATIC TI505 386/ATM User Manual

Coprocessor module
Table of Contents

Advertisement

Communicating during PLC Scan: I/O Cycle (continued)
Command Syntax:
IOWRITE
Response Syntax:
IOWRITE
5-6
PLC Communications
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
The command syntax for performing an IOWRITE operation is:
:iw:a:b:f:g:h:i::<cr>
where:
:
is a required delimiter for the command string.
iw
is the command for IOWRITE (lower or upper case).
a
is the starting point number for the four WX points in the 386/ATM.
Possible entries in this field are WX1 through WX4.
b
is the number of I/O points to write. Valid numbers are 1, 2, 3, and 4.
f–i
are the data to write into the points selected.
::
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 IOWRITE, PCCOMM responds in the following format.
:iw:e::<cr>
where
:
is the delimiter for the response.
iw
indicates the response is from an IOWRITE operation.
e
is the response code where:
if the number is positive, it represents the count of items written.
if zero, the number represents a bad start address or a bad count, and
no words were written.
::
is the end delimiter of the response string.
<cr> is the ASCII character 0D HEX denoting the end of the response
transaction.
386/ATM Coprocessor User Manual

Advertisement

Table of Contents
loading

Table of Contents