Okay,
Here is some code to display Spindle Speed Override Percentage. I tried to get it to modify the Screed DRO but for some reason wasn't having any luck on my end, I'm not sure why since I have used the scr.SetProperty code before with DROs; maybe someone else can jump on here and tell me what's up. Either way, I got it to work.
--Place this code in the PLC script
--SSO Percentage Display
local inst = mc.mcGetInstance()
local SSO = mc.mcSpindleGetOverride(inst)
local SSOPercentage = (SSO * 100)
mc.mcCntlSetPoundVar(inst, 500, SSOPercentage)
--scr.SetProperty('droSSOPercent', 'Value', tostring(SSOPercentage));
So, the DRO you place in the Screen needs to be set up correctly.
In this example, I have it looking at #VARS 500.
In the DRO Properties, set the "System VAR"to 500
You can name the DRO: droSSOPercent if you want to see if the last commented out section works, but like I said, it didn't work on my end.
But this will display the percentage of the slider.