New at brains. I had Fwd and Rev working with the Standard Serial Modbus, but now I swap over to brains and Plugin Modbus.
My Teco 7300EV only uses holding registers instead of Coils.
I have a Brain working to Start and Stop the Spindle, and another to set the RPM and Overide.
It works in Forward only at the moment.
What I would like to do is find out the state of CW and CCW and send the proper value to the Holding Register as a 16 bit value instead of a coil / bit.
Would it work to use some user vars to set Run in one and Direction in the other then just AND them together in a formula, then ship out to the register?
Bit 0 - Stop = 0, Run = 1
Bit 1 - Forward = 0, Reverse = 1
So, sending a 1 would be Run in Forward, Sending a 3 Would be Run in Reverse, and sending a Zero Stops the spindle.
Is there a better way to do this.