|
<< Click to Display Table of Contents >>
Marking a Text Without an Answer |
N1 |
Address of the identifier of a marker |
N2 |
57 |
N3 |
Not used |
N4 |
Not used |
PLC Tag for sending a message for marking of a controller, in Text format. To tell whether the message sent was marked or not by a controller, use the Status of a Marker Tag.
Controllers support printing ASCII characters ranging from code 20 to 7F, in hexadecimal. In addition to these ASCII characters, users can also insert special characters to format messages, such as using the hexadecimal code 0A to insert a line feed in a message.
tag001 = "Text Line 1" + Chr(0Ah) + "Text Line 2"
tag001.Write()
Application.GetObject("Driver.tag001").Value = "Text Line 1" & Chr(&H0A) & "Text Line 2"
Application.GetObject("Driver.tag001").Write(EWriteSyncMode)
To use other special codes to format a message, please check the controller's manual.