How to use the ET parameters in a timer (TON Function).

KevinEamon

Member
Join Date
Oct 2018
Location
Mythical Mystical Ireland
Posts
3
Hi guys
I'm new to the forum and structured text.

I'm just starting here - working on a traffic light system.

So I have created this piece of structured text, linked to a little animation on the operations screen:- (Using Unity Pro)
------------------------------------------------------------
Fb_Traffic_Timer(IN:=Button_4,PT:=T#10S);


IF Fb_Traffic_Timer.Q THEN

Light4_Red :=1;

ELSE

Light4_Red :=0;

END_IF;

----------------------------------------------


What I'd like to do instead is something like this:-

IF (Fb_Traffic_Timer.ET >= 5S) THEN...
 
Hello

Just as a remark you do not always have to use if else endif construction.

In your example:
Light4_Red :=Fb_Traffic_Timer.q;

Does exactly the same.

Light4_Red:= Fb_Traffic_Timer.ET >=T#5s or Fb_Traffic_Timer.q;

When output has to turn on already after 5 sec’s have elapsed.

Kind regards
Henny
 

Similar Topics

I am trying to create a common "motor control" subroutine in RSLogix5. I would then "jsr" with parameters once for each motor. No problem so far...
Replies
14
Views
9,486
Hi everyone, i have an issue with saving a changed value in an AOI, I am using L84E, Everytime i try to save my work to SD card, the program lost...
Replies
1
Views
57
I'm using FactoryTalk ME version 13. I'm aware how to pass a parameter file once, but I was wondering if it is possible to do it twice...
Replies
4
Views
135
Looking for some assistance. I am very familiar with Yaskawa VFDs, but not so much with AB VFDs. I am working on some hardwired AB PowerFlex 700...
Replies
2
Views
89
Hi all, I have installed a SICK AFM60A-S4IB018x12 encoder to Allen-Bradley CompactLogix PLC and configured its parameters via AOI provided by...
Replies
0
Views
82
Back
Top Bottom