Jump to content

Time calculations


Voxdale

Recommended Posts

Hello,

Is it possible to directly input time (HH:MM) in the HMI (keyboard touchscreen) and do calculations with this input?

Example

INPUT:

input first start time of a cyclus : 08:00 (HH:MM)

input last start time of a cyclus: 10:00

input number of starts: 3

This number says that there will be 3 starts of a cyclus. This starts must be equally divided over the time between the first and last start.

OUTPUT:

first start at 08:00

second start at 09:00

last start at 10:00

 

In this program we need to calculate the difference between first start time and last start time: 10:00 - 8:00 = 2:00

In this program we need to define the period between the start moments= 2:00/(3-1)=1:00

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.