Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions
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'.
LD
EN
'ABCD'
In1
'GHI'
In2
UINT#2
P
In1
'ABCD'
Insert
In2
'GHI'
Additional Information
If P is 0, In1 is inserted at the end of In2.
Precautions for Correct Use
• 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.
2-534
INSERT
ENO
abc
Out=abc
'ABGHICD'
ST
abc:=INSERT('ABCD', 'GHI', UINT#2);

NJ-series Instructions Reference Manual (W502)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents