9300 Servo PLC
System blocks
2.12 MCTRL_MotorControl
2-51
L
ServoPLC EN 2.0
Touch probe configuration
Code LCD
Possible settings
IMPORTANT
Lenze Selection
C0910 TP delay 0 Touch probe delay
• Compensation of delay times of TP
signal source at X5/E4
-32767 {1 inc} 32767
C0911 MCTRL TP sel 0 Touch probe selection
0 Touch probe via zero pulse
1 Touch probe through digital input X5/E4
C0912 MCTRL TP EDGE 0 Touch probe activation
• For touch probe via digital input
X5/E4
(C0911 = 1)
0 Activation with positive signal
1 Activation with nega tive signal
• Use C0490 to select the feedback system that generates the zero pulse. (^ 2-50)
Functional sequence
1. The TP is signal-controlled via the digital input X5/E4 or a zero pulse from the incremental
encoder input X8 or resolver input X7.
2. If a TP has occurred, then
MCTRL_bActTPReceived_b
is set = TRUE.
3. After the start of the task,
MCTRL_dnActIncLastScan_p
gives the number of increments
[inc/msec] that have been counted since the TP.
4. Following,
MCTRL_bActTPReceived_b
= FALSE is set.
Note!
It is necessary that all three outputs (
MCTRL_nNAct_v
,
MCTRL_bActTPReceived_b
and
MCTRL_dnActIncLastScan_p
) are processed in the task even if only one signal is required.
MCTRL_nNAct_v
• The value
MCTRL_nNAct_v
is scaled in increments per millisecond.
(INT) 16384 corresponds to 15000 rpm. See chapter 1.2.7, “Signal types and normalisations”.
(^ 1-8)
• For every task in which
MCTRL_nNAct_v
is used, the operating system creates an individual
counter that is reset after every start of the task (task-internal process image).
Example (
MCTRL_nNAct_v
in a 10 msec task):
• When the 10 msec task starts, the value of the integrator is stored in a local area of the task
and the integrator is reset. The value in the local area gives an average value in increments per
1msec.
• If a position value is to be derived from this value, then it must be multiplied by
SYSTEM_nTaskInterval
/ 4, to get the result in increments per
10 msec, as in the example.
Example: In a 1 msec task,
SYSTEM_nTaskInterval
has the value 4 (4 * 250 µs=1msec)
• For Lenze FBs, this process has already been implemented in the FBs.
efesotomasyon.com - Lenze