N 140, How to calculate the scaling factor – Baumer N 140 User Manual
Page 12
N 140
www.baumer.com
12
4.3.2. Read /write parameter spindle tolerance and tolerance window,
command „b“ (62h)
This command is to read or write the parameters tolerance compensation and tolerance window.
Example 1: Read parameter (tolerance compensation = 0,15; tolerance window = 0,25)
SOH
Adr
Cmd
EOT
CRC
Transmission
01h
20h
62h
04h
48h
SOH
Adr
Cmd Tolerance compensation=0,15
Tolerance window=0,25
EOT
CRC
Response
01h
20h
62h
30h
30h
31h
35h
30h
30h
32h
35h
04h
AAh
Example 2: Write parameter (tolerance compensation = 1,30; tolerance window = 5,00)
SOH
Adr
Cmd Tolerance compensation=1,30
Tolerance window=5,00
EOT
CRC
Transmission
01h
20h
62h
30h
31h
33h
30h
30h
35h
30h
30h
04h
20h
SOH
Adr
Cmd Tolerance compensation=1,30
Tolerance window=5,00
EOT
CRC
Response
01h
20h
62h
30h
31h
33h
30h
30h
35h
30h
30h
04h
20h
4.3.3. Read / write parameter spindle pitch (scaling factor), command „c“ (63h)
This command is utilized to read or write the scaling factor of the spindle pitch within the range from
0,0000001...9,9999999. The decimal point is not transmitted.
How to calculate the scaling factor:
Resolution per turn: 23,04 mm
Spindle pitch:
4,00 mm
Spindle pitch 4,00
Scaling factor = ───────────────── = ───── = 0,1736111
Resolution per turn 23,04
Example 1: Read scaling factor (scaling factor = 1,000000)
SOH
Adr
Cmd
EOT
CRC
Transmission
01h
20h
63h
04h
4Ah
SOH
Adr
Cmd
scaling = 1,0000000
EOT
CRC
Response
01h
20h
63h
31h
30h
30h
30h
30h
30h
30h
30h
04h
4B
Example 2: Write scaling factor (scaling factor = 0,1736111)
SOH
Adr
Cmd
scaling = 0,1736111
EOT
CRC
Transmission
01h
20h
63h
30h
31h
37h
33h
36h
31h
31h
31h
04h
05h
SOH
Adr
Cmd
scaling = 0,1736111
EOT
CRC
Response
01h
20h
63h
30h
31h
37h
33h
36h
31h
31h
31h
04h
05h