Omron CJ - INSTRUCTIONS Reference Manual page 1127

Table of Contents

Advertisement

Flags
Name
Error Flag
Equal Flag
Function
LEFT$
LEFT$(652) reads the number of characters
designated by S2, from the left (the beginning)
of the first word of the text string designated by
S1 until the NUL code (00 hex), and outputs
the result to D (with NUL added at the end).
If the number of characters fetched exceeds
the number of characters designated by S1,
the entire S1 text string will be output.
If 0 (0000 hex) is designated as the number of
characters to be read, the two NUL characters
(0000 hex) will be output to D.
LEFT$(652) can be processed in the background. Refer to the SYSMAC CS/CJ/NSJ Series PLC
Programming Manual (W394) or the CJ2 CPU Unit Software Operation Manual (W473) for details.
RGHT$
RGHT$(653) reads the number of characters
designated by S2, from the right (end) of the
first word of the text string designated by S1
until the NUL code (00 hex), and outputs the
result to D (with NUL added at the end).
If the number of characters to be read exceeds
the number of characters designated by S1,
the entire S1 text string will be output.
If 0 (0000 hex) is designated as the number of
characters to be read, the two NUL characters
(0000 hex) will be output to D.
RGHT$(653) can be processed in the background. Refer to the SYSMAC CS/CJ/NSJ Series PLC
Programming Manual (W394) or the CJ2 CPU Unit Software Operation Manual (W473) for details.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Label
ER
• ON if more than 4,095 characters are designated by S1.
• ON if more than 4,095 characters (0FFF hex) are designated by S2.
• ON if the Communications Port Enabled Flag for the communications port number specified as the
Com Port number for Background Execution is OFF when background processing is specified.
• OFF in all other cases.
=
• ON if 0000 (hex) is output to D.
• OFF in all other cases.
3. Instructions
Operation
3
1089

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents