How do I change which COM ports my DOS machine software uses

CNC related queries on software; firmware; DOS; Windows; parameters; programming; error messages etc.

Moderators: Martin, Steve, Mr Magoo

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

How do I change which COM ports my DOS machine software uses

Post by Mr Magoo » Wed 01 Mar , 2006 11:21 am

How do I change which COM ports my DOS machine software uses?

My software is currently configured to run with the Desk Top Tutor connected to COM1 and the Machine connected to COM2 but I want to swap them arround

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

Take a look in the .GO file...

Post by Mr Magoo » Wed 01 Mar , 2006 11:38 am

DOS based machine software uses it's ".GO" file to specify which COM port to use. This is a text file and can be edited using windows Notepad or similar

(The actual filename will depend on the model of your machine - eg Novaturn uses filename FLSTEP.GO, TriacPC uses FANUCMD.GO etc)

Here is an example TriacPC ".GO" file (called FANUCMD.GO)...

IBM.RS2 1
$2F8 3 MACHINE
DENFORD1.KBD 1
18.2 $3F8 4
VGA.CRT 0
FANUCMD.APP

The line reading "$2F8 3 MACHINE" specifies the COM port the machine uses
The line reading "18.2 $3F8 4" specifies the COM port the Tutor keypad uses

Infact the 2 values following the $ sign represent the address and interupt (or IRQ) of the COM port.

On an IBM compatible PC these values are...

COM1= $3F8 4
COM2= $2F8 3
COM3= $3E8 4
COM4= $2E8 3

So to change the example GO file shown above so the machine works on COM 1 and the tutor works on COM2, we change it to read...


IBM.RS2 1
$3F8 4 MACHINE
DENFORD1.KBD 1
18.2 $2F8 3
VGA.CRT 0
FANUCMD.APP

Post Reply