Open loop motion control
12.6 Subroutines created by the Motion wizard for the Axis of Motion
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
513
The C_Speed parameter contains the current speed of the Axis of Motion. Based upon the
units of measurement, the value is either a number of pulses/second (DINT) or the
engineering units/second (REAL).
Table 12- 14 AXISx_RSEEK
START, Done, Error
The AXISx_RSEEK subroutine (Seek Reference Point Position) initi-
ates a reference point seek operation, using the search method in the
configuration/profile table. When the Axis of Motion locates the refer-
ence point and motion has stopped, the Axis of Motion loads the
RP_OFFSET parameter value into the current position.
Table 12- 15 Parameters for the AXISx_RSEEK subroutine
I, Q, V, M, SM, S, T, C, L, Power Flow
I, Q, V, M, SM, S, T, C, L
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *AC, *LD
The default value for RP_OFFSET is 0. You can use the Motion wizard, the Motion Control
Panel, or the AXISx_LDOFF (Load Offset) subroutine to change the RP_OFFSET value.
Turn on the EN bit to enable the subroutine. Ensure that the EN bit stays on until the Done
bit signals that the execution of the subroutine has completed.
Turn on the START parameter to send a RSEEK command to the Axis of Motion. For each
scan when the START parameter is on and the Axis of Motion is not currently busy, the
subroutine sends a RSEEK command to the Axis of Motion. To ensure that only one
command is sent, use an edge detection element to pulse the START parameter on.
The Done parameter turns on when the Axis of Motion completes this subroutine.
The Error parameter (Page 545) contains the result of this subroutine.