Command Syntax: Pcwrite; Response Syntax: Pcwrite; Executing Commands From A File - Siemens SIMATIC TI505 386/ATM User Manual

Coprocessor module
Table of Contents

Advertisement

Command Syntax:
PCWRITE allows you to write the PLC memory. The syntax of a PCWRITE
PCWRITE
command is as follows.
:pw:memory_type:start_point:count:val_1:val_2:val_n::<cr>
where:
:
pw
memory_type
start_point
count
val_1 to val_n
::
<cr>
Response Syntax:
PCCOMM responds to the PCWRITE command in the following format.
PCWRITE
:pw:error_code::<cr>
where:
:
pw
error_code
::
<cr>
Executing
Any of these commands can be entered from the keyboard or executed from
Commands from a
a file. For instance, to send a message, use echo:[message]::>pccom or
File
c>
To read a message, use c> copy pccomm: con:
386/ATM Coprocessor User Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
is the separating delimiter for the command.
is the command syntax for PCWRITE.
is the memory type: VMEM, WX, WY, TCC, TCP, DSC,
DCP, STW, DCP, KMEM, XREG, YREG, CREG.
is the starting address for the memory type.
is the number of data items that you want to read in this
transaction.
are the data values you are writing to the PLC.
is the ending delimiter for the command.
is the ASCII character 0D HEX denoting the end of the
response transaction.
is the separating delimiter for the command.
is the command response for PCWRITE
if positive, the number of values written to the PLC
if zero, a bad memory_type, a bad start_point for the
memory_type or a bad count. No words were returned.
if negative, a comm failure with the PLC IOWRITE operation
is the end delimiter of the response string.
is the ASCII character 0D HEX denoting the end of the
response transaction.
copy con: pccomm:
:pr[message]::
<ctrl-z>
PLC Communications
5-9

Advertisement

Table of Contents
loading

Table of Contents