Cyclone Fanuc OT Model B Control RS232 comms

All info relating to the Denford Cyclone lathes

Moderators: Martin, Steve, Mr Magoo

Post Reply
User avatar
bradders
CNC Guru
CNC Guru
Posts: 1251
Joined: Mon 13 Feb , 2006 12:35 pm
Location: Brighouse, England
Contact:

Cyclone Fanuc OT Model B Control RS232 comms

Post by bradders » Thu 27 Sep , 2007 12:03 pm

We have a Denford Cyclone slant bed lathe Fanuc OT Model B Control circa 1988
We need to Know the required settings for communicating with a Fanuc OTB control the cable is a standard Xon /Xoff configured 9 pin at the PC to 25 pin wired
9 pin 25 pin
2 2
3 3
5 7

Pins 4 and 5 are connected at the 25 pin end, as are 6,8 and 20.

On the machine bulkhead there is a pair of connectors. One is a Fanuc Paper Tape Honda 20 pin plug connector and the other is a 25 pin ‘D’ socket connector.

Currently data can be retrieved from the control through three different types of communication software, but can’t be sent successfully. On pressing the input key ‘LSK’ (label Skips) keeps flashing but doesn’t change to the message ‘INPUT’ on the screen.

The current relevant settings are

TVON=0
ISO=1
INCH=0
I/O=0 (Communication for program output is possible set to 0 or 1)
SEQ=1

PWE=0
TAPEF=0

Parameter 0002 = 10000001
Parameter 0012 = 10000001
Parameter 0038 = 10100000
Parameter 0552 = 9
Parameter 0553 = 9

User avatar
bradders
CNC Guru
CNC Guru
Posts: 1251
Joined: Mon 13 Feb , 2006 12:35 pm
Location: Brighouse, England
Contact:

Post by bradders » Thu 27 Sep , 2007 12:12 pm

When we used to incorporate the Fanuc OM and OT machines in out Denford CIM systems, we used the following information to set the communications to work

Denford Ltd
RS232 Functions of FANUC 0 Controllers

As well as the standard RS232 link capabilities of the FANUC 0 controls there are also a further two functions available for mass data transfer and specialist computer links.
DNC
By programming auxiliary code “M29” in “MDI” mode, The control will place itself in the “DNC” mode. Any valid NC blocks sent to the control will be executed but not stored in the controls memory and so a program of infinite length can be executed by the CNC machine.

The control will exit DNC mode if:
• An invalid block is transmitted.
• An “M02” or “M30” block is transmitted.
• Control/Reset is pressed.

During transmission the XON/XOFF protocol is used to control data flow.
“MINP” FUNCTION
With the “MINP” function enabled, the control will receive any valid NC block from a host computer and store these blocks in its internal memory. However, upon receipt of a program end code, it will automatically begin to execute the program just received until either:-
• “M02” or “M30” is executed, in which case the control will exit “MINP” mode.
• Auxiliary code “M15” is executed, in which case cycle execution will stop and RS232 input will resume.
• Control/Reset is pressed.
“MINP” mode us entered in one of two ways depending on the type of machine being used: note parameter PWE (Parameter Write Enable) should be set to 1 to alter the parameters.
1) ON DENFORD FANUC LATHES
Set parameter 11, bit 7 to 1 use “MINP” input
Set diagnostic 452, bit 4 to 1 use “MINP” input
Set parameter 111 to 15 the M code M15 is not buffered
2) ON DENFORD FANUC MILLERS
Set parameter 11, bit 7 to 1 use “MINP” input
Set diagnostic 451, bit 7 to 1 use “MINP” input
Set parameter 111 to 15 the M code M15 is not buffered
When parameter 11 is altered, PS alarm 00 occurs. This means that the controller should be switched off and on again with the new setting.

Please note that when the control starts to receive a NC program into its memory when in “MINP” mode, it will first erase any programs currently in its memory so the program protect key should be switched to OFF.

Baud rate is set with the BRATE1 parameter (552), note the I/O parameter must be set to 0 to use BRATE1.

BAUD : 4800
DATA : 7
STOP : 1
PARITY: EVEN

Again, data transmission is controlled using <XON> and <XOFF> protocol.

Start of program characters
“% ^M ^J” (CR/LF)

End of program characters
“M15 ^M ^J (CR/LF)
%”

All spaces are optional in a program, each line ends with a ^M and ^J (CR/LF)

Refer to the FANUC manual appendix for further details of parameters.

Ensure the machine is in MDI mode
1. Turn the ‘PROGRAM PROTECTION’ Key to the OFF position.
2. Press the DGNOS PARAM Button.
3. Press the Second Left Button under the Monitor (Page Down).
4. Change PWE Option to 1 (This must be set to allow alteration to the program).
5. Press the DGNOS PARAM Button.
6. Press the MDI Button. (Manual Data Input).
7. The = Sign after MDI will start to Flash.
8. Press the NO Button.
9. Key in the 3 figure Diagnostic Number e.g. 450.
10. Change the Binary Code e.g. 00100110 (The RH Bit is Bit 0) to give the correct Diagnostic.
11. Press the INPUT Button.
12. Press the DGNOS PARAM Button.
13. Press the Second Left Button under the Monitor (Page Down).
14. Change PWE Option back to 0 (As long as PWE is Set to 1 Alarm 100 will appear on the screen).
15. Turn the ‘PROGRAM PROTECTION’ Key to the ON position / OFF (Horizontal) for CIM mode and LSK to start flashing


Reset and Cancel buttons pressed together gets rid of the PS 100 alarm


To get LSK flashing

1. Turn protection key HORIZONTAL i.e. protection OFF
2. Press the AUTO Button
3. Press the CYCLE START Button
4. LSK should start flashing in the bottom right hand side of the monitor

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 » Thu 27 Sep , 2007 21:42 pm

Make sure yr program starts with a '%' sign.
It is on seeing this that the control changes from LSK to INPUT.

User avatar
Denford Admin
Site Admin
Posts: 3634
Joined: Fri 10 Feb , 2006 12:40 pm
Hardware/Software: Go to User Control Panel > Profile
Enter as much information about your CNC hardware and software as you can - it makes it easier for everyone to know what you're talking about then.
Location: Sunny Brighouse
Contact:

Post by Denford Admin » Thu 05 Feb , 2009 10:38 am

:!: :!: :!: :!: :!: :!: :!: :!: :!: :!: :!: :!:

WARNING
:!: :!: :!: :!: :!: :!: :!: :!: :!: :!: :!: :!:

Just while glancing through this post again, I remembered a "gotcha" from the old Fanuc days:

DO NOT turn the control off while the LSK or INPUT is active ! - I've done that a couple of times before, and corrupted the memory, loosing all programs, tool, offset, diagnostic and parameter settings

debinyang
Posts: 13
Joined: Mon 08 Jun , 2009 8:27 am
Contact:

Post by debinyang » Thu 11 Jun , 2009 14:05 pm

In my mind 552 and 553=10 means 4800 baudrate.
fanuc 0 has two rs232 ports. they vertical arranged on the board.
you can exchange another.
normally fanuc only display LSK no input flash.
LSK at here means waiting input or now is outputing.
because punch and read are two channel in the ic chips, another is cnc receiving channel was fired.

slackebr
Posts: 8
Joined: Wed 02 Jun , 2010 11:11 am
Hardware/Software: Mirac PC

Re: Cyclone Fanuc OT Model B Control RS232 comms

Post by slackebr » Wed 09 Jun , 2010 18:59 pm

Hi,

I have a Mirac PC - fanuc OT probably 1994 and I received by denford staff the explanation above about to put the CNC on DNC mode or MILT mode. However, I don't understand how to do this.
I'm testing the communication with a serial program and I don't know if I can send directly a M29 code via serial or I need to do this via software(DOS) and where I set the parameters 11 and 111.

Thanks,
Rafael

User avatar
Denford Admin
Site Admin
Posts: 3634
Joined: Fri 10 Feb , 2006 12:40 pm
Hardware/Software: Go to User Control Panel > Profile
Enter as much information about your CNC hardware and software as you can - it makes it easier for everyone to know what you're talking about then.
Location: Sunny Brighouse
Contact:

Re: Cyclone Fanuc OT Model B Control RS232 comms

Post by Denford Admin » Thu 10 Jun , 2010 8:50 am

These instructions are for the genuine Fanuc controller.
I think you have a Mirac PC which means it has a built in PC which runs the CNC controlling software - probably DOS sw (which worked similar to the Fanuc control)
I'm not sure you can send codes directly to the CNC software via RS232, but you should be able to drip feed from another PC - look for industrial text editor on this forum

Post Reply