ALLEN-BRADLEYBulletin 5370 Color CVIMConfigurable Vision Input ModuleCommunications Manual
1Chapter1–1Using this ManualRead this chapter to familiarize yourself with the rest of the manual. You willlearn about:• Contents of the manual.• Inte
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
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
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
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
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
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
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
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
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
Chapter 5Using the RS–232 Ports5–41Use the load command to transfer configuration data between the ColorCVIM module local storage area (EEPROM) and th
Chapter 1Using this Manual1–2ChapterTitle PurposeAppendixAResults/Configuration DataOverviewProvides an overview of the configuration andresults data.
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
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
Chapter 5Using the RS–232 Ports5–44Use the read configuration command to read configuration data for thespecified object. The command has the followin
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(
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
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
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
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
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
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
Chapter 1Using this Manual1–3Table 1.A lists related publications that you may require:Table 1.ARelated PublicationsPublication No. Title Purpose of P
Chapter 5Using the RS–232 Ports5–52Examples:03This example displays all tools01This example selects go on reject0B 14 05Operation Object DataThis exam
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
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
Chapter 5Using the RS–232 Ports5–55The data returned from the statistics block consists of:• Block signature• Number of samples, maximum, minimum, ave
Chapter 5Using the RS–232 Ports5–56Use the trigger operation command to initiate an inspection. Use thefollowing commands:09Triggers an inspectionThis
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
Chapter 5Using the RS–232 Ports5–58Figure 5.13Write Configuration Block Command Bytes 3–2912345678Byte 3Bits 7 – 0910111213141516Byte 4Bits 7 – 017181
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
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
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
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
Chapter 5Using the RS–232 Ports5–62Table 5.BDF1 Command Summary (Cont’d)Command Command Structure Field DescriptionsWrite Display 0B 02 DataData = 01–
Chapter 5Using the RS–232 Ports5–63/* This sample program was Compiled using Microsoft C Verision 6.0 *//* Color CVIM RS–232 Comminication example
Chapter 5Using the RS–232 Ports5–64 /* Print options menu on the screen */ do { printf (”\n\nOperations: \n\n”); printf (”0. Echo
Chapter 5Using the RS–232 Ports5–65 case 3: /* read results block 1 */ { err = send_message (portnum, ”\
Chapter 5Using the RS–232 Ports5–66 } while (op_num >= 0); /* End do loop */ }int send_message (portnum, msg, len)int portnum;
Chapter 5Using the RS–232 Ports5–67 err |= 0x01; /* no DLE on send */ if (!err) { ch = _bios_serialcom(
Chapter 5Using the RS–232 Ports5–68 df1_bcc = –df1_bcc; if (( (ch & 0xFF) == df1_bcc ) && !err )
Chapter 5Using the RS–232 Ports5–69 { _bios_serialcom(_COM_SEND,portnum–1,DLE); _bios_serialcom(_COM_SEND
6Chapter6–1Using the Pyramid Integrator BackplaneThis chapter:• Describes the Pyramid Integrator Backplane.• Describes backplane communication techniq
Chapter 6Using the Pyramid Integrator Backplane6–2A MicroVAX information processor, PLC–5/250, or other device in thePyramid Integrator rack can reque
2Chapter2–1IntroductionIn this chapter we provide you with an overview of the options forcommunicating with the Color CVIM module. We also describe th
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
Chapter 6Using the Pyramid Integrator Backplane6–4The address of Color CVIM module shared memory is always SD13, withthe addressing as follows:Color C
Chapter 6Using the Pyramid Integrator Backplane6–5Figure 6.132 Bit Long Integer FilesUse the message instruction (MSG) to transfer configuration data
Chapter 6Using the Pyramid Integrator Backplane6–6The following program shows how to trigger an inspection,, upload an entireColor CVIM configuration
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
Chapter 6Using the Pyramid Integrator Backplane6–85370–CVIMC EXAMPLE PROGRAMProgram Listing Report PLC–5/250 File CVIMCRung 1TRN0:
Chapter 6Using the Pyramid Integrator Backplane6–9Rung 1STEP0:3| GAGE 1 SAVE THE || RESUL
Chapter 6Using the Pyramid Integrator Backplane6–10Rung 1STEP0:7| REQUEST 5370–CVIMC || UNLO
Chapter 6Using the Pyramid Integrator Backplane6–11Rung 1STEP0:9| REQUEST 5370–CVIMC || LOCA
Chapter 6Using the Pyramid Integrator Backplane6–12Rung 1STEP0:11| REQUEST 5370–CVIMC || MOV
Chapter 2Introduction2–2Figure 2.1Color CVIM Module Communications PortsCOLOR28012801AHow Does the Host DeviceRead Configuration/ResultsInformation?
Chapter 6Using the Pyramid Integrator Backplane6–13CONTROL BLOCK OMSG0:0F1 Module ID: Class = CVIM Pw# = 1 Port# = 1F2 Priority: HIGHF3 Local/Remote:
AAppendixA–1Results/Configuration Data OverviewThis appendix provides an overview of the word and bit addresses of datastored in memory if you are com
Appendix AResults/Configuration Data OverviewA–2Inspections which produce results that are fractional are represented usingtwo words (32 bits). The fi
Appendix AResults/Configuration Data OverviewA–3We have provided the following chart to assist you:Figure A.1Fractional Notation1/655361/327681/163841
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
BAppendixB–1Discrete Bit Results Bits(Host Input & Output Bits)This appendix lists the function of both the discrete bit inputs and outputs.These
(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–2Table B.1Discrete Bit InputsNote: The Remote I/O Bit Number column (marked with a
(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
(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
(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
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
(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
(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
(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
(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
(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
(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
(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
(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
(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
(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
Chapter 2Introduction2–4Depending upon the type of interface in use, you can access some or all ofthe information listed below:• Warning and Pass/Fail
(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
(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
(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
(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
(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–20Note: When using the backplane, don’t write directly to word 2. Write toword 1023
(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–21Table B.3Discrete Bit Outputs (Cont’d)PI Backplane Remote I/OWord # Bit # Word #
(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–22Table B.3Discrete Bit Outputs (Cont’d)PI Backplane Remote I/OWord # Bit # Word #
(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–23Table B.3Discrete Bit Outputs (Cont’d)PI Backplane Remote I/OWord # Bit # Word #
(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–24Table B.3Discrete Bit Outputs (Cont’d)PI Backplane Remote I/OWord # Bit # Word #
(Host Input & Output Bits)Appendix BDiscrete Bit Results BitsB–25Table B.3Discrete Bit Outputs (Cont’d)PI Backplane Remote I/OWord # Bit # Word #
Chapter 2Introduction2–5The results data for each inspection are stored in Random Access Memory(RAM) and overwrite the results of the previous inspect
CAppendixC–1Numerical Results DataThere are 6 results blocks for inspection. The following is an overview of theblocks.Block Number 1 Contains:• Block
Appendix CNumerical Results DataC–2Block #5 Contains:• Block transfer signature• Gages 45–56• Windows 43–48• Gages 57–64• Total number of triggers, mi
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 #
Appendix CNumerical Results DataC–4Table C.1Numerical Results Data–Results Block 1 (cont’d)Word #PIBackplaneRS–232andRemoteI/OBit # Definition Usage
Appendix CNumerical Results DataC–5Table C.1Numerical Results Data–Results Block 1 (cont’d)Word #PIBackplaneRS–232andRemoteI/OBit # Definition Usage
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 #
Appendix CNumerical Results DataC–7Table C.2Numerical Results Data–Results Block 2 (cont’d)Word #PIBackplaneRS–232andRemoteI/OBit # Definition Usage
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
Appendix CNumerical Results DataC–9Table C.3Numerical Results Data–Results Block 2 (cont’d)Word #PIBackplaneRS–232andRemoteI/OBit # Definition Usage
Appendix CNumerical Results DataC–10Table C.3Numerical Results Data–Results Block 2 (cont’d)Word #PIBackplaneRS–232andRemoteI/OBit # Definition Usage
Chapter 2Introduction2–6When you communicate through the Pyramid Integrator backplane all of thedata words are numbered consecutively and grouped in b
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
Appendix CNumerical Results DataC–12Table C.4Numerical Results Data–Results Block 4 (cont’d)Word #PIBackplaneRS–232andRemoteI/OBit # Definition Usage
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
Appendix CNumerical Results DataC–14Table C.5Numerical Results Data–Results Block 5 (cont’d)Word #PIBackplaneRS–232andRemoteI/OBit # Definition Usage
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
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
Appendix CNumerical Results DataC–17Table C.7Programmable Results/Statistics Block Configuration (cont’d)1771 Node AdapterResults or StatisticsFuncti
Appendix CNumerical Results DataC–18Table C.7Programmable Results/Statistics Block Configuration (cont’d)1771 Node AdapterResults or StatisticsFuncti
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
Appendix CNumerical Results DataC–20The statistics block can only be formatted through the Remote I/O port, butcan be read through either the BAckpla
Solid state equipment has operational characteristics differing from those ofelectromechanical equipment. “Safety Guidelines for the Application,Insta
Chapter 2Introduction2–7There are four communications ports which you can use simultaneously toaccess Color CVIM module data (Remote I/O, RS–232 Ports
DAppendixD–1Configuration DataThere are 213 configuration blocks. The following is an overview of theblocks.Block Number 1 System Environment. . . . .
Appendix DConfiguration DataD–2Table D.1 shows the function of each word in the system environmentconfiguration block.Table D.1Configuration Block #1–
Appendix DConfiguration DataD–3Table D.1Configuration Block #1– System Environment (cont’d)Remote I/O& RS–232Word #*Bit # Definition Usage Notes1
Appendix DConfiguration DataD–4Tables D.2 and D.3 show the function of each word in the camera definitionconfiguration blocks.Table D.2Configuration B
Appendix DConfiguration DataD–5Table D.2Configuration Block #2 – Camera Definition (cont’d)Remote I/O& RS–232Word #*Bit # Definition Usage Notes2
Appendix DConfiguration DataD–6Table D.3Configuration Block #3 – Camera DefinitionRemote I/O& RS–232Word #*Bit # Definition Usage Notes0 0–15 Bloc
Appendix DConfiguration DataD–7Table D.5 shows the function of each word in the Gray Scale Imagesdefinition.Table D.5Configuration Block 36 – Gray Sca
Appendix DConfiguration DataD–8Table D.6 shows the function of each word in the reference line 1–3configuration blocks.Table D.6Configuration Blocks #
Appendix DConfiguration DataD–9Table D.6Configuration Blocks #37–39 – Reference Lines 1–3 (cont’d)Remote I/O& RS–232Word #Bit # Definition Usage
Appendix DConfiguration DataD–10Table D.8Configuration Blocks #41, 43, & 45 – Reference Windows 1–3Remote I/O& RS–232Word #Bit # Definition Us
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
Appendix DConfiguration DataD–11Table D.8Configuration Blocks #41, 43, & 45 – Reference Windows 1–3 (cont’d)Remote I/O& RS–232Word #Bit # Def
Appendix DConfiguration DataD–12Table D.9Configuration Blocks #46–109 – Gages 1–64 (cont’d)Remote I/O& RS–232Word #*Bit # Definition Usage Notes1
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
Appendix DConfiguration DataD–14Table D.11Configuration Blocks #110, 112 . . . & 204 – Windows 1–48Remote I/O& RS–232Word #Bit # Definition Us
Appendix DConfiguration DataD–15Table D.12 shows the function of each word in the polygon configurationblocks.Table D.13PoIygon Configuration WordsRem
EAppendixE–1ASCII Conversion TableASCII orControl Char.DecimalValueHexValueASCll orControl Char.DecimalValueHexValueASCll orControl Char.DecimalValueH
Bulletin 5370 Color CVIMGlossaryConfigurable Vision Input ModuleG–1AACKAn abbreviated term for PositiveAcknowledgment. A control codethat indicates th
Configurable Vision Input ModuleBulletin 5370 Color CVIMGlossaryG–2floating pointA system of representing numericalquantities with a variable number
Bulletin 5370 Color CVIMGlossaryConfigurable Vision Input ModuleG–3Pparity bitA parity bit is added to a binary arrayto make the sum of all the bitsal
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
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
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
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
With offices in major cities worldwide.WORLD HEADQUARTERSAllen-Bradley1201 South Second StreetMilwaukee, WI 53204 USATel: (1) 414 382–2000Telex: 43 11
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
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
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
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
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
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
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.
A–BColor CVIM ModuleCommunications ManualTable of ContentsiChapter 1Chapter Objectives 1–1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
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
Chapter 3Using Local I/O3–11This section provides diagrams of electrical connections for correctlyconnecting your production equipment to the Color CV
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
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
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
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
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/
Chapter 3Using Local I/O3–17Table 3.GColor CVIM Output Line Planning SheetOutput Line Functions and AssignmentsLine Output LineGage WindowReferenceToo
4Chapter4–1Using the Remote I/O LinkIn this chapter we provide:• Basic description of Remote I/O communications.• Connection diagrams.• Description of
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
Color CVIM ModuleCommunications ManualTable of ContentsiiChapter 4 (continued)Color CVIM Module Configuration Instructions 4–7. . . . . . . . . . . .
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
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
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
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
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
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
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
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
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
Chapter 4Using the Remote I/O Link4–12The following ladder logic program provides examples of:• Triggering an inspection from a PLC.• Enabling/Disabli
Color CVIM ModuleCommunications ManualTable of ContentsiiiChapter 5 (continued)Set/Read Configurable Statistics 5–23. . . . . . . . . . . . . . . . .
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.
Chapter 4Using the Remote I/O Link4–14Rung 2:7Tells the Color CVIM to display the results page.| Display
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.
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
Chapter 4Using the Remote I/O Link4–1713.Both the programmable results block and statistic blocks are configured tocontain user specified results. To
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
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
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
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
Chapter 4Using the Remote I/O Link4–22Program Listing Report PLC–5/15 File CCVIM2 Rung 2:0Rung 2:0Initialize the appropiat
Color CVIM ModuleCommunications ManualTable of ContentsivAppendix AIntroduction A–1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 4Using the Remote I/O Link4–23Rung 2:4Set n7:70 to the number of triggers, before giving the system a new trigger.|
Chapter 4Using the Remote I/O Link4–24The following program provides an example of using bi–directional blocktransfers to:Transfer Color CVIM module c
Chapter 4Using the Remote I/O Link4–25Rung 2:3THE DATA LOCATION THIS BTR WILL READ IS DEFINED ON RUNG 0.|
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
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
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
Chapter 4Using the Remote I/O Link4–29 if (status != C_AUTOCONF && status != C_SETUP) printf (”Scanner fatal error %d\n”, fa
Chapter 4Using the Remote I/O Link4–30 err = g_op_stat & SO_FAULT; } break; case 3: /* read confi
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
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
Color CVIM ModuleCommunications ManualTable of ContentsvTablesTable 1.A Related Publications 1–3. . . . . . . . . . . . . . . . . . . . . . . . . . .
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
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
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
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
Chapter 5Using the RS–232 Ports5–610 Select the trigger source menu <Trigger Source>.11 Select either <I/O>, <Hosted>, or <Auto T
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
Chapter 5Using the RS–232 Ports5–8There are three types of fields:• Operation Field– This field contains commands directed to the ColorCVIM module. Th
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
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
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
Color CVIM ModuleCommunications ManualTable of ContentsviTables (continued)Table D.8 Configuration Blocks #41, 43, & 45 – Reference Windows 1–3D–1
Chapter 5Using the RS–232 Ports5–12Figure 5.3Memory Requirements for Images and ConfigurationsImage 1–11Image 1–12Config 3Config 4Config 1Config 2Imag
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
Chapter 5Using the RS–232 Ports5–14Use the read configuration command to read configuration data for thespecified blocks (Upload Configurations). The
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
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
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
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
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
Chapter 5Using the RS–232 Ports5–20Figure 5.6Memory Requirements for Images and ConfigurationsImage 1–11Image 1–12Config 3Config 4Config 1Config 2Imag
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
Color CVIM ModuleCommunications ManualTable of ContentsviiFigures (continued)Figure 5.8 Read Configuration Block Command Bytes 3–29 5–44. . . . . . Fi
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
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
Chapter 5Using the RS–232 Ports5–24Example of Read Statistics Command:> RS5 [CR] This example reads the statistics block five times.The data return
Chapter 5Using the RS–232 Ports5–25Use the trigger operation command to initiate an inspection by the colorCVIM module. Use the following commands:&g
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
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
Chapter 5Using the RS–232 Ports5–28Table 5.AASCII Command Summary (Cont’d)Command Command Structure Field DescriptionsSet Configurable Statistics >
Chapter 5Using the RS–232 Ports5–29The following sample program (called CCVIMASC.BAS) was written on anAllen–Bradley 1784–T47 terminal using GW BASIC.
Chapter 5Using the RS–232 Ports5–30Assume the ASCII string from the Color CVIM module is:CR LF 2114 __ __ __ __ __ __389 __ __ __ __ __ B0__80__A2__ 0
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
Komentarze do niniejszej Instrukcji