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 3 of 12

CM52 Remote I/O Interface Module Operator's Manual, pages 21 to 30

Pages 21 to 30 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 21

Bus Active LED The green Bus Active LED provides status information and will always be in one of three states. Table 12 below explains what each LED state indicates. Table 12, Bus Active LED

LED State

Indication

Off

CM52 bus processor has reset and is not initialized. CM52 is not receiving valid frames from the scanner. A communications timeout occurred, communications have not resumed.

Blinking

PLC is in program mode. Communications have been established. A communications timout, communications have resumed, bus processor has not been reinitialized.

On

Normal I/O commands are being received.

Possible Causes of LED Remaining OFF Reversed Remote I/O Line 1 and Line 2 connections. Incorrect data rate. Incorrect link address. Possible Causes of Frequent Bus Retries Absence or inappropriate placement of terminating resistors Incorrect terminator values (particularly important above 57.6 Kbps)

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

15

Page 22

3 REMOTE I/O INTERFACE 3.1 Overview The CM52 connects over the Remote I/O network to Allen-Bradley PLCs and Remote I/O scanner modules. The link supports remote, timecritical, I/O and control communications. Remote I/O (RIO) is a proprietary network used to communicate between Allen-Bradley (A-B) PLCs and remote I/O racks and other devices. The RIO link is a time-division multiplexed, bit-synchronous, byte-oriented serial communication protocol based on SDLC packet formats. RIO is typically used to transfer I/O bit images between a processor and its remote, discrete I/O interface cards, or to transfer blocks of data between a processor and intelligent I/O cards. RIO is a master-slave network, meaning the PLC scanner acts as the master initiating messages while slaves reply. Only one master is allowed on the network. Slave devices can be physical racks with remote I/O adapters, block I/O modules, operator interfaces, flex I/O, PLCs in adapter mode, and devices using the A-B node adapter chipset (CM52). PC-based RIO cards are available complete with substantial driver support. The node adapter chip set is designed to connect a host processor as an adapter-mode device to the RIO master PLC. In such a case, the node adapter appears as a rack of I/O. The link operates at one of three data rates: 57.6K, 115.2K or 230.4K bits per second. RIO supports 16 nodes at 57.6Kbps at 10,000 feet, or 16 nodes at 115.2Kbps at 5,000 feet, or 32 nodes at 230.4Kbps at 2,500 feet.

16

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

Page 23

3.1.1 Device Addressing Remote I/O devices are addressed by logical rack and logical group. A node adapter device like the CM52, uses two-slot addressing in which two slots are addressed as one logical group. A rack, as defined by the CM52 node adapter, consists of 16 slots with one byte of discrete input and output data associated with each slot. The rack address can range from 0 to 59 (00 to 3B hex) A group consists of two slots and has one word (16 bits) of I/O associated with it. There are eight possible groups per rack. A quarter-rack device occupies two groups. The first quarter-rack begins at group 0, the second quarter at group 2, the third quarter at group 4 and the final quarter at group 6. A device on the RIO link may be configured as a quarter, half, three quarter, or full-rack with the corresponding amount of discrete data associated with it. Furthermore, each partial rack device may be configured to “start” at a particular group address. The starting group address may be limited due to the rack size. During each RIO scan, the scanner updates the appropriate number of input and output words associated with each device on the RIO bus. These I/O words (data) are mapped into the PLC Input and Output files according to the rack and group number. For instance, a half-rack device at Rack 3: Group 2 would map its inputs and outputs to I:032 - I:035 and O:032 - O:035, respectively. The chart below shows the input and output data buffers and how they relate to slots, groups and various rack sizes. In this example a rack address of 3 is assumed. The shaded areas under the various rack sizes indicate the number of I/O bytes allocated to a device of that size.

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

17

Page 24

1/4 Rack

1/2 Rack

3/4 Rack

Full Rack

Group

Input Data

Output Data

(Bytes)

(Bytes)

0

I:030 LSB

O:030 LSB

1

I:030 MSB

O:030 MSB

1

2

I:031 LSB

O:031 LSB

3

I:031 MSB

O:031 MSB

2

4

I:032 LSB

O:032 LSB

5

I:032 MSB

O:032 MSB

3

6

I:033 LSB

O:033 LSB

7

I:033 MSB

O:033 MSB

4

8

I:034 LSB

O:034 LSB

9

I:034 MSB

O:034 MSB

0

5

6

7

Slot

10

I:035 LSB

O:035 LSB

11

I:035 MSB

O:035 MSB O:036 LSB

12

I:036 LSB

13

I:036 MSB

O:036 MSB

14

I:037 LSB

O:037 LSB

15

I:037 MSB

O:037 MSB

If the RIO device was configured as a full rack it would have 16 bytes of discrete input and output data and would have to start at the first quarter, group 0. With other size configurations, the starting location is selectable. For example, a half-rack device could be configured to start at Group 0, 2, or 4 but not 6. Generally, A-B PLCs support auto-configuration in which the RIO scanner automatically detects the number and configuration of all nodes on the bus.

18

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

Page 25

3.1.2 Data Transfer The scanner exchanges data with an RIO device by two methods: discrete commands and block transfer commands. Discrete Commands occur constantly as the scanner exchanges discrete I/O buffers with each slave once per RIO scan. The number of bytes swapped with each device depends on the rack size configuration of that device. Block Transfer Commands are not scanned repeatedly, but are under PLC program control and typically limited to one transfer per rack per RIO scan. They can transfer up to 64 words (128 bytes) of data. When executing Block Transfers, the scanner makes use of the first byte of the discrete data areas for handshaking and status. Therefore, since the CM52 makes use of Block Transfers this byte is not available for I/O data. Block Transfers can only be performed on the first slot of the first module group of the logical rack address space occupied by the CM52.

3.2 Command and Response Structure CM52 commands and their responses are transmitted using a combination of discrete and block transfer data. The Parameters and data associated with a command are downloaded using a Block Transfer Write (BTW) instruction. The Flags that initiate commands and provide command status are bit-mapped in discrete I/O memory. Any data returned by the CM52 is retrieved using a Block Transfer Read (BTR) instruction. Once a set of command parameters is downloaded to the CM52 using a Block Transfer Write function, a handshake sequence is executed using various Flags to ensure proper execution of the command. In general, write commands require only a status response from the CM52 while read commands require the return of both status flags and data. Status responses involve only flags in the discrete input data while a data response also requires a Block Transfer Read.

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

19

Page 26

3.2.1 Command and Response Flags (Discrete Data) The bits used for the Command and Response flags are the same for all CM52 commands. As part of the PLC discrete I/O data these bytes are constantly exchanged between the CM52 and the PLC by the RIO scanner. Thus, they may be read or written by the PLC without issuing any commands to the CM52. The number of discrete I/O bytes exchanged with the CM52 will depend on whether the CM52 is configured as a 1/4 or 1/2 rack device. This makes no difference for the Command flags but does have an effect on the amount of status information returned in the response flags. For both Command and Response Flags the first byte is reserved for scanner Block Transfer control and is unavailable to the CM52. See the section titled “PLC Memory Mapping” for examples of how the Command and Response Flags map to specific PLC I/O registers. Command Flags (Discrete Data) The Command Flags include bits to set the state of the two digital outputs and the Initiate bit used to start a command execution in the CM52. Word 0

Word

LSB

Used by scanner for block transfers

MSB LSB

Reserved by the CM52 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

Initiate Bit The Initiate bit is used to start the CM52 executing the last command received from the PLC via a Block Transfer Write command. The CM52 will begin execution and respond by setting the Acknowledge bit in the Response Flags.

20

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

Page 27

Digital Output Pins The two Digital Outputs Pin bits can be used to change the electrical state of the output points. Placing a “1” in these bits will complete an output circuit. Response Flags (Discrete Data) The Response Flags contain the Task Done bits, the command status bits, the digital input state bits and the MUX32 Data Ready bits. Unlike the Command Flags, the Response Flags are affected by the rack size of the CM52. The first four bytes are the same for either rack size, but if the CM52 is configured as a half-rack device, three additional bytes of status flags can be returned. These status bytes contain Data Ready flags for MUX32 device addresses 8 – 31. Therefore, there is a trade-off between I/O space used by the CM52, and the number of MUX32 devices supported. If more than eight MUX32 devices are connected, the CM52 must be configured as a half-rack. If eight or less MUX32 devices are needed, the CM52 can be configured as a 1/4 rack saving 16 bits of I/O with no loss of functionality. In the table below, the last two words represents the additional bytes that would be defined if the CM52 were configured as a 1/2 rack. The eighth byte is not used. Bit numbers in the charts below use octal notation.

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

21

Page 28

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

Digital

Error

Timeout

Done

Ack

Input 2

Input 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

Data

Data

Data

Data

Data

Data

Data

Data

Ready

Ready

Ready

Ready

Ready

Ready

Ready

Ready

If you have configured the CM52 as a 1/2 rack device, the following bytes will also be in the response. Word

LSB

2

MSB

Word

LSB

3

MSB

7

6

5

4

3

2

1

0

MUX32

MUX32

MUX32

MUX32

MUX32

MUX32

MUX32

MUX32

Addr 15

Addr 14

Addr 13

Addr 12

Addr 11

Addr 10

Addr 09

Addr 08

Data

Data

Data

Data

Data

Data

Data

Data

Ready

Ready

Ready

Ready

Ready

Ready

Ready

Ready

17

16

15

14

13

12

11

10

MUX32

MUX32

MUX32

MUX32

MUX32

MUX32

MUX32

MUX32

Addr 23

Addr 22

Addr 21

Addr 20

Addr 19

Addr 18

Addr 17

Addr 16

Data

Data

Data

Data

Data

Data

Data

Data

Ready

Ready

Ready

Ready

Ready

Ready

Ready

Ready

7

6

5

4

3

2

1

0

MUX32

MUX32

MUX32

MUX32

MUX32

MUX32

MUX32

MUX32

Addr 31

Addr 30

Addr 29

Addr 28

Addr 27

Addr 26

Addr 25

Addr 24

Data

Data

Data

Data

Data

Data

Data

Data

Ready

Ready

Ready

Ready

Ready

Ready

Ready

Ready

17

16

15

14

13

12

11

10

Reserved

Acknowledge The Acknowledge (Ack) bit will be set to one after the CM52 has detected a 1 in the Initiate bit of the Command Header. The CM52 will begin executing the command immediately following setting of the Acknowledge bit.

22

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

Page 29

Done The (Command) Done bit will be set when the CM52 has completed the requested operation, has encountered an error condition, or the timeout value for the operation has expired. Timeout and Error conditions will be returned in bits 2 and 3. Timeout Many commands set a Timeout period for the completion of a command. The Timeout value is expressed in 100 msec increments. If the Timeout value is set to 0, the CM52 will attempt to complete the operation until a Done or Error status is returned. When Timeouts are applied to serial operations, they control the amount of time permitted for each character. In RFID operations, the Timeout applies to the time permitted for the transfer of each block of data to and from the tag. If the Timeout expires before the completion of the tag block transfer, the CM52 will set the Timeout bit and the Done bit to 1. When calculating the Timeout value, be sure to consider the amount of data being transferred, the Antenna transfer rate, and environmental conditions. For example, an Antenna transfer rate of 3000 characters per second and a read or write of 600 characters would require a transfer time of approximately 200 ms. A Timeout value of 5 (representing 500 ms) would be appropriate for a 200 ms transfer. In noisy environments where data errors may occur, a longer Timeout is recommended to allow for retries. Error The CM52 will set the Error bit to one if it encounters an incorrect parameter or command format. The Done bit will also be set. Digital Input The Digital Inputs are used to indicate changes in the electrical state of the input points.

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

23

Page 30

Task Done The Task Done bits are used to signal completion of Posted Commands. For example, you may post a “Read” to Antenna 0 using the Post Tag Read command. A response is given immediately by the CM52 acknowledging receipt of the request. When the Tag is completely read, that Tag’s data is placed in the dedicated Task Buffer in the CM52 and the Task Done bit is set. After the Task Done bit is set, the buffered data may be transferred across the bus using the Buffer Read command. See page 89 for more information on Posted Commands. Data Ready The following four bytes are the Data Ready flags, which represent a 32bit array of the MUX32 bus. When a Slave device on the network has data for the PLC to retrieve, the MUX32 Data Ready bit corresponding to that Slave’s multidrop address will be set to one. If your CM52 is configured as a 1/4 rack device, only the first 8 addresses (one byte) will be present in the response. All Data Ready bits will be present if the CM52 is configured as a 1/2 rack device. PLC Memory Mapping The status and handshake Flags map directly to the PLC’s input and output image files. The location of these bytes in PLC memory is determined by the CM52’s Rack and Group address settings. The address of Word 0 will be I:RRG or O:RRG where RR is the Rack number and G is the Group number. The tables below show how the Command and Response Flags map to the PLC I/O files for two examples of CM52 addresses: as a quarter-rack device at Rack 3, Group 0 and as a half-rack device at Rack 3, Group 2. Bits are numbered in the charts below using octal notation.

24

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