I am trying to set a DRO that has a "DRO Code" from the drop down in its Properties... such as "xdro1" on the default screen. (In Mach3/VB this would be like a "SETOEMDRO" if I remember correctly.)
Used the code "scr.SetProperty('xdro1', 'Value', tostring("999"))" and it works for a millisecond (you can see it flash by in the DRO). But then the Value goes back to what it was before the DRO was set.
I notice that when the "DRO Code" is cleared, this doesn't happen. Obviously there is another part of the process that I am unaware of. Please advise!
Also just noticed that it works when the screen is being edited. So, I'd guess this is some sort of PLC script issue or something like that.