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
NOT_MASK
NOT_MASK parameters
Parameter
Parameter Type
Data Type
Description
EN
Input
BOOL
When set to true, the instruction is enabled.
  • TRUE: Execute the current computation.
  • FALSE: There is no computation.
Applies to ladder diagram programs.
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 function block diagram example
NOT_MASK ladder diagram example
NOT_MASK ladder diagram example
NOT_MASK structured text example
NOT_MASK structured text example
(*ST equivalence: *) result := NOT_MASK (16#1234); (* result is 16#FFFF_EDCB *)
Results
Results
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal