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 #588 background imageLoading...
Page #588 background image
2 Instruction Descriptions
2-540
NJ-series Instructions Reference Manual (W502)
TrimL and TrimR
z TrimL
The TrimL instruction deletes blank characters from the beginning of string to trim In. If there are no
blank characters at the beginning of the text string, nothing is done.
z TrimR
The TrimR instruction deletes blank characters from the end of string to trim In. If there are no blank
characters at the end of the text string, nothing is done.
Both instructions output a NULL character at the end of the text string. Both ASCII spaces (16#20) and
two-byte Japanese spaces (16#E38080) are treated as blank characters.
TrimL: Removes blank space from the beginning of a text string.
TrimR: Removes blank space from the end of a text string.
Instruction Name FB/FUN Graphic expression ST expression
TrimL Trim String Left FUN Out:=TrimL(In);
TrimR Trim String Right FUN Out:=TrimR(In);
Variables
Name Meaning I/O Description Valid range Unit Default
In String to
trim
Input Text string to trim Depends on data type.
--- ''
Out Trimming
result
Output Text string after trimming Depends on data type.
--- ---
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
(@)TrimL
EN ENO
In Out
(@)TrimR
EN ENO
In Out

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