plasmac error

More
03 Apr 2021 23:38 #204686 by phillc54
Replied by phillc54 on topic plasmac error
Something like below, changing pin names and delay to suit:
loadrt dbounce names=db_z_pos_lim
addf db_z_pos_lim servo thread
setp db_z_pos_lim.delay 3
net z_pos_lim_raw hm2_7i96.0.gpio.000.in => db_z_pos_limit.in
net z_pos_lim db_z_pos_lim.out => joint.3.pos-lim-sw-in

linuxcnc.org/docs/devel/html/man/man9/dbounce.9.html

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

More
03 Apr 2021 23:44 #204687 by motal2004
Replied by motal2004 on topic plasmac error
Would this me in my connection hal file Or the regular hal file?

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

More
03 Apr 2021 23:47 #204689 by phillc54
Replied by phillc54 on topic plasmac error
probably in your regular hal file, there will be existing connections there you need to break.

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

More
03 Apr 2021 23:57 #204692 by motal2004
Replied by motal2004 on topic plasmac error
the breaks sound like fun times

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

More
04 Apr 2021 02:01 - 04 Apr 2021 02:01 #204702 by motal2004
Replied by motal2004 on topic plasmac error
any one willing to help me here with the dbounce i tried and keep getting error, here is my hal file

File Attachment:

File Name: m6.hal
File Size:11 KB

please and thank you
Attachments:
Last edit: 04 Apr 2021 02:01 by motal2004.

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

More
04 Apr 2021 02:03 #204703 by phillc54
Replied by phillc54 on topic plasmac error
What is the error message?

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

More
04 Apr 2021 02:20 - 04 Apr 2021 22:52 #204705 by phillc54
Replied by phillc54 on topic plasmac error
Try this:
# --- MAX-HOME-Z ---

#net max-home-z     <=  hm2_7i96.0.gpio.037.in_not
#net max-home-z      <=  hm2_7i96.0.gpio.037.in

loadrt dbounce names=db_max-home-z
addf db_max-home-z servo-thread
setp db_max-home-z.delay 3
net max-home-z_raw hm2_7i96.0.gpio.037.in => db_max-home-z.in
net max-home-z <= db_max-home-z.out
Last edit: 04 Apr 2021 22:52 by phillc54. Reason: code typo, servo thread should be servo-thread, thanks PCW

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

More
04 Apr 2021 17:54 #204792 by motal2004
Replied by motal2004 on topic plasmac error
i get this error
hm2/hm2_7i96.0: IO Pin 050 (P1-25): IOPort
hm2/hm2_7i96.0: registered
HAL: ERROR: bad position: 0
twopass: Error in file ./m6.hal:
addf failed
Shutting down and cleaning up LinuxCNC...
hm2_eth: in hm2_eth_reset
hm2_eth: HostMot2 ethernet driver unloaded
hm2: unloading
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/cnc/linuxcnc_debug.txt
and
/home/cnc/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

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

More
04 Apr 2021 18:01 #204794 by PCW
Replied by PCW on topic plasmac error
addf db_max-home-z servo thread

should probably be

addf db_max-home-z servo-thread
The following user(s) said Thank You: phillc54

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

More
04 Apr 2021 18:09 - 04 Apr 2021 18:16 #204796 by motal2004
Replied by motal2004 on topic plasmac error
that work. linuxcnc complies and opens up. Now i get this error
joint 3 on limit switch error
emc/task/taskintf.cc 947: Error on joint 3, command number 166
/usr/lib/python2.7/dist-packages/gmoccapy/notification.py:168: GtkWarning: Invalid icon size 48

self.popup.show()


i had a typo in my hal file
Last edit: 04 Apr 2021 18:16 by motal2004.

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

Moderators: snowgoer540
Time to create page: 0.180 seconds
Powered by Kunena Forum