Programming the OPC UA client blocks
5.3 FB230 UA_Connect
CP 443-1 OPC UA
Operating Instructions, 01/2017, C79000-G8976-C427-02
85
Error OUT BOOL 0, 1 Error code
• 0: No error
• 1: An error has occurred. See "" parameter
"ErrorID".
ErrorID OUT DWORD See “Meaning” Output of the error number when "Error" = 1.
For the significance of the numbers, refer to the
section Error numbers (Page 107).
Note: If the error code B000F002 is output, the
OPC UA session is not yet established. Call the
UDT751 UASessionConnectInfo
UASessionConnectInfo
The following table shows the meaning of the connection information for the parameter
"SessionConnectInfo" of the UA_Connect block.
Table 5- 2 Parameters of UA_ConnectUDT UASessionConnectInfo
SessionName STRING 0 .. 254 char-
acters
Name of the session
If the string remains empty, the following is
entered by the system as the session name:
<Connection>+<decimal value of "Connec-
ApplicationName STRING 0 .. 254 char-
acters
The parameter is given the application name
of the CP (OPC UA client) configured In HW
SecurityMsgMode WORD 0 .. 3 Security process
• 0 = Best possible procedure
• 1 = No security process
• 2 = Authenticate
• 3 = Authenticate and encrypt
SecurityPolicy WORD 0 .. 4 Securityprofile
• 0 = Best possible security profile
• 1 = No security profile
• 2 = Basic128Rsa15
• 3 = Basic256
• 4 = Basic256Sha256
CertificateStore STRING 0 .. 254 char-
acters
Certificate store of the CP (OPC UA client)
The parameter is inserted by STEP 7.