motion.digital -- reset

More
26 Apr 2017 00:25 #92113 by bkt
motion.digital -- reset was created by bkt
I have never faced the topic and did not find anything useful .... but there is a way to reset all motion.digital pin to "0" state ... eg when the program ends?

For shure is possible use and comp for make a and statement with "motion.digital.out-00 & halui.machine.is-running" for example .... but if I use 32 i/o It's a bit uncomfortable ...
If there are any of these I'm happy to make a new rt-comp for these ....

regards
Giorgio

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

More
27 Apr 2017 14:13 #92212 by andypugh
Replied by andypugh on topic motion.digital -- reset
I was expecting M2 to do this, but I can't see it in the code.

You could remap M75 (for example) to do a loop of M65 Pn commands.

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

More
28 Apr 2017 02:57 #92242 by rodw
Replied by rodw on topic motion.digital -- reset

I was expecting M2 to do this, but I can't see it in the code.

You could remap M75 (for example) to do a loop of M65 Pn commands.


Andy, where do you find the source for M & G codes? . I had a quick look on git hub for it today but had no luck.

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

More
28 Apr 2017 09:29 #92249 by andypugh
Replied by andypugh on topic motion.digital -- reset

Andy, where do you find the source for M & G codes? . I had a quick look on git hub for it today but had no luck.


M2 is here, in convert_stop along with M30 and others:
github.com/LinuxCNC/linuxcnc/blob/master...erp_convert.cc#L4095
The following user(s) said Thank You: rodw

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

More
01 May 2017 00:11 #92399 by bkt
Replied by bkt on topic motion.digital -- reset
sorry ... is my bad english .... ok for the program end ... M2 can do these .... but in case my program was interrupt from an external event .. eg. estop button ...and if the state of M64 Px is "1" no One can reset the stat2 to "0" ... so in these case my request is valid.

using a remap code .... not shure can work in estop state for eg. .... I think about somethings that send a signal "ngc code interrupt" to a "reset digital.in/out" void.

Reading these folder teach me ... github.com/LinuxCNC/linuxcnc/blob/master/src/emc/rs274ngc/ ...a curiosity What is means with " [NCMS/* what is NCMS??*/, pages 10 - 11]"

regards
giorgio

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

More
01 May 2017 01:04 #92401 by andypugh
Replied by andypugh on topic motion.digital -- reset
www.mattshaver.com/NCMS_RS274NGC.pdf

(skunkworks found it)
The following user(s) said Thank You: bkt

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

More
01 May 2017 11:41 #92431 by bkt
Replied by bkt on topic motion.digital -- reset
real-real thanks andypugh ... Beautiful document to be studied.

regards
Giorgio

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

More
04 May 2017 16:53 #92666 by bkt
Replied by bkt on topic motion.digital -- reset
sorry andypugh ... what is means for skunkworks ... is lockheed martin company related? or is it a way of saying or someone's alias here on the site?

regards
giorgio

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

More
04 May 2018 14:57 #110208 by bkt
Replied by bkt on topic motion.digital -- reset
a little workaround .... using halui.program.is-running + halui.progam.is-auto I can send a signal when program run ... plus near M2/M30 a motion digital out set hight for only 0.2 se2 (with G4 + M64 & M65) .... in these way I can set a merker for start program not depending from gcode .... and plus near M2/M30 code i can generate "stop execute gcode custom signal" using a motion.digital pin out.

this is ok ... but better was make a realtime comp that generate a command for INTRP_EXIT state when STOP command is sending during the execution of gcode (in these way is possible reset every motion.digital in/out).

regards
Giorgio

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

More
05 May 2018 00:33 #110225 by bevins
Replied by bevins on topic motion.digital -- reset

sorry andypugh ... what is means for skunkworks ... is lockheed martin company related? or is it a way of saying or someone's alias here on the site?

regards
giorgio


Skunkworks is a user here.

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

Time to create page: 0.180 seconds
Powered by Kunena Forum