LMG_modbus

## Example - Write register test 485 # #test = Modbus485.new(‘com1’) #test.create_test(‘C:Documents and SettingsshanksstempMy DocumentsTestingV4Cooling2PADSLiebertDS_FDM_35_write_driver.xls’) #puts “Running Positive Tests” #test.run_modbus_write(WRITE_POSITIVE,RESULT_POSITIVE) #puts “Running Negative Tests” #test.run_modbus_write(WRITE_NEGATIVE,RESULT_NEGATIVE) #puts “Restoring Default” #test.run_modbus_write(WRITE_DEFAULT,RESULT_DEFAULT) #default #test.close

# Example - Write register test TCP # #test = ModbusTCP.new(‘126.4.202.199’) #test.create_test(‘C:Documents and SettingsshanksstempDesktopPADSLiebertDS_FDM_35_writedriver.xls’) #test.run_modbus_write(‘g’,‘k’) #test.close

# Example - Static Test using modpoll

#test = ModbusPoller485.new(1, ‘com1’,‘C:Documents and SettingsshanksstempDesktopXPXDCXDC_FDM_207.xls’,‘c:win32’) #test.run

#Example - Read time and set time #test = Modbus485.new(‘com1’) #test.read_time_register(9998)

#test.write_time_register(9998,Time.now) #sleep(60) #test.read_time_register(9998)