Dispartdigit - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

DispartDigit

The DispartDigit instruction separates a bit string into 4-bit units.
Instruction
DispartDigit
Four-bit Separation
Variables
Name
Meaning
In
Data to separate
Num
Number of digits
to separate
AryOut[]
Separation
(array)
results array
Out
Return value
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
In
OK OK OK OK
Num
AryOut[]
OK
(array)
Out
OK
Function
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.
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FUN
I/O
Description
Bit string to separate
Input
Number of digits to separate 0 to No. of bits in In
In-out
Separation results array
Output
Always TRUE
OK
Graphic expression
(@)DispartDigit
EN
ENO
In
Out
Num
AryOut
Valid range
Depends on data type.
16#00 to 16#0F
TRUE only
Integers
2 Instruction Descriptions
ST expression
DispartDigit(In, Num,
AryOut);
Unit
Default
*
---
1
---
---
---
---
Times, durations,
dates, and text strings
2
2-467

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents