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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...