Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions
Function
The MoveDigit instruction moves Size digits from the InPos digit in move source In to the InOutPos digit
in move destination InOut. One digit is four bits.
The following example is for when InPos is USINT#1, InOutPos is USINT#2, and Size is USINT#2.
LD
abc
USINT#1
def
USINT#2
USINT#2
1 digit = 4 bits
In=abc
InOut=def
Precautions for Correct Use
• If the position of the digit at the destination exceeds the most-significant digit of InOut, the remaining
digits are stored the least-significant digits of InOut.
• If the position of the digit at the source exceeds the most-significant digit of In, the remaining digits
are moved to the least-significant digits of In.
• If the value of Size is 0, the value of Out will be TRUE and InOut will not change.
• Return value Out is not used when the instruction is used in ST.
• An error occurs in the following cases. ENO will be FALSE, and InOut will not change.
• The value of InPos is outside of the valid range.
• The value of InOutPos is outside of the valid range.
• The value of Size is outside of the valid range.
2-324
MoveDigit
EN
ENO
In
InPos
InOut
def
InOutPos
Size
Size=USINT#2
Digit 3
Digit 2
Digit 1
Digit 3
Digit 2
Digit 1
InOutPos=USINT#2
ST
MoveDigit(abc, USINT#1, def, USINT#2, USINT#2);
InPos=USINT#1
Digit 0
Digit 0

NJ-series Instructions Reference Manual (W502)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents