UserConfigurationV2 (FB)

FUNCTION_BLOCK UserConfigurationV2 EXTENDS UserConfigurationV1

InOut:

Scope

Name

Type

Initial

Comment

Inherited from

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.

UserConfigurationV1

SessionName

STRING(255)

‘MySession’

The name of the session used. (OPC UA Standard value)

UserConfigurationV1

EndpointUrl

STRING(255)

The uri of the endpoint to connect to. (OPC UA Standard value)

UserConfigurationV1

TokenType

OpcUa_UserTokenType

OpcUa_UserTokenType.OpcUa_UserTokenType_Anonymous

The UserTokenType that is used to authenticate the user (OPC UA Standard value)

UserConfigurationV1

UserTokenUserName

STRING

‘’

If the TokenType is set to OpcUa_UserTokenType_Username, the user name used for the connection is read from here.

UserConfigurationV1

SecurityPolicyUri

STRING(255)

http://opcfoundation.org/UA/SecurityPolicy#None

The security policy used (OPC UA Standard value)

UserConfigurationV1

SecurityMode

OpcUa_MessageSecurityMode

OpcUa_MessageSecurityMode.OpcUa_MessageSecurityMode_None

The security mode used (OPC UA Standard value)

UserConfigurationV1

SessionTimeout

TIME

TIME#60m0s0ms

The time until the session is terminated, if the client/server do not respond. (OPC UA Standard value)

UserConfigurationV1

SubscriptionPublishingInterval

TIME

TIME#1s0ms

How often does the server send values to the client. (OPC UA Standard value)

UserConfigurationV1

SubscriptionMaxKeepAliveCount

UDINT

5

(OPC UA Standard value)

UserConfigurationV1

SubscriptionLifetimeCount

UDINT

15

Must be at least three times the SubscriptionLifetimeCount (OPC UA Standard value)

UserConfigurationV1

SubscriptionMaxItemsPerPublish

UDINT

3000

The maximal number of items that are sent in a single publish message. (OPC UA Standard value)

UserConfigurationV1

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)

UserConfigurationV1

ConnectionTimeout

TIME

TIME#20s0ms

The time the datasource client will wait for the server to respond to the initial connection. (Datasource specific value)

UserConfigurationV1

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.

UserConfigurationV1

ApplicationName

STRING(255)

‘CODESYS Datasource OpcUa Runtime’

A human readable name for the application

ApplicationUri

STRING(255)

‘runtime.opcua.datasource.codesys.com’

A globally unique identifier for the instance of the application

Properties:

Ready, inherited from UserConfigurationV1

Methods:

Structure: