Wy are you not using the standart way to insert the MotionInterface? So you don't have to care about the "internal" FBs...
The insert will
add a MotionInterface program to the project
and change the tast configuration
add MainTaskMotIF and call the main AxisInterface program (and some demo progs which can be deleted)
add a MotionTask, in which a possible motion sync prog part of the motion interface will be called.
Now you can easily command axis by
writing the global command array stuct
reading the global status array struct.
Regards
Jochen
... View more