L-force | plc designer - softmotion – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual
Page 280

L-force | PLC Designer - SoftMotion
SoftMotion programming examples
Drive control with the aid of the CNC editor
280
L
DMS 5.2 EN 03/2011 TD17
– The interpolating part of the IEC program nearly remains identical, only with the
difference that the data input of the interpolator does not correspond to the CNC
program name (ADR(Example)) like before, but consists of the OutQueue output of
the path preprocessing blocks (g_CheckVel.poqDataOut).
9. Creating the operation and test interface:
– For visualising the previous example it is reasonable to add templates of the new
blocks (SMC_NCDecoder and SMC_CheckVelocities). Furthermore it should be
possible to alter the global variables g_x and g_y, in order to be able to check their
function during commissioning later on.
10. Commissioning:
– The program created can be compiled and started in an error-free manner and
executes the CNC program after the execute inputs of the decoder and the
interpolator have been set. If the values of the global variables are changed, they are
accepted when the decoder is restarted, and the path adapts itself accordingly.
Please also note the function of the append input of the decoder.