Hi all,
I need to communicate to ten weigh controllers via Modbus, one address per scan. I have the logic working by using an ADD block for the increment to determine which station address to talk to next. When the address increment exceeds 10, it is set back to 1.
What I want/need to do is add logic to allow addresses to be skipped if the tank(s) is out of service. So, if my current scan was to tank 3 and tank 4 was out of service, which I will know via a boolean, the my new address for the next scan will be 5. I know how to brute force the solution but I feel that there is a more elegant method which has eluded me so far.
My system is a GE PAC RX3i and I am using Proficy Machine edition 5.6 with the lastest SIM installed.
Is there an elegant solution?
I need to communicate to ten weigh controllers via Modbus, one address per scan. I have the logic working by using an ADD block for the increment to determine which station address to talk to next. When the address increment exceeds 10, it is set back to 1.
What I want/need to do is add logic to allow addresses to be skipped if the tank(s) is out of service. So, if my current scan was to tank 3 and tank 4 was out of service, which I will know via a boolean, the my new address for the next scan will be 5. I know how to brute force the solution but I feel that there is a more elegant method which has eluded me so far.
My system is a GE PAC RX3i and I am using Proficy Machine edition 5.6 with the lastest SIM installed.
Is there an elegant solution?