Running a FB once per day

Taiger

Member
Join Date
Mar 2014
Location
Finland
Posts
8
Hello all,


I'm still a beginner on all of this, but trying my best.
I have been searching, but not been able to find any good tip on how I should define a FB in OB1 so that it only run once / day at a specific time.


I was thinking on using SFC1 and from there set it to run at a specific time (12:00:00). However I would only like it to run once and not maybe 10 times during the 1 second when set time is true.
Basically what the function should do is subtract value X from value Y and write the answer to Z. I do know how to make that function, but I thought I give this as a reference for what I'm building. It should basically say what the production have been during the day.



I'm using a Siemens S7-313C and Step 7 v5.6
 
There are OB's designed specifically for this. I believe OB10 is one of them. Search for "Time of day interrupt" for more specific info on them
 
If it don't need be accurate to milliseconds, then read PLC clock time. Convert to hour, minutes and seconds and compare them to wanted clock time, then run FB with En-input and R_trig.
 

Similar Topics

I have no experience with Eaton HMIs. I downloaded the Galileo software and I am trying to get the file on a HMI (XV-102-H3-70twrl-10) to modify a...
Replies
4
Views
75
How to fix if appears code “$115 plc-restart running” on the screen OP17
Replies
3
Views
133
Here's what happened, Operator turned on the disconnect for an auger while it was still running to cut power. Auger DID in fact turn off, but the...
Replies
8
Views
325
Hi! I am trying to run the 'SimpleSample' (https://infosys.beckhoff.com/content/1033/TF5100_TC3_NC_I/Resources/3438746891/.zip ) to understand the...
Replies
2
Views
98
A new point I/O rack is to be hooked up with the running PLC. In point I/O, it is supposed to be the OA4 card to be installed as per the...
Replies
1
Views
89
Back
Top Bottom