Advanced Search

Search Results (Searched for: )

  • Hakan
  • Hakan
25 Dec 2024 17:51 - 25 Dec 2024 18:10
Replied by Hakan on topic PDO variable 64 bit

PDO variable 64 bit

Category: EtherCAT

It is already a 64-bit float or "double" as everyone calls it except in the ethercat-conf.xml file. Where it is called float.
Linuxcnc switched from 32-bit floats to 64-bit floats somewhere version 2.4 or so.

If this line works for you, then that is the best you can do.
<pdoEntry idx="607A" subIdx="00" bitLen="32" halPin="poscommand" halType="float" scale="838860.7"/>
This takes a signed integer from Ethercat, obviously the device's encoder position comes as a signed 32-bit integer. This is then converted into a halfloat, which is a double. I think this is what you ask for. All floats in hal are 64-bit doubles.

The conversions to float aren't named very good
"float": ethercat signed 32-bit integer to 64-bit hal float
"float-unsigned": ethercat unsigned 32-bit integer to 64-bit hal float
"float-ieee": ethercat floating point 32-bit REAL to 64-bit hal float
"float-double-ieee": ethercat floating point 64-bit LREAL to 64-bit hal float
  • CNC_ANDI
  • CNC_ANDI
25 Dec 2024 17:46 - 25 Dec 2024 17:49
Replied by CNC_ANDI on topic Probe_Basic Bugs?

Probe_Basic Bugs?

Category: QtPyVCP

is not working fore me
machine.home.axis:c is ref my b axis
machine.home.axis:z is ref y2
machine.home.axis:b is ref my Z
  • papagno-source
  • papagno-source
25 Dec 2024 17:29
Replied by papagno-source on topic PDO variable 64 bit

PDO variable 64 bit

Category: EtherCAT

Ok I will try these commands, but I ask you, if I wanted to read or write in a PDO a float 64 value would it be possible?

This will mean that the pin that will be created will be declared as float 64.

halType="double"?

or hal non support pin declared 64 bit ?
Displaying 20806 - 20808 out of 20808 results.
Time to create page: 0.326 seconds
Powered by Kunena Forum