Register [ ] function ( int arg0 , int arg1 ) { m_ReadMultipleRegistersRequest . setReference ( arg0 ) ; m_ReadMultipleRegistersRequest . setWordCount ( arg1 ) ; m_Transaction . setRequest ( m_ReadMultipleRegistersRequest ) ; m_Transaction . execute ( ) ; return ( ( ReadMultipleRegistersResponse ) m_Transaction . getResponse ( ) ) . getRegisters ( ) ; }
reads a given number of registers from the slave . note that the number of registers returned i.e. array length will be according to the number received in the slave response . concode_field_sep WriteSingleRegisterRequest m_WriteSingleRegisterRequest concode_elem_sep ReadInputDiscretesRequest m_ReadInputDiscretesRequest concode_elem_sep WriteMultipleCoilsRequest m_WriteMultipleCoilsRequest concode_elem_sep ReadInputRegistersRequest m_ReadInputRegistersRequest concode_elem_sep WriteCoilRequest m_WriteCoilRequest concode_elem_sep InetAddress m_SlaveAddress concode_elem_sep TCPMasterConnection m_Connection concode_elem_sep ReadMultipleRegistersRequest m_ReadMultipleRegistersRequest concode_elem_sep ModbusTCPTransaction m_Transaction concode_elem_sep WriteMultipleRegistersRequest m_WriteMultipleRegistersRequest concode_elem_sep ReadCoilsRequest m_ReadCoilsRequest concode_elem_sep boolean m_Reconnecting concode_field_sep void writeMultipleCoils concode_elem_sep void disconnect concode_elem_sep void writeMultipleRegisters concode_elem_sep BitVector readInputDiscretes concode_elem_sep void writeSingleRegister concode_elem_sep void setReconnecting concode_elem_sep BitVector readCoils concode_elem_sep boolean writeCoil concode_elem_sep boolean isReconnecting concode_elem_sep void connect concode_elem_sep InputRegister[] readInputRegisters