that worked perfect thanks
.... but now I have another question......
my pid has a couple different control modes but the two i'm interested in using are
PID control
Manual control
lets say the Modbus address for control mode is 40098. Each control mode is assigned a number and that is what you enter into temp controller to choose your control mode
so lets say Manual control is "0"
Pid control is "2"
how would I be able write one of those two numbers to pid using a selector switch? thanks