M-function, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 642

Advertising
background image

L-force | PLC Designer

General Editors

640

DMS 4.1 EN 03/2011 TD29

M-function
Using the additional functions or M-functions in DIN66025 a binary output can be set,
which starts another action. In this case in contrast to the switch points it will be
waited at the current position until the M-function has been confirmed by setting an
input of the interpolator. This often is used if the further processing of the program
depends on other processes.
It is possible to pass two numeric parameters using the K and L word. If more
parameters are needed, a variable of type SMC_M_PARAMETERS can be passed using
O$var$. The application can query the values of these parameters at runtime using the
function block SMC_GetMParameters. All used parameters are analyzed at the time of
decoding and stored in the SMC_GEOINFO structure in the SMC_OUTQUEUE buffer.
This usually take place on the interpolator a certain length of time before the
execution of the M-function.

Allowed syntax
M K L O

Parameters of
the command

M

Number of the M-functiom, M > 0

K

Passing parameter (LREAL)

L

Passing parameter (LREAL)

O

Reference to a variable of type SMC_M_PARAMETERS, which contains further passing
parameters
SMC_M_PARAMETERS (STRUCT)


Reference to a variable of type SMC_M_PARAMETERS, which contains further passing
parameters „SMC_M_PARAMETERS (STRUCT)“
Regard, that die signification of the M-function is not defined in the system, but is
defined machine-specific by the application and programmed out there.

Advertising