![SEW-Eurodrive IPOS plus Скачать руководство пользователя страница 242](http://html1.mh-extra.com/html/sew-eurodrive/ipos-plus/ipos-plus_manual_1250042242.webp)
242
Manual – IPOSplus®
17
Standard functions
Compiler – Functions
Example
#include <constb.h>
SpeedZero () // Event function
{
// Statements of the event function
}
main()
{
while(1)
{
// Main program task 1
_SystemCall( SC_N0,SpeedZero );
// if speed == zero, call function
}
}
17.3.27 _TouchProbe
Syntax
_TouchProbe( action )
Description
Enables or locks a touch probe input. Touch probe inputs are the input terminals DI02
and DI03.
It takes 100 µs to store the touch probe positions, regardless of ongoing program pro-
cessing. The terminal level must have been altered for at least 200 µs to be detected
reliably. The argument can be used to select the edge change that causes a touch
probe.
If an edge change occurs on the enabled input, the current actual positions are saved in
specified IPOS
plus®
system variables. To take another measurement, the touch probe
must be enabled again.
The touch probe positions are stored in the following variables:
Key points
action
can adopt one of the following values:
Encoder
Encoder position
Position of touch
probe 1 (DI02)
Position of touch
probe 2 (DI03)
Motor encoder X15
H511 ActPos_Mot
H507 TpPos1_Mot
H505 TpPos2_Mot
External encoder X14
H510 ActPos_Ext
H506 TpPos1_Ext
H504 TpPos2_Ext
Absolute encoder X62
H509 ActPos_Abs
H503 TpPos1_Abs
H502 TpPos2_Abs
Virtual encoder (only for
MOVIDRIVE
®
B)
H376
H501 TpPos1_VE
H500 TpPos2_VE
TP_EN1: Enables the touch probe input DI02
TP_DIS1: Inhibits the touch probe input DI02
TP_EN2: Enables the touch probe input DI03
TP_DIS2: Inhibits the touch probe input DI03
TP_EN1_HI: Enables the touch probe input DI02 with rising edge
TP_EN1_LO: Enables the touch probe input DI02 with falling edge
TP_EN2_HI: Enables the touch probe input DI03 with rising edge
TP_EN2_LO: Enables the touch probe input DI03 with falling edge
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n