CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Fri Nov 15, 2019 6:25 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: SMC_Gcodeviewer
PostPosted: Tue Mar 20, 2018 10:32 am 
Offline

Joined: Wed Jan 27, 2016 10:51 pm
Posts: 40
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


You do not have the required permissions to view the files attached to this post.


Top
   
 Post subject: Re: SMC_Gcodeviewer
PostPosted: Thu Mar 22, 2018 7:29 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3530
Hi,
guess there is simply missing the namespace... in the declaration

asGCode : ARRAY[0..viewer.c_uiLines] OF STRING ;

BR
Edwin


You do not have the required permissions to view the files attached to this post.


Top
   
 Post subject: Re: SMC_Gcodeviewer
PostPosted: Thu Aug 22, 2019 4:02 pm 
Offline

Joined: Tue Dec 06, 2016 10:38 pm
Posts: 3
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. :roll: .

BR
Matthias


You do not have the required permissions to view the files attached to this post.


Top
   
 Post subject: Re: SMC_Gcodeviewer
PostPosted: Thu Aug 22, 2019 9:25 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3530
Hi,
denke das CNC 3D Beispiel im CODESYS Store enthält das wenn ich mich nicht täusche.
Grüsse
Edwin


Top
   
 Post subject: Re: SMC_Gcodeviewer
PostPosted: Fri Aug 23, 2019 5:57 pm 
Offline

Joined: Tue Dec 06, 2016 10:38 pm
Posts: 3
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.... :o

Grüsse!


You do not have the required permissions to view the files attached to this post.


Top
   
 Post subject: Re: SMC_Gcodeviewer
PostPosted: Sun Sep 01, 2019 9:36 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3530
..hier ein etwas älteres Beispiel.


You do not have the required permissions to view the files attached to this post.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited