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 Tue Feb 25, 2020 4:22 am

All times are UTC+01:00

Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Oct 17, 2017 2:45 pm 

Joined: Fri Oct 06, 2017 11:36 am
Posts: 3

I need to use Rising Edge Trigger in a program. To understand how it functions, I wrote a simple program with single input and output. Simulation can be seen here:

In the video you can see that R_Trig function block detects the rising edge of the input on only two occasions.

Is there a problem with software/ function block or anything else?

Thank you

PostPosted: Tue Oct 17, 2017 3:01 pm 

Joined: Wed Dec 09, 2015 4:05 am
Posts: 56
rtrig's output is only True for one cycle when the signal changes, so for maybe 20ms if you have a default cycle time set.
The fact that you can see it at all is due to the scan of the visualisation.
If you stick a tof at the end of it with let's say 3s then you will see the trigger.

Sent from my SM-G935F using Tapatalk

PostPosted: Mon Nov 06, 2017 10:50 am 
Frequent User
Frequent User

Joined: Thu Jun 14, 2007 9:49 am
Posts: 987
A simulation is not accurate, the trigger does work for one cycle, (taking very small time, not enough to be visible at screen,
you will need to use a SET coil to see it working correct.

computer shooter
paul deelen
jacob van wassenaerstraat 29
NL 5224 GG 's-Hertogenbosch
skype shooter paul.deelen
phone +31736139136

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: Andreas Kehrer and 3 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