loops

plcstud

Guest
P
Hi guys! does anyone use twido software for plc? how can i make an enless loop in a program?
 
I haven't got the software so I can't help you there.

I am curious as to know why you would want to make an endless (that is what you meant when you wrote 'enless' isn't it?) loop in a PLC? It would only cause the PLC to fault, they don't like loops that they can't get out of.

Paul
 
I do not know what kind of endless loops you are looking for but i used a scan time repeative counter.

here is something I done:

scantime.jpg


regards
Sherine T
 
A plc program is an endless loop. Just program

i=i+1

(in whatever way you choose for you plc)in the main program scan and i will increment (and wrap around) for ever. The plc will normally have a specific routine that runs during start up so you can initialise data.
 
thanks guys! =)
to PLucas: My program is for traffic lights (one plc controls total of 16 lights for an intersection). I have completed the sequence for an intresection and I need it to loop until a certain time.
 
one sequence runs for a particular schedule block and another sequence for another schedule block (i used real time clock). a sequence must loop for, say, 10 hours and another for 12 hours of a day.

It's for my project in school. I'm interested in PLCs.
PLC units in our school are new and I'm the only one working on a PLC (and the teachers are not much of help). I'd like to suggest this idea in our area. Traffic lights in here sucks!
 

Similar Topics

Hello this is my first post. Looking forward to being more involved in this community to learn and hopefully help others. Any help or guidance...
Replies
7
Views
790
Hello Everyone, I have about 135 controller PIDE loops that I need to add to my Studio 5000 and that means I will probably have to create about...
Replies
8
Views
1,916
Good morning, I am currently having a struggle of getting cascaded pide loops to work within studio 5000. I have read and followed all the...
Replies
5
Views
1,920
Hi all, I hope everyone is well, I am in need of something so simple, I have made a small program in SCL and want to monitor some loops in...
Replies
5
Views
4,426
Hi guys, I am using TwinCAT 3 and I have a laser sensor that sends me data in Array. At the beginning of the measurement I run reference scan...
Replies
6
Views
2,579
Back
Top Bottom