
adccommunitymod (AutomationDirect) asked a question.
Created Date: July 20,2006
Created By: 2004sk4
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
What would be the easiest way to calculate downtime per shift. I am using a allen bradley 5/05 processor and a 8 inch c-more screen. My plan right now is to use the internal clock to tell me time elasped into the shift and have a retenative timer for when the machine is running. I want to use the internal plc clock becuase the machine is frequently lockout for production fixers. I plan on dividing the elased time and the actual running time to give a accurate display of efficiency throughout the day. Is there any thing in c-more now or in the works that would eliminate some of the code required to make this work. I know that the uticor has something in there software to make it easy.
Created Date: August 03,2006
Created by: 2004sk4
Is there a way or anything in the works to be able to assign certain times (periods) to a tag name
I would like for instance to be able to enter 7am to 3pm to turn on a first shift tag. 3pm 11pm for second shift tag and 11pm to 7am as third shift tag. This would greatly help being able to figure downtime in real time. If i could set a section of time i would be able to accomidate break-times in the downtime sheets.
Created Date: August 03,2006
Created by: Tech Guy
You can always assign the Clock to a tag name and use the visibility to change which tag is shown.
Created Date: August 04,2006
Created by: 2004sk4
My intentions are to make it easier to program the allen bradley 5/05 processor. It would be nice to be able to say from 7am -3pm would turn on the 1st shift(b3:0/0) tag .There would also be a need to have a tag assigned for each break period.
I would use the tags in the ladder logic to turn the timer on and off. This would give me a real time count of how long the machine has been on which i would then divide by the actual machine running time to get my desired eff.
The only way to do it now is to GRT LES The 5/05 internal clock to the desired time.
This makes the code alot longer then needed when 3 shifts with 3 break on each is involved.
This is just something for thought when the next update comes out.
Created Date: August 04,2006
Created by: Xeno_deicici
Couldn't you just use the 1st shift bit and the machine running bit to power a retentive timer?
XIC B3:0/0 XIC I:1.0/0 RTN T4:0 1 32767 0
Then, when it is not first shift take the count and divide by the number of seconds in a shift (8hours = 28800 seconds, well withing the 32767 max of the timer) (But only use 288 if you want to put into a Integer file)
XIO B3:0/0 OSR B3:1/0 BST DIV T4:0.ACC 288 N7:0 NXB RES T4:0.ACC BND
If using a float file:
XIO B3:0/0 OSR B3:1/0 BST DIV T4:0.ACC 28800 F8:0 NXB RES T4:0.ACC BND
If you need to know when it is first shift, then use the hour (S:40) value in the PLC, when the hour is greater or equal to 7 and less then 15 then set the 1st shift bit. For 2nd shift, GEQ S:40 15 LES S:40 23 OTE B3:0/1
3rd shift, GEQ S:40 23 LES S:40 7 OTE B3:0/2
Just a suggestion, and it was off the cuff, might need to tweak it a bit...
PS, if you have a fifteen minute break to account for, just use the value 27900 instead of 28800 (15 min = 900 sec) 28800 - 900 = 27900
Created Date: August 05,2006
Created by: 2004sk4
thanks, Xeno_deicici
That is exactly what i am doing right now. I have cpt function which =((s42*1000
)+ (s:41 *100) + s:43), This gives me a floating point value of the exact time in the plc.
I am using the geq 7 to start t4:0. I then am sub 700000-t4:0/acc which = f8:0 the time into the shift to the sec. I am taking this time and divideing by my running time bit.t4:1 I am div f8:0/t4:1/acc which is the eff during that shift - breaks.
I understand completely this can all can be successfulley done in the plc. I am just trying to find way to make the programming faster and more eff.
thanks
I think i am going to use the c-more program as is
Here ';s the plan
Use the time and day function at 7 am turn on 1stshiftstart tag on which would latch a bit in the plc and a 3pm 1stshiftend tag off which would unlatch the bit
I would also do the same for the breaks times. I would inhibit the timers if the break timers are on. This would give me the best result of actual eff.
Thanks for all the support
Created Date: July 20,2006
Created by: 2004sk4
What would be the easiest way to calculate downtime per shift. I am using a allen bradley 5/05 processor and a 8 inch c-more screen. My plan right now is to use the internal clock to tell me time elasped into the shift and have a retenative timer for when the machine is running. I want to use the internal plc clock becuase the machine is frequently lockout for production fixers.
I plan on dividing the elased time and the actual running time to give a accurate display of efficiency throughout the day.
Is there any thing in c-more now or in the works that would eliminate some of the code required to make this work. I know that the uticor has something in there software to make it easy.