Help - Search - Members - Calendar
Full Version: allen bradley
Forums.MrPLC.com > PLCs and Supporting Devices > Allen Bradley
dginc
help. what would the rungs look like for: input 1 turns on output 3 flashing light, flashing light stays on for 1 sec. then off for 1 sec. continously, until input 2 turns off flashing lamp...i have tried several things (timers, latch, unlatch, etc )and yes i am a beginner . this would be using allen bradley RSLogix 500, i keep getting it close but to no avail. if this is to basic for this forum i apologize, dginc
JorgeR
Sounds like homework, so I won't do it for you, but I will give you some clues. First of all, for the flashing part, you don't have to use timers. Research the calender-clock-seconds word. Second, forget about the flashing part. Just try to get a light to come on with input 1 and turn off with input 2. Then put the two together.
dginc
you were on the right track, but it was the first rung of a final on a plc basic class that is done and we dont get to see results ... i know i missed it and couldnt get it to function properly. was curious.......thanks
dginc
p.s. i still can not make it function, dont know why i make it so hard...
Chris Elston
Take a look in the manual for the S4 file that is what JorgeR was trying to tell you.

This information applies to a SLC500 series:

S:4/7 Timebase Status You can use any individual bit of this word in your user program as a 50% duty cycle clock bit. (S:4/0 to S:4/15 are 20, 40, 80, 160, 320, 640, 1280, 2560, 5120, 10240, 20480, 40960, 81920....)

These are bits you can use to flash things.



Ron Beaufort
friendly suggestion:

if you really want to learn from this experience, then post the code that you wrote ... we'll be happy to point out what you did right ... and what you did wrong ...

best regards,
Ron
JorgeR
The S:4 word is fine just to get things to flash or pulse at an even on off rate, but to get an exact 1 sec. on and 1 sec. off I was thinking more about using the S:42/0 bit which is from the calender clock and changes state every second. I quess I should have asked what model you were writing the code for because this bit is only availible on SLC 5/03 and higher. Any way, post the code you have already. Let us know if you don't know how.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.