1022
Text String Processing Instructions Section 3-31
Example In this example, FIND$(660) is used to find one character from within a text
string.
3-31-8 STRING LENGTH: LEN$(650)
Purpose Calculates the length of a text string.
Ladder Symbol
Variations
Applicable Program Areas
Operands S: Text String
Note The data from S to S + the maximum 2,047 words must be in the same area.
Operand Specifications
S1: D100
S2: D200
D: D300
D100
D200
D300
Text string CText string: ABCDEF
LEN$(650)
S
D
S: Text string first word
D: First destination word
Variations Executed Each Cycle for ON Condition LEN$(650)
Executed Once for Upward Differentiation @LEN$(650)
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
S
to
Text string data: 4,095 characters max. + NUL
S + maximum 2,047 words
Area S D
CIO Area CIO 0 to CIO 6143
Work Area W0 to W511
Holding Bit Area H0 to H511
Auxiliary Bit Area A0 to A447
A448 to A959
A448 to A959
Timer Area T0000 to T4095
Counter Area C0000 to C4095
DM Area D0 to D32767
Indirect DM addresses
in binary
@ D0 to @ D32767
Indirect DM addresses
in BCD
*D0 to *D32767
Constants ---