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
623
The C_Dir parameter indicates the current direction of the motor:
● Signal state of 0 = positive
● Signal state of 1 = negative
Note
The Axis of Motion reads the configuration/profile table only at power
-up or when
commanded to load the configuration.
If you use the Motion wizard to modify the configuration, then the AXISx_CTRL
subroutine automatically commands the Axis of
Motion to load the configuration/profile
table every time the CPU changes to RUN mode.
If you use the Motion control panel to modify the configuration, clicking the Update
Configuration button commands the Axis of Motion to load the new
configuration/profile table.
If you use another method to modify the configuration, then you must also issue an
AXISx_CFG command to the Axis of Motion to load the configuration/profile table.
Otherwise, the Axis of Motion continues to use the old configuration/profile table.
Table 12- 8 AXISx_MAN
JOG_P, JOG_N, Speed,
Dir, Error, C_Pos,
C_Speed, C_Dir
The AXISx_MAN subroutine (Manual Mode) puts the Axis of Motion
into manual mode. This allows the motor to be run at different speeds
or to be jogged in a positive or negative direction.
You can enable only one of the RUN, JOG_P, or JOG_N inputs at a
time.