From OpenSCADAWiki
Configuring and using
- 1. Create an output transport of the type "Serial" or "Sockets", and set its Identifier like to "mbbase", one for each the devices' used serial bus.
- 2. Set proper address and timeouts of the device.
- 3. Create and start a logical controller object or a ModBus controller object or use any present one with need scheduling properties.
- 4. Create a logical parameter object and select the template for that, one for the devices on one bus — enable the parameter.
- 5. Into the tab "Template configuration" of the logical parameter object you need to set:
- Transport — to the address of the automatically created transport with its parameters after ":", accordingly to the function SYS.Transport.outAt() address format. Leave the field empty for the ModBus controller object. Tracing for the address changing is supported.
- Device address (for the logical controller object) — to logical address of the device on the bus under the transport in step 1. Tracing for the address changing is supported.
- ModBus type (for the logical controller object) — to the ModBus protocol type/variant from the list: RTU, ASCII, TCP.
- ModBus maximum block size (for the logical controller object) — to the ModBus protocol package data maximum size in the range [10...200].
- ModBus blocks merging (for the logical controller object) — for allowance of merging the ModBus protocol fragmented blocks of the registers.
- 6. RESULT: The logical parameter object will: dynamically create needed attributes accordingly to the attribute "Items set" value and perform interaction and placing of gathered data to the parameter attributes. Also you are able to change for writable attributes.