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 Jan 21, 2019 12:46 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Apr 03, 2018 3:03 pm 
Offline

Joined: Mon Feb 19, 2018 2:04 pm
Posts: 1
Hello,
This is my 1st trying to write code in IFM codesys.
How to reset a timer, the output is active even if the input is reset.
The code run in SFC,
When the timer ends (in step 2), you return to the previous step (1).
When the transition conditions are met (in step 1), you proceed to step 2 with the timer.
Since the output is activated (TRUE), there is no time count and immediately go to the previous step (1).

Delay_1 : TON;
From online:
Delay_1
.M=TRUE
.StartTime = T#39039m12s17ms <= What's that?
.IN=FALSE
.PT=T#30s0ms
.Q=TRUE
.ET=T#30s0ms

Thanks
Shai


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

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