CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Fri May 26, 2017 9:55 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Mar 09, 2017 7:50 pm 
Offline

Joined: Wed Mar 08, 2017 7:37 pm
Posts: 1
We are looking at switching to a PLC vendor that uses Codesys for Development. Can ladder logic creation be scripted with python? Also Can HMI design me scripted?
I can't really find any good examples or feature lists for Python scripting in codesys.


Top
   
PostPosted: Fri Mar 10, 2017 10:38 am 
Offline
Frequent User
Frequent User

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

col26 wrote:
We are looking at switching to a PLC vendor that uses Codesys for Development. Can ladder logic creation be scripted with python? Also Can HMI design me scripted?
I can't really find any good examples or feature lists for Python scripting in codesys.

You can't do Ladder with Scripting but you can import and export PLCopenXML which supports Ladder. But our Ladder does not support everything which is specified in the PLCopenXML. For example, not every element can be connect with every other element.

Use the following approach:
- Create the logic you need in our Ladder editor
- Export it as PLCopenXML
- Check the exported XML to see how it is done and what is possible

At the moment the Scripting only support the Image Pool object. There is a big improvement about the Scripting of the Visualization in our Jira database so it will be implemented eventually. I will add a comment about this thread to this Jira entry.

In general you can check the Scripting API documentation if you want to know what is supported. You find the document 'ScriptEngine.chm' in the directory OnlineHelp of the CODESYS installation.

BR
Martin

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

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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 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