DrvSBUS is a Web Port driver for communication via the SBUS protocol. SBUS is developed by SAIA-Burgess Electronics Ltd, for communication with SAIA's PCD devices.
To use DrvSBUS, an IO device is first created and then used to communicate with respective device/PLC.
Installation
The installation of DrvSBUS is done by selecting DrvSBUS during the installation of Web Port.
See "Installation" for more information on the installation process.
IO-device
To use DrvSBUS, first create an IO device as described in chapter "IO-devices" of the manual. In addition to general settings (see "general settings" in IO-devices), the following settings are available for an IO device of type DrvSBUS:
| Setting: | Description: |
| IP/Hostname | Specifies the computer name or IP address of the PLC |
| Port | Specifies the UDP port to use |
| Station ID | Station ID of the device being connected |
| Read timeout | Maximum reading time before attempt is interrupted |
| Read delay [ms] | Delay between the question being sent out on the network and the answer being read. (default 0) |
| Retry count | Number of reading attempts before reading is cancelled |
| Grouped query | Groups multiple reads in the same query, to reduce overhead. Values 0-32 |
| Use floating point | Ability to read records as floating point numbers. Requires the SAIA to be programmed for it |
| SBUS type | Specifies whether Ethernet (UDP) or a TCP-to-serial converter is used |
| Link to | Specifies whether queries should go through another (linking) IO device in the Web Port. When using a linking IO device, only the Station ID of the target device needs to be filled in. |
Information
To communicate with serial devices, you can either create multiple IO devices (with different station IDs) and link to the IO device connected via IP. Alternatively, the address in the tag list can be specified according to SID@R/F, where SID is replaced by the station ID of the current PLC. For example, 5@R100 to reach register 100 on device with station ID 5.
Tags
For more information on how to create tag lists and tags, see chapter "Tags" of the manual.
Information
The addresses of SBUS are on the form R100 and F100 for registers and flags (position 100).
You can also read and write the clock in the PLC by entering clock as the address.
NOTE!
The following datatypes are supported in Web Port for SBUS:
DIGITAL
LONG
INT (Handled as LONG)
ULONG
*REAL
STRING
*To use the datatype REAL, "Swapped Floats" needs to be activated on the IO-device!
Import of tags
Web Port supports converting export files from SAIA (.rxp) directly to Web Port tag lists using import filters.
Information
DrvSBUSImportfilterExample.csv contains a number of lines to show how it can be used.
However, in order to be useful, it should be extended and adapted to the library and the designation standard used in the programming of the PLC.
To perform an import, go to SYSTEM SETTINGS/TAGS and open the tag list where the tags are to be imported. Click IMPORT TAGS in the toolbar. In the dialog that opens, select the IO device from which tags are to be imported, as well as the .rxp file and import filter (from assets/import/drvsbus) . Click the import button in the dialog box to start the import. When the import is complete, an information box will appear showing how many tags have been imported.
NOTE!
The import skips tags that already exist in the Web Port. This is true even if the tags are in other tag lists, as Web Port checks the tag name generated on import.