Command: CNC Info
Function: The command opens the CNC information about program <name> dialog.
menu
Context menu of an object (type CNC program)
Requirement: A CNC program is open in the editor.
Dialog: CNC Information of <name> Program
The dialog provides information about the specified CNC program.
Program name | Example: |
Version of function blocks | Example: |
Number of lines | Example: |
Number of objects | Example: |
Path length [units] | Example: |
Duration [s] | Time (in seconds) for traveling the preprocessed path Example: Requirement: Path preprocessing without errors and successfully generated interpolation points |
Show generated code | The Generated Code dialog opens. Requirement: The program contains no errors. |
Dialog: Generated Code
The dialog shows the IEC initialization code of the active CNC program, depending on the compile mode for the function block SMC_OutQueue
or SMC_CNC_REF
.
Example: IEC initialization code
{attribute 'linkalways'} VAR_GLOBAL {attribute 'init_on_onlchange'} {attribute 'init_on_onlchange'} Example : SMC_CNC_REF := (nElements := 22, strProgramName := 'Example', piStartPosition := (iFrameNo:=0, wAuxData:=7, wSProfile:=0, dX:=0, dY:=0, dZ:=0, dA:=0, dB:=0, dC:=0, dA1:=0, dA2:=0, dA3:=0, dA4:=0, dA5:=0, dA6:=0), pgc := ADR(Example_D), xPartofLM := TRUE); {attribute 'blobinit'} {attribute 'init_on_onlchange'} Example_D : ARRAY[0..21] OF SMC_GCODE_WORD := [ {p 35184372088832 } (byLetter := 78, fValue:=0, diValue:=0), {p 35184372088832 } (byLetter := 70, fValue:=0, diValue:=0), {p 35184372088832 } (byLetter := 69, fValue:=100, diValue:=100), {p 35184372088832 } (byLetter := 69, fValue:=-100, diValue:=-100), {p 35184372088832 } (byLetter := 128, fValue:=1, diValue:=1), {p 36283883716609 } (byLetter := 78, fValue:=0, diValue:=0), {p 36835250143233 } (byLetter := 71, fValue:=1, diValue:=1), {p 38486665068545 } (byLetter := 88, pAdr := ADR(g_x), byVarType := ANY_TO_BYTE(__TYPEOF(g_x) + 32)), {p 36291399909377 } (byLetter := 89, fValue:=0, diValue:=0), {p 36842766336001 } (byLetter := 70, fValue:=50, diValue:=50), {p 36844913819649 } (byLetter := 69, fValue:=30, diValue:=30), {p 37396817117185 } (byLetter := 69, fValue:=-30, diValue:=-30), {p 35184372088832 } (byLetter := 128, fValue:=2, diValue:=2), {p 36833639530498 } (byLetter := 78, fValue:=10, diValue:=10), {p 36835787014146 } (byLetter := 71, fValue:=1, diValue:=1), {p 36288178683906 } (byLetter := 88, fValue:=0, diValue:=0), {p 38488812552194 } (byLetter := 89, pAdr := ADR(g_y), byVarType := ANY_TO_BYTE(__TYPEOF(g_y) + 32)), {p 35184372088832 } (byLetter := 128, fValue:=3, diValue:=3), {p 36833639530499 } (byLetter := 78, fValue:=20, diValue:=20), {p 36835787014147 } (byLetter := 71, fValue:=1, diValue:=1), {p 36288178683907 } (byLetter := 88, fValue:=0, diValue:=0), {p 36289789296643 } (byLetter := 89, fValue:=0, diValue:=0)]; END_VAR