MIRAC PC - fanuc OT - communication via MDI or MINP mode

All info relating to the Denford Mirac lathes

Moderators: Martin, Steve, Mr Magoo

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

MIRAC PC - fanuc OT - communication via MDI or MINP mode

Post by slackebr » Tue 15 Jun , 2010 3:22 am

Hi,

I have a Mirac PC (controller fanuc OT probably 1994) that its working fine with the DOS software. I'm a master degree student and I'm developing a software (windows SO) where one of the functionality is the communication with the CNC to send blocks and/or line command like a DNC. This software will works in a FMS system.
I get some information about to put the CNC in MDI mode via code M29 to send line by line and MINP mode to send a NC block, but I'm having dificult to implement this communications.I'm trying to send line by line via serial program only to test but I don't know how to prepare the equipament for this work.
Someone can help about this?

Thanks,
Rafael

User avatar
Denford Admin
Site Admin
Posts: 3632
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: MIRAC PC - fanuc OT - communication via MDI or MINP mode

Post by Denford Admin » Tue 15 Jun , 2010 8:55 am

I think this post will help:
viewtopic.php?f=7&t=1047

Maybe this will help with dripfeed settings:
viewtopic.php?f=47&t=531&hilit=4800+baud

It may help to tell us exactly which control and software you are using - post photos of the machine and electrical cabinet

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

Re: MIRAC PC - fanuc OT - communication via MDI or MINP mode

Post by slackebr » Thu 17 Jun , 2010 18:28 pm

Thanks,

I'll see this links and tomorrow I upload de photos of my equipament.

Rafael

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

Re: MIRAC PC - fanuc OT - communication via MDI or MINP mode

Post by slackebr » Fri 18 Jun , 2010 15:44 pm

I'm posting some photos of my Mirac PC. Can this photos help?
Attachments
18062010292_.jpg
18062010292_.jpg (87.89 KiB) Viewed 10940 times
18062010291_.jpg
18062010291_.jpg (89.22 KiB) Viewed 10940 times
18062010290_.jpg
18062010290_.jpg (92.31 KiB) Viewed 10940 times
18062010289_.jpg
18062010289_.jpg (69.8 KiB) Viewed 10942 times

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

Re: MIRAC PC - fanuc OT - communication via MDI or MINP mode

Post by Mr Magoo » Fri 18 Jun , 2010 22:39 pm

Hi slackebr,

Here are my suggestions to help with connecting your machine to your CIM system.

1) You MUST use the PC running the Mirac DOS software to control them machine. You can not send CNC programs to the machine controller directly. You can not use the MDI (M29) or MINP mode with your machine.

2) You can 'talk' to the PC running the machine via RS232, using the command $$RESET, $$MACHINE etc but you must first configure the machine software to accept these commands. Can you please send your .GO and .OPT files (these files are part of the machine control software) and I can advise how these should be changed to accept the remote control commands.

cheers

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

Re: MIRAC PC - fanuc OT - communication via MDI or MINP mode

Post by slackebr » Fri 15 Oct , 2010 21:25 pm

Hi Mr Magoo,

I didn't find the .GO and .OPT files but I was thinking other situation.
You know if I can run the DOS software via line command? If this possibility exist, I can create a batch file (for example: c:\> mirapc "program cnc"). If this is possible, do you know how I can do this?

Thanks
Rafael

User avatar
Denford Admin
Site Admin
Posts: 3632
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: MIRAC PC - fanuc OT - communication via MDI or MINP mode

Post by Denford Admin » Mon 18 Oct , 2010 9:35 am

I don't think it'll be possible to do it that way - even if it loaded the software with the CNC program in memory, you would still have to home the machine and press cycle start so I don't see the point of using a batch file.
The GO and OPT files will be on the floppy disk that the machine boots from. Setting the machine to accept $$MACHINE commands via RS232 will be the only way to control the machine from an external source.

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

Re: MIRAC PC - fanuc OT - communication via MDI or MINP mode

Post by slackebr » Fri 29 Oct , 2010 17:15 pm

Hi,

I'm sending below the content of the files .OPT and .GO that I found.
Can you help me to configure the $$MACHINE and who I use this option?

thanks,
Rafael


___________________
FLSTEP.GO

IBM.RS2 2
$2F8 3 MACHINE
$3E8 5 COM3
DENFORD1.KBD 1
18.2 $3F8 4
VGA.CRT 0
FLSTEP.APP

__________________________
FLSTEP.OPT

EXTCOMM_ENABLE 1
EXTCOMM_ROUTE 1
EXTCOMM_SDEVICE COM3
EXTCOMM_BAUD 4800
EXTCOMM_PARITY 0
EXTCOMM_DATABITS 8
EXTCOMM_STOPBITS 1
EXTCOMM_LF 1
EXTCOMM_ES 1
EXTCOMM_EE 2
-------------------------
AUTOERROR 0
DRAGMARKING 0
DISPLAYSIZE 3
NARROWSIMBOX 0
utils_menu_1 Dos Access
utils_go_1 dos
utils_menu_2 Turning Designer
utils_go_2 ldesign
mirac_sdevice machine
SRAMDRIVE 3
SHOWTOOL 1
-------------------------
safespindle 150
slave_encoder 2000
SLAVE_SPINDLEF 0.85
SLAVE_SPINDLELAG 35
lowspindle 100
highspindle 5000
-------------------------
mint_mfact 200
CHUCKCENTREX 10
moverangex 85
machineextentx 100
moverangez 160
machineextentz 200
-------------------------
SLAVE_ACCEL 120
HIGHFEED 3000
HIGHFEEDZ 3000
SLAVE_XDATUMFEED 1500
SLAVE_ZDATUMFEED 1500
-------------------------
SLAVE_ATC 2
mintool 1
MAXTOOL 8
-------------------------
SLAVE_PCHUCK 1
NOAIR 0
slave_thread 1
inspect 1
datumorder 1
SLAVE_IO 1
REMOTECHUCK 1
filetype FNC
jawsz 10
chuckz 40
SHAPE1 TOOL14
SHAPELR1 1
SHAPEFB1 1
SHAPE2 12MMDRL
SHAPELR2 1
SHAPEFB2 1
SHAPE3 TOOL11
SHAPELR3 1
SHAPEFB3 1
SHAPE4 4MMDRL
SHAPELR4 1
SHAPEFB4 1
SHAPE5 GROOVE2MM
SHAPELR5 1
SHAPEFB5 1
SHAPE6 TOOL21
SHAPELR6 1
SHAPEFB6 1
SHAPE7 TOOL1
SHAPELR7 1
SHAPEFB7 1
SHAPE8 DRILL3MM
SHAPELR8 1
SHAPEFB8 1
---------------------------------------

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

Re: MIRAC PC - fanuc OT - communication via MDI or MINP mode

Post by Mr Magoo » Tue 16 Nov , 2010 1:21 am

Hi

Your OPT and GO files indicate that your machine is already configured to use the $$MACHINE commands.

In order to use this, the computer that is controlling the machine MUST have 3 x serial ports fitted and be configured like this...

Mirac Machine connected to COM1
Desk Top Tutor connectoed to COM2
Your CIM remote computer connected to COM3
Note that COM3 MUST be configured to use Address $3E8 amd IRQ 5. If you are unsure about this then seek advice from your IT department. If you are using the computer originally supplied with your Mirac then I think this may already be configured like this.

Once you have setup your machine like this (see diagram) you should be able to send the command

??STATUS

followed by Carriage Return to the Mirac computer and see a response similar to

R0C0M0

NOTE the serial parameters are 4800Baud, no parity, 8 databits, 1 stop bit.

If the ??STATUS command works, then you can send
$$MACHINE FROM fred.fnc
to make the machine load and run the CNC program called "fred.fnc" which MUST exist on the mirac computerds disk
Mirac_CIM.JPG
Mirac CIM Diagram
Mirac_CIM.JPG (13.19 KiB) Viewed 10805 times
Hope this helps

Post Reply