OnValueChangeByOwner
This event is triggered whenever the owner of the variable changes its value i.e. really
sends a different value or "Force Writing" is true.
If you should see any "Event Options" for this event - ignore them like PClient does.
Possible actions that can be assigned are
·
"No Action" which is the default
·
"Set Value" to assign a constant value to another variable, e.g. to reset a counter
or trigger something attached to a variable where "Force Writing" is true.
·
"Scale Value" allows modifying the new variable value before it is distributed within
the display. The following calculation will be applied using integer arithmetics:
variable_value = ((( received_value + offset1 ) * multiplier ) / divisor ) +
offset2
·
"Execute Script" allows to execute a script and provides additional parameter
"Execute on every Xth Event" so that it is possible to execute the script only for e.g.
every third variable update. This action should only be used for variables which are
rarely updated since otherwise it could slow down PClient.
OnValueChangeRequest
This event is triggered whenever an entity that is NOT the owner of the variable tries to
write a value to the variable. The event is only triggered if the value differs from the one
the variable currently has or "Force Writing" is true for the variable.
If you should see any "Event Options" for this event - ignore them like PClient does.
Possible actions that can be assigned are
·
"No Action" which is the default
·
"Set Value" to assign a constant value to another variable, e.g. to reset a counter
or trigger something attached to a variable where "Force Writing" is true.
·
"Scale Value" allows modifying the value to be written before it is forwarded to the
owner. The following calculation will be applied using integer arithmetics:
value_to_forward_to_owner = ((( requested_value +
offset1 ) * multiplier ) / divisor ) + offset2
·
"Execute Script" allows to execute a script and provides additional parameter
"Execute on every Xth Event" so that it is possible to execute the script only for e.g.
every sixth write request to the variable. This action should only be used for
variables where write requests are applied rarely since otherwise it could slow
down PClient.