Motion Controller Jog Dial
by Martin Clausen (mc AT rotgradpsi DOT de) for University of Konstanz
A jog dial for Newport motion controller, can also be put into the RS232 connection between computer and motion controller.
Table of contents:
- Standalone operation or operation with other controlling devices
- Can be cascaded as often as you like
- All commands from the computer pass through with a delay of only 25µs plus send time of one character, while no key is pressed
- 16*2 LCD
- "Quasi logarithmic feeling" while tuning step size with rotary encoder
- Can control all 4 motors
- Step size format: X,XXX.XX Units
- Employs rotary encoder to send move commands with plus or minus sign and step size
- Step size reset button
- 128 bytes buffer
- RS232 interface, 8 databits, no parity, one stopbit
- Supported baudrates: 115.2; 57.6; 38.4; 19.2; 9.6; 4.8; 2.4 und 1.2 kbps
- Line end character: CR; other possible, please send me a mail
- PC program to check function of device and its connection
- Program is freeware for non-commercial use.
The device utilise the "PR" command (Relative Move). It can operate on its own to control the motion controller. If a computer is connected to the controller you can plug the cable simply from the controller into the device and connect the device to the controller. All commands from the PC are passed through. If the device sends a own command it stores those that arrives during this time from the computer and sends them afterwards. The device sends own commands only after it has dedected a line end character. This is normally CR. This can changed easily, just send me a mail. If you want to use other motion controller than those from newport, give me a shout, may be its easily done.
Baudrate Selection
| MSB - LSB | Baudrate / kbps
|
|---|
| 111 | 115.2
|
| 110 | 57.6
|
| 101 | 38.4
|
| 100 | 19.2
|
| 011 | 9.6
|
| 010 | 4.8
|
| 001 | 2.4
|
| 000 | 1.2
|
Meaning of 1 and 0 in this table:
The baudrate jumper are read up on reset.
checkuC [/h] [/slow] [/com:COMPORT] [/irq:IRQ]
Parameter definition:
| /h | help
|
| /slow | force slow mode, use if timing-code fails
|
| /com: | select comport
|
| /irq: | select irq for comport
|
The program checks function of the device and its connection. Comport and IRQ must be selected. The baudrate is set to 115.2 kbps. Before usage you need to replace the motion controller by a loop back plug (9 pin plug with only pin 2 and 3 connected to each other). Also make sure your jog device is set to 115.2 kbps.
- Semiconductors:
- 1 AT89C52 or AT89S52, 24MHz; see also programming tips
- 1 MAX232
- 1 16*2 LCD
Capacitors:
- 1 1µF / 25V axial
- 6 10µF / 25V axial
- 2 33pF cer
- 1 100nF cer
Resistors:
- 1 10k*8 / 9 pin sil array
- 1 10k trimer
Mechanic:
- 1 22.118MHz crystal
- 1 rotary encoder Bourns ECW1JB24AC24 or additionl 2 buttons (for encR and encL)
- 6 buttons
- 2 sub-D socket, 9 pin
- 1 dip switch with 3 switches
- 1 case
- 1 pbc
- 1 some thin wire
- 1 socket 16 pin
- 1 socket 40 pin
- jog.zip PC program V1.00 with source code (for Power Basic 3.20 with Power Tools 2.00), MCU program V2 and, special version, that sends to M1, M2 and M3 VA0.2 and to M4 VA0.1 before each own command; see also programming tips
- jog.gif circuit V1.00
The part description in schematics is read as follows:
part type + value in exponential form + package description + subpart number in package
for example: C1040805,1 means Capacitor, 100nF, package SMD 0805, first subpart in package
Disclaimer: No warranty at all!
Copyright by Martin Clausen, Germany.
Contact the author: mc AT rotgradpsi DOT de
Impressum