User’s Manual
DM5856HR/DM6856HR
19
RTD Finland Oy
Chapter 5
- B
OARD OPERATION AND PROGRAMMING
This chapter shows you how to program and use your DM5856HR/DM6856HR: It provides a
complete description of the I/O-map plus a detailed discussion of programming operations to aid
you in programming.
Defining the I/O Map
The I/O map of the DM5856HR/DM6856HR is shown in Table 5-1 below. As shown, the module
occupies two addresses. The Base Address (designated as BA) can be set using the jumpers as
described in Chapter 2 (Board settings). The following sections describe the register contents of
each address used in the I/O map.
Table 5-1: DM5856HR/DM6856HR I/O Map
Register Description
Read Function
Write Function
Address in HEX
Low Byte (ch. 1-8)
Digital Inputs 1-8
Digital outputs 1-8
BA+0
High Byte (ch. 9-16)
Digital Inputs 9-16
Digital outputs 9-16
BA+1
BA = Base Address
BA+0 Digital Inputs 1-8
(Read)
The optoisolated digital input channels 1-8 can be read from address BA+0.
BA+1 Digital Inputs 9-16
(Read)
The optoisolated digital input channels 9-16 can be read from address BA+1.
BA+0 Digital Outputs
(Write)
The Data Output register controls the output optocouplers 1-8. Data is transferred from the Data
register to the outputs by performing an 8-bit write to BA+0. Direct transfer of data to the output
latch for all the 16 bits can be performed by executing a 16-bit write to BA+0. The address decoder
of the DM5856HR will automatically write consecutive addresses BA+0 and BA+1with the correct
output data bytes.
BA+1 Digital Outputs
(Write)
The Data Output register controls the output optocouplers 9-16. Data is transferred from the Data
register to the outputs by performing an 8-bit write to BA+1.