Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
importing_device_servers_with_a_spreadsheet [2023/02/01 16:46] wikiadmin [Parameters for all Modbus Servers] |
importing_device_servers_with_a_spreadsheet [2023/02/02 22:34] (current) wikiadmin [Importing into TransSECS Devices Node] |
||
---|---|---|---|
Line 1: | Line 1: | ||
=====Importing into TransSECS Devices Node===== | =====Importing into TransSECS Devices Node===== | ||
- | A list of servers for a specific Device may be added by right clicking on the Device name and using **Import Excel**. | + | A list of servers for a specific Device may be added by right clicking on the Device name and using **Import Excel**. Some things to keep in mind when setting up and using your spreadsheet to add device servers: |
+ | |||
+ | 1. There must be a tab (" | ||
+ | |||
+ | 2. Tag names (the ServerName property) cannot start with a number and do not put spaces or other non-alphanumeric characters in this field. Do not re-use any names already used as server names for any other item in the devices node. | ||
+ | |||
+ | 3. Cells can be empty. You do not need to enter the default values. Empty cells will use the default when adding new servers or will not change values you have set manually if you re-import the spreadsheet (values will not be overwritten unless you have a non empty value in the cell). | ||
+ | |||
+ | 4. Use the minimal number of columns in your spreadsheet. In other words, do not add columns for parameters you are not going to use or if you only use the defaults for the parameter value. For example, all servers have a timebase and the default is 1.0 second. Do not add a column for timebase unless you plan to change the defaults on one or more of your servers. | ||
+ | |||
+ | 5. You can define severs in more than one spreadsheet and import them separately. For example, if you want to separate your tags into servers for alarms, servers for data values, and servers for events, you can make three spreadsheets. This is not mandatory but might help with organization. | ||
+ | |||
+ | 6. Re-importing the spreadsheet will override any values in the server. A blank entry in the cell will result in the default value for that property. | ||
====Demo Servers==== | ====Demo Servers==== | ||
Line 38: | Line 50: | ||
**ServerType: | **ServerType: | ||
+ | |||
+ | Enter the type into the cell exactly as shown below: | ||
+ | |||
+ | < | ||
+ | Modbus Word | ||
+ | Modbus Double Word | ||
+ | Modbus Float | ||
+ | Modbus String | ||
+ | Modbus Array | ||
+ | Modbus String Array | ||
+ | Modbus 0x Reg | ||
+ | Modbus 1x Reg | ||
+ | Modbus Preset Word | ||
+ | </ | ||
Each server type may need optional parameters (not used for other server types, for example SwapStyle for ModbusFloat is only used for ModbusFloat and no other server type). If you want to use an optional parameter (and not use its default value), then add an additional column to the spreadsheet and enter the parameter value for this specific server. All other rows (for other server types) should be left empty. | Each server type may need optional parameters (not used for other server types, for example SwapStyle for ModbusFloat is only used for ModbusFloat and no other server type). If you want to use an optional parameter (and not use its default value), then add an additional column to the spreadsheet and enter the parameter value for this specific server. All other rows (for other server types) should be left empty. | ||
Line 47: | Line 73: | ||
**StationAddress: | **StationAddress: | ||
- | **RegType:** the register type defaults to 4X (holding register, read/write) but can be changed to 3X (input register, read only). This defaults to " | + | **RegisterType:** the register type defaults to 4X (holding register, read/write) but can be changed to 3X (input register, read only). This defaults to " |
- | **//Special Parameters (Expert)//** | + | **//Special Parameters (not commonly changed from defaults)//** |
**OptimizeReads: | **OptimizeReads: | ||
Line 72: | Line 98: | ||
**SwapStyle: | **SwapStyle: | ||
- | ====Parameters specific to Modbus String | + | ====Parameters specific to Modbus String ==== |
+ | |||
+ | These are also used in the Modbus String Array | ||
**Length:** The length of the string (must be multiple of 2) | **Length:** The length of the string (must be multiple of 2) | ||
Line 94: | Line 122: | ||
</ | </ | ||
+ | ** //Advice on defining arrays in the spreadsheet// | ||
- | ===Parameters specific | + | Since arrays add extra columns |
- | + | =====EtherNet/ | |
- | + | ||
- | ====EtherNet/ | + | |
see also: [[ethernetip_plc_addressing_for_all_products|EtherNet/ | see also: [[ethernetip_plc_addressing_for_all_products|EtherNet/ | ||
Line 141: | Line 168: | ||
[[https:// | [[https:// | ||
- | ====Melsec (Mitsubishi Q)==== | + | =====Melsec (Mitsubishi Q)===== |
Spreadsheet header example (order of column headers does not matter) | Spreadsheet header example (order of column headers does not matter) |