The text of a manual · part 39 of 43
QX-870 Industrial Raster Scanner User Manual, pages 381 to 390
Pages 381 to 390 of 426
The original document is the PDF (7.0 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Microscan QX-870
Page 381
Appendices
Appendix I, Configuring Ethernet TCP/IP When using Ethernet to deploy QX-870s in an application, the host computer must be in the same IP range as the devices. Network settings are accessible in Windows from the Control Panel. The steps below show how TCP/IP settings can be configured. 1. From the Windows Start Menu, open Control Panel and double-click Network Connections.
2. The Network Connections dialog will appear. Double-click the icon for the Local Area Connection being used in the application.
QX-870 Industrial Raster Scanner User Manual
A-95
Page 382
Configuring Ethernet TCP/IP
Configuring Ethernet TCP/IP (cont.) 3. The Local Area Connection Status dialog will appear. To check the host computer’s connection settings, click Details on the Support tab. To verify connection status: On the Support tab, click the Details button to bring up a list of Network Connection Details.
4. A connected QX-870’s default address information can be verified in ESP by clicking the Search button in the Connection Wizard. Compare the imager’s IP address to the host’s IP address to determine whether or not they are in the same subnet range (this can be determined by your I.T. department if you are unsure).
A-96
QX-870 Industrial Raster Scanner User Manual
Page 383
Appendices
Configuring Ethernet TCP/IP (cont.) 5. To change the host computer’s connection settings, click Properties on the General tab. To change TCP/IP settings: On the General tab, click the Properties button to bring up a list of items being used by the current connection. On the Local Area Connection Properties dialog, double-click Internet Protocol (TCP-IP).
6. The Internet Protocol (TCP/IP) Properties dialog will appear.
Select Use the following IP address to set the IP Address, Subnet, and Gateway.
QX-870 Industrial Raster Scanner User Manual
A-97
Page 384
Using EtherNet/IP
Appendix J, Using EtherNet/IP Overview The EIP interface will be identified as a Generic Device (0x00). The interface is designed to support remote serial transmit and receive using explicit unconnected messaging.
Necessary Tools The following tools are helpful for configuring the EIP: • EtherNet/IP Messaging Tool – can be a PLC or Software Tool, must be capable of sending explicit messages and establishing Class 1 connections. EIPScan is an example of such a tool. • Terminal emulation or serial communication tool that can connect to a TCP socket, such as HyperTerminal. • ESP – Microscan’s Easy Setup Program. This tool has the ability to find Microscan products on the network, configure their ip address, then configure all application parameters.
EtherNet/IP Terms of Use EtherNet/IP Technology is governed by the Open DeviceNet Vendor Association, Inc (ODVA). Any person or entity that makes and sells products that implement EtherNet/IP Technology must agree to the Terms of Usage Agreement issued by ODVA. See www.odva.org for details.
Device Type The EtherNet/IP device type is 0x00, Generic Device.
Vendor ID Microscan’s Vendor ID is 1095.
Product Code The Product Code is 870.
QX-870 EtherNet/IP Object Model The QX-870 uses Class 1 connected messaging to communicate most data in three different io assemblies. The user chooses one of two input assemblies, plus the output assembly, to create a Class 1 connection. Connection properties supported: Class: 1 Trigger Mode: Cyclic and Change of State Cyclic Rate: Greater than 20 ms recommended. 10 ms minimum. Size: Fixed Type: Point-to-Point (PLC OUT, O->T), Point-to-Point and Multicast (PLC IN, T->O) Priority: Low, High, and Scheduled
A-98
QX-870 Industrial Raster Scanner User Manual
Page 385
Appendices
Data Types Microscan Data Type AB PLC U8 SINT U32 DINT STRING32
STRING
ODVA CIP EDS USINT UDINT
Description Unsigned, 8 bit Unsigned, 32 bit A 32 bit length field, followed by UDINT and BYTE[] 8 bit ASCII characters
QX-870 Small IN Assembly 0x64, 100 decimal (IN = QX-870 -> PLC) Field # 0 1 2
Data Type U32 U32 (32 bit flags) U32 (32 bit flags)
3
U32
4
STRING 32
Size (# of Data Type Elements 1 1 1
1
U32 + U8[64]
Field Name User-Defined Tag Echo Echo from asm OUT 0xC6 Command Echo Echo from asm OUT 0xC6 Output Control Echo Echo from asm OUT 0xC6 Read Cycle Sequence Counter: When this value changes, it indicates the following read cycle report fields have changed. 0 = Read cycle report has been “reset” to “empty”. Read cycle report data is only valid when Sequence is not 0. Read Cycle Report: Decoded Data Up to 64, 8-bit chars The first U32 is the length of the bar code data in the U8[64] field.
Total= 84 U8, or 21 U32 This is a small, lightweight input assembly. It is a subset of the “Big IN Assembly 0x65”. It provides feedback of the output assembly, and the text of any bar codes decoded by the reader. See Big IN Assembly 0x65 for a description of the data fields.
QX-870 Industrial Raster Scanner User Manual
A-99
Page 386
Using EtherNet/IP
QX-870 Big IN Assembly 0x65, 101 decimal (IN = QX-870 -> PLC) Field # 0 1 2 3 4 5
Data Type U32 U32 (32 bit flags) U32 (32 bit flags) U32 (32 bit flags) U32 (32 bit flags) U32 (32 bit flags)
Size (# of Data Type Elements 1 1 1
Field Name User-Defined Tag Echo Echo from asm OUT 0xC6 Command Echo Echo from asm OUT 0xC6 Output Control Echo Echo from asm OUT 0xC6
1
External Input Status (Physical Pin State)
1
External Output Status (Physical Pin State)
1
Device Status
6
U32
1
7 8 9 10
U32 U32 U32 U32
1 1 1 1
11
STRING 32
U32 + U8[128]
Read Cycle Sequence Counter: When this value changes, it indicates the following read cycle report fields have changed. 0 = Read cycle report has been “reset” to “empty”. Read cycle report data is only valid when Sequence is not 0. Read cycle report: Trigger count <T> Read cycle report: Decode/Match count <V> Read cycle report: Mismatch count <X> Read cycle report: Noread count <N> Read cycle report: Decoded Data Up to 128, 8-bit chars The first U32 is the length of the bar code data in the U8[128] field.
Total= 176 U8, or 44 U32 This contains more status information, and a longer bar code string, than the “Small IN Assembly 0x64”. This gives the PLC visibility of the device’s discrete io, current operational status, and read cycle counters.
A-100
QX-870 Industrial Raster Scanner User Manual
Page 387
Appendices
User Defined Tag Echo, Command Echo, Output Control Echo These are a direct echo of the equivalent fields in the OUT assembly. They provide the PLC programmer with a method of verifying that the OUT data has been received by QX-870.
External Input Status (Physical Pin State) Bit # 0 1 2-31
Pin Name Trigger New Master Reserved
0 = no current sensed on input 1 = current sensed on input
External Output Status (Physical Pin State) Bit # 0 1 2 3-31
Pin Name Out1 Out2 Out3 Reserved
0 = output contact is open 1 = output contact is closed
Device Status Field # Bit Name 0 Reserved New Master 1 Requested 2-7 Reserved 8 Scanning Disabled 9-15 Reserved 16 In Read Cycle 17 Actively Scanning
State 1 = New Master Requested 1 = Scanning Disabled 1 = In Read Cycle 1 = Active Scanning
QX-870 Industrial Raster Scanner User Manual
A-101
Page 388
Using EtherNet/IP Note the following details with “In Read Cycle” and “Actively Scanning” signals: 1. They may be very short-lived. It is possible for the reader to begin and end a read cycle without these signals being seen in active state. 2. They are only valid for normal read cycle operation: continuous, serial, and triggered. They do not reflect operation during bar code configuration, read rate, auto-calibration, or ESP “Setup” mode.
Read Cycle Sequence Counter When this value changes, it indicates a new read cycle report is present. Read cycle report data is only valid when Sequence is not 0. Read cycle reports are only output during normal read cycles: continuous, serial, and triggered. Read cycle reports are not output during bar code configuration, read rate, auto-calibration, or ESP “Setup” mode.
Read Cycle Report: Trigger, Decode/Match, Mismatch, No Read Count These are the historical read cycle result counters. By comparing the values to a previous report, the number of decodes, mismatches and noreads in the current read cycle can be determined.
Read Cycle Report: Decode Data This string has the same format that would be output a serial port or tcp connection, with one difference: preamble and postamble are not added.
QX-870 OUT Assembly 0xC6, 198 decimal: Command (OUT= PLC -> QX-870) Field #
Data Type
0
U32 U32 (32 bit flags) U32 (32 bit flags)
1 2
Size (# of Data Type Elements 1
Field Name User-Defined Tag
1
Command
1
External Output Control
User Defined Tag This provides the PLC programmer a method of uniquely identifying multiple readers in the system. This field serves no functional purpose in the QX-870. The value sent by the PLC for this field is echoed back to the input assemblies.
A-102
QX-870 Industrial Raster Scanner User Manual
Page 389
Appendices
Command Bit # 0 1 2-7 8 9-15 16 17 18-31
Action Trigger New Master Disable Scanning Reserved Clear Read Cycle Report and Counters Unlatch Outputs Reserved
The PLC programmer should verify that a Command has been received by QX-870 by observing the equivalent “echo” field in the IN assemblies. Trigger (0) Edge event-driven. Takes effect when read mode is Serial, Edge, or Level. A transition from 0 to 1 is a rising edge trigger event. A transition from 1 to 0 is a falling edge trigger event. The following sources all induce trigger events in the reader, including: • A serial command from a serial com port • EZ button • External Trigger input signal on connector A • Command:Trigger bit in the OUT assembly If the reader is to be exclusively triggered by the PLC, then all other trigger sources must be kept idle. New Master (1) Edge-event driven. A transition from 0 to 1 is a command to the unit similar to sending the <G> serial command, or activating the New Master input on connector A. When activated, the New Master function instructs the reader to store the next decode in the master symbol database. Disable Scanning (8) Operates the same as the <H> and <I> commands. A transition from 0 to 1 is the same as sending an <I> command, which issues a “disable” event. A transition from 1 to 0 is the same thing as sending an <H> command, which issues an “enable” event. Note that the most recent command, either <H> or <I> serial commands or the Camera Action:DisableScanning command will always override the previous “scanning disable” state. To verify scanning status, observe the DeviceStatus field in asm 0x65.
QX-870 Industrial Raster Scanner User Manual
A-103
Page 390
Using EtherNet/IP Clear Read Cycle Report and Counters (16) Trigger, Decode/Match, Mismatch, Noread, Decoded Data string, and Sequence. A transition from 0 to 1 is similar to sending the commands <U><W><Y><O>, which clear the historical read cycle counters. Also, the Sequence counter and Decoded Data string will go to 0. Note that if this command is received while a read cycle is active, execution of the command will be delayed until the read cycle has ended, and the read cycle’s information will probably be lost. Unlatch Outputs (17) If any outputs are configured for “Unlatch on Input1”, a transition from 0 to 1 will unlatch the output. See configuration commands K810-812. It is not necessary for Input 1 to be enabled.
External Output Control Bit # 0 1 2 3-31
Pin Name Out1 Out2 Out3 Reserved
0 = open the output contact 1 = close the output contact Note: Not operational at this time.
QX-870 OUT Assembly 0xC7, 199 decimal: Serial Command (OUT: PLC -> QX-870) Field # 0 1
Data Type U32 U8
Size (# of Data Type Elements 1 256
Field Name Length of Command String (Field 1) Command String
Accessible only by unconnected explicit message. This assembly enables the PLC to send serial commands to the device, similar to a serial port.
Known Issues and Limitations 1. External Output Control has not been implemented yet. 2. There is currently no way to receive serial command responses back from the QX-870.
A-104
QX-870 Industrial Raster Scanner User Manual