Select_Limit Instructions
374 Rockwell Automation Publication 1756-RM006K-EN-P - November 2018
SNEG Structure
Input Parameter Data Type Description
EnableIn BOOL Enable input. If false, the instruction
does not execute and outputs are not
updated.
Default is true.
Structured Text:
No effect. The instruction executes.
In REAL The analog signal input to the
instruction.
Valid = any float
Default = 0.0
NegateEnable BOOL Negate enable. When NegateEnable is
true, the instruction sets Out to the
negative value of In.
Default is true.
Output
Parameter
Data Type Description
EnableOut BOOL Indicates if instruction is enabled.
Cleared to false if Out overflows.
Structured Text
Operand Type Format Description
SNEG tag SELECTABLE_NEGATE Structure SNEG structure
See Structured Text Syntax for more information on the syntax of expressions
within structured text.
Description
The SNEG instruction operates as follows:
Condition Action
NegateEnable is true Out = - In
NegateEnable is false Out = In
Affects Math Status Flags
No
Major/Minor faults
None specific to this instruction. See Common Attributes for operand-related
faults.