AMX Modbus Module
tomw471
Posts: 2
Looking for an example code snipet on how to pass a command from a main program to the modbus module. I want to write a value to a modbus device. As an example the value 128. Modbus slave module address is 58. I'm assuming the modbus.comm module translates the decimal value to hex. Also using
write_hold function 06 or 16.
Thanks in advance
write_hold function 06 or 16.
Thanks in advance
0
Comments
There is a modbus module on the AMX site.
http://www.amx.com/inconcert/trednet.asp?page=device
seach by 'modbus' in the device window.
That's the module I'm trying to use. Just can't figure how to pass info to the module from the main program.
All I want to do is to be able to read or write values to a single holding register.
- Set the actual modbus device to slave
- Remember that modbus addresses are referenced to zero. So to write to holding register 1 you need to send to 0. And although holding registers start at modbus address 40001, you do a write_hold to address 0, the module translates this to modbus 40001
eg. To write to modbus register 40031 you send -
send_command VdvModbus,"'WRITE_HOLD=30:',itoa(info[1].temp)"
I have a site where the client wants to integrate with the Toshiba TCS-NET modbus via RS -485. Does anyone have a modbus module for this device.
Do i need to get a modbus interface gateway to AMX or can i control it directly.
From the pc, i am using a usb to serial and then 232 to 485 converter and then connected to the the Toshiba Modbus device. The baud rates are proper as per the device. I am not sure what i am doing wrong.