Write string data command – Rockwell Automation 5370-UPK CVIM USER-PAK Option User Manual
Page 134
![background image](/manuals/580467/134/background.png)
Appendix C
ASCII Commands for the USER–PAK Option
C–2
Force Print for Serial Port Strings
For serial port strings, the Force Print command takes this format:
>OF, p, s, t
Where: p = letter of serial port (A or B)
s
= number of string
t
= number of toolset
When the command is invoked for a serial port string, the specified string is
immediately transmitted, if, for the most recently processed inspection of the
specified toolset, the
Event
conditions defined for the specified string are
true. Otherwise, the string will not be transmitted.
The toolset specified in the command determines the toolset from which the
Event conditions will be tested, and numerical results (if any) will be taken.
Note: The toolset specification on the
Event
menu for the string does not
effect the transmitting of the string caused by the Force Print command.
Thus, you can use the Force Print command to transmit a string that is not
normally transmitted for either toolset.
Write String Data Command
The Write String Data command can be used to change the string text, the
toolset selection on the
Event
menu, and/or the string color (for viewport
strings) for a specified string which is defined within the configuration.
The Write String Data command takes this format:
>OW, p, s Ax Cx, text
(
Ax
,
Cx
, and
text
fields each are optional)
Where: p = number of viewport (or letter of serial port)
s
= number of string
Ax
assigns the active toolset(s), where x = 0–3:
x=0
None – both toolsets deselected
x=1
Print for TS 1
x=2
Print for TS 2
x=3
Both toolsets selected
Cx assigns
the
Color
, where x = 1–8:
x=1
Green
x=5
Orange
x=2
Yellow
x=6
Brown
x=3
Red x=7
Black
x=4
Blue
x=8
Clear
(This field has no effect for serial port strings)
text
follows the third comma in the command.
This field contains the new text, if any.