Hello, I am stuck in my project where I need to read an actual line of interpolated G-Code. I used the function block SM_GCodeViever. I am afraid that I am competly lost in declaration of FB variables. Exacly variable:
Gcode: ARRAY [0..c_uiLines] OF STRING; (please see attached part of my project)
Is there available some example of using SM_GCodeViever?
Peter
I also wanted to ask if there is sample code how to use SMC_GCodeViewer?
I tried to connect the functionblock SMC_GCodeViewer as described in the help. There is no problem to build and dowmload the code.
But unfortunately I get an exception error when I run the PLC. .
BR
Matthias
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
das ist eben leider nicht der Fall. In dem Beispiel werden die Zeilen via Text-Editor ausgegeben, die zuvor in mit dem SMC_PathCopierFile eingelesen wurden.
Der Baustein SMC_GCodeViewer meldet den Fehler "SMC_ERROR.SMC_GCV_BUFFER_TOO_SMALL" für einen zweizeiligen G-Code...
xyungelöst hat geschrieben:
Hallo,
das ist eben leider nicht der Fall. In dem Beispiel werden die Zeilen via Text-Editor ausgegeben, die zuvor in mit dem SMC_PathCopierFile eingelesen wurden.
Der Baustein SMC_GCodeViewer meldet den Fehler "SMC_ERROR.SMC_GCV_BUFFER_TOO_SMALL" für einen zweizeiligen G-Code...
N000 G02 X1000 R500 F100 E1000 E-1000
N010 G01 X00
Dat kann doch nich sein?!?
Ich fische im Trüben....
Grüsse!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I am stuck in my project where I need to read an actual line of interpolated G-Code. I used the function block SM_GCodeViever. I am afraid that I am competly lost in declaration of FB variables. Exacly variable:
Gcode: ARRAY [0..c_uiLines] OF STRING; (please see attached part of my project)
Is there available some example of using SM_GCodeViever?
Peter
SMC_GCodeReader.pdf [59 KiB]
Hi,
guess there is simply missing the namespace... in the declaration
asGCode : ARRAY[0..viewer.c_uiLines] OF STRING ;
BR
Edwin
Hi,
I also wanted to ask if there is sample code how to use SMC_GCodeViewer?
I tried to connect the functionblock SMC_GCodeViewer as described in the help. There is no problem to build and dowmload the code.
But unfortunately I get an exception error when I run the PLC. .
BR
Matthias
Hi,
denke das CNC 3D Beispiel im CODESYS Store enthält das wenn ich mich nicht täusche.
Grüsse
Edwin
Hallo,
das ist eben leider nicht der Fall. In dem Beispiel werden die Zeilen via Text-Editor ausgegeben, die zuvor in mit dem SMC_PathCopierFile eingelesen wurden.
Der Baustein SMC_GCodeViewer meldet den Fehler "SMC_ERROR.SMC_GCV_BUFFER_TOO_SMALL" für einen zweizeiligen G-Code...
N000 G02 X1000 R500 F100 E1000 E-1000
N010 G01 X00
Dat kann doch nich sein?!?
Ich fische im Trüben....
Grüsse!
..hier ein etwas älteres Beispiel.
G CodeViewer.project [152.27 KiB]
Dat kann doch nich sein?!?
Ich fische im Trüben....
Grüsse!