EasyManua.ls Logo

PCE Instruments PCE-P18 - Page 24

PCE Instruments PCE-P18
44 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
24
Readout of n-registers (code 03h)
Example 1. Readout of 2 registers, starting with the register address
1D4Dh (7501) float (32-bit), (register values 25.68, 20.25.)
Request:
Device
address
Function
Register address Number of registers
CRC check-
sum
B1 B0 B1 B0
01h 03h 1Dh 4Dh 00h 02h 5270h
Response:
Table 5
Device
ad-
dress
Fun-
ction
Num-
ber of
bytes
Value from the register
1DB0 (7501)
Value from the register
1DB1 (7502)
CRC
check-
sum
B3 B2 B1 B0 B3 B2 B1 B0
01h 03h 08h 41h CDh 70h A4h 41h A2h 00h 00h 83D0h
Table 6
Single register writing (code 06h)
Example 2. Writing the value 78h (120) to the register FA1h (4001)
Request:
Device
address
Function
Register address Register value
CRC
checksum
B1 B0 B1 B0
01h 06h 0Fh A1h 00h 78h DB1Eh
Table 7
Response:
Device
address
Function
Register address Register value
CRC
checksum
B1 B0 B1 B0
01h 06h 0Fh A1h 00h 78h DB1Eh
Table 8