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 Mon Nov 18, 2019 10:01 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jan 11, 2013 2:03 am 
Offline

Joined: Mon Jul 16, 2012 9:11 am
Posts: 75
This morning, some workmates discussed "what code the CoDeSys IDE generate",
Some said that the CoDeSys IDE generates machine code that can be executed by hardware,some said that the CoDeSys IDE generates interpretative code that can not be executed by hardware directly but by the CoDeSys runtime.


Top
   
PostPosted: Fri Jan 11, 2013 7:26 am 
Offline
Frequent User
Frequent User
User avatar

Joined: Tue Jun 06, 2006 9:03 am
Posts: 410
As it was explained to me, the IDE first generates intermediate code from every editor.
This intermediate code looks a bit like structured text, but with some additional information.
From this code, the application is specifically compiles for the selected device (OS and CPU dependent).
This compiled code will be executed by the CODESYS runtime which must be available and running on the device.
This runtime also takes care of the communication with the IDE and I/O handling (and others).

If you want to create your own "CODESYS device" and implement the runtime on your own hardware you should contact 3S-Smart Software Solutions. They can explain you all the details.


Top
   
PostPosted: Wed Jan 23, 2013 8:30 am 
Offline
Frequent User
Frequent User
User avatar

Joined: Fri Mar 18, 2011 4:12 pm
Posts: 266
The CODESYS compilers directly generate machine code for the specific CPU of the target device.

However, that machine code needs the CODESYS Runtime as an "environment" to execute, as the runtime provides functionality needed by the IEC code (application scheduling, task handling, I/O drivers, basic system functionality, etc...).

_________________
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  [ 3 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 4 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