HEIDENHAIN IK 220 Benutzerhandbuch
Seite 102

Driver Software for WINDOWS
102
IK220WaitRef
Waits until all active REF functions are ended (Reset, Start or
Stop with REF or REF traverse). If no timeout time was defined,
the function waits until the REF function is ended.
Prototype: BOOL IK220WaitRef (USHORT Axis);
Axis:
Number of the axis (0 to 15)
IK220PositionRef
Waits for an active edge of the reference pulse and then carries
out a latch command. The latched value corresponds to the
position of the reference mark. If no timeout time was defined,
the function waits until a reference pulse is detected. If the
reference pulse is already active when the function is
called, ”FALSE” is returned.
Prototype: BOOL
IK220PositionRef (USHORT Axis,
double* pData, LONG* pPeriod,
USHORT* pIntpol)
Axis:
Number of the axis (0 to 15)
pData:
Pointer to a variable in which the counter value is
saved.
pPeriod:
Pointer to a variable in which the signal period
value is saved.
pIntpol:
Pointer to a variable in which the interpolation
value is saved.
IK220PositionRef2
Waits for an active edge of the reference pulse and then saves
the current position value. Then waits for the falling edge of the
reference pulse and also saves that position value. The saved
values correspond to the position of the rising and falling edges
of the reference mark (see IK 220 Specifications). If no timeout
time was defined, the function waits until a reference pulse is
detected (see IK220SetTimeOut). If the reference pulse is
already active when the function is called, or if the timeout time
has expired before the reference mark was recognized, "FALSE"
is returned. The axis must be completely newly initialized after
a timeout!
Prototype: BOOL
IK220PositionRef2 (USHORT Axis,
double* pData, LONG* pPeriod,
USHORT* pIntpol)
Axis:
Number of the axis (0 to 15)
pData1:
Pointer to a variable in which the position value of
the rising edge is saved
pPeriod1:
Pointer to a variable in which the signal-period
value of the rising edge is saved
pIntpol1:
Pointer to a variable in which the interpolation
value of the rising edge is saved