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 #104 background imageLoading...
Page #104 background image
2 Instruction Descriptions
2-56
NJ-series Instructions Reference Manual (W502)
z ResetABit
The ResetABit instruction changes the value of the bit at bit position Pos in the bit string InOut to
FALSE.
The bits that are not specified do not change.
Even if EN changes to FALSE after execution, the Pos bit in InOut will not change.
The following example shows the SetABit instruction when Pos is USINT#3.
• The SetABit and ResetABit instructions change the value of the specified bit to either TRUE or
FALSE.
• With the OutABit instruction, however, you can dynamically change the value to which the specified
bit is set.
• If this instruction is in a master control region and the master control region is reset, the value of
InOut is retained.
• If this instruction is not executed due to the execution of a jump instruction (e.g., the JMP instruction),
the value of InOut is retained.
• Return value Out is not used when the instruction is used in ST.
• An error occurs in the following case. ENO will be FALSE, and Out and InOut will not change.
• The value of Pos is greater than No. of bits in In − 1.
Additional Information
Differences between the SetABit and ResetABit Instructions and the
OutABit Instruction
Precautions for Correct Use
SetABit(abc, USINT#3);
LD ST
abc
USINT#3
abc
SetABit
EN ENO
InOut
Pos
InOut=abc
Pos=USINT#3
1 1 0 0 0 0 0 1
1 1 0 0 1 0 0 1
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