Text Commands SECTION 6 Functions and Methods
91
6-12-10 PrintMessage
Syntax
PrintMessage ("message")
Remarks
Typical Example
PrintMessage ("Print this message")
The message 'print this message' is printed to the configured 'Alarm/message
printer', queued if operating in page mode, or printing has been disabled by
the EnablePrinting command.
References
Refer to the CX-Supervisor User Manual for further details to configure the
'Alarm/message printer'.
6-12-11 Right
Syntax
righttext = Right(textpoint,noofchars)
Remarks
Typical Example
textpoint = "abcdefgh"
righttext = Right(textpoint,3)
The text point 'righttext' contains the string 'fgh'.
6-12-12 TextToValue
Syntax
valuepoint = TextToValue(textpoint)
Remarks
Typical Examples
textpoint = "10"
valuepoint = TextToValue(textpoint)
The value 10 is assigned to the point 'valuepoint'.
Argument Type Description
message string Contains the text string that is sent to the
printer.
Argument Type Description
textpoint text The text point containing the string that is to be
manipulated.
noofchars integer The number of characters to extract from the
string.
righttext text Text point containing the specified range of
characters.
Argument Type Description
textpoint text The text point containing the string that is to be
converted into a number.
valuepoint integer A point containing the value returned after
conversion from a string.