Plus BCR Communications Contents 1 Introduction ........................3 2 iVu Plus Communication Summary of Ethernet and Serial ..........4 2.1 Communication Channels ......................4 2.2 Industrial Ethernet ........................4 2.3 Command Channel ........................4 2.4 Data Export ..........................5 2.5 Image Export ..........................
Plus BCR Communications 1 Introduction The iVuPlus device can be controlled or monitored over Industrial Ethernet using Ethernet/IP, Modbus/TCP or PCCC protocols. This document will help you to set up the iVu Plus in the desired configuration and provide you with information...
Plus to match the settings of the external device. 2.1 Communication Channels The iVu Plus BCR supports up to four communications channels. To access the channels, go to Main Menu > System > Communications.
Change the running inspection 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.
Sample Application The iVu Plus BCR installation CD has a Data Export sample application that provides for viewing exported data while setting up the sensor, etc. In a production environment, you will need to create your own application to process data exported from the sensor.
Page 7
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...
Plus BCR Communications 3 Enabling Communications 3.1 Setting Up Ethernet Communications Configure both the PC and the sensor using the following instructions. 3.1.1 Windows XP 1. Open Network Properties on the PC (right-click on the Network Neighborhood icon). 2. On the Local Area Connection, right-click on Properties.
Plus BCR Communications 4. In the Internet Protocol (TCP/IPv4) Properties dialog, select Use the following IP address and make sure that the IP address is 192.168.0.2, and the subnet mask is 255.255.255.0. 3.1.3 Sensor Setup for Ethernet Communications 1. Go to Main Menu > System > Communications > Ethernet I/O and make sure that the sensor is configured as shown below.
Page 10
Plus BCR Communications b. Configure the field and end-of-frame delimiters. Go to Main Menu > System > Communications > Command Channel > Delimiters. 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.
Plus BCR Communications c. Go to Main Menu > System > Communications > Data Export > Output Format and select the Start String, Delimiter, and End String. d. Go to Main Menu > System > Communications > Data Export > Advanced.
Plus BCR Communications 3.2 Setting Up Serial Communications 1. Electrically connect the control device and the iVu sensor. On the iVu, the pins/wire colors used for serial communications via RS-232 are shown in the table below. Table 2: iVu RS-232 Connections...
Page 13
Plus BCR Communications 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 d. Go to Main Menu > System > Communications > Data Export > Advanced. 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.
Plus BCR Communications 4 Testing and Troubleshooting iVu Plus Communications 4.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.
Plus BCR Communications 4.3 Serial I/O 4.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. To access the Port Status screen, go to Main Menu >...
Page 17
Plus BCR Communications 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.
Plus BCR Communications 5 Command Channel Primer 5.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;...
Plus BCR Communications Command Channel Response Frames The iVu responds to all request frames with one or two responses depending on the type of command. Do commands All do commands are followed by one response that identifies the command status. For example: >>...
Plus BCR Communications 4. Set Trigger to Command. Go to the Main Menu > Imager > Trigger screen, and from the drop-down select Command 5. Issue a trigger command as follows: >> do trigger\x0D\x0A << OK\x0D\x0A 6. Check that the inspection passed.
Plus BCR Communications 8. Get the barcode data read by the iVu sensor. >> get bcr_result data\x0D\x0A << OK\x0D\x0A << "0043000011201"\x0D\x0A 5.4 Command Channel Reference 5.4.1 Info Command Group Command Group Item Description Info CompanyName The company name as a string.
Plus BCR Communications Command Group Item Description Ethernet SubnetMask Set new subnet mask. A 'Reboot' command is required to be sent from the command channel in order to make the new mask effective. Ethernet Gateway Set new Gateway IP address. A 'Reboot' command is required to be sent from the command channel to make the new address effective.
Plus BCR Communications Command Group Item Description Trigger Gated This command initiates the gated triggering mode. Images are repeatedly acquired until a valid object is detected or this mode is aborted. The sensor does not transmit a response until the sensor has completed the action and returned to the READY state.
Plus BCR Communications 5.4.7 ProductChange Command Group Command Group Item Description ProductChange [Name] Forces the sensor to switch to the specified inspection. The sensor does not transmit a response until the sensor has completed the action. Inspections results will be invalid until the next trigger.
Plus BCR Communications Examples >> get history passed\x0D\x0A << OK\x0D\x0A << 13\x0D\x0A >> get history startframenumber\x0D\x0A << OK\x0D\x0A << 3\x0D\x0A >> do history clear\x0D\x0A << OK\x0D\x0A 5.4.9 Inspection Command Group Command Group Item Description Inspection Status This status of the most recent inspection either Pass, Fail, or Idle (no triggers).
Plus BCR Communications Command Group Item Description BCR_INPUT CompareMask The Barcode inspection compare string mask in binary format; that is, masked characters are indicated by a "1" and unmasked characters are "0." Note that the mask character string must match the length of the compare string.
Page 27
Plus BCR Communications Numeric ID Text ID Description 10001 COMMAND_NOT_RECOGNIZED The command specified is not recognized 10100 GROUP_MISSING A Group ID must be specified immediately after the command 10101 GROUP_NOT_FOUND The specified Group ID is invalid / unknown 10102...
Page 28
Index data export log 15 data export 15 data export sample application 6 command channel image export 6 command channel log 15 productchange command group 24 command channel sample Ethernet 4 application 5 ethernet communications 8 command group history 24 info 21 RS-232 4 inspection 25...