![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_7420301266.webp)
1226
Text String Processing Instructions
Section 3-33
Example
In this example, +$(656) is used to connect the text strings ABCD and EFG
and output the result to D.
3-33-4 GET STRING LEFT: LEFT$(652)
Purpose
Fetches a designated number of characters from the left (beginning) of a text
string.
Ladder Symbol
Variations
Applicable Program Areas
Operands
S1: Text String
S2: Number of Characters (0000 to 0FFF hex or &0 to &4095)
Note
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.
LEFT$(652)
S1
S2
D
S1
: Text string first word
S2
: Number of characters
D
: First destination word
Variations
Executed Each Cycle for ON Condition
LEFT$(652)
Executed Once for Upward Differentiation
@LEFT$(652)
Executed Once for Downward Differentiation
Not supported
Immediate Refreshing Specification
Not supported
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
15
0
S1
to
Text string data: 4,095 characters max. + NUL
S1 + maximum 2,047 words
15
0
D
to
Text string data: 4,095 characters max. + NUL
D + maximum 2,047 words
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...