66
8.2 Selecting the Trigger Source for the Axis
The trigger signal for the axis can be selected from different sources. This setting is possible only in the Polling mode.
Function
EIB7_ERR EIB7AxisTriggerSource ( EIB7_AXIS axis,
EIB7_AxisTriggerSrc src
)
Parameters
axis AXIS handle
src Trigger source
src Description
EIB7_AT_TrgInput1 Trigger input channel 1
EIB7_AT_TrgInput2 Trigger input channel 2
EIB7_AT_TrgInput3 Trigger input channel 3
EIB7_AT_TrgInput4 Trigger input channel 4
EIB7_AT_TrgSW1 Software trigger channel 1
EIB7_AT_TrgSW2 Software trigger channel 2
EIB7_AT_TrgSW3 Software trigger channel 3
EIB7_AT_TrgSW4 Software trigger channel 4
EIB7_AT_TrgRI Reference pulse of the corresponding axis
EIB7_AT_TrgRImaskedCH1 Gated reference pulse of axis 1 (A&B&RI)
EIB7_AT_TrgIC Interval counter
EIB7_AT_TrgPuls Pulse-counter trigger
EIB7_AT_TrgTimer Timer trigger
Return code
The return code delivers a status for the function call. In addition to the standard return codes, the following error messages
can occur.
EIB7_ParamInvalid Parameter invalid
8.3 Setting the Trigger Edge for the Reference Pulse
The time for reference-pulse triggering can be set to the rising or falling edge or to both edges of the reference-pulse signal.
If both edges are used for the trigger event, it must be ensured that the maximum trigger rate is not exceeded.
Function
EIB7_ERR EIB7SetRITriggerEdge ( EIB7_AXIS axis,
EIB7_RITriggerEdge edge
)
Parameters
axis AXIS handle
edge Active trigger edge for the reference pulse
edge Description
EIB7_RI_Rising Rising edge of the reference pulse
EIB7_RI_Falling Falling edge of the reference pulse
EIB7_RI_Both Both edges of the reference pulse
Return code
The return code delivers a status for the function call. In addition to the standard return codes, the following error messages
can occur.
EIB7_ParamInvalid Parameter invalid