Script on startup

More
6 years 2 weeks ago #185821 by andypugh
Replied by andypugh on topic Script on startup
Use an and2 using all-homed and motion.motion-type = 0?

That last condition will be slightly painful, as it's an s32 and needs to be convereted to float to use wcomp to test for zero.

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

More
6 years 2 weeks ago #185870 by MatthiasF1210
Replied by MatthiasF1210 on topic Script on startup
Hi,

i've done it.

in my hal-file

# -- NC-script on Startup Check with debounce --
loadrt debounce cfg=32,10,1
addf debounce.2 servo-thread
setp debounce.2.delay 1000
net all-homed => debounce.0.0.in
net mdi-cmd-startup <= debounce.0.0.out => halui.mdi-command-00


Thanks

Matthias

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

More
More
5 years 11 months ago - 5 years 11 months ago #189411 by Nitram
Replied by Nitram on topic Script on startup

i've done it.

in my hal-file

# -- NC-script on Startup Check with debounce --
loadrt debounce cfg=32,10,1
addf debounce.2 servo-thread
setp debounce.2.delay 1000
net all-homed => debounce.0.0.in
net mdi-cmd-startup <= debounce.0.0.out => halui.mdi-command-00


Is there a native gmoccapy pin which needs to be connected to the "all-homed" signal, or is it created by using a few and2 components combining all "joint.N.is-homed" pins to create an "all-homed" pin?

Thanks.
Last edit: 5 years 11 months ago by Nitram.

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

More
5 years 11 months ago #189551 by newbynobi
Replied by newbynobi on topic Script on startup
Gmoccapy does not need any special connections to all homed. It listen to Hal status all the time an if Hal status gets the signal it informs gmoccapy which will enable all necessary parts of the GUI.

Norbert

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

Moderators: newbynobi, HansU
Time to create page: 0.183 seconds
Powered by Kunena Forum