Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual page 107

Script language
Table of Contents

Advertisement

CHAPTER 6 – Functions and Methods
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
textpoint
returnpoint
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
Value
Result
Typical Example
HStr = Hex (44)
In this example, 'Hstr' contains '2C'.
Left
Syntax
lefttext = Left(textpoint,noofchars)
Page 94
Type
text
This is the point which has its text length counted.
Integer /
This is the point that holds the return value.
real
Type
- - -
Number to be converted to a Hex number.
- - -
String containing Hex representation of value.
Description
Description
Revision 2.0
OMRON

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents