Read current value, command „r“ (52h), Read / write target (profile), command „s“ (53h), N 142 – Baumer N 142 User Manual

Page 12: Response upon deletion of all targets, Direct positioning „sd

Advertising
background image

N 142

www.baumer.com

12

4.2.4. Read current value, command „R“ (52h)

This command is for readout the 6-digit current value (bottom display line). The amount of data is always 6
bytes. In case of a negative value, the “-“ sign (2Dh) together with 5 data bytes is replied. Positive values are
represented by 6 data bytes without sign. Values of less than 6 (5) digits will come with preceding zeroes.

Example: Current value = -32,50

SOH Adr Cmd EOT CRC

Transmission

01h 20h 52h 04h 28h

SOH Adr Cmd

Current value = –32,50

EOT CRC

Response

01h 20h 52h 2Dh 30h 33h 32h 35h 30h

04h

54h


4.2.5. Read / write target (profile), command „S“ (53h)

This command is for readout the presently active target or for programming respectively reading a specific
target. The data are composed of profile number (2 bytes) and target (6 bytes). Important: Negative targets
come by 5 digits only (see example no. 3).

Example 1: Read target of the active profile (current profile number = 12; target = 12,50)

SOH Adr Cmd EOT CRC

Transmission

01h 20h 53h 04h 2A

SOH Adr Cmd Profile no.=12

Target = 12,50

EOT CRC

Response

01h 20h 53h 31h

32

30h 30h

31h

32h

35h

30h

04h

3E

Response upon deletion of all targets:

SOH Adr Cmd Profile=FFh

Target = FFFFFFh

EOT CRC

Response

01h 20h 53h 3Fh 3F 3Fh 3Fh 3Fh 3Fh 3Fh 3Fh 04h 2Ah


Example 2: Read target of a specific profile (profile number = 17; target = 12,50)

SOH Adr Cmd Profile no=17 EO

T

CRC

Transmission

01h 20h 53h 31h

37h 04h 16h

SOH Adr Cmd Profile no=17

Target = 12,50

EOT CRC

Response

01h 20h 53h 31h

37h 30h 30h

31h

32h

35h

30h

04h BCh


Example 3: Write target of a specific profile (profile number = 17; target = -12,50)

SOH Adr Cmd Profile no.=17

Target = -12,50

EOT CRC

Transmission 01h 20h 53h 31h

37h 2D

h

30h

31h

32h

35h

30h

04h FBh

SOH Adr Cmd Profile =17

Target = -12,50

EOT CRC

Response

01h 20h 53h 31h

37h 2Dh 30h

31h

32h

35h

30h

04h FBh



Direct positioning „SD“

This command may be utilized for direct positioning operations. Only the target less any profile number is
transmitted to SPA. The profile number after the command “S” is replaced by sub command “D” (0 =
dimension). Motor start requires transmission of the additional motor start command “D”.

Example 4: Write position value for direct positioning (less profile)

SOH Adr Cmd Sub

Position value = 278,25

EOT CRC

Transmission

01h 20h 53h 44h 30h 32h 37h 38h 32h 35h

04h 6Bh

SOH Adr Cmd Sub

Position value = 278,25

EOT CRC

Response

01h 20h 53h 44h 30h 32h 37h 38h 32h 35h

04h

6Bh

Note: The position value is saved in the non-volatile memory and will be retained in case of power failure. In this
case the previously selected profile will be utilized again.

Advertising