

dtype:
32 float = 0
32 int = 1
16 int =3

order:
BigEndian = 0
LittleEndian = 1
BigEndianReverseWord = 2
LittleEndianReversWord = 3

func:
read holding = 3
read input = 4
write holding = 6
write holdings = 16


usage:   modbusCmd <node> <func> <sreg> <nreg> <dtype> <order> <value>
example (read product factor): modbusCmd 1 3 40 2 0 2

example (write product factor): modbusCmd 1 16 40 2 0 2 100.0

3DTS68 product factors tag=30, trasar=31
3DTS88 product factors tag=34, trasar=3

3DTS68 product factors tag=30, trasar=31
3DTS88 product factors tag=34, trasar=32

trasar pf = 40 (holding)
trasar background = 42 (holding)

tag pf = 56 (holding)
tag background = 58 (holding)
tag ratio = 72 (holding)
tag correction methon 48 (coil)

tra_cal_blank_lo 46 (holding)
tra_cal_blank_hi 47 (holding)
tra_cal_standard_lo 48 (holding)
tra_cal_standard_lo 49 (holding)

CAL_COMMAND_REGISTER = 177 (holding)
CAL_RESPONSE_REGISTER = 341 (input)

CAL_COM_START_CALIBRATION = 1
CAL_COM_START_BLANK_MEASURE = 2
CAL_COM_NO_BLANK_RETRY = 3
CAL_COM_BLANK_RETRY = 4
CAL_COM_START_STANDARD_MEASURE = 5
CAL_COM_NO_CAL_RETRY = 6
CAL_COM_CAL_RETRY = 7
CAL_COM_ACCEPTANCE_OK = 8
CAL_COM_ACTION_CANCELED = 9
CAL_COM_START_TURB_CAL = 10
CAL_COM_START_ZERO_MEASURE = 11
CAL_COM_ZERO_RETRY = 12
CAL_COM_NO_ZERO_RETRY = 13
CAL_COM_TURB_ACTION_CANCELED = 14
CAL_COM_START_FIFTY_MEASURE = 15
CAL_COM_NO_FIFTY_RETRY = 16
CAL_COM_FIFTY_RETRY = 17
CAL_COM_TURB_ACCEPTANCE_OK = 18

CAL_RESP_WAIT_TO_START = 0
CAL_RESP_WAIT_FOR_BLANK = 1
CAL_RESP_WAIT_FOR_MEASURE = 2
CAL_RESP_GET_BLANK_VALUES = 3
CAL_RESP_WAIT_FOR_BLANK_RETRY = 4
CAL_RESP_WAIT_FOR_CAL_SOLUTION = 5
CAL_RESP_WAIT_FOR_CAL_MEASURE = 6
CAL_RESP_GET_CAL_VALUES = 7
CAL_RESP_WAIT_FOR_CAL_RETRY = 8
CAL_RESP_WAIT_FOR_ACCEPTANCE = 9
CAL_RESP_WAIT_FOR_ZERO_NTU = 10
CAL_RESP_WAIT_FOR_ZERO_MEASURE = 11
CAL_RESP_GET_ZERO_VALUES = 12
CAL_RESP_WAIT_FOR_ZERO_RETRY = 13
CAL_RESP_WAIT_FOR_FIFTY_NTU = 14
CAL_RESP_WAIT_FOR_FIFTY_MEASURE = 15
CAL_RESP_GET_FIFTY_VALUES = 16
CAL_RESP_WAIT_FOR_FIFTY_RETRY = 17
CAL_RESP_WAIT_FOR_TURB_ACCEPTANCE = 18