Mitsubishi Electric MELSENSOR VS20 Connection Manual
Mitsubishi Electric MELSENSOR VS20 Connection Manual

Mitsubishi Electric MELSENSOR VS20 Connection Manual

Vision sensor, fa sensor
Hide thumbs Also See for MELSENSOR VS20:

Advertisement

Quick Links

Vision Sensor VS20
Connection Guide
-VS20M-11F310
-VS20M-12F410
-VS20M-13F410
-VS20C-12F410
-VS20C-13F410
This product was manufactured by Cognex Corporation.
*Note that the warranty on this product differs from that on other
programmable controller products.

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi Electric MELSENSOR VS20

  • Page 1 Vision Sensor VS20 Connection Guide -VS20M-11F310 -VS20M-12F410 -VS20M-13F410 -VS20C-12F410 -VS20C-13F410 This product was manufactured by Cognex Corporation. *Note that the warranty on this product differs from that on other programmable controller products.
  • Page 3: Safety Precautions

    SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual and the relevant manuals carefully and pay full attention to safety to handle the product correctly. The precautions given in this manual are concerned with this product only. For the safety precautions of the programmable controller system, refer to the user's manual for the CPU module used.
  • Page 4 [Startup and Maintenance Precautions] CAUTION ● Do not clean the Vision Sensor VS20 with highly irritating or corrosive solvent such as caustic alkali solution, methyl ethyl ketone (MEK), and gasoline. Doing so may cause a fault.
  • Page 5: Table Of Contents

    CONTENTS SAFETY PRECAUTIONS ..............1 CHAPTER 1 THE SLMP SCANNER CONNECTION Introduction .
  • Page 6: Chapter 1 The Slmp Scanner Connection

    THE SLMP SCANNER CONNECTION Introduction This chapter describes the procedures for connecting the Vision Sensor VS20 to a MELSEC programmable controller and controlling the vision sensor with a SLMP Scanner Connection. Example of system configuration for connecting the vision sensor Personal computer (GX Works3/In-Sight Explorer) Ethernet cable...
  • Page 7 Required modules and devices ■Mitsubishi Electric products MELSEC iQ-R Programmable controller Vision Sensor VS20 • CPU module: R04CPU • VS20M-13F410 GX Works3 In-Sight Explorer (Engineering software for programmable controller) (Setup tool for Vision Sensor) ■COGNEX products Ethernet cable Power and I/O breakout cable ■Commercial products...
  • Page 8: Connecting And Wiring Of The Vision Sensor

    Connecting and wiring of the vision sensor Verify that the 24 V DC power supply being used is unplugged and not receiving power. Optionally, connect the I/O or serial wires to an appropriate device (for example, a programmable controller). Attach the power and I/O breakout cable’s [24 V DC] (Red wire) and [GND] (Black wire) to the corresponding terminals on the power supply.
  • Page 9: Basic Operations Of The Slmp Scanner Connection

    Basic Operations of the SLMP Scanner Connection Basic operation flow of the SLMP scanner connection Programmable Vision sensor controller Reading control area Reading CPU device Set poll interval Reading CPU device Reading control area Set the trigger instruction Bit of CPU device Trigger ON to ON with the programmable controller Reading control area...
  • Page 10: Data Blocks

    Data blocks The following shows the six data blocks defined to control the vision sensor. Control Bit Blocks Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Set Offline Reserved Execute Inspection Buffer Results Trigger Trigger Enable Command...
  • Page 11 For details of the data block functions to control the vision sensor, refer to In-Sight Explorer's HELP. Set “SLMP” as a keyword in HELP and refer to the explanation of data blocks. 1 THE SLMP SCANNER CONNECTION 1.2 Basic Operations of the SLMP Scanner Connection...
  • Page 12: Timing Chart Of The Slmp Scanner Connection

    Timing chart of the SLMP scanner connection The following shows a timing chart when [Trigger] of the control bit block is turned on from the programmable controller. To enable the trigger from the programmable controller, turn on [Trigger Enable] of the control bit block. When [Trigger] of the control bit block is turned on from the programmable controller while [Trigger Ready] of the status bit block is on, the status of the vision sensor is output to [Trigger Ack], [Acquiring], [System Busy], and [Inspection Completed] by the status bit block.
  • Page 13: Vision Sensor Setting

    Vision Sensor Setting Setting an IP address to the personal computer Set the IP address 192.168.3.3 to the personal computer. Connecting of the vision sensor Start In-Sight Explorer to set the vision sensor. Start the In-Sight Explorer software.  Click [Add]. ...
  • Page 14 Connect to the vision sensor.  Click [Connect] to connect to the vision sensor.  1 THE SLMP SCANNER CONNECTION 1.3 Vision Sensor Setting...
  • Page 15 Creating a new job Create a new job. As an example, configure the setting of an inspection to see if there is a “CE” mark on the inspection object.  Select [New Job].  Adjust the lens so that the lens captures an inspection target in [Set Up Image], and configure the settings to acquire the image.
  • Page 16 Set a tool.  Select [Locate Part].  Select “Pattern”.   Set a model on the position to be detected.  Set the model. (Select “CE” mark)  Click [OK].   1 THE SLMP SCANNER CONNECTION 1.3 Vision Sensor Setting...
  • Page 17 Communication setting Configure the communication setting (SLMP scanner).  Select [Communication].  Select [Add Device].   Add the SLMP Scanner to the communication.  Configure the device setting as shown left. • Device: PLC/Motion Controller • Manufacturer: Mitsubishi • Protocol: SLMP Scanner ...
  • Page 18 Set the SLMP Scanner.  Configure the settings as shown left. • Controller Type: iQ-R/Q/L Series (3E Frame) • IP Address: 192.168.3.2 • Host Port: 12289 (Port No. of the Ethernet parameter set in GX Works3) • Timeout (ms): 1000 •...
  • Page 19 Outputting to the programmable controller Set data to be output from the vision sensor to the programmable controller. As an example, set PASS, FAIL, and the number of inspection to the output word block (D1015 to D1017).  Click [Add]. ...
  • Page 20 Saving the job Name the created job.  Select [Save Job].  Click [Save As...].   Input the file name and save the job.  Set “1TestSLMP” in “File name”.  Click [Save].   1 THE SLMP SCANNER CONNECTION 1.3 Vision Sensor Setting...
  • Page 21: Setting The Programmable Controller

    Setting the Programmable Controller Setting the programmable controller Start GX Works3 to set the programmable controller. Start GX Works3.  Start GX Works3 and create a new project.  On the newly created screen, configure the settings as shown left. ...
  • Page 22 Configure the parameter settings.  Double-click [Module Parameter] in the Navigation window.  Set [Module Parameter] of R04CPU as shown left.  IP Address: 192.168.3.2  Enable/Disable Online Change: Enable All (SLMP)  Communication Data Code: Binary  Click [External Device Configuration].
  • Page 23 End Setting.  Click [Apply] and end the settings.  The user has to set parameters for communication for the programmable controller, and does not need to create a program for communication. 1 THE SLMP SCANNER CONNECTION 1.4 Setting the Programmable Controller...
  • Page 24: Execute Programmable Controller And Vision Sensor

    Execute Programmable Controller and Vision Sensor Execute the programmable controller Start the programmable controller.  Click [Write to PLC].  Write the parameters.  Select [Parameter + Program].  Click [Execute].   After writing the parameters is completed, reset and run the programmable controller. Execute the vision sensor Turn OFFON the power supply of the vision sensor and restart it.
  • Page 25: Checking Operations

    Checking Operations Control the vision sensor using the programmable controller and check the operations. Make the vision sensor online Make the vision sensor online and start the communication with the programmable controller.  Select [Communication].   Select [Online].  Check that “Connected.” is displayed for the SLMP Scanner.
  • Page 26: Check Inspection Results

    Set the trigger.  To enable the trigger from the programmable controller, turn “ON” the “Network Trigger Enable” bit (D1000.0) of the control bit block. When the “Network Trigger Enable” bit (D1000.0) is “OFF”, the vision sensor does not operate even though the ...
  • Page 27: Contents In Data Blocks

    Contents in Data Blocks Contents in data blocks Set a start device and the number of devices to each data block with In-Sight Explorer. The start device types (such as D, M, and X) and the start devices can be changed. The number of devices, excluding the ones for the control bit block and status bit block, can be changed.
  • Page 28 ■Device assignment to be used control bit block Classification Device Control details (Application) Supplement Control bit block D1000.0 Network Trigger Enable The trigger is enabled by turning on this “trigger” bit and is disabled by clearing this bit. D1000.1 Trigger The following conditions need to be satisfied to enable the trigger.
  • Page 29 ■Device assignment to be used status bit block Classification Device Control Details (Application) Supplement Status Bit Blocks D1002.0 Network Trigger Ready This bit turns on when the trigger can be input. D1002.1 Trigger ON Acknowledgment This bit notifies that the trigger ON is acknowledged. This bit remains ON until the “trigger”...
  • Page 30 MEMO 1 THE SLMP SCANNER CONNECTION 1.7 Contents in Data Blocks...
  • Page 31: Chapter 2 I/O Connection

    I/O CONNECTION Introduction This chapter describes the procedures for connecting the Vision Sensor VS20 to a MELSEC programmable controller and controlling the vision sensor with I/O. Example of system configuration for connecting the vision sensor Personal computer (GX Works3/In-Sight Explorer) Ethernet cable USB cable MELSEC iQ-R Programmable controller...
  • Page 32 Required modules and devices ■Mitsubishi Electric products MELSEC iQ-R Programmable controller Vision Sensor VS20 • CPU module: R04CPU • VS20M-13F410 • Input module: RX40C7 • Output module: RY40NT5P GX Works3 In-Sight Explorer (Engineering software for programmable controller) (Setup tool for Vision Sensor) ■COGNEX products...
  • Page 33: Connecting And Wiring Of The Vision Sensor

    Connecting and wiring of the vision sensor Ethernet cable connection Connect the Ethernet cable’s M12 connector to the vision sensor’s Ethernet connector. Connect the Ethernet cable’s RJ-45 connector to the switching hub or personal computer, as applicable. 2 I/O CONNECTION 2.1 Introduction...
  • Page 34 Connect the power and I/O breakout cable Precautions • When connecting the vision sensor and programmable controller, simultaneously turn on the vision sensor and programmable controller, or first turn on the programmable controller. • Cut unused wires or protect them with insulating materials. Keep all bare wires separated from the 24 V DC wire. Verify that the 24 V DC power supply being used is unplugged and not receiving power.
  • Page 35: Vision Sensor Setting

    Vision Sensor Setting Setting an IP address to the personal computer Set the IP address 192.168.3.3 to the personal computer. Connecting of the vision sensor Start In-Sight Explorer to set the vision sensor. Start the In-Sight Explorer software.  Click [Add]. ...
  • Page 36 Connect to the vision sensor.  Click [Connect] to connect to the vision sensor.  2 I/O CONNECTION 2.2 Vision Sensor Setting...
  • Page 37 Creating a new job Create a new job. As an example, configure the setting of an inspection to see if there is a “CE” mark on the inspection object.  Select [New Job].  Adjust the lens so that the lens captures an inspection target in [Set Up Image], and configure the settings to acquire the image.
  • Page 38 Set a tool.  Select [Locate Part].  Select [Pattern].   Set a model on the position to be detected.  Set the model. (Select “CE” mark)  Click [OK].   Set the name of the set pattern. ...
  • Page 39 Inputting from the programmable controller Set the input data from the programmable controller.  Select [Inputs].  Set the Direct 0 signal type to “Online/Offline”.   Outputting to the programmable controller Set the data to be output to the programmable controller. ...
  • Page 40 Saving the job Name the created job and save it.  Select [Save Job].  Check [Start the Sensor in Online Mode].  Click [Save As].    Input the file name and save the job.  Set any file name. ...
  • Page 41: Setting The Programmable Controller

    Setting the Programmable Controller Setting the programmable controller Start GX Works3 to set the programmable controller. Start GX Works3.  Start GX Works3 and create a new project.  On the newly created screen, configure the settings as shown left. ...
  • Page 42 Configure the parameter settings.  Double-click “System Parameter” in the Navigation window.  Set I/O module.  Select [I/O Assignment Setting].  Set “RX40C7” for slot 0 and “RY40NT5P” for slot 1.  Click [OK].    2 I/O CONNECTION 2.3 Setting the Programmable Controller...
  • Page 43 Creating program As applicable, create a program using the following I/O signals. Signal Signal Name Contents Remarks Pattern_1 PASS It turns on when the captured image matches the model When the vision sensor is not in the (feature) set in Pattern_1. online status, this signal turns off.
  • Page 44 • Program example Program example is shown below. The CPU devices used in the program example are as follows. For the I/O signals, refer to the previous page. Signal Signal Name Contents Remarks  Online command During the on status, Y12 turns on, becoming the online status.
  • Page 45: Execute Programmable Controller And Vision Sensor

    Execute Programmable Controller and Vision Sensor Execute the programmable controller Start the programmable controller.  Click [Write to PLC].  Write the parameters.  Select [Parameter + Program].  Click [Execute].   After writing the parameters is completed, reset and run the programmable controller. Execute the vision sensor Turn OFFON the power supply of the vision sensor and restart it.
  • Page 46: Checking Operations

    Checking Operations Control the vision sensor using the programmable controller and check the operations. Make the vision sensor online Turn on the programmable controller online command (M0) and shift the vision sensor from the discrete online status to the online status. Set the trigger to the vision sensor Turn on the trigger command (M1) of the programmable controller and trigger it to the vision sensor.
  • Page 47: Revisions

    Japanese manual number: BCN-P5999-0860-A This manual confers no industrial property rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
  • Page 48: Trademarks

    TRADEMARKS The following are registered trademarks of Cognex Corporation: Cognex, 2DMAX, Advantage, AlignPlus, Assemblyplus, Check it with Checker, Checker, Cognex Vision for Industry, Cognex VSOC, CVL, DataMan, DisplayInspect, DVT, EasyBuilder, Hotbars, IDMax, In-Sight, Laser Killer, MVS-8000, OmniView, PatFind, PatFlex, PatInspect, PatMax, PatQuick, SensorView, SmartView, SmartAdvisor, SmartLearn, UltraLight, Vision Solutions, VisionPro, VisionView The following are trademarks of Cognex Corporation: The Cognex logo, 1DMax, 3D-Locate, 3DMax, BGAII, CheckPoint, Cognex VSoC, CVC-1000, FFD, iLearn, In-Sight (design...
  • Page 50 Cognex Corporation www.cognex.com BCN-P5999-0861-A(1706) HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN NAGOYA WORKS : 1-14 , YADA-MINAMI 5-CHOME , HIGASHI-KU, NAGOYA , JAPAN When exported from Japan, this manual does not require application to the Ministry of Economy, Trade and Industry for service transaction permission. Specifications subject to change without notice.

Table of Contents