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 4 of 5

Operator's Manual CM900 AutoID Interface Module, pages 31 to 40

Pages 31 to 40 of 50

The original document is the PDF (852 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 CM900

Page 31

EXAMPLE Sets Serial Port COM1 to RS232, 9600 baud, no parity, 8 data bits, 1 stop bit.

Command from PLC

Response from CM900

MSB

LSB

Remarks

MSB

LSB

Remarks

01H

10H

COM1 port, perform Command 10

01H

10H

Port echo, Command echo

FFH

FFH

Message Terminator

00H

E8H

Set Interface Type to RS232

25H

80H

Set Baud Rate to 9600

00H

01H

Set Parity to none

00H

08H

Set Data Bits to 8

00H

01H

Set Stop Bits to 1

FFH

FFH

Message Terminator

Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module

27

Page 32

Command 11 (11 Hex): Serial Port Block Read DESCRIPTION Read a specified number of bytes from a specific serial port. DISCUSSION The Serial Port Block Read command is used to read a given quantity of bytes from the specified serial port. Remember that there is a maximum of 100 registers of data that can be passed through the backplane interface per read, resulting in 198 bytes of ASCII data that can be transferred, with an additional two bytes used to transmit the command. Unlike the RFID read and write commands, the serial read command will return data in the MSB of the registers. This allows for more data to be transferred from the connected serial device. There is an optional delay for serial input that can be included in the command. The delay is measured in increments of 5 milliseconds. The CM900 will try for the specified delay period to read from the serial port. The CM900 will not accept any other command while it is waiting to accept serial data in the port. EXAMPLE Reads nine bytes of data from serial port COM1, with a 400 (0190H) x 5 milliseconds = 2 second delay.

Command from PLC

Response from CM900

MSB

LSB

Remarks

MSB

LSB

Remarks

01H

11H

COM1 port, perform Command 11

01H

11H

Port echo, Command echo

00H

09H

Read 9 bytes

44H

41H

Read Data 1 & 2 = ’DA’ (44H, 41H)

01H

90H

2 second delay

54H

41H

00H

00H

Terminating Character

Read Data 3 & 4 = ’TA’ (54H, 41H)

4CH

4FH

FFH

FFH

Message Terminator

Read Data 5 & 6 = ’LO’ (4CH, 4FH)

47H

49H

Read Data 7 & 8 = ’GI’ (47H, 49H)

43H

00H

Read Data 9 = ’C’ (43H)

FFH

FFH

Message Terminator

28

Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module

Page 33

Command 12 (12 Hex): Serial Port Block Write DESCRIPTION Write a specified number of bytes to a specific serial port. DISCUSSION The Serial Port Block Write command is used to write a given quantity of bytes to the specified serial port. Remember that there is a maximum of 100 registers of data that can be passed through the backplane interface per read. Unlike the RFID read and write commands, the serial write command utilizes the MSB as well as the LSB of the registers. This allows for more data to be transferred to the connected serial device. EXAMPLE Write 8 bytes of data to serial port COM1.

Command from PLC

Response from CM900

MSB 01H

MSB

LSB

Remarks

01H

12H

Port echo, Command echo

FFH

FFH

Message Terminator

LSB 12H

42H

42H

52H

20H

43H

4FH

44H

45H

FFH

FFH

Remarks COM1 port, perform Command 12 Write Data 1 & 2 = ’BA’ (42H, 41H) Write Data 3 & 4 = ’R ’ (52H, 20H) Write Data 5 & 6 = ’CO’ (43H, 4FH) Write Data 7 & 8 = ’DE’ (44H, 45H) Message Terminator

Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module

29

Page 34

Command 13 (13 Hex): Clear Serial Port DESCRIPTION This command is used to clear the 256K byte serial buffer on the specified CM900 serial port. DISCUSSION This command has a time out value to ensure that if a stream of data is being sent to the CM900, the CM900 will not delay clearing the buffer too long. EXAMPLE The following example will clear the 256K buffer on serial COM1, the Clear Serial Buffer Command cannot exceed 2 seconds. Command from PLC

Response from CM900

MSB 01H

MSB

LSB

Remarks

01H

13H

Port echo, Command echo

FFH

FFH

Message Terminator

LSB 13H

01H

90H

FFH

FFH

30

Remarks COM1 port, perform Command 13 Command time out (0190H x 5 ms = 2 sec.) Message Terminator

Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module

Page 35

Command 20 (20 Hex): Posted Block Write DESCRIPTION This command posts an RF Block Write on the antenna port. DISCUSSION The antenna is polled for twenty milli-seconds every program scan of the CM900. Bit 2 is set to indicate that a Posted Block Write is in progress. When an RF tag moves within range of the polling antenna the Block Write will be complete. As the posted write is completed, bit 0 is set, and bit 2 is cleared. See page 35 for information on the Status Byte. Note: If another command is called during the polling that takes two seconds or longer to complete, i.e. a serial command with a two second time-out, the antenna will not get polled for the time required by that command.

Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module

31

Page 36

EXAMPLE The following command will post a contiguous Block Write on the antenna port. When a tag comes into range of Antenna 0, starting at address 10 dec on the tag it will write 3 hex, E hex, and A hex in consecutive addresses. Command from PLC

Response from CM900

MSB 00H

MSB

LSB

Remarks

00H

20H

Port echo, Command echo

FFH

FFH

Message Terminator

LSB 20H

00H

0AH

00H

03H

00H

0DH

00H

0E

00H

0AH

FFH

FFH

32

Remarks ANT port, perform Command 20 Posted Block Write starting Address (10 dec) Posted data to be written at starting address (10 dec) Posted data to be written at starting address plus one (11 dec) Posted data to be written at starting address plus two (12 dec) Posted data to be written at starting address plus three (13 dec) Message Terminator

Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module

Page 37

Command 21 (21 Hex): Posted Block Read DESCRIPTION This command posts a contiguous Block Read on a Antenna 0. DISCUSSIONS The antenna is polled for twenty milli-seconds every scan of the CM900. Bit 3 will indicate that a posted Block Read is in progress. When an RF tag is within range of the polled antenna, the Block Read will be completed and the data read will be stored in the Posted Read Data Buffer in the CM900. As the posted Block Read is completed, the CM900 will turn on bit 1 and change bit 3. See page 35 for information on the Status Byte. Note: If another command is called during the polling that takes two seconds or longer to complete, i.e. a serial command with a two second time-out, the antenna will not get polled for the time required by that command. EXAMPLE The following command will post a Block Read on the antenna port at address 16 decimal for a length of five bytes. Command from PLC

Response from CM900

MSB 00H

MSB

LSB

Remarks

00H

21H

Port echo, Command echo

FFH

FFH

Message Terminator

LSB 21H

00H

10H

00H

05H

FFH

FFH

Remarks ANT port, perform Command 21 Posted Block Read starting Address (16 dec) Posted Block read length (5 dec) Message Terminator

Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module

33

Page 38

Command 22 (22 Hex): Read Posted Read Data Buffer DESCRIPTION This command reports the last data to be stored in the buffer by a Posted Block Read command. DISCUSSION CM900 will pass data stored in the buffer from the RF antenna to the PLC and update Status Byte bit 1. EXAMPLE The following example requests the CM900 to read the data collected in the Posted Read Data Buffer from the RF antenna.* Command from PLC

Response from CM900

MSB 00H

LSB 22H

MSB

LSB

Remarks

00H

22H

Port echo, Command echo

FFH

FFH

00H

23H

Data read at starting address (16 dec)

00H

45H

Data read at starting address plus one(17 dec)

00H

BCH

Data read at starting address plus two (18 dec)

00H

DEH

Data read at starting address plus three (19 dec)

00H

98H

Data read at starting address plus four (20 dec)

FFH

FFH

Message Terminator

Remarks RF port, perform Command 22 Message Terminator

* Addresses are from the Post Block Read example on page 33.

34

Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module

Page 39

Command 23 (23 Hex): Posted Commands Status Byte DESCRIPTION This command reports the status of all posted commands pending or completed for the RF port. DISCUSSION The Status Byte has the following structure: Table 5, Posted Command Status Byte Structure Bit

Value

Description

7

0

Spare - always set to 0

6

0

Spare - always set to 0

5

1

Spare - always set to 1

4

1

Spare - always set to 1

3

0 or 1

Posted Block Read Command in Process Set to 1, After Posted Block Read was requested and before it is completed Reset to 0, After tag moves into range of antenna and Posted Block Read Is completed, Cancel All Posted Operations Command has been requested

2

0 or 1

Posted Block Write Command in Process Set to 1, After Posted Block Write was requested and before it is completed Reset to 0, After tag moves into range of antenna and Posted Block Write Is completed, Cancel All Posted Operations Command has been requested

1

0 or 1

Posted Block Read Complete Set to 1, Requested Posted Block Read was completed, Posted Read Data Buffer ready to read Reset to 0, After Read Posted Block Read Data Buffer has been requested, Cancel All Posted Operations Command has been requested

0

0 or 1

Posted Block Write Complete Set to 1, Requested Posted Block Write was completed Reset to 0, After Status Byte has been requested, When a new posted Write/Read is requested, Cancel All Posted Operations Command has been requested

Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module

35

Page 40

EXAMPLE The following command requests the Posted Status Byte for the RF antenna. Command from PLC

Response from CM900

MSB 00H

MSB

LSB

Remarks

00H

23H

Port echo, Command echo

00H

34H

Status byte for RF antenna

FFH

FFH

Message Terminator

FFH

36

LSB 23H FFH

Remarks ANT port, perform Command 23 Message Terminator

Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module