Siggen.N.frequency

More
25 Jan 2019 17:25 - 25 Jan 2019 17:28 #124829 by mmt
Siggen.N.frequency was created by mmt
I need a variable frequency ttl outpit. My machine is using 2 parports. I have it working via a siggen in hal and I am using motion.alalog to set the frequency through Glade panel manually and M68 in my programs.

I need my frequency to range from 0 to 27Khz (as it is setup in Glade) however it is saturating at 498.xxxxxx hz.

How can I check to see if this is a limitation of my parport or a hal/Glade issue?

Thanks
Last edit: 25 Jan 2019 17:28 by mmt.

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

More
25 Jan 2019 18:07 #124836 by PCW
Replied by PCW on topic Siggen.N.frequency
You should be able to get to 1/2 of your base thread frequency with a square wave output and up to your base thread frequency if you use a stepgen+reset instead if siggen

If you can only get to ~500 Hz this suggests that siggen.update is linked to the servo thread (at 1 KHz) rather than the base thread

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

More
25 Jan 2019 20:06 - 25 Jan 2019 20:07 #124854 by mmt
Replied by mmt on topic Siggen.N.frequency
i have in hal

loadrt threads period1=1000000 name1=thread
addf siggen.0.update thread

siggen.0 is the only one using thread

i noticed if i make it 10000000 my max frequency is 49.8xxxx and if i make it anything less than 1000000 linuxcnc will not start

???
Last edit: 25 Jan 2019 20:07 by mmt.

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

More
29 Jan 2019 13:49 #125167 by andypugh
Replied by andypugh on topic Siggen.N.frequency
Are you running a conventional LinuxCNC system or just a standalone HAL for the siggen?

linuxcnc.org/docs/2.7/html/man/man9/siggen.9.html

It needs to run in a thread that has floating-point enabled. It is possible to enable floating point in the base thread.

linuxcnc.org/docs/2.7/html/man/man9/threads.9.html

I suggest loading two threads, one at 1kHz and one at 54kHz, enable FP in the fast thread and see what happens.

When you say "LinuxCNC will not start", what is the error message?

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

Time to create page: 0.061 seconds
Powered by Kunena Forum