Previous in Forum: Fun With Math - The American Financial Meltdown   Next in Forum: Cone Penetration Results / Settlement
Close
Close
Close
Rate Comments: Nested
Anonymous Poster

Designing a Clock Using Controllogix from Allen-Bradley

11/13/2008 5:23 PM

I have just programmed a clock, but I can't get one output to represent AM/PM. Which should be on when its PM and off when its AM.

Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Commentator
Australia - Member - New Member Engineering Fields - Electrical Engineering - New Member Engineering Fields - Electromechanical Engineering - New Member

Join Date: Jan 2008
Location: Mount Gambier, South Australia
Posts: 56
#1

Re: Designing a Clock Using Controllogix from Allen-Bradley

11/15/2008 1:45 AM

If you are using the GSV instruction to retrieve the time from the internal Wallclock then the hours are in 24 hour format, so use a GEQ (greater or equal) and when hours >= 12 output to the PM bit.

__________________
tooz
Reply
Reply to Forum Thread

Previous in Forum: Fun With Math - The American Financial Meltdown   Next in Forum: Cone Penetration Results / Settlement

Advertisement