I wonder if i should have the machine constants at RTS or 3-Wire?
I have tried to connect the machine (Maho MH 600E - CNC432) to my pc today, but it did not go so well. I used Hyperterminal to send files.
I got the same error code (D84 i think it was) for data input and output, the error code stands for "waiting to long".
So i was install a instrument (line listener) between the serial cable, and
then i could see that some information be sent from the pc to the machine. At the same time when i click send, when i try to send a program from the pc i got the error code comes up on the machine. I was thinking if the program have to start with any character to start recieve the file i try to send?
And if i tried to send data away from the machine to pc, the machine only
was sending "EQ" 5 times with about 5 seconds between each other,like it
wait for a signal from the pc. And when the 5th "EQ" has been send to pc,
the error code D84 come up again. Does anyone now anything about this problem, or have any tip?
Here are my settings:
Baudrate= 2400
Data bits= 7
Parity= Even
stop bits= 2
Flow controll Hardware
Send CR at line end
Local ecco
Here are the program i try to send:
%PM
N9008
N1 F200 S650 T1 M67
N2 G1 X30
N3 Y20 M30
I wonder if i should have the machine constants at RTS or 3-Wire?
3 wire is for software handshaking. It is the method I found works best. It uses X-on, Xoff signals for flow control. With a 25 pin connector, pin 2 at machine goes to pin 3 at computer. Then pin 3 at machine goes to pin 2 at computer. Pin 7 doesn't cross over to anything, so pin7 to pin 7. Also program must start with a %PM for first line. Easiest way to see the program format is to send a program from machine to computer, then open it with notepad.
What program do you use to send/recieve data to the machine? I have this type of cable:
When you send programs out from the machine, do you need to give the machine any character to start to send over the data to computer? Or could you specify in details how you make the machine send data in/out?
1
For communication software we use Multi DNC. It is fairly expensive and is not nessessary for only 1 PC per machine. Hyperterminal will work fine. I never use hardware handshaking on the 432 CNC, because it can be quite difficult to get it to work reliably, if you get it to work at all. Besides software handshake is so much simpler, and you only need a 3 wire cable, so I will only comment on the 3 wire method.
First check your machine constants, they should look like this:
N 770 = 0 (DIO / DNC)
N 771 = 0 (0= ASCII)
N 772 = 1 (DIO Recognition Automatic)
N 773 = 2 (DIO Flowcontrol 3 wire)
N 774 = 30 ( DIO Leader/ Trailer)
N 775 = 1 ( Stop Bits 1 or 2 )
N 776 = 2400 ( Baud Rate)
You must also make a 3 wire cable like this:
9 Pin PC 25 Pin CNC
Pin 3 ------------> Pin 3
Pin 2-------------> Pin 2
Pin 5-------------> Pin 7
Constant N770 must be set to "0". You cannot use DNC mode with serial communication. It requiers special sofware and setup from DMG.
To output a program, simply press the "PROG MEM" key, then F5 "ID DIR", then "DATA IN/OUT", then F3 "OUTPUT".
The setup in hypertemimal is good except change flow control to "software X-ON X-OFF. I can't remember the hyperterminal control codes for this, or if you really need to set them, a Google search may help as I have not used hyperteminal for a long time. Send me a PM, IF you need a good MSDOS program for file transfer.
I have try this setup that you was recomend me to use, and i could send programs from Pc to Maho, but not from Maho to Pc? I was use Hyperterminal, and when i have send the program i have to push Ctrl+D and then the machine start to recieve it. But when i was try to send program from the machine nothing happend om the Pc? Any ideas about that?
And when i have machine constant N 770 at 0 (=V24) i canīt start the hydraulic at the machine? This happen when i try to start it, it run a few seconds and then i got Error code M01 I05 I01? N 770 was set to 3 (=V11/V24)
You have to make sure you have selected a program on the CNC that you wish to send to the PC.
Constant number N770, if the value= 3 works, then use that, don't change it.
Also you may try to use the V24 program I sent you.
When i have constant number N770 at value=3(V11/V24), then i canīt send the program from Pc to machine anymore? But when i have N770 =0(V24) then it works fine to send the program, but the machine will not start?
Machine constants N782 to N798, what setup should this have?
After you change constant N770 = 0, are you remembering to return the constant write toggle switch back to the run position??? Or if you use constant N80 to unlock the constants you must return N80 = 0, to be able to start hydraulics. I don't understand how changing a constant for communication causes the machine to not start??
On our Maho mills we don't have N782, but I believe this is for RS 422???
But for :
N796 = 1
N797 = 1
N798 = 0
N799 = 0
Yes i was remember to return the constant write switch. But like you say, i donīt understand why the machine not start after changing constant N770? Itīs correct that constant N782 is for RS 422, do you now what this serial port is for? Maby i have to change some machine constants for RS 422 to make it work?