Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 10 of 12

CM52 Remote I/O Interface Module Operator's Manual, pages 91 to 100

Pages 91 to 100 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 91

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 0

LSB MSB

Used by scanner for block transfers 17

16

15

14

Reserved

Word

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

85

Page 92

HMS MUX32 Tag Write (Auto-Polled), Opcode 43 Write up to 58 bytes of data to the HMS Tag at the Antenna specified. Control is returned immediately. The MUX32 Read command (Opcode 43) should be issued following the Tag Write Command to retrieve the status of the Write operation. The Block Transfer Write is formatted as follows: Word

MSB

15

14

13

12

LSB

7

6

5

4

0

11

1

9

8

2

1

0

OPCODE 43 (29H) 3

Reserved Word

10

Task Number

MSB

Length of data in bytes, 1-58 bytes

LSB

MUX32 Address

Word 2

Start Address in Tag

Word 3

Timeout Value (given in 100 ms units. 0 = no timeout)

Word 4

Word n

MSB

Data byte 0

LSB

Data byte 1

MSB

Data byte 2

LSB

Data byte 3, etc.

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

86

Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module

Page 93

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

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

87

Page 94

HMS MUX32 Tag Fill (Auto-polled), Opcode 44 A Fill Byte is written to consecutive addresses in the HMS Tag at the Antenna specified. Control is returned immediately. The MUX32 Read Command (Opcode 40) should be issued following the Tag Fill to retrieve the status of the fill operation. The Block Transfer Write is formatted as follows: Word

MSB

15

14

13

12

LSB

7

6

5

4

0

11

1

9

8

2

1

0

OPCODE 44 (2CH) 3

Reserved Word

10

MSB

Fill byte

LSB

MUX32 Address

Task Number

Word 2

Length of fill in bytes

Word 3

Start address in Tag

Word 4

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 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.

88

Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module

Page 95

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

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.

Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module

89

Page 96

3.6.6 Posted Commands Posted commands separate the request for an operation (execution of a posted command) from the transfer of data (completion of a task). This separation permits the CM52 to process up to four requested operations simultaneously. After a posted command has been requested, the CM52 responds immediately, confirming the command before actually transferring data. When the second stage of the operation is complete, the Task Done bit is set in the Response Flags, indicating that data and status information is ready for retrieval from the Task Buffer. Data for posted commands is transferred through one of four Task Buffers. The Task Buffers have a maximum of 16,384 bytes each. There are two types of posted commands, Read commands and Write commands: Read Commands On receipt of a “Read” posting command, the CM52 does the following: The Task Done bit is cleared. The CM52 completes the handshake protocol as described on page , and returns a Done in the Response Header. The data is read from the tag or serial port. The data is stored in a Task Buffer in the CM52. The Task Done bit is set when the operation is complete. The host PLC should take the following actions: On receipt of a posted Read Done from the CM52, begin monitoring the Task Done bit. When the Task Done bit is set, use the Buffer Read Command to retrieve the status and data of the posted command.

90

Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module

Page 97

Continue reading until the Buffer Read command returns a length of 0. Each successive call will retrieve the next segment in the Task Buffer.

Write Commands Prior to invoking a posted write, the data to be written must be moved to the Task Buffer using one or more Buffer Write commands. Repeat the Buffer Write command until all data is written to the Task Buffer. Each successive call will append the data to the next segment in the Task Buffer. On receipt of the “Write” posting command, the CM52 does the following: Clears the Task Done bit. Completes the handshake protocol as described on page , and returns a Done in the Response Header. Writes the data to the tag or serial port using data in the Task Buffer. When the operation is complete, clears the Task Buffer of write data and then writes status data. Sets the Task Done bit. The host PLC should take the following actions: On receipt of a posted Write Done from the CM52, begin monitoring the Task Done bit. When the Task Done bit is set, use the Buffer Read Command to determine the status of the posted command.

Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module

91

Page 98

Post Tag Read, Opcode 60 A Tag Read is posted. Reads Data from the Tag in 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 60 (3CH) 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

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

92

Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module

Page 99

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

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

93

Page 100

Post Tag Write, Opcode 61 A Tag Write is posted. Writes data to the tag in range of the specified antenna. 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 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 61 (3DH) 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

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.

94

Copyright 1998, Escort Memory Systems CM52 Remote I/O Interface Module