Len - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

LEN$

Instruction
STRING LENGTH
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
Text string first word
D
First destination word
S: Text String
15
S
Text string data: 4,095 characters max. + NUL
to
S + maximum 2,047 words
Note The data from S to S + the maximum 2,047 words must be in the same area.
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
OK
OK
OK
D
Flags
Name
Error Flag
Equal Flag
1076
Mnemonic
Variations
LEN$
@LEN$
Block program areas
Step program areas
OK
OK
Description
0
to
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
ER
• ON if the calculated result comes to more than 4,095 characters.
• 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 the calculated result is 0.
• OFF in all other cases.
Function
code
650
Calculates the length of a text string.
LEN$
LEN$(650)
S: Text string first word
S
D: First destination word
D
Subroutines
OK
Data type
UINT
UINT
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
OK
OK
---
OK
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
Variable
1
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents