N 141, How to calculate the scaling factor, Example 2: change measuring unit to inches – Baumer N 141 User Manual

Page 14

Advertising
background image

N 141

www.baumer.com

14

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 factor = 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 factor = 0,1736111

EOT

CRC

Transmission

01h

20h

63h

30h

31h

37h

33h

36h

31h

31h

31h

04h

05h

SOH

Adr

Cmd

Scaling factor = 0,1736111

EOT

CRC

Response

01h

20h

63h

30h

31h

37h

33h

36h

31h

31h

31h

04h

05h


4.3.4. Read / write parameter measuring unit, command „i“ (69h)

The command is to read or write the measuring unit in mm or inches.

Data = 0 (30h) = mm

Data = 1 (31h) = inch


Example 1: Read parameter (setting = mm)

SOH

Adr

Cmd

EOT

CRC

Transmission

01h

20h

69h

04h

5E

SOH

Adr

Cmd

Data

EOT

CRC

Response

01h

20h

69h

30h

04h

D0h

Example 2: Change measuring unit to inches

SOH

Adr

Cmd

Data

EOT

CRC

Transmission

01h

20h

69h

31h

04h

D2

SOH

Adr

Cmd

Data

EOT

CRC

Response

01h

20h

69h

31h

04h

D2


Example 3: Write mm as measuring unit into all SPAs by broadcast command (identifier/Adr=99)

SOH

Adr

Cmd

Data

EOT

CRC

Transmission

01h

83h

69h

30h

04h

CDh

Response

Not confirmed

Important: The parameter is programmed in mm and converted into inches by the SPA when displaying the
position values.

Advertising