1032
Text String Processing Instructions Section 3-31
Flags
Example In this example, CLR$(666) is used to clear text string ABCDE.
3-31-13 INSERT INTO STRING: INS$(657)
Purpose Deletes a designated text string from the middle of a text string.
Ladder Symbol
Variations
Applicable Program Areas
Operands S1: Base Text String
S2: Inserted Text String
Name Label Operation
Error Flag ER ON if the Communications Port Enabled Flag for the com-
munications port number specified as the Com Port num-
ber for Background Execution is OFF when background
processing is specified (CP1H only).
OFF in all other cases.
S
S: D100
D101
D102
S: D100
D101
D102
D100
Text string ABCDE
INS$(657)
S1
S2
S3
D
S1: Base text string first word
S2: Inserted text string first word
S3: Beginning position
D: First destination word
Variations Executed Each Cycle for ON Condition INS$(657)
Executed Once for Upward Differentiation @INS$(657)
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
S2
to
Text string data: 4,095 characters max. + NUL
S2 + maximum 2,047 words