Skip to content

PyPLC 8.0: Optimized to send events on ModbusMap update

Latest
Compare
Choose a tag to compare
@sergirubio sergirubio released this 03 Sep 10:02
· 16 commits to master since this release

8.0: Optimized to send events on ModbusMap update

Added AverageModbusCycle attribute
ModbusMap.trigger_callbacks filtered by changed address
Use changed to keep array index that differ
Added custom command to Regs call
Added custom command to Maps
Move mapping updates to SendModbusCommand
Solve bug on Mapping periods (ms to s)
Implement callbacks mechanism for maps (subscribe/trgger)

Other changes:

Solve bug when states not updated at Init
solve bug on empty SnapFile property
Add InputStatus commands, set callbacks if UseEvents
allow false to disable snapshots
added Utils file for exporting conversion methods to GUI's
Set Device to FAULT if communication is lost
Refactor lambdas init, pep8 and shorter IeeeFloats
Refactor IeeeFloat/Ints2Float, errors/slices
Add export(filename) to ModbusMap
Clean Modbus proxy on exit to avoid coredumps