Little help please

CraigJ

Member
Join Date
Sep 2017
Location
Forres
Posts
3
Hi all, looking for some assistance in how to write a small prog using CCW. I have a signal which pulses approximately every 1.5s for about 0.2s and i want it to switch on and latch an output with every other pulse. Any help would be appreciated.

Craig
 
If you don't need any timing of the output (just on every other time) then here is a simple way. I have not tested, but it may help get the upstairs thinking about different ways to solve a problem.(It is in CCW)

Sample.jpg
 
Worked for me :( Every odd pulse latches and every even pulse unlatches. It's important with the Edge-trigger. Can you post what you did?
 
Thanks, that works great. It was an up counter i was trying to use before i came begging here but was struggling with the reset. Thanks again.
 
if Pulse and not Pulse_old and not Output then
Output:= true;

elsif Pulse and not Pulse_old and Output then
Output := false;
end_if;

Pulse_old := Pulse;

Also works :)
 

Similar Topics

Which version of panelbuilder works with a panelview 600 2711-K6C1 ser C rev A firmware 4.44?
Replies
1
Views
1,494
WHY THE OUTPUT W5.14 IS NOT lighting green and when input is satisfied the output is not satisfied in the plc ......can anyone help ? i need when...
Replies
12
Views
2,450
Hello everyone, I'm really interested in playing with PLCs, i'm thinking of picking up a TECO GENIE II SG2, its relatively inexpensive. As for the...
Replies
14
Views
3,448
We are having a reoccurring issue between our PLC5 processors and our HMIs. 3 times in the last five days we have lost communication from the HMI...
Replies
5
Views
4,219
Im new to A/B contollers and im working on a program for a drilling machine. I was told I could use the move command to count from one station to...
Replies
23
Views
4,783
Back
Top Bottom