Overview
Type:
|
Function
|
Available as of:
|
SystemInterface_1.32.6.0
|
Versions:
|
Current version
|
Task
Read the position values and the velocity values consistently and with a time reference.
Description
With this function, the consistent measured values (position iq_lrPos and velocity iq_lrVel) of a position source i_stLogAdr can be read. Here, the MechRefPosition and the RefVelocity are used. They are generated cyclically during active recording (FC_PosVelTimeEnable(lLogAdr, TRUE) ). However, there is a time offset between recording and reading the values that can be corrected by interpolation. The value iq_lrTimeDiffUs (in microseconds) is provided for this purpose.
Interface
Input
|
Data type
|
Description
|
i_stLogAdr
|
ST_LogicalAddress
|
Logical address of the position source
|
Input/Output
|
Data type
|
Description
|
iq_lrPos
|
LREAL
|
Position
|
iq_lrVel
|
LREAL
|
Velocity
|
iq_udiTsc
|
UDINT
|
Time stamp
|
iq_lrTimeDiffUs
|
LREAL
|
Time difference between reading and recording the values
|
Return Value
Data type
|
Description
|
DINT
|
0: OK
-99: Error detected
|