EasyManuals Logo

Omron NJ501-1500 User Manual

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
Page #374 background imageLoading...
Page #374 background image
2 Instruction Descriptions
2-326
NJ-series Instructions Reference Manual (W502)
The TransBis instruction moves Size bits from the InPos bit in move source In to the InOutPos bit in
move destination InOut.
The following example is for when InPos is USINT#3, InOutPos is USINT#4, and Size is USINT#2.
The bits in the move source and move destination can overlap.
• Set the instruction so that the positions of the bits at the source and destination do not exceed the
most-significant bit in In or InOut. An error will occur and the instruction will not operate.
• Nothing is moved if the value of Size is 0.
• The bits in InOut that are not involved in the move operation do 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.
• The value of InPos or Size exceeds the number of bits in In.
• The value of InOutPos or Size exceeds the number of bits in InOut.
Function
Additional Information
Precautions for Correct Use
TransBits(abc, USINT#3, def, USINT#4, USINT#2);
LD ST
abc
def
def
USINT#3
USINT#4
USINT#2
TransBits
EN ENO
In
InPos
InOut
InOutPos
Size
In=abc
InOut=def
0 0
InPos=USINT#3
InOutPos=USINT#4
0 0 0 0 0 0
1 1
0 0 1 1 1 1
Size=USINT#2
Most-significant bit
Bit 0

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals