beautypg.com

Baumer N 142 User Manual

Page 16

background image

N 142

www.baumer.com

16

4.3.1. Read / write bit parameter standard, command „a“ (61h)

To exploit maximum memory capacity, several parameters are put together and transferred as “data pack”
under 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 0 X 0 X

┬ ┬ ─┬─ ─┬─ ─┬─

│ │ │ │ └─── rounding the current value 0/1 (OFF/ON)

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

│ │ └─────────── Offset 0/1/2 (OFF/SER/S+K)

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

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

Data3: 1 0 0 X X 0 X X

┬ ┬ ──┬── ┬ ─┬─

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

│ │ │ └────── reserved

│ │ └────────── external inputs 0/1/2/3 (Key/Slow/Middle/Fast)

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

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

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

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

│ └──────── reserved

└─────────────────────────── reserved


Important: Only the 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 (Data 1 to Data 3 = 80h; Data 4 to Data 5 = 30h)

SOH Adr Cmd EOT CRC

Transmission

01h 20h 61h 04h 4E

Bit 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