B&R PVI
Overview
Section titled “Overview”Couples B&R controllers running Automation Runtime, on a real CPU or ArSim, through B&R PVI. Variables are read and written by name. Platform: Windows only.
The connection runs through PVI on the gateway PC.
Set up and parameters
Section titled “Set up and parameters”| Parameter | Example |
|---|---|
| Connection | ANSL (default) or INA2000 |
| Host / Port | 192.168.0.10 / empty = PVI default (ANSL 11169) |
| Timeout | 1500 ms (ANSL) |
| User / Password | optional ANSL login (Automation Runtime A4.61 and newer) |
| Refresh | 100 ms per variable |
| CPU poll | 2 s |
| Source / destination station | 1 / 2 (INA2000 only) |
CONNECT connects to B&R controllers running Automation Runtime on a real CPU or ArSim through B&R’s PVI. Variables are read and written by name, so nothing has to be released in the PLC project, unlike OPC UA. Use ANSL for Automation Runtime 4.08 and newer and for ArSim. INA2000 is available for older CPUs but has not yet been verified against real hardware.
Addresses take four forms, each followed by structure members and array elements as needed:
| Address | Meaning |
|---|---|
gCounter | global variable |
Prog1:localCnt | task-local variable of task Prog1 |
Mod1::gSpeed | global variable of an application module |
Mod1::Prog1:cnt | task-local variable inside an application module |
stData.Speed, arr[3], Prog1:st.arr[2].x | a structure member or array element |
Every signal is a single value. For structures and arrays, address the member or element you need. BOOL becomes a Boolean, and integer types become integers. A value beyond 32 bits shows as a signal issue instead of being wrapped. REAL and LREAL become floats, STRING and WSTRING become text, and TIME becomes an integer in milliseconds. Date and time values are read as text.
Browse lists the tasks and variables with their types and expands structures and arrays into single signals — up to Max browse variables (default 5000) and 1000 elements per array. Discovered signals arrive as PLC outputs (read); switch a signal to PLCInput to write it. Each interface also publishes the CPU state as <interface>.cpu.state (0 Run, 1 Service, 2 Stop, 256 offline) and <interface>.cpu.running; the PVI licence state is shown in the interface status.
Writing needs Allow web to PLC. CONNECT writes only the addressed member or element, never a whole structure, and only when the viewer changes a value. Nothing is written when the interface connects or reconnects, so the PLC keeps its own values. A change made while write access is off is discarded and not sent later.
Create or import signals
Section titled “Create or import signals”- Manually. Enter the variable name:
gCounter(global),Prog1:localCnt(task-local),Mod1::gSpeed(module),stData.Speedorarr[3](member or element). - Browse. Yes. Browse lists the tasks and variables with their types and expands structures and arrays into single signals, up to Max browse variables (default 5000) and 1000 elements per array. Discovered signals arrive as PLC outputs; switch one to PLCInput to write it.
- File import. No protocol-specific file import. Use Addresses → Import address table… for a prepared list.
- From the model. When the model already has its PLC signals, Addresses → Fill from controller… in the signal-mapping section of the CONNECT panel previews matches by exact name against what Browse finds and then writes the addresses. Addresses → Import address table… takes a CSV or TSV with
name;address[;dataType[;topic]]rows. New signals take direction and type from the same-named model signal; signals that already exist keep their configured type. See Configuring interfaces.
How direction, data types and write access are decided is explained in Common concepts and Configuring interfaces.
See also
Section titled “See also”- Common concepts — text signals, direction, write access, tracking signals
- Configuring interfaces — adding signals, direction and write access
- All supported interfaces
- Troubleshooting — connection and signal problems