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
xValidBOOLIs 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.
SessionNameSTRING(255)‘MySession’
The name of the session used. (OPC UA Standard value)
EndpointUrlSTRING(255)The uri of the endpoint to connect to. (OPC UA Standard value)
TokenTypeOpcUa_UserTokenTypeOpcUa_UserTokenType.OpcUa_UserTokenType_Anonymous
The UserTokenType that is used to authenticate the user (OPC UA Standard value)
UserTokenUserNameSTRING‘’
If the TokenType is set to OpcUa_UserTokenType_Username, the user name used for the connection is read from here.
SecurityPolicyUriSTRING(255)The security policy used (OPC UA Standard value)
SecurityModeOpcUa_MessageSecurityModeOpcUa_MessageSecurityMode.OpcUa_MessageSecurityMode_None
The security mode used (OPC UA Standard value)
SessionTimeoutTIMETIME#60m0s0ms
The time until the session is terminated, if the client/server do not respond. (OPC UA Standard value)
SubscriptionPublishingIntervalTIMETIME#1s0ms
How often does the server send values to the client. (OPC UA Standard value)
SubscriptionMaxKeepAliveCountUDINT5
(OPC UA Standard value)
SubscriptionLifetimeCountUDINT15
Must be at least three times the SubscriptionLifetimeCount (OPC UA Standard value)
SubscriptionMaxItemsPerPublishUDINT3000
The maximal number of items that are sent in a single publish message. (OPC UA Standard value)
SamplingIntervalTIMETIME#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)
ConnectionTimeoutTIMETIME#20s0ms
The time the datasource client will wait for the server to respond to the initial connection. (Datasource specific value)
MaxMonitoredItemsPerCallDINT500
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: