Open loop motion control
12.6 Subroutines created by the Motion wizard for the Axis of Motion
S7-200 SMART
634
System Manual, V2.3, 07/2017, A5E03822230-AF
12.6.13
AXISx_RDPOS subroutine
Table 12- 28 AXISx_RDPOS
LAD / FBD
STL
Description
CALL AXISx_RDPOS,
Error, I_Pos
The AXISx_RDPOS subroutine returns the current motion axis position.
Table 12- 29 Parameters for the AXISx_RDPOS subroutine
Inputs/Outputs
Data type
Operands
Error
BYTE
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *AC, *LD
I_Pos
DINT, REAL ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *AC, *LD
Turn on the EN bit to enable the subroutine.
The Error parameter (Page 659) contains the result of this subroutine.
The I_Pos parameter contains the current motion axis position.
Note
Execution of this command returns the actual current position of the axis. Position status
values provided in other motion subroutines, such as AXISx_CTRL, AXISx_GOTO, and so
forth, are updated periodically. Therefore, the position values reported by those commands
and the position value reported by this command may differ somewhat as a result and is
normal.
Содержание SIMATIC S7-200
Страница 30: ...Product overview 1 7 Programming software S7 200 SMART 30 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 267: ...Program instructions 7 6 Counters S7 200 SMART System Manual V2 3 07 2017 A5E03822230 AF 267 HSC modes 3 and 4 ...
Страница 394: ...Program instructions 7 18 Subroutine S7 200 SMART 394 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 425: ...Communication 8 5 PROFIBUS S7 200 SMART System Manual V2 3 07 2017 A5E03822230 AF 425 ...
Страница 786: ...Technical specifications A 11 S7 200 SMART cables S7 200 SMART 786 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 798: ...Error codes C 4 PLC fatal error codes S7 200 SMART 798 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 848: ...Ordering information F 6 Human Machine Interface devices S7 200 SMART 848 System Manual V2 3 07 2017 A5E03822230 AF ...