number SetProperty(string ctrlName, string propName, string newValue)
The function is int the "scr" table.
scr.SetProperty('droXy', 'Value', tostring(XYval));
All parameters are strings. So you have to convert the XYVal into a string with tostring(). Now, this does not control the format of the DRO. That is done with the Format property that should already be set.
Any property of any control can be set this way. The property names for the controls are what are used in the properties grid in the editor. There is no documentation that lists the properties of each control yet. Just look at them in the properties grid and use what you want.
As I said, look to the PLC script as an example of this function where we make the Enable button blink.
Hint: Where there is SetProperty(), there is also a GetProperty() making it possible to read the properties of any control.
Steve