Parameter commands, Read / write bit parameter „a“ (61h) – Baumer N 150 User Manual
Page 11

N 150
www.baumer.com
11
4.3. Parameter commands
Command
code
Data amount
in bytes
read
write
Broad-
cast
Save in
EEPROM
Significance
a (61h)
5
X
X
-
X
Read/write general parameters
b (62h)
8
X
X
-
X
Parameter: Tolerance compensation, window
c (63h)
8
X
X
-
X
Parameter: scaling of spindle pitch
i (69h)
1
X
X
X
X
Parameter: mm / inch
4.3.1. Read / write bit parameter „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
┬ ┬ ─┬─ ─┬─ ─┬─
│ │ │ │ └─── round actual value 0/1 (OFF/ON)
│ │ │ └─────── turn display 0/1 (OFF/ON)
│ │ └─────────── offset 0/1 (OFF/ON)
│ └────────────── reserved
└──────────────── 1
Data3: 1 0 0 0 0 X X X
┬ ───┬─── ┬ ─┬─
│ │ │ └─── suppress 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 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 (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