Adding time to plc

a7med918

Member
Join Date
Dec 2007
Location
cairo
Posts
46
Dears
I use step7 v5.4 with Winncc v6.0 cpu 414-2DP

i need to adding production running time as accumulating during day and night shift and display it in HMI winncc

day shift start from 07:00Am to 07:00pm
Night shift starts from 07:00pm to 07:00am

So i imagine I/O field on day shift containing 9 H, 15 M , 20 Sec
I have I5.0 always on if Line production Run
and off if else

how can i do that ?
 
You need to set your PLC's time and use it to find when your day or night shift is running. There are functions for this.

Another option, is to create a time of day OB that runs at a particular time every day or one that runs every 12 hours starting from 7 to run your shift selection logic.

You can then set up a minute timer and increment a runtime variable based on your machine on.
 
You need to set your PLC's time and use it to find when your day or night shift is running. There are functions for this.

Another option, is to create a time of day OB that runs at a particular time every day or one that runs every 12 hours starting from 7 to run your shift selection logic.

You can then set up a minute timer and increment a runtime variable based on your machine on.

Thanks for your reply
Kindly help to get functions that detect day and time, CPU already set date and time correctly
Or how can i create OB to run in part of time?
 
The hardware configuration of the CPU is where you configure the time of day interrupts. In there you will get a number for that OB and then can create that OB in your program to be run.

To read the clock, the instruction you are looking for is READ_CLK
 

Similar Topics

I'm adding an IAI Gateway with 2 axes connected to it. To an ethernet network on my PLC. So, I think the math is correct on the Input and Output...
Replies
0
Views
66
Hello everyone, I have an RSLogix5000 project which is running live in the factory but I need to make some changes to the logic. I want to test...
Replies
0
Views
1,097
Hello, We have an older machine that has a standard PanelView (2711-T10C3) connected over DH485 to a SLC 5/04 PLC via a 1761-NET-AIC module in...
Replies
1
Views
658
Good afternoon all, I have an AB SLC 5/03 which uses multiple AC i/o cards (such as 1746-IA16 and 1746-OA16). I am using a 7-slot chassis with...
Replies
5
Views
1,322
Hello, I've read on some posts that to add a VFD to a PLC program you first have to download the AOI from the Rockwell website. My question is...
Replies
8
Views
2,363
Back
Top Bottom