The text of a manual · part 11 of 12
CM52 Remote I/O Interface Module Operator's Manual, pages 101 to 110
Pages 101 to 110 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 101
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
95
Page 102
Post Serial Read, Opcode 62 A Serial Read command is posted. Reads data from the specified serial port. The Block Transfer Write is formatted as follows: Word
MSB
15
14
13
12
0
11
10
9
8
2
1
0
OPCODE 62 (3EH) LSB
7
6
5
4
3
Reserved
Task Number
0=COM1 1=COM2
Word 1
MSB
Timeout Value (given in 100 ms units, 0= no timeout)
LSB
Length of read in bytes
Word 2
Start address in RFID tag
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.
96
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 103
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
97
Page 104
Post Serial ReadLn, Opcode 63 A Serial ReadLn is posted. Reads data from a specified serial port. Data is read until the maximum read length is reached or the termination character is found. The Block Transfer Write is formatted as follows: Word
MSB
15
14
13
12
0
11
10
9
8
2
1
0
OPCODE 63 (3FH) LSB
7
6
5
4
3
Reserved
Task Number
0=COM1 1=COM2
Word 1
Word 2
MSB
Timeout Value (given in 100 ms units, 0 = no timeout)
LSB
Length of read in bytes
MSB LSB
Reserved Termination Character
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.
98
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 105
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
99
Page 106
Buffer Read, Opcode 68 Reads data from the Task Buffer designated by the Task Number. Issue this command using the same Task Number as the Posted Command, (only) after the Task Done bit is set. The first call to Buffer Read following a Posted Read retrieves data starting at buffer offset 0. Subsequent calls step through the buffer, retrieving additional data. The buffer size for each task is 16,384 bytes. If no data remains, the read operation returns a positive confirmation with a length of 0. The Block Transfer Write is formatted as follows: Word
MSB
15
14
13
12
0
11
10
9
8
2
1
0
OPCODE 68 (44H) LSB
7
6
5
4
3
Reserved
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.
100
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 107
Response, Posted Write The Posted Write 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
Digital In
Digital
Error
Reserved
Done
Ack
2
In 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. 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 status will appear in the following format with the first word used for overhead. Word
MSB
0
15
14
13
12
Reserved LSB
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
11
10
9
8
Error
Timeout
Done
Reserved
Reserved
101
Page 108
Response, Posted Read The Posted Read 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
Digital In
Digital
Error
Reserved
Done
Ack
2
In 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. To retrieve the data read from the Tag you must issue a Block Transfer Read (BTR) to collect the command status and data from the CM52. Up to 126 bytes of data can be returned. Word
MSB
7
6
0
LSB Word 1
Word 2
5
4
Reserved
2
1
0
Error
Timeout
Done
Reserved
Length of data in bytes, 1- 126 bytes
MSB
Data byte 0
LSB
Data byte 1
MSB
Data byte 2
LSB
Data byte 3 etc.
102
3
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 109
Buffer Write, Opcode 69 Writes data to the Task Buffer designated. Issue the subsequent Posted Write command using the Task Number as the Buffer Write Command. The first call to Buffer Write is done at buffer offset 0. Subsequent writes are appended to the buffer. When a Posted Write is done, the buffer is cleared, and the next call to Buffer Write will place data at buffer offset 0. The buffer size for each task is 16,384 bytes. To retrieve the status of the original posted command, issue a Buffer Read Command. Up to 124 bytes of data can be written. Word
MSB
15
14
13
12
0
11
LSB
7
6
5
4
3
Reserved Word 1
Word 2
Word n
10
9
8
2
1
0
OPCODE 69 (45H)
MSB
Reserved
LSB
Number of bytes to write
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
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
103
Page 110
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
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
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.
104
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module