7/9/2008 8:55 PM | |
Joined: 12/27/2006 Last visit: 8/18/2024 Posts: 1197 Rating: (113) |
Why you need a floating point??? Use a second. 21 minutes = 1260 sec. devide by 4= 315 seconds. |
7/9/2008 9:57 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating: (580)
|
Hi clodoaldo, Toeternietoeist right for your application ist the way over seconds good, because you need onla integer values (witch the LOGO! can handle) and seconds are needed to control the outputs by time....look at my solution for your application at the attachment ("DEMO_Time_sequence.lsc").... It contains a part to input values (minutes) with puls keys (internal and/or external OR look at the other examples with poti inputs) at the first page and at the second page the part of the application you want - i hope so! Additional i want explain you, how you can handle the floting-point results of a division of a integer value and a smal integer in you question 21 / 4 = 5,25: 1. look/test how many digit has the result value at maximum? here: x,00; x,25; x,05 and x,75 --> max. 2 digits after zeropoint for a complete result 2. LOGO! can only handleinteger values. Ok, multiply your input value with 100 and use 2 digit after zeropoint into each Textbox...so you can handle the result values (if the input values are smal). Best regards Betel AttachmentDEMO_Time_sequence.zip (768 Downloads) |
==> Meine TAG-Listen: "deut." |
|
Follow us on