- Posts: 1943
- Thank you received: 0
motion.digital -- reset
8 years 5 months ago #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.
But Interesting topic.
Please Log in to join the conversation.
8 years 5 months ago #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
regards
giorgio
Please Log in to join the conversation.
- fsabbatini
- Offline
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 1
5 years 2 months ago #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
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
Please Log in to join the conversation.
5 years 2 months ago #217449
by andypugh
Replied by andypugh on topic motion.digital -- reset
Resetting the inputs is probably a bad idea.
Please Log in to join the conversation.
- fsabbatini
- Offline
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 1
5 years 2 months ago #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
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 to join the conversation.
5 years 2 months ago #217456
by andypugh
Replied by andypugh on topic motion.digital -- reset
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.Why do you think so?
Please Log in to join the conversation.
- fsabbatini
- Offline
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 1
5 years 2 months ago #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
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 to join the conversation.
Time to create page: 0.047 seconds
