Open loop motion control
12.6 Subroutines created by the Motion wizard for the Axis of Motion
S7-200 SMART
630
System Manual, V2.3, 07/2017, A5E03822230-AF
The New_Pos parameter provides the new value to replace the current position value that
the Axis of Motion reports and uses for absolute moves. Based upon the units of
measurement, the value is either a number of pulses (DINT) or the engineering units
(REAL).
The Done parameter turns on when the Axis of Motion completes this subroutine.
The Error parameter (Page 659) contains the result of this subroutine.
The C_Pos parameter contains the current position of the Axis of Motion. Based upon the
units of measurement, the value is either a number of pulses (DINT) or the number of
engineering units (REAL).
12.6.9
AXISx_SRATE subroutine
Table 12- 20 AXISx_SRATE
LAD / FBD
STL
Description
CALL AXISx_SRATE,
START, ACCEL_Time,
DECEL_Time,
JERK_Time, Done, Er-
ror
The AXISx_SRATE subroutine (Set Rate) commands the Axis of Mo-
tion to change the acceleration, deceleration, and jerk times.
Table 12- 21 Parameters for the AXISx_SRATE subroutine
Inputs/Outputs
Data type
Operands
START
BOOL
I, Q, V, M, SM, S, T, C, L
ACCEL_Time,
DECEL_Time, JERK_Time
DINT
ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *AC, *LD,
Constant
Done
BOOL
I, Q, V, M, SM, S, T, C, L
Error
BYTE
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *AC, *LD
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 copy the new time values to the configuration/profile table
and sends a SRATE 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 an
SRATE 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.
Содержание 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 ...