S7-1200 Time of Day

franchois13

Member
Join Date
Nov 2008
Location
london
Posts
76
Hi everyone,

I need some help on how and which instructions to use for my application. I need a simple program to print a report every end of shift: one at 7am and another at 7pm. Say for discussion purposes need activate M0.0 at those 2 particular time of day.
I tried the compare instruction which will work but i dont know how to make am and pm significant.
Any idea or any easier way to do it to get same result will be great.
CPU im using is 1212C ac/dc/rly

Thanks in advance.
 
Last edited:
Add a new block, select OB as the block type and you will find you have a Time Of Day interrupt that you can use. Then in the list of Instructions go to Extended and you can adjust the interrupt from with the programme. Or again in Extended instructions you will find Data and Time-of-day instructions that you can use.
 
If the report is from a HMI you can schedule a time of day event in "scheduled tasks".

This would be carried out on the HMI. You can sync the HMI and the PLC times.
 
Just to add a bit of info.
Both of the above works, TOD OB and scheduling task from HMI.
Compare instruction works jus fine and you can compare Time of Day from 0-23 HRS down to milliseconds.
Thanks guys.
 

Similar Topics

Hello, I have a question about an encoder that has absolute measurement. Specifically, it's the Lika SMA5, which I would like to connect...
Replies
2
Views
81
Hello, I have a question about an encoder that has absolute measurement. Specifically, it's the Lika SMA5, which I would like to connect...
Replies
0
Views
51
Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
6
Views
302
HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
125
Hi, I have attached herewith one image which our programmer has been used in S7 1500 PLC. Now we need to use the same instructions in S7 1200 PLC...
Replies
4
Views
145
Back
Top Bottom