beautypg.com

Read and write specific parameter „x“ (78h), N 142, Example 2: write jog step number – Baumer N 142 User Manual

Page 24: Example 3: value transmitted too high (4 digits), Example 2: write new delaytime

background image

N 142

www.baumer.com

24

4.3.10. Read / write parameter JOG step number, command „l“ (6Ch)

This command is to read or write the step number relating to the jog function within the value range 0- 999.
Parameter 0 will disable the Jog function, both by keypad and by external inputs.
Note: The jog function must be enabled in command „m“, lock in one direction possible as an option.
The respective step is always completely accomplished and during the motor positioning operation cannot be
stopped or restarted by actuating another key. However, stop by interface (command „D“) is possible. With
running motor the moving bit is set to 1 (refer also command “F”).

Example 1: Read jog step number

SOH Adr Cmd

SCmd

EOT CRC

Transmission

01h 20h 6C 53h 04h 5Ah

SOH Adr Cmd

SCmd

Step number = 25

EOT CRC

Response

01h 20h 6Ch 53h 30h

30

32

35

04h

44h


Example 2: Write jog step number

SOH Adr Cmd

SCmd

Step number = 50

EOT CRC

Transmission

01h 20h 6Ch 53h 30h

30

35

30

04h

52h

SOH Adr Cmd

SCmd

Step number = 50

EOT CRC

Response

01h 20h 6Ch 53h 30h

30

35

30

04h

52h


Example 3: Value transmitted too high (4 digits)

SOH Adr Cmd

SCmd

Step number = 2345

EOT CRC

Transmission

01h 20h 6Ch 53h 32h

33

34

35

04h

64h

SOH Adr Cmd

SCmd

Step number = 0345

EOT CRC

Response

01h 20h 6Ch 53h 30h

33

34

35

04h

44h


SPA accepts only 3-digit values, the 4th digit is automatically replaced by zero.

4.3.11. Read and write specific parameter „x“ (78h)

The specific parameter „x“ comprises several sub-parameters enabling alteration of originally permanent
parameters to adapt them to new circumstances. At present, the following sub-parameter is available:

D (44h) = minimized delaytime of serial interface

L (4Ch) = hide LCD digit


Sub parameter: Delaytime „D“ (44h)
This parameter defines the minimum delay time (timeout) between the last bit received and the first bit of the
response transmitted. Delay time is in steps of 0,1 ms within the range from 00.0 ... 60,0 ms. Default is 1,0 ms.

Example 1: Read current delaytime

SOH Adr Cmd Sub EOT CRC

Transmission

01h 20h 78h 44h 04h 7Ch

SOH Adr Cmd Sub

Delaytime = 4.5

EOT CRC

Response

01h 20h 78h 44h 30h 30h 34h 35h

04h BBh


Example 2: Write new delaytime

SOH Adr Cmd Sub

Delaytime = 15.0

EOT CRC

Transmission

01h 20h 78h 44h 30h 31h 35h 30h

04h BDh

SOH Adr Cmd Sub

Delaytime = 15.0

EOT CRC

Response

01h 20h 78h 44h 30h 31h 35h 30h

04h BDh


Please not that the true delaytime might be extended. It depends on the required processing time as well as on
internal software cycles. The tolerance is approx. 8 ms.