News:

  • August 15, 2026, 04:10:06 AM

Login with username, password and session length

Author Topic: Finding max value  (Read 8216 times)

davidbgtx

  • Hero Member
  • *****
  • Posts: 215
  • Host be the Most
Finding max value
« on: October 09, 2019, 10:17:57 AM »
I need to find the max value of d1, d4, d7, d10, d13.........d28.
Does the attached pic of rungs look like it will work?
« Last Edit: October 09, 2019, 10:34:46 AM by davidbgtx »

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Finding max value
« Reply #1 on: October 09, 2019, 10:54:48 AM »
Start D37 at zero. Start the FROM in the FOR at 1. In the MATH change D1 to D37
« Last Edit: October 09, 2019, 10:57:24 AM by b_carlton »
An output is a PLC's way of getting its inputs to change.

davidbgtx

  • Hero Member
  • *****
  • Posts: 215
  • Host be the Most
Re: Finding max value
« Reply #2 on: October 09, 2019, 11:18:36 AM »
Start D37 at zero. Start the FROM in the FOR at 1. In the MATH change D1 to D37

Thanks, I only get 1 shot at this every Monday morning for about 30 minutes, since I am pretty sure program has to be stopped to load, when a new task has been created. Can't stop program any other time unless I come in on Saturday or Sunday (yuk), so I need to get it right the first time

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Finding max value
« Reply #3 on: October 09, 2019, 11:30:28 AM »
Try small sections of code in the simulator.
An output is a PLC's way of getting its inputs to change.

davidbgtx

  • Hero Member
  • *****
  • Posts: 215
  • Host be the Most
Re: Finding max value
« Reply #4 on: October 10, 2019, 06:53:04 AM »
Try small sections of code in the simulator.

Not sure why I didn't think of the simulator, ready for Monday morning now. Thanks