Read / write min/ max limits, command „g“ (67h), N 142, How to calculate the scaling factor – Baumer N 142 User Manual

Page 21

Advertising
background image

N 142

www.baumer.com

21

4.3.4. Read / write parameter spindle pitch (scaling), command „c“ (63h)

This command is utilized to read or write the scaling factor relating to the spindle pitch within the range from
0,0000001...9,9999999. The decimal point is not transmitted.
Resolution per turn is 2304 steps. A scaling factor of 1.000000 will increase respectively decrease the indicated
value by 23.04 mm.

How to calculate the scaling factor:

Resolution per turn: 23.04 mm (corresponding to length with scaling factor 1.0000000)
Spindle pitch:

4,00 mm

Spindle pitch 4,00
Scaling factor = ───────────────── = ───── = 0,1736111

Resolution per turn 23,04


Example 1: Read scaling factor (scaling = 1,0000000)

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 = 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.5. Read / write MIN/ MAX limits, command „g“ (67h)

This command is utilized to read or write the MIN and Max limits within the range from -999,99 to 9999,99. The
decimal point is not transmitted.

Example 1: Read limits (MIN = 15,00; MAX = 850,25)

SOH Adr Cmd EOT CRC

Transmission

01h 20h 67h 04h 42h

SOH Adr Cmd

limit MIN = 0015,00

limit MAX = 0850,25

EOT CRC

Response

01h 20h 67h 30h 30h 31h 35h 30h 30h 30h 38h 35h 30h 32h 35h 04h 1Fh


Example 2: Write limits (MIN = -33,22; MAX = 1234,56)

SOH Adr Cmd

limit MIN = -033,22

limit MAX = 1234,56

EOT CRC

Transmission

01h 20h 67h 2Dh 30h 33h 33h 32h 32h 31h 32h 33h 34h 35h 36h 04h 92h

SOH Adr Cmd

limit MIN = -033,22

limit MAX = 1234,56

EOT CRC

Response

01h 20h 67h 2Dh 30h 33h 33h 32h 32h 31h 32h 33h 34h 35h 36h 04h 92h


Advertising