Programming the OPC UA client blocks
5.1
Program blocks for the OPC UA client
Overview of the program blocks for the OPC UA client function
The program blocks (FBs) listed below are available in the following block library for the OPC
UA client function of the CP.
● STEP 7 V5 : SIMATIC_NET_CP
Use the blocks on the CPU.
● STEP 7 Professional : Communication > OPC UA
Display of the block directories after opening the program editor (double-click on OB1 of
the S7-400 CPU)
Some blocks require special user data types (UDTs) that you will find in the following below
the relevant program block. The UDTs are available as pre-assembled data types in the
block library "SIMATIC_NET_CP". Copy the UDTs from the block library to the block folder of
the CPU of the station that uses the CP as an OPC UA client.
● FB230 UA_Connect
Establishes a connection for a session with an OPC UA server.
– UDT751 UASessionConnectInfo
– UDT752 UAUserIdentityToken
For its function, UA_Connect also requires an SFC51.
● FB231 UA_NamespaceGetIndex
Fetches the name space index of a name space URI.
● FB232 UA_NodeGetHandleList
Registers nodeIDs on the connected server and fetches the node handles in the form of a
list.
– UDT753 UANodeID
● FB233 UA_NodeReleaseHandleList
Releases the node handles of the used list on the server.
CP 443-1 OPC UA
Operating Instructions, 01/2017, C79000-G8976-C427-02
Contains connection information for the block parameter "SessionConnectInfo".
Contains the data of the user authentication for the block parameter
"UserIdentityToken".
Contains the parameters for identifying the target node for the block parameter
"NodeID".
5
79