Using Kermit with Cincinnati Press Brake Machines

Cincannati Incorporated makes press brake machines, used to form or bend metal parts, as well as flat roll, shearing, and die-cutting machines. These machines are controlled by CNC (Computer Numerical Control) programs (CLICK HERE for an overview).

In this page we say "press" or "press brake" for convenience, but this can refer to any type of Cincinnati machine that is controlled in the same way.

Cincinnati machines are connected to PCs via serial port. The CNC program is written on the PC, downloaded to the machine, and then possibly modified by the machine operator and uploaded back to the PC. Kermit software is used for this process in all machines manufactured since 1987, as you can see in this 1998 handout from Cincinnati Inc. YOU SHOULD READ THIS HANDOUT, and then read the rest of this page for corrections and supplementary information.

The Cincinnati handout discusses both MS-DOS Kermit and Kermit 95, and states that MS-DOS Kermit can be used on Windows 95 and NT. THIS IS NOT NECESSARILY TRUE. MS-DOS Kermit is not designed for, and is not supported on, 32-bit versions of Microsoft Windows such as Windows 95, 98, ME, NT, 2000, or XP. If you are using MS-DOS Kermit on 32-bit Windows and have problems with it, you'll need to switch to Kermit 95, which is native, recommended, and supported on 32-bit Windows.

This page discusses common problems using Kermit 95 with Cincinnati machines. An unusual aspect of the Kermit/press connection is that Kermit is normally in server mode, so it can be controlled by a Kermit client on the brake press; some consequences of this fact are covered below.


I can't make the serial port work

The newer your PC or Windows version, the less likely it is to have a traditional "COM1" type of serial port (such as an 8250 or 16550A UART). Newer Windows platforms have all sorts of serial-port and/or modem substitutes or simulations that can't be accessed by the regular COM-port driver. Instead, they must be used through the Windows Telephony interface (TAPI); that is, through the name listed in the Phone and Modems folder (possibly just Modems, depending on the Windows version) of the Windows Control Panel.

Unfortunately, COM ports (or their modern substitutes) usually do not show up in the Control Panel Phone and Modems folder by default. If this is the case on your Windows PC:

  1. Click Start → Settings → Control Panel
  2. Open the Phone and Modem Options item
  3. Click the Modems tab on top
  4. Click the Add button
  5. When the Wizard appears, click the check box that says "Don't detect my modem..."
  6. Click Next
  7. Under (Standard Modem Types) you should see: Communications cable between two computers listed - select this and then click Next.
  8. Choose the COM port you want to use (COM1), click Next
  9. Once the Wizard completes, click Finish, you should see the new item
  10. Close out of the Phone and Modem options, close Control Panel

Now when setting up Kermit 95, instead of using:

set port com1

Use:

set port tapi Communications_cable_between_two_computers

Even when you are using the appropriate driver (COM or TAPI), you still might need to make certain adjustments to communicate successfully:

set speed 9600
(or other speed) Kermit's speed must match that of the brake press.

set flow none
In case your Kermit program is set for RTS/CTS (hardware) flow control, which the press brake does not support.

set carrier-watch off
In case the brake press or your cable does not supply the Carrier Detect signal.

set parity none
In case Kermit has been set to even, odd, mark, or space parity.


Files sent from the press to the PC get the wrong name

When Kermit receives a file that has the same name as an existing file, it must do something to avoid destroying the existing file. Normally, it renames the existing file, and then stores the incoming file under the name it was sent with. For example, suppose a file called HANDLE.CNC exists in the PC's current directory, and then the press brake operator sends back an updated copy of this file. Normally the original copy would be renamed to HANDLE.CNC.~1~ (or HANDLE.CNC.~2~ if HANDLE.CNC.~1~ already existed, etc).

But since Kermit is in server mode, deleting or renaming existing files is not allowed by default; that is, unless you tell Kermit is OK. Thus if you follow the directions in the Cincinnati tip sheet for setting up Kermit and then try to replace a file, Kermit won't allow the original file to be disturbed, and therefore renames the incoming file to HANDLE.CNC.~1~ or whatever.

Kermit's options for filename collisions are chosen with the SET FILE COLLISION command. The default option is BACKUP, but that requires that the existing file be renamed. Another option is OVERWRITE, but that requires that the existing file be deleted. In either case, the server must be told to allow changes to existing files.

If you want to back up existing files:
set file collision backup
enable rename

If you want to overwrite existing files:
set file collision overwrite
enable delete

Execute these commands before entering server mode. Examples:

set flow none
set modem type none
set port 1
set speed 9600
cd /programs
set file collision backup  
enable rename
server
set flow none
set port tapi Communications_cable_between_two_computers
set speed 9600
cd /programs
set file collision overwrite    
enable delete
server


How can I set up a press-brake connection in the Dialer?

The procedure for this is normal, except since most people want Kermit to be in server mode, rather than entering its terminal screen, you should enter the command "server" in the text box of the Login page.

[ Kermit 95 for Windows ] [ MS-DOS Kermit for DOS ] [ C-Kermit for UNIX ] [ Kermit Home ]


Kermit and Cincinnati Brake Press / Columbia University / kermit@columbia.edu / 12 May 2003