SMC_DisplayNCCallstack (FB)¶
FUNCTION_BLOCK SMC_DisplayNCCallstack
This function block displays the names of the NC-programs which the currently interpolated movement comes from (at “interpolation time”).
Attention: This function block must be called in the same task as the interpreter.
- InOut:
Scope
Name
Type
Comment
Inout Const
csi
Output of the instance of SMC_NCInterpreter that has emitted the ongoing movement.
ipo
The interpolator in use.
Input
Enable
BOOL
Output
Valid
BOOL
Error
BOOL
ErrorID
SMC_Error
Callstack
ARRAY [0..(SoftMotion_NC2_Constants.IPR_CALLSTACK_SIZE - 1)] OF STRING
The callstack that corresponds to the movement that is currently being interpolated. Callstack[0] holds the name of the (sub)program that the current movement originates from. If it is a sub-program, then Callstack[1] holds the name of the calling (sub)program and so on. The list of active programs is terminated by an empty string.