L9_NBIT: Bit Control
(Original Document)
Naming
Name in LL984 Editor
Function Block Name
name of legacy 984 instruction
name in other tools and editors like:
  • Type Library Browser
  • Data Editor
  • Animation Tables
  • Search Results
Function Description
The L9_NBIT normal bit procedure lets you control the state of a specified bit within a word located in %MW memory by setting the bit to 1 or clearing the bit to 0. The bit being controlled is similar to a coil - when a bit is turned ON, it stays on until a control signal turns it OFF.
IN_REG is the word that contains the bit to be controlled. The BITLOC value identifies the specific bit - 1 through 16 - to be set to 1 or cleared to 0.
When the ENABLE pin is turned ON, the controlled bit is set to 1; when the ENABLE pin is turned OFF, the controlled bit is turned OFF. The OUT output echoes the state of the ENABLE pin.
Representation
Parameters
Input Pin
Name
Data Type
Address Range
Meaning
Top
ENABLE
OFF sets the specified bit to 0.
ON sets the specified bit to 1.
Node
Node Type
Name
Data Type
Address Range
Meaning
Top
IN/OUT
IN_REG
%MW
The variable located to a word that contains the bit to be controlled.
Bottom
IN
BITLOC
UINT
1...16
The specific bit to be controlled.
Valid range: 1 to 16.
Note: Employs LL984 bit addressing: 1-based starting at the left end of 16-bit sequences.
Output Pin
Name
Data Type
Address Range
Meaning
Top
OUT
BOOL
Echoes the state of the ENABLE input.