Datasource OpcUa Library Documentation ¶ Company 3S - Smart Software Solutions GmbH Title Datasource OpcUa Version 4.4.0.0 Categories Intern|DataSources Namespace DatasourceOpcUaServer Author 3S - Smart Software Solutions GmbH Placeholder DatasourceOpcUaServer Description 1 ¶ Contents: ¶ Datasource OpcUa ComponentConstants (GVL) IUserConfiguration (Interface) Logging UserConfigurationV1 (FunctionBlock) Utils Library Information GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function) Indices and tables ¶ 1 Based on Datasource OpcUa.library, last modified 26.07.2023, 08:46:52. LibDoc 4.4.0.0-b.27 The content file Datasource OpcUa.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 26.07.2023, 08:46:52.
ComponentConstants (GVL) ¶ Attributes: qualified_only InOut: Scope Name Type Initial Constant DatasourceOpcUaComponentName STRING ‘DatasourceOpcUa’ ComponentId UDINT 16#1093
Datasource OpcUa ¶ ComponentConstants (GVL) IUserConfiguration (Interface) Assign (Method) Ready (Property) Logging OpcUaStatusCodeToString (Function) UserConfigurationV1 (FunctionBlock) Assign (Method) Ready (Property) Utils HasNullOrEmptySecurityPolicy (Function) SafeStringCopy (Function) TryAdjustData_Int (Function) TryAdjustData_Real (Function) TryAdjustData_UInt (Function)
IUserConfiguration (ITF) ¶ INTERFACE IUserConfiguration Properties: Ready Methods: Assign Structure: Assign (Method) Ready (Property)
IUserConfiguration.Assign (METH) ¶ METHOD Assign : ERROR InOut: Scope Name Type Return Assign ERROR Input dst POINTER TO BYTE
IUserConfiguration.Ready (PROP) ¶ PROPERTY Ready : BOOL
Logging ¶ OpcUaStatusCodeToString (Function)
OpcUaStatusCodeToString (FUN) ¶ FUNCTION OpcUaStatusCodeToString : STRING InOut: Scope Name Type Return OpcUaStatusCodeToString STRING Input status OpcUa_StatusCode
UserConfigurationV1 (FB) ¶ FUNCTION_BLOCK UserConfigurationV1 IMPLEMENTS IUserConfiguration The user provided configuration for the connection to the opc ua server See the opc ua standard on how to interpret theses parameters. InOut: Scope Name Type Initial Comment Input xValid BOOL Is the data ready to be read? The datasource will wait until this field is set to true, until the other fields are ready and the connection is established. Set this value to FALSE, while the datasource is connected to disconnect. SessionName STRING(255) ‘MySession’ The name of the session used. (OPC UA Standard value) EndpointUrl STRING(255) The uri of the endpoint to connect to. (OPC UA Standard value) TokenType OpcUa_UserTokenType OpcUa_UserTokenType.OpcUa_UserTokenType_Anonymous The UserTokenType that is used to authenticate the user (OPC UA Standard value) UserTokenUserName STRING ‘’ If the TokenType is set to OpcUa_UserTokenType_Username, the user name used for the connection is read from here. SecurityPolicyUri STRING(255) ‘ http://opcfoundation.org/UA/SecurityPolicy#None ’ The security policy used (OPC UA Standard value) SecurityMode OpcUa_MessageSecurityMode OpcUa_MessageSecurityMode.OpcUa_MessageSecurityMode_None The security mode used (OPC UA Standard value) SessionTimeout TIME TIME#60m0s0ms The time until the session is terminated, if the client/server do not respond. (OPC UA Standard value) SubscriptionPublishingInterval TIME TIME#1s0ms How often does the server send values to the client. (OPC UA Standard value) SubscriptionMaxKeepAliveCount UDINT 5 (OPC UA Standard value) SubscriptionLifetimeCount UDINT 15 Must be at least three times the SubscriptionLifetimeCount (OPC UA Standard value) SubscriptionMaxItemsPerPublish UDINT 3000 The maximal number of items that are sent in a single publish message. (OPC UA Standard value) SamplingInterval TIME TIME#1s0ms How often the current value is read on the server and made ready for publishing, should be equal to SubscriptionPublishingInterval. (OPC UA Standard value) ConnectionTimeout TIME TIME#20s0ms The time the datasource client will wait for the server to respond to the initial connection. (Datasource specific value) MaxMonitoredItemsPerCall DINT 500 The maximal number of monitored items that can be created with a single call to the server. If the server provides the node ‘Server.ServerCapabilities.MaxMonitoredItemsPerCall’, the minimum of this value and the server provided value is used. If the value is bigger than the value the server supports, the connection might fail. Properties: Ready Methods: Assign Structure: Assign (Method) Ready (Property)
UserConfigurationV1.Assign (METH) ¶ METHOD Assign : ERROR InOut: Scope Name Type Return Assign ERROR Input dst POINTER TO BYTE