EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2 Instruction Descriptions
2-534
NJ-series Instructions Reference Manual (W502)
The following example is for when In1 is 'ABCD', In2 is 'GHI', and P is UINT#2. The value of variable
abc will be 'ABGHICD'.
If P is 0, In1 is inserted at the end of In2.
Multi-byte characters are counted as one character each.
An error occurs in the following cases. ENO will be FALSE, and Out will not change.
In1 or In2 does not end in a NULL character.
In1 results in a character code error.
The value of P is greater than the number of characters in In1.
The length of the insertion result exceeds the size of Out.
Additional Information
Precautions for Correct Use
abc:=INSERT(‘ABCD’, ‘GHI’, UINT#2);
LD ST
abc
‘ABCD’
‘GHI’
UINT#2
INSERT
EN ENO
In1
In2
P
‘ABGHICD’
Out=abc
‘ABCD’
In1
‘GHI’
In2
Insert

Table of Contents

Related product manuals