TeleBUS Driver Tags

TeleBUS is a communications protocol that uses standard Modbus messages to retrieve history logs and audit information. Most TeleBUS messages consist of three Modbus exchanges:

  • A command code is written to the command registers.
  • The reply registers are read until a successful command has been confirmed.
  • Data registers are read.

First, VTScada tells the TeleBUS RTU what information to look for by writing a command code and a meter run number to the command registers (which typically start with register 49500). The command codes indicate to the RTU the kind of data to load into the data registers. As an example, command code 801 can be used to retrieve the AGA-8 gas ratios. Along with the command code itself, we also supply the meter run number and the user/PIN combination.

After that command has been sent the RealFlo RTU will attempt to process it, loading the appropriate data into the data registers. It will then set the reply registers (typically starting with register 49505) to either a copy of the command code or to an error code. After sending a message VTScada’s TeleBUS driver continuously reads these command registers until it finds a match. The number and frequency of these checks can be tuned in the TeleBUS driver’s configuration folder.

Finally, assuming that the reply registers indicate that the operation has been completed successfully, VTScada reads the data registers and brings back the data.

RPC Service

The TeleBUS driver does not have its own RPC Service but rather uses the same one as its child Modbus driver. This is important to know if you are configuring custom server lists for your TeleBUS communications – you should look to create a new sever list based on the name of the child Modbus tag.

TeleBUS Application Properties

TeleBUSFailoverCount = 1

Number of consecutive errors before soft driver failover occurs

TeleBUSMaxReadLength = 125

Maximum block size for TeleBUS reads

Server List

Select (or create) a named server list. (Driver Server Lists) Servers for the list must be defined using the Application Configuration dialog, as described in Servers for Specific Services. Smaller sites that do not have multiple servers, or that use only the default server list, need not configure this field.

TeleBUS Driver tag Communication properties tab

I/O Device

Select the Modbus driver that will communicate with the equipment.

The TeleBUS driver does not perform its own communications, but rather it organizes and sequences a number of Modbus messages that are sent through the standard Modbus driver. As a result, some communications settings may need to be set in the child Modbus driver instead of the TeleBUS driver itself.

Command Register & Reply Register

These allow you to specify the start of the command and reply registers if they are different from the standard RealFlo configuration.

User Number & User PIN

These can be configured in the RTU as a security measure. If this feature is not used both values should set to 1.

Confirm Delay

The number of seconds that the driver will wait between reads of the Reply Registers while waiting for acceptance of a command to be confirmed by the RTU. A shorter delay will result in faster poll times, while a longer delay will minimize bandwidth usage.

Max Confirmation Attempts

Is the number of times the Reply Registers are read without confirmation before the driver assumes that the command cannot be completed and declares a failed communication. This value should be tuned in conjunction with the Confirm Delay parameter – a long confirm delay and many attempts results in long timeouts in the event of a failed message, while a short confirm delay and few attempts may result in the driver giving up too soon before the RTU has a chance to confirm receipt of the command.

Device Clock Time Zone

The time zone of the RTU clock. This is used when logging time stamped information such as alarms, events and history.

Enable Tracing

If selected, a log file will be created under the Data\Trace folder of the application.

Hold

Select this to have I/O tags attached to the driver hold their last value in the event of a communication failure. If not selected, tags will have their value set to invalid on a communication failure.