The text of a manual · part 7 of 12
CM52 Remote I/O Interface Module Operator's Manual, pages 61 to 70
Pages 61 to 70 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 61
Serial Write, Opcode 12 Writes up to 124 bytes of data to 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 12 (0CH) 3
Reserved
Task Number
0=COM1 1=COM2
Word 1
Word 2
Word 3
MSB
Reserved
LSB
Number of bytes to write, 1-124 bytes (binary 0000 0001 = 1 byte, etc.)
MSB
Data byte 0
LSB
Data byte 1
MSB
Data byte 2
LSB
Data byte 3 - until the end of the data to be written.
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
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
55
Page 62
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.
56
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 63
Clear Serial Buffers, Opcode 14 Clears the Input/Output Serial Buffers for the designated 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 14 (0EH) 3
Reserved
Task Number
0=COM1 1=COM2
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.
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
57
Page 64
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.
58
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 65
HMS RS232 Commands
HMS Tag Fill (RS232), Opcode 16 Writes a fill byte to consecutive HMS tag address at the specified serial port. You can define as many as 30 different fill fields. 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 16 (10H) 3
Reserved
Task Number
0=COM1 1=COM2
Word 1
MSB
Fill Byte (0-255)
LSB
Number of Fields to Follow (1-30)
Word 2
Timeout Value (in 100 ms units, 0 = no timeout)
Word 3
Field 1: Length (number of bytes)
Word 4
Field 1: Start Address in RFID Tag
Word 5
Field 2: Length (number of bytes)
Word 6
Field 2: Start Address in RFID Tag
Word
Field n: Length (number of bytes)
(n x 2) +1 Word
Field n: Start Address in RFID Tag
(n x 2) +2
When the command BTW is complete, set the Initiate bit in the output file.
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
59
Page 66
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
3
1
0
Used by scanner for block transfers 14
Reserved
Word
2
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.
60
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 67
HMS Tag Read (RS232), Opcode 17 Reads data from the HMS Tag at the specified serial port. The total number of data bytes for all fields is 128. The Block Transfer Write is formatted as follows: Word
MSB
15
14
13
12
0
11
10
9
8
2
1
0
OPCODE 17 (11H) LSB
7
6
5
4
3
Reserved
Task Number
0=COM1 1=COM2
Word 1
MSB LSB
Reserved Number of Fields to Follow (1-24)
Word 2
Timeout Value (in 100 ms units, 0 = no timeout)
Word 3
Field 1: Length (number of bytes)
Word 4
Field 1: Start Address in RFID Tag
Word 5
Field 2: Length (number of bytes)
Word 6
Field 2: Start Address in RFID Tag
Word
Field n: Length (number of bytes)
(n x 2) + 1 Word
Field n: Start Address in RFID Tag
(n x 2) + 2
When the command BTW is complete, set the Initiate bit in the output file.
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
61
Page 68
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
3
1
0
Used by scanner for block transfers 14
Reserved
Word
2
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.
62
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 69
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. A maximum of 128 bytes of data can be retrieved. Word 0
Word 1
Word n
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
63
Page 70
HMS Tag Write (RS232), Opcode 18 Writes data to the HMS Tag at the specified serial port. A maximum of 118 bytes can be written using a single field. Reduce the data payload by 2 bytes for each additional field definition. The Block Transfer Write is formatted as follows: Word
MSB
15
14
13
12
0
11
10
9
8
2
1
0
OPCODE 18 (12H) LSB
7
6
5
4
3
Reserved
Task Number
0=COM1 1=COM2
Word 1
MSB LSB
Reserved Number of Fields to Follow (1-11)
Word 2
Timeout Value (in 100 ms units, 0 = no timeout)
Word 3
Field 1: Length (number of bytes)
Word 4
Field 1: Start Address in RFID Tag
Word 5
Field 2: Length (number of bytes)
Word 6
Field 2: Start Address in RFID Tag
Word
Field n: Length (number of bytes)
(n x 2) + 1 Word
Field n: Start Address in RFID Tag
(n x 2) + 2 Word
Data bytes to write, where “F” is the field number (118 bytes max.)
(F x 2) + 3
When the command BTW is complete, set the Initiate bit in the output file.
64
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module