![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212109.webp)
CHAPTER 6 – Functions and Methods
OMRON
Page 96
Revision 2.0
Typical Example
textpoint = “abcdefgh”
midtext = Mid(textpoint,3,2)
The text point ‘midtext’ contains the string ‘de’.
PrintMessage
Syntax
PrintMessage (“message”)
Remarks
Argument Type
Description
message
string
Contains the text string that is sent to the printer.
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’.
Right
Syntax
righttext = Right(textpoint,noofchars)
Remarks
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 end of the string.
righttext
integer
Text point containing the specified range of characters.
Typical Example
textpoint = “abcdefgh”
righttext = Right(textpoint,3)
The text point ‘righttext’ contains the string ‘fgh’.
Содержание CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Страница 2: ...CX Supervisor Script Language Software Revision 2 0...
Страница 3: ......
Страница 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Страница 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Страница 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Страница 13: ......
Страница 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Страница 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Страница 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Страница 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...