Once a Register Map is created or uploaded, it is stored in the Desigo Optic directory under the project > data > modbus folder.
Modbus Folder Path: C:\Program Files (x86)\Desigo Optic\Desigo Optic 5.x..x.x.xxx\var\proj\demo\data\modbus
You can create the folder manually and add the CSV files manually.
You need to stop and restart the service.
① Creating Register Map Manually
- To create one from scratch, click Add.
- The New Modbus Register dialog box displays
- Name the Modbus Register.
- Once created, it displays under Register Map, where you can select it to edit.
- Once the register map is selected in Register Map, you can add more registers by clicking Add or manually editing it via Edit Source.
A "ping" register is automatically added by default. This is required and needs to be a valid ping register in order to test connectivity to the slave.
② Uploading Register Map
- If you already have a register map with registers, click Upload.
- The Upload Register Map dialog box displays, allowing you to upload a Register Map.
- Once selected, the register map is available in the Grid view and under Register Maps.
- Select the uploaded register map to edit or add registers.
A "ping" register is required and needs to be a valid ping register in order to test connectivity to the slave.
③ Deleting Register Map
If you no longer need a register map, select the Register Map, and then click Delete.
Using Register Maps
① Adding New Registers
- To add more registers, click Add.
- The Add Register dialog box displays with required fields.
Field | Description |
---|---|
name (required) | Name of register. |
addr (required) | The address of the register that follows the modbus convention. |
data (required) | Defines the data type of the register. |
rw (required) | Determines the read/write permissions Register may be read and written. |
scale (optional) | Allows you to apply a scale factor to the registers. The format is [operator] [number] where the factor is a numeric constant. |
dis (optional) | An optional tag that you can specify a pretty display name for the register. |
unit (optional) | Defines the unit to use for the register. |
tags (optional) | Tags to apply to the point when learned into the database. |
folderPath (optional) | If you want to organize the points, you can do so by applying a folderPath. |
② Editing Registers
- If you need to edit a register, click Edit.
- The Add Register dialog box displays.
③ Deleting Registers
To delete a register from a Register Map, select the register, and then click Delete.
④ Editing Register Maps via Edit Source
- Select the register map to edit under Register Maps and then click Edit Source.
- The Edit Source dialog box displays to make any edits or copy to CSV.
- Click Save to save changes.
Supported Protocols
The supported protocols for Modbus are, TCP/IP, RTU over TCP/IP.
The URI setup for each are as follows:
- TCP/IP:`modbus-tcp://host/`
- RTU over TCP/IP: `modbus-rtutcp://host/`
Example Register Map Formats for Uploading
Make sure the CSV files are saved as CSV UTF-8 if degree units are included.
History
History synchronization is not supported by Modbus.
You need to use the history collection to store history.