Open loop motion control
12.6 Subroutines created by the Motion wizard for the Axis of Motion
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
631
The ACCEL_Time, DECEL_Time, and JERK_Time parameters determine the new
acceleration time, deceleration time, and jerk time in milliseconds (ms).
The Done parameter turns on when the Axis of Motion completes this subroutine.
The Error parameter (Page 659) contains the result of this subroutine.
12.6.10
AXISx_DIS subroutine
Table 12- 22 AXISx_DIS
LAD / FBD
STL
Description
CALL AXISx_DIS,
DIS_ON, Error
The AXISx_DIS subroutine turns the DIS output of the Axis of Motion
on or off. This allows you to use the DIS output for disabling or enabling
a motor controller. If you use the DIS output on the Axis of Motion, then
this subroutine can be called every scan or only when you need to
change the value of the DIS output.
Table 12- 23 Parameters for the AXISx_DIS subroutine
Inputs/Outputs
Data type
Operands
DIS_ON
BOOL
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *AC, *LD, Con-
stant
Error
BYTE
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *AC, *LD
When the EN bit turns on to enable the subroutine, the DIS_ON parameter controls the DIS
output of the Axis of Motion.
Note
If you have not defined a "DIS" output in the Motion wizard, the AXISx_DIS subroutine will
return an error.
The Error parameter (Page 659) contains the result of this subroutine.