SetSystemConfig: OPC UA Time Sync
Configures the time synchronization for OPC UA tag timestamps.
Inputs
Syntax: EV SetSystemConfig("OPCUA.TimeSync",[TimeSyncFrequency],[InitialTimeoutSec],[TimeSyncFrequencySec],[WriteProcSet])
|
Parameter |
Description |
|---|---|
|
"OPCUA.TimeSync" |
References the OPC UA time sync settings. |
| TimeSyncFrequency |
|
| InitialTimeoutSec |
Specifies the amount of time the OPC UA server will wait (in seconds) for the date/time change to take effect. (default = 15 seconds) Note:
|
| TimeSyncFrequencySec |
Specifies the time synchronization frequency when the TimeSyncFrequency parameter value is set to 1. (default = 1 second) |
|
WriteProcSet |
|
Outputs
Returns a status code, followed by the number of characters (in bytes) for the results, then the results in XML format. The status codes are:
| Status Codes | Description |
|---|---|
| 1 | The command was executed successfully. |
| 0 | Unrecognized command. |
| -2 | The command could not be executed. |
| -6 | User does not have Full
Access to execute the command. |
Example
To specify the OPC UA time synchronization settings and save the settings to the proc.set file, issue the following command: EV SetSystemConfig("OPCUA.TimeSync",1,15,1,1)
The In-Sight vision system responds with a status code (1), followed by the number of characters, in bytes (20). Finally, the results are returned in XML format.