Read device status „f“ (46h), Read actual value „r“ (52h) – Baumer N 152 User Manual

Page 11

Advertising
background image

N 152

www.baumer.com

11

4.2.3. Read device status „F“ (46h)

This command provides the device statii Stat1 and Stat2 together with error flags Err1, Err2. In case of error
check command “C” will come with an “e” in reply.

Example:

SOH Adr Cmd EOT CRC

Transmission

01h 20h 46h

04h 00h

SOH Adr Cmd Stat1 Stat2 Err1 Err2 EOT CRC

Response

01h 20h 46h

80h 80h 80h 80h

04h 4Bh


Stat1: 1 0 0 0 0 0 0 0

┬ ─────┬───────

│ └───────── reserved

└──────────────── ever 1


Stat2: 1 0 0 0 0 0 X X

┬ ────┬──── ┬ ┬

│ │ │ └── 1 = Motor is running (Moving Bit). The bit is set with running motor

│ │ │ including loop interval. With active clamping the bit will remain as

│ │ │ set whilst the clamping is open.

│ │ └──── 1 = Manual SPA abort. Bit is set if during an automated positioning

│ │ operation any key at the SPA is actuated.

│ └────────── reserved

└──────────────── ever 1


Err1: 1 0 0 0 0 0 X X

┬ ──┬── ┬ ┬ ┬ ┬

│ │ │ │ │ └── 1 = Err 8 - target > MAX limit position (motor does not start)

│ │ │ │ └──── 1 = Err 9 - target < MIN limit position (motor does not start)

│ │ │ └────── reserved

│ │ └──────── reserved

│ └──────────── reserved

└──────────────── ever 1


Err2: 1 0 X X X X X X

┬ ┬ ┬ ┬ ┬ ┬ ┬ ┬

│ │ │ │ │ │ │ └── 1 = Err 1 - MAX limit position is hurt

│ │ │ │ │ │ └──── 1 = Err 2 - MIN limit position is hurt

│ │ │ │ │ └────── 1 = Err 3 – no shaft rotation

│ │ │ │ └──────── 1 = Err 4 – Motor failure (overcurrent)

│ │ │ └────────── 1 = Err 5 – target window not achieved

│ │ └──────────── 1 = Err 6 – trailing error

│ └────────────── reserved

└──────────────── ever 1

4.2.4. Read actual value „R“ (52h)

This command is for reading the 5-digit actual value (bottom display). Data amount is always 6 bytes. In case of
a negative value, the minus sign (2Dh) together with 5 data bytes is replied. Positive values are represented by 6
data bytes without sign. Values inferior to 5(4) digits will come with preceding zeroes. Please note that N 152
provides a 5-digit actual value.

Example: Actual value = -32.50

SOH

Adr

Cmd

EOT

CRC

Transmission

01h

20h

52h

04h

40h

SOH

Adr

Cmd

Actual value = –32.50

EOT

CRC

Response

01h

20h

52h

2Dh

30h

33h

32h

35h

30h

04h

54h

Advertising