Skip to main content

Reply to "Sending TMCC Commands to Legacy Base over Serial Connections"

Hello everyone, sorry for reviving an old thread, but I'm now trying my hand at a small program using Excel VBA to throw switches.  I think I understand the basic concepts, but have yet to get anything to really work.

My code does send something through the com port as I see the red and green lights flash on the SER when I try.  But, nothing happens to the engine.  I'm trying a simple fire rear coupler command.

So, I think what I am sending is most likely incorrect.  I've got a couple of questions if anyone could please help me out:

1 - Do you send the 3 bytes as binary or as hex?  Seems like binary as the port settings call for 8 data bits.

2 - Do you add a single bit ("1") to the end as the stop bit?  I don't think so, but figured I'd ask.

3 - Can you just send this as a string to the com port, or does it have to be in some other variable type (such as byte)?

4 - If it's byte type, then do I declare it with a size of 24? Or 3?

I could post my code if anyone would be willing to give it a look.

Thanks for any help!

OGR Publishing, Inc., 1310 Eastside Centre Ct, Suite 6, Mountain Home, AR 72653
800-980-OGRR (6477)
www.ogaugerr.com

×
×
×
×
×