9/13/2005
Programming the SMLC
39
CoDeSys - SFC - MC_Open function block inputs and outputs
•
Fill in the entries on
the left of the function
block. ‘Knife’ is the
name of our axis.
‘Machine.swsetup’ is
the name of the setup
file we created in
SwPro.
•
O_AXTYPE_MOTOR
indicates that this is a
motor axis as
opposed to a pacer.
•
The Tag input is a string we use to help us find errors in the program.
•
hKnife is a variable of type AXIS_REF. This is a handle, or pointer, to our axis
that we will use whenever we want to do something with the axis. AXIS_REF
is a standard PLCopen type. When we enter the variable hKnife the Declare
Variable box pops up and we must select (or type in) AXIS_REF for the type.