S-EDM TESTWARE
Version 1.0

Copyright 2000-2008 by Proved By Practice Publications

Disclaimer:

  The related publication and software pertains to the workings, 
  manufacturing, assembly and operation of a machine apparatus. This 
  can be a dangerous undertaking. The use of the software and
  any information contained in the related publication is at the 
  users own risk.     

  In no event shall Proved by Practice Publications, the author, 
  suppliers and any related parties that contributed to the creation, 
  marketing and sale of this publication be liable to any party 
  for any direct, indirect, special, punitive or consequential 
  damages (including but not limited to, damages to property, 
  business, person(s), or other pecuniary loss), arising out of 
  the availability, use, reliance on, or inability to use the 
  information contained in this publication. In addition this 
  applies to any further information provided by any means, or any 
  other damage that may result in any way whatsoever, even if this 
  publication shall have been advised of the possibility of 
  such damages, and regardless of the form of action, whether in 
  contract, tort, or otherwise, or for any claim attributed to 
  errors, omissions, or any other inaccuracies in, or destructive 
  properties of any information. 

  By proceeding to read or use this software package the user agrees 
  to the above stated.

  Please see the section titled "Safety Protocol" listed in the 
  related publication.

Installation:

  The software that accompanies the S-EDM manual is made up of the 
  following 4 files:

- TESTWARE.EXE
- MSF.DAT
- MTSF.DAT
- README.TXT

  To install the software on the hard disc of the users computer, 
  create a directory named:

- C:\SEDMTW
  
  Install the files in this directory. This can be done in Windows. 
  The program can be used in Windows but the machine operation
  task should be run under DOS.    

Program Overview:

  This software allows the user to control and regulate the S-EDM 
  unit described in the related publication manual. The program
  has been tested on the following:

- 386
- 486
- 586 

  To run the software go to DOS by restarting you PC in DOS mode.
  At the C:\WINDOWS prompt type in: 

- CD.. 

  At the C:\> prompt type in:  

- CD SEDMTW. 

  The following should appear:

- C:\SEDMTW
  
  Request the directory overview by typing in:

- DIR

  The 4 previously listed files should appear. Type in the following:

- TESTWARE.EXE 

  The program should now appear on the screen. The program 
  will lead the user to the main menu and display the following 
  6 fields:

  Main Menu

  Press 1: Machine Setup
  Press 2: Machine Task Setup
  Press 3: Input Test
  Press 4: Jog
  Press 5: Start Machine Task
  Press 6: Exit

  Since this is testware it does not incorporate much luxury. If 
  wrong values are typed in the program may ignore them or not, 
  without giving warning that they are in error. If any connection 
  is not hooked up, the program may not run correctly.  

  The first two fields of the Main Menu: Machine Setup and 
  Machine Task Setup, require certain values to be entered. These 
  values will be retained on files named: MSF.DAT and MTSF.DAT. Do
  not tamper with these files.

  Pressing 1, then Enter, will lead to the Machine Setup. The 
  following will appear (default settings are listed):   

  Enter parallel port address                   :378
  Enter unit (mm or Inches)                     :mm
  Enter lead screw pitch                        :1.25
  Enter step degree of motor                    :0.9
  Enter maximum feed speed in steps per second  :80
  Save values and exit? (y or n)

  This field allows the user to set primary values for the machine 
  used. The values will be retained even if the user exits the program. 
  However be aware that whenever this field is opened, all of the 
  previous values are automatically erased. This pertains to the 
  field "Machine Task Setup" as well.   

  The port address used by most computers for the printer is located 
  at port 378. It is best to use a separate printer port at 278 for 
  the SEDM unit.   

  Field 2, Machine Task Setup, pertains to setting parameter values 
  for a specific task that the user wants to be executed.

  Enter cutting feed speed in steps per second  :10
  Enter feed pause time in seconds              :2
  Enter amount of retract steps                 :100
  Enter cut depth                               :10
  Save values and exit? (y or n)                    

  Fields 1 and 2 need to receive values before the functions of 
  any other fields can be used.

  Field 3 is the Input Test function. This function can be used to 
  determine if the input switches are SENSED. The function does 
  not detect the initial state of a particular switch (open or closed). 
  Instead it detects if a switch is being opened or closed. It then 
  displays which pin has received a signal and what it must represent 
  (HS1, HS2 or feedback signal). 
  
  If the test fails (no signals are detected) then the Jog Function 
  and the Start Machine Task will not work. Check the pin connections 
  and make sure that the correct port has been selected. To test 
  the feedback signal, hook up the feedback line to the PC. Turn 
  on the EDM circuit and tap on the EDM terminals using a screw driver.  

  All switches, including the FEED BACK relay switch (when the EDM
  circuit is turned on), must initially be in the "normally closed" 
  state. If this is not the case then the unit will not correctly
  perform.    

  Field 4, the Jog Function, is used to position the electrode. 
  When selected, the following should appear:

  Jog Function 

  Tap "up" key to jog motor up
  Tap "down" key to jog motor down

  Press Esc to exit jog function

  The jog function allows the manual positioning of the electrode 
  chuck. It also gives an idea as to the maximum stepper motor speed.
  Jog the electrode chuck up until it reaches its home position 
  (if the sled goes down instead of up then exchange a stepper wire
  pair but not both). The motor may periodicaly seem to jitter at 
  certain low speeds. Unless the pump circuit is the cause then this 
  is not a problem. End the jog function by pressing Esc. 

  By choosing field 5, Start Machine Task. The following should 
  appear: 
              
        Before running the program check the following: 

- Work piece clamped in? 
- Electrode positioned just above work piece? 
- Fluid administered in tank?
- Pump is running?
- EDM circuit turned on?
- Driver turned on?

 Press Enter

  The program will then ask the user if the task is to be started 
  or aborted. By starting the task the motor will then proceed to 
  feed the sled downward. The screen will list that the task is 
  being executed and display the travel depth of the electrode. 
  Pressing any key will pause the task with the option to resume 
  or abort the task. 

Parallel Port Connections:

  The parallel port usually has a 25 pin connection. Pin 
  definitions that are of relevance are as follows:

- 2-9 are output pins
- 10-13, 15 are input pins
- 18-25 are GND pins

  The STEP line of the stepper motor driver should only be 
  connected to pin 2.
  The DIRECTION line of the stepper motor driver should only 
  be connected to pin 3.
  The GND line of the stepper motor driver should be 
  connected to any pin from 18-25.

  The HOME SWITCH 1 line should only be connected to pin 12.
  Pin 12 should be pulled up to 5 Volts using a 2K2 resistor.
  The HOME SWITCH 2 line should only be connected to pin 13.
  Pin 13 should be pulled up to 5 Volts using a 2K2 resistor.
  The HOME SWITCH GND line should be connected to any pin 
  from 18-25. 

  The FEED BACK line should only be connected to pin 15.
  Pin 15 should be pulled up to 5 Volts using a 2K2 resistor.
  The FEED BACK GND line should be connected to any pin 
  from 18-25.

END.