The text of a manual · part 6 of 25
Bulletin 5370 CVIM Configurable Vision Input Module Communications Manual: 4 - Using the Remote I/O Link, pages 38 to 46
Pages 38 to 46 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 38
Chapter
4
Using the Remote I/O Link Chapter Objectives
In this chapter we provide:
• Basic description of Remote I/O communications. • Connection diagrams. • Description of CVIM module setup requirements. • Three example PLC programs for accessing CVIM module data. • An example 6008–SI program.
Remote I/O Communications
As stated earlier, the Remote I/O port is located on the front of the CVIM module and is labeled RIO. This port allows the CVIM module to become a link in an Allen–Bradley Remote I/O network which can be up to 10,000 feet long. Data on the network can be transmitted at baud rates as high as 230K. Maximum Link Length (Feet)
Baud Rate
10,000
57.6K
5,000
115.2K
2,500
230.4K*
* Only applies to communications between PLC-5/250 controllers in other racks.
Use twin–axial cable (Catalog No. 1770–CD) to connect the CVIM module to other devices. This cable connects to the Remote I/O port (labeled RIO) and the next device on the network. Refer to Figures 4.1 through 4.8 for connection diagrams.
4–1
Page 39
Chapter 4 Using the Remote I/O Link (Node Adapter)
Remote I/O Communications (cont’d)
Figure 4.1 PLC–5 to CVIM Module– Remote I/O Link 1771 I/O Rack PLC 5/15 5/25 5/30 5/40 5/60
CVIM Module
Catalog No. 1770–CD Cable
RIO
Figure 4.2 6008 SI IBM PC/AT Scanner to CVIM Module– Remote I/O Link CVIM Module 6008 SI I/O Scanner IBM PC/AT
RIO Catalog No. 1770–CD Cable
Figure 4.3 6008 SV VME Scanner to CVIM Module– Remote I/O Link CVIM Module 6008 SV I/O Scanner Host Computer RIO Catalog No. 1770–CD Cable
4–2
Page 40
Chapter 4 Using the Remote I/O Link (Node Adapter)
Remote I/O Communications (cont’d)
Figure 4.4 6008 SQH1/2 Q–BUS Scanner to CVIM Module–Remote I/O Link CVIM Module 6008 SQH1/2 I/O Scanner Host Computer RIO Catalog No. 1770–CD Cable
Figure 4.5 Mini PLC–2 to CVIM Module– Remote I/O Link 1771 I/O Rack MINI PLC–2 2/02 2/15 2/16 2/17
CVIM Module Catalog No. 1771–SN Sub I/O Scanner Module
Catalog No. 1770–CD Cable
RIO
Figure 4.6 PLC–2 to CVIM Module– Remote I/O Link CVIM Module Catalog No. 1772–CS Cable PLC–2/20 –2/30
Catalog No. 1772–SD2 Scanner Distribution Module Catalog No.1771–CJ/CK Power Cable
RIO Catalog No. 1770–CD Cable
4–3
Page 41
Chapter 4 Using the Remote I/O Link (Node Adapter)
Remote I/O Communications (cont’d)
Figure 4.7 PLC–3 to CVIM Module–Remote I/O Link CVIM Module
PLC–3
Catalog No. 1775– S4A/S4BS5/SR/SR5 I/O Scanners
Catalog No. 1770–CD Cable
RIO
Figure 4.8 PLC–5/250 to CVIM Module– Remote I/O Link Pyramid Integrator Rack
CVIM Module Remote Scanner
PLC–5/250 Catalog No. 1770–CD Cable
4–4
RIO
Page 42
Chapter 4 Using the Remote I/O Link (Node Adapter)
Remote I/O Communications (cont’d)
Figure 4.9 Typical Hardware Layout for Remote I/O
2705–P11J1 RediPANEL
2801
Note: You can also read the data valid signal over the remote I/O link.
4–5
Page 43
Chapter 4 Using the Remote I/O Link (Node Adapter)
Remote I/O Communications (cont’d)
When installed on a Remote I/O network, the CVIM module acts as a slave device. Another device such as a PLC or computer will act as a host device. This means that the CVIM module will not initiate the sending of any data until a request is made by the host. To a host device, the CVIM module will appear simultaneously as both a full I/O rack on the network (128 input bits and 128 output bits) and as an intelligent module with block transfer capability in group 0, slot 0 in the same rack. Refer to Appendix B for a description of discrete bit data. Note: If the CVIM module is the last node on a network, you must terminate the communication line (refer to Figure 4.9 for an example).
What Functions can be Performed over the Remote I/O Network?
A hist link can request or manipulate the following data over the Remote I/O link:
• Obtain CVIM module inspection result information. Refer to Appendix B & C.
• Upload or download CVIM module configurations for inspections. Refer to Appendix D.
• Issue Configuration Read/Write commands between the following CVIM module memory locations: CVIM module Random Access Memory (RAM) and CVIM module Electrically Erasable Programmable Only Memory (EEPROM). RAM is volatile and EEPROM is non-volatile. CVIM module RAM and RAM card. The RAM card slides into a slot on front of the CVIM module. CVIM module RAM and host memory.
• Change run-time display menus. • Enable/Disable local I/O board. • Force local I/O On or Off.
4–6
Page 44
Chapter 4 Using the Remote I/O Link (Node Adapter)
Obtaining Inspection Result Information
You can obtain inspection result information for each of the inspection tools over the Remote I/O link. There are two levels of access to this information:
• Discrete Bits. These bits indicate pass/fail/warning data. • Result Data Words. These words contain actual inspection result data such as measured lengths, number of black pixels, etc. Note: Refer to Appendix B for a description of the discrete bit results and Appendix C for a description of numerical results data blocks.
CVIM Module Configuration Instructions
If you are using the Remote I/O link to communicate with a PLC–2, –3, or –5 (or PLC–5/250 in another rack), you must configure the CVIM module as follows: Select the Remote I/O port for communications: Note: This step is not required if you are only reading results. 4. Select the setup menu <Setup>. 5. Select the environment menu <Envirn>. 6. Select the system menu <System>. 7. Select a Host menu <CFG Host> or <SYS Host>. 8. Select remote I/O option <Remote I/O>. Note: Unless a separate configuration host is being used, set both the CFG Host & SYS Host for Remote I/O. Configure CVIM module I/O parameters: 9. Select the I/O menu <I/O>. 10.Select <1771 Remote I/O> option. 11.Enable the Remote I/O port by selecting <Enabled>. 12.Select the rack address (octal) using the keypad. 13.Select the baud rate <57.6Kbaud> or other options. Select the CVIM module trigger source: 14.Select the trigger source menu <Toolset>. 15.Select the trigger source menu for the appropriate toolset <Trigger Source>. 16.Select either <I/O>, <Hosted>, or <Internally Triggered> trigger sources. Note: The example connection diagram shown on Figure 4.9 shows a trigger using the local I/O board. 4–7
Page 45
Chapter 4 Using the Remote I/O Link (Node Adapter)
Accessing Discrete Bit Information
A PLC can directly access discrete bit information using a simple ladder program. For example: You can use the following rung to examine the data valid bit and energize an output if the data is valid. Refer to Chapter 3 for a description of the local I/O. This example assumes that the CVIM module is in Rack 02 and the output device is in Rack 01.
Although the same basic information is provided in Appendix B, Tables 4.A and 4.B illustrate the word and bit locations of the discrete bits that can be read or manipulated using simple ladder programs. We have organized the data so that it is formatted similar to a PLC setup screen. Table 4.A shows the CVIM module Remote Inputs (CVIM module to PLC) if the CVIM module is rack 02. Table 4.B shows the CVIM module Remote Outputs (PLC to CVIM module) if the CVIM module is rack 02. Important Note: To read results data, you must set one of the following bits (assuming CVIM module is rack 02):
• O:22/00 (Post First Part of Results to Remote I/O) • O:22/01 (Post Second Part of Results to Remote I/O) Note to PLC–2 Users: When you use any PLC–2 family processor with the CVIM module, you should understand the operation of the PLC Block Transfer Done bits for Read and Write instructions. PLC–2 family processors use the input image table for these bits, all other PLCs can specify integer files for this function. This means that a PLC–2 user must use proper programming techniques to avoid confusion between the following bits:
• CVIM module discrete I/O input word 0, bit 6 (data valid toolset#1) and bit 7 (data valid toolset#2).
• PLC–2 family input image table word 0, bit 6 (BTW done bit) and bit 7 (BTR done bit).
4–8
Page 46
Chapter 4 Using the Remote I/O Link (Node Adapter)
Accessing Discrete Bit Information (cont’d)
Table 4.A CVIM Module Remote I/O Inputs (CVIM Module to PLC) if CVIM Module is Rack 02 BIT
07 ––– 17
06 ––– 16
05 ––– 15
04 ––– 14
03 ––– 13
02 ––– 12
01 ––– 11
00 ––– 10
(Not used)
1=Data Valid
0=First Bits Results
1 = Trigger Missed
1 = Module Busy
1 = PLC is Master
1 = Config. Error
(Not Used)
1 = Master Fault
1 = Light Probe Failed
1 = Reference Window 3 Failed
1 = Reference Window 2 Failed
1 = Reference Window 1 Failed
1 = Reference Line 3 Failed
1 = Reference Line 2 Failed
1 = Reference Line 1 Failed
1 = Window 4 Fault
1 = Window 4 Warning
1 = Window 3 Fault
1 = Window 3 Warning
1 = Window 2 Fault
1 = Window 2 Warning
1 = Window 1 Fault
1 = Window 1 Warning
1 = Window 8 Fault
1 = Window 8 Warning
1 = Window 7 Fault
1 = Window 7 Warning
1 = Window 6 Fault
1 = Window 6 Warning
1 = Window 5 Fault
1 = Window 5 Warning
1 = Window 12 Fault
1 = Window 12 Warning
1 = Window 11 Fault
1 = Window 11 Warning
1 = Window 10 Fault
1 = Window 10 Warning
1 = Window 9 Fault
1 = Window 9 Warning
1 = Window 16 Fault
1 = Window 16 Warning
1 = Window 15 Fault
1 = Window 15 Warning
1 = Warning 14 Fault
1 = Window 14 Warning
1 = Window 13 Fault
1 = Window 13 Warning
1 = Window 20 Fault
1 = Window 20 Warning
1 = Window 19 Fault
1 = Window 19 Warning
1 = Window 18 Fault
1 = Window 18 Warning
1 = Window 17 Fault
1 = Window 17 Warning
1 = Window 24 Fault
1 = Window 24 Warning
1 = Window 23 Fault
1 = Window 23 Warning
1 = Window 22 Fault
1 = Window 22 Warning
1 = Window 21 Fault
1 = Window 21 Warning
1 = Gage 4 Fault
1 = Gage 4 Warning
1 = Gage 3 Fault
1 = Gage 3 Warning
1 = Gage 2 Fault
1 = Gage 2 Warning
1 = Gage 1 Fault
1 = Gage 1 Warning
1 = Gage 8 Fault
1 = Gage 8 Warning
1 = Gage 7 Fault
1 = Gage 7 Warning
1 = Gage 6 Fault
1 = Gage 6 Warning
1 = Gage 5 Fault
1 = Gage 5 Warning
1 = Gage 12 Fault
1 = Gage 12 Warning
1 = Gage 11 Fault
1 = Gage 11 Warning
1 = Gage 10 Fault
1 = Gage 10 Warning
1 = Gage 9 Fault
1 = Gage 9 Warning
1 = Gage 16 Fault
1 = Gage 16 Warning
1 = Gage 15 Fault
1 = Gage 15 Warning
1 = Gage 14 Fault
1 = Gage 14 Warning
1 = Gage 13 Fault
1 = Gage 13 Warning
1 = Gage 20 Fault
1 = Gage 20 Warning
1 = Gage 19 Fault
1 = Gage 19 Warning
1 = Gage 18 Fault
1 = Gage 18 Warning
1 = Gage 17 Fault
1 = Gage 17 Warning
1 = Gage 24 Fault
1 = Gage 24 Warning
1 = Gage 23 Fault
1 = Gage 23 Warning
1 = Gage 22 Fault
1 = Gage 22 Warning
1 = Gage 21 Fault
1 = Gage 21 Warning
1 = Gage 28 Fault
1 = Gage 28 Warning
1 = Gage 27 Fault
1 = Gage 27 Warning
1 = Gage 26 Fault
1 = Gage 26 Warning
1 = Gage 25 Fault
1 = Gage 25 Warning
1 = Gage 32 Fault
1 = Gage 32 Warning
1 = Gage 31 Fault
1 = Gage 31 Warning
1 = Gage 30 Fault
1 = Gage 30 Warning
1 = Gage 29 Fault
1 = Gage 29 Warning
W O R D
20
21
22
23
24
25
26
27
4–9