How the Station Number and Name is Allocated to a Physical PC

Why is the Station Number and Name important?

The station number (and name) is the identity of a station within a network system based on PcVue. It is the base to distribute roles within the client/server system, which station produces and which station consumes data acquisition flows, variables, archives...
The station number and name are also used in the construct of the names of the many system variables that provide status information about the station. For example SYSTEM.<StationName>.OK_NUMBER.

Automatic allocation

By default, the station number is allocated automatically based on the project configuration.

When PcVue starts, it looks up the project's network configuration for either the computer host name or IP address (depending on which you have used in the project configuration). If the host name or IP address can be matched to that of a configured station, PcVue allocates the corresponding station number.

In the following picture, if PcVue finds that the host computer has the IP address 192.168.2.3 the station number is set to 3 and the station name to STATION3. ClosedShow picture

Allocation fallback with INI.DAT settings

If the host computer network interfaces cannot be looked up, PcVue takes the station number you have defined in the file ETC\INI.DAT. This may occur when the network interface cards is deactivated or a network cable is unplugged for example.
The same goes if the look up for automatic allocation does not find a match because neither the host name nor the IP address of the host computer can be found in the configuration of any station in the project.

You can edit the ETC\INI.DAT text file with an editor such as Notepad. PcVue must be shut down before you edit this file.

The parameter that must be changed is the first after the keyword PINI. By default, it is set to 1. In the extract below, it has been set to 7.

PINI,7,,1,1,256000,1,0,0x0,21,0,0,0

POS,64,80,580,360

The allocation based on the INI.DAT is an important fallback mechanism in case the automatic allocation cannot find a match at startup. For this reason, it is important that you configure the INI.DAT properly on all PcVue host computers.

On an RDS host computer, the INI.DAT is used as fallback only for the allocation of a station number to the PcVue instance running on the RDS host session. It is ignored for instances running in remote desktop sessions.

Allocation using the -station_number command line argument

The station number can be forced via a command line argument.
This capability is only useful in specific cases when you want to bypass both the automatic allocation and the fallback mechanism, for example on an engineering station for the purpose of a specific one-time test.

If the command line used to start PcVue has the -station_number argument followed by a value, the value passed will be used as the station number. When defining the station number on the command line, the automatic allocation is bypassed and the default in INI.DAT is ignored.

For example, the following command line allocates the station number 99.

C:\Program Files\SCADA\PcVue\bin\sv32.exe -s -station_number 99

We recommend you to be extra careful when allocating the station number via the command line to avoid duplicated station numbers on the network. As for IP addresses, duplicated station numbers for stations running at the same time on a network lead to unexpected behaviors that can affect operation safety and security.