beautypg.com

Read / write bit parameters „a“ (61h) – Baumer N 153 User Manual

Page 14

background image

N 153

www.baumer.com

14

4.3.1. Read / write bit parameters „a“ (61h)

To exploit maximum memory capacity, several parameters are put together and transferred as “data pack” un-
der the following parameter codes:

Data1: 1 0 X X 0 X 0 X

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

│ │ │ └─── positioning direction 0/1 (UP/DOWN)

│ │ └─────── counting direction 0/1 (UP/DOWN)

│ └──────────── arrows 0/1/2/3 (UP/DOWN/UNI/OFF)

└──────────────── 1

Data2: 1 0 0 X X X 0 X

┬ ┬ ─┬─ ┬ ┬ ─┬─

│ │ │ │ │ └─── round actual value 0/1 (OFF/ON)

│ │ │ │ └────── turn display 0/1 (OFF/ON)

│ │ │ └──────── dimension 0/1 (OFF/ON)

│ │ └─────────── offset 0/1 (OFF/ON)

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

└──────────────── 1

Data3: 1 0 0 0 0 X X X

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

│ │ │ └─── hide target 0/1/2 (ON/OFF/EVER)

│ │ └────── resolution 0/1 (1/100;1/10)

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

└──────────────── 1

Data4/5: 0 0 1 1 0 0 0 0

───┬───

└───── reserved
Important: Only bits marked ‘X’ may be altered. The permanent parameters „1“ and „0“ must not be altered
since this might create a control token ( tokens <20h) what is not permitted in ASCII protocol.

Example 1: read bit parameter (data1 to data3 = 80h; data4 to data5 = 30h)

SOH

Adr

Cmd

EOT

CRC

Transmission

01h

20h

61h

04h

4E

b

it parameter default


Example 2: write bit parameter (positioning direction = down; turn display = On)

SOH

Adr

Cmd Data1 Data2 Data3 Data4 Data5

EOT

CRC

Transmission

01h

20h

61h

81h

84h

80h

30h

30h

04h

91h

SOH

Adr

Cmd Data1 Data2 Data3 Data4 Data5

EOT

CRC

Response

01h

20h

61h

81h

84h

80h

30h

30h

04h

91h


SOH

Adr

Cmd Data1 Data2 Data3 Data4 Data5

EOT

CRC

Response

01h

20h

61h

80h

80h

80h

30h

30h

04h

F1