The text of a manual · part 9 of 12
CM52 Remote I/O Interface Module Operator's Manual, pages 81 to 90
Pages 81 to 90 of 116
The original document is the PDF (886 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Datalogic CM52
Page 81
The Command Flags bit map is shown below. The address of Word 0 is O:rrg where O indicates the output file, rr is the CM52 rack address and g is the CM52 group assignment. Word 0
Word
LSB
Used by scanner for block transfers
MSB
Reserved
LSB
7
6
5
1
4
3
Reserved
MSB
17
16
15
14
13
2
1
0
Digital
Digital
Initiate
Out 2
Out 1
12
11
10
Reserved
The CM52 will respond by setting the Ack flag when it sees the Initiate flag to signal receipt of the command buffer. When the command is completed the CM52 will set the Done (and possibly Error) flag in the Input file. The Response Flags bit map is shown below. The address of Word 0 is I:rrg where I indicates the input file, rr is the CM52 rack address and g is the CM52 group assignment. Word
LSB
7
6
5
MSB
17
16
15
0
4
2
1
0
Used by scanner for block transfers 14
Reserved
Word
3
LSB
7
1
6 Reserved
MSB
13
12
11
10
Task 3
Task 2
Task 1
Task 0
Done
Done
Done
Done
1
0
5
4
3
2
Error
Reserved Done
Ack
Digital In
Digital In
2
1
17
16
15
14
13
12
11
10
MUX32
MUX32
MUX32
MUX32
MUX32
MUX32
MUX32
MUX32
Addr 07
Addr 06
Addr 05
Addr 04
Addr 03
Addr 02
Addr 01
Addr 00
Ready
Ready
Ready
Ready
Ready
Ready
Ready
Ready
If the CM52 is configured as a 1/2 rack device, the remaining MUX32 status bits will be present in word 2 and word 3.
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
75
Page 82
HMS MUX32 Tag Fill, Opcode 34 Writes a fill byte to consecutive addresses in the HMS Tag (in range of the specified antenna). When the Slave’s Data Ready bit is set, issue a Collect command (Opcode 39) to retrieve status and data. The Block Transfer Write is formatted as follows: Word
MSB
15
14
13
12
0
LSB
7
6
5
4 Reserved
Word 1
Word 2
11
10
9
8
2
1
0
OPCODE 34 (22H)
MSB
Fill byte
LSB
MUX32 Address of Slave device
3
Task Number
Reserved
Length of fill in bytes
Word 3
Start address in RFID tag
Word 4
Timeout Value (given in 100 ms units, 0 = no timeout)
When the command BTW is complete, set the Initiate bit in the output file.
76
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 83
The Command Flags bit map is shown below. The address of Word 0 is O:rrg where O indicates the output file, rr is the CM52 rack address and g is the CM52 group assignment. Word 0
Word
LSB
Used by scanner for block transfers
MSB
Reserved
LSB
7
6
5
1
4
3
Reserved
MSB
17
16
15
14
13
2
1
0
Digital
Digital
Initiate
Out 2
Out 1
12
11
10
Reserved
The CM52 will respond by setting the Ack flag when it sees the Initiate flag to signal receipt of the command buffer. When the command is completed the CM52 will set the Done (and possibly Error) flag in the Input file. The Response Flags bit map is shown below. The address of Word 0 is I:rrg where I indicates the input file, rr is the CM52 rack address and g is the CM52 group assignment. Word
LSB
7
6
5
MSB
17
16
15
0
4
2
1
0
Used by scanner for block transfers 14
Reserved
Word
3
LSB
7
1
6 Reserved
MSB
13
12
11
10
Task 3
Task 2
Task 1
Task 0
Done
Done
Done
Done
1
0
5
4
3
2
Error
Reserved Done
Ack
Digital In
Digital In
2
1
17
16
15
14
13
12
11
10
MUX32
MUX32
MUX32
MUX32
MUX32
MUX32
MUX32
MUX32
Addr 07
Addr 06
Addr 05
Addr 04
Addr 03
Addr 02
Addr 01
Addr 00
Ready
Ready
Ready
Ready
Ready
Ready
R–eady
Ready
If the CM52 is configured as a 1/2 rack device, the remaining MUX32 status bits will be present in word 2 and word 3.
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
77
Page 84
3.6.5 General Auto-Polled MUX32 Commands The 40-series Auto-polled MUX32 Read command (opcode 40) polls the entire bus and returns data from the next active device that has data. The 40-Series commands are not compatible and cannot be used in conjunction with 30-Series commands. A Data Ready bit is set in the response from a Read command indicating which device responded, and that the data has been returned. The Data Ready bit is automatically reset by the next Read command issued. The address of the responding device is included in the response message packet with the status of the previously issued MUX32 command. The MUX32 Read command is used in conjunction with the 40-series HMS antenna commands (Read, Write, and Fill) to collect status and data from specified MUX32 slaves; since those commands only post the requested operation, then return immediately. In typical applications, the auto-polled MUX32 Read command would continuously poll the bus while other operations, such as an HMS Tag Read or Write, execute concurrently. Only one Data Ready bit is set at a time using the 40-Series commands.
78
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 85
MUX32 Read (Auto-polled), Opcode 40 Polls the MUX32 bus and returns either when data is received from a responding slave; or when the timeout period expires with no slaves responding. The status and address of the responding slave and the number of bytes returned are included in the response along with the data itself. Two status bytes are returned: The standard response header status indicates status of the Read command itself. The status returned in the BTR response byte 0, indicates MUX32 status of the previously issued command. The command is formatted as follows: Word
MSB
15
14
13
12
0
11
10
9
8
2
1
0
OPCODE 40 (28H) LSB
7
6
5
4
3
Reserved Word 1
Task Number
Reserved
Timeout, in 100 ms units. 0 = no timeout
When the command BTW is complete, set the Initiate bit in the output file. The Command Flags bit map is shown below. The address of Word 0 is O:rrg where O indicates the output file, rr is the CM52 rack address and g is the CM52 group assignment. Word 0
Word
LSB
Used by scanner for block transfers
MSB LSB
Reserved 7
6
1
5
4
3
Reserved
MSB
17
16
15
14
13
2
1
0
Digital
Digital
Initiate
Out 2
Out 1
12
11
10
Reserved
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
79
Page 86
Word
LSB
7
6
5
0
4
3
2
1
0
12
11
10
2
1
0
Digital
Digital
Initiate
Out 2
Out 1
12
11
Used by scanner for block transfers MSB
17
16
15
14
13 Reserved
Word
LSB
7
6
5
1
4
3
Reserved
MSB
17
16
15
14
13
10
Reserved
The CM52 will respond by setting the Ack flag when it sees the Initiate flag to signal receipt of the command buffer. When the command is completed the CM52 will set the Done (and possibly Error or Timeout) flag in the Input file. The Response Flags bit map is shown below. The address of Word 0 is I:rrg where I indicates the input file, rr is the CM52 rack address and g is the CM52 group assignment. Word
LSB
7
6
5
0
4
3
MSB
17
16
15
14
Reserved
Word
2
1
0
Used by scanner for block transfers
LSB
7
1
6 Reserved
MSB
13
12
11
10
Task 3
Task 2
Task 1
Task 0
Done
Done
Done
Done
5
4
3
2
1
0
Error
Timeout
Done
Ack
Digital In
Digital In
2
1
17
16
15
14
13
12
11
10
MUX32
MUX32
MUX32
MUX32
MUX32
MUX32
MUX32
MUX32
Addr 07
Addr 06
Addr 05
Addr 04
Addr 03
Addr 02
Addr 01
Addr 00
Ready
Ready
Ready
Ready
Ready
Ready
Ready
Ready
If the CM52 is configured as a 1/2 rack device, the remaining MUX32 status bits will be present in word 2 and word 3.
80
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 87
When the DONE flag is detected, issue a Block Transfer Read (BTR) to retrieve the data read from the Tag. The number of words requested can either be an exact number or if you use “0" the CM52 will return all the words retrieved from the last read command. The data will appear in the following format with the first two words used for overhead. Word
MSB
0
Word 1
Word 2
Word 3
15
14
13
12
Reserved LSB
Responding Slave Address
MSB
Length of data in bytes
LSB
Data byte 0
MSB
Data byte 1
LSB
Data byte 2
MSB
Data byte 3
LSB
Data byte 4 etc.
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
11
10
9
8
Error
Timeout
Done
Reserved
81
Page 88
MUX32 Write (Auto-Polled), Opcode 41 Writes up to 58 byte of data to the specified MUX32 slave. The Block Transfer Write is formatted as follows: Word
MSB
15
14
13
12
LSB
7
6
5
4
MSB
Length of data in bytes, 1-58 bytes
0
11
1
Word 2
Word 3
9
8
2
1
0
OPCODE 41 (29H) 3
Reserved Word
10
LSB
MUX32 Address
MSB
Data byte 0
LSB
Data byte 1
MSB
Data byte 2
LSB
Data byte 3 etc...
Task Number
Reserved
When the command BTW is complete, set the Initiate bit in the output file. The Command Flags bit map is shown below. The address of Word 0 is O:rrg where O indicates the output file, rr is the CM52 rack address and g is the CM52 group assignment. Word 0
Word
LSB
Used by scanner for block transfers
MSB LSB
Reserved 7
6
1
5
4
3
Reserved
MSB
17
16
15
14
13
2
1
0
Digital
Digital
Initiate
Out 2
Out 1
12
11
10
Reserved
The CM52 will respond by setting the Ack flag when it sees the Initiate flag to signal receipt of the command buffer. When the command is completed the CM52 will set the Done (and possibly Error) flag in the Input file.
82
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 89
The Response Flags bit map is shown below. The address of Word 0 is I:rrg where I indicates the input file, rr is the CM52 rack address and g is the CM52 group assignment. Word
LSB
7
6
5
0
4
MSB
17
16
15
14
Reserved
Word
3
2
1
0
Used by scanner for block transfers
LSB
7
1
6 Reserved
MSB
13
12
11
10
Task 3
Task 2
Task 1
Task 0
Done
Done
Done
Done
1
5
4
3
2
Digital In
Digital In
Error
Reserved Done
Ack
0
2
1
17
16
15
14
13
12
11
10
MUX32
MUX32
MUX32
MUX32
MUX32
MUX32
MUX32
MUX32
Addr 07
Addr 06
Addr 05
Addr 04
Addr 03
Addr 02
Addr 01
Addr 00
Ready
Ready
Ready
Ready
Ready
Ready
Ready
Ready
If the CM52 is configured as a 1/2 rack device, the remaining MUX32 status bits will be present in word 2 and word 3.
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
83
Page 90
HMS Auto-Polled MUX32 Commands
HMS MUX32 Tag Read (Auto-Polled), Opcode 42 Reads data from the HMS Tag at the antenna specified. Control is returned immediately. The MUX32 command (Opcode 40) should be issued following the Tag read command to retrieve the data and status of the read operation. The Block Transfer Write is formatted as follows: Word
MSB
15
14
13
12
0
11
LSB
7
6
5
4
3
Reserved Word 1
10
9
8
2
1
0
OPCODE 42 (2AH)
MSB
Length of data in bytes
LSB
MUX32 Address
Task Number
Word 2
Start Address in Tag
Word 3
Timeout Value (given in 100 ms units, 0 = no timeout)
Reserved
When the command BTW is complete, set the Initiate bit in the output file. The Command Flags bit map is shown below. The address of Word 0 is O:rrg where O indicates the output file, rr is the CM52 rack address and g is the CM52 group assignment. Word 0
Word
LSB
Used by scanner for block transfers
MSB
Reserved
LSB
7
6
1
5
4
3
Reserved
MSB
17
16
15
14
13
2
1
0
Digital
Digital
Initiate
Out 2
Out 1
12
11
10
Reserved
84
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module