TG9541 / stm8ef-modbus

A lightweight framework for MODBUS RTU nodes in STM8 eForth that can do more than just I/O
https://github.com/TG9541/stm8ef/wiki/Board-C0135
MIT License
32 stars 12 forks source link

Use bitfield addressing to improve FC-1 and FC-2 #23

Closed TG9541 closed 4 years ago

TG9541 commented 4 years ago

Bitfield read BF@ for Little Endian (LE, MODBUS) and write for BF! Big Endian (BE, STM8) was introduced in #19.

Generalize this to BF@ .,. BF! (BE) and LEBF@ ... LEBF! (LE) and use it for FC-1 (Read Coils) and FC-2 (Read Discrete Inputs).