![Omron SYSMAC CX-Programmer 9 Operation Manual Download Page 213](http://html1.mh-extra.com/html/omron/sysmac-cx-programmer-9/sysmac-cx-programmer-9_operation-manual_744241213.webp)
187
Appendix C
Function Descriptions
Standard Functions
Text String Functions
LEN: Detect String Length
• Function
Finds the length of a specified text string.
• Application
Return_value
:= LEN(string);
• Arguments and Return Values
• Example
LEFT: Extract Characters from Left
• Function
Extracts the specified number of characters from the left of the specified text string.
• Application
Return_value
:= LEFT
(Source_string, Number_of_characters)
;
• Arguments and Return Values
• Example
RIGHT: Extract Characters from Right
• Function
Extracts the specified number of characters from the right of the specified text string.
• Application
Return_value
:= RIGHT
(Source_string, Number_of_characters)
;
Variable name
Data type
Description
String
STRING
Specifies the text string for
which to find the length.
Return_value
INT
Returns the size of the speci-
fied text string.
Variable name
Data type
Description
Source_string
STRING
Specifies the text string from which to
extract characters.
Number_of_characters
INT, UINT
Specifies the number of characters to
extract.
Return_value
STRING
Returns the extracted characters.
A
B
C
D
E
F
G
H
Variables
STRING Message
INT Result
Message
Result:=LEN(Message);
→
"8" is stored in
Result
variable.
A
B
C
D
E
F
G
H
Message
Variables
STRING Message
STRING Result
Result:=LEFT(Message,3);
→
"ABC" is stored in the
Result
variable.
Summary of Contents for SYSMAC CX-Programmer 9
Page 2: ......
Page 4: ...iv ...
Page 6: ...vi ...
Page 8: ......
Page 16: ...xvi ...
Page 20: ...xx ...
Page 26: ...xxvi Application Precautions 4 ...
Page 27: ...Part 1 Function Blocks ...
Page 28: ......
Page 154: ...128 Procedures Section 3 2 ...
Page 155: ...Part 2 Structured Text ST ...
Page 156: ......
Page 160: ...134 CX Programmer Specifications Section 4 2 ...
Page 206: ...180 Procedures Section 6 1 ...
Page 208: ...182 System defined external variables supported in function blocks Appendix A ...
Page 230: ...204 Revision History ...
Page 231: ......