![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212107.webp)
CHAPTER 6 – Functions and Methods
OMRON
Page 94
Revision 2.0
References
More complex expressions (for instance controlling justification, decimal places, number base, etc.)
are also possible. Refer to any C language reference book for full details of the format used by the
‘sprintf’ function.
GetTextLength
Syntax
value = GetTextLength (textpoint)
Remarks
Argument Type
Description
textpoint
text
This is the point which has its text length counted.
returnpoint
Integer /
real
This is the point that holds the return
value
.
Typical Example
textpoint = “Hello World”
count = GetTextLength (textpoint)
The number of characters in ‘textpoint’ is counted and the point ‘count’ is set to the value 11.
Hex
Syntax
result = Hex (value)
Remarks
Argument Type
Description
Value
- - -
Number to be converted to a Hex number.
Result
- - -
String containing Hex representation of
value.
Typical Example
HStr = Hex (44)
In this example, ‘Hstr’ contains ‘2C’.
Left
Syntax
lefttext = Left(textpoint,noofchars)
Содержание 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...