Motion control C3F_T40
306 192-121102 N04 June 2008
5.13.4. Memorizing the signals with the trigger event (C3_TouchProbe)
FB name C3_TouchProbe
Memorizing signals / objects with the trigger event
- replaces the MC_TouchProbe module -
VAR_IN_OUT
Axis
INT Axis ID (Library constants)
VAR_INPUT
Execute
BOOL Activates the module if there is a rising edge
SignalSource
Pointer
Selects the signal to be scanned.
The<address opertor>must be used imperatively.
The signal scanned must be in the REAL or the INT
format.
FallingEdge
BOOL
If TRUE, it is triggered in the falling edge.
The logical status after a possible input inversion is
respected.
TriggerInput
INT Selects the trigger input.
Constant TouchProbeInputx (see note)
ExpectedValue
REAL Value at which the trigger event is expected.
Tolerance
REAL
Tolerance interval around ExpectedValue, where the
trigger event is accepted (always positive) (with
reference to the signal source).
StartIgnore
REAL
The beginning of the range in which the trigger event
will not be acknowledged with Done or Error (with
reference to the signal source).
StopIgnore
REAL
The end of the range in which the trigger event will not
be acknowledged with Done or Error (with reference to
the signal source).
EnableIgnoreZone
BOOL Activate IgnoreZone.
Abort
BOOL Deactivate module.
VAR_OUTPUT
Done
BOOL
Trigger event occurred within the tolerance interval and
the signal was detected.
RecordedSignal_ Real
REAL
Value scanned at the time of the trigger event, if the
source is available in the coDeSys "REAL format.
Please respect the format information of the signal
source (SignalSource)
RecordedSignal_ INT
INT
Value scanned at the time of the trigger event, if the
source is available in the coDeSys "INT" format.
Please respect the format information of the signal
source (SignalSource)
Busy
BOOL
Module active and no scanning signal occurred outside
the IgnoreZone.
Error
BOOL Error while executing module.
Note:
Temporal precision of signal recording: <1µs
TriggerInput Trigger-input:
via the constants "TouchProbeInput0" ... "TouchProbeInput7" (X12/6 - X12/14)
the trigger signal input is selected.
Attention!
Max. one entity of the module can be active as the hardware resources are
only available once!
Several entities being activated one after the other are permitted.