Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions
Function
The MoveBit instruction moves one bit from the bit position InPos in move source In to the bit position
InOutPos in move destination InOut.
The following example is for when InPos is USINT#3 and InOutPos is USINT#5.
LD
abc
USINT#3
def
USINT#5
Most-significant bit
0 0
In=abc
0 0
InOut=def
InOutPos=USINT#5
Precautions for Correct Use
• 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.
2-358
MoveBit
EN
ENO
In
InPos
InOut
def
InOutPos
InPos=USINT#3
Bit 0
0 0 1 0 0 0
1 0 0 0 0 0
ST
MoveBit(abc, USINT#3, def, USINT#5);

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents