Reading beyond Valid Register Range
Original instructions
Overview
If the start register number and the data count are valid, but some of the registers to access are beyond the valid register range, only the data from the registers in the valid register range are read/written. The data count returned is the number of valid register data returned, and the error code 1280 Hex (end register number in out of range) is returned in the Module Status Word.
Example
The following example tries to read 10 registers, using the GET command, from the ESI module starting at register 3FFA Hex:
User Logic command = 030A Hex
Start register = 3FFA Hex
Therefore, the data count is 10 and the 6 valid registers (3FFA, 3FFB,3FFC, 3FFD, 3FFE, and 3FFF Hex) data are returned. The data count returned in the Command Word is 6 (8306 Hex).
The following data are assumed to be in the ESI Registers:
ESI Register
Content (Hex)
3FFA
1111
3FFB
2222
3FFC
3333
3FFD
4444
3FFE
5555
3FFF
6666
The following table shows the command sent to the ESI module and the response:
User Logic Command
User Logic Response
Register
Content
Register
Content
4x+0
030A Hex
3x+0
8306 Hex
4x+1
3FFA Hex
3x+1
3FFA Hex
4x+2
0000 Hex
3x+2
1111 Hex
4x+3
0000 Hex
3x+3
2222 Hex
4x+4
0000 Hex
3x+4
3333 Hex
4x+5
0000 Hex
3x+5
4444 Hex
4x+6
0000 Hex
3x+6
5555 Hex
4x+7
0000 Hex
3x+7
6666 Hex
4x+8
0000 Hex
3x+8
0000 Hex
4x+9
0000 Hex
3x+9
0000 Hex
4x+10
0000 Hex
3x+10
0000 Hex
4x+11
0000 Hex
3x+11
1280 Hex