10/3/2024 2:19 PM | |
Joined: 8/19/2012 Last visit: 1/19/2025 Posts: 129 Rating:
|
Dare all I have customer block save the total per hour.but the value move to the previous value. I want this value move to the its hour exactly. Please check the attachment. I want to do a comparison with every hour. For example, I want to move the value of Raw materials at 10 :00 AM to a specific data block and so on for all hours from 0:00 to 23:00 and similarly for days as well. For example, I want to save the total for the day on the same date as the day itself. Best regards |
10/3/2024 2:54 PM | |
Joined: 9/23/2005 Last visit: 3/13/2025 Posts: 4955 Rating:
|
Call your code in a Time of Day interrupt OB. |
Regards, |
|
This contribution was helpful to
1 thankful Users |
10/3/2024 4:13 PM | |
Joined: 6/20/2017 Last visit: 3/13/2025 Posts: 450 Rating:
|
Using wich programming language? |
Gustavo Antonio Banchetti Brucatori. |
|
10/3/2024 5:38 PM | |
Joined: 8/19/2012 Last visit: 1/19/2025 Posts: 129 Rating:
|
Dear all I tried to write a simple idea. Of course the idea is correct and it is what I am looking for, but I have a problem when I repeat for the remaining hours, the value appears in all hours even though I wrote the comparison. But there is no separation between the hours.... So please complete the idea by right way. Note:I used STL language and convert the block type to chart type. Best wishes |
Last edited by: ENG YCS at: 10/04/2024 11:07:23 |
|
10/7/2024 7:21 AM | |
Joined: 9/23/2005 Last visit: 3/13/2025 Posts: 4955 Rating:
|
The comparisons used are without any effect as load and transfer instructions are not RLO dependent. Use jump instructions to create branching. |
Regards, |
|
Follow us on