No eBay APP ID and/or Cert ID defined in Kunena configurationI have 3 jmc-motor.com Integrated steppers coming tomorrow. I don't need to read encoders. I just need to check the ESTOP/ERROR pin to see if the estop or one of the motors has alarmed. When they get here I find out if I can run them as NO or NC switches or if I need to get some more MFQ2222 chips which I already use for home sensors
I'm rewriting the uno ethernet code I found for the Mega2560. From:
forum.linuxcnc.org/24-hal-components/287...rduino-over-ethernet
I have also found using PORTA through PORTM for using coordinated multipin fires at the same time. I can use PA0-PA7 PORTA Digital pins 22 through 29 for 8 axis of DiRECTION pins. and 6usecs later use PC7-PC0 PORTC for digital pins 30-37 for step.
Using
PORTA = B11001101;
delay(6);
PORTC = B00001011;
instead of a whole bunch of
digitalWrite(22,HIGH);
digitalWrite(23,HIGH);
digitalWrite(24,HIGH);
digitalWrite(25,HIGH);
digitalWrite(26,LOW); ...
Integrated Closed-Loop Stepper 2nm 285ozin
This is the layout of the Mega 2560 chip PA0 is PORTA0 which is Arduino Pin Digital 22
www.arduino.cc/en/Hacking/PinMapping2560