Hello dear forum users.
I am at a dead end in solving a simple problem for self-education.
There are 6 fans available, as well as engine hours, respectively, for each.
I wanted to start at a setting, for example from 10-20 1 fan with a minimum number of engine hours
With a setting of 20-30, 2 fans are already started with a minimum number of engine hours
With a setting of 30-40, already 3 fans start with a minimum number of engine hours
n the project, I realized the calculation of the operation of engine hours for each fan
I threw the working hours into a one-dimensional array and using the SRT function I want to sort the values in ascending order
As described in the manuals, the SRT function sorts the array in decreasing and increasing order.
The first variable must be the maximum, the last minimum
What have I done wrong?
Sorting does not happen
Software RSLogix5000 v20.04
Hardware Emulator v16-21
Executed in a virtual machine VM Virtual Box
Sorry for my English
I am at a dead end in solving a simple problem for self-education.
There are 6 fans available, as well as engine hours, respectively, for each.
I wanted to start at a setting, for example from 10-20 1 fan with a minimum number of engine hours
With a setting of 20-30, 2 fans are already started with a minimum number of engine hours
With a setting of 30-40, already 3 fans start with a minimum number of engine hours
n the project, I realized the calculation of the operation of engine hours for each fan
I threw the working hours into a one-dimensional array and using the SRT function I want to sort the values in ascending order
As described in the manuals, the SRT function sorts the array in decreasing and increasing order.
The first variable must be the maximum, the last minimum
What have I done wrong?
Sorting does not happen
Software RSLogix5000 v20.04
Hardware Emulator v16-21
Executed in a virtual machine VM Virtual Box
Sorry for my English
Last edited: