Denso Keyence Vision XG Series Manual

Denso Keyence Vision XG Series Manual

Image processing system

Advertisement

1
11[文書のタイトルを入力]
KEYENCE
Image Processing System
MODEL: XG Series

Advertisement

Table of Contents
loading

Summary of Contents for Denso Keyence Vision XG Series

  • Page 1 11[文書のタイトルを入力] KEYENCE Image Processing System MODEL: XG Series...
  • Page 2: Introduction

    This document is a user's manual for the provider to use "KEYENCE Image Processing System XG Series" connected to the DENSO robot controller RC8 series. Note that some functions may be unavailable on old XG models. For details and handling of the connected device, refer to the user's manual of "KEYENCE Image Processing System XG Series".
  • Page 3: Table Of Contents

    Contents Introduction ................................... 2 Important ....................................2 Notice to Customers ................................2 1. Outline of This Product (Provider) ..........................4 2. How to Connect ................................6 3. Communication Settings for Robot Controller and Device Used ................. 7 4. Provider Execution Procedure ............................9 5.
  • Page 4: Outline Of This Product (Provider)

    画像処理システム/XGシリーズ 1. Outline of This Product (Provider) 1.1 Target device of provider This provider can be used only when a DENSO robot controller (RC8 series) is connected to the XG-7000/8000 series (hereinafter referred to as XG). [XG] [Robot controller] 1.2 Features of provider This provider is provided to use the XG native commands required to access XG series in the robot program.
  • Page 5 画像処理システム/XGシリーズ 1.3 Mechanism of provider This provider offers various programs required to control the target device as a single provider. Just activate the license to use the provider. Once provider implementation is declared on a desired program file, the functions prepared by the provider can be used as commands in the user program.
  • Page 6: How To Connect

    画像処理システム/XGシリーズ 2. How to Connect 2.1 Ethernet (TCP/IP) connection example To connect to the robot controller via Ethernet, use the optional dedicated cable (KEYENCE PN: OP-66843) or a crossover LAN cable. Also, when a switching hub/router is used, use the cable suitable for the switching hub/router specifications.
  • Page 7: Communication Settings For Robot Controller And Device Used

    画像処理システム/XGシリーズ 3. Communication Settings for Robot Controller and Device Used Use a teach pendant to adjust the communication settings for the device to be used. 3.1 Communication via Ethernet (TCP/IP) 3.1.1 Ethernet (TCP/IP) communication settings on robot controller Set the robot controller's IP address. (1) Press [F6 Setting] - [F5 Communication and Token] - [F2 Network and Permission] to display the [Communication Settings] window.
  • Page 8 画像処理システム/XGシリーズ 3.1.2 Ethernet (TCP/IP) communication settings for XG series Select [Setting Menu] - [System Settings] on XG Vision Editor to display the [Communications & I/O - Ethernet(TCP/IP) Settings] window. Set the IP address and subnet mask so that the robot controller and XG series are within the same subnet mask.
  • Page 9: Provider Execution Procedure

    画像処理システム/XGシリーズ 4. Provider Execution Procedure The basic process of the provider is implementation (declaration) -> execution. This provider takes a connection process at the time of implementation. The operation can be repeated as many times as needed. A program example is shown below.
  • Page 10: Command Description

    画像処理システム/XGシリーズ 5. Command Description This page contains a description of commands. The commands are classified into connection commands, XG commands, and proprietary extension commands. For the detailed operation of XG commands, refer to the API list in the reference manual for V-Works for XG ActiveX Control for the KEYENCE XG-7000/8000 series. Table 5-1 List of commands Commands Refer...
  • Page 11 画像処理システム/XGシリーズ cao.AddController Usage Implements the provider to a variable and makes a connection to XG. Syntax cao.AddController( <Controller name>,<Provider name>, <Provider running machine name>,<Option> Argument: <Controller name> Assign a name (The name is used for control). <Provider name> "CaoProv.KEYENCE.VWXG" <Provider running machine name> Omit this parameter. <Option>...
  • Page 12 画像処理システム/XGシリーズ <ImplVar>.ChangeMode Usage Changes the operation mode to run or stop modes. Usage <ImplVar>.ChangeMode <Mode> Argument: <Mode> Switching between run and stop modes (integer) 0: Stop mode 1: Run mode Usage The operation mode is changed to run or stop. Example Dim caoCtrl as Object caoCtrl=cao.AddController("XG","CaoProv.KEYENCE.VWXG", "", "conn=eth:192.168.0.10")
  • Page 13 画像処理システム/XGシリーズ <ImplVar>.ChangeModeAsync Usage Change the operation mode between Online/Offline mode asynchronously. To obtain and check the return value of the command, use GetCommandResult command. Usage <ImplVar>.ChangeModeAsync <Mode> Argument: <Mode> Switching between run and stop modes (integer) 0: Stop mode 1: Run mode Usage Change the operation mode between Online/Offline mode asynchronously.
  • Page 14 画像処理システム/XGシリーズ <ImplVar>.ReadMode Usage Acquires the current operation mode (run, stop, or remote capture mode). Syntax <ImplVar>.ReadMode Return value: The current operation mode is stored. If acquisition fails, -1 is stored. (Variant type) 0: Stop mode 1: Run mode 2: Remote capture mode Description The current operation mode (run, stop, or remote capture mode) is acquired.
  • Page 15 画像処理システム/XGシリーズ <ImplVar>.Reset Usage Resets the controller. Syntax <ImplVar>.Reset Description The controller is reset. Example Dim caoCtrl as Object caoCtrl=cao.AddController("XG","CaoProv.KEYENCE.VWXG", "", "conn=eth:192.168.0.10") caoCtrl.Reset...
  • Page 16 画像処理システム/XGシリーズ <ImplVar>.Restart Usage Jumps to the next unit of the start unit. Syntax <ImplVar>.Restart Description The command makes a jump to the next unit of the start unit. Example Dim caoCtrl as Object caoCtrl=cao.AddController("XG","CaoProv.KEYENCE.VWXG", "", "conn=eth:192.168.0.10") caoCtrl.Restart...
  • Page 17 画像処理システム/XGシリーズ <ImplVar>.RestartAsync Usage Jump to the next unit after the Start unit asynchronously. To obtain and check the return value of the command, use GetCommandResult command. Syntax <ImplVar>.RestartAsync Description Jump to the next unit after the Start unit asynchronously. To obtain and check the return value of the command, use GetCommandResult command.
  • Page 18 画像処理システム/XGシリーズ <ImplVar>.Trigger Usage Issues a trigger. Syntax <ImplVar>.Trigger <Trigger No.> Argument: <Trigger No.> Specify the number of trigger to issue (integer). 1 – 4: Trigger 1 to 4 -1: All triggers Description A trigger is issued. Example Dim caoCtrl as Object caoCtrl=cao.AddController("XG","CaoProv.KEYENCE.VWXG", "", "conn=eth:192.168.0.10") caoCtrl.Trigger 2...
  • Page 19 画像処理システム/XGシリーズ <ImplVar>.EnableTrigger Usage Enables/disables trigger input. Syntax <ImplVar>.EnableTrigger <Enable mode> Argument: <Enable mode> Specify whether to enable/disable trigger (integer). 0: Trigger disabled 1: Trigger enabled Description Trigger is enabled/disabled. Example Dim caoCtrl as Object caoCtrl=cao.AddController("XG","CaoProv.KEYENCE.VWXG", "", "conn=eth:192.168.0.10") caoCtrl.EnableTrigger 1...
  • Page 20 画像処理システム/XGシリーズ <ImplVar>.ReadTriggerEnable Usage Acquires the current trigger status (enabled/disabled). Syntax <ImplVar>.ReadTriggerEnable Return value: The trigger status is stored. If acquisition fails, -1 is stored. (Variant type) 0: Trigger disabled 1: Trigger enabled Description The trigger status (enabled/disabled) is acquired. Example Dim caoCtrl as Object Dim vntResult as Variant caoCtrl=cao.AddController("XG","CaoProv.KEYENCE.VWXG", "", "conn=eth:192.168.0.10")
  • Page 21 画像処理システム/XGシリーズ <ImplVar>.WriteVariable Usage Writes a value to a specified scalar variable (global or local variable). Syntax <ImplVar>.WriteVariable <Variable name>, <Value> , <Synchronization mode> Argument: <Variable name> Specify a scalar variable name with one-byte characters (character string). <Value> Specify a value to write to the variable (Double type). <Synchronization mode>...
  • Page 22 画像処理システム/XGシリーズ <ImplVar>.ReadVariable Usage Acquires the value of specified scalar variable. Syntax <ImplVar>.ReadVariable( <Variable name> Argument: <Variable name> Specify a scalar variable name with one-byte characters (character string). Return value: The variable value is stored. If acquisition fails, -1.0 is stored. (Variant type) Description The value of specified scalar variable is acquired.
  • Page 23 画像処理システム/XGシリーズ <ImplVar>.ChangeInspectSetting Usage Changes the setting to the inspection setting number of the specified SD card. Syntax <ImplVar>.ChangeInspectSetting < SD card number>, < Inspection setting number> Argument: < SD card number> Specify the SD card number (Integer 1, 2). < Inspection setting number> Specify the inspection setting number (Integer 0 to 999) Description The setting is changed to the inspection setting number of the specified SD card.
  • Page 24 画像処理システム/XGシリーズ <ImplVar>.ChangeInspectSettingAsync Usage Switch the current program to the specified inspection setting number and SD card asynchronously. To obtain and check the return value of the command, use GetCommandResult command. Syntax <ImplVar>.ChangeInspectSettingAsync < SD card number>, < Inspection setting number> Argument: <...
  • Page 25 画像処理システム/XGシリーズ <ImplVar>. ReadInspectSetting Usage Obtain the currently used inspection setting number. Syntax <ImplVar>. ReadInspectSetting Argument: None Return value: The following two items are stored in an array of integer. Element number 0 : <SD card number> (Integer 1, 2). Element number 1 : <Inspection setting number> (Integer 0 to 999) Description Obtain the currently used inspection setting number.
  • Page 26 画像処理システム/XGシリーズ <ImplVar>.ClearError Usage Clears the error status and error code of the specified type. Syntax <ImplVar>.ClearError <Error type> Argument: <Error type> Specify the error status (Integer 0, 1). 0: %Error0 and %Error0Code cleared 1: %Error1 and %Error1Code cleared Description The error status and error code of the specified type are cleared. Example Dim caoCtrl as Object caoCtrl=cao.AddController("XG","CaoProv.KEYENCE.VWXG", "", "conn=eth:192.168.0.10")
  • Page 27 画像処理システム/XGシリーズ <ImplVar>.ExecuteCommand Usage Executes a specified non-procedural command. A command response is acquired regardless of whether the command execution is successful or not. Syntax <ImplVar>.ExecuteCommand ( <Non-procedural command> Argument: <Non-procedural command> Specify a command with a character string. Return value: Command response is returned with a character string.
  • Page 28 画像処理システム/XGシリーズ <ImplVar>.ExecuteCommandAsync Usage Execute a specified non-procedure command asynchronously. To obtain the return value or the execution result of this command, use GetCommandResult command. Syntax <ImplVar>.ExecuteCommandAsync ( <Non-procedural command> Argument: <Non-procedural command> Specify the character string of the command. Return value: None Description For the supported non-procedural commands, refer to the reference manual of...
  • Page 29 画像処理システム/XGシリーズ <ImplVar>.TriggerAndGetResult Usage Issues a specified trigger and acquires the processing result of images. Syntax <ImplVar>.TriggerAndGetResult ( <Trigger No.> Argument: <Trigger No.> Specify the number of trigger to issue (integer). 1 – 4: Trigger 1 to 4 -1: All triggers Return value: Output data specified for the result output unit is stored.
  • Page 30 画像処理システム/XGシリーズ <ImplVar>.GetCommandResult Usage Wait for the completion of the asynchronous command to get the return value of it. Syntax <ImplVar>.GetCommandResult Argument: None Return value: Return value of asynchronous command (Variant type) Description Wait for the completion of the asynchronous command to get the return value of it. If the executed asynchronous command which has not return value is executed, it returns nothing.
  • Page 31 画像処理システム/XGシリーズ <ImplVar>.ReceivePacket Usage Receive packets. Syntax <ImplVar>.ReceivePacket Argument: None Return value: Receiving packet Description Receive packets. If any packets have already been stored in the receiving buffer, packets in the receiving buffer will be obtained. Example Dim caoCtrl as Object Dim strRet as String caoCtrl=cao.AddController("XG","CaoProv.KEYENCE.VWXG", "", "conn=eth:192.168.0.10") caoCtrl.Trigger 1...
  • Page 32: Error Code Of Xg Provider

    画像処理システム/XGシリーズ 6. Error Code of XG provider The specific error code of XG provider is created as shown below, based on the return value of XG. 0x80100000 + Return value For the error code of each command, refer to ActiveX control reference manual of Keyence. Example: When executing ChangeMode.
  • Page 33: Operation Panel Screen

    画像処理システム/XGシリーズ 7. Operation Panel Screen This provider provides the following operation panel screen. This operation panel uses the provider to check operations, etc. after connecting to the device. See the following as an application example of the operation panel. Displaying the operation panel establishes connection to XG (implements the provider). The communication settings need to be configured beforehand.
  • Page 34: Sample Program

    画像処理システム/XGシリーズ 8. Sample Program Sub Main On Error Goto ErrProc 'Declare error process routine Dim caoXG as Object 'Declare provider variable Dim vntResult as Variant 'Declare character-string variable Dim pTargetPos as Position 'Declare P-type variable takearm keep = 0 pTargetPos = P11 caoXG = cao.AddController("XG", "CaoProv.KEYENCE.VWXG", "","Conn=eth:192.168.0.10") 'Provider implementation caoXG.ChangeInspectSetting 1, 2...
  • Page 35: Revision History

    Ver.1.0.5 Ver.2.3.* Modified version. DENSO WAVE INCORPORATED ● No part of this manual may be duplicated or reproduced without permission. ● The contents of this manual are subject to change without notice. ● Every effort has been made to ensure that the information in this manual is accurate. However, should any unclear point, error or omission be found, please contact us.

Table of Contents