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-323
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Data Movement Instructions
2
MoveDigit
MoveDigit
The MoveDigit instruction moves digits (4 bits per digit) in a bit string.
*1 If you omit the input parameter, the default value is not applied. A building error will occur.
*2 0 to No. of bits in In/4 1
*3 0 to No. of bits in InOut/4 1
*4 0 to No. of bits in In/4
Instruction Name FB/FUN Graphic expression ST expression
MoveDigit Move Digit FUN MoveDigit(In, InPos, InOut,
InOutPos, Size);
Variables
Name Meaning I/O Description Valid range Unit Default
In Move
source
Input
Move source Depends on data type.
---
*1
InPos Move
source digit
Position of digit in In to move *2
0
InOutPos Move
destination
digit
Position of digit in Out to
receive the digit
*3
Size Number of
digits
Number of digits to move *4 1
InOut Move
destination
In-out Move destination Depends on data type.
--- ---
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
InPos OK
InOutPos OK
Size OK
InOut OKOKOKOK
Out OK
(@)MoveDigit
EN ENO
In Out
InPos
InOut
InOutPos
Size

Table of Contents

Related product manuals