Create your own variables
Open Start menu > Universal OPC UA Server > Edit variables. This opens variables.ini. Each variable is one section; the section name is the name of the variable.
[Line1.Counter]
kind=uint32
init=0
[Line1.Temperature]
kind=double
simulate=sine
min=18
max=24
The first is a counter that clients write; the second is a sine wave between 18 and 24 that the server generates itself.
- kind
- Data type: double, float, int32, uint32, int16, uint16, sbyte, byte, boolean, string
- init
- Initial value (optional)
- sampling
- Minimum sampling interval in milliseconds (optional, default 1000)
- simulate
- The server changes the value itself (optional): counter counts from min to max and starts again, random gives a random value between min and max, sine a sine wave between min and max, toggle switches a boolean
- min, max
- Range for simulate (default 0 and 100)
- period
- Duration of one sine wave in seconds (default 60)
- Save the file: the server applies the change after a few seconds, without a restart of the service.
- When it applies a change, connected clients are disconnected for a moment and have to reconnect.
- If values are to survive a restart: set save=60 in config.ini. The server then saves the values every 60 seconds and restores them at the next start. With save=0, all values start with "init".
- Comments start with ";" and are on their own line. If a variable is missing, the log shows the reason.
All settings are in the readme (English).