Banner iVu Plus User Manual

Bcr communications remote sensor
Hide thumbs Also See for iVu Plus:

Advertisement

Quick Links

iVu Plus BCR Communications User's Guide
Online Only - rev. A 1/7/2011

Advertisement

Table of Contents
loading

Summary of Contents for Banner iVu Plus

  • Page 1 Plus BCR Communications User's Guide Online Only - rev. A 1/7/2011...
  • Page 2: Table Of Contents

    ..........................5 1.2 Enabling Communications ........................6 1.2.1 Setting Up Ethernet Communications ...................6 1.2.2 Setting Up Serial Communications .....................11 2 Testing and Troubleshooting iVu Plus Communications ..........16 2.1 Understanding the Communication Log ....................16 2.2 Ethernet I/O ............................16 2.2.1 Ethernet I/O Status ........................16 2.3 Serial I/O...
  • Page 3: Ivu Plus Communications

    1.1 iVu Plus Communications The iVu Plus provides for communicating with other devices via Ethernet or a UART serial communications port (RS-232). In order to establish an Ethernet connection to the sensor, the external device must be configured with the correct IP address and correct TCP port to communicate.
  • Page 4: Data Export

    1.1.2 Command Channel Sample Application The iVu Plus BCR installation CD has a Command Channel sample application that provides an easy interface to execute commands. In a production environment, you will need to create your own application for bi-directional communication with the sensor.
  • Page 5: Image Export

    1.1.4 Image Export Sample Application The iVu Plus BCR installation CD has a Image Export sample application that provides a way to save exported images. In a production environment, you will need to write your own application to process exported images, for example to display them on an HMI or to save them to disk.
  • Page 6: Enabling Communications

    1.2.1 Setting Up Ethernet Communications The following is the general flow for setting up for Ethernet communications between the iVu Plus sensor and a remote device: NOTE: These instructions assume that the remote device is a PC running Windows XP.
  • Page 7 Plus BCR Communications User's Guide Windows XP Windows 7 4. In the Internet Protocol (TCP/IP) Properties dialog, select 4. In the Internet Protocol (TCP/IPv4) Properties dialog, se- Use the following IP address and make sure that the IP lect Use the following IP address and make sure that the address is 192.168.0.2, and the subnet mask is...
  • Page 8 Plus BCR Communications User's Guide 2. To enable the command channel over Ethernet: a. Go to Main Menu > System > Communications > Command Channel > Connection , and select Ethernet [IP Port # 32000]. b. Configure the field and end-of-frame delimiters. Go to Main Menu > System > Communications > Command Channel >...
  • Page 9 Plus BCR Communications User's Guide Valid end-of-frame delimiters are: <comma>, <colon>, <semicolon>, <CR>, <CR><LF>, <LF><CR>, or <ETX>. c. Verify that the iVu receives and transmits data correctly. 3. To enable Data Export over Ethernet: a. Go to Main Menu > System > Communications > Data Export > Connection and select Serial I/O from the drop-down.
  • Page 10 Plus BCR Communications User's Guide b. Go to Main Menu > System > Communications > Data Export > Data To Export and select the inspection data to export. c. Go to Main Menu > System > Communications > Data Export > Output Format and select the Start String, Delimiter, and End String.
  • Page 11: Setting Up Serial Communications

    Plus BCR Communications User's Guide During the Data and Image export operation the sensor's output channels might become full. This can occur if the sensor is producing export data (frames) faster than the data can be exported from the device (due to bandwidth limitations) or faster than the client is reading the channel export data.
  • Page 12 Plus BCR Communications User's Guide 3. To enable the command channel over the serial connection: a. Go to Main Menu > System > Communications > Command Channel > Connection and select Serial I/O. b. Configure the field and end-of-frame delimiters. Go to Main Menu > System > Communications > Command Channel >...
  • Page 13 Plus BCR Communications User's Guide d. Verify that the iVu receives and transmits data correctly. 4. To enable Data Export over the serial connection: a. Go to Main Menu > System > Communications > Data Export > Connection and select Serial I/O from the drop-down.
  • Page 14 Plus BCR Communications User's Guide b. Go to Main Menu > System > Communications > Data Export > Data To Export and select the inspection data to export. c. Go to Main Menu > System > Communications > Data Export > Output Format and select the Start String, Delimiter, and End String.
  • Page 15 Plus BCR Communications User's Guide During the Data and Image export operation the sensor's output channels might become full. This can occur if the sensor is producing export data (frames) faster than the data can be exported from the device (due to bandwidth limitations) or faster than the client is reading the channel export data.
  • Page 16: Testing And Troubleshooting Ivu Plus Communications

    2 Testing and Troubleshooting iVu Plus Communications 2.1 Understanding the Communication Log The iVu Plus sensor includes the following Communication Logs: • Command Channel Log that can be used to ensure that commands are properly formed (syntax is correct), and provides a history of commands issued along with responses to these commands.
  • Page 17: Serial I/O

    Plus BCR Communications User's Guide Example: Link Status Connected Speed 100 Mbps Mode Full Duplex MAC Address 00:23:D9:00:AB:CD Packets Sent Packets Received 2.3 Serial I/O 2.3.1 Using the Port Status Screen for Testing RS-232 Communications The Port Status screen can be used to ensure data is entering and exiting the sensor. This can be useful for debugging issues such as improper wiring, mismatched baud rates, or other serial I/O issues.
  • Page 18: Using The Ivu Command Channel Sample Application Or A Terminal Program For Testing

    Plus BCR Communications User's Guide Port Errors The Port Errors screen can help to debug communications channel issues: Parity, Break, and Framing indicate mismatched port settings or, in the case of Break, incorrect cabling. 2.3.2 Using the iVu Command Channel Sample Application or a Terminal Program for Test-...
  • Page 19 Plus BCR Communications User's Guide 2. On the requesting device, transmit one or more bytes to the iVu sensor. • If the data byte values appear correct and the number sent by the requesting device matches the number received by the iVu sensor, then the transmit/receive functionality is working properly.
  • Page 20 Plus BCR Communications User's Guide 3. If the byte count does not match, re-verify that the settings on both devices match exactly. If no bytes are received, re-check the wiring. If the correct response frame is received, then basic electrical and port settings are correct.
  • Page 21: Command Channel Primer

    3 Command Channel Primer 3.1 Command Channel Commands All iVu command channel request command frames use the following syntax: >> command group item value<EOF> Notes <EOF> is the end-of-frame delimiter. See below for a description. All commands are in ASCII and are case-insensitive command An action to be performed on a particular iVu group;...
  • Page 22: String Delimiters And Escaping

    Plus BCR Communications User's Guide >> set trigger mode command\x0D\x0A << OK\x0D\x0A >> do trigger\x0D\x0A << OK\x0D\x0A 3.1.2 String Delimiters and Escaping Strings used in commands are always enclosed in quotation marks (""). All text in quotes is part of the command. Quotes (") or back- slashes (\) that are part of the string must be escapted with a back-slash.
  • Page 23: Conventions Used For Examples

    Plus BCR Communications User's Guide 3.2 Conventions Used for Examples There are a number of command channel examples included here, and the following are the conventions used in the examples: • All examples use <CR><LF> for the end-of-frame delimiter, and this delimiter is always denoted in hex (\x0D\x0A) since that is what is displayed in the iVu logs and, for example, the Port Status screen.
  • Page 24: Ivu Plus Command Channel Reference

    Plus BCR Communications User's Guide 3. Trigger the sensor. >> do trigger\x0D\x0A << OK\x0D\x0A 4. Check that the inspection passed. >> get inspection status\x0D\x0A << OK\x0D\x0A << Pass\x0D\x0A 5. Get the barcode data read by the iVu sensor. >>...
  • Page 25 Plus BCR Communications User's Guide Examples >> get info companyname\x0D\x0A << OK\x0D\x0A << "Banner Engineering Corp."\x0D\x0A >> get info bootnumber\x0D\x0A << OK\x0D\x0A << 42\x0D\x0A >> get info uptimer\x0D\x0A << OK\x0D\x0A << 4:42:42:324\x0D\x0A 3.4 System Command Group Command Group Item...
  • Page 26 Plus BCR Communications User's Guide << OK\x0D\x0A << False\x0D\x0A >> do status clearsystemerror\x0D\x0A << OK\x0D\x0A 3.4 Trigger Command Group Command Group Item Description Trigger Mode The sensor's triggering mode. This value must match the modes supported by the sensor.
  • Page 27 Plus BCR Communications User's Guide Command Group Item Description Trigger AbortGated This command aborts the gated triggering mode. The sensor does not transmit a response until the gated triggering option has been aborted and the sen- sor has returned to the READY state.
  • Page 28 Plus BCR Communications User's Guide Command Group Item Description ory. The 'Save' operation is re- quired to persist this value. Examples >> get imager exposure\x0D\x0A << OK\x0D\x0A << Command\x0D\x0A >> set imager exposure"11900"\x0D\x0A << OK\x0D\x0A 3.4 Teach Command Group...
  • Page 29 Plus BCR Communications User's Guide 3.4 History Command Group Command Group Item Description History Passed This value indicates the number of passed inspections for the active inspection. This value is cleared (reset) whenever history is cleared. This value is cleared (reset) when the device starts up or is rebooted.
  • Page 30 Plus BCR Communications User's Guide Command Group Item Description History MaxInspectionTime This value indicates the maxi- mum (slowest) inspection time for the active inspection. This value is cleared (reset) whenev- er history is cleared. This value is cleared (reset) when the de- vice starts up or is rebooted.
  • Page 31 Plus BCR Communications User's Guide Command Group Item Description Inspection Name The name of the active inspec- tion. Inspection FrameNumber The most recent inspection frame number Inspection ExecutionTime The most recent inspection exe- cution time in msec. Examples >>...
  • Page 32 Plus BCR Communications User's Guide Command Group Item Description can be modified using the sen- sor's touchscreen. This remote- ly modified value is not persis- ted to the sensors permanent memory. The 'Save' operation is required to persist this value.
  • Page 33: Command Channel Error Codes

    Plus BCR Communications User's Guide 3.4 BCR_HISTORY Command Group Command Group Item Description BCR_HISTORY MinCount This value indicates the mini- mum number of barcodes read for the active inspection This value is cleared (reset) whenev- er history is cleared. This value is cleared (reset) when the de- vice starts up or is rebooted.
  • Page 34 Plus BCR Communications User's Guide Numeric ID Text ID Description 10301 DATA_VALUE_MISSING Command missing item's data value 10350 ARGUMENTS_DETECTED Get command received with unneeded ar- guments 10351 INVALID_ARGUMENT_TYPE Item ID specified must be a item (not a group or method)
  • Page 35 Plus BCR Communications User's Guide Numeric ID Text ID Description 80200 SYSTEM_ERROR_NOT_ACTIVE The System Error must be active to exe- cute this command Online Only - rev. A www.bannerengineering.com - tel: 763-544-3164...
  • Page 36 Index Index image export sample application 5 info command group 24 command channel inspection command group 30 image export 5 command channel log 16 command channel sample application 4 command group logs info 24 command channel 16 inspection 30 data export 16 productchange 28 status 25 system 25...

Table of Contents