Open loop motion control
12.7 Using the AXISx_ABSPOS subroutine to read the absolute position from a SINAMICS servo drive
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
523
Using the AXISx_ABSPOS subroutine to read the absolute position
from a SINAMICS servo drive
The following sections provide information about how to use the AXISx_ABSPOS subroutine
in your project to read the absolute position from a SINAMICS V90 servo drive.
AXISx_ABSPOS and AXISx_LDPOS subroutines usage examples
The absolute position is valid only after successful completion of the AXISx_ABSPOS
subroutine (Done parameter = ON and Error parameter = "no error") when executed with the
START parameter on. Since the Error and D_Pos parameters revert to default values when
the subroutine is executed with the START input off, you must include instructions in your
program to capture the valid absolute position value after completion of the subroutine.
Table 12- 32 Example: Using the AXISx_ABSPOS subroutine to read the absolute position from a SINAMICS V90 servo
drive
Network 1:
Read the servo position
from the drive.
CALL
AXIS0_ABSPOS,
L63.7, L63.6, L63.5,
1048576,1, 0,
V600.0,