EnableIn and EnableOut parameters
EnableIn and EnableOut parameters appear in the
Tag Editor
by default for an Add-On Instruction and are read-only. Behaviors of EnableIn and EnableOut parameters conform to ladder diagram. To execute the primary logic routine in either language environment, the EnableIn parameter must be True (1). The primary logic routine within the instruction definition should not reference the EnableIn parameter. By default, the EnableOut parameter keeps the same state as the EnableIn parameter. User logic can override a parameter and force the state of the EnableOut parameter.
TIP:
In an EnableIn False routine, EnableOut cannot be made True if EnableIn is False (0).
If the EnableIn parameter of an instruction is False (0), the logic routine does not execute and the EnableOut parameter is False. If the instruction contains an EnableInFalse routine and the parameter is enabled, the EnableInFalse routine executes.
Provide Feedback