The text of a manual · part 6 of 12
CM52 Remote I/O Interface Module Operator's Manual, pages 51 to 60
Pages 51 to 60 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 51
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 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
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
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.
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
45
Page 52
Reset Tag Battery Timer, Opcode 13 Resets the Battery Timer in the tag (in the range of the specified antenna). The Block Transfer Write is formatted as follows: Word
MSB
15
14
13
12
0
11
10
9
8
2
1
0
OPCODE 13 (0DH) LSB
7
6
5
4
3
Reserved
Task Number
0=ANT0 1=ANT1
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.
46
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 53
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
47
Page 54
Tag-to-Tag Transfer, Opcode 20 Copies data from one Tag Memory area to another Tag Memory area. This command can be used to copy data from one location in a Tag to another location in the same Tag, or to copy data from an area of one tag to an area of the other Tag. Either of the two HS antennas can be designated as the Read and Write Antenna. If Tag Verify is enabled, the data written to the Write Antenna is read back and verified. The Timeout parameter applies to the read and write operations (and the verify operation, if enabled) individually, not the entire transfer operation. The command returns upon completion, or when an error or timeout is encountered in any one of the nested operations. Therefore, status returned can indicate an error or timeout condition in the read, write or verify operations. The Block Transfer Write is formatted as follows: Word
MSB
15
14
13
12
LSB
7
6
5
4
MSB
Read Antenna (0 or 1)
LSB
Write Antenna (0 or 1)
0
11
1
9
8
2
1
0
OPCODE 20 (14H) 3
Reserved Word
10
Task Number
Word 2
Starting Tag Address to read from, in bytes
Word 3
Starting Tag Address to write to, in bytes
Word 4
Number of bytes to transfer
Word 5
Timeout - in 100 ms units, 0 = no timeout
Reserved
When the command BTW is complete, set the Initiate bit in the output file.
48
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 55
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 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
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
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.
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
49
Page 56
3.6.3 RS232 Serial Interface Commands RS232 Serial Interface commands are divided into two groups - General and HMS-specific. These are explained in the following two sub-sections. General RS232 Commands NOTE: The maximum length per command is limited to 126 bytes by the maximum 128 less 2 bytes of overhead. The serial port circular buffers are 1 kbyte. For longer reads or writes, use the Post Serial Read/Write commands. Serial ReadLn, Opcode 9 Reads a specified length of data from a selected 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
LSB
7
6
5
4
0
11
10
9
8
2
1
0
OPCODE 9 (09H) 3
Reserved
Task Number
0=COM1 1=COM2
Word 1 Word 2
Timeout Value (given in 100 ms units, 0 = no timeout) MSB
Termination Character (user selected)
LSB
Number of bytes to read. 1-126 (binary 0000 0001 = 1 byte, etc.)
When the command BTW is complete, set the Initiate bit in the output file.
50
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 57
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 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
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
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.
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
51
Page 58
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 word used for overhead. Word 0
Word 1
Word n
52
MSB
Reserved
LSB
Number of bytes read
MSB
Data byte 0
LSB
Data byte 1 - continued until the end of the data field
MSB
Data byte (n x 2)
LSB
Data byte (n x 2) + 1
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 59
Serial Read, Opcode 11 Reads up to 128 characters of data from the specified serial port. The Block Transfer Write is formatted as follows: Word
MSB
15
14
13
12
LSB
7
6
5
4
0
11
10
9
8
2
1
0
OPCODE 11 (0BH) 3
Reserved
Task Number
0=COM1 1=COM2
Word 1 Word 2
Timeout Value (given in 100 ms units, 0 = no timeout) MSB LSB
Reserved Number of bytes to read (binary 0000 0001 = 1 byte, etc.)
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 or Timeout) flag in the Input file.
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
53
Page 60
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
Digital In
Digital In
Error
Timeout
Done
Ack
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. 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. Word 0
Word 1
Word n
54
MSB
Data Byte 0
LSB
Data Byte 1
MSB
Data Byte 2
LSB
Data Byte 3
MSB
Data Byte (n x 2)
LSB
Data Byte (n x 2) +1
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module