Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: davidbgtx on October 09, 2019, 10:17:57 AM

Title: Finding max value
Post by: davidbgtx 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?
Title: Re: Finding max value
Post by: b_carlton 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
Title: Re: Finding max value
Post by: davidbgtx 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
Title: Re: Finding max value
Post by: b_carlton on October 09, 2019, 11:30:28 AM
Try small sections of code in the simulator.
Title: Re: Finding max value
Post by: davidbgtx 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