Interfaces for BML Magnetic Encoder System
2
Interfaces (continued)
To read and write the user area, the configuration must first
be read out from the EDS:
At BiSS C register address 0x41, the EDS bank is read
out. The value from address 0x41 is then entered in
register address 0x40 (bank selection). Afterwards, the
following information is available:
–
Address 0x00 the EDS version,
–
Address 0x01 the number of EDS banks,
–
Address 0x02 the beginning of the user area bank
–
Address 0x03 the last user area bank.
In the user area, any data can be read and written. This
data is stored permanently in the EEPROM. The user area
can be used freely and data can be stored freely on the
various banks: ASCII or binary-coded, plain text or
encrypted, with or without CRC protection.
After a user area bank is entered at the address 0x40, any
data in address space 0x00...0x3F can be read and
written. With a different user area bank, other data can be
written and read at the same addresses 0x00...0x3F
without overwriting the data from the other banks. The
data stored in the user area are always available, even after
the system has been switched off and back on.
If other banks outside the user area are to be written to, an
error message occurs.
12
english
For the following example, this syntax is used:
n
= [0x41]
Writing of n with the contents of
address 41 (hex)
[0x40]
= 7
Writing of value 7 to the
address 0x40 (hex)
Example for writing and reading three bytes in two user
banks:
Reading out of the EDS (reading of the definition of the user
area)
n
= [0x41]
(EDS begins at bank n, here e.g. 1)
[0x40]
= n
(EDS bank is selected)
num
= [0x01]
(Number of EDS banks is read,
e.g. 8)
User_beg = [0x02]
(Beginning of the user area is read,
e.g. 0x09)
User_last = [0x03]
(Last user area bank is read,
e.g. 0x0F)
Writing of the user area
[0x40]
= User_beg
(Select first user area bank, here
0x09)
[0x00]
= 0x11
(Enter any value in the first address of
the first bank)
[0x3F]
= 0x1F
(Enter any value in the last address of
the first bank)
...
[0x40]
= User_beg+1
(Select second user area bank)
[0x00]
= 0x21
(Enter any value in the first address of
the second bank)
...
Optional Power off/on
Reading the written user area
[0x40]
= User_beg
(Select first user area bank)
n
= [0x00]
(n changes to 0x11, above value)
...
[0x40]
= User_beg+1
(Select second user area bank)
n
= [0x00]
(n changes to 0x21, above value)
...
The data format and meaning of the individual
bits is defined via the XML file, using the
BiSS identifier. The BiSS identifier is described in
the guide for the sensor.
Download this XML file from www.balluff.com
or request it via e-mail to service@balluff.de.