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

The text of a manual · part 17 of 25

Bulletin 5370 CVIM Configurable Vision Input Module Communications Manual: 6 - Using the Pyramid Integrator Backplane

Pages 134 to 141 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 134

Chapter

A–B

6

Using the Pyramid Integrator Backplane Chapter Objectives

This chapter:

• Describes the Pyramid Integrator Backplane. • Describes backplane communication techniques. • Describes CVIM module setup requirements • Contains a sample PLC–5/250 program. Note: Refer to Publication No. 5000–2.3 (Allen–Bradley Pyramid Integrator Technical Overview) for a description of the basic hardware components and valid configurations. Use the related publications chart in Chapter 1 to reference other Pyramid Integrator manuals as required.

What Information can be Accessed?

Through the backplane, you can access an area of memory called Shared Memory. Shared Memory consists of 1024 words (approximately half of which are presently used). Shared memory contains:

• CVIM module Discrete Bit Information (refer to Appendix B). These bits include pass/fail/warning data for inspections and command bits for CVIM module operation modes.

• Results Data (refer to Appendix C). • In addition, you can access the CVIM module setup and configuration data through the backplane. Refer to Appendix D.

Host Designation

There are four communications ports which you can simultaneously use to access CVIM module data (Remote I/O, RS–232 (A&B), and Backplane). Only one of the communications ports can be designated as the host at any given time. Only the host can issue commands to control the operation of the CVIM module, trigger inspections, upload/download configurations, and change displays. You can read discrete bits and numerical results information through any of the three communications ports, even through non–host devices. Note: See Chapter 2 for a description of multiple hosts.

6–1

Page 135

Chapter 6 Using the Pyramid Integrator Backplane

What Functions can be Performed Over the Backplane?

A MicroVAX information processor, PLC–5/250, or other device in the Pyramid Integrator rack can request or manipulate the following data through the backplane.

• Obtain CVIM module inspection result information. Refer to Appendix B & C (CFG or SYS Host).

• Upload or download CVIM module configurations for inspections. Refer to Appendix D (CFG Host).

• Issue Read/Write commands between the following CVIM module memory locations (CFG Host): CVIM module Random Access Memory (RAM) and Electrically Erasable Programmable Read Only Memory (EEPROM). 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 (SYS Host). • Enable/Disable local I/O board (SYS Host). • Force local I/O On or Off (SYS Host). Note: When communicating with a device through the Pyramid Integrator backplane, CVIM module results are posted in shared memory immediately after processing. When communicating with a device through the other ports, results are only available at the end of the inspection program.

CVIM Module Configuration Instructions

If you are using the Pyramid Integrator backplane for communications, you must configure the CVIM module as follows: Select the backplane for communications: Note: This step is not required if you are only reading results. 1. Select the setup menu <Setup>. 2. Select the environment menu <Environ>. 3. Select the system menu <System>. 4. Select a Host menu <CFG Host:> or <SYS Host:>. 5. Choose Pyramid Integrator backplane option (twice) <Pyramid>. Select the CVIM module trigger source: 6. Select the toolset menu <Toolset>.

6–2

Page 136

Chapter 6 Using the Pyramid Integrator Backplane

If you are using the Pyramid Integrator backplane for communications, you must configure the CVIM module as follows: 7. Select the trigger source menu for the appropriate toolset <Trigger Source>. 8. Select either <I/O>, <Hosted> trigger sources or <Autotrigger>. Note: When changing the host to/from the Pyramid Integrator, you must “pick” the selection twice and then reboot the CVIM module. Make sure that you save your configuration first!

Obtaining Inspection Result Information Using a PLC–5/250

If you are accessing results through a PLC–5/250, the 1024 words of shared memory are numbered 0 through 1023. The PLC–5/250 treats the shared memory area like an integer file. Table 6.A provides a summary of the data. Refer to Appendix A, B, or C for more detailed information. Table 6.A Shared Memory Overview Block Name

Backplane Word #

Handshake

0

Reserved

1

Discrete I/O Outputs (Host Command Block)

2 to 9

Reserved

10 to 15

Discrete I/O Inputs (TS1) (Tool Inspection Results)

16 to 23

Results Block 1 (TS1)

24 to 87

Results Block 2 (TS1)

88 to 151

Results Block 3 (TS1)

152 to 215

Results Block 4 (TS1)

216 to 279

Dicrete I/O Inputs (TS2) (Tool Inspection Results)

280 to 287

Results Block 1 (TS2)

288 to 351

Results Block 2 (TS2)

352 to 415

Results Block 3 (TS2)

416 to 479

Results Block 4 (TS2)

480 to 543

Reserved

544 to 1022

Interrupt Control Word

1023

Configuration and Templates

Not Applicable

6–3

Page 137

Chapter 6 Using the Pyramid Integrator Backplane

Obtaining Inspection Result Information Using a PLC–5/250 (cont’d)

The address of CVIM module shared memory is always SD13, with the addressing as follows: CVIM Thumbwheel No. SD13 For example:

Word/Bit No.

Assume that the CVIM module has a thumbwheel setting of #2. The data that you want to read is window 1 fault flag in Toolset 1. Refer to Appendix B, the bit you want to read is bit 01 of word 17. The PLC bit address would then be:

To access numerical values, you can use any PLC instruction which manipulates file values. Values can be read individually or in groups. For example, you can use the compute (CPT) function to move a single word from the shared data (SD) file (resides in resource manager) to an integer file on the local logic processor. Other PLC file instructions such as copy (FAL) or compare (FSC) can also be used to manipulate shared data results. Note: A CVIM family processor in the same rack must have different thumbwheel settings.

Manipulating Configuration Data Using a PLC–5/250

6–4

When you transfer configuration data from the CVIM to a PLC–5/250 you use a message command and designate a long integer file as the destination (internal table address). Long integer files contain 32 bit elements. With this format, configuration block 1 would be arranged as shown in Figure 6.1.

Page 138

Chapter 6 Using the Pyramid Integrator Backplane

Figure 6.1 32 Bit Long Integer Files

TS1 Pulse TS2 Pulse TS1 Pulse TS2 Pulse

Use the message instruction (MSG) to transfer configuration data between the PLC and the CVIM. The message instruction can transfer up to 10,000 elements of data/commands. When used for Pyramid Integrator backplane instructions, the message instruction commands the resource manager module to transfer data between two module addresses. Use the RS–232 ASCII command set in the external data table address field to perform the desired function. To read a configuration of a CVIM with a thumbwheel setting of #2 into the Resource Manager long integer file #9 starting at element 0, the message instruction parameters would be entered as follows: F1 Requested size: F2 Priority: F3 Local/Remote: F4 Local Link Type: F5 REM Link Type F6 Station ID: F7 Module ID: F8 COMM CMND F9 Internal Data Table Address F10External Data Table Address

0 NORMAL LOCAL DH + N/A Node# = 0 Class = CVIM TW# = 2 Port # = 1 TYPED READ 0L9:0 ”> RC,CB*” 6–5

Page 139

Chapter 6 Using the Pyramid Integrator Backplane

Sample PLC–5/250 Program

The following program shows how to trigger an inspection, and/or upload an entire CVIM configuration for archiving and later downloading. Rung #1

Triggers the CVIM to perform an inspection using toolset#1 upon false transition of 1N0:0/00.

Rung #2

Reads the integer value of gage 1 and places value in 1N0:02.

Rung #3

One shots 1N0:1/0 when 1N0:02 has a false to true transition.

Rung #4

Sends message to read configuration: Class: CVIM TW#1 Port:1 Internal Data Table Address: 0L9:0 External Data Table Address: ”>RC,CB*” All other message parameters are not critical.

Rung #5

One shots 1N0:1/3 when 1N0:0/3 has from false to true transition.

Rung #6

Sends message to write configuration: Class: CVIM TW#1 Port:1 Internal Data Table Address: 0L9:0 External Data Table Address: ”>W,CB*” All other message parameters are not critical.

Note: See Remote I/O (Chapter 3) for converting 16.16 data to a PLC floating point value. Also see Chapter 3 for additional sample programs, and Chapter 5 for RS–232 commands. The program begins on the next page.

6–6

Page 140

Chapter 6 Using the Pyramid Integrator Backplane

16 January 1990 Page 3 Ladder Listing Processor File: CVIM1, Addr: 003 Rung 1STEP0:0 Rung 1STEP0:0 | | +––––––––––––––––––––––––––––––––[TOP OF FILE]–––––––––––––––––––––––––––––––––+ | | Rung 1STEP0:1 | 1N0:0 1SD13:1023 | +––––] [––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )––+ | 0 10 | Rung 1STEP0:2 | 1N0:0 +CPT–––––––––––+ | +––––] [–––––––––––––––––––––––––––––––––––––––––––––––––––––+COMPUTE +––| | 1 |Dest 1NO:2| | | | 0| | | |Expression | | | |1SD13:65 | | | +––––––––––––––+ | Rung 1STEP0:3 | 1N0:0 +OSR––––––––––––––––––+ | +––––] [––––––––––––––––––––––––––––––––––––––––––+ONE SHOT RISING +–(OB)–+ | 2 |Output Bit 1NO:1/0| | | |Storage Bit 1NO:1/1+–(SB) | | +–––––––––––––––––––––+ | Rung 1STEP0:4 | 1N0:1 +MSG––––––––––––––––––+ | +––––] [––––––––––––––––––––––––––––––––––––––––––+SEND/RECEIVE MESSAGE +–(EN)–+ | 0 |Control Block 0MSG0:0+–(DN) | | | +–(ER) | | +–––––––––––––––––––––+ | Rung 1STEP0:5 | 1N0:0 +OSR––––––––––––––––––+ | +––––] [––––––––––––––––––––––––––––––––––––––––––+ONE SHOT RISING +–(OB)–+ | 3 |Output Bit 1NO:1/2| | | |Storage Bit 1N0:1/3+–(SB) | +–––––––––––––––––––––+ | Rung 1STEP0:6 | 1N0:1 +MSG––––––––––––––––––+ | +––––] [––––––––––––––––––––––––––––––––––––––––––+SEND/RECEIVE MESSAGE +–(EN)–+ | 3 |Control Block 0MSG0:1+–(DN) | | | +–(ER) | | +–––––––––––––––––––––+ | Rung 1STEP0:7 | | +––––]AFI[––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––(EOT)––+ | |

Rung 1STEP0:8 | | +––––––––––––––––––––––––––––––––[END OF FILE]–––––––––––––––––––––––––––––––––+ | |

6–7

Page 141

Chapter 6 Using the Pyramid Integrator Backplane

Sample PLC–5/250 Program (cont’d)

CONTROL BLOCK 0MSG0:0 F1 Requested Size(element): F2 Priority: F3 Local/Remote: F4 Local Link Type: F5 Remote Link Type: F6 Station ID: F7 Module ID: F8 Communication Command: F9 Internal Data Table Addr: F10External Data Table Addr: Parameters:

0 HIGH LOCAL DH+ N/A Node# = 0 Class = CVIM Tw# = 1 Port# = 1 TYPED READ 0L9:0 ”>rc,cb*” N/A

CONTROL BLOCK OMSG0:1 F1 Requested Size(element): F2 Priority: F3 Local/Remote: F4 Local Link Type: F5 Remote Link Type: F6 Station ID: F7 Module ID: F8 Communication Command: F9 Internal Data Table Addr: F10External Data Table Addr: Parameters:

Obtaining Inspection Result Information Using a MicroVAX Information Processor

0 HIGH LOCAL DH+ N/A Node# = 0 Class = CVIM Tw# = 1 Port# = 1 TYPED WRITE 0L9:0 ”>w,cb*” N/A

If you are accessing results through a MicroVAX information processor, you should use the standard library functions to access the data. The MicroVAX library instructions are called up using a simplified “C” type language. For example: DTL__READ__W(Address, &Result, &Error); Refer to the MicroVAX manuals for the available library routines.

6–8