Quote:
I am wondering how to wireup and set limit switches in Kmotion. I have just a typical Normally NO or NC limit switches. Would I wire these to any IO pin? for instance If I wanted to wire these for my first axis to say... IO 29/30. would I hook one wire up to 3.3V on Kflop and have the switch signal this? For instance If I wire it as NC(normally Closed) would I select the box under Configuration>Limit Switch option to "stop when low" because when the switch is engaged it should be Low? And If I wire it NO I would leave this box unchecked?
For noise immunity most systems run limits at 24V and optically isolate them from the digital electronics. Most all of our option boards (ie our
Quote:
I am also a little confused on how to setup the Estop. Is this done by using the watchdog.c file in the directory? If so do I need to include the bit number into "xxx" for the Estop in this if/else statement?
if (ch0->Enable && ch1->Enable && ch2->Enable)
{
SetBit(xxx); // yes they are, enable the amplifier
}
else
{
ClearBit(xxx); // no at least one is disabled, disable the amplifier
}
I'm not sure what aspect of EStop you are referring to? Normally an EStop is an external signal that kills power and so forth. The EStop signal is also wired as an input to the Controller to inform it that EStop has occurred so that the Controller can disable its axes and stop Interpreting GCode etc... In that case your example is backwards. That example is showing a means of sending a signal out whenever the Axes are disabled for any reason. This is often used to disable external amplifiers whenever KFLOP is not controlling them.