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 40 of 43

QX-830 Compact Industrial Scanner User Manual, pages 391 to 400

Pages 391 to 400 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 391

Appendices • If Receive Length is non-zero, then new data has been received. Process the Serial Data field up to the value of Receive Length, and manage any fragmentation per standard programming technique. Check the Receive Response Flags. If the value is not 3, then the string sitting in the Serial Data field in not a complete message. It is a fragment of a larger message.

To receive data from the QX-830: 1. Populate the Send Length field with 0. 2. 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. 3. Populate the Receive Timeout field with a value that the PLC is willing to wait for the transaction to complete. When receiving bar code data, this would typically be set to the read cycle timeout <K220,,timeout>, plus 20 milliseconds or so. When checking for a command response, set this to at least 10 milliseconds. 4. Populate the Receive Request Flags with 0x1, if needed, to delete all pending data from the device, and only respond with data generated by the device after this request is received. 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. • If Receive Length is non-zero, then new data has been received: Process the Serial Data field up to the value of Receive Length, and manage any fragmentation per standard programming technique. Check the Receive Response Flags. If the value is not 3, then the string sitting in the Serial Data field in not a complete message. It is a fragment of a larger message.

QX-830 Compact Industrial Scanner User Manual

A-103

Page 392

Allen-Bradley Version 16 PLC Setup

Appendix K, Allen-Bradley Version 16 PLC Setup Allen-Bradley PLC Setup This section was created and run on the following Allen Bradley/Rockwell components: • RSLogix 5000 Version 16 • ControlLogix 5561 processor • 756-ENBT/A EtherNet/IP interface card, firmware version 4.003 or newer. This setup procedure was also followed in RSLogix with a CompactLogix 5332E as the processor, though the final program was not tested with a CompactLogix processor. 1. Create the I/O Configuration for the base system, including the system’s Ethernet interface:

A-104

QX-830 Compact Industrial Scanner User Manual

Page 393

Appendices 2. Add QX-830 by right-clicking on the Ethernet interface, and select “New Module”:

3. Select “ETHERNET-MODULE Generic Ethernet Module”, and click OK:

QX-830 Compact Industrial Scanner User Manual

A-105

Page 394

Allen-Bradley Version 16 PLC Setup 4. Configure the following fields: “Name” = A useful name to remember the unit “IP Address” = The IP Address of QX-830 “Comm Format” = “Data – DINT” “Input” “Assembly Instance” = Choose either 100 (Small) or 101 (Big) “Input” “Size” = 21 (Small), or 44 (Big) “Output” “Assembly Instance” = 198 “Output” “Size” = 3 “Configuration” “Assembly Instance” = 1 “Configuration” “Size” = 0 (none) 5. Click OK when done. Example: For Small IN (Instance 100, Size 21):

A-106

QX-830 Compact Industrial Scanner User Manual

Page 395

Appendices Example: For Big IN (Instance 101, Size 44):

6. Configure the “Required Packet Interval (RPI)” and click OK. 20 ms or slower is strongly recommended. 10 ms is the minimum allowed by QX-830:

QX-830 Compact Industrial Scanner User Manual

A-107

Page 396

Allen-Bradley Version 16 PLC Setup 7. Double-click on the “Controller Tags” item, and verify QX-830’s :I and :O tags appear in the Controller Tags window:

8. Open the “Main Routine”:

A-108

QX-830 Compact Industrial Scanner User Manual

Page 397

Appendices 9. Right-click on the top rung and select “Import Rung”:

10. Click the Attachments icon in this PDF to show the 32-000001-xx.L5X file. Save the file to the location of your choice. Navigate to the file and click Import.

Click the icon at left in this PDF to display attached files. Right-click the 32-000001-xx.L5X file and select Save Attachment.

After you have saved the 32-000001-xx.L5X file, navigate to it and click Import in the Import Rung dialog.

QX-830 Compact Industrial Scanner User Manual

A-109

Page 398

Allen-Bradley Version 16 PLC Setup 11. At the “Import Configuration” window, link the first two items to the module name assigned earlier:

12. Link “:I” to the input assembly:

A-110

QX-830 Compact Industrial Scanner User Manual

Page 399

Appendices 13. Link “:O” to the output assembly:

14. Delete any empty rungs:

QX-830 Compact Industrial Scanner User Manual

A-111

Page 400

Allen-Bradley Version 16 PLC Setup 15. Select one CPS instruction per rung, the “_small_pt” on the left, or the “_big_pt” on the right. Keep the one that corresponds to the assembly sizes configured for the module, and delete the other:

A-112

QX-830 Compact Industrial Scanner User Manual