Identifier (address) commands, Read / write specific parameter „x“ (78h) – Baumer N 152 User Manual

Page 23

Advertising
background image

N 152

www.baumer.com

23

Example 2: Write jog step

SOH Adr Cmd

SCmd

Jog step = 50

EOT CRC

Transmission

01h 20h 6Ch 53h 30h 30

35

30

04h

52h

SOH Adr Cmd

SCmd

Schrittweite = 50

EOT CRC

Response

01h 20h 6Ch 53h 30h 30

35

30

04h

52h


Example 3: Value transmitted is too high (4 digits)

SOH Adr Cmd

SCmd

Jog step = 2345

EOT CRC

Transmission

01h 20h 6Ch 53h 32h 33

34

35

04h

64h

SOH Adr Cmd

SCmd

Jog step = 0345

EOT CRC

Response

01h 20h 6Ch 53h 30h 33

34

35

04h

44h


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

4.3.11. Read / 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. Presently the following sub-parameter is available:

D (44h) = delaytime for minimized timeout reply of serial interface


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

Example 1: Read actual delay time

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 delay time

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 prolonged. It depends on the required processing time as well as on
internal software cycles. Tolerance is approx. 8 ms.

4.4. Identifier (address) commands

Command

code

Data

amount

in bytes

read

write

Broad-

cast

Save in

EEPROM

function

A (41h)

2

X

X

X

X

Assign or indicate device identifier

B (42h)

2

-

-

-

-

SPA feedback in addressing mode


Advertising