Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 39 of 43

QX-830 Compact Industrial Scanner User Manual, pages 381 to 390

Pages 381 to 390 of 422

The original document is the PDF (7.7 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-830

Page 381

Appendices

Appendix I, 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 830.

QX-830 EtherNet/IP Object Model The QX-830 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

QX-830 Compact Industrial Scanner User Manual

A-93

Page 382

Using EtherNet/IP

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-830 Small IN Assembly 0x64, 100 decimal (IN = QX-830 -> 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.

A-94

QX-830 Compact Industrial Scanner User Manual

Page 383

Appendices

QX-830 Big IN Assembly 0x65, 101 decimal (IN = QX-830 -> 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.

QX-830 Compact Industrial Scanner User Manual

A-95

Page 384

Using EtherNet/IP

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-830.

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

A-96

State 1 = New Master Requested 1 = Scanning Disabled 1 = In Read Cycle 1 = Active Scanning

QX-830 Compact Industrial Scanner User Manual

Page 385

Appendices 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-830 OUT Assembly 0xC6, 198 decimal: Command (OUT= PLC -> QX-830) 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-830. The value sent by the PLC for this field is echoed back to the input assemblies.

QX-830 Compact Industrial Scanner User Manual

A-97

Page 386

Using EtherNet/IP

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-830 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.

A-98

QX-830 Compact Industrial Scanner User Manual

Page 387

Appendices 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-830 OUT Assembly 0xC7, 199 decimal: Serial Command (OUT: PLC -> QX-830) 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-830.

QX-830 Compact Industrial Scanner User Manual

A-99

Page 388

Using EtherNet/IP

Programming Flow Charts Triggered by PLC, symbol data required, timeout or decode ends read cycle. Setup: Read Cycle Trigger Mode = External Edge or External Level. Symbol Data Output = Enabled globally and for EtherNet/IP. When to Output = As Soon As Possible. End of Read Cycle = Timeout. No Read message = Enabled.

A-100

QX-830 Compact Industrial Scanner User Manual

Page 389

Appendices

NET and MOD LED Indicators MOD (Module) Indicator State

Summary

Steady OFF

No power

Steady GREEN

Device operational

Steady RED

Major fault

Flashing GREEN / Self-test RED

Requirement If no power is supplied to the device, the module status indicator will be steady OFF. If the device is operating correctly, the module status indicator will be steady GREEN. If the device has detected a non-recoverable minor fault, the module status indicator will be steady RED. While the device is performing its power-up testing, the module status indicator will be flashing GREEN / RED.

Microscan Implementation Per requirement Per requirement Safe Mode: Basic comm. only. Scanning system non-functional. Per requirement.

NET (Network) Microscan Implementation No power, no Per requirement. If the device does not have an IP device has IP address Steady OFF address (or is powered off), the network Before acquired an IP status indicator will be steady OFF. address via DHCP. requirement. If the device has no established connections, Per After device has but has obtained an IP address, the Flashing GREEN No connections network status indicator will be flashing acquired an IP address (static or GREEN. DHCP). If the device has at least one established connection (even to the Message Steady GREEN Connected Router), the network status indicator will Per requirement. be steady GREEN. Connection If one or more of the connections in which the device is the target has timed Per requirement. timeout Flashing RED out, the network status indicator will be flashing RED. If the device has detected that its IP Steady RED Duplicate IP address is already in use, the network Not implemented. status indicator will be steady RED. While the device is performing its Flashing GREEN / Self-test power-up testing, the module status Per requirement. RED indicator will be flashing GREEN / RED. Indicator State

Summary

QX-830 Compact Industrial Scanner User Manual

Requirement

A-101

Page 390

Operating the Serial Gateway Data Fields in the QX-830 EtherNet/IP (CIP) Interface Object

Appendix J, Operating the Serial Gateway Data Fields in the QX-830 EtherNet/IP (CIP) Interface Object This appendix outlines a rough pseudo-code description of how to operate the serial gateway data fields in the QX-830 EtherNet/IP (CIP) interface object.

Service Code All EtherNet/IP (CIP) data com transactions with the QX-830, both send and receive, are performed with Service Code=0x45, Class ID=0x68, Instance=1, Attribute ID=0x6A. Each transaction can send data, receive data, or both. Attribute 0x6A has a variable size, with a minimum of 16 bytes, and the maximum 486 bytes. The first 16 bytes are a header with several fields that enable serial gateway-style functionality. The remainder of the data packet can be 0 to 470 bytes, and contains the serial data. The usage of these fields, and the serial data, is described below.

To send a command to the QX-830: 1. Populate the Serial Data field with a serial command. 2. Populate the Send Length field with the string length of the serial command. 3. If only sending a command, and not waiting for a response in the same transaction: • Populate the Receive Timeout field with 0. • Populate the Receive Length field with 0. If sending a command and waiting for a response in the same transaction: • If sending a serial trigger, and expecting symbol data output: Populate the Receive Timeout with a value equal to the device’s read cycle timeout <K220,,timeout>, plus 20 (milliseconds). • If sending a command that requests data, like a read of the counters <T><V><X><N>: Populate the Receive Timeout with a value of 10 (milliseconds) or greater. Populate the Receive Length field with a value set to the maximum length of data the PLC can handle in one transaction, up to 470. If set too small, the device will fragment the response over multiple transactions. 4. Populate the Receive Request Flags with 0x1, if needed, to delete all pending data from the device before it sends a response to the command. 5. Initiate the transaction. 6. When the transaction is complete, check the Receive Length field: • If Receive Length is 0, no data has been received. A-102

QX-830 Compact Industrial Scanner User Manual