Skip to main content

Reply to "Arduino TMCC signalling"

Glad it worked!

If the TMCC receive test is successful, you can try transmitting a very simple 3-byte TMCC command - the emergency stop command (FE FF FF).  Get something running on your layout, then run this program (again assuming the serial adapter is connected to Serial1:

#define TMCCPort Serial1

void setup() {
Serial.begin(115200);
Serial.println("E-stop test starting");
TMCCPort.begin(9600);

TMCCPort.write(0xFE);
TMCCPort.write(0xFF);
TMCCPort.write(0xFF);

}

void loop() {

}


If successful everything TMCC on the layout should shut down.

Professor, I am not getting a response from the TMCC when I run the sketch shown on the attachment.  I am using a Mego 2560 with Rx1(pin 19), Tx1(pin 18). Any suggestions? I have one end of the cable (both ends female) plugged into the TMCC base and the other end plugged into a SparkFun adapter. 5 volts and ground from the Mego is on the Vcc and End pins of the adapter and the Tx-o and Rx-i from the adapter connected to pins 19 and 18, respectively. I'm assuming TX-o means this is the Tx from the TMCC so I connected it to the Rx of the Arduino. I have tried reversing the Tx and Rx connections to no avail. I am hoping I made a sketch error because I believe the connections are okay.

Again, Thank you

Attachments

OGR Publishing, Inc., 1310 Eastside Centre Ct, Suite 6, Mountain Home, AR 72653
330-757-3020

www.ogaugerr.com
×
×
×
×
×