-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hal pin not updated correctly on start up #139
Comments
@gmoccapy what component are you saying is buggy? What inputs or input-transitions does that component treat in a way you think is improper? btw I fixed your markup. Use a line with just "~~~~" before and after code blocks, and remember you can "preview" before submitting and I believe you can also edit the text after submitting |
Hallo Jepler, IMHO something with the hm2_eth driver is not OK, as it does not update the hal pin correctly, it only updates the outputs on a change, but that does not happen on start up. Norbert |
You really cannot use the FPGA I/O watchdog this way. If you have a watchdog event, its basically |
OK I understand, but if I change the config to setp hm2_7i76e.0.7i76.0.0.output-08 1 I have the same behavior, it should set input 20 to True if i start with estop circuit closed and through iocontrol.0.user... it should set output 09 to TRUE, but that does not happen! Norbert |
I can't duplicate this setp hm2_7i76e.0.7i76.0.0.output-00 false Do you check that output 9 is actually set in your failing case? |
I will do some more testing and come back to that issue. Norbert |
Hallo, I followed the signals in detail and found the problem to be iocontrol. connected as described in first post! If I start the machine with ESTOP enabled (open circuit) So all OK here, now I close the ESTOP circuit (reset estop) and the signal runs through iocontrol to output-09, so that is fine! If I start linuxcnc with ESTOP in restet mode (circuit closed) I do expect the signal to reach also output-09, but it only reaches iocontrol.0.emc-enable-in. iocontrol.0.emc-enable-out does not get high! opening and closing the ESTOP circuit solved the problem, but IMHO if in is hight, out should be hight too. Bug or race conflict? Norbert |
probably closed by #2497 |
I have an external estop and a momentary switch to switch on my machine.
This is the relevant part of the hal file:
Whatchdog.has_bit is connected to not.in
not.out to output-08
output-08 to estop-switch
estop-switch to input-20
input-20 to iocontrol.0.emc-enable-in
iocontrol.0.emc-enable-out to output-09
output-09 to momentary-switch
momentary-switch to input-21
input-21 to halui.machine.on
If I start the machine with pressed estop (estop circuit is open / broken)
and get out of estop, closing the circuit, output-09 get TRUE and I can use the momentary switch to enable my machine.
If I start my machine with ESTOP circuit being OK, then output-09 will not get hight, output-08 is hight. I need to push estop, release it again to update the hal pin state.
IMHO that behavior is not OK.
Norbert
The text was updated successfully, but these errors were encountered: