NOT_MASK (bit to bit NOT mask)
Integer bit-to-bit negation mask, inverts a parameter value.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
NOT_MASK

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
EN | Input | BOOL | When set to true, the instruction is enabled.
|
IN | Input | DINT | Must have integer format. |
NOT_MASK | Output | DINT | Bit-to-bit negation on 32 bits of IN. |
ENO | Output | BOOL | Enables output. Applies to ladder diagram programs. |
NOT_MASK examples
NOT_MASK function block diagram example

NOT_MASK ladder diagram example

NOT_MASK structured text example

(*ST equivalence: *) result := NOT_MASK (16#1234); (* result is 16#FFFF_EDCB *)
Results

Provide Feedback