Technical data
Technology functions
CPU 317T: Technology Functions
6-16 A5E00251798-03
MC_Home - Example
The example demonstrates the reaction to on-the-fly homing.
Axis_1 is started with the call of MC_MoveVelocity. Passive homing is enabled
(MC_Home; Mode = 2). At the next synchronization event (here: edge at the
BERO), the actual position of the axis is set to 180°.
Velocity
Axis_1
MC_Home
Axis
Axis_1
Position
180
Mode
2
DoneFlag0
Error
ErrorID
Execute
Exe_2
CommandAborted
50
180
InVel_1
Exe_1
1
0
1
0
1
0
Exe_2
Done_1
1
0
360
0
t
Done_1
Done
MC_MoveVelocity
Axis
Axis_1
Current
0
Velocity
50
Acceleration
10
Deceleration10
Jerk
0
Direction1
DoneFlag
0
Error
ErrorID
Execute
Exe_1
CommandAborted
FB1
InVel_1
InVelocity
FB2
FB1
FB2
t
t
t
t
t
t
Position
Axis_1
BERO
0
1
PositionControl1
Busy Busy