i have an Event script that is not quite working out for me and hoping to get some help.
it is a propertyChange script like this:
if event.propertyName == “HS_RETURN”:
if event.source.HS_RETURN == 1:
value = 0
event.source.HS_OUT = value
event.source.HS_RETURN = value
i have towo dynamc properties defined, HS_OUT and HS_RETURN, both are bound to plc Tags. When HS_RETURN changes from a 0 to a 1, i want to clear both bits. The script triggers and executes properly both properties being cleared, however, only the tag bound to HS_OUT gets cleared, the tag bound to HS_RETURN stays set even though the actual property is 0. Both tags are configured with ReadWrite access rights and both properties are set to allow bi-directional.