CAD CAM EDM DRO - Yahoo Group Archive

Re: [CAD_CAM_EDM_DRO] Caliper to PC interface, Part II: Data Format ?????? Help ?

Posted by Bill Phillips
on 2001-10-19 13:11:15 UTC
>Here is more data.
>
etc
Someguy
I thought that rang a bell. Lee Studley sent a message to the list way back
as follows :-


Subject: [CAD_CAM_EDM_DRO] Re: Hacking Cheap Digital calipers...

Well, I figured out the serial format of cheap digital caliper I got
on Ebay. Hopefully this will be a start to people wanting to make
DRO's from this type of caliper and maybe the format is a common one
(ie like Digimatic)

It has and SPI interface with clock and data. The data "burst" has 2
sections of 24bits data equaling 48 bits per packet. The first 24bits
are shifted out on the rising edge and qualified on the falling edge
by the reading device. Bit timing was approx. 13uS clock cycle
yielding about 6.5us to detect the falling
edge and sample the data.

Section1:
The first section of 24 bits is also shifted out lsb first. This
24bit record is an 'absolute' binary count with a constant error
offset, for example, when the caliper is fully closed (0.000) the
count was 007FD3h(32723 decimal). By subtracting this value
from the record then dividing by 5000h(20480decimal) you get
the 'inch' readout.


Section2:
Bits are lsb first of a 24bit record. The 2nd section of 24bits is a
'relative' 24bit count subtracted from 0xFFFFFF with scaling relation
of 5000h(20480decimal) counts per inch.


The mode buttons had no apparent affect on the data records sent out,
other than freezing the 'relative' section, so the micro in the
caliper must do a conversion by scaling for displaying the metric
value.

I wrote some quick and dirty Pic code to log data in hex format using
Hyperterm. I cheated and used an emulator.
I targeted a 16C558 running at 10Mhz, but may convert it to a 8pin
part. I used 1/2 of an LM339 quad comaparator(cheap) to level shift

...........
Does that help
Regards
Bill Phillips

Discussion Thread

krlux 2001-10-18 17:57:57 UTC Caliper to PC interface, Part II: Data Format ?????? Help ? Doug Fortune 2001-10-18 18:18:20 UTC Re: [CAD_CAM_EDM_DRO] Caliper to PC interface, Part II: Data Format ?????? Help ? krlux 2001-10-18 18:22:43 UTC Re: [CAD_CAM_EDM_DRO] Caliper to PC interface, Part II: Data Format ?????? Help ? krlux 2001-10-18 20:57:57 UTC Re: [CAD_CAM_EDM_DRO] Caliper to PC interface, Part II: Data Format ?????? Help ? Graham Hollis 2001-10-19 08:43:34 UTC Re: [CAD_CAM_EDM_DRO] Caliper to PC interface, Part II: Data Format ?????? Help ? krlux 2001-10-19 09:26:42 UTC Re: [CAD_CAM_EDM_DRO] Caliper to PC interface, Part II: Data Format ?????? Help ? Jon Elson 2001-10-19 11:15:03 UTC Re: [CAD_CAM_EDM_DRO] Caliper to PC interface, Part II: Data Format ?????? Help ? Bill Phillips 2001-10-19 13:11:15 UTC Re: [CAD_CAM_EDM_DRO] Caliper to PC interface, Part II: Data Format ?????? Help ? wayne_j_hill@y... 2001-10-19 22:02:27 UTC Re: Caliper to PC interface, Part II: Data Format ?????? Help ? krlux 2001-10-20 00:18:23 UTC Re: [CAD_CAM_EDM_DRO] Re: Caliper to PC interface, Part II: Data Format ?????? Help ? ccs@m... 2001-10-20 06:09:44 UTC Re: [CAD_CAM_EDM_DRO] Re: Caliper to PC interface, Part II: Data Format ?????? Help ? krlux 2001-10-20 07:28:41 UTC Re: [CAD_CAM_EDM_DRO] Re: Caliper to PC interface, Part II: Data Format ?????? Help ? ccs@m... 2001-10-20 07:49:41 UTC Re: [CAD_CAM_EDM_DRO] Re: Caliper to PC interface, Part II: Data Format ?????? Help ? brian 2001-10-20 20:44:44 UTC Re: [CAD_CAM_EDM_DRO] Re: Caliper to PC interface, Part II: Data Format ?????? Help ? Jon Elson 2001-10-20 22:08:04 UTC Re: [CAD_CAM_EDM_DRO] Re: Caliper to PC interface, Part II: Data Format ?????? Help ? wayne_j_hill@y... 2001-10-21 10:23:57 UTC Re: Caliper to PC interface, Part II: Data Format ?????? Help ?