B&R PVI Interface
B&R PVI Interface (Bernecker & Rainer Process Visualisation Interface)
Protocol description
The B&R PVI Interface protocol is used to communicate with the B&R PLC using the PVI interface from Bernecker & Rainer. The following features are supported:
reading and writing (input and output I/O tags),
reading and writing simple types (i8, i16, i32, i64, u8, u16, u32, u64, boolean, string, wstring, time, dt, date, tod),
working with individual items (which are of simple types) of structured variables,
reading arrays into structured I/O tags with a configured Destination column of the structure.
Working with the "data" data type is not yet supported.
Communication was tested with both virtual and physical B&R PLC with PVI versions:
Automation Net PVI V4.0
Automation Net PVI V4.2
Automation Net PVI V4.3
Automation Net PVI V4.7
Hierarchy of PVI objects
B&R PVI defines the following object hierarchy for the INA2000 line, which is used to communicate with the B&R SG3, SGC, and SG4 control units via the INA2000 (Industrial Network Architecture) protocol.
Line and Device objects are configured in the protocol parameters of the D2000 communication line.
Station, CPU, Module, and Task objects are configured in the protocol parameters of the D2000 communication station.
Variable objects are configured as D2000 I/O tags.
Communication line configuration
Communication line category: API.
Line protocol parameters
The following global line protocol parameters can be configured for the "B&R PVI Interface" protocol:
Parameter | Meaning | Unit | Default value | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
--- PVI Parameters --- | |||||||||||||||||||
Communication timeout | Parameter for the PviXInitialize function (PVI interface initialization). | sec | 0 | ||||||||||||||||
Retry time | Parameter for the PviXInitialize function (PVI interface initialization). | sec | 0 | ||||||||||||||||
Initialization parameter string | Parameter for the PviXInitialize function (PVI interface initialization).
| - | - | ||||||||||||||||
Line object definition | ObjectDescriptor parameter for the PviXCreate function when creating a Line object. | - | CD=LnIna2 | ||||||||||||||||
Device object definition | ObjectDescriptor parameter for the PviXCreate function when creating a Device object. | sec | 30 | ||||||||||||||||
--- Other Parameters --- | |||||||||||||||||||
Browse tasks | The parameter affects the scope of browsing used to configure the I/O tags. | YES/NO | NO | ||||||||||||||||
Inactivity timeout | If the value of the parameter is non-zero, then within the periodic reading of values within the station, it is checked whether any value was received by any station on the line during the last "Inactivity timeout" seconds. If not, the connection to the PVI Manager will be disconnected and re-established. | sec | 0 | ||||||||||||||||
Cleanup command | This parameter allows the batch file to be started at the (re)start of communication. This batch file can e.g. restart the PVI Manager process (PviMan.exe) - e.g. using the pskill.exe utility or using the Windows utility "sc" if PVI Manager is running as a service. Restarting helps if, for example, the PVI Manager stays in the "Locked" state. | - | - | ||||||||||||||||
Cleanup timeout | The time limit in seconds for the batch file specified by the Cleanup command parameter to finish execution. After this time elapses, the command will be terminated. | sec | 10 | ||||||||||||||||
Post create delay | Delay after creating each object. This parameter is used to slow down the start of communication for debugging and diagnostics. | sec | 0,0 | ||||||||||||||||
Asynchronous write/create | The parameter determines the method of communication with the PVI Manager when creating objects and writing values. The asynchronous method is recommended, the synchronous method is implemented only for debugging and diagnostics. In addition, the synchronous mode of operation is not supported by the PVI Manager from several threads, so it can only be used with a single B&R line. | YES/NO | YES | ||||||||||||||||
Value Debug | Logging of values being read and written, together with names of /O tags. | YES/NO | NO | ||||||||||||||||
Full Debug | Logging of additional debug information about communication. | YES/NO | NO | ||||||||||||||||