SMC_GetMParameters (FB)¶
FUNCTION_BLOCK SMC_GetMParameters
If the interpolator is waiting for an M-function, this function block can be used to query the parameters that have been set for this M-function in the G-Code (K, L, O words).
- InOut:
Scope
Name
Type
Comment
Inout
Interpolator
Instance of interpolator
Input
bEnable
BOOL
While
TRUE
, the function block is activeOutput
bMActive
BOOL
The value
TRUE
indicates a M-function is currently activedK
LREAL
M-parameter specified via word K
dL
LREAL
M-parameter specified via word L
MParameters
M-parameters, specified by a variable of type
SMC_M_PARAMETERS
(passed by the O-word). Example G-Code: “N00 M5 K1 L2 O$mParams$”