...
Code Block |
---|
<component_template config_version="1.0" schema_version="1.0"> <description>template_Adam_4051</description> # This is the general description respectivly the name of the Template. <vendor>azeti</vendor> <version>2</version> <class>multi-sensor</class> <sensors> <sensor sensor_id="DI00"> # This is the name of the sensor as it will be shown in the Dashboard. . . . </sensor> . . . <devices> <device device_id="ADAM-4051"> # Name of the device. <modbus_device pdu_addressing="false"> # Wheter or not, PDU addressing is turned on or off. Respectively if the register starts from 0 (true) or 1 (false). <modbus_rtu> # What ModBus type we are using. Possible options are ModBusRTU and ModBusTCP. <daemon_id>0</daemon_id> # This is the serial interface to be used, configurable in the SiteController.cfg (See Link below). <data_bits>8</data_bits> # Databits used by the device (default is 8). <stop_bits>1</stop_bits> # Stopbits used by the device (default is 1). <baud_rate>9600</baud_rate> # Baudrate used by the device. <parity>none</parity> # Parity used by the device. <slave_address>1</slave_address> # Slave address used by the device. </modbus_rtu> </modbus_device> <sensor_gateways> <sensor_gateway sensor_gateway_id="ADAM-4051" publish_strategy="on_change"> # Here we define the name of the gateway, so the sensor knows which one to use. # Additionally we can change how the sensor data will be sent to the server. # Possible options: never, on_change, interval, always. <modbus> # In some cases, it is required to use multiple gateways. Exmaple below. <modbus_register> <register_address>1</register_address> # This is the the first register address of the device. <register_count>16</register_count> # Here we tell the system, how many registers the device has. In this case 16, because the Adam has 16 inputs. <block_type>coils</block_type> # Here we define what kind of type these registers are (Ex. coils, holding registers, input registers). </modbus_register> <scheduling> <polling_interval>200</polling_interval> # Here we define how often the registers should be polled. The value 200, is equal to 0.2 seconds. <error_handling> <retry retry_algorithm="linear"/> </error_handling> </scheduling> </modbus> </sensor_gateway> </sensor_gateways> </device> </devices> </component_template> |
...