OPCServer.ini - Controllers Area
In the [PLC:<PLC name>] sections, the connection settings for the corresponding controllers are defined.
Some of the parameters can be configured in the OPC configuration tool.
The controller address is configured in this section. The parameters that are available depend on the interface type.
Example of an INI File for the V3 Interface
Entry |
Meaning |
---|---|
[Server] |
Settings for the OPC server |
PLCs=1 |
Number of supported controllers |
PLC0=PLC1 |
Name of the first controller PLC 1 |
logevents=1 |
Enabling the log mechanism |
logfilter=15 |
Generating default log entries |
ReadCyclesAfterWrite=2 |
A callback is executed after each write job of the client for a value to retransfer the present value to the client after 2 update cycles. This setting is required for values that are changing quickly. |
UseColonAsPlcDevider=1 |
If a value greater than 0 is configured, the first dot after the controller name is replaced by a colon. NOTE: Not supported by all clients. |
updaterate=200 |
Update rate (in milliseconds) |
[PLC:PLC1] |
Settings for the first controller PLC 1. If several controllers are used, the first is configured, followed by an analog section for the second, etc. |
interfacetype=GATEWAY3 |
A connection to the controller is established via the GATEWAY3 interface. |
Active=1 |
Controllers set active are taken into account by the OPC server. |
Timeout=2000 |
If the OPC server has not received a response from the controller within this time (in milliseconds), it is closed automatically. |
Tries=3 |
Number of attempts to transfer a data block. |
Project=OPC.Device.Application.xml |
Name and path of the generated symbol file that is for a simulation. If no path is specified, the OPC server directory is used. |
reconnecttime=5 |
Time for reconnecting |
waittime=10 |
Time (in seconds) the OPC server waits until communication to the controller is available (after an automatic start of the controller). |
gateway=Tcp/Ip |
Address of the configured controller to be accessed from the computer on which the OPC server is running. |
Gatewayadress=localhost |
|
Gatewayport=1217 |
|
Device=TCP/IP |
Parameters for the connection to the controller from the computer on which the OPC server is running. The value entered for value0 is the CoDeSys node address. It must be identical to the nodename defined in the programming system. NOTE: If several hex address parts are displayed separated by a dot . in Logic Builder, enter the complete address (0000.050C). Alternatively, you can use the node name. |
Parameters=1 |
|
Parameter0=Address |
|
Value0=050C |
Example of an INI File for the V2.3 Interface
Entry |
Meaning |
---|---|
[Server] |
Settings for the OPC server |
PLCs=2 |
Number of supported controllers |
PLC0=PLC_A |
Name of the first controller PLC A |
PLC1=PLC_B |
Name of the second controller PLC B |
logevents=1 |
Enabling the log mechanism |
Logfilter=16#ffffffcf |
Enabling display of detected errors and information, no details |
ReadCyclesAfterWrite=2 |
A callback is executed after each write job of the client for a value to retransfer the present value to the client after 2 update cycles. This setting is required for values that are changing quickly. |
UseColonAsPlcDevider |
If a value greater than 0 is configured, the first dot . (for example, the dot after the controller name) is replaced by a colon. |
Updaterate=200 |
Update rate (in milliseconds) |
[PLC:PLC_A] |
Settings for PLC A |
active=1 |
Controllers set active are taken into account by the OPC server. |
interfacetype=GATEWAY |
A connection to the controller is established via the GATEWAY interface. |
Motorola=0 |
Motorola byte order |
nologin=1 |
Select this option for target systems that require a login service, for example, PacDrive M. |
timeout=2000 |
If the OPC server has not received a response from the controller within this time (in milliseconds), it is closed automatically. |
tries=3 |
Number of attempts to transfer a data block. |
waittime=10 |
Time (in seconds) the OPC server waits until communication to the controller is available (after an automatic start of the controller). |
reconnecttime=5 |
Time for reconnecting |
buffersize=0 |
The value 0 indicates that the buffer size is retrieved from the controller. |
Project=OPC.pro |
Name and path of the symbol file that is used for a simulation. If no path is specified, the OPC server directory is used. |
Gateway=TCP/IP |
Settings for the connection to the controller PLC_A (connection of the client to the local gateway via TCP/IP) |
gatewayaddress=localhost |
|
gatewayport=1210 |
|
device=TCP/IP |
Parameters for the connection to the target computer where the controller PLC_A is running (dialog communication parameter. |
parameters=5 |
|
parameter0=Address |
|
value0=127.0.2.1 |
|
parameter1=Port |
|
value1=1200 |
|
parameter2=Motorola byte order |
|
value2=No |
|
Parameter3=TargetID |
|
Value3=0 |
Target ID of the controller. It is used for routing at a routing communication driver to which the OPC server is to connect. |
Parameter4=SymbolFilePath |
Optional entry for the PLChandler; path to the last loaded symbol file. After analyzing the project ID of the file, it is determined whether the symbol file has to be reloaded. |
[PLC:PLC_B] |
Settings for controller PLC_B |