EasyManuals Logo

Omron CJ - INSTRUCTIONS User Manual

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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals