If this were me, I would let the PLC do most of the leg work. This is how I would go about it:
- Create an integer register to represent the current selected HOA
- The label at the top would be a MessageDisplayByValue pointing to the register
- Then create 2 boolean registers, one for incrementing and one for decrementing the value above
- Use BasicButtons for Previous and Next with each pointing to the 2 bits defined above
- Create another integer register to represent HOA state
- Use a MultiStateIndicator and add 3 states (Hand, Off, Auto)
- Set PLCAddressValue and PLCAddressClick to that register
In the PLC, as the current selected HOA value changes, the PLC program would move the values of the appropriate HOA state into the register used by the HMI.