RS232 language on Triac ATC

All info relating to the Denford Triac series of CNC milling machines

Moderators: Martin, Steve, Mr Magoo

Post Reply
sweep
CNC Apprentice
CNC Apprentice
Posts: 96
Joined: Thu 16 Nov , 2006 20:33 pm
Location: Birkenshaw
Contact:

RS232 language on Triac ATC

Post by sweep » Mon 10 Mar , 2008 20:58 pm

Can anyone advise what format the signals carried on the rs232 cable between the back of the Triac and the toolchanger cabnets are, or even better the actual code for the signals? I am trying to figure out how to control the toolchanger from my PC (mach3) without ripping out all the original ATC electronics and starting again. I have measured the signal on my oscilloscope but need to know which of the rs232 languages it conforms too e.g. ab ascii. Actually it would me more correct to say the gent who is very kindly helping me needs to know this info.

thanks ...Sweep

sweep
CNC Apprentice
CNC Apprentice
Posts: 96
Joined: Thu 16 Nov , 2006 20:33 pm
Location: Birkenshaw
Contact:

Post by sweep » Tue 11 Mar , 2008 20:19 pm

To solve my problem I am told that I need the "command codes the software used to talk to the ATC controller."
I am sure that some of you will understand what this means, but does anyone have access to this code. I am desperate for this as I really do not want to dump the ATC from the Mach3 setup.

Thanks again ...Sweep

User avatar
davidimurray
CNC Expert
CNC Expert
Posts: 194
Joined: Thu 24 Aug , 2006 9:45 am

Post by davidimurray » Sun 23 Mar , 2008 13:34 pm

Sweep

Why not sort out a second PC andrecord the traffic on the RS232 lines?

I did this about 5 years ago when working on some equipment.

For Example -
http://www.lammertbies.nl/comm/cable/RS ... nitor.html
http://www.aggsoft.com/serial-port-moni ... onitor.htm

Cheers

Dave

sweep
CNC Apprentice
CNC Apprentice
Posts: 96
Joined: Thu 16 Nov , 2006 20:33 pm
Location: Birkenshaw
Contact:

Post by sweep » Sun 23 Mar , 2008 19:38 pm

Hi David,

As you have suggested, I have already been monitoring the flow of data on the RS232 cable by Hyperterminal, Mach3's built in Serial port monitor, and also with my digital oscilloscope.
From the switch info for the SMCU on North Eastern Electronics website, I should be operating at 1200baud with 'odd' parity. The problem is that when I capture the signal as text and then 'fire' it back at the oscilloscope the trace is never the same as the original trace taken directly from the Triac. I have also tried it with every conventional baud rate (300,600,1200...etc) with 7bit and 8bit strings but I can never get it the same.
I have attached a scope trace from the original Traic signal to see if it makes sense to anyone but I guess that's a bit of a tall order.
Any suggestions David??

...Sweep
Attachments
DSCF1511.JPG
DSCF1511.JPG (1.43 MiB) Viewed 6228 times

User avatar
davidimurray
CNC Expert
CNC Expert
Posts: 194
Joined: Thu 24 Aug , 2006 9:45 am

Post by davidimurray » Tue 25 Mar , 2008 19:19 pm

Are you trying to send strings of characters, or a single character?

When I wrote some software to work with the Triac a while back. I had major problems talking to it. Now Baud rates should sort everything out, but I couldn't get them to! In the end I had to put a software loop delay between the sending of each character and that made things work. I know that sounds really stupid, but it took me weeks to work that out. You might want to try and write a little app to send a line to the machine with delays between each character.

Also are you using a laptop, some have terrible switching thresholds on their serial and parallel ports to try and save battery.

Cheers

Dave

sweep
CNC Apprentice
CNC Apprentice
Posts: 96
Joined: Thu 16 Nov , 2006 20:33 pm
Location: Birkenshaw
Contact:

Post by sweep » Tue 25 Mar , 2008 20:38 pm

Talk about re-inventing the wheel!
After weeks of frustration of receiving code strings of one length only to record them of shorter length when monitored on my scope, I finally sussed last night that there is an approx 9.5 millisecond delay between each character byte sent !!
Using Hyperterminal it allows yo to insert this delay but only in whole numbers i.e. 8, 9, 10... millisecond, so t is actually soewhere between 9 and 10.
I should be able to write a pause in Virtual Basic to mimick this effect.
As for tonights experiments I am going to se if I can prompt the ATC to work when the signal, with delays, is fired at it from Hyperterminal.
Thanks for your comments David ...just wish they had ahave come a couple of weeks ago :wink:

...Sweep

dscolwill
Posts: 13
Joined: Mon 05 Nov , 2007 21:04 pm
Location: Nottingham

Post by dscolwill » Tue 25 Mar , 2008 23:56 pm

Can you post a picture of the inside of the NEE control box?
David

User avatar
Mr Magoo
CNC Guru
CNC Guru
Posts: 301
Joined: Tue 21 Feb , 2006 21:45 pm
Location: Brisbane, Australia

Post by Mr Magoo » Sat 29 Mar , 2008 22:56 pm

Hi Guys,

I've not been watching the forum for a while and only just seen this thread - thought I'd give my 2 cents worth...

The controller inside the ATC box is modified North East Electronics (NEE) SMCU board. NEE did special firmware to implement the link between the CNC, but it is possible that the serial link uses standard SMCU commands (I dunno?)

You can download the SMCU interface spec here
http://www.nee-controls.com/legacy_downloads.html
The doc give details of checksums etc so may help in decoding the serial data structure.

More info - The additional serial port needed in the Triacs main controller to talk to the ATC box was implemented purely in software (no uarts or stuff available), hence the delays needed between characters etc.

All this may be a red herring but worth mentioning...

Post Reply