PLC Newbie - Simple Question

RunRabbit

Member
Join Date
Oct 2013
Location
Melbourne
Posts
4
Hi All,

I've just recently completed a basic training course on PLCs.

I've been playing around with Step7 from Siemens and I'm trying to perform a simple function but for the life of me can't seem to get it done.

Basically I have 8 outputs, let's say QB5.

I want to basically do the following:

Every 1 second cycle through turning on outputs 1-8. Only one output is on at any one time and I just cycle through all of them every second.

I am doing it in Ladder as I don't quite know STL yet.

Any ideas?
 
How are you generating your 1 second timer - do you have edge detection so that the QB is only changed on, for example, the rising edge of the 1 second timer?

What approach are you taking - a simple state machine?
 
Ok seems I'm out of my depth. I hadn't even considered what you're asking.

I know I needed a constant one second interrupt to initiate the change but that's about it.

I don't really need a solution moreso just some different methods of solving the problem.
 
Many thanks for that code mate. Loaded it up and it works fine. I'll try go through it and make sense of it.

I noticed in FB1 your one shot timer. I tried to follow it logically but I can't seem to work out how the Input is triggering the counter continuously. I read the help file on SFB4 and it requires input to go high to start. I can see how the first cycle will work but how does Input get taken high again on the second cycle?
 
As the input to the timer is the timer output inverted, when the timer completes the timer input will be false causing the timer output to be false for one scan, the next scan the timer input will be true (as it is the timer output inverted) and hence the cycle repeats.
 

Similar Topics

Hi, after 30 years involved with automation I'm actually writing my first PLC program and am struggling a fair bit. My background is mechanical...
Replies
8
Views
1,887
I picked up a Siemens S7 1200 from a buddy and I want to start fiddling around with it to learn about PLC's. I don't want to spend a lot of bucks...
Replies
0
Views
2,470
Hi Guys I completed a PLC course a few weeks ago and I've decided to build myself a PLC training rig. I'm using an s7 200 as I managed to pick...
Replies
7
Views
3,143
Hopefully I'll have a legitimate copy of RS500 to program micrologix and SL500 series PLCs. A guy in another group is going to mail me his old...
Replies
6
Views
1,839
I was recently given an FMD88-10 and AN20MA-2, in excellent working condition. I'd like to start learning to build PLC's, and just tinker around...
Replies
2
Views
2,310
Back
Top Bottom