Halcompile What C commands can be used?

  • Handy8000
  • Topic Author
  • New Member
  • New Member
More
8 years 6 months ago #109818 by Handy8000
Halcompile What C commands can be used? was created by Handy8000
Hi All,

I have been modifying Arceyes Boxford lathe component to control a stepper driven 30:1 gearbox fitted with a toolplate, that reverses back onto a pawl to lock it.
I have the component working, but would like to add a few features to it.


Can anyone give a list of C commands that can be used with halcompile and these type of components ?
I've search and haven't found anything except looking at other components syntax.

Please Log in to join the conversation.

More
8 years 5 months ago #109973 by andypugh
You can use anything from basic C, but very little from any standard libraries.

The available maths functions are in rtapi_math:
github.com/LinuxCNC/linuxcnc/blob/master/src/rtapi/rtapi_math.h

(the other files in that folder define the other commands that can be used) .

If you halcompile --preprocess your .comp then you can tell what libraries get included by looking at the generated C-code.

Please Log in to join the conversation.

Time to create page: 0.086 seconds
Powered by Kunena Forum