mb2hal sets up float pins. Can this be fixed?
12 Feb 2016 00:46 #70021
by VNR
Replied by VNR on topic mb2hal sets up float pins. Can this be fixed?
It should be easy to add u32 and array of bits for modbus read functions.
Just create the memory (hal_malloc) in mb2hal_hal.c -> create_each_mb_tx_hal_pins,
then create the hal pins (like hal_pin_float_newf) in mb2hal_hal.c -> create_each_mb_tx_hal_pins,
then decode in mb2hal_modbus.c -> fnct_04_read_input_registers and fnct_03_read_holding_registers
The problem is free time to code and test
Just create the memory (hal_malloc) in mb2hal_hal.c -> create_each_mb_tx_hal_pins,
then create the hal pins (like hal_pin_float_newf) in mb2hal_hal.c -> create_each_mb_tx_hal_pins,
then decode in mb2hal_modbus.c -> fnct_04_read_input_registers and fnct_03_read_holding_registers
The problem is free time to code and test
Please Log in or Create an account to join the conversation.
- xenon-alien
- Offline
- Premium Member
Less
More
- Posts: 131
- Thank you received: 3
05 Nov 2024 12:31 #313813
by xenon-alien
Replied by xenon-alien on topic mb2hal sets up float pins. Can this be fixed?
Hello!
Is it possible to see the sent value from rs485 as a negative value in the 1.1 version in 2.9.3 LCNC?
I want to read the torque, rpm etc. and they have negative value, but i see only 65k number.
Is it possible to see the sent value from rs485 as a negative value in the 1.1 version in 2.9.3 LCNC?
I want to read the torque, rpm etc. and they have negative value, but i see only 65k number.
Please Log in or Create an account to join the conversation.
05 Nov 2024 14:14 #313816
by Aciera
Replied by Aciera on topic mb2hal sets up float pins. Can this be fixed?
Maybe this helps:
forum.linuxcnc.org/42-deutsch/52819-wert...-konvertieren#303034
forum.linuxcnc.org/42-deutsch/52819-wert...-konvertieren#303034
Please Log in or Create an account to join the conversation.
Time to create page: 0.087 seconds