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
InterpolatorInstance of interpolator
Input
bEnableBOOLWhile
TRUE, the function block is activeOutput
bMActiveBOOLThe value
TRUEindicates a M-function is currently activedKLREALM-parameter specified via word K
dLLREALM-parameter specified via word L
MParametersM-parameters, specified by a variable of type
SMC_M_PARAMETERS(passed by the O-word). Example G-Code: “N00 M5 K1 L2 O$mParams$”