Register Input Functions

Register input functions evaluate logic using the values of registers as inputs. Each trigger motion has 8 registers numbered from 0 to 7 that are unique to that trigger motion. When a new trigger motion is started, all registers are set to 0. Registers can be set to 1 by defining trigger events with the SetReg output function.

Input Function

Description

Reg

Evaluates to TRUE when the specified register is 1 and FALSE otherwise.

../_images/WMXDOC_FUNC_TRG_EVENTS_INPUTFUNC_image0.png

Parameters are specified with the Reg struct.

NotReg

Evaluates to TRUE when the specified register is 0 and FALSE otherwise.

../_images/WMXDOC_FUNC_TRG_EVENTS_INPUTFUNC_image1.png

Parameters are specified with the NotReg struct.

OrReg

Evaluates to TRUE when either of the two specified registers is 1, and FALSE otherwise.

../_images/WMXDOC_FUNC_TRG_EVENTS_INPUTFUNC_image4.png

Parameters are specified with the OrReg struct.

AndReg

Evaluates to TRUE when both of the two specified registers are 1, and FALSE otherwise.

../_images/WMXDOC_FUNC_TRG_EVENTS_INPUTFUNC_image2.png

Parameters are specified with the AndReg struct.

XorReg

Evaluates to TRUE when only one of the two specified registers is 1, and FALSE otherwise.

../_images/WMXDOC_FUNC_TRG_EVENTS_INPUTFUNC_image6.png

Parameters are specified with the XorReg struct.

NandReg

Evaluates to FALSE when both of the two specified registers are 1, and TRUE otherwise.

../_images/WMXDOC_FUNC_TRG_EVENTS_INPUTFUNC_image3.png

Parameters are specified with the NandReg struct.

NorReg

Evaluates to FALSE when either of the two specified registers is 1, and TRUE otherwise.

../_images/WMXDOC_FUNC_TRG_EVENTS_INPUTFUNC_image5.png

Parameters are specified with the NorReg struct.

XnorReg

Evaluates to FALSE when only one of the two specified registers is 1, and TRUE otherwise.

../_images/WMXDOC_FUNC_TRG_EVENTS_INPUTFUNC_image7.png

Parameters are specified with the XnorReg struct.