In your case if I understand what your wanting to do, it may be easier to set up a DeadBand in the Macro pump for that input. First Map your MODBUS127 to a User DRO.
Brian = Mod127->noop->UDRO1500
Then in Macro pump: (for a 10 point dead band on a scale of 0-100, band in the middle)
AnaIN = GetUserDRO(1500)
if AnaIN < 55 and AnaIn > 45 Then
MyDeadbandValue = 50
SetUserDRO(1501, MyDeadbandValue) 'this could also be an OEM DRO if it is one that allows writing to it
else
SetUserDRO(1501, AnaIN)
end if
scott