Left$/Rght - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

LEFT$/RGHT$

Instruction
GET STRING LEFT
GET STRING RIGHT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S1
Text string first word
S2
Number of characters
D
First destination word
S1: Text String
15
Text string data: 4,095 characters max. + NUL
S1
to
S1 + maximum 2,047 words
S2: Number of Characters
0000 to 0FFF hex or &0 to &4095
Note
• The data from S1 to S1 + the maximum 2,047 words and from D to D + the maximum 2,047 words must be in the
same area.
• The data from S1 to S1 + the maximum 2,047 words and from D to D + the maximum 2,047 words can overlap.
Operand Specifications
Word addresses
Area
CIO
WR
HR
S1
S2
OK
OK
OK
D
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
LEFT$
@LEFT$
RGHT$
@RGHT$
LEFT$
LEFT$(652)
S1: Text string first word
S1
S2: Number of characters
S2
D
D: First destination word
Block program areas
Step program areas
OK
OK
Description
0
to
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Function
code
Fetches a designated number of characters from
652
the left (beginning) of a text string.
Reads a designated number of characters from
653
the right (end) of a text string.
Subroutines
OK
Data type
UINT
UINT
UINT
D: First Destination Word
D + maximum 2,047 words
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
OK
OK
OK
OK
---
---
3. Instructions
Function
RGHT$
RGHT$(653)
S1: Text string first word
S1
S2: Number of characters
S2
D
D: First destination word
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
Variable
1
Variable
15
D
Text string data: 4,095 characters max. + NUL
to
to
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
3
0
TR
bits
---
---
1069

Advertisement

Table of Contents
loading

Table of Contents