Interfaces
3.8 I/O interface
SIMOTION C
74
Operating Instructions, 02/2012
Note
Local measuring (onboard) on SIMOTION C
A measurement is only undertaken when there are at least 2 servo cycles between the
_enableMeasuringInput command being called and the real switching signal expected
on the probe (positive/negative flank).
In order to reliably guarantee time-critical processes, the programming should be
undertaken in a synchronous task, e.g. IPO-synchronous task. It may take up to 2
servo cycles for the measurement to be available in
Messtaster.counterMeasuredValue1 after the status change in
Messtaster.actualInputState (POSITIVE => NEGATIVE or vice versa).
When the measurement result is received, the measurement position is stored. Once
the measurement has been taken, the state variable is set to TRIGGER_OCCURRED,
and the measured values can be evaluated using the measuredValue1 and
measuredValue2 variables for two measured edges.
The counterMeasuredValue1 and counterMeasuredValue2 counter variables are
defined for the measuredValue1 and measuredValue2 system variables and are
automatically incremented by a value of one for each measurement input. New results
can be traced immediately and can also be read from non-IPO-synchronous tasks.
You will find detailed information on this subject in the SIMOTION Function Manual
Output Cams and Measuring Inputs.