CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Sun May 28, 2017 5:26 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jan 27, 2017 9:08 am 
Offline

Joined: Thu Jan 26, 2017 3:04 pm
Posts: 5
Hi,

I’m using Codesys 3.5 SP5 patch 4.

I’m trying to use a python script to launch device connection and force device variables. I would like to be able to launch this script using the Tools->Scripting->Execute script file menu.

If I understand well, API are defined in ScriptEngine.chm. Where can I find tutorials or simple examples on writing such scripts ?

Thank you


Top
   
PostPosted: Fri Jan 27, 2017 5:05 pm 
Offline
Frequent User
Frequent User

Joined: Tue Nov 13, 2012 9:20 am
Posts: 192
Hi Nicolas233.

Nicolas233 wrote:
If I understand well, API are defined in ScriptEngine.chm. Where can I find tutorials or simple examples on writing such scripts ?

For now you can search this forum for examples. With the release of CODESYS V3.5 SP10 Patch 1 we will provide an introduction, which contains a collection of examples, for the Scripting.

BR
Martin

_________________
Check out the CODESYS store: http://store.codesys.com/

CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions


Top
   
PostPosted: Sat Jan 28, 2017 2:50 am 
Offline

Joined: Sat Apr 16, 2016 5:23 pm
Posts: 64
Thank you Martin, I'll be looking forward to the new tutorials. May I make a simple and humble suggestion that may be useful to everyone.

How about creating a sticky thread containing links to strategic tutorial type threads or other specific tutorial material (Videos, doc, etc). It would perhaps reduce many of the "How do I start" type questions and would direct users to tutorials and examples that are most useful or that demonstrate specific things. It's something that could be developed over time as questions are asked and answered.

_________________
Rick


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 5 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