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 Sun Oct 21, 2018 6:55 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Aug 28, 2018 9:45 am 
Offline

Joined: Mon Aug 27, 2018 3:38 pm
Posts: 3
Hi everybody,

I am a PLC programmer for 10 years but I am new in the programming of Codesys and I use the Codesys v3.5 SP12 patch 4 since 2 months.

I have an EXOR device that integrates both the HMI controller and the PLC controller.

I'm trying to find a way to detect each time the controller is set to RUN (not only when the device is turned on)

Does someone have an idea ?

Thank you in advance.

_________________
François


Top
   
PostPosted: Tue Aug 28, 2018 12:49 pm 
Offline

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 94
Hi. See attached picture.

Attachment:
28-08-2018 14-45-33.png


Be aware, you should create a new function in this menu (don't try to call function which you already have).


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


Top
   
PostPosted: Fri Sep 07, 2018 4:09 pm 
Offline

Joined: Mon Aug 27, 2018 3:38 pm
Posts: 3
Thank you for the reply.

I did not know the Event Handler.

Can you please give me an example of use?

Thank you

_________________
François


Top
   
PostPosted: Fri Sep 07, 2018 7:27 pm 
Offline

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 94
Event Handler - it's just a way to create user function which calls after some event.
Just set event "Start Done" and enter name to create new function. Then add in this function your code.
This function will be calls everytime when project is started.

https://help.codesys.com/webapp/_cds_ob ... n=3.5.13.0


Top
   
PostPosted: Tue Sep 18, 2018 8:30 pm 
Offline

Joined: Mon Aug 27, 2018 3:38 pm
Posts: 3
Thank you for the explanations !

I tried in my project but I have a library problem so I can not go to the end of my tests on this topic.

Thanks again e.kislov

_________________
François


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