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 Thu Jun 20, 2019 4:04 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue May 07, 2019 7:24 am 
Offline

Joined: Thu Oct 11, 2018 7:17 pm
Posts: 3
Hello,

I was using the CNC Edtor with SMC_CNC_REF objects in Codesys 3.5.11.
SMC_CNC_REF because I need to use variables in my programs.

Now I upgraded to Codesys 3.5.13 (Softmotion 4.4.0.2) which supports expressions in CNC programms.
The documentation states I need to use SMC_ReadNCFile2 and SMC_NCInterpreter
to use this feature.
So I created a new CNC program as file (as input to SMC_ReadNCFile2).

But when I use an expressions in the program like:
Code:
N000 G01 X0.845 + 0.79

The CNC Editor shows 'unexpected token'.

What I'm i doing wrong?
The example for sub programs and expressions shows the CNC programs as
external file in the project. But I need the CNC editor for preview and debugging.


Top
   
PostPosted: Tue May 07, 2019 1:37 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3317
Hi,
go to the packageManager and update the SoftMotion version to current.

BR
Edwin


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


Top
   
PostPosted: Wed May 08, 2019 6:54 am 
Offline

Joined: Thu Oct 11, 2018 7:17 pm
Posts: 3
After the update and a restart the CNC Editor still shows errors when programs contain expressions.


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


Top
   
PostPosted: Wed May 08, 2019 7:51 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3317
Hi,

sorry, expressions in CNC editor are not yet supported. There is a tracking issue for it

you need a *.CNC file, SMC_ReadNcFile2 and SMC_NCInterpreter FBs to do this.
If needed I will attach an example.
BR
Edwin


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  [ 4 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