MCPcopy Index your code
hub / github.com/rawpython/remi / _set_value

Method _set_value

editor/widgets/toolbox_siemens.py:357–360  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

355 self.plc_instance.set_bool(self.db_index, self.byte_index, self.bit_index, 0)
356
357 def _set_value(self, value):
358 #this function gets called when the camonitor notifies a change on the PV
359 self.led_status = value
360 self.led.style.update({'background-color':self.color_active if self.led_status else self.color_inactive})
361
362 def update(self, *args):
363 #this method gets called by the plc_instance

Callers 1

updateMethod · 0.95

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected