motion.digital -- reset

More
05 May 2018 00:53 - 05 May 2018 01:08 #110226 by bevins
Replied by bevins on topic motion.digital -- reset
I didn't read the post completely so my suggestion was not valid here...

But Interesting topic.
Last edit: 05 May 2018 01:08 by bevins.

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

More
05 May 2018 05:00 #110232 by bkt
Replied by bkt on topic motion.digital -- reset
When i find the time to develop these type of comp (really not so difficult ... the difficulty is having the time to read all the .cc files that tell you the exact way to do it) .... for sure I post it here.

regards
giorgio

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

More
09 Aug 2021 17:51 #217324 by fsabbatini
Replied by fsabbatini on topic motion.digital -- reset
Sorry for bringing this post up, but i wanted a fanuc- or siemens-like behaviour: upon reset (ABORT), just reset all outputs.
For this just add


for (n = 0; n < emcmotConfig->numDIO; n++) {
*(emcmot_hal_data->synch_do[n]) = 0;
*(emcmot_hal_data->synch_di[n]) = 0;
}


in command.c and compile linuxcnc

Regards
Franco
The following user(s) said Thank You: tommylight

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

More
11 Aug 2021 00:26 #217449 by andypugh
Replied by andypugh on topic motion.digital -- reset
Resetting the inputs is probably a bad idea.

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

More
11 Aug 2021 00:47 #217453 by fsabbatini
Replied by fsabbatini on topic motion.digital -- reset
Why do you think so?
I have it working for a while perfectly,

so what i do is the following, i use the inputs and outputs to do M functions synchronized with the interpreter and the plc.
Fanuc and Siemens just set for one plc cycle the input and then reset it so you latch the current m function in the plc.

the thing is that if you use this inputs in the plc and then press reset button it will keep the last state without being able to reset them until you set or reset them in the cnc, i dont think this behavior is of any good...

Regards

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

More
11 Aug 2021 01:17 #217456 by andypugh
Replied by andypugh on topic motion.digital -- reset

Why do you think so?

Because the inputs _should_ take the value of the driving HAL pin. The reading part of the system has no business changing the signal value. 

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

More
11 Aug 2021 01:23 #217457 by fsabbatini
Replied by fsabbatini on topic motion.digital -- reset
thats true, im sorry, the inputs are not reset, just copy the part from init here
i reset just the outputs

for (n = 0; n < emcmotConfig->numDIO; n++) {
*(emcmot_hal_data->synch_do[n]) = 0;
}

thanks Andy for making me noticing i wrote it bad here

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

Time to create page: 0.073 seconds
Powered by Kunena Forum