beautypg.com

N 142, Example 2: change measuring unit to inches – Baumer N 142 User Manual

Page 22

background image

N 142

www.baumer.com

22

4.3.6. Read / write parameter motor speed switching points, command „h“ (68h)

This command is for read or write the motor speed switching points. Prior to reaching the target the motor
speed can be slowed down by two optional speeds (slow and precision) for absolutely precise positioning to the
target. The motor’s switchoff point might also be set to a certain value prior to reaching the target. The following
3 parameters are available:

Slow speed:

At this point the SPA will go from high speed to slow speed.

Precision speed: At this point the SPA will go from slow speed to precision speed.
Switchoff point: SPA will stop motor at this position.

The individual switching points are indicated in relation to the target.

Example 1: Read parameter (slow speed = 2,00; precision speed = 0,70; switchoff point= 0,02)

SOH Adr Cmd EOT CRC

Transmission

01h 20h 68h 04h 5Ch

SOH Adr Cmd

Slow speed =2,00

Precision speed =0,70

Switchoff point =0,00

EOT CRC

Response

01h 20h 68h 30h 32h 30h 30h 30h 30h 37h 30h 30h 30h 30h 30h 04h 72h


Example 2: Write parameter (slow speed = 1,25; precision speed = 0,50; switchoff point = 0,01)

SOH Adr Cmd

Slow speed =1,25

Precision speed =0,50

Switchoff point =0,01

EOT CRC

Transmission

01h 20h 68h 30h 31h 32h 35h 30h 30h 35h 30h 30h 30h 30h 31h 04h EAh

SOH Adr Cmd

Slow speed =2,00

Precision speed =0,50

Switchoff point =0,01

EOT CRC

Response

01h 20h 68h 30h 31h 32h 35h 30h 30h 35h 30h 30h 30h 30h 31h 04h EAh


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

The command is for reading or writing the measuring unit in mm or inches.

Data = 0 (30h) = mm

Data = 1 (31h) = inch


Example 1: Read parameter (parameter = 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/address=99)


SOH Adr Cmd Data EOT CRC

Transmission

01h 83h 69h 30h 04h CDh

Response

Not confirmed


Important: Parameters are programmed in mm and converted into inches by the SPA when displaying the
position values.