new hal modul

More
5 years 10 months ago - 5 years 10 months ago #192254 by chris@cnc
Replied by chris@cnc on topic new hal modul
Its working now. And Rod you are right Syntax
Code:
timer += fperiod;
is cleaner. Is only one variable necessary and in halshow is timer now only 0.3 digit variable.
For everyone how need one timer output control. May its also useful for flashing signal light.

Warning: Spoiler!
Last edit: 5 years 10 months ago by chris@cnc.
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #192274 by Himarc3D
Replied by Himarc3D on topic new hal modul
Linuxcnc have classic ladder and its powerful.

For one timer control 3 rungs you can get it, C/C++ is best for complex task like motion control.

The classic ladder editor you can see the the status of variable, status of logic result.

Here at forum root boy and big john have nice examples to setup it. I bet if you try the same using ladder in 2 days you get it

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago - 5 years 10 months ago #193002 by The Feral Engineer
Replied by The Feral Engineer on topic new hal modul
If you'd like some help putting this together in classicladder, I'd be willing to give it a go :cheer:
Last edit: 5 years 10 months ago by The Feral Engineer.

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #193019 by chris@cnc
Replied by chris@cnc on topic new hal modul

BodybyBostonCream wrote: If you'd like some help putting this together in classicladder, I'd be willing to give it a go :cheer:


Thanks for the offer but the module works great and the code in the Hal is very short. So far all of my options have been very simple and I didn't really need the ladder. And this was one of the last ones and I didn't want to start with it. Maybe with the next machine. My last option is to be a 4th axis. It should be switchable from velocity to position control. I would like to be able to program speed or angle one day. And that's more difficult than expected. If you have an idea that would be great. The problem is to configure a second spindle that can also be a c-axis.

Please Log in or Create an account to join the conversation.

Time to create page: 0.353 seconds
Powered by Kunena Forum