The text of a manual · part 3 of 25
Bulletin 5370 CVIM Configurable Vision Input Module Communications Manual: 2 - Introduction
Pages 13 to 19 of 202, from Bulletin 5370 CVIM Configurable Vision Input Module Communications Manual
The original document is the PDF (723 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 Allen-Bradley 5370-CVIM
Page 13
Chapter
2
Introduction Chapter Objectives
In this chapter we provide you with an overview of the options for communicating with the CVIM module. We also describe the types of data that can be accessed or manipulated. The descriptions in this chapter will enable you to determine the type of communications most suitable for your application. You then can proceed to the chapter of this manual that describes the selected option.
How is Data Stored in the CVIM Module?
The result and command data that you can access with a host device is stored in an area of Random Access Memory (RAM) inside the CVIM module. Configuration data which controls the operating instructions for the CVIM module is located in a separate area of memory which can be also be accessed through a host device. Refer to Appendix A for an overview of configuration/results memory. Appendix B, C, and D contain tables listing the information stored in results and configuration memory locations.
How Does the Host Device Read Configuration/Results Information?
The remainder of this chapter describes the various options you have for accessing this information. Refer to Figure 2.1. In summary, your host device will be linked to the CVIM module through one of the following ports:
• Remote I/O (Node Adapter) • RS–232 Interface(s) • Pyramid Integrator Backplane • Local I/O Board Note: The local I/O board has sixteen discrete I/O lines. Fourteen of these lines are outputs only. One of the remaining lines is for input, and can be connected to a presence–sensing device to trigger an inspection process. The other line is not used.
2–1
Page 14
Chapter 2 Introduction
How Does the Host Device Read Configuration/Results Information? (cont’d)
Figure 2.1 CVIM Module Communications Ports
However if you are using the 2801-N27 I/O Interface Box with CVIM Module Series A hardware, only RS–232 port A is active.
1771
1771
2–2
Page 15
Chapter 2 Introduction
Remote I/O (Node Adapter)
The remote I/O port (RIO) is located on the front of the CVIM module as shown in Figure 2.1. Using the remote I/O port, you can connect the following types of devices:
• Allen–Bradley Programmable Controllers (PLC–2, –3, and –5). • Host Computers which have the Allen–Bradley IBM Bus Scanner (Catalog No. 6008–SI). The 6008–SI bus scanner is compatible with the A–B 6121/22 Industrial Computer, Industrial Terminal (Catalog Nos. 1784– T50, 1784–T35), or other IBM PC/AT compatible devices.
RS–232 Ports
As shown in Figure 2.1, the RS–232 ports are located on the I/O Interface Boxes (Catalog No. 2801–N21, –N27). The I/O Interface Box is connected to the MODULE I/O port on the front of the CVIM module. Using the RS–232 interface(s) you can connect a variety of devices which use the RS–232 standard:
• Computers • Operator Interfaces such as Allen–Bradley Industrial Computers and Terminals with serial ports.
• I/O modules such as the Basic module (Catalog No. 1771–RB) or ASCII module (Catalog No. 1771–DA).
• DATAMYTE and Dataliner (requires USER-PAK Software (Catalog No. 5370-UPK)
Local I/O
As shown in Figure 2.1, the local I/O consists of an I/O Board (Catalog No. 1771–JMB), I/O Interface Box (Catalog No. 2801–N21, –N27), an input and up to 14 output modules as configured by the user. The Catalog No. 2801–NC17 cable connects the I/O interface box to the CVIM module.
Pyramid Integrator Backplane
Using the Pyramid Integrator backplane, you can directly communicate data between the CVIM module and other devices installed in the Pyramid Integrator chassis:
• Allen–Bradley PLC–5/250 • MicroVAX Information Processor • Pyramid Integrator Resource Manager 2–3
Page 16
Chapter 2 Introduction
What Types of Information can be Communicated?
Depending upon the type of interface in use, you can access some or all of the information listed below:
• Warning and Pass/Fail data. • Numerical inspection results. • Configuration data.
Discrete Bit Information
With each inspection that the CVIM module performs, individual bits are set. There are 128 bits that can be read as inputs to a host device. These bits (part of the inspection results) indicate:
• Master fault. • Mastership. • Configuration fault. • Module Busy flag. • Missed Trigger flag. • Results Valid flag. • Inspection Tool Pass/Fail/Warning flags. There are 128 bits that can be set as outputs by a host device to control the operation of the CVIM module. These bits control:
• Monitor display. • Inspection trigger. • Toolset selection. • Enable/disable and force discrete I/O. • Selection of operation after reject. • Memory storage location. RAM, EEPROM, RAM Card, or external host memory. Note: For more information on the 128 discrete input and 128 discrete output bits refer to Appendix B.
2–4
Page 17
Chapter 2 Introduction
Results Blocks
The results data for each inspection are stored in Random Access Memory (RAM) and overwrite the results of the previous inspection. The data stored in results blocks contain information regarding reference windows, inspection gages, inspection windows, etc. For a complete description of the results blocks, refer to Appendix C.
Configuration Blocks
The user developed inspection parameters of the CVIM module are stored in the CVIM module’s memory as configuration blocks. This area of memory can be read or manipulated through the Remote I/O port, RS–232 ports (A & B) or Pyramid Integrator backplane. Refer to Appendix D for a complete description of the configuration blocks and their contents.
Communications Cables
If you are not using the Pyramid Integrator backplane for communications, you will have to physically link the CVIM module to the host device. If you need to create a communications cable, refer to the chapter that describes the communications port you are using.
Memory Addressing
Depending upon how you access the CVIM module results and configuration memory, you will have to address the data differently. If you refer to Appendix A, B, and C you will notice that separate columns are provided for Backplane, RS–232, and Remote I/O communications: Note: The RS–232 protocols (ASCII and DF1) do not access data using word and bit addresses. Data is read/written in blocks. We have grouped the RS–232 and Remote I/O ports together in Appendix B, C, and D (where appropriate) for your convenience. You can ignore word and bit addresses if you are using the RS–232 ports (A & B).
2–5
Page 18
Chapter 2 Introduction
Memory Addressing (cont’d)
When you communicate through the Pyramid Integrator backplane all of the data words are numbered consecutively and grouped in blocks. When you use the Remote I/O port, you select a specific block and the first word in each block is word #0. Example of Addressing Results Block 1 Word Number Pyramid Integrator Backplane
RS–232 and Remote I/O
Toolset 1
Toolset 2
24-87
288-351
0–63
In addition, PLC I/O bit numbers are entered in octal format when referencing 1771 I/O, while PLC files and backplane communications specify a decimal bit number. Figure 2.2 illustrates how bits are numbered. Figure 2.2 Bit Numbering Bit Number if Accessing Data Through Remote I/O as a 1771 I/O Rack. (Octal Value)
Bit Number if Accessing Data Through the Backplane or Remote I/O Port Using Integer Files. (Decimal Value)
2–6
15 17
14 13 16 15
12 11 14 13
10 9 12 11
8 7 10 7
6 6
5 5
1
0 0
0 1
0 0
0 0
1 0
4 4
3 3
0 1
2 2
1 1
0 0
1 0
1
Example Word
Page 19
Chapter 2 Introduction
Host Designation
There are four communications ports which you can use simultaneously to access CVIM module data (Remote I/O, RS–232 Ports A & B, and Backplane). Only the host can issue commands to control the operation of the CVIM module. You can read discrete bits and numerical results information through any of the four communications ports, even through non–host devices.
Multiple Hosts
The CVIM module can operate with multiple hosts. You can select one host to perform CVIM module/host configuration transfers, and another host to perform all other CVIM/host operations. These two hosts are referred to as the configuration host (CFG) and the system host (SYS). An example of using multiple hosts is to select RS–232 A as the CFG host, and Remote I/O as the SYS host. Note: Any CVIM communications port can be used for reading results block data regardless of whether or not the device connected to the port is selected as a host. Note: You can select the same host (Stand Alone, Pyramid, Remote I/O, RS–232 A or B) as both the configuration host and the system host.
2–7