PC-DNC Plus Manual
PC-DNC Plus Manual
PC-DNC Plus Manual
Software, Inc.
PC-DNC Plus
®
Communications System for Windows
Version 5.0
Operator’s manual
Trademark Acknowledgments
IBM and PERSONAL COMPUTER are trademarks of International Busi-
ness Machines Corporation. Windows is a trademark of Microsoft Corporation.
WORDSTAR is a trademark of Micropro International Corporation.
i
TABLE OF CONTENTS
ii
TABLE OF CONTENTS (cont.)
iii
TABLE OF CONTENTS (cont.)
iv
TABLE OF CONTENTS (cont.)
v
TABLE OF CONTENTS (cont.)
vi
TABLE OF CONTENTS (cont.)
vii
TABLE OF CONTENTS (cont.)
viii
TABLE OF CONTENTS (cont.)
ix
Introduction
PC-DNC Plus can perform bi-directional communications with up to 128
serial devices simultaneously. The performance of PC-DNC Plus depends a great
deal on the speed of your computer, and on the type of serial ports you are using.
While PC-DNC Plus will run on slower computers, we recommend that you use at
least a 1.6 GHz Pentium 4 computer for typical applications. In addition, your serial
ports must be of the “buffered” type, using a 16550 UART chip (or equivalent).
Non-buffered serial ports will seriously affect performance, limiting the baudrate at
which communications will be reliable.
PC-DNC Plus can be used in several ways: As a “File queueing” system,
PC-DNC Plus uses a queue list to send files in pre-determined sequence to the
CNCs. As a “Remote call-up” DNC system, PC-DNC Plus will send and receive
files using remote commands from the CNCs.
When started, PC-DNC Plus opens a main “command” window, which
launches a “DNC window” for each CNC control. Each DNC window is a separate
1-port DNC application that will respond to remote commands from your CNC
control.
The PC-DNC Plus command window displays the status of each DNC
Window on your system. The DNC windows themselves are invisible applications,
and each one behaves like a separate 1-port DNC system. You can open or close
DNC windows independently from the command window’s “IO windows” menu.
When you start PC-DNC Plus, the command window and all the DNC windows
open automatically. When you close the command window, it will send a “close”
command to each DNC window. The DNC windows will then close as soon as
they are finshed with any ongoing communications. If you attempt to close a DNC
Window while it is sending or receiving data, it will not close immediately, but will
close as soon as the ongoing file transfer is complete.
Queueing files
A “queue” is simply a list of files that are sent to the CNC in sequence. Each
DNC window has its own queue list. Each file in the queue list can be transmitted a
fixed number of times, or you can queue up files that will be sent repeatedly to the
CNC until the CNC operator sends in a remote request for the next file in the queue.
There are three easy ways to queue up files: You can use the command
window’s “File” menu to add a file to a CNCs queue list, you can use the “Add
file to queue” button on the command window’s toolbar, or you can right-click on a
file name and select “Add to Q”
x
Remote Commands
Each CNC operator can send files to the PC-DNC Plus system, or receive
files from the PC-DNC Plus system without touching the computer. A set of
“remote commands” can be defined for each DNC window. These remote com-
mands can be tailored to suit the make & model of your CNC controls.
When an operator sends a file from the CNC, PC-DNC Plus will examine the
incoming data for a “program identifier”. If a program identifier is found, PC-DNC
Plus will use the characters AFTER the program identifier as a file name. The in-
coming data will be stored, and the system will return to normal operation. If you
want, PC-DNC Plus can “reply” to the CNC operator by sending back a brief
“received file confirmation” report then next time the CNC operator presses the
READ button on the CNC
When a CNC operator wants to request a file from PC-DNC plus, he sends
a short file from the CNC that contains a “program request”, followed by the file
name. If PC-DNC Plus sees this program request in the incoming data, it will queue
up the requested file and wait for the CNC operator to download it by pressing the
READ or INPUT button, or to run it in DNC mode by pressing “Cycle Start”.
xi
1.0 GETTING STARTED
We assume that you have had some experience with your PC already. You
should be familiar with the Windows operating system and the procedures for
running Windows based software before you procede. If you need help installing
PC-DNC Plus, feel free to call us for phone support.
Windows 95/98/ME and Windows NT/2000/XP are all 32-bit operating sys-
tems. PC-DNC Plus will run under all 32-bit versions of Windows, but it WILL
NOT run under Windows 3.0, 3.1 or 3.11 for workgroups. These are earlier 16-bit
versions of Windows that do not support 32 bit applications like PC-DNC Plus.
b) Connect each of your CNC controls to one of your PC’s COM ports with a
properly wired serial cable. Your computer’s serial port will most likely have a 9 pin
MALE connector (DB-9P). Refer to Appendix B in the back of this manual for
suggested cable wiring diagrams.
c) To install PC-DNC Plus, insert the RYM CD into your CD drive and follow
the easy menu instructions, or run the downloadable .EXE file by double-clicking
on it from Windows Explorer. The install program on the CD will automatically
install PC-DNC Plus in a directory called “C:\PROGRAM FILES\RYM\PC-DNC
PLUS” unless you specify a different directory.
You can launch PC-DNC Plus in several ways. First (and most common) is
to double-click the icon on your Windows desktop. When you double-click on this
icon, PC-DNC Plus will load & run, and all the DNC output windows will be
opened.
The second method is to select the PC-DNC Plus program from your “Pro-
grams” menu. Click the “Start” button, then select “Programs”, then click on “PC-
DNC Plus”
The third method is to use the Windows Explorer to find the PC-DNC
Plus.exe file in your “C:\Program files\RYM\PC-DNC Plus” directory and double-
click on the file name.
Windows 95/98/ME:
C:\Windows\Start menu\Programs\Startup
Windows 2000/XP:
C:\Documents and Settings\All users\Start menu\Programs\Startup
If your system fails to start properly, call Suburban Machinery Software, Inc.
at (440) 951-8974 or Refresh Your Memory, Inc. at (408) 224-9167
(2)
1.0 GETTING STARTED (cont.)
You can connect most any kind of RS-232 device (i.e. CNC controls, tape
punch/readers, telephone MODEMs, CAD/CAM systems, etc.) to any one your
PCs available serial ports. Devices using RS-422 or 20ma current-loop signals will
normally require an adapter, unless your serial port has provisions for these types of
signals. Signal adapters are available from Black Box Corporation (412- 746-5530)
at a reasonable cost.
Standard 9-pin serial ports on your PC are typically wired as DTE (Data
Terminal Equipment) ports. This means that most CNC controls must be connected
with a “cross-wired” or “null-modem” 9-to25 cable. When connecting to a tele-
phone MODEM (or the MODEM plug on the back of a tape punch/reader) you will
have to use a “straight” cable. Refer to Appendix B for some typical cable dia-
grams. Cables for PC-DNC Plus ARE DIFFERENT from the cables use with our
earlier PC-DNC communications system (using the Bay Tech 528 port controller).
PC-DNC Plus requires the cross-wired cables because you are connecting two
DTE ports together. The Bay Tech port controller uses DCE ports, so “straight-
wired” cables are used with that older system.
A hard disk “crash” can loose data files suddenly, and without warning. For
this reason, it is VERY important to periodically back up all your NC data files in
some way. You can backup your files to floppy disks, tape drives, “ZIP” drives,
secondary hard drives, or to another PC on your network. It doesn’t really matter
which method you choose, but it is vital that you DO IT!
You don’t need to back-up your PC-DNC Plus software itself, but it would
be a VERY good idea to backup your system configuration files once the DNC
windows have been configured for use. Simply use the PC-DNC Plus “Configure/
Backup configuration” menu, and select any disk drive or directory on your net-
work to hold your PC-DNC Plus backups.
(3)
1.2 PC-DNC Plus Command Window
PC-DNC Plus uses a main “command” window (shown below) to control
each of the separate DNC windows on your system. This command window con-
tains a list of each of the DNC windows that you have established. By using the
“configure” pull-down menu, you can define new DNC windows, and assign the
properties of each DNC window.
Fig. 1
Each DNC window is given a name in the “Configure/DNC Windows” menu.
Once established, these machine names will appear in the upper-left text box on the
command window, followed by a brief report of the DNC window’s status.
You can select any DNC Window by simply clicking on its name. Once
selected (highlighted), the rest of the command window displays all the information
relevant to the selected DNC window. The lower-left area of the command window
shows the NC data as it is being sent to (or received from) the selected CNC. The
file display on the right side of the command window shows the files in all of the
permitted “send” and “receive” directories for the selected CNC.
Even though several DNC windows may be open and actively communicat-
ing with their respecitve CNCs, the command window displays detailed information
on only one (selected) DNC window at a time
When PC-DNC Plus is started, it automatically opens all the defined DNC
windows. When the command window is closed, it issues a “close” command to
each DNC window, which will close as soon as any pending I/O function is com-
pleted.
(4)
1.3 DNC Window
Once a DNC window is selected in the upper-left area of the PC-DNC Plus
command window, its detailed status will appear in the lower-left area of the com-
mand window. At startup, the status of the first DNC window in your system is
displayed.
Each DNC Window can display the text of the “active” file in its queue (as
shown here) :
Fig.2
By clicking on the “Status” panel at the bottom-left of the DNC window, you
can display the DNC window’s status. The lower-left area of the screen splits in
half, and the top half shows the file queue list, while the bottom half shows the
DNC Window’s activity log.
Fig.3
(5)
The DNC window’s manual controls
Each DNC window has a status bar across the bottom. This status bar has 6
panels that can be used to manually control the DNC window.
Text/Status (toggle)
When in “Text” mode, the DNC window shows the text of the file currently loaded
into active memory. When in “status” mode, the DNC window shows the queue list
(on top) and the DNC window’s activity log (on bottom)
Load Next
When a file is waiting in the queue, the “Load Next” panel will load the file at the
top of the queue list into active memory. The file currently in active memory is
unloaded. The Load Next panel is only effective after a “safety timeout” has oc-
curred, and will not work if data is currently being output to the CNC.
Send Now
If you want to “force” a DNC window to output a file, such as when sending to
tape punch/readers, MODEMs, etc., click the “Send Now” panel. Normally, a CNC
control will request the output of data using an Xon control code, or the serial
port’s CTS signal. If the external device cannot handshake using Xon/Xoff or RTS/
CTS, you must use the Send Now panel to send a file
Search
The Search panel displays a text search menu, which lets you search for any text
within the DNC window’s active memory. This panel is disabled in “status” display
mode, or when the DNC window is currently sending data to the CNC.
Reset
Resets the DNC window’s text display to the beginning of the file. This panel is
disabled in “status” display mode, or when the DNC window is currently sending
data to the CNC.
(6)
Tool Break Editing
Tool Break Editing mode lets you run selected portions of the active file.
When in Tool Break Editing mode, the status bar panels at the bottom of the DNC
window change (as shown below). In Tool Break Editing mode, you can also use
the mouse to highlight multiple lines of text. Selected text is shown in red.
Keep This
Selects the portion of the file that is currently highlighed.
Keep Before
Selects all the text from the beginning of the file to the current cursur position
Keep After
Selects all the text after the current cursur position.
Search
Displays the “search” menu, which lets you find text within the active file.
Done
Assembles all the text you have selected into a “Tool Break Edited” file. This file is
then loaded into active memory, and the original (unedited) file name is placed back
onto the queue list.
(7)
Tool Break Editing (cont.)
Before you can use the Tool Break Edit function, the DNC window must be
in the “Idle” or “Paused” state, and not currently in the process of sending data to
the CNC. Once the CNC has been idle long enough for a “safety timeout” to occur
(usually 7 seconds), you can enter the Tool Break editing mode by clicking the Tool
Break panel at the bottom of the DNC window.
Once in Tool Break Editing mode, select the portions of the active file that
you want to run by any of the following methods:
When finished selecting text, click the “Done” panel. PC-DNC Plus will then
assemble all the selected portions of the active file into a special “Tool Break ed-
ited” file, and will load this file into active memory. The original file will automati-
cally be placed at the top of the queue list. The next time you press Cycle Start on
your CNC, PC-DNC Plus will transmit the Tool Break Edited file one time. After
that, the original file will be re-loaded into active memory..
Note 1:
When selecting portions of text in Tool Break Editing mode, you may not
select portions that “overlap”. This is for safety reasons only.
Note 2:
When you click the “Done” panel, each selected portion of the file is as-
sembled in the same order in which they appeared in the original file. The order in
which you selected them is not significant. Each portion is terminated with a CR/LF
sequence even if you didn’t select a complete line of text.
Note 3:
Once a file has been edited in Tool Break mode, you can enter the Tool
Break Editing mode again if you want to make additional changes. You may not,
however, use the “Keep This”, “Keep Before”, or “Keep After” panels to select the
already edited text. You may only enter new text, or delete old text as needed. If you
need to re-select text from the original unedited file, click the “Load Next” panel to
re-load the original file, then enter Tool Break Editing mode to start over.
(8)
1.4.1 CONFIGURING THE DNC WINDOWS
The PC-DNC Plus “Configure” pull-down menu has many selections for
setting up your individual DNC windows. The Configure/DNC Windows menu is
used to add, delete or rename the RS232 DNC Windows on your system, and to
define all the characteristics of existing DNC windows.
At the top of the “Configure/DNC Windows” menu are five tabs, which are
used to configure:
You can add a name to the list of DNC Windows by entering a unique name
into the “Add name to list” box and pressing ENTER. To rename an existing DNC
Window, enter the new name into the “Rename” box and press ENTER. To delete
a DNC Window, select the DNC Window’s name and press “Delete from List”
(9)
1.4.1 CONFIGURING THE SERIAL PORTS (cont.)
Baudrates
The Configure/DNC Windows/Serial Ports menu contains selections for
baudrates. Standard baudrates are available from 110 to 115,200 baud. The
baudrate setting for each DNC window MUST MATCH the baudrate used by your
CNC control.
“Stop” bits
PC-DNC Plus can be set to send/receive data with a stop-bits setting of “1”,
“1 1/2” or “2”. The stop-bits settings of the DNC window MUST MATCH the
settings of your CNC control, otherwise unreliable communications may occur.
“Data” bits
The Data Bits setting should normally be set to “7” for ASCII Even Parity
and ASCII Odd parity tape codes. A setting of “8” is typical for all other tape
codes.
Tape codes
The tape code that PC-DNC Plus uses to send data is specified in the Con-
figure/Serial ports menu. There are 4 choices available:
1) ASCII even parity (even parity, 7 data bits)
2) ASCII odd parity (odd parity, 7 data bits)
3) ASCII no parity (no parity, 8 data bits)
4) EIA RS-244B (flexowriter code - odd parity)
When receiving data from a CNC control, PC-DNC Plus uses automatic code
recognition. Consequently, PC-DNC should be able to receive data in any code
regardless of this setting. The tape code selection only determines the code PC-
DNC uses when SENDING files to the CNC control.
Handshaking
When PC-DNC Plus sends a file to the CNC, it can be set to “handshake”
with the CNC in 4 different ways. Xon/Xoff is the most common form of hand-
shaking, and is used with most popular CNC controls. Xon/Xoff is also referred to
as “DC codes” or “Device Control” codes by some CNC manufacturers.
(10)
Xon/Xoff Handshaking (option button)
When Xon/Xoff protocol is selected, PC-DNC Plus will halt transmission
temporarilly if an Xoff (also known as “DC3”) character is received. When an Xon
character (DC1) is received, PC-DNC Plus will resume transmission.
Fig 4a
(12)
Options when PC-DNC Plus is sending data
Leader
When transmitting a file to the CNC, PC-DNC Plus will automatically send a
“Leader” sequence before sending the file, and a “Trailer” sequence at the end of
the file. These leader and trailer sequences can be specified in the Configure/Serial
Ports/Advanced menu. If left blank, your file will be sent “as-is” with nothing
added at the beginining or end of the file.
Leaders and trailers may be necessary in some situations. For example,
Fanuc CNCs require an EOB (LF) character to cancel the “Label Skip” function
when reading a file. When you press “Read” on a Fanuc, the CNC will ignore all
incoming data until the first EOB is read. If your files start out with an O-number,
and end with an M02 or M30, you will need to specify an LF character as a leader.
This LF will cancel the LSK function, and allow the CNC to read the first line of
data. If, however, your files start out with a percent sign (%), you will want to use
NO LEADER. Otherwise the CNC will see the percent sign in the first line, and will
stop reading. (You will have to press READ or CYCLE START twice to begin the
file transmission).
Trailer
A trailer sequence is usually used to stop the CNC from reading. If you’re
downloading to the CNCs memory, and the CNC won’t stop reading when the file
is finished, you may need a trailer sequence. If your files already have a percent
sign (%) at the end, you will probably not need a trailer. If, however, your files end
with the M30 or M02 block, you may need to use a “%” as a trailer sequence.
When entering a Leader or a Trailer, you can type in normal text, or you can enter
some special characters by their abbreviations ( LF, CR , ESC, or NUL ). Also, to
enter a special control code, you can bracket their ASCII decimal value within
“greater-than/less-than” symbols. For example, you can transimit an “Escape”
character by specifying the abbreviation “ESC” or by placing its ASCII value (27)
within greater-than/less than symbols, like so: <27>
(13)
Skip lines that start with (x)
When transmitting a file, PC-DNC Plus will automatically skip lines that start
with a certain character. For example, if your files have comments or tooling infor-
mation that you don’t want to send to the CNC, you can enter a character here that
will cause PC-DNC Plus to skip all lines that begin with that character.
(14)
Time delay between characters (ms)
In special situations, it may be necessary to have a slight time delay in be-
tween every character transmitted to the CNC. Normally, this feature IS NOT used
to correct for “buffer overflow” alarms on the CNC, because that usually indicates
a handshake problem or an improper FIFO buffer setting.
(15)
Delete Blank Lines (option checkbox)
This option checkbox causes PC-DNC Plus to not transmit blank lines in
your program. If a line contains only “space” characters, it is considered to be
blank.
Ready To Send String
Some CNC controls require a special character be sent when PC-DNC Plus
is ready to send a file. This character is usually an ASCII #18, or a “DC2” charac-
ter, although other characters might be used. If this option is enabled with the
checkbox (described below), then PC-DNC Plus will send this character or string
of characters repeatedly until the CNC responds with an Xon (DC1) code. Any
character can be entered in this box, and control codes can be entered by placing
the ASCII number of the character withing “greater than” and “less than symbols.
For example, to send a DC2 (ASCII 18) enter: <18>
(16)
Options when PC-DNC Plus is receiving files
(17)
Separate Files by IDs
This option lets you save multiple files on the PC-DNC Plus system by
sending them from the CNC in a “batch”. Many CNC controls let you sent multiple
programs at one time, but since the CNC does not “pause” between these pro-
grams, PC-DNC Plus would normally store all the programs in one file, using the ID
of the first program and ignoring the rest. With this option checked, PC-DNC Plus
will first receive all the data, then will search through these data looking for program
ID characters (as defined in the Configure/IO commands menu). Each time a pro-
gram ID is found, a separate file is created and stored as if it were received singly.
(18)
Special Mods for specific CNC controls
There are several checkboxes that enable special software modifications.
These mods are briefly described below:
Okuma checkbox - when sending a program ID line to the CNC, a line that con-
tains a “$” character and a “%” character is padded with 30 “nulls” so that the line
is formatted as follows: $program name (30 nulls) %
EZTRAK checkbox - When receiving files, this mod permits PC-DNC Plus to
properly extract the program identifier from the data as it is sent from an EZTRAK
control. See setup data document titled “Setup data for Bridgeport EZTRAK.txt”
Wiedemann data link checkbox - Used to enable the Wiedeman Data Link proto-
col. This mod only affects how files are requested remotely from the Wiedemann
CNC control. Use the file callup procedure described in the Wiedemann Data Link
protocol documentation.
Moog (MHP) checkbox - Used to permit multiple data segments to be loaded into
the Moog (MHP) control. When this option is checked, any block of data contain-
ing a “%” character is followed by 30 “null” characters automatically. This lets the
MHP control to separate the data segments properly. See setup document titled
“Setup data for Moog Hydra Path III.txt”
Haas continuous loop mode checkbox - Is used only for Haas controls running in
“drip-feed” DNC mode. With this option checked, the first cycle is transmitted
with the “leader”, then all subsequent cycles of the file are sent without leaders or
trailers. Also, any block containing an “M30” is not transmitted, to prevent the Haas
from resetting.
Limit Time Delays to First Block checkbox - When a time delay between char-
acters or between blocks is specified, this checkbox limits those time delays to the
first block sent to the CNC. This option is useful when sending files to CNCs that
need a bit of extra time to open a new file.
(19)
Special Mods for specific CNC controls (cont.)
Send Xon every 2 seconds checkbox - When PC-DNC Plus is ready to send a file
to the CNC, this option forces PC-DNC Plus to send an Xon to the CNC and wait
for an Xon in reply. This option is required for a few of the Haas controls, which
will not receive a file unless the DNC system sends an Xon first.
AutoPath/Vision file conversion checkbox - This mod was developed for one
specific customer (Taylor Machine) who had files for an AutoPath control and
wanted them automatically converted to a Vision control format. If this box is
checked, the files are automatically converted before transmission.
Close/Open port after each I/O checkbox - This option forces PC-DNC Plus
to close and re-open the COM port after each file is transmitted. Use this option
only if your serial port hardware requires resetting for some reason.
Don’t send File Not Found message checkbox - This checkbox prevents PC-
DNC Plus from sending any kind of “File not Found” message if the CNC requests
a file that cannot be found in the specifed directories.
Mazak CMT protocol checkbox - When checked, this option lets PC-DNC Plus
respond to the Mazatrol CMT file protocol. This protocol is bi-directional, and lets
Mazatrol users to upload and download CMT files with PC-DNC Plus. If not
checked, the CMT protocol is ignored, and only EIA/ASCII files can be sent to or
received from the Mazatrols.
Please refer to the “Configure/DNC Windows/File names” menu and Appen-
dix K for more information on Mazak CMT protocol.
(20)
1.4.2 Configuring your I/O commands
Fig. 5
(21)
Default command character assignments
Program Identifiers
The most important command characters are the “program identifier” charac-
ters. Fanuc, Yasnac, and Mitsubishi CNC controllers typically use the letter “O” or
the colon (:) character, followed by a 4-digit program number to identify each pro-
gram. When PC-DNC Plus receives a file from the CNC, it will look for this pro-
gram identifier character to determine the file name to use for storage.
Beware that some CNCs (Fanucs) will transmit a colon ( : ) character, even
though a letter “O” is displayed on the CNCs screen. Also, some of these CNCs
will transmit a colon character when set to punch ISO tape code, and will transmit a
letter “O” if set to punch EIA tape code. For convenience, you can set PC-DNC
Plus to use EITHER a letter “O” OR a colon as a program identifier. This will work
regardless of how the CNC’s punch code is selected.
If you are using long alpha-numeric file names, it would be much better to
use multi-character IDs and remote commands, perhaps including the open-paren-
theses character. This would prevent confusion when sending alpha-numeric file
names that also include single-character commands. For example, you can set a 2-
character string of “(-”, or open-parentheses and a minus sign as an ID command,
then use a comment in your CNC program to save a file with a long file name like
so:
O1234 (-BIG LONG FILE NAME) ;
(program data) ;
(22)
Request for File Command
To request a file from the PC-DNC Plus system, a CNC operator can send in
a 1-line program containing a “transmit request” command. For example, if you
use the default file request character, (letter “T”), a CNC operator can request a file
called “5678” using the following procedure:
1) In the CNC control, create a 1-block program (using any program number):
O1234 T5678 ;
3) After the message file “O1234” has been sent, press the following keys to input:
Fanuc system 6 control: [READ]
Fanuc system 0/16/18: [INPUT]
Fanuc system 10/11/12/15: [READ] [ALL]
To request files with long alpha-numeric file names, you could assign a two-charac-
ter request command like: (* and request your long file name with the following
program:
O1234 (*BIG LONG FILE NAME) ;
Similarly, the CNC operator can request a program directory from PC-DNC
Plus by sending in a 1-block message program containing a “directory request”
character. The default directory request character is the letter “P”. To download a
directory of the files available on your PC-DNC Plus system, create a 1-block mes-
sage program containing the letter “P”, like so:
O9999 P ;
To download a directory, use the same procedure at the CNC as outlined above for
requesing a file. PC-DNC Plus will transmit a file list. Each item in the list will be
surrounded by parentheses characters ( ) .
(23)
Request to receive command
Sometimes you may want to send a file to the PC-DNC Plus system from the
CNC, but the data will not have a program identifier character in it. For example,
Fanuc CNCs always send “O-numbers” at the beginning of program files, but if
you send tool offsets or system parameters, there is no O-number for PC-DNC
Plus to use as a file number. With a “request to receive” command (default = “R”),
you can pre-assign a file number with an R-command, then send in the file you want
to store. The received data will then not need a program identifier character.
On a Fanuc CNC, here’s how you would send your system parameters to be
storred by PC-DNC plus as file “5678”:
1) In the CNC control, create a 1-block program (using any program number):
O1234 R5678 ;
3) After the message file “O1234” has been sent, press the following keys to trans-
mit your system parameter data to PC-DNC Plus:
Tool offset files can be sent in the same way. First, send in the “R-command”
message as shown above, then output your tool offsets (instead of your paramters,
as shown above)
(24)
Search to the Nth Directory Command
When requesting a file from PC-DNC Plus with a remote command, PC-
DNC Plus will first look in the default directory (as specified in the Configure/
Directories menu) for the file. You can, if you want, specify SEVERAL directories
as a list. If the file does not exist in the first specified directory, PC-DNC Plus will
search each directory in the list, in order. For example, if you specify the following
4 directories in the “Send” directory text box of the Configure/IO Directories menu:
C:\LATE1
C:\LATHE2
C:\LATHE3
C:\LATHE4
If you don’t use a “search to Nth directory command” (default = “N”), then PC-
DNC plus will search them (in order) for the file you requested. If you DO specify
an “N-command”, PC-DNC will only look in the Nth directory of the list, where the
number “N0” is the first directory, “N1” is the second directory, etc.
For example:
O1234 T5678 ; Requests file 5678 - search is done in order
O1234 T5678 N2 ; Requests file 5678 from C:\LATHE3 (only)
O1234 T5678 N0 ; Requests file 5678 from C:\LATHE1 (only)
NOTE:
In the Configure/IO Directories menu, there is also an option check-box to
“Search all subdirectories under send path”. If this box is checked, the search order
above will be modified somewhat. If you specify a list of directories as shown
above, AND you request a file without an “N-number”, PC-DNC plus will first
search for file 5678 in “C:\LATHE1” and all its sub-directories, then it will search
for file 5678 in “C:\LATHE2” and all its subdirectories, etc.
(25)
Reset from Xoff (Paused) state
When PC-DNC Plus is transmitting data to a CNC control, it normally hand-
shakes using Xon/Xoff or with RTS/CTS signals. Once a file transmission has
begun, and the CNC is stopped before the file is completed, the DNC window halts
transmission in a “paused” state. To reset to the beginning of the file you can either
manually RESET the DNC window, or you can send in a remote “reset” command.
The remote reset command defaults to the string “RESET”.
(26)
Maximum size of the Activity Log file
Whenever a DNC window performs a function, it records its activity in a log
file called “Activity Log for (machine name)”. If left to grow, these files will become
unnecessarilly large, using up disk space. Each DNC window will limit the size of
its activity log file by deleting the oldest 20% of the file whenever its limit is
reached. The default limit is 10 K-bytes.
When using a program ID in the first line, and a remote command in the
second line, you can instruct PC-DNC Plus to ignore a specific program ID with
the “Command string to ignore” feature. In this example, “O1234”
O1234 TC:\LATHE2\5678 ;
will cause PC-DNC Plus to look for the file ONLY in the “C:\LATHE2” directory.
Unfortunately, most CNC keyboards do not have a colon ( : ) character, or a
backslash ( \ ) character, which makes the above command impossible. To get
around this problem, you can re-assign these two important characters. For ex-
ample, if you use the decimal point ( . ) for a colon character, and a forward slash (
/ ) for a backslash character, you can make an explicit file request like so:
O1234 TC./LATHE2/5678 ;
(27)
Load from queue after (n) cycles
If you want PC-DNC Plus to automatically queue up the next program after a
fixed number of cyles, check this option box under the Configure/IO Commands
menu. We recommend that you USE CAUTION when this option is selected, since
it may be possible to press “Cycle Start” on your CNC control, and discover that
you are running a different program than you expect! For this reason, we strongly
recommend that this option only be used when queueing up files for DOWNLOAD
to the CNC, and not for “drip-feed” applications. A much safer method would be
to require that the CNC operator send in a remote “Load from Queue” command to
run the next program in the queue.
In the following example, the program ID can be set to be “(-”, and the “Per-
mit commands within parentheses option is turned ON. This file would be stored as
file “BIG LONG FILE NAME”
(28)
Clear Queue when a new file is requested
When this option is checked, the Queue is emptied (cleared) whenever a new
file is requested from the machine. Frequently, remote file requests are made
inadvertantly, or made more than once, resulting in an accumulation of files waiting
in the queue. This option prevents unwanted files from remaining in the queue for
any length of time.
If the entire file name is known by the operator, there’s no problem request-
ing the file with a remote command like “(GET-”. For example:
Without the key word search option, however, this long file request must be
typed completely into the CNC control and transmitted to the PC-DNC system.
Otherwise PC-DNC Plus will not be able to locate the file and will issue a “FILE
NOT FOUND” alarm. In some cases, however, the operator may not know the
exact file name, but may know only the part number, the operation number or per-
haps another word that would appear in the file name.
With the key word search option enabled, you can make a request like this:
Note that this request command has 3 “key words” following the “(GET-”
command, separated by spaces. PC-DNC will search for any file name that con-
tains ALL THREE key words, and will queue up the file just as if you made a com-
plete file name request. If no file name is found that contains all 3 key words, a File
Not Found message is issued.
(29)
Key Word Search Option (cont.)
One must be careful when using the key word search method, since PC-DNC
Plus will transmit the FIRST file match it finds. If more than one file name matches
the key words given, you may accidentally get the wrong file. Carefully controlling
how you choose your key words, however, should prevent this.
PC-DNC Plus can also search for your file in several different subdirectories
(folders). When this is done, you can also specify a key word that must match the
name of the DIRECTORY as well. By putting a forward-slash ( / ) in front of the
key word, you are requiring that key word to be matched to the directory name
instead of the file name. For example, suppose PC-DNC Plus is configured to
search in a group of subdirectories (or a root directory and all sub-directories under
it).
will try to match the same key words as before to the file name, but it will only
search those directories or sub-directories that contain the string: “PARKER”.
Here are some rules for using the key word matching option:
1) Up to 5 key words can be given after the remote request command separated by
spaces. Any single or multi-character remote request command can be used, but
it’s expected that the request will be within parentheses as shown in these examples.
If fewer than 5 key words are given, PC-DNC Plus will only try to match the key
word(s) specified.
2) Any key word that begins with a forward slash ( / ) character requires that PC-
DNC Plus search for the file only within a subdirectory containing that key
word. Key words without a slash character are matched to the file name. If no key
word with a slash is given, PC-DNC Plus will search all the directories specified in
it’s “Output Directories” list, and will transmit any file that matches the other key
words from ANY directory.
(30)
Key Word Search Option (cont.)
3) Multiple key words with slashes can be specified. For example, the request
shown below will only queue up a file if the directory string contains both the word
“PARKER” and the word “HAAS”.
4) A key word containing the letters “OP” followed by a number has some special
properties. A key word “OP3” will try to match the key word “OP3” first, but it
will also try to match similar meaning words in the file name, like: OP#3, OP 3, OP
#3, and 3RD OP. The key word “OP1” will try to match OP1, OP#1, OP 1, OP #1
and 1ST OP.
5) Even when the key word search option is enabled, PC-DNC Plus will first try to
fined the file with the complete request string, EXACTLY AS REQUESTED. If no
file by that exact name is found, then the request command is broken down into key
words and the key word search will begin.
6) When the key word search option is enabled, PC-DNC Plus will automatically
insert a comment in the first block of the program which contains the ACTUAL file
name. This serves to inform the operator of the file name that was found, and also
to permit this file to be transmitted BACK to the PC-DNC Plus system using the
same file name.
7) If the original file already has a comment in the first line, that comment will be
moved to the SECOND line, and any program ID characters (letter “O” or colon)
will be preserved on the first line. For example, If the file named:
(31)
Key Word Search Option (cont.)
8) When sending any file back to PC-DNC Plus all the usual rules apply, such as
which directory the file is saved in and whether or not version numbers or .BAK file
extensions are applied.
(32)
“Number of Cycles” remote command
When the option to run a fixed number of cycles is used (above), you can
specify how many cycles to run manually, or (optionally) with a remote command.
The default command character is letter “C”. For example, to request 25 cycles of
file “1234”, use the following remote command:
(33)
1.4.3
Monitor this machine (checkbox)
When checked, the selected machine will be monitored, and the machine’s
icon will appear in the machine monitoring display. Note that the number of ma-
chines that can be monitored is also determined by your software license, and only
the number of machines enabled by your license will be monitored simultaneously.
Please refer to the PC-DNC Plus “About/Your current license” menu to see how
many serial ports and ADAM units you are licensed to monitor.
When checked, this machine’s serial port will record “Idle time” status re-
ports, which are typically recorded with a barcode reader. Please refer to Appen-
dix D for more information on the use of barcode readers. When this checkbox is
left un-checked, only cycle start/finish information is recorded, and status informa-
tion like “Setup mode”, “Maintenance mode”, etc. are not recorded in the ODBC
database.
If your CNC has a User Macro-B function, you can embed “DPRNT” macro
commands within your part programs. These commands will transmit machine
monitoring signals to PC-DNC Plus automatically on each part cycle. The default
remote commands are “BEGIN” for cycle start, “FINISH” for cycle finish, and
“PRG” for program name. Whenever a “BEGIN” or “FINISH” command is re-
ceived, PC-DNC Plus records the event along with the time and date for future
analysis, and changes the color of the machine’s icon in the monitoring display. See
Appendix D for more information on machine cycle monitoring .
Many Haas controllers have a feature called “Machine Data Collect”, which is
enabled by setting # 143 in the Haas control. If this option is enabled on the con-
troller, and you select the Haas protocol in PC-DNC Plus, the Haas protocol will
be used to collect machine status every 1/2 second while the DNC window is open.
No remote commands or DPRNT statements are needed when using the Haas
protocol.
(34)
Machine Monitoring in “Drip-feed” mode (option button)
Monitoring in drip-feed mode does not require macros in the CNC or any
special wiring. Each time PC-DNC Plus begins transmitting a file to the CNC, a
“Cycle Start” event is recorded automatically. Each time the last characters of the
file are transmitted, the “Cycle Finish” event is recorded.
For those CNCs that do not have macros OR the ability to run in drip-feed
mode, Cycle monitoring can also be accomplished by connecting a relay to the
serial port’s DCD signal. When the signal goes “high”, a “Cycle Start” event is
recorded. When the signal goes low, a “Cycle Finish” event is recorded.
When PC-DNC Plus is used with the RYM FactoryWiz Appliance, the
ODBC database for machine cycle and status information can be automatically
shared. This means that machine monitoring information from PC-DNC Plus can
also be viewed through the FactoryWiz web server. This feature makes machine
status and production reports visible from any PC with a web browser. The Status
photo URL specifies the file for the machine’s photograph that will appear on the
FactoryWiz monitoring display for this particular machine. Please refer to docu-
mentation for the FactoryWiz for more information about these machine photo
URLs.
(35)
Machine Monitoring using a second serial port (option button)
In some situations, it may be necessary to monitor more than just one signal
from the CNC control. The DCD signal on the main (DNC) serial port is suffi-
cient for simple “Run/Stop” cycle monitoring, but you may also want to monitor
things like a barfeeder empty switch, an alarm signal, or an E-stop signal as well.
For this reason, PC-DNC Plus supports the use of a second serial port.
By clicking on the “Details” button for the second serial port option, you can
specify a monitoring action for each of the three input signals on an auxilliary serial
port.
You must first specify the COM port number of the serial port, which must
be a port that is not used for any other purpose on the DNC system. This second
serial port is then held open, and PC-DNC Plus monitors the status of these signals:
(36)
Machine Monitoring using a second serial port (cont.)
When any of these 3 signals changes state (from low to high, or high to low),
the action you specify is carried out. These actions are:
1) Any text message that you specify is added to the file named “Monitor data file
for (machine name)”, and the same text message appears underneith the machine’s
icon in the PC-DNC Plus monitoring screen.
2) The Icon color in the PC-DNC Plus monitoring screen can be changed to Blue
(ready), Green (Running), Red (Alarm or E-stop), Yellow (Paused), or Grey (Dis-
connected)
3) The machine’s cycle status in the PC-DNC Plus machine list is changed to match
the cycle status of the Icon.
5) By configuring the PC-DNC Plus E-mail option, you can trigger an e-mail alert to
any recipient, or to any group of recipients.
(37)
Machine Monitoring using the ADAM
Data Acquisition Module (option button)
The ADAM data acquisition module is an Ethernet device that can be in-
stalled in almost any CNC. When connected to I/O signals inside the CNC, the
status of those signals can be displayed on the PC-DNC Plus monitoring screen.
Each of the 8 input signals (DI0 through DI7) can be individually configured for
machine monitoring using the ADAM “Details” menu on the “Configure/DNC
Windows/IO commands” menu
When any of these 8 signals changes state (from low to high, or high to low),
the action you specify is carried out. These actions are:
1) Any text message that you specify is added to the file named “Monitor data file
for (machine name)”, and the same text message appears underneith the machine’s
icon in the PC-DNC Plus monitoring screen.
2) The Icon color in the PC-DNC Plus monitoring screen can be changed to Blue
(ready), Green (Running), Red (Alarm or E-stop), Yellow (Paused), or Grey (Dis-
connected)
(38)
Machine Monitoring using the ADAM
Data Acquisition Module (cont.)
3) The machine’s cycle status in the PC-DNC Plus machine list is changed to match
the cycle status of the Icon.
5) By configuring the PC-DNC Plus E-mail option, you can trigger an e-mail alert to
any recipient, or to any group of recipients.
In addition to the 8 input signals, the ADAM module also provides two digital
outputs named DO0 and DO1. These outputs can be used to control the “Memory
Protect” key switch input of the CNC control. In those applications where editing
of files at the CNC is restricted, you can use the outputs of the ADAM unit to lock
the memory editing of the CNC control from the DNC system. File downloads to
the CNC and file editing on the CNC is then restricted unless a file is queued for
output to the CNC.
See Appendix D for more information on machine cycle monitoring with the ADAM
data acquisition module
The fourth tab of the “Configure/DNC Windows” menu is called “I/O Direc-
tories”. This menu lets you define the following for each DNC window:
a) Default drive/directory path(s) for files received from CNC (can be a search list)
b) Default drive/directory path(s) for files sent to the CNC (can be a search list)
c) The optional “Mailbox” directory from which files are automatically queued
d) Whether or not to search all subdirectories within the “send” directory list
e) Whether to search for the file ID within each file rather than use the file name
f) String of characters to send before sending a file directory.
g) String of characters to send before sending a “Received file Confirmation”
h) String of characters to send if the file does not contain a valid program ID
i) String of characters to send immediately after the program ID
j) Characters to mask out of data stream when sending files to CNC
k) Characters to mask out of data stream when receiving files from CNC
Fig. 6
(40)
1.2.7 CONFIGURING THE OUTPUT PORTS (cont.)
(41)
Auto-Queue Directory
A special “Auto-Queue” directory can be assigned for each machine. This
directory functions as a “mailbox” folder, which anyone on the network can copy a
file to. As soon as a file is copied to this directory, PC-DNC Plus will automatically
queue up the program to be sent to the machine. As the file is queued, it is simulta-
neously copied to a sub-folder called “Queued files”. Once the file is sent to the
machine, the file is ERASED from the Queued files directory.
1) The first directory path in your “Paths for files sent” list
2) Any subdirectory UNDER this first path
3) The second directory path in your “Paths for files sent” list
2) Any subdirectory UNDER this second path
(etc.)
If this option box is not checked, then PC-DNC Plus will only search the
directories listed in the “Paths for files sent” list, and will not search any
subdirectories under these paths.
You can request file “4567” with a simple T-command, and PC-DNC Plus will
queue up file “BIG LONG FILE NAME 2” automatically. This feature is useful if
you have a CNC control that cannot request a long alpha-numeric file name because
of keyboard limitations, yet you want to be able to request long file names.
(42)
String to send before sending a file directory
O5555
(filename date size)
(filename date size)
- etc. -
When you send a file to PC-DNC Plus from a CNC, you can get back a brief
confirmation report informing the CNC operator that the file was received OK. To
enable this function, enter a string of characters to be sent prior to the confirmation
report. If this text box is left blank, no report will be sent. For example, if you enter
“O4444” in this box, PC-DNC Plus will queue up the following report whenever a
file is received:
O4444
(PC-DNC ACTIVITY REPORT)
(PROGRAM (file name) RECEIVED)
(FILE SIZE = n )
(DATE = system date )
(TIME = system time )
(LAST LINE RECEIVED: M30 )
This confirmation report will be sent to the CNC only once. After it is sent,
the DNC Window’s queue goes back to its previous condition.
(43)
String to send if file does not contain an ID
If your CNC control requires a specific program ID in the first block of the
program, but some of your files do not contain a program ID, you can have PC-
DNC Plus send one automatically. For example, if you specify a string of
“O1234”, PC-DNC Plus will look to see if the file has an O-number in the first few
blocks. If no O-number exists, PC-DNC Plus will automatically send the “O1234”,
then the rest of the file.
You can enter a literal string (like: O1234) or you can enter a string that
includes the text file name or the numeric file number. When sending files to a CNC
that can accept an alpha-numeric file name. By entering: $<FILENAME>
PC-DNC Plus will send a dollar sign, then the full alpha file name. If your CNC can
only accept numbers (Fanuc, for example), you can have PC-DNC Plus send a
character followed by only the numeric characters within the file name. The string :
O<FILNUM> will automatically send “O4567” if the actual file name is
“PROG4567.TXT”
(44)
1.4.5 Configuring your I/O File Names
The fifth tab of the “Configure/DNC Windows” menu is called “File Names”.
This menu lets you define the following for each DNC window:
(45)
File Naming Conventions
When configuring your DNC system, perhaps the most important decision to
make is the choosing of a file format, and the type of file names you want to use.
Windows 95 and NT permit the use of 255 character file names, which PC-DNC
Plus can use also. If you have a large library of older, MS-DOS files on your sys-
tem, you may want to use the 8 + 3 character format that is common on MS-DOS
systems. Or, if you are upgrading from an earlier Suburban Machinery product,
such as our PCNC editing/plotting software or our MS-DOS version of PC-DNC,
you may want to continue using one of our 3 proprietary PCNC/PC-DNC format
files. Also, when choosing a file naming convention, keep in mind that your CNC
control’s keyboard may have severe limitations on the type of commands you can
key in. When using PC-DNC Plus as a “queueing” DNC system, this is not a
problem, but to use remote commands from the CNCs, be aware that you must be
able to type in the file name at the CNC. This may restrict your choice of file
names.
(46)
1.2.4 File Naming Conventions (cont.)
(47)
File Auto-Rename Type (file versioning)
You can select among four different options for file renaming (versioning).
When PC-DNC Plus receives a file that already exists in the target directory you
have the choice of how PC-DNC Plus renames (or does not rename) the file. The
text box permits you to enter a number between 0 and 3:
(48)
Prefix to add to beginning of all file names
When you send a file to PC-DNC Plus, the file name is created from the data
after the Program ID in the first block or two of the program. If you want PC-DNC
Plus to always add a “Prefix” to this name or number, enter it here. For example, if
you send a file from a Fanuc control with the O-number “O1234” in the first block,
and you set PC-DNC Plus to see the letter “O” as a program ID, the file will nor-
mally be saved with the name “1234”. By entering a prefix of “FANUC PRO-
GRAM “, the file will be saved as “FANUC PROGRAM 1234” instead.
(49)
Prefix to add to all received Mazak CMT files
Mazak files are usually received with a 4-digit “Work Number” embedded
into the hexadecimal file data. This 4-digit number can be used directly as a file
name, or you can have PC-DNC Plus add a “Prefix” to the 4-digit number. For
example, if a file with work number “1234” is received, you can specify a prefix of
“CMT FILE “ and have it saved as file “CMT FILE 1234.(your extension)”
Extract file number from incoming data for machine type (x) (option)
Mazatrols transmit their own internal “Work Number” embedded into the
hexadecimal file data. Unfortunately, each model Mazatrol embeds these numbers
in a different location, making it difficult to extract the work number. PC-DNC
Plus will attempt to to extract this number to use as a base file name if this option is
selected. NOTE: For this feature to work correctly, you must specify the CNC
type (M1, T1, M+, T32, etc.)
(50)
1.5.0
Backing up your PC-DNC Plus configurations
The backup procedure is very simple. Just click on the PC-DNC Plus “Con-
figure/Backup configuration” menu, select the drive and directory that you’ve cre-
ated for your backup files, and click the “Backup” button.
Once your PC-DNC Plus system configurations are backed up, you can
restore them easily by using the “Configure/Restore configurations” menu. This
makes it easy to return to a previous configuration that you know was working if
anything on your system should change. It also makes updating your software or
re-installing your software very easy. All the necessary configuration files for both
PC-DNC Plus and PC-DNC Editor are saved/restored with a single operation.
(51)
1.5 Queueing files in a DNC window
Each DNC window has a “queue list.” A queue list is simply a file stored in
the PC-DNC Plus directory, which has a file name of “Queue list for (machine
name)”. You can edit this file with the PC-DNC Editor, or you can use other appli-
cations to control the DNC windows by writing to this file. This file is read by the
DNC window periodically, which refreshes its status display to show the files wait-
ing in the queue.
Each DNC window behaves independently of the others, and each window
follows a set of rules for reading and writing to the queue list:
1) When a DNC window is opened, it reads its queue list (if one exists), and loads
the first file in the list into its “active” memory. This is the file that would be trans-
mitted to the CNC if the operator presses READ or CYCLE START. Additional
files waiting in the queue are shown in the DNC window’s status display.
2) The “active” file is replaced with the next file waiting in the queue under the
following conditions:
a) When the active file is sent to the CNC a fixed number of times
(if using the “load after (n) cycles option” )
b) “Load from queue” remote command is received from the CNC
c) “Load Next” panel at the bottom of the DNC window is clicked
d) “File/Load next file in queue” menu is clicked in the command window
3) If a remote request for a file occurs, the DNC window puts the requested file into
its “active” memory, and pushes the previously active file name back on top of the
queue list. All other items of the list are pushed down one line. The number of
unused cycles is also remembered.
4) When a DNC window is closed, the currently active file is placed back onto the
top of the queue, and the number of unused cycles is also recorded before the
window closes.
(52)
Queueing files in a DNC window
There are 6 ways to place a file in a DNC window’s queue. Once in the
queue, there are several ways to change (edit) the queue. Here is a brief description
of each method:
1) Highlight your machine name in the PC-DNC Plus command window, click
on the file name you want to add to the queue, then click the “Add to Q”
toolbar button.
2) Highlight your machine name in the PC-DNC Plus command window, click
on the file name you want to add to the queue, then right-click on the file
name and select “Add to Q” from the popup menu.
3) Highlight your machine name in the PC-DNC Plus command window, click
on the “File” pull-down menu and select “Add to Q”
4) From the PC-DNC Editor (File/PC-DNC Editor selection) you can add a
file to any CNCs queue using the Editor’s I/O pull-down menu. A selection
exists to select the desired DNC window, and to add to that CNCs queue list.
5) Display the “status” of your selected DNC window with the “Status” button
at the bottom left of the Command window. Next, highlight a file in the file
list, and “drag & drop” it to the queue list area of the DNC window.
6) From any other application (text editor, custom software, etc.), you can open
the file called “Queue list for (machine name)” and add your file name to the
list. Once you save your edited Queue list file, PC-DNC will automatically
update its queue.
(53)
Controlling the number of cycles (cont.)
You can change the number of cycles assigned to a queued file with the
following menu. Click on the file name in the DNC window’s status display to
display this menu. You can also change the number of “cycles to go” of the active
file by clicking on the active file name (the blue bar near the top of the DNC win-
dow) Note: The cycle start function will be disabled while you are editing the
number of cycles with this menu.
Fig. 7
(54)
Re-arranging files in the queue
When several files are in a queue, you may want to re-arrange them so that
they are executed in a different sequence. A special menu has been designed for
this purpose, which can be accessed from the command window’s “File” menu. The
“File/Re-arrange queue list” menu looks like this:
Fig. 8
To use this menu, simply double-click on any file name in the left hand win-
dow, and it will be transferred to the right hand window. Or, you can highlight the
file name in the left window and click the “To” button. Once the queue list in the
right hand window is in the order you want it, click “Apply new list” to save the list
to disk.
Fig. 9
(55)
1.6.0 USING REMOTE COMMANDS
After power-up and initialization, PC-DNC Plus opens all the available DNC
windows. Each DNC window opens its assigned COM port, and will then indepen-
dently respond to remote commands from its respective CNC control. PC-DNC
Plus will not initiate any data transfers unless a remote command is received from
the CNC, or you manually queue up a file and click the “Send Now” panel at the
bottom of a DNC window. With remote commands from the CNCs, PC-DNC Plus
will perform the following operations:
1) Store an NC program. When a file is stored, PC- DNC Plus will update the
system activity file. If a PCNC compatible file mode is selected, it will also
update the CONTENTS file. An optional “Received file confirmation” report
can then be sent back to the CNC to confirm the file transfer.
2) Respond to a remote request for a file, then send the file to the CNC control.
Data transmission begins when an Xon (DC1) is received. The system activity
file is then updated.
3) Send a disk directory from either the default SEND or RECEIVE directories.
The data is sent like a conventional NC program, but consists only of “com-
ment” statements in parentheses.
4) Record cycle start, cycle end, or other monitoring messages from the CNC
controls. Monitoring with remote commands require the use of MACRO pro-
grams in your CNC controls. You must have a Fanuc or similar control with the
MACRO B option in order to transmit these commands from the CNC. Ma-
chine cycle monitoring can also be accomplished without using remote com-
mands. See Appendix D for more details on Cycle Monitoring.
(56)
1.6.1 Storing a program file on disk
There are two methods available for storing programs from the CNC
control’s memory onto your PC-DNC Plus system:
At the CNC, create a program having a program identifier character (as de-
fined in Configure/IO commands menu) followed by a 4-digit number, then simply
transmit the program from the CNC. Be sure the first line of the program does not
have anything else on the same line (M-codes, T-codes, etc.). These examples show
how a Fanuc program would look, using the letter “O” as a program identifier, and
a semicolon (;) as an EOB code.
O1234 ;
G90 G00 X1.245 ;
| |
M30 ;
If your CNC keyboard has parentheses ( ) characters, you can also use the
data within parentheses to assign a long file name for each NC program. Just in-
clude the desired name of your file within parentheses, and configure PC-DNC Plus
to use the open parentheses as a program identifier in the “Configure/DNC Win-
dows/IO commands menu. With parentheses characters, you can also use full
alpha-numeric file names with MS-DOS or Windows 255 character file names.
(57)
1.6.1 Storing a program file on disk (cont.)
If your NC programs do not have program identifiers, you can also “pre-
assign” a program number (or name) with a remote command. The letter “R” is a
default command character used as a “receive” command. This character can be re-
assigned if you wish using the command window’s “Configure/DNC Windows/IO
commands” menu.
To send PC-DNC a “receive” command, first create a 1-line long NC pro-
gram in your CNC, like so:
O1234 R4567 ;
By sending this short NC program to PC-DNC, you are “pre- assigning” the
program number 4567 to the next incoming program (PCNC file mode). After the
R-command is received, PC-DNC Plus will wait incomming data. Any data received
will then be assigned the number 4567. Once data is being received, any pause of
more than 3 seconds in the data flow will be considered the end of the file transfer.
You can also pre-assign long alpha numeric names by placing them in paren-
theses. In this example, we’ve assigned the asterisk character ( * ) as an R-com-
mand, and placed the alpha numeric file name within parenteses:
(58)
1.6.2 Requesting a file from PC-DNC Plus
To request an NC program from PC-DNC Plus, you can send in a file re-
quest remote command from the CNC control. The letter “T” is a default command
character used as a “transmit” command. This character can be re-assigned if you
wish to use a different character (or string of characters) as a transmit command.
O1234 T6789 ;
If PC-DNC receives this one-line long program with a transmit request char-
acter (T), it will load the requested file into the queue, and prepare to transmit it to
the CNC control. PC-DNC Plus will then wait for the operator to press “Read” or
“Cycle Start” on the CNC. If the specified file is not found, PC-DNC Plus will
send back a one block long program consisting of the message “(FILE NOT
FOUND)”.
Note that each CNC type has its own key sequence for uploading and down-
loading files. This example is for the Fanuc system 6 control only.
(59)
1.6.3 Requesting a directory from PC-DNC Plus
PC-DNC Plus can respond to four different types of requests for a disk direc-
tory. The letter “P” (for “Programs”) is used as a directory request character. If The
CNC operator sends a short program consisting of the letter “P”, followed by a
number from 0 to 4, PC-DNC Plus will respond by sending the following data:
P0 : PC-DNC will send a list of the programs on the drive designated as the
“SEND” drive enclosed in parentheses (). Each line will contain the 4 digit program
number, a 32 character program “name”, and the program size (in bytes, or charac-
ters). For example:
P1: PC-DNC will send a disk directory from the drive designated as the
“RECEIVE” drive. Data will be sent in the same manner as the “P0” command.
P2: PC-DNC will send a list of program numbers from the “SEND” drive. To
satisfy those CNCs that cannot use parentheses ( ) characters (Fanuc 3 and 0 series),
this directory will be sent as a list of P-commands:
P 0001
P 0002
etc.
P3: PC-DNC will send a list of program numbers from the “RECEIVE” drive
in the same format as “P2” (above).
(60)
1.6.4 Recording cycle start/cycle finish times
PC-DNC will record the system time and date in a special file called “Moni-
toring data for (machine name)” whenever a data is received that meets the follow-
ing criteria:
1) The incoming data must include one of the Machine Cycle Montioring remote
commands for “Cycle Start”, “Cycle Finish”, or “Program name”
2) The data must not have any valid program identifier characters before the moni-
toring remote commands
3) The data must not include the characters assigned for any other function, such
as Transmit Request, File receive, or Request for Directory commands. PC-
DNC Plus will give priority to those commands if they are encountered.
will be recorded in the CNCs monitoring activity file automatically. PC-DNC plus
will then resume normal operations. The time and date are taken from your PC’s
system clock.
If you have a Fanuc System 6/10/11/12 with the MACRO B option, you can
write the following macros and program your Fanuc to execute them with an M-
code or a G-code of your choice. These macros will send the cycle start/finish
messages to PC-DNC whenever the macro is executed.
(61)
1.6.5 Recording probed dimensions and other data
There are two additional remote commands that can be used to save informa-
tion from probing cycles, quality control data, etc. These remote commands are
“fixed” in the PC-DNC Plus software, and are not programable like other remote
commands. These commads are “APPEND-” and “APPEND-T-”.
APPEND- command
The “APPEND-” command opens a file and appends (adds) data to that file.
The file name can be whatever you like, and the data you write to that file can also
be anything you like.
For example, if you write a macro probing cycle and want to have PC-DNC
Plus record your probed dimensions in a file called “PROBEDATA.TXT”, add
these macro statements to your probing cycle:
POPEN ;
DPRNT[APPEND-PROBEDATA.TXT#101[44]] ;
PCLOS
In the above example, the DPRNT statement transmits the remote command
string “APPEND-” followed by the desired file name, followed by a numeric value
(in this case, macro variable #101, with 4 digits before the decimal and 4 digits after
the decimal).
APPEND-T- command
The “APPEND-T-” command works in similar way, but a time-stamp is
added to each line of the file. While the “APPEND-” command only saves your
data in the file, the “APPEND-T-” adds the data and time to each data entry, using
the system clock of the PC-DNC Plus server PC.
Suburban Machinery, Inc. also sells a set of probing and touch-probe digitiz-
ing macros for late-model Fanuc CNC controls. These macros are written so that
the operator only needs to program a single G-command to measure an X-Y-Z
dimension, or gauge a hole position and/or diameter. When these macros finish
executing, a number is stored in one of the Fanuc’s macro variable registers, and
can then be recorded in a PC-DNC Plus file.
(62)
1.7 Using explicit drive/directory commands
When a program with a program identifier character in the first line, you can
insert an explicit drive/directory command between the program identifier and the
program number.
When creating an R-command, insert the drive and directory string between
the R command character and the program number:
Requesting directories
When creating an P-command, insert the drive and directory string after the
P-command character:
O1234 PC:\MILL ;
(63)
1.7.0 PC-DNC Plus Terminal Window
The PC-DNC Plus “Terminal window” can be used to diagnose communica-
tions problems, and to test your PCs serial port. You can also use the terminal
window to manually send commands to any CNC control.
The terminal window is opened using a toolbar button on the PC-DNC Plus
command window. Once opened, the selected DNC window is placed under
manual control, and will not accept remote commands from the CNC until the
terminal window is closed. Also, the DNC window will not respond to Xon signals
from the CNC, so no part program data can be trasmitted. The terminal window
can only be opened if the selected DNC window is in the “Idle” or “Paused” state.
The terminal window will not open if the DNC window is in the process of sending
or receiving part program data from the CNC. Terminal Window
toolbar button
When the terminal window is open, you can type characters into the window,
which will then be transmitted directly to the CNC via the selected DNC window.
When data comes in through the DNC window, it will be displayed in the terminal
window IN RED.
An easy test to see if your PCs serial port is working would be to disconnect
the CNC control, jumper the transmit pin (pin #2) to the receive pin (pin #3) and
type something into the terminal window. If the port is working correctly, you
should see an “echo” (in red characters) of every character you type. Non-printable
incoming characters are displayed by thier abbreviations. For example: CR =
Carriage Return, LF = Line-feed, ESC = Escape. <NUL> = null (ASCII #0) , etc.
(64)
PC-DNC Editor installation
PC-DNC Editor for Windows is written for the 32-bit API used by Windows 95/98/ME, and
Windows NT 4.0/2000/XP. This program is NOT designed to run under earlier 16-bit versions of Win-
dows. While every effort will be made to make PC-DNC Editor compatible with future versions of Win-
dows, we cannot predict how our current software will run under future versions of Windows.
Directory assignments
When the PC-DNC Plus installation program runs, it will automatically install the bundled PC-DNC
Editor in the same directory as PC-DNC Plus. The default install directory is “C:\Program files\RYM\PC-
DNC Plus Server” or “C:\Program files\RYM\PC-DNC Plus Client”. After PC-DNC Plus and PC-DNC
Editor is installed, you can use Windows Explorer to create a desktop icon. Simply locate the file
EDITOR.EXE in the PC-DNC Editor directory, right-click the mouse and select “Create shortcut”. Once
a shortcut is created, you can then “drag & drop” the shortcut to your desktop.
1) You can double-click on any file name in the file list box (lower-right area of PC-DNC Plus screen
2) You can highlight a file name, right-click, and select “Edit” from the pop-up menu.
3) You can highlight TWO file names, right-click, and select “Compare” from the pop-up menu
4) You can use the PC-DNC Plus toolbar buttons for “Edit” or “Compare”
5) You can click the PC-DNC Plus “File” menu and select “PC-DNC Editor”
65
PC-DNC Editor main window
The PC-DNC Editor has been especially designed for NC programming. Since it is an MDI
(Multiple Document Interface) editor, you can display several NC files at one time. With 2 or more files
displayed on the screen, you can use the mouse to “highlight” text in one file, then cut, copy or paste this text
to another file. You can also easily compare files, or modify files with one of the PC-DNC Editor’s
MODIFY functions. Figure 1 (below) shows the main PC-DNC Editor main window, with one text box
open.
In this manual, we will refer to certain elements of the PC-DNC Editor’s main window by name.
When we refer to a “text box” or a “pull-down menu”, here’s what we mean:
Main Window Pull-down Menus Text Box Control Boxes
Scroll bar
Later in this manual, we will discuss each of the PC-DNC Editor’s functions. When we describe a
sequence of menu selections, we might use terminology like: “Text/Foreground/Blue”. This means: move the
mouse pointer to the pull-down menu “Text”, and select the menu choice “Foreground”, then chose “Blue”.
66
PC-DNC Editor main menus
Each function of the PC-DNC Editor begins with a “Main Menu” selection or a “Toolbar” selection.
Each main menu selection leads to at least one “sub-menu” selection. Toolbar buttons are shortcuts to the
most commonly used editing functions.
Fig.1a
Each main menu selection refers to a category of functions. The 10 major categories are listed
below:
FILE Selections pertaining to files (open, close, save, save as, compare, print, etc.)
EDIT Selections for manipulating text (cut, copy, paste, search, replace)
TEXT Selection for text colors and font size
MODIFY Selections to modify files (format, offset, scale, mirror, resequence, etc.)
CALC Calculator functions for solving common math problems
OPTIONS Text editor options (filter files, auto save, set default directories, etc.)
REFERENCE Selections of reference files that can be quick-opened as text files (i.e. G-code lists)
JUMP Jump to the beginning or end of a file
I/O Selections to queue files in the DNC windows (PC-DNC Plus version only)
ABOUT... Brief messages about Suburban Machinery, the author, and our policy
67
PC-DNC Editor function list
Here is a list of each of the PC-DNC Editor’s functions, along with a very brief description. Each
function is described in more detail later in this manual.
68
PC-DNC Editor function list (cont.)
Menu Sub menu Description
TEXT
BACKGROUND Selects colors of black, white, or blue
FOREGROUND Selects colors of red, green, blue, white, black
ACCENT COLOR Selects colors used for accented text
SCREEN FONT SIZE Selects font sizes of 10, 12, 15, and 19 point
SCREEN FONTS Selects from any available Windows text font
ADDRESS COLORS Lets you specify a color for each letter address
COLORIZE Applies address colors to entire text file
HIGHLIGHT LINES Highlights line containing selected commands
SCROLL ALL Scroll all open text boxes with special scroll bar
MODIFY
FORMAT Reformats numbers within the active text box
OFFSET Adds or subtracts from any values within the active text box
SCALE Scales any axis coordinates around a “scale center” point
ROTATE Rotates coordinates in XY, YZ, or XZ planes (including IJKs)
MIRROR Mirrors any axis coordinate around a “mirror center” point
SWAP Swaps any 2 commands (swaps G02 & G03 for example)
REPLACE TEXT Search & replace all occurrences of one command with another
RESEQUENCE Deletes old N-numbers and inserts new ones
COMPRESS Reduces the size of a file by removing spaces, N-numbers, etc.
ADD SPACES Inserts spaces before each letter address (for readability)
SEGMENT FILE Breaks a large file into several smaller ones (you set size limit)
SPLINE FIT Fits a cubic spline to your data points to make a smooth curve
CONVERT FILE A programmable, mass-editing function for converting files
ABS/INC CONVERT Converts absolute files to Incremental and vice-versa
INCH/METRIC Converts commands from inch-to-metric and metric-to-inch
MAX/MIN ANALYSIS Scans a file for maximum & minimum values of any axis
CHANGE CASE Changes text from upper case to lower case and vice-versa
INSERT TEXT Lets you insert text before or after selected text
UNDO MOD. Restores old data to text box if you don’t like the modification
CALC
SFM/RPM Displays a dynamic conversion box for SFM/RPM calculations
IPM/IPR Displays a dynamic conversion box for IPM/IPR conversions
DEGREES Displays a conversion box for Deg./Min/Sec. to Decimal/Rad.
TRIANGLES Displays a dynamic conversion box for solving Right Triangles
TOOL RADIUS OFFSET Calculates common radius/angle offset problems
DRILL POINT Calculates drill point and center drill point depths
CIRCLE/LINE Calculates common circle/angle offsets
MS CALCULATOR Displays the Microsoft Windows calculator
BOLT HOLE CIR. Generates a Bolt-hole pattern in a separate text box
ROW OF HOLES Calculates XY positions of a series of holes along a straight line
69
PC-DNC Editor function list (cont.)
Menu Sub menu Description
OPTIONS
FILTER FILES Removes nulls, control codes, etc. when loading a file from disk
USE ADDRESS COLORS Automatically apply address colors to text files
ARRANGE FILES.. Rearranges all text boxes whenever you close a text box
SAVE SETTINGS Saves “options” settings and screen colors on disk for later use
OPEN CONTENTS FILE Auto-opens CONTENTS file in PCNC file mode
USE CONTENTS.DOS Searches directory and creates CONTENTS.DOS file
AUTO SAVE (2min) Saves the contents of ALL text boxes every 2 minutes
AUTO SAVE (10min) “ “ “ 10 minutes
SET SAVE/AS TO ASCII ONLY
SHOW “FIND TEXT” TOOLBAR BUTTON
ACCENT TEXT BETWEEN MARKERS Accents text when makers are changed
CREATE .BAK FILES Create .BAK files whenever an old file is overwritten
USE FUNCTION KEYS Enables function keys F1-F10 for editing shortcuts
RESET TO TOP-OF-FILE AFTER FILE/MODIFY Sets cursor to top of file
PERMIT MULTIPLE INSTANCES Lets you run multiple PC-DNC Editor sessions
SHOW DRILL POINT CALCULATOR IN METRIC
DISABLE SPLASH SCREEN
SET DIRECTORIES Lets you set a default path for files, and for MS Calculator
REFERENCE
G-CODES Opens a text box and displays a G-code list from your library
M-CODES Opens a text box and displays a M-code list from your library
SPEEDS & FEEDS Displays a Speed & Feed table from your library
EIA CODES Displays a chart of EIA RS244B tape codes
ISO CODES Displays a chart of ISO 840 tape codes
CNC CONTROL INFORMATION
JUMP
BEGINNING Moves cursor to the beginning of the active text box
END Moves cursor to the end of the active text box
NEXT T-CODE Moves cursor to the next T-code in the file
MARKER A Moves the cursor to the Marker A position
MARKER B Moves the cursor to the Marker B position
I/O
ADD FILE TO QUEUE Adds the active file to a PC-DNC Plus machine’s queue
SELECT IO DEVICE Selects which DNC window queue the file is added to
ABOUT
PC-DNC EDITOR ...about your version of PC-DNC EDITOR
SUBURBAN ...about Suburban Machinery, Software Division
REFRESH YOUR MEMORY INC.
THE AUTHOR ...about Dan Fritz, author of PC-DNC Editor
SUPPORT IN AUSTRALIA ...about Shera Bonnet & Associates PTY, Ltd
PURCHASING INFORMATION.
70
The PC-DNC Editor’s text box
Each time you open a text box within the PC-DNC Editor’s main window, a new box like the one
shown below is displayed. Each text box is a totally independent text editor, which displays the file name in
the upper-left corner.
scroll bar
Fig.2
Each text box can be MINIMIZED, MAXIMIZED, WINDOWED or CLOSED using the
Control Box in the upper right corner. Do not confuse the control box of the individual text boxes with the
(similar) control box in the PC-DNC Editor Main Window. (Refer to Fig.1a)
Minimize button
Maximize/Window toggle button
Close button
Use the Minimize button when you need to clear space on the PC-
DNC main window, but don’t want to close the file entirely.
Use the Maximize/Window toggle button to display the text box in
Fig.3 “full-screen” mode or “Windowed mode”
The Close button closes the text box, just like FILE/CLOSE.
71
The PC-DNC Editor’s text box (cont.)
At the bottom of each text box is a “status bar” which consists of 5 panels. Each status bar displays
information about the text box.
Panel #1 Saved / Not Saved If a file has been saved since it was last changed, the word
“Saved” appears. If a file has been changed, the words “Not
saved” appear, and you will receive a warning message if you
try to close it.
Panel #2 Byte position The current position of your cursor within the text box (in
bytes). A position of zero refers to the “top” of a file.
Panel #4 Marker A A marker that you can set. When you click on panel #4,
Marker A remembers the position (in bytes) of the cursor.
Panel #5 Marker B A marker that you can set. When you click on panel #5,
Marker B remembers the position (in bytes) of the cursor.
72
The Right-Click Menu
When editing files, you can use a convenient pop-up menu that appears
whenever you click the right-mouse button. These are the most commonly
used editing functions.
Undo Edit
When editing, the edit operations in each text box are saved in a 1000 command buffer. The Undo
Edit function will delete characters that have been inserted, or insert characters that have been deleted. All
single and multiple character edit operations (but NOT the functions in the MODIFY menu) are included in
the UNDO EDIT function. For convenience, you can also use the shortcut of Ctrl+U to undo an edit
function. Hold the “Ctrl” key while pressing “U” to undo an edit.
Redo Edit
After the UNDO EDIT function is used, you can REDO the edit (or UnDo the Undo) by selecting
the REDO EDIT function. Only character editing that has been “Un-done” can be “Re-done” with the
REDO EDIT function. For convenience, you can also use the shortcut of Ctrl+R to redo an edit function.
Hold the “Ctrl” key while pressing “R” to redo an edit.
Cut
Removes highlighted text from your file, and simultaneously copies the text to the Windows clip-
board. Data in the clipboard can then be “pasted” elsewhere with the Paste function.
Copy
Copies the highlighted text to the Windows clipboard. Data in the clipboard can then be “pasted”
elsewhere with the Paste function.
Paste
Inserts any text that is currently in the Windows clipboard at the location of your cursor.
Highlight
Applies the currently selected “highlight color” to the selected text. A highlight color can be selected
under the “Text” menu
Code Clip
Lets you select from any Code Clip file that you have saved. Any text can be saved as a Code Clip
file (using a .CLP extension) using the PC-DNC Editor’s File/Save As/Code Clip function. When a .CLP
file is selected, it is automatically copied to the Windows clipboard, which you can then “Paste” anywhere
you like.
73
Arranging your text boxes
When you open several files at once, you can use the File/Arrange menu selection to display them in
either a “Tiled” or “Cascaded” style. The default configuration for the PC-DNC Editor is “Tiled”, shown
here:
Fig.5
Fig. 6
74
Selecting an “active” text box
When several text boxes are open at one time, only one box can be the “active” box. To select an
active text box, move the mouse pointer over that box and click on it. When a text box is active, the bar
across the top of the text box will be darker color than the other text boxes. Also, if you have arranged your
text boxes in a “cascade” style, the active box will be in the foreground, and all the other boxes will appear
to be behind it.
Active box
Active box
75
Creating a new file
Use the File/New menu selection to create a new text box. When the new box appears, it will
automatically become the active text box. Simply begin entering text, using the ENTER key to start each
new line. As you type, your cursor position is displayed on the status bar at the bottom of the text box.
When you select File/New, the PC-DNC Editor searches your current directory for the first available
“Untitled-number”. The caption in the upper-left corner of the new text box will become: “Untitled-n”. This
untitled file number can be used to SAVE the file, or you can use File/Save As to store your data under a
different name.
76
Inserting a file into a text box
The File/Insert selection is different from the File/Open selection. File/Open places the contents of
your file into a new text box, where File/Insert reads in a new file, inserting it into an existing text box
at the cursor position. The File/Insert function is useful for merging two existing files, or if you have a
subroutine you want to merge into a file that you are editing. File/Insert does not affect the file you are
inserting, but simply reads in that data, and inserts it in the existing text box.
Deleting files
The File/Delete menu selection lets you select any file on disk and delete it. You can even delete a
file that is currently loaded into an open text box. If you do this, you can then save the file without an
overwrite warning, since the file on disk no longer exists. CAUTION! This is a real file DELETE function.
Your deleted files are NOT transferred to the Windows “Recycle bin”.
Printing files
The File/Print menu has a variety of options for printing your files. You can print the currently active
file, all the files currently opened, just the selected text within the active file, just the text within markers, or
just the first page of the currently active file.
With any of these selections, PC-DNC editor will format the text for printing, and pass it off to your
printer driver for transmission to your printer. PC-DNC Editor does not actually transmit or spool the data
to the printer, so other settings under Windows may affect how your printer gets its data. To make changes
to the way data is “spooled” to your printer, use the Windows “Start/Settings/Printers” menu.
Under the “File/Print” menu you can also select the default printer with a standard Windows dialog
box, or determine the page layout with a special menu shown below:
77
Comparing files
The contents of two text boxes can be compared using the File/Compare function. To use this
function, you must have two (and ONLY two) text boxes open. When comparing files, be aware that there
are limits to what this software can do. If you load two totally different files, and then start the File/Compare
function, you may have to wait a long time for the process to finish. If your two files are similar, with only a
few changes, PC-DNC Editor should finish quickly.
The File/Compare algorithm is fairly complex. When you begin the process, PC-DNC Editor begins
a line-by-line comparison of the two files. When it finds a difference, it marks that line, and begins a forward
and reverse “pattern matching” routine to detect if one of these lines was simply edited, or if a line has been
inserted and/or deleted. The pattern matching algorithm is normally limited to 10 lines of text, so the File/
Compare function may fail if you have inserted or deleted more than 10 lines from either file. This pattern
matching limit can be changed if necessary. After PC-DNC Editor has identified the “changed” lines (as
opposed to “inserted” or “deleted” lines) it compares the characters within each changed line to determine
the difference.
When two files are compared, you can display 3 types of File/Compare reports. The default
display shows a “side-by-side” file comparison (shown below). When the side-by-side compare method is
used, a universal scroll bar is displayed to the right of the main editor window. This scroll bar permits
simultaneous scrolling of the two text boxes for easy side-by-side viewing.
Fig.8
In addition to the “side-by-side” report format shown here, a “Complete Changes-to” report
shows a copy of each file, in which inserted lines are UNDERLINED, deleted lines printed in
STRIKETHRU, and changed characters shown in ITALICS. An abbreviated “Changes-to” report lists only
the changed lines within each file. When closing these “Changes-to” text boxes, NO WARNING WILL BE
ISSUED if you try to close without saving.
78
Arranging files
When several files are displayed in different text boxes, you can arrange them in either “Tile” or
“Cascade” fashion by using the File/Arrange function. Refer to page 9 of this manual for a description of
each of these methods. You can manually rearrange your text boxes at any time. You can also check the
option “Arrange files when closing” under the “Options” menu. When this option is checked, the open text
boxes will automatically be rearranged whenever a text box is closes.
NEWCON Utility
This is a familiar feature to those customers who have used our earlier PCNC or PC-DNC systems
for MS-DOS. If you are using our PCNC/PC-DNC file format, all NC files are named with a 4-digit
number (i.e. “PROG1234” or “PROG5678”), and a separate file called “CONTENTS” is maintained,
which contains a list of 4-digit numbers and an optional 32-character program name. If your CONTENTS
file should become lost, damaged, or become inaccurate, you can create a new one with this NEWCON
utility. When you select the “File/NEWCON Utility” function, a dialog box will appear to let you select a
drive and directory:
Once a path is selected, you can click on
the “Run NEWCON” button to begin creating a
new CONTENTS file. PC-DNC Editor will
search for all PROGxxxx files within that direc-
tory, and extract the program name from each
file’s “title” line. Then it creates a new CON-
TENTS file automatically.
The NEWCON utility is basically the
equivalent of the NEWCON Batch File Utility
program supplied with our earlier versions of PC-
DNC and PCNC for MS-DOS.
79
Closing files
To Close a text box, you can use the File/Close menu selection, or you can use the “close” selection
in the control box (upper right corner of the text box). In either case, PC-DNC Editor will check whether
the file is “Saved” or “Not saved”. If the file has not been saved, a warning is given.
80
Copying text
The Edit/Copy function can be used to copy a section of text from one text box, and move it to
another with the “paste” function. Unlike the Edit/Cut selection, Edit/Copy does not remove the text, but
simply copies it to the Windows clipboard. You can copy text in two ways: First, you can “select” the text
by dragging the mouse pointer over the desired text, and then use Edit/Cut/Selected Text to remove it . You
can also use Marker A and Marker B to define the text you want to cut, and use the Edit/Copy/Between
Markers selection. To select text, click the mouse pointer on the first character of the desired text, then
HOLD the mouse button while you move it to the last character you want to select. When you let up on the
mouse button, the text area will appear highlighted, or “selected”. You can now use Edit/Copy/Selected
Text. To use the Marker method, click on the first character, then click on the “Marker A” panel at the
bottom of the text box. Next, click on the last character, then on the Marker B panel. When the markers
have been set, the Edit/Copy/Between Markers selection will work.
Pasting text
Once text has been cut or copied onto the Windows clipboard, it can be “pasted” to any text box
with the Edit/Paste function. Simply click on the spot where you want the text to be inserted, and choose
Edit/Paste. Text can be copy & pasted between text boxes, between applications (such as between MS
Word or MS Notepad and PC-DNC Editor). You can also copy and paste numbers from the MS calcula-
tor to the PC-DNC Editor and vice-versa.
Replacing text
To replace text within a text box, you can use the Edit/Replace function. When you choose Replace,
a dialog box is opened which lets you enter the text you are searching for, and the text you want to replace it
with. The search will take place within the active text box only, and will not involve any inactive text boxes
that you may have open. There are some options available for replacing text, which can be individually
selected with “check boxes” within the Replace dialog box.
We recommend that Edit/Replace be used if you want to selectively replace something within a file.
To replace all occurrences of something within a file, its much faster to use the Modify/Replace function
instead.
81
Halting a replace function
Once a “Replace All” process has been started, you can stop it with the Edit/Stop Replace
function. This halts the process wherever it happens to be, and can be resumed if you select Edit/Replace
again.
Text colors
The TEXT pull-down menu has three selections for changing text colors, and one for changing the
font size. Foreground, background, and “accent” colors are individually selectable from a menu of colors.
Since there is no restriction on choosing colors, it IS possible to set the foreground color and the back-
ground color to be the same. This would result in “invisible” text. If this should happen, all you need to do is
choose another foreground or background color. The actual text in your text box will not be affected.
When you choose a new color, the active text box is changed to the new color, but any inactive ones are
not. In addition, any text boxes you open after that will take on the new colors.
Screen fonts
Any text font that is currently installed on your computer can be selected from the Text/Screen
Fonts menu. A Windows Font Dialog is displayed, from which you can select any font. Since some fonts
use “proportional spacing”, where some characters (like “i” and “l”) are narrower than others (like “w”), we
recommend that you use the Courier font, which is much easier to read in typical G-code files.
Address colors
The Text/Address colors menu lets you
apply a color to any letter address. This feature
lets you display all “X” values in one color, “M-
codes” in another color, etc. You can select from
any font color available on your PC. Notice that
color selections may be different from PC to PC,
depending on monitor type and Windows settings
for color depth. These colors are applied to an
open file when you click the Text/Colorize menu.
You can also apply these colors automatically as
the file is opened by checking the option “Use
Address colors when opening” under the “Op-
tions” menu
82
Colorize text
The Text/Colorize selection lets apply the colors you’ve selected in the Text/Address colors menu to
any open file. Caution: This selection should only be used with files of modest size. Since colorizing a file
may take some time, do not attempt to apply individual address colors to multi-megabyte size files.
Scroll All
The Text/Scroll All selection lets you vertically scroll all the open text boxes together (synchro-
nously). When you select “Scroll All”, a universal scroll bar will be displayed to the right of the main editor
window. This scroll bar will vertically scroll all the text boxes that are open at the time the Scroll All selection
is made.
Modify menu
The Modify pull-down menu contains functions that perform extensive modifications on the active
text box. For convenience, there is also an UNDO function, which lets you put the original data back into
your text box if you do not want to keep the modified data. Each of the Modify selections work in a similar
way. First, a scratchpad data file is opened on your hard drive and the text in the active text box is stored.
Next, the modify function reads-in this file and creates a new (modified) scratchpad file. When it’s finished
modifying, the active text box is loaded with the new, modified data from the scratchpad file. The Modify/
Undo function simply replaces that modified data with the data in the original scratchpad file. In addition,
you can Undo the Undo command as well, putting the modified data back into your text box.
83
Number formatting
The Modify/Format selection lets you reformat numbers within your text box. When you choose
Modify/Format, a dialog box appears that lets you enter the letter addresses you want to affect, and several
options for reformatting the numbers.
Before you reformat the numbers within
the active text box, you can test the parameters
by entering a sample number in a “test” box. The
reformatted version of your test number is shown
next to it.
When you have chosen the number
format that you want to use, click on the FOR-
MAT button to begin the file modification.
Wherever any of the chosen addresses appear
within your active text box, the number will be
reformatted to the style you choose.
Fig.9
Axis offsetting
The Modify/Offset function is used to “shift” an axis within your NC program. If you need to make
an X, Y, or Z axis shift, this function will give you several options to choose from. For programs that are in
absolute (G90), the shift function will add or subtract to all the axis values within the range you’ve selected.
If your program is in G91, it will shift the first occurrence of an axis value after your coordinate system
setting (G92/G50). It will also shift a G91 value on the first occurrence of a G91 move AFTER a G90
move.
The Offset function also lets you
offset and repeat a pattern multiple times. For
example, if you want to machine 10 identical
parts in a row along the X axis, you can
program the first part, then use the “Offset &
add to existing data” option to offset & add
to the program 9 times. Each pattern will be
offset (by the offset value) from the previous
pattern. A text box is also provided so you
can enter text that you want to insert between
each pattern.
Fig.10
84
Axis scaling
The axis scaling function (Modify/Scale) is used to multiply any axis values by a scale factor. In
addition, you can enter a “scale center”, or point around which all scaling takes place. If, for instance you
have an XY work area 10 inches (in X) by 5 inches (in Y), you can scale the X axis by
1.5 times, making the work area 15 inches by 5
inches. If the scale center is Zero, then the X
axis values are all scaled around X0, which
means that your 0, 0, point on the part has not
moved, but all other X values have been
moved. If you scale around X5.0, then the old
position of X5.0 remains stationary, and all
values higher than 5.0 become larger, while
values below 5.0 become smaller. Scaling also
takes into consideration the G90/G91 status of
your program. The ABSOLUTE coordinates
are scaled, even if you are programming in
incremental (G91) The scaling function can be Fig.11
used to scale any address (such as F-codes,
S-codes, etc.) and not just axis addresses.
When scaling F or S
codes, however, turn off the automatic G90/G91 sensing option, and select the “Abolute” check box.
Program rotation
The Program Rotation function can be used to rotate all the coordinates in your file around a par-
ticular center point. Rotation can occur in any plane (XY, XZ, or YZ) and can automatically sense the status
of G90 and G91 in your program. The I, J, and K values for G02 and G03 motions are also rotated. Your I,
J, and K values can be incremental or absolute. PC-DNC Editor assumes that all IJK
values are incremental, unless you check the
box marked “IJKs are absolute”. When
rotating in the XY plane, the X, Y, I and J
values are rotated, and the Z and K values are
not affected. Similarly, when rotating in the XZ
plane, the X, Z, I, and K values are rotated,
and the Y and J values are not, (etc.). The
program rotation function does not work for
3-axis circular moves (spherical interpolation)
where all 3 axes are programmed in the same
block. In this case, only the two axes selected
are rotated, and the 3rd axis is not affected.
Wherever an “R” command replaces the I-J-
K commands in a G02 or G03 block, it is
Fig.11a passed through without change, since its value
does not require rotation.
85
Axis mirroring
To mirror an axis, use the Modify/Mirror function. Unlike mirroring on your CNC, which always
mirrors around X0, Y0, Z0, the PC-DNC Editor’s mirror function can mirror around any
point. To mirror any axis, select the axis and enter
a value around which to mirror. If you mirror
around a center point of zero, there is no need to
sense the status of G90/G91. If you are mirroring
around some other coordinate, however, you can
select G90, G91, or automatic sensing of G90/91.
Another difference between mirroring on
your CNC and using the Axis Mirror function is
that you may also need to “swap” certain other
commands to make the mirror image complete. If
you use G02 and G03 in your program, you may
need to swap the G02 and G03 commands with
the Modify/Swap menu selection. If cutter radius
compensation is used, you may also need to swap
G41 and G42 as well. On most CNCs, mirroring
of one axis usually reverses the effect of G02/G03
and G41/G42 automatically. This Modify/Mirror
function DOES NOT change these other com-
mands automatically.
Fig.12
Swapping text
To swap two commands within your program, some text editors require that you use a search &
replace function. This is not easy, because you must take one command and replace it with a “dummy”
command, then take the second command and replace it with the first. Finally, you have to replace the
“dummy” command with the second. The Modify/Swap function does this automatically
by letting you enter two commands. Every occur-
rence of the first command is replaced by the second,
and vice-versa. By using the “between markers”
option, you can limit the scope of the swapping
function to any area of your program. The
swap function will also perform a global “delete” by
replacing any string with (nothing).
A wildcard character can also be used to
replace any LINE that contains a string with a new
line. Enter the string to search for, followed by an
asterisk (*), then enter the data to replace the line
with. Fig.13
86
Replacing text
To replace one command with another, you can use the Edit/Replace function, or the Modify/
Replace function. Both selections will replace one command with another. Where the Edit/Replace function
lets you step through your file, selecting “replace” or “skip” for each item, the Modify/Replace function does
not. The Modify/Replace function is much faster when replacing all the selected commands within a file. If
you are sure you want to replace ALL the selected commands
within a file, use the Modify/Replace function.
A wildcard character can also be used. For
example, to replace all feedrates within a file to
“F25.0”, you can replace “F*” with “F25.0”.
Notice that the Modify/Replace function is
different from the Modify/Swap function. The replace
menu shown here will replace all “G03” commands
with “G02”, and will not affect any “G02” commands
in the file. Swap, however will replace “G03”
commands with “G02” AND ALSO replace all
“G03” commands with “G02”.
Fig.13a
Resequencing
The Modify/Resequence selection is used to replace all the existing N-numbers in your file with new
N-numbers. Several options have been provided to let you select the N-number increment,
as well as the starting N-number. You
can resequence the entire file, or limit
the scope of the resequencing to the
area between marker A and marker
B. If you want to only resequence
blocks that contain T-codes, or if you
want to skip the program ID (first)
line of the file, or your comment lines
(within parentheses), there is a check
box available to set each of these
options. For leading-zero N-num-
bers, the number of digits can be
specified with the “digits” box in the
upper right corner of the menu.
Also, if you want a space character
after each new sequence number, or if you are resequencing a Fanuc macro with GOTO statements, you
can check the option boxes for those functions as well.
Two additional options are provided for Cincinnati CNCs. One option treats any block beginning
with the letter “O” as if it were an N-number. Another option uses the letter “H” instead of an “N”, when-
ever resequencing lines that have a W-command in them.
87
Compressing files
When a program becomes too large to fit in your CNCs memory, or if you just want to reduce the
number of characters for faster DNC operation, you can remove the unnecessary parts of the text with the
Modify/Compress menu selection, which will frequently make the difference between a
program that will fit in memory, and one that won’t.
The Modify/Compress function performs some basic
file compression methods. It can remove N-numbers,
blank lines, comments (within parentheses) and
spaces. The “Remove redundant” option also let you
remove axis commands that are repeated in each
block when they are not needed.
For maximum file compression, you can also
use the “Modify/Abs/Inc convert” function to make
absolute (G90) files into Incremental (G91), or you
can reformat your numbers with Modify/Format to
minimize your file size. Fig.15
Inserting spaces
When many (i.e. Fanuc) controls send data back to the DNC system, they remove all space
characters that may have originally been in the file. This makes the NC programs difficult to read. The
Modify/Insert Spaces function will insert a space character after every number that is preceded by a letter.
No dialog box appears when you use this function.
Segmenting files
If a file is too long to fit in a CNCs memory, you may need to “break it down” into several smaller
files. The Modify/Segment File selection is designed to do this automatically. Suppose you were cutting a
mold on a CNC machining center. At the beginning of the file, you have a tool change, spindle on, offset
commands, etc.. Next, you have several thousand blocks of X-Y-Z data, followed by a spindle off com-
mand, a Z-retract, and a zero-return. If you use marker A to identify the end of
the program “header” (spindle on, etc.) and
marker B to identify the beginning of the
“trailer” (spindle off, go home, etc.), the
Modify/Segment function will create several
smaller files from your one large one. Each file
will have the same “header” and “trailer”, but
the main body of the file will be broken down
into as many segments as necessary. PC-DNC
Editor calculates how many files to create by
using a “maximum file size” number that you
specify.
Fig.16
88
Spline fitting
A spline curve is a smooth curve which intersects several “control” points that you define. The menu
selection Modify/Spline Fit lets you define a series of coordinates in your file, and also specify a number of
points to generate along the same curved path. Once PC-DNC Editor calculates the spline curve, it can
generate any number of points that you want along that spline. For example, if you want to mill a “cam” on a
CNC machining center, you can program just a few, known control points along the surface of the cam.
Before fitting a spline curve, a G01 point-to-point cutting path would create a series of straight cuts from
one control point to the next, creating flat spots on your cam.. If you
first spline-fit those control points,
you can generate lots of points
very close together, which can
greatly reduce the flat-spotting
effect. Spline fitting increases the
size of your file. Also, a series of
points VERY close together could
limit the feedrate your CNC can
produce.
To create a spline with
PC-DNC Editor, set marker A at
the beginning of the series of
control points, and set marker B at
the end of the series of control
points. Next, choose Modify/
Spline Fit, and specify the number
of points you want to generate. Fig.17
Also, if you are producing a
“closed loop” spline,
select the closed loop option. This
will insure a smooth overlap
where the first control point meets the last control point in the spline. In a closed-loop spline, the FIRST few
control points are used again (automatically) as control points at the END of the spline. This assures a
smooth joining of the beginning and the end of your spline-fitted cutting path. When you choose a “closed
loop” spline, the first point of the spline will be at the same XYZ location as the first control point, but the
LAST point of the spline will be at the same XYZ location as the THIRD control point, making a 2 control
point “overlap”. The Modify/Spline Fit selection will remove the control points from your active text box,
and replace them with the new, spline-fitted cutting path. You must specify at least 4 control points for this
function to work. Also, you must specify that the Spline function generate at least 3 points. The points
generated by this algorithm are equally spaced along the entire length of the spline.
Note: A spline can be generated from XYZ data (a 3-D B-spline) or with XY, XZ, or YZ data (as a
2-D cubic spline). In all cases, each block must contain an XY, XZ, YZ or XYZ coordinate.
Note: When specifying control points, make sure you don’t have 2 adjacent points with the same
coordinates. This would create a curve of zero-radius, causing a divide-by-zero error.
89
Converting Files
File conversions can be performed with the Modify/Convert File function. To convert a file from an
Okuma lathe to a Mori-Seiki lathe, for example, you might need to mirror all the X axis commands, swap all
M03s and M04s, swap all G03s and G02s, G41s and G42s and (possibly) scale the X axis to compensate
for differences in “radius” or “diameter” values. Also, you may need to reformat your F-codes, and delete
certain lines with unnecessary information or incompatible commands.
The PC-DNC Editor lets you program a multistep file conversion profile, and assign it a name (i.e.
“Okuma to Mori”). You can later recall and use this conversion profile by name. Up to 20 steps (each) of 5
basic mass editing functions are available. Each conversion profile lets you program up to 20 “search &
replace” functions, 20 “swap” functions, 20 “mirror” functions, 20 “scale” functions, and 20 “format”
functions. When you convert a file, all the search & replace functions are performed first, then the swap
functions, mirror functions, scale functions, and format functions in order. Any steps left empty, or with
insufficient data are not performed. Once a file conversion is finished, you can restore the original data with
the Modify/Undo command.
Fig. 17a
When a conversion profile has been programmed, click on the “Save” button so that you can recall
this profile later by name. The “Clear” button clears all the steps in the current profile, but does not save
these changes to disk until you click the “Save” button. When you click on the “Convert” button, the
program in the active text box is converted by each step defined in the current profile.
NOTE: Be aware that a “search & replace” function is different from a “swap” function. Swapping
“G02” with “G03” will replace all G02s in your file with G03 and will replace all G03s with G02s. A search
& replace function will replace all G02s with G03s while leaving the existing G03s unchanged.
90
Absolute/Incremental Conversion
To convert the contents of a text box from absolute (G90) to incremental (G91) and vice-versa, use
the Modify/Abs-Inc Convert function. When this function is used, all G90/G91 commands are swapped
where needed, and all XYZ axis commands are recalculated and reformatted. IJK commands can also be
converted, but their values are calculated differently from XYZ axis moves. When converting IJK values,
the incremental IJKs are calculated relative to the XYZ start point of the arc, while absolute IJKs are
calculated in the same coordinate system as the XYZz values.
When cutting complex 3-D surfaces with small point-to-point moves, it is frequently possible to
greatly reduce the size of the file by converting to incremental (G91). If file compression is desired, first
remove all unnecessary N-numbers, comments, and spaces with the Modify/Compress function, then
convert the file to incremental with the Modify/Abs-Inc Convert function. In addition, if point-to-point
moves are small, you can further reduce the file size by using a non-decimal format for all XYZ numbers,
and removing all incremental moves of “zero” with the Swap function. Using all of these methods, it’s not
unusual to achieve a file size reduction of up to 50% or more. For example, the following file is shown, along
with the compressed and converted equivalent:
Fig. 17b
91
Inch/Metric Conversion
To convert the contents of a text box from inch to metric (or metric to inch), use the Modify/Inch/
Metric Convert function. This function assumes that all values within a file are either metric or
inch, depending on the conversion selected. For example, if you select “Convert Inch to Metric”, the
values within the file are assumed to be
“inch” values. Consequently, this function
cannot be used if your program switches
back and forth between inch and metric
using G-codes.
You can also select the output
resolution for decimal numbers, and the
output number format. Be sure you select
the output resolution for metric if you are
converting to metric, or inch if you are
converting to inch.
Fig. 17c
Max/Min Analysis
The Modify/Max/Min Analysis function will scan your program for the maximum and minimum
values for each axis. This function does not change the contents of your text box, but only
displays its maximum and
minimum values.
In addition to axis
motions, such as X,Y, and Z,
you can also scan for Max/
Min values of T-codes, S-
codes, or any other com-
mand within your programs.
Fig. 17d
92
Changing Case
The Modify/Change Case menu is used to change
text from upper case to lower case (and vice versa). Text
can be modified between markers, and comments, or text
within parentheses can be omitted if desired.
Fig. 17e
Inserting Text
Text can be inserted within a program using the
Modify/Insert Text function. The example show here
inserts the text “M06” after every occurrence of a T-
command within the program. The letter “T” is given as
a “target”, and the M06 will be added on a separate
line immediately after the line with the T-code.
Another use for this function is to add com-
ments at strategic places within your program. For
example, you can add a comment on a separate line
after every occurrence of a specified command.
Fig. 17f
93
Undoing a file modification
The Modify pull-down menu has an UNDO function (Modify/UNDO Mod.), which lets you put the
original data back into your text box if you don’t want to keep the modified data. Each of the Modify
selections work in a similar way. First, a scratchpad data file is opened on your hard drive and the text in the
active text box is stored. Next, the modify function reads-in this file and creates a new (modified)
scratchpad file. When it’s finished modifying, the active text box is loaded with the new, modified data from
the scratchpad file. The UNDO function simply replaces the modified data with the data in the original
scratchpad file. In addition, you can UNDO the UNDO command as well.
Fig.18
Fig.19
Fig.19a
94
The CALC menu (cont.)
An Easy-to-use triangle solver lets you enter
known information, and will dynamically calcu-
late all the unknown sides and angles for you.
The triangle calculator can be used for quick
calculations that NC programmers frequently
encounter. Use menu choice CALC/Triangles to
display the PC-DNC Editor triangle solver.
Fig.20
Fig.20a
The drill point calculator will display the depth required to drill to the full diameter of a standard twist drill.
For standard center drills, the depth required to obtain the desired chamfer diameter is also displayed..
Fig.20b
95
The CALC menu (cont.)
The circle/angle calculator can
be used to solve the common
problems illustrated here. For
each circle/angle situation, you
can enter any two values, and
the calculator will solve for the
third variable.
Fig. 20c
Fig.21
Fig.22
96
The CALC menu (cont.)
PC-DNC Editor’s Bolt Hole Circle routine generates a series of X-Y coordinates that you can
easily merge into your programs. When you create a bolt hole circle pattern, PC-DNC Editor stores the
coordinates in a new (untitled) text box. You can then insert these coordinates into your NC programs with
the Edit/Copy + Edit/Paste functions, or you can save this untitled text box to disk with the File/Save or
File/Save As functions. Once the bolt-hole pattern is saved as a separate file, you can use File/Insert to
insert this same set of coordinates into many areas of your NC file (for drilling, tapping & countersinking the
same holes, for example). To create a bolt-hole pattern, select
CALC/Bolt Hole Circle and enter the number
of holes, circle diameter, the X and Y center of
the pattern, and the angle of the first hole in the
pattern (in degrees clockwise, from 12
o’clock). The CW and CCW options deter-
mine the direction of the bolt hole circle se-
quence, NOT the direction of the first hole from
12 o’clock, which is always CW. The bolt hole
pattern routine assumes that you are generating
a complete bolt hole pattern. If you need to
generate a partial pattern, simply generate a
complete pattern, and delete the coordinates
that you don’t need from the untitled text box.
The dialog box shown here will generate the X-
Y coordinates data shown in the text box
below.
Fig.22a
Fig.22b
97
The CALC menu (cont.)
PC-DNC Editor’s Row-of-Holes routine generates a series of X-Y coordinates that you can easily
merge into your programs. When you create a row-of-holes pattern, PC-DNC Editor stores the coordi-
nates in a new (untitled) text box. You can then insert these coordinates into your NC programs with the
Edit/Copy + Edit/Paste functions, or you can save this untitled text box to disk with the File/Save or File/
Save As functions. Once the hole pattern is saved as a separate file, you can use File/Insert to insert this
same set of coordinates into many areas of your NC file (for drilling, tapping & countersinking the same
holes, for example). To create a row-of-holes pattern, select the function
CALC/Row of Holes and enter the number of
holes, the X and Y start point of the pattern, and
the X and Y end point of the pattern. The Row-
of-Holes calculator will calculate the X-Y
coordinates of each hole, with the first hole
located at the X-Y start point, the last hole at
the X-Y end point, and all holes equally spaced
along a straight line.
If you need to generate a partial pattern,
simply generate a complete pattern, and delete
the coordinates that you don’t need from the
untitled text box. The dialog box shown here
will generate the X-Y coordinates data shown in
the text box below.
Fig.22c
Fig.22d
98
Options menu
The Options pull-down menu contains several modal settings for the PC-DNC Editor. These
settings are turned ON or OFF by clicking on the sub-menu selection. A small check-mark next to the
menu selection indicates whether it is ON or OFF.
100
Options menu (cont.)
Set Directories
The Set Directories
menu contains several selec-
tions for setting the default
file path, calculator path,
scratchpad file directory, etc.
Each of these functions are
described below.
Fig.23b
Scratchpad directory
PC-DNC Editor frequently creates temporary “Scratchpad” data files when processing your files.
By default, these files are kept in the PC-DNC Editor directory. For certain network applications, it may
be desirable to keep these files in another location so that multiple users don’t overwrite each others files.
You can specify any local or network directory for this purpose.
101
Options menu (cont.)
Utility Program #1 (and) Utility Program #2
You can specify two executable programs, which will appear in the PC-DNC Editor “File” menu.
This feature can be used to create a convenient shortcut to another application. For example, if you want to
launch a backplotting program from the Editor’s File menu, just enter the name of that .EXE file (including
the complete path) in either of these two boxes. A new menu selection will then appear in the PC-DNC
Editor’s File menu to run this application.
102
Reference menu
The References pull-down menu contains several selections to let you quick-open files in a refer-
ence library. You can create and store as many reference files as you like under six different categories.
Some reference files containing lists of common G-codes, M-codes and Tape-codes are included with the
PC-DNC Editor. A reference file is simply an ASCII text file with the information you want stored in it. The
FILE NAME of this list is kept in an index file called “G-code files” or “M-code files” these index files are
stored in the PC-DNC Editor’s INSTALL directory. You can add files to any index by using the ADD LIST
selection. Simply create your new reference file with any standard ASCII text editor, and store it in the PC-
DNC Editor’s directory (usually C:\Program Files\PC-DNC Editor), then select References/G-codes and
click on the ADD LIST button. Enter the file name of your new reference file in the file name box, and your
new reference file can be quick-opened from the G-code file list.
Fig.24
When a reference file is opened, it appears in a text box just like a NC file. In fact, it IS just like a
NC file, because you can edit it to add G-codes, or any reference information you would like. To close a
reference file text box, click on the “Close” icon at the upper-right corner of the text box, or click on the
text box (making it “active”) and then selecting File/Close.
103
I/O menu
The bundled version of PC-DNC Editor has an I/O pull-down menu with two selections that let you
queue up a file to any DNC window on the PC-DNC Plus system. This menu is different than the I/O menu
provided with the “stand-alone” version of our PC-DNC Editor, because the PC-DNC Plus version cannot
open serial ports that PC-DNC Plus is also holding open. The PC-DNC Plus version can only add a file
name to the queue list for active PC-DNC Plus windows. The actual output to the CNC is controlled by
PC-DNC Plus. If there are several other files in the selected DNC window’s queue, the file queued by the
Editor will be sent after all the previously queued files have been sent.
The first selection of the I/O menu adds the currently active file to the DNC window’s queue. The
second selection lets you choose which DNC window to use. There are also convenient toolbar button to
select the DNC window, and to add the active file to the queue list.
Fig. 25
NOTE: You may also manually edit any DNC window’s queue list in the PC-DNC Editor. This lets you
add any file name you like directly into the queue list, so you can also control the order of file names in the
list.
104
About menu
The “About” pull-down menu contains some useful information about PC-DNC Editor and about
the companies involved with servicing and supporting the PC-DNC line of products. On the “Stand-alone”
version of PC-DNC Editor, it also contains a hidden “back-door” method for implementing software
security and permanently licensing the software.
About/PC-DNC Editor
Displays the version number of your PC-DNC Editor executable file (EDITOR.EXE), as well as
the file creation date and the development system under which PC-DNC Editor was compiled.
About/The author
Displays a bit of personal information about Dan Fritz, the author of PC-DNC Editor
About/Support in Australia
Displays contact information for our Australian representative, Shera Bonnet Pty, Ltd. in New South
Wales, Australia
105
APPENDIX A
Fanuc Parameter Settings
Fanuc System 6/System 3 parameter settings
The Fanuc System 6 and System 3 controllers have several memory registers (parameters)
that must be set correctly for the RS-232 port to be compatible with a PC-DNC system. Consult your
CNC control operator’s manual for details on how to change these settings from the controller’s
keyboard.
Baudrates:
System 3: Two different baud rates can be set using parameters 68 & 69. For4800 baud, set
“4800” in parameter 68 & “0” in setting register I/O” (below).
System 6A: Use parameter #25. For 4800 baud, set “11101111”. Be sure parameter
#24, bit on far left, is “0”.
System 6B: Four baud rates can be set using parameters 310-313. For 4800 baud, set
“11001001” in #311 and set “2” in setting register #340 & 341 (below).
Stop bits: System 3 - Parameters 005 & 014, bits on far right should be set to “0”.
System 6A - Parameter 24, bit on far right should be “0”.
System 6B - Parameters 310-313, 5th bit from right should be “0”.
Tape codes: Systems 3 and all 6 series - Setting register marked “ISO” should be “0” to output
ISO/ASCII codes, “1” for EIA.
Device used:
System 3: Setting register marked “I/O” can be set to “0” or “1” to indicate which baud rate is
used (#68 or #69).
System 6A: No setting possible.
System 6B: Setting registers 340 & 341 are set “1” thru “4” to indicate which baud rate is used
(310-313). Set to “2”.
Port select: For the System 3 series controls, the RS-232 port is always active, but for all System 6
controls (A & B), there is a setting register marked “INPUT DEVICE 2”. This bit
must be set to “1” when loading data by RS-232. If it is set to “0”, the tape reader
starts when you press [READ]. The operator can select the tape reader or PC-DNC as
a source of data by changing this bit.
A1
APPENDIX A (cont.)
Fanuc Parameter Settings
Fanuc System 10/11/12/15 parameter settings
System 10/11/12 & 15 controls can have up to 3 serial ports. In most cases, serial port #1 will
be wired to the output plug on the side of your machine’s cabinet. If port #1 does not work on your
machine, you must try ports #2 and #3 to find out which one your machine tool builder selected.
Port selection: In the MDI mode, press the function key SETTING on the bottom edge of the CRT.
Continue to press SETTING until the HANDY page is displayed. Input the following:
TV CHECK =0
TAPE CODE = 0 (ISO)
INPUT DEVICE FG =1
OUTPUT DEVICE FG =1
INPUT DEVICE BG =1
OUTPUT DEVICE BG =1
Press the SETTING button a second time to display the GENERAL setting Page. Place the cursor
over setting #0000 and input the following data (8-bit binary):
00001000
A2
APPENDIX A (cont.)
Fanuc Parameter SettiAPPENDIX A (cont.)
Fanuc Parameter Settings
Fanuc System 0T and 0M parameter settings
Fanuc system 0 and 0-B and 0-C controls are set as follows. Bits marked “1” and “0” affect
the RS-232 ports. Bits marked “x” are used for something else - do not change them. The following
settings are for 4800 baud, 1 “stop” bit, and the output of leaders and trailers is suppressed.
The following parameters set the 16 and 18 controls to communicate via RS-232 at 4800
baud, 1 “stop” bit. Parameters 0000, 0100 ,0101, and 0121 are in 8-bit binary format, while all other
parameters are decimal numbers. The binary bits marked “0” or “1” must be set as indicated. Bits
marked “x” are used for something else - do not change the original factory settings.
On Fanuc 16/18 controls, there are two possible RS232 ports on the main CPU board. The
first setting shown below is for the serial port on CPU bored connector JD5A. This connector uses I/
O setting of 0, and parameters 100, 101, 102, and 103 for baudrate, stop bits, etc. If you are wired to
main CPU board connector JD5B, you must use an I/O setting of 2, and make your baudrate settings
with parameters 121, 122, and 123.
If you are using the Fanuc “Remote Buffer” board for RS232 or RS422 communications, you
must use an I/O setting of “3”, and set parameters 131-135. See your Fanuc documentation for these
settings.
0000 x x x x x x 1 0
TVON = 0 (vertical parity checking OFF)
ISO = 1 (use ISO tape code)
A3
APPENDIX A (cont.)
Fanuc Parameter Settings
Fanuc 16/18 (T and M) parameters (cont.)
0100 1x1x1x0x
TV check not performed in program comments
LF used as EOB character (not LF CR CR)
In DNC operation, read buffer full
Null characters are ignored in EIA code
A4
APPENDIX B
SERIAL (RS232) CABLE CONSTRUCTION
When making RS232 cables for your PC-DNC system, you must be very careful to use quality
components, and to pay careful attention to shielding. An improperly shielded cable is susceptible to
all kinds of EMI (Electro-Magnetic Interference), which can cause unreliable data communications.
It is also very important to avoid ground loops, which are usually a result of improperly grounded
equipment. Here are some important rules:
1) When buying components for your cables, always buy shielded cable that is designed for RS232
communications. Good quality 4, 6, or 8 conductor (22 or 24 gauge) cable is equipped with a foil
shield, a braided shield, or both
2) If an individual cable run is over 100 ft. long, use a low-capacitance, or “low-cap” cable. Cables
are rated in capacitance per linear foot (pf/ft). The lower the pf/ft. number, the better the cable
can carry high-frequency data over long distances. Very low-cap cable can work up to 500 ft.
3) Always route cables as far away from strong EMI sources as possible. A strong EMI source is
anything that generates a spark (Welders, EDM machines, etc.), or devices that have strong
magnetic fields (transformers, solenoids, etc.). Also, be sure that your cables do not run parallel to
high-voltage AC power lines for long distances.
4) Always buy RS232 connectors that have gold-plated pins. A thin “flash” plating of gold prevents
corrosion. We recommend solder-type connectors rather than “crimp” style connectors.
5) Always be sure the shield in you cable is GROUNDED. If you are using die-cast metal connector
covers (“hoods”), fold back the foil and/or braided shield, and firmly clamp the hood over the
shield. The two screws that hold the hood onto the serial device will complete the ground connec-
tion. If you are using plastic hoods, connect the shield to pin #1 of the 25-pin RS232 connector at
the CNC side.
6) Be sure that your CNCs are properly grounded. A ground-loop occurs when the “ground” on one
device is not at the same level as the “ground” on another device. For example, if your computer
is grounded to the 110vac wall plug, and the CNCs are grounded through the shop floor with
ground rods, a ground loop can occur if any resistance occurs in the shop’s main power ground.
Power from a shorted bench grinder motor could find its way through the shop’s 110vac ground,
to the port controllers, and then (through the RS232 cables!) to a CNCs ground rod. If this path
to “ground” has less resistance than the shop’s main power ground (usually, a ground rod outside
the building), then you are risking a “blown” serial port on your computer, the CNC, or both. To
avoid ground loops, be sure all your connected equipment is grounded well.
7) If ground loops cannot be avoided, or when routing cables to another AC power system (i.e. to
another building), use an RS232 Opto-Isolator (Black Box Corp. # SP400A-R2 or equivalent)
B1
APPENDIX B
SERIAL (RS232) CABLE CONSTRUCTION (cont.)
In addition to using the correct cable components, your serial cable must also be wired cor-
rectly for your application.
If you are using a 9-pin serial plug on your PC, use a cable as shown in Fig. 26, below. If you
have a 25-pin plug on your PC (or if you are using a 9-25 adapter), use a cable like the one shown in
Fig. 27. This cable diagram should work for over 95% of the CNC controls.
Note the fact that the serial port pin assignments for the PC side of the cable are different for a
9-pin plug than for a 25-pin plug. Only these five wires are needed for Fanuc controls. The cables
shown above are for PC to CNC communications ONLY. If you are connecting a PC to a scanning
PC-DNC system, or if you are connecting to a MODEM or tape puncher, please refer to the manuals
for those devices for the proper cable configuration.
B2
APPENDIX C
Troubleshooting serial I/O problems
Several things must be done correctly before serial communication will work properly. If
ANY ONE of these things is done incorrectly, your serial port I/O function will probably not work.
For serial I/O to work correctly you must:
1) Construct your cable with quality components, using the correct pin connections. See Appendix B
2) Set your CNCs parameters to the baudrate, stop-bits, and tape code settings you want to use.
3) Configure your I/O port to match the CNCs baudrate, stop-bits, and tape-code settings
4) Identify which COM port you are using on your PC (COM1, COM2, etc.)
5) Send your CNC the kind of DATA that it requires.
6) When receiving, be sure that your PCs performance is adequate (see Appendix C, page 3)
PC locks up when you try to use serial I/O (or mouse won’t move)
1) You may be trying to use the same COM port that you mouse is using. Some PCs use a serial
mouse, others use a “buss”, or PS/2 mouse. You must configure your serial device to use a port NOT
already used by the mouse. Select the Windows Control Panel, then select “Mouse” to find out what
kind of mouse you have.
2) Your PCs serial port board may be set incorrectly. Some serial boards have jumpers or DIP
switches for setting the ADDRESS and the INTERRUPT level. If either the address or interrupt
setting conflicts with another installed device (network card, scanner card, etc.) a lockup may occur.
C1
APPENDIX C (cont.)
Troubleshooting serial I/O problems
Must press READ button on CNC twice to download a file
1) Many CNCs read a percent sign (%) as the END of a file. On Fanuc, Yasnac, and many others, if your
files have a “%” at the begining, you MUST NOT use a “leader” when you configure your device. On these
CNCs, a line-feed (LF) starts the read process, and a “%” ends the read process. Also, anything the CNC
receives before the first LF is ignored (this is the “Label Skip” function).
First block of the program is lost when loading into the CNC
1) You may need a LF (line-feed) sent as the “leader” (see item above). CNCs with a “label-skip” function
(Fanuc, Yasnac) must see a LF character before the first block of the program.
When receiving data from CNC, some characters are missing (or blocks run together)
1) This is a handshaking problem. On most CNCs (Fanuc, Yasnac, etc.) you MUST connect pin #5 on the
CNCs serial port to the correct pin on the PC (see cable diagram, page 34). If this pin is “jumpered-out”,
then the CNC won’t be able to handshake properly when it SENDS.
2) On CNCs that use Xon/Xoff handshaking, be sure the CNCs parameters are set to enable this function.
Note: Xon/Xoff handshaking is somtimes referred to as “Device Control” or “DC” codes.
3) See page 37 for description of “FIFO” buffers, and poor performance when receiving data.
When sending data to the CNC, some characters are missing (or blocks run together)
1) Be sure the handshaking setting in PC-DNC Editor’s I/O device configuration matches the type of
handshaking used by the CNC. Most CNCs use Xon/Xoff (sometimes referred to as “DC codes”) when
receiving data. When in doubt, set your I/O device to use “Both”
2) If you are also having trouble receiving data from the CNC, you may have a bad wire in your cable, or
you may also have a “FIFO” buffer problem that prevents the PC from receiving the CNCs Xoff handshake
signals. See following page suggestions for “Poor performance”
C2
APPENDIX C (cont.)
Troubleshooting serial I/O problems
Poor performance (can’t send fast, or can’t receive at all at high baudrates)
1) Your PC may not have a “buffered” serial port. If your PCs serial port has the newer 16550 UART chip,
you can use its “FIFO” (First In, First Out) buffer to greatly improve the performance of the serial port -
especially when the PC is receiving data. Without this buffer, the PCs operating system (Windows) receives
an interrupt every time a single character comes in to the port. At higher baudrates, Windows may not be
fast enough to service all these interrupts, and may loose some characters. With the FIFO buffer, Windows
is only interrupted when the UART chip’s buffer is full, which means that it can handle several characters at
a time, resulting in a much higher speed.
If you can’t receive data from the CNC at all, try this experiment: Set the baudrate at the CNC and
in your I/O device coniguration menu to a VERY LOW setting (say, 300 baud), and try to receive a file. If
the file comes in OK, but switching back to a higher baudrate does not work, then you probably have a
FIFO buffer problem. Next, use the Windows Control Panel in the following manner to check is Windows
is using its FIFO buffer:
On Windows 95/98/ME equipped computers, After step (8) above, set the FIFO buffer slider controls to
the settings of : Input buffer: 3/4 scale, Output buffer: 1/3 scale (no higher, or you may get a “Buffer over-
flow” alarm with some CNCs). After these settings are made, click on “OK” several times until you return
to the control panel, then close the control panel window.
Once Windows is set to use the FIFO buffer. try again to receive data at a higher baudrate. If there
is no improvment in I/O performance, your PCs serial port probably does not have the required 16550
UART chip. In this case, the best (and cheapest) solution is to replace your PCs serial port with one having
this buffered UART.
Note on FIFO buffers with Winodws NT/2000: Turning the FIFO buffer checkbox ON will give better
performance, but may cause a “Buffer overflow” alarm on some CNCs. If you get this alarm, turn the FIFO
checkbox OFF.
C3
APPENDIX C (cont.)
Troubleshooting serial I/O problems
Notice that several possible settings on the CNC side are not included in this list. This is because they
are illegal settings. Do not set your CNC to any of the following combinations unless there is an
unusual reason for doing so:
C4
APPENDIX D
Machine Cycle Monitoring Option
As an optional software feature, PC-DNC plus can monitor your CNCs and record the time
and date of each cycle start and cycle end event. These events are recorded as ASCII text in a separate
file for each DNC window on your system. The same monitoring data is simultaneously saved in a
database file. PC-DNC Plus has 8 methods for recording these events:
1) By remote commands (Requires “User Macro” option, or equivalent on your CNC control.)
2) Using a barcode reader to scan labels for cycle status, operator status, part number, etc.
3) By drip-feeding programs to the control
4) By monitoring the CD (Carrier Detect) signal on your serial cable.
5) By monitoring the CD, DR, and CTS signals on a second (auxilliary) serial port
6) By monitoring input signals on an ADAM data acquisition unit
7) By direct Ethernet connections to Hitach Seiki UUP ports (see Appendix J in this manual)
8) Using the Haas serial machine data feature
You can select any of these 8 methods under the “Configure/IO commands” menu of the PC-
DNC Plus command window. Regardless of which method you choose, PC-DNC Plus will record the
cycle start and cycle end events in the same format. A file called “Monitor file for (machine name)” will
be created in the PC-DNC Plus directory, and ASCII data is as shown here:
You can use these data files for any purpose you choose, but the Machine Monitor option of
PC-DNC Plus also includes a utility program to analyze these files and extract the following information
for any time interval you want:
ODBC Database
In addition, these data are recorded in the database specified in the ODBC (Open Database
Connectivity) menu under the Windows “Control Panel/Administrative Tools/ODBC data sources”
menu. A wide variety of reports and analysis software is available from Refresh Your Memory, Inc.
(www.rym.com) to fully utilize these data.
D1
APPENDIX D
Machine Cycle Monitoring Option
Monitoring by Remote Commands
If your CNC controls have the ability to transmit serial messages automatically, you can pro-
gram your CNCs to send a “Cycle Start” message at the beginning of each cycle, and a “Cycle End”
message at the end of each cycle. For example, the popular Fanuc CNC contols have an optional
feature called “User Macro B”. Not all Fanuc CNCs have this feature, but it is available on most newer
model Fanucs and most Haas controls as an option from your machine tool builder, or from GE Fanuc
or Haas. If your CNC controls have this feature, you can use the “remote command” method of ma-
chine monitoring.
The remote command method requires that your CNC control transmit event messages to PC-
DNC Plus during the normal part cycle. This is done by either embedding a DPRNT command within
your program, or by calling a sub-program or macro that includes the DPRNT statement.
Shown here are two sub-programs that can be entered into your CNCs memory. By calling
these sub-programs at the beginning and end of each part program, you can record cycle start and cycle
end messages with PC-DNC Plus. This example sends the commands “BEGIN” and “FINISH”
O9001 ; O9002 ;
POPEN ; POPEN ;
DPRNT[BEGIN] ; DPRNT[FINISH] ;
PCLOS ; PCLOS ;
M99 ; M99 ;
To call these sub-programs in a typical part program, you can use an “M98Pxxxx” command,
or (optionally) you can assign a special G-code to each of these sub-programs. Shown here is an
example of the “M98” method:
O1234 ;
M98P9001 ;
(your program data here)
M98P9002
M30
Note: The actual command that is sent (in brackets, after the DPRNT statement), must match the text
that is entered on the PC-DNC Plus “Configure/DNC Windows/IO commands” menu as a remote
“Cycle start” and remote “Cycle finish” command. You can use any text that you like, but it must not
conflict with any of the other remote commands used for file requests, etc.
D2
APPENDIX D
Machine Cycle Monitoring Option
Monitoring with a Barcode Reader
Barcode readers can be used in a wide variety of ways with PC-DNC Plus. A
barcode reader that generates serial (RS232) data can be used to scan barcodes for
remote file requests, file upload requests, monitoring status commands, and for
recording time-stamped status messages within the PC-DNC Plus monitoring data-
base.
Perhaps the easiest type of barcode reader to use is a wireless (BlueTooth)
reader with an RS232 base station. The base station is wired to any serial port on
the PC-DNC Plus system, and that port can be used with “redirect” commands to
record information for any machine on the PC-DNC Plus system. One or more
wireless barcode readers can be used to service all the machines on the system.
To use a barcode reader, print up a set of placards with the desired barcodes
printed with a standard barcode font (Code39, Code128, etc.). The barcodes
must usually have a “prefix” and “suffix” character to denote the beginning and end
of the valid barcode text. These examples are printed in Code39 font for a
barcode reader using the “*” (asterisk) character as a prefix and suffix.
A set of remote commands are “hard coded” into the PC-DNC Plus soft-
ware. These commands can be used with an RS232 barcode reader, or with any
other RS232 device:
Command Action
APPEND- (filename) Opens a file and saves all subsequent data to that file
APPEND-T- (filename) Same as above, but data is saved with time stamps
APPEND-CANCEL Stops the file/save process and resumes normal operation
-BCM- Barcode prefix to identify machine tool position for tooling control
-BCT- Barcode prefix to identify tool presetter tag for tooling control
-TLW- Barcode prefix to report tool wear to tooling control system
The remote commands listed here are fixed, and do not need to be pro-
grammed into the PC-DNC Plus “Configure/DNC windows/IO commands” menu.
The commands programmed on that menu can also be issued with a barcode scan-
ner, but since they are programmable, we do not list them here.
D4
APPENDIX D
Machine Cycle Monitoring Option
When running in “drip-feed” mode, PC-DNC Plus already knows the time
and date of each cycle-start, because the cycle start time usually coincides closely
with the “Xon” control code that triggers a file transmission. Beware, however, of
the accuracy of the “cycle-end” events recorded in this manner, because some
CNCs run in DNC mode from a fairly large memory buffer. For most CNCs, this
is not a problem, but if your CNC has a large DNC buffer, beware that the cycle
end time recorded by PC-DNC Plus is the time that PC-DNC Plus finishes trans-
mission, and not the time that your CNC actually finishes its part cycle.
Machine status inputs can still be generated with a barcode reader. All you
need to do is scan a barcode that re-directs inputs to the desired machine, then scan
barcodes for “Setup”, “Maintenance” or “Lunch” or “Other-” modes.
D5
Machine Monitoring by DCD (Data Carrier Detect) Signals
Some CNCs have no macro DPRNT capability, and also do not run part cycles in “drip-feed”
mode. For these machines, a “hard-wired” signal is required so that PC-DNC Plus can recognize a
cycle start or cycle end event. The DCD signal (Data Carrier Detect) is usually not used for RS232
communications, and is available on pin #8 of any standard 25-pin serial plug, or on pin #1 of a 9-pin
serial plug.
Before connecting the DCD signal for monitoring, we highly recommend that you obtain the
schematic wiring diagrams for your CNCs machine operator’s panel, or obtain the technical assistance
of your machine tool builder. If you are in any doubt about wiring these signals, DON’T DO IT ! It’s
possible to damage your PCs serial port, (or your CNC interface) with an improper connection.
Some important notes about the DCD signal on your serial port: This signal must be provided
with a + 5v to +24v DC signal in before PC-DNC Plus can recognize is as an “on”, or “in-cycle” state.
Also, it must be provided with a minus 5v to minus 24v DC signal before PC-DNC Plus will recog-
nize an “off” or “out-of-cycle” state. A voltage between +3 VDC and -3 VDC will not be recognize by
the serial port as a valid signal, so PC-DNC will not see the signal change state.
Most CNCs provide only a +24 DC signal to indicate an “in-cycle” condition. This signal is
usually provided to power an “in-cycle” indicator lamp on the machine operator’s panel. If we attach
the DCD signal to this +24 VDC signal directly, the DCD input will be set to an “in-cycle” state, but
when the 24 VDC signal goes off (0 VDC), it will not be provided with the necessary minus voltage to
change it to an “out-of-cycle” state. Consequently, some additional wiring is needed to provide a minus
voltage when the CNCs +24v signal goes off.
For this type of machine monitoring, PC-DNC Plus will maintain a minus (off) output to the
serial port’s DTR signal (pin #20). This negative output can be used to hold the DCD signal at a nega-
tive (off) level until the CNCs in-cycle (+24 v) signal pulls it to a positive level. This provides the correct
positive voltage in the “in-cycle” state, and the correct minus voltage when the CNCs +24v signal turns
off.
D6
APPENDIX D
Machine Monitoring using a second serial port
In some situations, it may be necessary to monitor more than just one signal
from the CNC control. The DCD signal on the main (DNC) serial port is suffi-
cient for simple “Run/Stop” cycle monitoring, but you may also want to monitor
things like a barfeeder empty switch, an alarm signal, or an E-stop signal as well.
For this reason, PC-DNC Plus supports the use of a second serial port.
By clicking on the “Details” button for the second serial port option, you can
specify a monitoring action for each of the three input signals on an auxilliary serial
port.
You must first specify the COM port number of the serial port, which must
be a port that is not used for any other purpose on the DNC system. This second
serial port is then held open, and PC-DNC Plus monitors the status of these signals:
D7
APPENDIX D
Machine Monitoring using a second serial port (cont.)
When any of these 3 signals changes state (from low to high, or high to low),
the action you specify is carried out. These actions are:
1) Any text message that you specify is added to the file named “Monitor data file
for (machine name)”, and the same text message appears underneith the machine’s
icon in the PC-DNC Plus monitoring screen.
2) The Icon color in the PC-DNC Plus monitoring screen can be changed to Blue
(ready), Green (Running), Red (Alarm or E-stop), Yellow (Paused), or Grey (Dis-
connected)
3) The machine’s cycle status in the PC-DNC Plus machine list is changed to match
the cycle status of the Icon.
5) By configuring the PC-DNC Plus E-mail option, you can trigger an e-mail alert to
any recipient, or to any group of recipients.
D8
APPENDIX D
Machine Monitoring using the ADAM
Data Acquisition Module
The ADAM data acquisition module is an Ethernet device that can be in-
stalled in almost any CNC. When connected to I/O signals inside the CNC, the
status of those signals can be displayed on the PC-DNC Plus monitoring screen.
Each of the 8 input signals (DI0 through DI7) can be individually configured for
machine monitoring using the ADAM “Details” menu on the “Configure/DNC
Windows/IO commands” menu
When any of these 8 signals changes state (from low to high, or high to low),
the action you specify is carried out. These actions are:
1) Any text message that you specify is added to the file named “Monitor data file
for (machine name)”, and the same text message appears underneith the machine’s
icon in the PC-DNC Plus monitoring screen.
2) The Icon color in the PC-DNC Plus monitoring screen can be changed to Blue
(ready), Green (Running), Red (Alarm or E-stop), Yellow (Paused), or Grey (Dis-
connected)
D9
APPENDIX D
Machine Monitoring using the ADAM
Data Acquisition Module (cont.)
3) The machine’s cycle status in the PC-DNC Plus machine list is changed to match
the cycle status of the Icon.
5) By configuring the PC-DNC Plus E-mail option, you can trigger an e-mail alert to
any recipient, or to any group of recipients.
In addition to the 8 input signals, the ADAM module also provides two digital
outputs named DO0 and DO1. These outputs can be used to control the “Memory
Protect” key switch input of the CNC control. In those applications where editing
of files at the CNC is restricted, you can use the outputs of the ADAM unit to lock
the memory editing of the CNC control from the DNC system. File downloads to
the CNC and file editing on the CNC is then restricted unless a file is queued for
output to the CNC.
D10
APPENDIX D
Machine Monitoring using the Haas Machine Data Collect feature
Many Haas controls have an optional feature called “Machine Data Collect”.
This feature is enabled by pressing the “Setting” button on the CNC and paging
down to setting # 143 for “Machine Data Collect”. Use the right-cursor key to
toggle the setting to “ON”, and press the “Write” key to save that setting. At the
same time, be sure that setting # 187 for “Machine Data Echo” is turned “OFF”.
With the Haas Machine Data Collect feature turned on, you can then enable
the Haas monitoring protocol in the “Configure/DNC windows/IO Commands”
menu. Just select the “Haas protocol” option button to enable the feature.
When PC-DNC Plus is monitoring the Haas control with this protocol, the
DNC window is transmitting a query command to the Haas every 1/2 second. The
Haas responds with a status reply, which is reported to the ODBC database file. If
the query does not receive a reply, the machine status is assumed to be “Discon-
nected”, and the query frequency is reduced to 20 seconds.
The Haas machine data feature can report that the machine is “in cycle”
running a specific part number, or it can report that the control is in an alarm state
(E-stop), or that it is in “Paused” state (Feed hold). These status replies are auto-
matic, and do not require any special programming or signal interfacing.
Machine status inputs can still be generated with a barcode reader. All you
need to do is scan a barcode that re-directs inputs to the desired machine, then scan
barcodes for “Setup”, “Maintenance” or “Lunch” or “Other-” modes.
D11
APPENDIX D
Analyzing Your Machine Monitoring Data
A utility program called “Cycle_time.exe” is provided with the PC-DNC Plus Machine Moni-
toring option. This utility can be launched from the “Graph Machine Activity” button on the PC-DNC
Plus command window’s toolbar.
The Cycle_time utility program lets you enter the date and time period that you want to analyze,
and displays the data that PC-DNC Plus has collected in the following form:
For convenience, a “Shift” input box is provided, which presets the time inputs to the standard
time windows for 1st, 2nd, and 3rd shifts, respectively. A checkbox to “Allow 45 min. downtime”
automatically factors in a 1/2 hour lunch period and a 15 minute break period into the “Percentage
uptime” calculation. With this 45 minute allowance, it is possible to obtain 100% uptime when the total
“in-cycle” time is 45 minutes LESS than the length of the selected shift.
To print out this cycle time report, click the “Print” button. A graphic dump of this form will be
sent to your default Windows printer. Note: This printout will not appear correctly on printers without a
graphics mode capability.
Note: This function uses only the ASCII text files that record part cycle activity. While this feature may
provide useful cycle analysis, we highly recommend that you use Microsoft Access or a similar database
program to open and analyze the ODBC database file instead. A full suite of reports are available from
Refresh Your Memory, Inc. (San Jose, CA). Please visit www.rym.com for more information on the
reporting software.
D12
APPENDIX E
Automatic Paging Option
PC-DNC Plus is available with an optional automatic paging function. This option lets you send
a page to any standard numeric pager when a predefined set of conditions exist. When PC-DNC plus is
equipped with the paging option, a toolbar button marked “Pager” will appear. This toolbar button
opens the paging menu shown here:
Pager toolbar button
The paging menu lets you select up to 128 “page index” numbers, shown here in the upper left
corner of the menu. Each page that you program has its own unique index number. By changing the
index numbers, you can program up to 128 different paging scenarios, each of which can have its own
pager number, message, trigger conditions, etc.
The conditions that trigger a page are selected using one of the 7 option buttons. Conditions
listed on the left side of the menu will trigger a page that sends a “fixed” message, which is manually
entered in the “message” text box. The paging conditions listed on the right trigger “variable” messages,
such as a parts cycle count or a CNCs status. These variable messages are programmed to be issued
automatically at a predefined time-of-day.
When programming a page, it is a good idea to use the “Test Send” button. This button will
issue the page that you’ve programmed immediately, so that you can confirm that your pager settings are
correct.
E1
APPENDIX E
Automatic Paging Option (cont.)
If your PC has an internal modem, it probably has an internal COM port designation. In most
cases, you can find this COM port designation using your Windows Control Panel icon labeled “Mo-
dem”. If such an icon does not exist, use your “System” icon, and use the Windows Device Manager to
find your internal modem port and settings.
Most newer modems can automatically adjust to any baudrate setting. Older modems may have
a DIP switch to set a fixed baudrate. In any case, you must know what baudrate that your modem
requires before you can procede. The modem settings used by PC-DNC Plus’s paging function are set
using the “Modem Settings” button on the paging menu. The following menu will appear, which lets you
select a COM port, baudrate, and “stop-bits” setting to match your modem’s requirements.
Also included on the modem settings menu is a text box for a “Modem configuration string”.
This is a string of characters transmitted before each page. This string can consist of a standard modem
“AT” command, or any other string that you wish to transmit before each page.
Once your modem baudrate, stop-bits, and COM port are selected, click the “Apply” button to
save these settings. No further modem settings should be necessary.
While your PC-DNC Plus paging system is in operation it is essential that no other programs be
permitted to access the modem, or the modem’s assigned COM port. If you have programs for E-mail,
Internet access, or FAX, make sure that they cannot interfere with the PC-DNC Plus paging system. In
most cases, it is advisable to use a separate modem for the PC-DNC Plus paging system to avoid such
hardware conflicts.
E2
APPENDIX E
Automatic Paging Option (cont.)
The PC-DNC Plus paging function waits for a predefined “trigger” condition, then it opens your
modem’s COM port and performs the following sequence:
The paging sequence above can be used with most numeric pagers. This type of output is done
entirely with the modem’s “ATDT” command, which simulates the numeric output of a touch-tone
phone. At no time does the modem actually “connect” with another modem.
Text paging usually requires special text paging software, and can be provided to PC-DNC
Plus users on request. Text paging software may require some customization, since the text paging
protocols are not standardized coast-to-coast. If you have a special text paging requirement, we’ll be
happy to provide customized software for your application. Please send all available information on your
paging system’s text protocol to:
When sending a page, it is often necessary to pause after dialing the pager phone number for a
few seconds. This time delay may be longer if your pager also has a voice messaging service. Fre-
quently, you must wait until a voice mail greeting message is received, and the paging service “beeps”,
permitting you to enter a numeric message. Each paging service will be slightly different, so the PC-
DNC Plus paging system lets you program a time delay (in seconds) after dialing your pager’s primary
phone number. With some paging services, it may also be necessary to enter a second access number
before transmitting your message. For these systems, a second access number and time delay can be
entered, resulting in a “dial/wait/dial/wait/send message” sequence.
If you are unsure of the time delays necessary to program your paging sequence, use a standard
touch-tone phone to dial your pager, and use a stopwatch to measure the time interval between the
initial dialing and the “beeps” that indicate that it’s OK to send your message.
E3
APPENDIX E
Automatic Paging Option (cont.)
When programming a page, the following options are available as a trigger event:
3) If the selected machine has been idle for more than (n) minutes
This function triggers a page if the selected machine is in a “cycle end” condition for a preset
period of time. If, for example, the time interval is set to 20 minutes, no page will be issued until a 20
minute period has elapsed since the last “cycle end” event, and no subsequent “cycle start” event has
occurred. The maximum programmable time interval is 120 minutes, or 2 hours.
E4
APPENDIX E
Automatic Paging Option (cont.)
E5
APPENDIX F
In-Process Gaging Option
The PC-DNC Plus in-process gaging option lets you connect up to 128 gaging devices, each of
which can then be programmed to automatically update a machine’s tool offset as required. Any one of
PC-DNC Plus’s DNC windows can be designated as a “Gaging” port, which is used for gage data
collection. It is assumed that the gaging device has an RS232 (serial) output, which can be used to
transmit a number when a part measurement is made. In-process gaging is basically a four step process:
F1
APPENDIX F
In-Process Gaging Option (cont.)
where on a similar Fanuc control running a mill, the correct offset command might be:
In each case, the offset command consists of a string of characters, followed by the calculated
offset value, followed by another string of characters. If you are unsure of your CNCs offset command,
please refer to your CNC control’s operators manual for more information.
The PC-DNC Plus gaging menu contains a text box for entering the data before your formatted
offset value, and another text box for the data after the offset value. This offset string is then stored in a
file called “Gage offset from (machine name)”. This file will always consist of just one line (block) of
data. If a new offset command is created, it will replace the old command, even if no CNC machine has
CALLed this previous offset command. The “Gage offset from (machine name)” file will always contain
the most recently calculated offset command.
placed in your program will merge the gage offset command generated by the DNC window called
“CALIPERS” . The major difference between CALLing an NC data file, and CALLing a gage offset
file is that the gage offset file is destroyed once it is called. Since the gage offset command can only be
called once, it cannot adversly affect your machining operation by changing the CNCs offset a second
time. If your CNC trys to call a gage offset file that does not exist, a message “(NO GAGE OFFSET)”
is merged into your file instead. On the following page are some short sample programs illustrating how
a tool offset file can be called.
F2
APPENDIX F
In-Process Gaging Option (cont.)
When CALLing a gage offset file, it is important to note that there are several differences
between a calling gage offset file and calling a normal sub-file. Here is a brief list of the differences:
Notice that an offset file can only be CALLed from within the PC-DNC Plus DNC window. A
“CALL” statement causes PC-DNC Plus to merge the data as it is transmitted. If you are running in
“drip-feed” DNC mode, the CALL statement can merge a new tool offset command on every part
cycle, resulting in a tool offset that is updated on every cycle. If, however, you are running from your
CNCs memory, a new tool offset command will only be merged each time you download a new
program from PC-DNC Plus.
WARNING: Be aware that if you download a file to the CNC that contains a CALLed tool offset
command, PC-DNC Plus cannot prevent the command from being executed more than once. If you are
downloading files to your CNC for operation, we strongly recommend that you only use absolute (G90)
offset commands, rather than incremental (G91) offset commands. An absolute command will not
change the CNCs offset more than once, where an incremental offset will.
In the program example shown here, a tool offset file for a Fanuc mill is merged. Notice that you
must specify the G90/G91 status that you want to use on the block after the offset command. Other-
wise, a “G91” or “G90” in the offset command may affect subsequent blocks of your program.
F3
APPENDIX G
PC-DNC Plus Security System
PC-DNC Plus is available with a comprehensive Longon/Logoff security system. This security
system can be used to selectivly restrict the PC-DNC Plus command window controls that individual
operators can use. It can also be used to restrict operators to the manual control of only certain speci-
fied machines. In addition, a record of each significant manual control event is recorded in a file called
“SECURITY.LOG”. This .log file records the event, the time & date, and the logged-on user’s name
whenever a PC-DNC Plus manual control event occurs.
When PC-DNC is first installed, the security system is usually disabled. When disabled, PC-
DNC Plus will not require any passwords, and will permit any user to use any manual control. The
security system can be disabled by changing the “Administrator” password to “No Security”. This
special password is case-sensitive, so you must enter a capital “N” on the word “No”, and a capital “S”
on the word “Security”. Any administrator password other than “No Security” will enable the security
system, and PC-DNC Plus will require each user to “Log on”. After loggin on, each user will be re-
stricted to only those privileges assigned to that user name.
All passwords, user names, machine names, and user privileges are entered with a special
program called “Security Manager”. The Security Manager can be launched from the PC-DNC Plus
pull-down menu called “Security”. The Security Manager will display the menu shown below.
G1
APPENDIX G
PC-DNC Plus Security System (cont.)
User Names
The PC-DNC Plus Security System will always have a default user name “Administrator”,
which cannot be deleted. Additional user names can be entered into the text box in the upper-right
corner of the Security Manager menu. Up to 128 unique user names are permitted. All user names are
case-sensitive, so be careful to enter capital and lower-case letters correctly. Normally, it is not neces-
sary for operators to type in an exact match of the user name, since these names are always available in
a “pull-down” list. Passwords, however, do not appear in a pull-down list, so each operator must know
the exact way to type in his or her own password.
Passwords
Passwords must be entered twice to insure accuracy. When you enter the desired password in
the “Enter password” box, you must also enter the same password again in the “Confirm password”
box. An error message will occur if these two entries do not match. As you enter passwords, the
characters you type are always displayed as an asterisk ( * ), so that anyone peeking over your shoul-
der would not be able to see what you’ve typed. When entering a password, pay careful attention to
the status of your “Caps-Lock” key. If Caps-Lock is turned on, your password might be entered
differently than you want, and matching it later will become difficult.
G2
APPENDIX G
PC-DNC Plus Security System (cont.)
Logon Requirements
When the PC-DNC Plus security system is enabled, PC-DNC Plus requires that someone be
logged on before any manual operations can occur. When no one is logged on, all manual operations are
locked. Attempting to perform any operation will generate an error message:
To log on, use the pull-down “Security” menu, and click on the “Log on” selection. A password
entry dialog will appear, permitting you to select any of the established user names from a pull-down list.
You must then type in the correct password assigned to that user name.
Once a user has logged on, user’s name will always be shown on the PC-DNC Plus title bar.
To log off, All you need to do is select the “Security” pull-down menu and click on the “Log off”
selection. Logging on as the Administrator always gives the operator full access privileges to all ma-
chines. Logging on under any other user name may restrict access as defined in the Security Manager
menu. An operator who attempts to perform arestricted operation (or perform a permitted operation on
a restricted machine) will receive one of the following error messages:
G3
APPENDIX H
Client/Server operation
PC-DNC Plus is normally used as a “server”, which means that the serial ports connected to
the CNC machines are logical COM ports on the server PC. A special “client” version of PC-DNC
Plus is also available, which lets you control the DNC system from another location on your network.
PC-DNC Plus Client has the same command window controls as the PC-DNC Plus server, but since
there are no direct connections to the COM ports, all communications between the client and the server
are done by transferring “message” files through your network.
You can install multiple clients on your network, as well as multiple servers. Each server is
asigned a unique name, and each client on your network can “connect” with any server that is currently
running. Up to 128 server names can be assigned on each client, and up to 128 clients can “connect”
simultaneously with each server. Each server is provided with a “client license”, which permits a speci-
fied number of clients to connect with it. Consequently, any client on your network can connect with any
server that is currently connected with fewer clients than it is licensed to use. This is sometimes referred
to as a “floating” client license.
When a PC-DNC Plus client is installed, you must configure it so that it can communicate
properly with each server on your network. Under the client’s “Configure” menu, there are some
additional selections that are critical to the proper operation of the client. In the first selection, you must
specify a network path where the server is located. This path can be any “mapped” drive letter or URL,
and must be accessible to the client PC (so the client can read from and write to the server’s directory).
The second configuration selection is a drive letter/URL cross-reference table. This cross reference is
required because the client must be able to cross-reference all drive letters and/or URLs so that it can
properly pass file names to the server.
The client’s “Configure” menu contains the three additional selections shown here. The “Set path
to server” selection is used to specify the server’s location on the network. The “Set client/server
drives” selection is for drive letter/URL cross referencing. The “Connect to PC-DNC server” selection
is used to select which server that this client is connected to.
H1
APPENDIX H
Client/Server operation (cont.)
When you click on the “Set path to server” selection, the menu shown below appears. This
menu will also appear automatically if no server path has been set.
With the menu shown above, select a server number (1 through 128), and enter a server name.
There is no restriction on how you name the servers, but to avoid confusion, each server should have
the same name on all clients. Once a server number and name are entered, use the drive and directory
listboxes to select the complete path to the server, then click “Apply”. If you have more than one
server, you can use this menu to assign unique numbers, names, and network paths to each server. You
can then connect to anyone of these servers using the “Connect to server” menu.
Even if you have only one server running on your network, it is still required that you set a server
path. When only one server path is configured, the client will default to that one server, and try to
connect to it automatically on power-up.
Once the client can “see” the server, it reads in the server’s .KEY file, to find out how many
COM ports the server is licensed to use. It also reads in the list of machines that are configured on that
server, along with all the machine’s IO directory information.
H2
APPENDIX H
Client/Server operation (cont.)
The second thing you must set on the client is under a Configure menu called “Set client/server
drives”. This menu has two text boxes that let you set up a drive letter (or URL) cross reference table.
In our example shown below, drive “C:” on the server is referred to as drive “F” on the client. Conse-
quently, this menu requires that you enter “F:=C:” in the left-hand box, and “C:=F:” in the right-hand
box. If the server is also using it’s drive “D” mapped as drive “G” on the client, you will have to enter
“G:=D:” in the left box and “D:=G:” in the right box. If the server is accessing a network drive (on a 3rd
PC) that is called “H:” on the server, the client may also see this network drive as “H:” In this case, enter
“H:=H:” in the left box and “H:=H:” in the right box.
This drive cross-reference table can also accept URLs instead of “mapped” drive letters. If
drive “C:” on the server is called “\\Server\DriveC” on the client, then enter “\\Server\DriveC=C:” in the
left box, and “C:=\\Server\DriveC” in the right box.
The drive letter/URL cross-reference table is required so that each client can refer to the same
files using the proper paths. If you use the server to queue up a file to a machine, you might select
“C:\Programs\1234”. If you are on the client PC, and you queue up a file from your own drive “C”, it is
not the same file as the one on the server’s drive “C”. Consequently, you have to queue up
“F:\Programs\1234” on the client to get the same file as the one on the server’s drive “C”. If this cross-
reference table is set correctly, all the files and subdirectories that appear on the PC-DNC Plus (client)
screen should be the exact same files that appear on the server’s screen. Once properly configured, the
drive letters and URLs will be translated automatically by the PC-DNC Plus Client.
H3
APPENDIX H
Client/Server operation (cont.)
Once a server path has been established, and the drive/URLs have been properly cross-
referenced, the PC-DNC client should be able to “connect” with the server. The following conditions
must be met before a client can connect to a server:
The menu shown below lets the client’s user connect with any server that is currently running
(and configured) on the network. This menu lets you select a server by it’s assigned name.
Each client that connects with a server must have a “client license” available on the server. Each
server is “licensed” to permit a certain number of clients to connect simultaneously. This licensing
strategey is frequently called a “floating license”.
When a client tries to connect with a server, the server will reject the client’s connection if too
many clients are already connected. Each server can be licensed for up to 128 clients to be connected
simultaneously.
On startup, the client will automatically attempt to connect to the server that it was last con-
nected to. When starting the PC-DNC Plus Client for the first time, you may have to manually connect
to a server after the server path has been configured.
H4
APPENDIX I
PC-DNC Plus Cell Controller Option
PC-DNC Plus can be used to control a flexible manufacturing cell with a
“Cell Controller” option. Any DNC window on the PC-DNC Plus system can be
programmed to queue files based on a switch input from cell’s pallet shuttle. Nor-
mally, a pallet shuttle identifies itself to the CNC using a set of binary or BCD (Bi-
nary Coded Decimal) switches. When a pallet is loaded onto the machine’s table, a
set of switches on the machine detect a unique combination of inputs from the
pallet, and the CNC is supposed to run a part program that is related to that binary
or BCD code.
Most flexible cells require that the part programs for all the pallets be con-
tained in the CNC’s memory, so that they can be selected by the pallet shuttle. This
usually requires a very large memory in the CNC, or severely limits the length of
files that can be run on the cell at any one time. The PC-DNC Plus cell controller
option eliminates the need for a large CNC memory by enabling the pallet shuttle to
request the (n)th file directly from PC-DNC Plus file queue list.
To use the cell controller option, a separate utility program called “PC-DNC
Plus IO module” is required. This small application can be installed on any PC
connected to your network, or it can be installed on the PC-DNC Plus server or
client PC. This module has only the following main menu:
I1
APPENDIX I
PC-DNC Plus Cell Controller Option (cont.)
The PC-DNC Plus IO module is designed to monitor the switch input signals
from the pallet shuttle and store a decimal number into an “IO_data” file. When the
IO module is running, it samples the switch signals every 250 milliseconds, converts
the binary switch inputs to either an 8 or 16 bit (binary or BCD) number, then stores
the number in a file in the specified location. This file then provides PC-DNC Plus
with a current “reading” of the pallet shuttle switches.
The IO module must be running on the computer that is physically wired to
the pallet shuttle’s switches. The switch signals can be wired to nearly any kind of
data acquisition IO board, or even to standard parallel printer (LPT) ports. For 16
bit binary or 4-digit BCD operation, you must specify both a “low byte” and a
“high byte” address for these input signals. For 8 bit binary or 2 digit BCD inputs,
only the “low byte” address is required. The high and low byte addresses do not
need to be contiguous.
The IO module calculates a decimal number from the switch inputs every 1/4
second (250 ms), and writes this number into a file called “IO_data” in the directory
that you specify. This file is updated if the computed value changes, or if some
other application on the network deletes the previously stored IO_data file.
Once the IO module is running (and writing its output to the target directory),
you must configure the DNC output window to “look” for this IO_data file in the
same directory. Use the PC-DNC Plus “Configure/IO commands” menu to specify
the same directory that the IO module is writing to.
Note: If you “map” drive letters, you may have to enter a different drive
designation on the PC-DNC Plus server than you would on the IO module’s com-
puter.
When operating as a cell controller, the DNC output window reads from the
IO_data file each time a part program is transmitted to the CNC. When a selected
program is completed, PC-DNC Plus reads the switches and queues the (n)th file
from the queue. If the number in the IO_data file is invalid, or if this number differs
from the queued program number at the moment PC-DNC Plus receives an Xon
signal from the CNC, no data is sent to the CNC and an alarm is generated.
I2
APPENDIX J
Hitach-Seiki Flexlink (UUP) Option
Description
PC-DNC Plus provides comprehensive support for the Hitachi Seiki Flexlink
interface. This proprietary interface lets PC-DNC Plus communicate with multiple
CNCs using an Ethernet connection. Once connected, PC-DNC Plus lets you
perform the following operations:
With the PC-DNC Plus Machine Monitoring option, you can also:
1) Display a group of color-coded icons that indicate the status of each machine
2) Display a detailed machine status report of any selected machine
3) Analyze the number of cycles and calculate a variety of part cycle statistics
With the Hitachi Seiki Flexlink Text option installed on the CNC, you can also:
1) Report CNC status using the “Seiki Flexlink Text” screen (see page J18)
2) View operator’s messages, setup sheets, tooling lists and automatically down
load “batches” of files using the Seiki Flexlink Text screen (see page J18)
J1
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
Installation
PC-DNC Plus can communicate with Hitachi-Seiki machines that use the
SEICOS Sigma 16/18/21controls. These controls are equipped with an optional
port called “UUP” (Universal User Port). The UUP port uses an RJ45 connector
on the CNC, and communicates with the PC-DNC Plus system through a standard
network cable. A single CNC can be connected directly to a network card on your
PC-DNC Plus computer, or several CNCs can be connectd to PC-DNC Plus using
a network hub. PC-DNC Plus will also communicate with RS232 equipped CNCs
at the same time. The UUP machines and RS232 machines can be listed in the PC-
DNC Plus IO device list in any order.
The PC-DNC Plus Flexlink option requires two additional files. These files
can be installed using a separate install program (to upgrade an existing PC-DNC
Plus system), or they can be installed along with the PC-DNC Plus server software.
The required files are:
Once these files are installed, you must also be licensed to use the UUP ports
before PC-DNC Plus will open them. To license the required number of UUP ports,
contact Refresh Your Memory, Inc. for the correct CUSTOMER.KEY license
file.
After these files are in place, use the PC-DNC Plus “Configure” menu to set
up each machine’s UUP port. The Configure/UUP port menu is shown on the
following page.
J2
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
Installation
The menu shown below is opened by clicking on the PC-DNC Plus “Config-
ure” pull-down menu and clicking “Hitachi-Seiki UUP port”.
To add a UUP port to PC-DNC Plus, enter a machine name (up to 10 char-
acters long) into the textbox in the upper right called “Add to list”. When you press
ENTER, or click on the “Add to list” button, the name will be added to the PC-
DNC Plus IO device list. For all UUP ports, the suffix “(UUP)” is automatically
added to the end of the machine name.
The most important setting for the UUP connection is the IP address. This
address must be unique for each CNC machine, and must match the IP address
used internally by each CNC. The factory default setting for Hitachi Seiki SEICOS
controls is
IP address: 126.0.0.31
Mask: 255.0.0.0
UUP port numer: 8193
J3
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
Installation
When connecting a second UUP machine, the IP address should be set to
126.0.0.32. The third machine should be set to 126.0.0.33, etc. The recommended
setting for the PC-DNC Plus server’s TCP/IP protocol is:
IP address: 126.0.0.30
Subnet Mask: 255.255.255.0
Default gateway: 126.0.0.1
Note: When operating as part of a larger network, check with your network admin-
istrator to be sure these addresses don’t conflict with other devices on your net-
work.
J4
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
Installation
Gage devices to watch for in-process gaging
The in-process gaging option lets you program scenarios for automatically
updating a CNC tool offset. When a CNC control is connected to PC-DNC Plus
with an RS232 port, you must use a “CALL” statement in your part program to
update a tool offset file while running in drip-feed mode. For UUP equipped CNCs,
the tool offsets can be updated by PC-DNC Plus (through the UUP port) automati-
cally whenever the CNC finishes a part cycle. This text box lets you define which
RS232 devices to monitor for a tool offset update. This device name must be the
same as the one defined in the PC-DNC Plus “Gaging” menu.
Refer to Appendix F for more information on the in-process gaging option.
J5
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
Installation
Permit CNC operator to select files on more than one page (checkbox)
When checked, the CNC operator can select a file in the PC-DNC directory
list, then PAGE or SCROLL to the next page, and select more files. With multiple
files selected, the operator could upload/download, or delete ALL the selected files
in one operation. When this checkbox is not checked, the selected files are auto-
matically de-selected when you PAGE or SCROLL to a different page of the direc-
tory. This would prevent you from accidentally deleting or transferring files that are
not currently visible on the CNCs screen.
J6
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
Installation
Permit CNC operator to transfer programs between O8000 and O9999
When checked, the CNC operator can transfer files that have O-numbers
between 8000 and 9999 from the CNC keyboard. When not checked, the operator
cannot upload, download, or erase these programs. A complimentary setting is also
found in the CNC’s “setting” page, which prevents you from editing or erasing
these programs in the CNC memory. To completely protect programs in this range,
un-check this box, and also set the associated CNC setting to edit these programs
to “invalid”.
Permit CNC operator to select any directory with the PATH SET key
Permit selection only of directories in the TX directory list (recommended)
Do not permit operator to select directories with the PATH SET key
The PATH SET key on the CNC’s UUP I/O screen will let you enter a direc-
tory path for file transfers. These options let you restrict the directory selections
that are available to the CNC operator. We highly recommend that the second op-
tion be used unless you have good reason to use one of the other two options.
WARNING: Option #1 lets the CNC operator erase or alter ANY file on the
PC-DNC computer or the network drives that PC-DNC Plus has access to. Do not
use this option unless you also protect your critical data and your system directo-
ries with other file access security methods.
When saving files from the CNC, save them in the selected directory
When saving files from the CNC, save them in the specified RX directory
When the CNC operator uses the “UUP OUT” button to save a file on the
PC-DNC Plus system, you can select which directory that PC-DNC Plus uses to
store the file. The “selected” directory is the directory currently displayed on the
CNC screen. The “specified” directory is the directory entered under the “Config-
ure/IO directories” menu for files received.
J7
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
Operating Flexlink from the PC-DNC Plus computer
PC-DNC Plus lets you can select any machine configured on your system by
clicking on the machine name in the upper-left area of the screen. When an Hitachi
Seiki UUP machine is selected, the toolbar buttons on the bottom of the PC-DNC
Plus will change to show the UUP I/O functions, and a directory of files on the
CNC are shown in the lower left text box.
You can display the CNCs program directory, tool offsets, macro variables,
or system parameters by clicking the appropriate panel at the bottom of the PC-
DNC Plus screen. To save these data, click on the SAVE panel, and enter a file
name for data storage.
J8
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
J9
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
J10
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
Establishing a Job List
PC-DNC Plus lets you define a list of up to 128 “Jobs” for each Hitachi Seiki
machine. Using the the “Job List” pull-down menu on the PC-DNC Plus main
screen, you can open the “Edit Job List” menu shown below.
As soon as a job is entered into the Job List, the CNC operator will immedi-
ately be able to view the information on the CNCs “Seiki Flexlink Text” screen.
Each job consists of a “Job Name”, an “Operators message” and three associated
files for tooling information, setup instructions, and a list of part program files
required to complete the job.
The initial display on the CNC will show the “operator’s message”, but the
CNC operator will also be able to display and page through the 3 associated setup
files. The “Number of parts required” is used to preset the CNCs Work Counter.
See page J18 for a more compete description of the CNCs Flexlink Text screen.
J11
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
Displaying a Job History
You can view a combined list of the jobs scheduled as well as the jobs com-
pleted for any Hitachi Seiki machine. Use the PC-DNC Plus “Job List” pull-down
menu to open the “Job History” menu shown here.
The “parts completed” shown for the current job is dynamic, and will be
updated on a 3-4 second interval. The parts count for the scheduled and the com-
pleted jobs is static.
You can delete jobs that have been completed from the Job History list by
highlighting the job name and clicking the right-mouse button. A popup “Delete”
option will let you selectively delete any of the FINISHED job listings. The current
job and the pending jobs in the job list cannot be deleted with this menu. To delete
or alter the current of pending jobs, use the Edit Job List menu shown on the previ-
ous page.
J12
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
Using the UUP I/O screen
O1234
N001
DATA IN/OUT V2.13
IN/OUT DATA PROGRAM WORK TOOL PROGRAM LIST
PARAME COMMON 1000 1020 1021
1022 1030 1032
C10-000-001 A00 M30 T00 V00 C000 2045 2050 5545
DIR[C:\PC-DNC PLUS ] 7000 7001 7002
<..> <SUBDIR1> <SUBDIR2> 7003 9001 9002
O1586 O1588 O1589 9020 9021
O2000 * O2001 O2002
O5523 O6000 O7000
O7001 O7002
OPER F1 F2 F3 F4 F5 F6 F7 F8 F9 F10
RETURN
MAINTE POS. PRGRM TOOL WORK SET GRAPH. IN/OUT SEL/FUNC
The UUP I/O screen is displayed by pressing the F8 (IN/OUT) key, then
selecting the “UUP INOUT” function key (F10).
When the PROGRAMS file type is selected, you can transfer part program files
from the CNC memory to PC-DNC Plus and from PC-DNC Plus to CNC memory.
When any of the other four file types are selected, you can transfer these data to a
file in the PC-DNC Plus system, or you can read-in a suitable file from PC-DNC
Plus.
J14
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
Operating Flexlink I/O from the CNC panel (cont.)
J15
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
J16
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
J17
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
Using the Seiki Flexlink Text screen
Jim:
This is a RUSH JOB! Tell Frank to cut 300 pieces from the 4140 rectangular bar
stock right away.
While he’s cutting the stock, set up the Hitachi Seki and get all the tooling set. You
should be able to start this run by the time you go home. If you need some overtime
on this, I’ll OK it with the boss.
We’ll have Sammy run these on second shift, then he can tear-down the setup so
you can resume running the valve bodies tomorrow. Call me at 2454 if you have
any questions.
Nancy
1234567890
1234567890 1234567890
1234567890 1234567890
1234567890 1234567890
1234567890
Main
1234567890
Tool Setup File 1234567890
Normal
1234567890
Setup Maint. Lunch Other Job
1234567890
M e n u List
1234567890 Sheet List 1234567890
Mode
1234567890 Mode Mode Break Done
OPER F1 F2 F3 F4 F5 F6 F7 F8 F9 F10
RETURN
MAINTE POS. PRGRM TOOL WORK SET GRAPH. IN/OUT SEL/FUNC
There are two groups of function keys on the Seiki Flexlink Text screen.
Keys F1 through F4 are used to display text information from the PC-DNC Plus
“Job List”. Function keys F5 - F10 are used by the operator to report the produc-
tion status of the machine. One key from each group will be highlighed at all times.
J18
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
J19
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
Operating the Seiki Flexlink Text screen at the CNC
J20
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
Using the Seiki Flexlink Work Counter
WORK COUNT
SET : 350 pc.
CURRENT : 25pc.
TOTAL : 0pc.
AMOUNT TIME
OPERATE : 1 3 Hour 5 2 M. 4 4 S.
RUNNING : 0 Hour 4 9 M. 3 2 S.
CUTTING : 0 Hour 4 2 M. 1 3 S.
/1 /2 /3 /4 /5 /6 /7 /8 /9 /0
OPER F1 F2 F3 F4 F5 F6 F7 F8 F9 F10
RETURN
MAINTE POS. PRGRM TOOL WORK SET GRAPH. IN/OUT SEL/FUNC
The SET value is automatically preset by PC-DNC Plus whenever a new job
is selected from the job list. This number is initially set to match the “parts re-
quired” number entered in the job list. The CNC operator can manually input a new
SET value if necessary. The PC-DNC Plus operator can also manually override this
value from the machine monitoring screen using the “machine details” menu.
J21
APPENDIX J
Hitach-Seiki Flexlink (UUP) option (cont.)
Using the M298 (Drip-feed) function
PC-DNC Plus supports the M298 sub program call for drip-feeding long files
to the Hitachi Seiki CNC control. This function is an OPTION from Hitachi Seiki,
so you must be sure that your CNC control is properly equipped with this option
before using M298. If you have any questions about the option configuration of
your control, call your nearest Hitachi Seiki dealer for more information.
The M298 command works similarly to the M98 subprogram call (to a pro-
gram in CNC memory) and the M198 subprogram call (to the Data Server). When
an M298 command is read by the CNC, a request for a subprogram is made
through the UUP port, and PC-DNC Plus will respond by sending the requested
file. To use an M298 call in your main program, you must:
1) Place a command “M298 Pxxxx” in your main program (xxxx= the subprogram
number).
2) Be sure your subprogram exists on the PC-DNC Plus side, and that the subpro-
gram file ends with an “M99” command.
3) The file name for the subprogram must comply with the file naming rules estab-
lished in the PC-DNC Plus “Configure/IO directories” menu. For example, if you
use a file “prefix” of letter “O”, and a default file extension of “.NC”, then a com-
mand “M298 P1234” will call file “O1234.NC” from the PC-DNC Plus system.
Important Note:
When PC-DNC Plus is drip-feeding data to the CNC, the PC must feed data
to the CNC reliably, and without any significant delays. To do this, it is essential
that your PC-DNC Plus computer not be loaded down too heavilly with other tasks.
The connection of several CNCs or the simulateous operation of other application
programs may seriously interfere with the M298 drip-feed function. Be sure to only
use the M298 function in those situations where your PCs performance is adaquate,
and run as few other functions and/or applications as possible.
To improve drip-feed performance, several of the normal functions of the
UUP connection become disabled when an M298 subprogram call is being pro-
cessed by PC-DNC Plus, including the I/O and Seiki Flexlink Text functions.
J22
APPENDIX K
PC-DNC Plus Paperless Factory OptionDescription
The PC-DNC Plus Paperless Factory Option is designed to make electronic
documents conveniently available on the shop floor. To display these documents,
you can use any Windows based PC that is connected to your shop’s network. A
separate program called “PC-DNC Plus Viewer” is provided, which displays these
files and automatically communicates with the PC-DNC Plus server.
The Paperless Factory option lets you enter a “Job List” for each machine on
your PC-DNC Plus Server or PC-DNC Plus Client station. Each machine’s job list
can contain up to 128 jobs which are scheduled for production on that particular
machine. A pull-down “Job List” menu on the PC-DNC Plus system lets you enter
new jobs, edit existing jobs, or recall previously run jobs for production. This menu
also lets you display a “Job History” list, which consists of previously run (com-
pleted) jobs as well as the jobs scheduled for production.
The PC-DNC Plus Viewer program lets each machine operator view the files
that are referenced in each job, and also lets the operator report the job’s status
back to the main PC-DNC Plus system. CNC operators can view past (completed)
or upcoming jobs as well as the current job. The operators can also report a job’s
status back to the PC-DNC Plus Machine Monitoring screen.
Note: The Job List function is included as part of the Hitach Seiki UUP interface.
If you are using the UUP interface, you can display job list files directly on the
CNC’s “FlexLink Text” screen. For more information on the UUP job list function,
refer to appendix J, pages 11-13.
K1
APPENDIX K
PC-DNC Plus Paperless Factory Option (cont.)
Establishing a Job List
PC-DNC Plus lets you define a list of up to 128 “Jobs” for each machine.
Using the the “Job List” pull-down menu on the PC-DNC Plus main screen, you
can open the “Edit Job List” menu shown below.
As soon as a job is entered into the Job List, the CNC operator will immedi-
ately be able to view the information on the CNCs “Seiki Flexlink Text” screen
(UUP interface) or on the shop-floor Viewer program. Each job consists of a “Job
Name”, a number of parts required, an “Operator’s message” and four associated
files for tooling information, setup instructions, a list of part program files, and a
“blueprint” file required to complete the job.
The initial display on the Viewer will show the “operator’s message”. The
CNC operator will be able to select and page through the 4 associated job files.
K2
APPENDIX K
PC-DNC Plus Paperless Factory Option (cont.)
Displaying a Job History
You can view a combined list of the jobs scheduled as well as the jobs com-
pleted for any machine. Use the PC-DNC Plus “Job List” pull-down menu to open
the “Job History” menu shown here.
The “parts completed” shown for the current job is dynamic, and will be
updated on a 3-4 second interval if you are using the Hitachi Seiki UUP interface.
For machines connected to PC-DNC Plus with an RS232 interface, the Machine
Monitoring option is required to enable the dynamic parts counter. The parts count
for the scheduled and the completed jobs is static.
The PC-DNC Plus Viewer will also show a job history list on the shop-floor
PC. Click the Viewer’s “Job List” button to obtain the display shown above.
K3
APPENDIX K
PC-DNC Plus Paperless Factory Option (cont.)
Installing the PC-DNC Plus Viewer
The PC-DNC Plus Viewer program is installed by running the SETUP pro-
gram in the “PC-DNC Viewer” directory. Once installed, you must then start the
viewer and click on the “Configure” toolbar button at the upper-right. The Viewer
configuration menu shown below will appear:
Configure toolbar button
The Viewer program can be set to display from 1 to 4 machines on the same
screen. Each machine is given a unique “Name” that must match the machine name
on the PC-DNC Plus system. Once a machine viewer is named, you must also use
the “Path to Server” and the “Drive Xreference” menus so that the Viewer program
can communicate with your PC-DNC Plus system. Additional menus let you select
your preferences for text fonts and text colors for each viewer
K4
APPENDIX K
PC-DNC Plus Paperless Factory Option (cont.)
Installing the PC-DNC Plus Viewer (cont.)
The PC-DNC Plus Viewer must be able to communicate with the PC-DNC
Plus system through your shop’s network. To do this, use the “Path to Server”
button to display the following menu. You may select any “mapped” drive letter
with a complete directory path (as shown below), or you may enter an equivalent
URL, such as “\\DNC_PC\Program files\PC-DNC Plus”. The path or URL you
set must be available for both “Read” and “Write” privileges, and the main PC-
DNC Plus program “PC-DNC Plus.exe” must exist in this directory.
Once the Viewer is set to communicate with the PC-DNC Plus server, it will
attempt to read the specified machine’s job list files every couple of seconds. If a
job file is found, it is read in and maintained in memory until the job list is changed,
or until you restart the Viewer program.
K5
APPENDIX K
PC-DNC Plus Paperless Factory Option (cont.)
Installing the PC-DNC Plus Viewer (cont.)
Since the Viewer program is running on shop-floor PC and not the PC-DNC
Plus Server, you will have to set up a “Drive Xreference” table so that the Viewer
can find the files specified in your job lists. To do this, click the “Drive
Xreference” button on the viewer’s Configure menu. The following menu will ap-
pear:
The PC that is running the Viewer program may have to use a different
(mapped) drive letter or a URL to access a file referenced in a job list. You must tell
the Viewer program what drive letter to use (on the Viewer PC) to see the drive
letters listed in the job lists.
In the left-hand box, enter the drive letter (or URL) that the Viewer PC would
use, followed by an equal sign ( = ), and then the drive letter (or URL) that the PC-
DNC Plus server would use for the same drive. In the right-hand box, enter the
drive letter that the Server PC would use, followed by an equal sign and the letter
the Viewer PC would use. If both PCs are accessing files from a third PC (like a
network file server), they both might use the same mapped drive letter or URL on
both PCs. In this case, enter “F:=F:” or “\\Server=\\Server”. Be sure to list all the
drives that might be used when listing job files on PC-DNC Plus.
K6
APPENDIX K
PC-DNC Plus Paperless Factory Option (cont.)
Using the PC-DNC Plus Viewer Program
The PC-DNC Plus Viewer program can be run on any PC that is connected
to your shop’s network. The Viewer can display the job files, and you can also
report the current job’s status back to the PC-DNC Plus system. The viewer can
show a single machine (as shown below), or can be set to show up to 4 machines
on a single viewer screen (the 2 machine viewer is shown on next page).
Statusbar buttons let you report the job’s status to PC-DNC Plus
Statusbar button to report the job’s completion and advance to the next job
K7
APPENDIX K
PC-DNC Plus Paperless Factory Option (cont.)
The PC-DNC Plus Viewer program can be set to display the job files for up
to 4 machines. The 2-machine viewer mode is shown below. When used in 2, 3, or
4 machine mode, you can maximize or minimize each machine’s viewer as required.
Each machine’s viewer can be individually configured for text fonts, text colors,
and text size.
K8
APPENDIX K
PC-DNC Plus Paperless Factory Option (cont.)
The Viewer program will let you automatically queue a list of part program
files for each job. All you need to do is list the part program file names (Drive: +
Path + filename) in the “List of Files” file. When this list of files is displayed on the
Viewer, the operator can simply press the “Ctrl ” key with the letter “Q” to auto-
matically queue all the files. The CNC operator can then download each file by
simply pressing the “Read” on “Input” button on the CNC control. The Viewer will
automatically show an asterisk ( * ) in front of each file name if those files are cur-
rently available on the PC-DNC system.
K9
APPENDIX K
PC-DNC Plus Paperless Factory Option (cont.)
The Viewer program has 6 statusbar buttons across the bottom of each
machine’s display. These buttons report a “Job status” back to the PC-DNC
Server, which shows the status of each machine on its Machine Monitoring display.
The production status of each job can then be tracked based upon the status that
the operator reports. A special “Job Done” button records the time & date of the
job’s completion, and places the current job into the job history file. The viewer
then shows the next job in the job list as the “Current Job”
K10