EasyManuals Logo

Omron NJ501-1500 User Manual

Omron NJ501-1500
990 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 #583 background imageLoading...
Page #583 background image
2-535
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Text String Instructions
2
GetByteLen
GetByteLen
The GetByteLen instruction counts the number of bytes in a text string.
The GetByteLen instruction counts the number of bytes in count string In. A NULL character at the end
of the text string is not counted.
The following example is for when In is ‘ABCDEF’. The value of variable abc will be 6.
Instruction Name FB/FUN Graphic expression ST expression
GetByteLen Get Byte Length FUN Out:=GetByteLen(In);
Variables
Name Meaning I/O Description Valid range Unit Default
In Count
string
Input Text string to count number
of bytes
Depends on data type.
--- ''
Out Number of
bytes
Output Number of bytes 0 to 1985 Bytes
---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In OK
Out OK
Function
(@)GetByteLen
EN ENO
In Out
abc:=GetByteLen(‘ABCDEF’);
LD ST
abc
‘ABCDEF’
GetByteLen
EN ENO
In
6
Out=abc
‘ABCDEF’
In
Number of bytes

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals