Halcompile What C commands can be used?
- Handy8000
- Topic Author
- Visitor
29 Apr 2018 19:29 #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.
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 or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4866
01 May 2018 23:38 #109973
by andypugh
Replied by andypugh on topic Halcompile What C commands can be used?
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.
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.
The following user(s) said Thank You: Handy8000
Please Log in or Create an account to join the conversation.
Time to create page: 0.047 seconds