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 Dec 13, 2018 7:19 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Dec 07, 2017 4:52 pm 
Offline

Joined: Wed Apr 13, 2016 10:27 am
Posts: 21
Hello,

i want to add some Netwerk Variable (Receiver and Sender) in my project by using script. There are some scripts (command or method) support this feature? I can find nothing about this issue in Script online help of CDS v3 sp11. :(


Thanks for any replay!


Top
   
PostPosted: Fri Dec 08, 2017 7:50 am 
Offline

Joined: Mon Dec 13, 2010 3:02 pm
Posts: 44
Hi hhz,

I am not sure if there is a scripting API for this, but depending on your use case there might be an easier solution.

You can link every kind of a GVL (so also an NVL) to an external file. This is imported before compile. If you just want to push variable declarations into the project, this method is very easy.

To do the link just right click on the NVL and open the properties.

BR,
Ingo

Gesendet von meinem LG-H870 mit Tapatalk


Top
   
PostPosted: Fri Dec 08, 2017 9:37 am 
Offline

Joined: Wed Apr 13, 2016 10:27 am
Posts: 21
Hi Ingo,

thanks for replays!

In fact I do not want to use Import /Export function for creating new project. As my experience shown, Im-/export function does not works anytime and anywhere. My purpose here is to automatically generate a new project, incl. IEC code, configuration, parameter setting etc.. The similar as manually generating project the better.

In that case, a scripting API is requested.

BR.
hhz

Ingo Hornberger wrote:
Hi hhz,

I am not sure if there is a scripting API for this, but depending on your use case there might be an easier solution.

You can link every kind of a GVL (so also an NVL) to an external file. This is imported before compile. If you just want to push variable declarations into the project, this method is very easy.

To do the link just right click on the NVL and open the properties.

BR,
Ingo

Gesendet von meinem LG-H870 mit Tapatalk


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


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