- Posts: 24
- Thank you received: 0
mb2hal sets up float pins. Can this be fixed?
10 years 8 months ago #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 to join the conversation.
- xenon-alien
- Offline
- Premium Member
-
Less
More
- Posts: 157
- Thank you received: 0
1 year 11 months ago #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 to join the conversation.
1 year 11 months ago #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 to join the conversation.
Time to create page: 0.038 seconds
