Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.





The OPC is a block designed to communicate with an OPC Server. The OPC block is used to send and receive information from an OPC Server.


Block IDUnique Block ID. No other blocks or controllers must have the same ID.
Number of OutputsThe number of available outputs for the block.
IP AliasThis is a virtual IP for the target running the OPC block. The IP address must not be used by any other computers or devices on the network.
TCP PortTCP port used by the virtual IP to communicate with the OPC Server.


InputThis input specifies all of the Item IDs that will be sent to the OPC Server.
Output InitThis input must be filled with the default values for the output. Must be the same size as the Number of Outputs parameter.


Output: Output of all the OPC Server Item IDs.

Status: Status of the block. Typically, error codes should be 0 and the status field (index 4 and 5) should oscillate between 0 and 2. This status comes from another block within the OPC block. The output returns the following values:

0 or 1Input(s) send error
2 or 3Output(s) receive error
4 or 5Output(s) status
6 or 7Output(s) init error

Characteristics and Limitations

The OPC block Requires the following files to be added in the "File" tab of RT-LAB:

%RTLAB_ROOT%/common/lib/redhawk/AsyncDNP3_SlavebinaryBefore load
AsyncDNP3_Slave_cfg.xmlasciiBefore load

It is to be noted that the OPC block uses the DNP3 protocol to communicate with the OPC Server. The DNP3-to-OPC Server must be configured accordingly with the IP Alias and TCP Port in the block's parameter. Other default configurations that may be needed are the following:

Master Address: 100

Slave Address: 1

Direct FeedthroughNo
Discrete sample timeNo
XHP supportNo
Work offlineNo

For more information about the DNP3 configuration, right-click on the OPC block and select Look Under Mask. Some settings are also in the mask of OPC block.

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | | +1 514-935-2323