2-541
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Text String Instructions
2
TrimL and TrimR
The following example for the TrimL instruction is for when In is ‘ AB C’. The value of variable abc will
be ‘ AB C’.
An error occurs in the following cases. ENO will be FALSE, and Out will not change.
• In does not end in a NULL character.
• In results in a character code error.
• The conversion result exceeds the size of Out.
Precautions for Correct Use
abc:=TrimL(‘ AB C’);
LD ST
‘ AB C’
abc
TrimL
EN ENO
In