The text of a manual · part 5 of 12
CM52 Remote I/O Interface Module Operator's Manual, pages 41 to 50
Pages 41 to 50 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 41
Word Mode Words on the master are transformed to bytes on the slave. i.e., Master
Slave
0012 0034
=>
1234 (write)
0012 0034
<=
1234 (read)
Swap Mode and Word Mode The bytes are swapped in each word. i.e., Master
Slave
1200 3400
=>
1234 (write)
1200 3400
<=
1234 (read)
Set up the Block Transfer Write data as follows. Word
MSB
15
14
13
0
12
11
10
9
8
2
1
0
10
9
8
OPCODE 120 (78H) LSB
7
6
5
4
3 Reserved
Word
MSB
15
14
13
12
LSB
7
6
5
4
3
2
1
0
1
11 Reserved
Reserved
Word
Swap
Time
Ant.
Trace
Tag
Mode
Mode
Stamp
Type
Mode
Verify
0=off
0=off
0=off
0=HS
0=off
0=off
1=on
0=on
1=on
1=HL
1=on
1=on
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
35
Page 42
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
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
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.
36
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 43
Define Serial Parameters, Opcode 10 Prior to doing serial I/O, the serial ports must be configured. Typically, this operation is only done once, during program initialization. The default values are: COM1 = RS232 with a baud rate set at a value determined when the software is burned into EPROM. This is typically 9600 baud. COM2 = RS232, 9600, n, 8, 1 Set up the Block Transfer Write data as follows: Word
MSB
15
14
13
12
0
11
10
9
8
2
1
0
OPCODE 10 (0AH) LSB
7
6
5
4
3 Reserved
0=COM1 1=COM2
Word
MSB
15
14
13
1
12
11
10
Reserved
9
8
Data Bits
Parity
0=7
MSB
1=8
00=none 01=even 10=odd
LSB
7
6
5
Parity
Stop
Baud Rate
4
3
2
1
0
LSB
Bits
0000 = 300
0100 = 4800
00 = RS232
(see bit
0=1
0001 = 600
0101 = 9600
01 = RS422
8)
1=2
0010 = 1200
0110 = 19200
10 = RS485
0011 = 2400
0111 = 38400
11 = RS485/
Interface Type
MUX32
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
37
Page 44
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
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
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.
38
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 45
3.6.2 Antenna Port Commands HS Tag Fill, Opcode 4 This command will fill a range or ranges of consecutive addresses in the active tag with a specified fill value. The maximum number of data bytes for a single field is 118, less 4 bytes for each additional field definition. Set up the Block Transfer Write data as follows. Word
MSB
15
14
13
12
0
11
10
9
8
2
1
0
OPCODE 4 (04H) LSB
7
6
5
4
3
Reserved
Task Number
0=ANT0 1=ANT1
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
39
Page 46
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.
40
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 47
HS Tag Read, Opcode 5 This command will read data from a range or ranges of consecutive addresses in the active tag into the CM52. The total number of data bytes for all fields cannot exceed 128 bytes in one tag read command. Multiple Tag Read commands or a Posted Tag Read command must be used if greater than 128 bytes of data must be read. Once the command is Done, issue a Block Transfer Read instruction to retrieve the data from the CM52. The Block Transfer Read instruction may request a word length of 0 – the CM52 will return the number of bytes specified by the initial Tag Read command BTW. Set up the Block Transfer Write data as follows. Word
MSB
15
14
13
12
LSB
7
6
5
4
0
11
10
9
8
2
1
0
OPCODE 5 (05H) 3
Reserved
Task Number
0=ANT0 1=ANT1
Word 1
MSB LSB
Reserved 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
41
Page 48
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.
42
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module
Page 49
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
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
43
Page 50
HS Tag Write, Opcode 6 This command will write data to a range or ranges of consecutive addresses in the active tag. The total number of data bytes for a single field cannot exceed 118 bytes in one tag read command. Subtract 4 bytes of data payload for each additional field definition. Multiple Tag Write commands or a Posted Tag Write command must be used if greater than 118 bytes of data must be written. Set up the Block Transfer Write as follows: Word
MSB
15
14
13
12
0
11
10
9
8
2
1
0
OPCODE 6 (06H) LSB
7
6
5
4
3
Reserved
Task Number
0=ANT0 1=ANT1
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 Word
Words with the data to be written where “F” is the number of fields. Byte 0 is the
(F x 2) + 3
MSB followed by byte 1 as LSB and so forth.
When the command BTW is complete, set the Initiate bit in the output file.
44
Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module