EasyManua.ls Logo

Omron NJ501-1500

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
Loading...
2-445
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Conversion Instructions
2
DispartDigit
DispartDigit
The DispartDigit instruction separates a bit string into 4-bit units.
* If you omit the input parameter, the default value is not applied. A building error will occur.
The DispartDigit instruction separates data to separate In into 4-bit units (digits) and stores them in
separation results array AryOut[].
First, In is separated into 4-bit units. Then, the lowest 4 bits are stored in AryOut[0]. AryOut[0] is BYTE
data, so 16#0 is stored in bits 4 to 7. This process is repeated for the number of digits that is specified
in number of digits to separate Num.
Instruction Name FB/FUN Graphic expression ST expression
DispartDigit Four-bit Separation FUN DispartDigit(In, Num, Ary-
Out);
Variables
Name Meaning I/O Description Valid range Unit Default
In Data to separate
Input
Bit string to separate Depends on data type.
---
*
Num Number of digits
to separate
Number of digits to separate 0 to No. of bits in In 1
AryOut[]
(array)
Separation
results array
In-out Separation results array 16#00 to 16#0F
--- ---
Out Return value Output Always TRUE TRUE only --- ---
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 OK OK OK
Num OK
AryOut[]
(array)
OK
Out OK
Function
(@)DispartDigit
EN ENO
In Out
Num
AryOut

Table of Contents

Related product manuals