Ins - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

INS$

Instruction
INSERT INTO STRING
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S1
Base text string first word
S2
Inserted text string first word
S3
Beginning position
D
First destination word
S1: Base Text String
15
S1
Text string data: 4,095 characters max. + NUL
to
S1 + maximum 2,047 words
S2: Inserted Text String
15
S2
Text string data: 4,095 characters max. + NUL
to
S2 + maximum 2,047 words
S3: Beginning Position
(0000 to 0FFF hex or &0 to &4095)
Note
• The data from S1 to S1 + the maximum 2,047 words, from S2 to S2 + the maximum 2,047 words, and from D to D +
the maximum 2,047 words must be in the same area.
• The data from S2 to S2 + the maximum 2,047 words and from D to D + the maximum 2,047 words cannot overlap.
The data from S1 to S1 + the maximum 2,047 words and from D to D + the maximum 2,047 words can overlap. The
data from S1 to S1 + the maximum 2,047 words and from S2 to S2 + the maximum 2,047 words can also overlap.
1086
Mnemonic
Variations
INS$
@INS$
Block program areas
Step program areas
OK
OK
Description
0
to
0
to
Function
code
Inserts a designated text string into the middle of a
657
text string.
INS$
INS$(657)
S1: Base text string first word
S1
S2: Inserted text string first word
S2
S3
S3: Beginning position
D
D: First destination word
Subroutines
OK
Data type
UINT
UINT
UINT
UINT
D: First Destination Word
D + maximum 2,047 words
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
Variable
Variable
1
Variable
15
D
Text string data: 4,095 characters max. + NUL
to
to
0

Advertisement

Table of Contents
loading

Table of Contents