Modbus windows utilities: Difference between revisions

From embeddedTS Manuals
(Created page with " '''Modbus Windows register access program: ModbusDeviceConfigure''' <pre> 400px </pre> '''Modbus Windows register access program for TS-7670...")
 
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:




'''Modbus Windows register access program: ModbusDeviceConfigure'''
'''Modbus Windows register access program: ModbusDeviceAccess'''


<pre>
[[File:TsModbusConfigure.PNG|400px]]
</pre>


'''Modbus Windows register access program for TS-7670: mbpeekpoke7670'''
[[File:TsModbusAccess.PNG|800px]]
 
<pre>
root@ts4700:/home/zpu# ./mbpeekpoke7670 -?
 
Usage: mbpeekpoke7670 -switch parameter [OPTIOSN] ...
Default parameter values in [brackets]
  -?                    This help screen
  -b  bit_rate          Bit rate [9600]
                        300, 600, 1200, 2400, 4800, 9600, 19200
                        38400, 57600, 115200, 1000000, 4000000
  -h                    This help screen
  -n  number_of_items    number of items to read [1]
  -r  address            Read: Register @ specified hex address
  -s  slave_address      hexadecimal 00-f7; 00 is broadcast [0xf7]
  -u                    Use USB connection
  -v  data              value to write
  -w  address            Write: Register @ specified address
The (-w) write option requires a single (-v) variable
The (-r) read option can read a number of items with the (-n) switch
</pre>




These programs are used to perform accesses to the Modbus devices register set.  It allows the writing of arbitrary hex data to any hex register address one at a time and the reading of blocks of arbitrary data from any hex register addres displayed in hex, signed, or unsigned decimal.
These programs are used to perform accesses to the Modbus devices register set.  It allows the writing of arbitrary hex data to any hex register address one at a time and the reading of blocks of arbitrary data from any hex register addres displayed in hex, signed, or unsigned decimal.


* Use of this utility requires the following steps:
** 1. Select the COM port from the drop down box
** 2. Select the bit rate from the drop down box
** 3. Select the correct data format (8N1 is default)
** 4. Enter the connected device slave address after selecting the format (Hex or Decimal)
** <span style="color:#FF0000"><u>'''NOTICE:'''</u>The coil functionality is currently not functional in Windows'''</span>
** 5. Select the resource type (Regoster, Input, or Coil)
** 6a. Set the resoucw index (e.g., Register number) and count for reading
** 6b. Set the resoucw index (e.g., Register number) and value for writing
** 7. Click the appropriate button to read or write the device




'''Modbus Linux device configuration program: mb_config'''
<pre>
root@ts4700:/home/zpu# ./mb_config -?
Usage: mb_config -switch paramater [OPTIOSN] ...
Configure a Modbus device for legacy mode by setting operational parameters
Default parameter values in [brackets]
  -?                    This help screen
  -b  bit_rate          Bit rate [9600]
                        300, 600, 1200, 2400, 4800, 9600, 19200
                        38400, 57600, 115200, 230400, 460800
                        1040000, 2080000, 4160000
  -C  Configuration      Model 1700: 8 character field starting @ DIO bit 7 thru 0
                        Use single letters 'T' Temperature; 'I' Input: 'O' Output
                        All Other model: Not required
  -c  connection IP:Port IP address:port [127.0.0.1:7350]
  -d                    Display packet debugging information [Off]
  -f  format (data)      Data format: 8N1, 8N2, 8E1, 8O1, [8N1]
  -h                    This help screen
  -i                    Display I/O accesses
  -I                    Inhibit actual writing
  -m  Board model #      7670 with serial [any other using TCP socket connection]
  -n                    Noninteractive mode [off]
  -p                    Display progress messages [Off]
  -s  slave_address      hexadecimal 00-f6; 00 is broadcast [0x10]
  -t  termination        Terminstion on / off [off]
  -v                    verboce output mode
  DIO Configration for Model TS-1700
root@ts4700:/home/zpu#
</pre>
This program is used to perform configuration of a Modbus device.  On older modbuc devices these settings (Slave address, Communications bit rate and data format, termination) would have been performed via DIP switches.  This configuration information is stored in non-volatile memory on the device.
The primary difference in usage of these utilities depends on the hosting platform.


On SBC products using the XUART communications devices, the -c switch and parameter does not need to be specified, since the default communications port is correct.
'''Modbus Windows device configuration program: ModbusDeviceConfigure'''


On the TS-7670 with a standard UART communications device, the '-m 7670' switch should be specified.  This allows the proper hardware setting for the RS-485 port to be utilized.
[[File:TsModbusConfigure.PNG|800px]]


On SBC products with a host USB port for communications, the -c switch should be specified and paramater should be the USB to Serial communication device, which is generally '/dev/ttyACM0'.  The '-s f6' switch and parameter is required since the unit operates at a different slave address when operating via USB. The bit rate does not need to be specified, since the USB port will operate at the fastest rate possible (up to approximately 1000000 bps).
This program is used to perform configuration of a Technologic Systems Modbus device.  On older Modbuc devices these settings (Slave address, Communications bit rate and data format, termination) would have been performed via DIP switches.  This configuration information is stored in non-volatile memory on the device.  This utility is designed to operate on devices confired as factory degault, 9600, N81, address 0cf7.  Windows USB connections are not currently supported, so the devie should be connected via a TS-142 ISB to Serial Modbus adapter is required.
* Use of this utility requires the following steps:
** 1. Select the COM port from the drop down box
** <span style="color:#FF0000"><u>'''NOTICE:'''</u>The USB functionality is currently not operational on Windows'''</span>
** 2. Select the COM port type (USB or Serial)
** 3. Click Identify
**    The model willl appear at the top of the page
** 4. Select the Data Format, Slave Address, Bit Rate, and Termination
** 5. Click Configure

Latest revision as of 14:45, 19 December 2014


Modbus Windows register access program: ModbusDeviceAccess


TsModbusAccess.PNG


These programs are used to perform accesses to the Modbus devices register set. It allows the writing of arbitrary hex data to any hex register address one at a time and the reading of blocks of arbitrary data from any hex register addres displayed in hex, signed, or unsigned decimal.

  • Use of this utility requires the following steps:
    • 1. Select the COM port from the drop down box
    • 2. Select the bit rate from the drop down box
    • 3. Select the correct data format (8N1 is default)
    • 4. Enter the connected device slave address after selecting the format (Hex or Decimal)
    • NOTICE:The coil functionality is currently not functional in Windows
    • 5. Select the resource type (Regoster, Input, or Coil)
    • 6a. Set the resoucw index (e.g., Register number) and count for reading
    • 6b. Set the resoucw index (e.g., Register number) and value for writing
    • 7. Click the appropriate button to read or write the device


Modbus Windows device configuration program: ModbusDeviceConfigure

TsModbusConfigure.PNG

This program is used to perform configuration of a Technologic Systems Modbus device. On older Modbuc devices these settings (Slave address, Communications bit rate and data format, termination) would have been performed via DIP switches. This configuration information is stored in non-volatile memory on the device. This utility is designed to operate on devices confired as factory degault, 9600, N81, address 0cf7. Windows USB connections are not currently supported, so the devie should be connected via a TS-142 ISB to Serial Modbus adapter is required.

  • Use of this utility requires the following steps:
    • 1. Select the COM port from the drop down box
    • NOTICE:The USB functionality is currently not operational on Windows
    • 2. Select the COM port type (USB or Serial)
    • 3. Click Identify
    • The model willl appear at the top of the page
    • 4. Select the Data Format, Slave Address, Bit Rate, and Termination
    • 5. Click Configure