Text String Processing Instructions
Example
3-33-4 GET STRING LEFT: LEFT$(652)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
Note
1226
In this example, +$(656) is used to connect the text strings ABCD and EFG
and output the result to D.
Fetches a designated number of characters from the left (beginning) of a text
string.
LEFT$(652)
S1
S2
D
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation
Immediate Refreshing Specification
Block program areas
OK
OK
S1: Text String
S1 + maximum 2,047 words
S2: Number of Characters (0000 to 0FFF hex or &0 to &4095)
D + maximum 2,047 words
1. The data from S1 to S1 + the maximum 2,047 words and from D to D + the
maximum 2,047 words must be in the same area.
2. The data from S1 to S1 + the maximum 2,047 words and from D to D + the
maximum 2,047 words can overlap.
S1: Text string first word
S2: Number of characters
D: First destination word
Step program areas
Subroutines
OK
15
Text string data: 4,095 characters max. + NUL
S1
to
15
D
Text string data: 4,095 characters max. + NUL
to
Section 3-33
LEFT$(652)
@LEFT$(652)
Not supported
Not supported
Interrupt tasks
OK
0
0
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?
Questions and answers