Working with DAY of the Week on a CMore...

David_Emmerich

Lifetime Supporting Member
Join Date
Sep 2002
Location
Smiths Grove, KY
Posts
671
I have been asked to add Individual Day of the week start and stop times, for each day, to a CMore panel feeding a AB Micrologix 1400...I have found a System tag in the CMore that spits out an ASCI string ie MON, TUE, etc, but i am wondering how/where to do the logic to compare that string to a preset start/ stop time for each day...Brain farts...:confused::unsure:;)
Any IDEAs oh great and wonderful PLC Wizards???

The tag is..." sys day week "
 
A word to the wise... you need to be careful with the 1400's real time clock if you intend to allow the user to change the time via the HMI. This is typically done by copying integer registers (modifiable by the user) to the corresponding RTC function file registers. HOWEVER, the PLC will FAULT if you attempt to transfer invalid date values. April 31st = instant fault. This gets even more interesting when you consider that the number of valid days in February depends on whether it's a leap year or not. To create a truly bulletproof system you'll have to account for this in your logic.

See this thread for more information:
http://www.plctalk.net/qanda/showthread.php?t=75121
 
Thank you guys, we pulled that one out of the deep, dark, recesses of my feeble brain cells after a late night in a strange hotel room....
I was able to set up a DOW section, and then do a bunch of Equal Compare instructions to accommodate the various Start/Stop times they wanted...and all the associated logic changes to prevent the machine from running as it was designed...So what else is new...Just another day in the life of the Field Service 'Person'...
 

Similar Topics

Hello to all, can you please provide an example of obtaining a current working directory as a string in CodeSys? For example, during starting the...
Replies
7
Views
230
I feel like this is probably a very simple thing I am overlooking. (Compact Logix Studio 5000) This is my first time using the predefined...
Replies
11
Views
503
I am creating a project with WinCC Unified v16 Upd6 (PC runtime) with an S7-1200. The communication is good between the PC and the PLC as I can...
Replies
6
Views
263
I'm fairly new to Rockwell software, I've had some basic training in the past but nothing too advanced. My company and I use Reliable products for...
Replies
11
Views
415
Hi everyone, I am working with micro850, a proximity sensor (FOTEK, PL-05P) and a 3DOF serial arm robot. I use MC_MoveRelative to control the...
Replies
1
Views
118
Back
Top Bottom