Rockwell-automation 5370 Color CVIM Communications Manual Manual de usuario

Busca en linea o descarga Manual de usuario para Equipo Rockwell-automation 5370 Color CVIM Communications Manual. Rockwell Automation 5370 Color CVIM Communications Manual User Manual Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 222
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente

Indice de contenidos

Pagina 1 - Bulletin 5370 Color CVIM

ALLEN-BRADLEYBulletin 5370 Color CVIMConfigurable Vision Input ModuleCommunications Manual

Pagina 2 - • recognize the consequences

1Chapter1–1Using this ManualRead this chapter to familiarize yourself with the rest of the manual. You willlearn about:• Contents of the manual.• Inte

Pagina 3 - Using the Remote I/O Link

Chapter 5Using the RS–232 Ports5–32999 :1000 REM Subroutine to trigger an inspection on tool set1050 PRINT#1,”>t”; CHR$(13);: REM Send the command1

Pagina 4 - Using the RS–232 Ports

Chapter 5Using the RS–232 Ports5–33The remainder of this chapter describes the Color CVIM implementation ofthe DF1 protocol. After you have made the e

Pagina 5 - Integrator Backplane

Chapter 5Using the RS–232 Ports5–34Each command the host device sends to the Color CVIM module isrepresented by a block of data beginning with DLE STX

Pagina 6 - Appendix E

Chapter 5Using the RS–232 Ports5–35• Object Field — The Object field specifies data that configures theoperation of the Color CVIM module.In the descr

Pagina 7 - Table of Contents

Chapter 5Using the RS–232 Ports5–36After receiving the data, the host should respond with a DLE ACK to let theColor CVIM module know that the message

Pagina 8 - Tables (continued)

Chapter 5Using the RS–232 Ports5–37To transmit the data value 10 hex, you must use the data code DLE DLE.However, only one of these DLE data bytes is

Pagina 9 - Figures (continued)

Chapter 5Using the RS–232 Ports5–38Use the echo command to check the communications link. This commandwill return the same same string of characters t

Pagina 10 - Using this Manual

Chapter 5Using the RS–232 Ports5–39Use this command to enable or disable discrete outputs or local Outputs I/O.Use the following commands:This command

Pagina 11 - Intended Audience

Chapter 5Using the RS–232 Ports5–40For example:This example will force all outputs on. FF sets all bits in byte 3 (outputs 1though 8) and 3F sets bits

Pagina 12 - Related Publications

Chapter 5Using the RS–232 Ports5–41Use the load command to transfer configuration data between the ColorCVIM module local storage area (EEPROM) and th

Pagina 13 - Trademarks

Chapter 1Using this Manual1–2ChapterTitle PurposeAppendixAResults/Configuration DataOverviewProvides an overview of the configuration andresults data.

Pagina 14 - Introduction

Chapter 5Using the RS–232 Ports5–42Use the lock command to disable the setup menu box so that the SETUPmode cannot be entered. This function can only

Pagina 15 - Information? (cont’d)

Chapter 5Using the RS–232 Ports5–43This example will read the status of all fourteen outputs. FF sets all bits inbyte 3 (outputs 1 though 8) and 3F se

Pagina 16 - Pyramid Integrator Backplane

Chapter 5Using the RS–232 Ports5–44Use the read configuration command to read configuration data for thespecified object. The command has the followin

Pagina 17 - Discrete Bit Information

Chapter 5Using the RS–232 Ports5–45For example: To read configuration blocks 49 and 50 you would send:06(hex) for byte 1– Indicates a read command.07(

Pagina 18 - Memory Addressing

Chapter 5Using the RS–232 Ports5–46Figure 5.9Configuration Block Returned Data Format*48 01 02 00 00 00 00 00 44 65 66 61 75 6C 74 00 00 00 00 0000 00

Pagina 19 - Memory Addressing (cont’d)

Chapter 5Using the RS–232 Ports5–47Use this command to read the results of the last inspection. Refer toAppendix C for a description of the results bl

Pagina 20

Chapter 5Using the RS–232 Ports5–48The read results command can be executed more than once per command byspecifying an n times value.Examples:07 00 01

Pagina 21 - Using Local I/O

Chapter 5Using the RS–232 Ports5–49This command reads the Color CVIM module status (2 data bytes returned).Note: Refer to Appendix B, Table B.1, RS–23

Pagina 22 - Line Assignments

Chapter 5Using the RS–232 Ports5–50Use the Save command to save Color CVIM module configuration data tothe local storage area (EEPROM) or the external

Pagina 23 - Planning Sheet

Chapter 5Using the RS–232 Ports5–51Use the display object command to control the image that is displayed on themonitor. Use the following commands: Th

Pagina 24 - Planning Sheet (cont’d)

Chapter 1Using this Manual1–3Table 1.A lists related publications that you may require:Table 1.ARelated PublicationsPublication No. Title Purpose of P

Pagina 25

Chapter 5Using the RS–232 Ports5–52Examples:03This example displays all tools01This example selects go on reject0B 14 05Operation Object DataThis exam

Pagina 26

Chapter 5Using the RS–232 Ports5–53Use this command to obtain a configurable results block. The results youwant are specified by a list of tools and p

Pagina 27 - Timing Data

Chapter 5Using the RS–232 Ports5–54Use the read command to read statistical data for the light probe, referencewindows, gages, and windows. Use the se

Pagina 28 - Timing Data (cont’d)

Chapter 5Using the RS–232 Ports5–55The data returned from the statistics block consists of:• Block signature• Number of samples, maximum, minimum, ave

Pagina 29

Chapter 5Using the RS–232 Ports5–56Use the trigger operation command to initiate an inspection. Use thefollowing commands:09Triggers an inspectionThis

Pagina 30

Chapter 5Using the RS–232 Ports5–57Use the write command to write data to configuration blocks.Note: You can also write to the monitor display to sele

Pagina 31 - (2801–N27 Interface Box)

Chapter 5Using the RS–232 Ports5–58Figure 5.13Write Configuration Block Command Bytes 3–2912345678Byte 3Bits 7 – 0910111213141516Byte 4Bits 7 – 017181

Pagina 32 - (2801–N21 Interface Box)

Chapter 5Using the RS–232 Ports5–59This function can only be executed once per command.Each configuration block is sent in a separate data packet(Head

Pagina 33 - Interface Box Connections

Chapter 5Using the RS–232 Ports5–60After you have become familiar with the DF1 commands, you can use thefollowing command summary as a quick reference

Pagina 34 - 2801–JMB Interface

Chapter 5Using the RS–232 Ports5–61Table 5.BDF1 Command Summary (Cont’d)Command Command Structure Field Descriptions07 00 n y zn = times repeatedy = 1

Pagina 35

Chapter 1Using this Manual1–4When using this manual, we recommend that you do the following.1. Become familiar with the Color CVIM module by reading t

Pagina 36

Chapter 5Using the RS–232 Ports5–62Table 5.BDF1 Command Summary (Cont’d)Command Command Structure Field DescriptionsWrite Display 0B 02 DataData = 01–

Pagina 37

Chapter 5Using the RS–232 Ports5–63/* This sample program was Compiled using Microsoft C Verision 6.0 *//* Color CVIM RS–232 Comminication example

Pagina 38

Chapter 5Using the RS–232 Ports5–64 /* Print options menu on the screen */ do { printf (”\n\nOperations: \n\n”); printf (”0. Echo

Pagina 39 - Remote I/O Communications

Chapter 5Using the RS–232 Ports5–65 case 3: /* read results block 1 */ { err = send_message (portnum, ”\

Pagina 40

Chapter 5Using the RS–232 Ports5–66 } while (op_num >= 0); /* End do loop */ }int send_message (portnum, msg, len)int portnum;

Pagina 41

Chapter 5Using the RS–232 Ports5–67 err |= 0x01; /* no DLE on send */ if (!err) { ch = _bios_serialcom(

Pagina 42

Chapter 5Using the RS–232 Ports5–68 df1_bcc = –df1_bcc; if (( (ch & 0xFF) == df1_bcc ) && !err )

Pagina 43 - Remote I/O Network?

Chapter 5Using the RS–232 Ports5–69 { _bios_serialcom(_COM_SEND,portnum–1,DLE); _bios_serialcom(_COM_SEND

Pagina 44 - Result Information

6Chapter6–1Using the Pyramid Integrator BackplaneThis chapter:• Describes the Pyramid Integrator Backplane.• Describes backplane communication techniq

Pagina 45 - Bit Information

Chapter 6Using the Pyramid Integrator Backplane6–2A MicroVAX information processor, PLC–5/250, or other device in thePyramid Integrator rack can reque

Pagina 46 - Bit Information (cont’d)

2Chapter2–1IntroductionIn this chapter we provide you with an overview of the options forcommunicating with the Color CVIM module. We also describe th

Pagina 47

Chapter 6Using the Pyramid Integrator Backplane6–3Select the Color CVIM module trigger source:6. Select I/O menu <I/O>.7. Select the trigger sou

Pagina 48

Chapter 6Using the Pyramid Integrator Backplane6–4The address of Color CVIM module shared memory is always SD13, withthe addressing as follows:Color C

Pagina 49 - • Checking for valid results

Chapter 6Using the Pyramid Integrator Backplane6–5Figure 6.132 Bit Long Integer FilesUse the message instruction (MSG) to transfer configuration data

Pagina 50 - Discrete Bit Data (cont’d)

Chapter 6Using the Pyramid Integrator Backplane6–6The following program shows how to trigger an inspection,, upload an entireColor CVIM configuration

Pagina 51 - Discrete Bit Data (Cont’d)

Chapter 6Using the Pyramid Integrator Backplane6–7Rung #11 Move configuration from RAM to EEPROM upon a false totrue transition of 1N0:0/8.Rung #12 Mo

Pagina 52 - • Configuration Blocks

Chapter 6Using the Pyramid Integrator Backplane6–85370–CVIMC EXAMPLE PROGRAMProgram Listing Report PLC–5/250 File CVIMCRung 1TRN0:

Pagina 53 - Chapter 4

Chapter 6Using the Pyramid Integrator Backplane6–9Rung 1STEP0:3| GAGE 1 SAVE THE || RESUL

Pagina 54 - Configuring Results Block 6

Chapter 6Using the Pyramid Integrator Backplane6–10Rung 1STEP0:7| REQUEST 5370–CVIMC || UNLO

Pagina 55 - Converting Results Data

Chapter 6Using the Pyramid Integrator Backplane6–11Rung 1STEP0:9| REQUEST 5370–CVIMC || LOCA

Pagina 56

Chapter 6Using the Pyramid Integrator Backplane6–12Rung 1STEP0:11| REQUEST 5370–CVIMC || MOV

Pagina 57 - Transferring Configuration

Chapter 2Introduction2–2Figure 2.1Color CVIM Module Communications PortsCOLOR28012801AHow Does the Host DeviceRead Configuration/ResultsInformation?

Pagina 58 - Accessing Results Data

Chapter 6Using the Pyramid Integrator Backplane6–13CONTROL BLOCK OMSG0:0F1 Module ID: Class = CVIM Pw# = 1 Port# = 1F2 Priority: HIGHF3 Local/Remote:

Pagina 59 - Results Data, Cont’d

AAppendixA–1Results/Configuration Data OverviewThis appendix provides an overview of the word and bit addresses of datastored in memory if you are com

Pagina 60

Appendix AResults/Configuration Data OverviewA–2Inspections which produce results that are fractional are represented usingtwo words (32 bits). The fi

Pagina 61 - Accessing Configuration Data

Appendix AResults/Configuration Data OverviewA–3We have provided the following chart to assist you:Figure A.1Fractional Notation1/655361/327681/163841

Pagina 62

Appendix AResults/Configuration Data OverviewA–4The Color CVIM stores some of the data as a 32 bit integer. The first bytecontains bits 16 through 31

Pagina 63

BAppendixB–1Discrete Bit Results Bits(Host Input & Output Bits)This appendix lists the function of both the discrete bit inputs and outputs.These

Pagina 64 - Example 6008–SI Program

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–2Table B.1Discrete Bit InputsNote: The Remote I/O Bit Number column (marked with a

Pagina 65

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–3Table B.1Discrete Bit Inputs (Cont’d)PI Backplane Remote I/O RS–232 ASCII RS–232

Pagina 66

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–4Table B.1Discrete Bit Inputs (Cont’d)PI Backplane Remote I/O RS–232 ASCII RS–232 D

Pagina 67

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–5Table B.1Discrete Bit Inputs (Cont’d)PI Backplane Remote I/O RS–232 ASCII RS–232

Pagina 68

Chapter 2Introduction2–3The remote I/O port (RIO) is located on the front of the Color CVIM moduleas shown in Figure 2.1. Using the remote I/O port, y

Pagina 69

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–6Table B.1Discrete Bit Inputs (Cont’d)PI Backplane Remote I/O RS–232 ASCII RS–232 D

Pagina 70 - ASCII and DF1 Protocols

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–7Table B.1Discrete Bit Inputs (Cont’d)PI Backplane Remote I/O RS–232 ASCII RS–232

Pagina 71

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–8Table B.1Discrete Bit Inputs (Cont’d)PI Backplane Remote I/O RS–232 ASCII RS–232 D

Pagina 72 - • Force local I/O On or Off

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–9Table B.1Discrete Bit Inputs (Cont’d)PI Backplane Remote I/O RS–232 ASCII RS–232

Pagina 73 - • No Parity

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–10Table B.1Discrete Bit Inputs (Cont’d)PI Backplane Remote I/O RS–232 ASCII RS–232

Pagina 74 - ASCII Protocol

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–11Table B.1Discrete Bit Inputs (Cont’d)PI Backplane Remote I/O RS–232 ASCII RS–232

Pagina 75 - • Numbers 0 through 9

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–12Table B.1Discrete Bit Inputs (Cont’d)PI Backplane Remote I/O RS–232 ASCII RS–232

Pagina 76 - • Data Field– Contains data

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–13Table B.1Discrete Bit Inputs (Cont’d)PI Backplane Remote I/O RS–232 ASCII RS–232

Pagina 77

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–14Table B.1Discrete Bit Inputs (Cont’d)PI Backplane Remote I/O RS–232 ASCII RS–232

Pagina 78

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–15Table B.1Discrete Bit Inputs (Cont’d)PI Backplane Remote I/O RS–232 ASCII RS–232

Pagina 79

Chapter 2Introduction2–4Depending upon the type of interface in use, you can access some or all ofthe information listed below:• Warning and Pass/Fail

Pagina 80 - >L[CR]

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–16Table B.1Discrete Bit Inputs (Cont’d)PI Backplane Remote I/O RS–232 ASCII RS–232

Pagina 81

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–17Table B.1Discrete Bit Inputs (Cont’d)PI Backplane Remote I/O RS–232 ASCII RS–232

Pagina 82 - Read Configuration Blocks

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–18Table B.1Discrete Bit Inputs (Cont’d)PI Backplane Remote I/O RS–232 ASCII RS–232

Pagina 83

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–19There are 128 bits that can be set as outputs from a host device to control theo

Pagina 84 - Read Inspection Results

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–20Note: When using the backplane, don’t write directly to word 2. Write toword 1023

Pagina 85

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–21Table B.3Discrete Bit Outputs (Cont’d)PI Backplane Remote I/OWord # Bit # Word #

Pagina 86

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–22Table B.3Discrete Bit Outputs (Cont’d)PI Backplane Remote I/OWord # Bit # Word #

Pagina 87 - Save Configuration

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–23Table B.3Discrete Bit Outputs (Cont’d)PI Backplane Remote I/OWord # Bit # Word #

Pagina 88 - Figure 5.6

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–24Table B.3Discrete Bit Outputs (Cont’d)PI Backplane Remote I/OWord # Bit # Word #

Pagina 89

(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–25Table B.3Discrete Bit Outputs (Cont’d)PI Backplane Remote I/OWord # Bit # Word #

Pagina 90

Chapter 2Introduction2–5The results data for each inspection are stored in Random Access Memory(RAM) and overwrite the results of the previous inspect

Pagina 91

CAppendixC–1Numerical Results DataThere are 6 results blocks for inspection. The following is an overview of theblocks.Block Number 1 Contains:• Block

Pagina 92

Appendix CNumerical Results DataC–2Block #5 Contains:• Block transfer signature• Gages 45–56• Windows 43–48• Gages 57–64• Total number of triggers, mi

Pagina 93 - Write Configuration (WC)

Appendix CNumerical Results DataC–3Table C.1 shows the function of each word in results block #1.Table C.1Numerical Results Data–Results Block 1Word #

Pagina 94

Appendix CNumerical Results DataC–4Table C.1Numerical Results Data–Results Block 1 (cont’d)Word #PIBackplaneRS–232andRemoteI/OBit # Definition Usage

Pagina 95

Appendix CNumerical Results DataC–5Table C.1Numerical Results Data–Results Block 1 (cont’d)Word #PIBackplaneRS–232andRemoteI/OBit # Definition Usage

Pagina 96 - Command Summary (cont’d)

Appendix CNumerical Results DataC–6Table C.2 shows the function of each word in results block #2.Table C.2Numerical Results Data–Results Block 2Word #

Pagina 97 - Programming Example

Appendix CNumerical Results DataC–7Table C.2Numerical Results Data–Results Block 2 (cont’d)Word #PIBackplaneRS–232andRemoteI/OBit # Definition Usage

Pagina 98

Appendix CNumerical Results DataC–8Table C.3 shows the function of each word in results block #3.Table C.3Numerical Results Data– Results Block 3Word

Pagina 99 - ASCII Programming Example

Appendix CNumerical Results DataC–9Table C.3Numerical Results Data–Results Block 2 (cont’d)Word #PIBackplaneRS–232andRemoteI/OBit # Definition Usage

Pagina 100

Appendix CNumerical Results DataC–10Table C.3Numerical Results Data–Results Block 2 (cont’d)Word #PIBackplaneRS–232andRemoteI/OBit # Definition Usage

Pagina 101 - DF1 Character Set

Chapter 2Introduction2–6When you communicate through the Pyramid Integrator backplane all of thedata words are numbered consecutively and grouped in b

Pagina 102 - Command Structure

Appendix CNumerical Results DataC–11Table C.4 shows the runction of each word in results block #4.Table C.4Numerical Results Data–Results Block 4Word

Pagina 103 - ACK/NAK, BCC Characters

Appendix CNumerical Results DataC–12Table C.4Numerical Results Data–Results Block 4 (cont’d)Word #PIBackplaneRS–232andRemoteI/OBit # Definition Usage

Pagina 104 - (cont’d)

Appendix CNumerical Results DataC–13Table C.5 shows the function of each word in results block #5.Table C.5Numerical Results Data–Results Block 5Word

Pagina 105 - Deactivate Forces

Appendix CNumerical Results DataC–14Table C.5Numerical Results Data–Results Block 5 (cont’d)Word #PIBackplaneRS–232andRemoteI/OBit # Definition Usage

Pagina 106 - Echoing Data

Appendix CNumerical Results DataC–15The sixth results block can be configured via either the RS–232 or RemoteI/O. There are up to three configuration

Pagina 107 - Forcing Local I/O

Appendix CNumerical Results DataC–16If you request more results than will fit into 62 words, the Color CVIM willtruncate the data and set an error bit

Pagina 108 - Forcing Local I/O (cont’d)

Appendix CNumerical Results DataC–17Table C.7Programmable Results/Statistics Block Configuration (cont’d)1771 Node AdapterResults or StatisticsFuncti

Pagina 109 - Loading Configurations

Appendix CNumerical Results DataC–18Table C.7Programmable Results/Statistics Block Configuration (cont’d)1771 Node AdapterResults or StatisticsFuncti

Pagina 110 - Read Output Status

Appendix CNumerical Results DataC–19Word #Bit #Byte #FunctionBit #7 13 Gage 38 11 57 14 Gage 39 11 67 15 Gage 40 11 78 0 Gage 41 12 08 1 Gage 42 12 18

Pagina 111 - Block Command

Appendix CNumerical Results DataC–20The statistics block can only be formatted through the Remote I/O port, butcan be read through either the BAckpla

Pagina 112 - Block Command (cont’d)

Solid state equipment has operational characteristics differing from those ofelectromechanical equipment. “Safety Guidelines for the Application,Insta

Pagina 113

Chapter 2Introduction2–7There are four communications ports which you can use simultaneously toaccess Color CVIM module data (Remote I/O, RS–232 Ports

Pagina 114

DAppendixD–1Configuration DataThere are 213 configuration blocks. The following is an overview of theblocks.Block Number 1 System Environment. . . . .

Pagina 115 - Read Results Command

Appendix DConfiguration DataD–2Table D.1 shows the function of each word in the system environmentconfiguration block.Table D.1Configuration Block #1–

Pagina 116

Appendix DConfiguration DataD–3Table D.1Configuration Block #1– System Environment (cont’d)Remote I/O& RS–232Word #*Bit # Definition Usage Notes1

Pagina 117

Appendix DConfiguration DataD–4Tables D.2 and D.3 show the function of each word in the camera definitionconfiguration blocks.Table D.2Configuration B

Pagina 118 - Save Command

Appendix DConfiguration DataD–5Table D.2Configuration Block #2 – Camera Definition (cont’d)Remote I/O& RS–232Word #*Bit # Definition Usage Notes2

Pagina 119 - Select Image Displayed

Appendix DConfiguration DataD–6Table D.3Configuration Block #3 – Camera DefinitionRemote I/O& RS–232Word #*Bit # Definition Usage Notes0 0–15 Bloc

Pagina 120 - 0B 14 05

Appendix DConfiguration DataD–7Table D.5 shows the function of each word in the Gray Scale Imagesdefinition.Table D.5Configuration Block 36 – Gray Sca

Pagina 121 - Set Configurable Results

Appendix DConfiguration DataD–8Table D.6 shows the function of each word in the reference line 1–3configuration blocks.Table D.6Configuration Blocks #

Pagina 122 - Statistics

Appendix DConfiguration DataD–9Table D.6Configuration Blocks #37–39 – Reference Lines 1–3 (cont’d)Remote I/O& RS–232Word #Bit # Definition Usage

Pagina 123 - • Block signature

Appendix DConfiguration DataD–10Table D.8Configuration Blocks #41, 43, & 45 – Reference Windows 1–3Remote I/O& RS–232Word #Bit # Definition Us

Pagina 124 - Unlock Command

3Chapter3–1Using Local I/OThe objectives of this chapter are to help you plan:• The number of discrete output lines (up to 14) that your application w

Pagina 125 - Write Configuration Blocks

Appendix DConfiguration DataD–11Table D.8Configuration Blocks #41, 43, & 45 – Reference Windows 1–3 (cont’d)Remote I/O& RS–232Word #Bit # Def

Pagina 126

Appendix DConfiguration DataD–12Table D.9Configuration Blocks #46–109 – Gages 1–64 (cont’d)Remote I/O& RS–232Word #*Bit # Definition Usage Notes1

Pagina 127

Appendix DConfiguration DataD–13Tables D.10 and D.11 show the function of each word in the window 1– 48configuration blocks.Table D.10Configuration Bl

Pagina 128 - Command Summary

Appendix DConfiguration DataD–14Table D.11Configuration Blocks #110, 112 . . . & 204 – Windows 1–48Remote I/O& RS–232Word #Bit # Definition Us

Pagina 129 - Command Summary (cont‘d)

Appendix DConfiguration DataD–15Table D.12 shows the function of each word in the polygon configurationblocks.Table D.13PoIygon Configuration WordsRem

Pagina 130 - DF1 Programming Example

EAppendixE–1ASCII Conversion TableASCII orControl Char.DecimalValueHexValueASCll orControl Char.DecimalValueHexValueASCll orControl Char.DecimalValueH

Pagina 131

Bulletin 5370 Color CVIMGlossaryConfigurable Vision Input ModuleG–1AACKAn abbreviated term for PositiveAcknowledgment. A control codethat indicates th

Pagina 132

Configurable Vision Input ModuleBulletin 5370 Color CVIMGlossaryG–2floating pointA system of representing numericalquantities with a variable number

Pagina 133

Bulletin 5370 Color CVIMGlossaryConfigurable Vision Input ModuleG–3Pparity bitA parity bit is added to a binary arrayto make the sum of all the bitsal

Pagina 134

16 point 16, 4Ć182801ĆJMB interface board, 3Ć146008ĆSI, Sample program, 4Ć27AAccessing results data, 4Ć21ACK/NAK characters, 5Ć35Addressing, 2Ć5ASCIIC

Pagina 135

Chapter 3Using Local I/O3–2Figure 3.1Local I/O Equipment ConnectionsAThis section provides a planning sheet that you can use to lay out the functionan

Pagina 136

EEEPROM, 4Ć6, 5Ć4FFieldData, 5Ć8Object, 5Ć8Operation, 5Ć8Firmware revision, 1Ć1Flexible interface module, 5Ć1Flow control, 5Ć8Format16 point 16, 4Ć18D

Pagina 137

Pyramid Integrator, 1Ć4, 6Ć1Backplane, 2Ć3RRAM, 2Ć1Card, 4Ć6, 5Ć4Remote I/OConfiguration instructions, 4Ć7Functions, 4Ć6Port, 2Ć3, 4Ć1ResultsBlocks tr

Pagina 138 - Host Designation

With offices in major cities worldwide.WORLD HEADQUARTERSAllen-Bradley1201 South Second StreetMilwaukee, WI 53204 USATel: (1) 414 382–2000Telex: 43 11

Pagina 139 - Configuration Instructions

Chapter 3Using Local I/O3–3The Output Line Planning Sheet is a form on which you can lay out yourplans for each output line. On this form you can acco

Pagina 140 - Information Using a PLC–5/250

Chapter 3Using Local I/O3–4The entries for the output lines have the following meanings:• Output Line 1: The Results function is assigned to line 1. T

Pagina 141 - Data Using a PLC–5/250

Chapter 3Using Local I/O3–5Note: All of the remaining signal functions (except Strobe, Module Busy,and Trigger NAKs) can be configured to produce a pu

Pagina 142

Chapter 3Using Local I/O3–6• Strobe: This signal is used to trigger the strobe flash unit (if used). Thesignal occurs within 1 ms after the Color CVIM

Pagina 143 - Sample PLC–5/250 Program

Chapter 3Using Local I/O3–7To make proper use of the signal data available to the output lines, you mustfirst understand the timing relationships that

Pagina 144 - Chapter 6

Chapter 3Using Local I/O3–8In Figure 3.3, trigger pulse #2 occurs before the Color CVIM module hasfinished the pulsed output duration of the outputs f

Pagina 145

Chapter 3Using Local I/O3–9Whenever these signals go high, they will go low again at the end of thespecified pulse duration (1 to 2000ms).In Figure 3.

Pagina 146

A–BColor CVIM ModuleCommunications ManualTable of ContentsiChapter 1Chapter Objectives 1–1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Pagina 147

Chapter 3Using Local I/O3–10In Figure 3.5, trigger pulse #2 occurs before the Color CVIM system isfinished processing the inspection cycle started by

Pagina 148

Chapter 3Using Local I/O3–11This section provides diagrams of electrical connections for correctlyconnecting your production equipment to the Color CV

Pagina 149

Chapter 3Using Local I/O3–12Figure 3.7 shows the cable connectors and their pin numbers on the CatalogNo. 2801–N21 I/O Interface Box.Figure 3.7Pinouts

Pagina 150 - Information Processor

Chapter 3Using Local I/O3–13Tables 3.B through 3.E show the connector pin assignments for the ColorCVIM module connected to Catalog No. 2801–N21, –N27

Pagina 151 - Overview

Chapter 3Using Local I/O3–14Table 3.DI/O Interface Box (Catalog No. 2801–N27): RS–232 Port A Connector with Color CVIM ModulePin Number Function Pin N

Pagina 152 - Fractional Notation

Chapter 3Using Local I/O3–15Figure 3.8 shows the layout of the 2801–JMB interface board and theadhesive–backed overlay.Figure 3.8Local I/O Board ( Cat

Pagina 153 - Fractional Notation (cont‘d)

Chapter 3Using Local I/O3–16Table 3.F shows the relationship between the I/O line and optic–isolatornumbers shown in Figure 3.8.Table 3.FColor CVIM I/

Pagina 154 - 32 Bit Integer Format

Chapter 3Using Local I/O3–17Table 3.GColor CVIM Output Line Planning SheetOutput Line Functions and AssignmentsLine Output LineGage WindowReferenceToo

Pagina 155 - Discrete Bit Results Bits

4Chapter4–1Using the Remote I/O LinkIn this chapter we provide:• Basic description of Remote I/O communications.• Connection diagrams.• Description of

Pagina 156 - Discrete Bit Inputs

Chapter 4Using the Remote I/O Link4–2Figure 4.1PLC–5 to Color CVIM Module– Remote I/O Link1771 I/O RackColorCVIM ModuleRIOCatalog No.1770–CDCablePLC5

Pagina 157 - Discrete Bit Inputs (Cont’d)

Color CVIM ModuleCommunications ManualTable of ContentsiiChapter 4 (continued)Color CVIM Module Configuration Instructions 4–7. . . . . . . . . . . .

Pagina 158

Chapter 4Using the Remote I/O Link4–3Figure 4.46008 SQH1/2 Q–BUS Scanner to Color CVIM Module–Remote I/O LinkColorCVIM ModuleRIOCatalog No.1770–CDCab

Pagina 159

Chapter 4Using the Remote I/O Link4–4Figure 4.7PLC–3 to Color CVIM Module–Remote I/O LinkColorCVIM ModuleRIOCatalog No.1770–CDCableCatalog No. 1775–S4

Pagina 160

Chapter 4Using the Remote I/O Link4–5Figure 4.9Typical Hardware Layout for Remote I/O Note: If the duration of the Data Valid signal is less than 3 P

Pagina 161

Chapter 4Using the Remote I/O Link4–6When installed on a Remote I/O network, the Color CVIM module acts as aslave device. Another device such as a PLC

Pagina 162

Chapter 4Using the Remote I/O Link4–7You can obtain inspection result information for each of the inspection toolsover the Remote I/O link. There are

Pagina 163

Chapter 4Using the Remote I/O Link4–8A PLC can directly access discrete bit information using a simple ladderprogram. For example:You can use the foll

Pagina 164

Chapter 4Using the Remote I/O Link4–9Table 4.AColor CVIM Module Remote I/O Inputs (Color CVIM Module to PLC)if Color CVIM Module is Rack 02 (First Di

Pagina 165

Chapter 4Using the Remote I/O Link4–10Table 4.BColor CVIM Module Remote I/O Inputs (Color CVIM Module to PLC)if Color CVIM Module is Rack 02 (Second

Pagina 166

Chapter 4Using the Remote I/O Link4–11Table 4.CColor CVIM Module Remote I/O Outputs (PLC to Color CVIM Module)if Color CVIM Module is Rack 02BIT07–––1

Pagina 167

Chapter 4Using the Remote I/O Link4–12The following ladder logic program provides examples of:• Triggering an inspection from a PLC.• Enabling/Disabli

Pagina 168

Color CVIM ModuleCommunications ManualTable of ContentsiiiChapter 5 (continued)Set/Read Configurable Statistics 5–23. . . . . . . . . . . . . . . . .

Pagina 169

Chapter 4Using the Remote I/O Link4–13Rung 2:4When Data Valid bit is high, read the discrete results for window 1, thenlight the correct status light.

Pagina 170

Chapter 4Using the Remote I/O Link4–14Rung 2:7Tells the Color CVIM to display the results page.| Display

Pagina 171

Chapter 4Using the Remote I/O Link4–15A host also has access to actual results block information such as measuredlengths, number of black pixels, etc.

Pagina 172

Chapter 4Using the Remote I/O Link4–16Use bits 10, 11, and 12 of output word 3 to indicate which of the sixblocks to read. Refer to Appendix A and D.R

Pagina 173 - Discrete Bit Outputs

Chapter 4Using the Remote I/O Link4–1713.Both the programmable results block and statistic blocks are configured tocontain user specified results. To

Pagina 174 - Table B.3

Chapter 4Using the Remote I/O Link4–18Some of the results data described in Appendix C is stored in a “16 point 16”format while other data is stored a

Pagina 175 - Discrete Bit Outputs (Cont’d)

Chapter 4Using the Remote I/O Link4–19Rung 2:0 This program converts Color CVIM 16.16 to PLC Floating Point.The addresses N7:41 and N7:42 are used by

Pagina 176

Chapter 4Using the Remote I/O Link4–20You can transfer configuration block data between the Color CVIM moduleand CFG Host using block transfer reads a

Pagina 177

Chapter 4Using the Remote I/O Link4–21You must use the discrete I/O bits in conjunction with block transfers toinform the Color CVIM module of the Blo

Pagina 178

Chapter 4Using the Remote I/O Link4–22Program Listing Report PLC–5/15 File CCVIM2 Rung 2:0Rung 2:0Initialize the appropiat

Pagina 179

Color CVIM ModuleCommunications ManualTable of ContentsivAppendix AIntroduction A–1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Pagina 180 - Numerical Results Data

Chapter 4Using the Remote I/O Link4–23Rung 2:4Set n7:70 to the number of triggers, before giving the system a new trigger.|

Pagina 181 - Block Transfer Signature

Chapter 4Using the Remote I/O Link4–24The following program provides an example of using bi–directional blocktransfers to:Transfer Color CVIM module c

Pagina 182 - Results Block #1

Chapter 4Using the Remote I/O Link4–25Rung 2:3THE DATA LOCATION THIS BTR WILL READ IS DEFINED ON RUNG 0.|

Pagina 183 - Results Block #1 (cont’d)

Chapter 4Using the Remote I/O Link4–26Rung 2:7AFTER READING AND MODIFYING THE CONFIGURATION DATA, SEND THE MODIFIED DATA TOTHE COLOR CVIM. THE MODIFI

Pagina 184

Chapter 4Using the Remote I/O Link4–27The following program was written using Microsoft C Version 6.00 with anAllen–Bradley 6008–SI Series B card. T

Pagina 185 - Results Block #2

Chapter 4Using the Remote I/O Link4–28/* This program was compiled using Microsoft C Version 6.0 *//* Color CVIM to 6008–SI sample communications prog

Pagina 186 - Results Block #2 (cont’d)

Chapter 4Using the Remote I/O Link4–29 if (status != C_AUTOCONF && status != C_SETUP) printf (”Scanner fatal error %d\n”, fa

Pagina 187 - Results Block #3

Chapter 4Using the Remote I/O Link4–30 err = g_op_stat & SO_FAULT; } break; case 3: /* read confi

Pagina 188 - Results Block #3 (cont’d)

Chapter 4Using the Remote I/O Link4–31 /* Tell CVIM block number and type */ g_oit[8*CVIM_rack + 3] = block_type + block_num * 256; /* Initia

Pagina 189

5Chapter5–1Using the RS–232 PortsIn this chapter we describe how to:• Connect RS–232 device(s) to the Color CVIM module.• Obtain results data using AS

Pagina 190 - Results Block #4

Color CVIM ModuleCommunications ManualTable of ContentsvTablesTable 1.A Related Publications 1–3. . . . . . . . . . . . . . . . . . . . . . . . . . .

Pagina 191 - Results Block #4 (cont’d)

Chapter 5Using the RS–232 Ports5–2There are two protocol options when you select an RS–232 communicationsport (A or B):• ASCII• DF1This chapter descri

Pagina 192 - Results Block #5

Chapter 5Using the RS–232 Ports5–3As shown in Figure 5.1, the RS–232 ports (A & B) are located on the I/OInterface Boxes (Catalog No. 2801–N21, –N

Pagina 193 - Results Block #5 (cont’d)

Chapter 5Using the RS–232 Ports5–4Figure 5.2RS–232 Cabling.DB25 Female (IBM PC/XT, VT–220, etc.)View from the back of the connectorDB9 Male (I/O Inter

Pagina 194 - Results Block #6

Chapter 5Using the RS–232 Ports5–5Color CVIM module RAM and RAM card. The RAM card slides into aslot on front of the Color CVIM module. Color CVIM mod

Pagina 195 - Results Block #6 (cont’d)

Chapter 5Using the RS–232 Ports5–610 Select the trigger source menu <Trigger Source>.11 Select either <I/O>, <Hosted>, or <Auto T

Pagina 196

Chapter 5Using the RS–232 Ports5–7Note: Some commands cause a continuous flow of returned data. To stop theflow of data you should send another comman

Pagina 197

Chapter 5Using the RS–232 Ports5–8There are three types of fields:• Operation Field– This field contains commands directed to the ColorCVIM module. Th

Pagina 198 - Appendix C

Chapter 5Using the RS–232 Ports5–9Use the echo command to check the communications link. This commandwill return the same same string of characters th

Pagina 199 - Statistics Block

Chapter 5Using the RS–232 Ports5–10Use the force command to turn the local I/O outputs either on or off. Thisfunction can only be executed once per co

Pagina 200 - Configuration Data

Chapter 5Using the RS–232 Ports5–11Use the load command to transfer configuration data to the Color CVIMmodule’s RAM. Use one of the following command

Pagina 201 - Configuration Block #1

Color CVIM ModuleCommunications ManualTable of ContentsviTables (continued)Table D.8 Configuration Blocks #41, 43, & 45 – Reference Windows 1–3D–1

Pagina 202

Chapter 5Using the RS–232 Ports5–12Figure 5.3Memory Requirements for Images and ConfigurationsImage 1–11Image 1–12Config 3Config 4Config 1Config 2Imag

Pagina 203 - Table D.2

Chapter 5Using the RS–232 Ports5–13Use the unlock command to enable the setup menu box so that a user canaccess the SETUP mode using the light pen. Us

Pagina 204

Chapter 5Using the RS–232 Ports5–14Use the read configuration command to read configuration data for thespecified blocks (Upload Configurations). The

Pagina 205 - Configuration Blocks 4–35

Chapter 5Using the RS–232 Ports5–15Refer to Appendix D for block descriptions and sizes. The following is anexample of how the returned data appears f

Pagina 206 - Configuration Block 36

Chapter 5Using the RS–232 Ports5–16Use this command to read the results of the last inspection. Refer toAppendix B for a description of the results bl

Pagina 207 - Configuration Blocks 37–39

Chapter 5Using the RS–232 Ports5–17The read operation can be executed more than once per command byspecifying an x times value. The data in the read r

Pagina 208 - Configuration Blocks 40–45

Chapter 5Using the RS–232 Ports5–18After executing a command, the Color CVIM module will return: [CR][LF]followed by the data. If you do not have th

Pagina 209

Chapter 5Using the RS–232 Ports5–19Use the Save command to transfer Color CVIM module configuration data tothe local storage area (EEPROM) or the exte

Pagina 210 - Configuration Blocks 46–109

Chapter 5Using the RS–232 Ports5–20Figure 5.6Memory Requirements for Images and ConfigurationsImage 1–11Image 1–12Config 3Config 4Config 1Config 2Imag

Pagina 211

Chapter 5Using the RS–232 Ports5–21Use the display object commands to select the information that is displayedon the monitor:>W,D,d [CR]Where d is

Pagina 212 - Configuration Blocks 110–205

Color CVIM ModuleCommunications ManualTable of ContentsviiFigures (continued)Figure 5.8 Read Configuration Block Command Bytes 3–29 5–44. . . . . . Fi

Pagina 213

Chapter 5Using the RS–232 Ports5–22Use this command to obtain a configurable results block. The results youwant are specified by a list of tools and p

Pagina 214 - Configuration Blocks 206–213

Chapter 5Using the RS–232 Ports5–23Use the read command to read statistical data for the light probe, referencewindows, gages, and windows. Use the se

Pagina 215 - ASCII Conversion Table

Chapter 5Using the RS–232 Ports5–24Example of Read Statistics Command:> RS5 [CR] This example reads the statistics block five times.The data return

Pagina 216 - characters

Chapter 5Using the RS–232 Ports5–25Use the trigger operation command to initiate an inspection by the colorCVIM module. Use the following commands:&g

Pagina 217

Chapter 5Using the RS–232 Ports5–26This function can only be executed once per command.Refer to Appendix D for a description of the configuration bloc

Pagina 218

Chapter 5Using the RS–232 Ports5–27After you have become familiar with the ASCII commands, you can use thefollowing command summary as a quick referen

Pagina 219

Chapter 5Using the RS–232 Ports5–28Table 5.AASCII Command Summary (Cont’d)Command Command Structure Field DescriptionsSet Configurable Statistics >

Pagina 220

Chapter 5Using the RS–232 Ports5–29The following sample program (called CCVIMASC.BAS) was written on anAllen–Bradley 1784–T47 terminal using GW BASIC.

Pagina 221

Chapter 5Using the RS–232 Ports5–30Assume the ASCII string from the Color CVIM module is:CR LF 2114 __ __ __ __ __ __389 __ __ __ __ __ B0__80__A2__ 0

Pagina 222

Chapter 5Using the RS–232 Ports5–31The following is a sample ASCII program written in BASIC:1 REM RS–232 ASCII COLOR CVIM COMMUNICATIONS SAMPLE PR

Comentarios a estos manuales

Sin comentarios