Wenglor C5PC Series User Manual For Communication Settings

1d/2d codescanner
Hide thumbs Also See for C5PC Series:
Table of Contents

Advertisement

Quick Links

EN
C5PC
1D/2D Codescanner
User Manual for Communication Settings
Subject to change without notice
Available as PDF version only
Version: 1.1.0
Status: 10.07.2024
www.wenglor.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the C5PC Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Wenglor C5PC Series

  • Page 1 C5PC 1D/2D Codescanner User Manual for Communication Settings Subject to change without notice Available as PDF version only Version: 1.1.0 Status: 10.07.2024 www.wenglor.com...
  • Page 2: Table Of Contents

    4.2. Communicating with an External Device ..........................13 4.2.1. Basic Control Operations of the Code Reader......................13 4.2.2. Applicable Communications Protocols for the C5PC Series..................14 5. Controlling Operation and Data Output with Parallel I/O ......................16 5.1. Controlling Operation and Data Output with Parallel I/O ....................... 16 5.1.1.
  • Page 3 10.3.2. GSDML File ................................122 10.3.3. PROFINET Files by Firmware Version ........................122 10.3.4. Connection Properties: RT Cyclic Messaging......................122 10.4. Timing Diagrams................................122 10.4.1. Big Legacy Input Module ............................122 10.4.2. wenglor Decode Input Module ..........................123 1D/2D Codescanner...
  • Page 4: General

    • The product is subject to further technical development, and thus the information contained in these operating instructions may also be subject to change. The current version can be found at www.wenglor.com in the product’s separate download area. N OTE!
  • Page 5: Limitation Of Liability

    1.3. Limitation of Liability • The product has been developed in consideration of the current state-of-the-art and applicable standards and guidelines. Sub- ject to change without notice. A valid declaration of conformity can be accessed at www.wenglor.com in the product’s separate download area.
  • Page 6: For Your Safety

    1D/2D code scanners read any code after simple pressing a key – whether printed, lasered, etched or directly marked (DPM). As a system supplier, wenglor also offers fully networked solutions in which codes are reliably scanned regardless of the position of the object.
  • Page 7: Use For Other Than The Intended Purpose

    • The product is not suitable for use in potentially explosive atmospheres. • The product may only be used with accessories supplied or approved by wenglor, or in combination with approved products. A list of approved accessories and combination products can be accessed at www.wenglor.com on the product detail page.
  • Page 8: Approvals And Ip Protection

    • This product complies with EC/EU Directives. EMC-related performance of the wenglor devices that comply with EC/EU Direc- tives will vary depending on the configuration, wiring, and other conditions of the equipment or control panel on which the wenglor devices are installed.
  • Page 9: Radio Frequency Interference Requirements: Fcc

    3.4. Radio Frequency Interference Requirements: FCC This equipment has been tested for compliance with FCC (Federal Communica- tions Commission) requirements and has been found to conform to applicable FCC standards. To comply with FCC RF exposure compliance requirements, this device must not be co-located with or operate in conjunction with any other antenna or transmitter.
  • Page 10: Communication Specifications Overview

    4. Communication Specifications Overview This section provides a basic overview of the communications specifications and methods for controlling the code reader. This infor- mation is required before performing communications between the C5PC Series and an external device. 4.1. Confirming the System Configuration This product is a multi-code reader that captures images of 1D symbols (barcodes) and 2D Symbols and reads and processes their embedded data.
  • Page 11 Connecting over Ethernet (EtherNet/IP, Serial (TCP), PROFINET) Establish network connections via an Ethernet cable to input triggers and communication commands and to output reading results (Judgment results and decoded content). Triggers can also be input over parallel I/O. Using the data link function for each network (excluding Serial), data transfer can be done periodically between the code reader and the external device.
  • Page 12: Additional Information

    Connecting by Serial (RS-232) Triggers and Serial command input, as well as Read result judgement and Read string content data output is transmitted over RS- 232C cable. Triggers can also be input over parallel I/O. Basic configuration External devices Code Reader Trigger sensor I/O cable I/O control RS-232C...
  • Page 13: Communicating With An External Device

    4.2. Communicating with an External Device This section gives the communications specifications, describes the control methods that you can use for communications, and describes the settings that are required before starting communications with an external device. 4.2.1. Basic Control Operations of the Code Reader The following figure shows basic communications between an external device and the code reader and the flow of signals and data. Trigger sensor Triggers and other Code Reader...
  • Page 14: Applicable Communications Protocols For The C5Pc Series

    4.2.2. Applicable Communications Protocols for the C5PC Series The C5PC Series can be controlled from a PLC, computer, or other external device using various communication protocols. The following types of communication protocols can be used for controlling the C5PC series from an external device. Code Reader Control can be performed through different communications protocols.
  • Page 15 Simultaneous Use of Communication Methods and Connections : Supported ×: Not supported – : N/A C5PC Connection Simultaneous Connection Method Method EtherNet/IP PROFINET Serial (TCP) Serial (RS-232C) Parallel I/O EtherNet/IP – ×    PROFINET × –    Serial (TCP) –     Serial (RS-232C) – ...
  • Page 16: Controlling Operation And Data Output With Parallel I/O

    5. Controlling Operation and Data Output with Parallel I/O 5.1. Controlling Operation and Data Output with Parallel I/O This section explains how to directly connect the code reader to an external device by the I/O cable and the methods that you can use to control the code reader from the external device. 5.1.1. Basic Operation with a Parallel I/O Connection This section describes the basic connections and signal flow with external devices.
  • Page 17: Wiring And Electrical Specifications For Parallel I/O

    5.1.2. Wiring and Electrical Specifications for Parallel I/O The following is the wiring diagram of the power cable to connect to the code reader (All ZDCL…). Code Reader Blue 24 V Black Gray COM_IN Red / Blue COM_OUT White TRIG HOST_RxD Violet HOST_TxD Pink OUTPUT1 Gray / Pink OUTPUT2 Yellow OUTPUT3 White...
  • Page 18 • Input circuit diagram (C5PC External device) when NPN connected CLC = Current Limiting Circuit • Output circuit diagram (C5PC External device) when NPN connected Code reader NPN device • Input circuit diagram (C5PC External device) when PNP connected Code reader PNP device CLC = Current Limiting Circuit...
  • Page 19 • Output circuit diagram (C5PC External device) when PNP connected Code reader PNP device 1D/2D Codescanner...
  • Page 20: Change The Behavior Of Operation

    5.1.3. Change the Behavior of Operation The following changes are possible depending on the system configuration and usage. Type Modification Change the type of trigger You can change the method used to trigger a Read (Triggered, or Continuous). Change the assignments for the Output Signal Change the ON condition for Output 1 to 3.
  • Page 21: Timing Charts For Each Trigger Mode

    5.1.5. Timing Charts for each Trigger Mode There are two methods for Trigger input. Trigger Input Method Overview Trigger Mode Triggered Execute Read when the input on the Parallel TRIG • External Level Signal is ON. • External Edge • Serial Data Continuous Read With no Parallel TRIG signal used, the code •...
  • Page 22: Sample Ladder Program

    <Timing Chart (Continuous Read)> 1. Trigger input TRIG Signal not used. (TRIG signal) Always in Read Cycle *1 2. Output1 In Read Cycle In Read Cycle Turns ON on Good Read. 3. Output2 Match Either Output 2 or Output (or Good Read) 3 will continue as ON.
  • Page 23: Change The Assignments For The Output Signal (Output 1 To 3) On Condition

    Input and Output Signal Assignment Signal Type Address Output Signal Output 1 0.00 Output 2 0.01 Output 3 0.02 Input Signal TRIG 1.00 N OTE! Precautions for Correct Use The time at which Read is executed is the same time the InReadCycle signal turns ON. The following Output signal assignments are made in WebLink.
  • Page 24 Advanced Settings for Trend Analysis, Symbol Quality and Diagnostic Warning are displayed by clicking on the Text string at the bottom of the Output setting screen. Here you can change any settings as needed. Mismatch or No Read The assigned output signal turns ON when one of the following conditions is met. •...
  • Page 25 Match (or On Good Read) The assigned output signal turns ON when one of the following conditions is met. • On Good Read • If using the Matchcode function, when it matches with the master symbol. Below is an Output assignment example and Timing chart. [Example assignment of OUTPUT signals] •...
  • Page 26 No Read The assigned Output signal turns ON when there is a No Read. N OTE! Triggered mode must be External or Serial. Below is an Output assignment example and Timing chart. [Example assignment of OUTPUT signals] • Output 1: In Read Cycle •...
  • Page 27 Trend Analysis Monitors the frequency of Mismatches and No Reads as well as the Number of Reads per Trigger, and turns ON when a certain threshold is met. This can be used to monitor quality indicators like the percentage of Matches and Read Rate. The following settings are set independent for each Output signal.
  • Page 28 Below is an Output assignment example and Timing chart. [Example assignment of OUTPUT signals] • Output 1: In Read Cycle • Output 2: Trend Analysis Output Mode: Pulse For how to set up the Output signal assignments, please refer to How to Assign the “5.1.7.
  • Page 29 • ISO/IEC 16022 • ISO/IEC 29158 For more information on each of these, please refer to Autofocus Multicode reader C5PC Series User Manual - Symbol Quality Grading. Below is an Output assignment example and Timing chart. [Example assignment of OUTPUT signals] •...
  • Page 30 Diagnostic Warning This signal turns ON and a text string is sent over Serial communications according to the interval set in Diagnostics - Service Message - Threshold - Resolution. This can be used to regularly transmit a specified message from the code reader at a desired interval. •...
  • Page 31 3) ON Condition” on page 23. <Timing Chart> 1. Trigger input Read executed by Trigger Input. (TRIG signal) 2. Output1 In Read Cycle In Read Cycle Turns ON when Good Read. 3. Output2 Match (or Good Read) 4. Output3 Use as From 5ms after start of Read Cycle, ON for 100 ms.
  • Page 32: Change The On/Off Timing Of The Output Signal (Output 1 To 3)

    5.1.8. Change the ON/OFF timing of the Output Signal (Output 1 to 3) Set/Change the length of time the signals assigned to Outputs 1 to 3 are in an ON state and the timing of when they turn OFF How to Set the Output Signals From the WebLink screen, select Setup  Outputs. The Digital Output Editor dialog opens. The ON/OFF timing of the Output Signal can be changed in Mode.
  • Page 33 Pulse The Output Signal is held for the time set for the Pulse Width. Below is an Output assignment example and Timing chart. [Example assignment of OUTPUT signals] • Output 1: In Read Cycle • Output 2: On Match (or On Good Read) Output Mode: Pulse (1000 ms) For how to set up the Output signal assignments, please refer to “5.1.7.
  • Page 34 Latch mode 2 (Unlatch Opposite Condition) The Output Signal is held until the ON Condition is no longer met. Below is an Output assignment example and Timing chart. [Example assignment of OUTPUT signals] • Output 1: In Read Cycle • Output 2: Match (or On Good Read) Output Mode: Latch Mode 2 (Unlatch Opposite Condition) •...
  • Page 35: Change The Polarity Of Output Signal (Output 1 To 3)

    5.1.9. Change the Polarity of Output Signal (Output 1 to 3) Change the Output polarity for Output 1 to 3. By changing the Output polarity, the ON/OFF state of each output signal can be inverted. How to Set the Output Signals From the WebLink screen, select Setup  Outputs. The Digital Output Editor dialog opens. Change the polarity of the output signal in Polarity. Advanced Settings: I/O - Output 1 - 3 Parameters - Output State Setting Item Setting Value...
  • Page 36 Controlling Operation with Signals from an External Device There are signals that can control the following on the code reader through its ParalIel I/O. Signal Name Description NEW MASTER When this signal from the external device is ON, the symbol data from the next Good Read is regis- tered as the Master Symbol.
  • Page 37 Using the DEFAULT Signal to Reset the Code Reader Used whenever a hardware reset is performed. • Signal wire to use Color Pin No. Signal Green DEFAULT Black GROUND In cases where a software reset or hardware reset is not possible, it may be necessary to reset the code reader by short-circuiting (connecting) the two pin types shown above.
  • Page 38: Controlling Operation And Data Output With Ethernet

    6. Controlling Operation and Data Output with Ethernet 6.1. Controlling Operation and Data Output with EtherNet/IP 6.1.1. EtherNet/IP Overview EtherNet/IP is an industrial multi-vendor network that uses Ethernet. The EtherNet/IP specifications are open standards managed by the ODVA (OpenDeviceNet Vendor Association). EtherNet/IP is used by a wide range of industrial devices. Because EtherNet/IP uses standard Ethernet technology, various general-purpose Ethernet devices can be used in the network. EtherNet/IP has mainly the following features.
  • Page 39: Communication With The Code Reader Over Ethernet/Ip Connection

    • Data Exchange Method To exchange data, a connection is opened between two EtherNet/IP devices. One of the nodes requests the connection to open a connection with a remote node. The node that requests the connection is called the Originator and the node that receives the request is called the Target. •...
  • Page 40: Communication Flow Between Plc And Code Reader

    6.1.3. Communication Flow Between PLC and Code Reader The PLC (User) changes the Trigger bit assigned to the memory area (Output Field) of the PLC in advance from OFF to ON. When the Trigger bit from the PLC is ON, the code reader executes a Read process. After the code reader's Read process is complete, it then stores its Read data in the specified memory area (Input Field) on the PLC.
  • Page 41: Communication Settings (Ethernet/Ip)

    6.1.4. Communication Settings (EtherNet/IP) Using WebLink to Set the Code Reader Network Settings Use WebLink to set the IP address on the code reader to match the network settings of the PLC or other external device. • WebLink - Setup - Gear Icon - Advanced Settings - Communications - Ethernet Set Ethernet to Enabled.
  • Page 42 Using WebLink to Set Up EtherNet/IP Communication • WebLink - Setup - Gear Icon - Advanced Settings - Communications - Ethernet Setting Item Setting Value Description EtherNet/IP • Enabled • Enabled: EtherNet/IP connectivity is enabled on the code read- er. • Disabled • Disabled: EtherNet/IP connectivity is disabled on the code reader. Ethernet/IP Byte •...
  • Page 43: Tag Data Link Setting Methods

    Precautions for Correct Use When connecting to an NJ-series or CJ-series CPU Unit, install the EDS file that defines the connection information for the code reader in to Sysmac Studio. Download the EDS file from wenglor's website. Tags, Tag Sets, and Connection Settings The code reader has 6 types of Input Assemblies and 2 types of Output Assemblies, and one type can be selected for each. The Data Structure changes based on the selected Assembly.
  • Page 44 Assembly Connection I/O Input / Out- put Target Size (bytes) Assembly Data Structure Name Type Variable Description Output — Output For commands to be Assembly sent to the code read- Output — Output Commands and Com- Assembly mand Echo for fixed (Legacy) data can be sent to the code reader.
  • Page 45 N OTE! Precautions for Correct Use • If I/O memory addresses are specified for the communications areas, the information in the communications ar- eas will be cleared when the operating mode of the PLC changes unless addresses in the CIO Area, which holds memory, are specified.
  • Page 46: Status And Control Signals For Each Input And Output Assembly

    6.1.6. Status and Control Signals for Each Input and Output Assembly The C5PC has the following types of Input Assemblies. Small Input Assembly Large Input Assembly MXL/SLC Input Assembly 1 Decode Input Assembly 4 Decode Input Assembly N Decode Input Assembly The Status signals are as follows. These signals are controlled automatically based on the status of the code reader. : Verifiable ×: Not Verifiable Status Signal Description...
  • Page 47: Timing Charts By Assembly Type

    6.1.7. Timing Charts by Assembly Type Read is executed by the Read (TRIG) Signal. The timing signal at completion of storing the Read data to PLC data memory differs by the Input Assembly type. • Small Input Assembly (100) It does not correspond to the Timing Signal for storing Read data. Executes read.
  • Page 48 • MXL/SLC Input Assembly (102) through N Decode Input Assembly (105) It is output at the timing of the Device Status - InReadCycle bit turning from ON OFF. Executes read Trigger Turns ON if Trigger ON is detected and OFF if OFF is detected Trigger Acknowledged Turns OFF during Exposure and ON after Exposure Complete.
  • Page 49: Sample Ladder Program

    6.1.8. Sample Ladder Program A sample ladder program to execute the following operation. • Input the Trigger Signal to execute Triggered Read. • The read character string (Decode Data) is compared with the Verification string (Master Symbol) stored in the PLC. •...
  • Page 50: Accessing The Nj-Series Controller Communication Areas Using Variables

    6.1.9. Accessing the NJ-series Controller Communication Areas using Variables With an NJ-series, accessing the I/O memory allocated to each communication area can be done with the user program with the use of variables. Here is an example of using the MXL/SLC Input Assembly (102) and Output Assembly (197) for that purpose. For more detailed information about the data structure of each Assembly, please refer to “6.1.
  • Page 51 Example assignments of Variable Data Type for Output Area: Reserved Reserved *1. For Bits other than TRIG, please refer to “6.1.6. Status and Control Signals for Each Input and Output Assembly” on page • Data Type to access Input Area Data type name: S_EIPInput102 Type of derivative data type: Structure Data Name...
  • Page 52 Defining the Variables Define variables for the data links for the communications area data that is used in EtherNet/IP communications. These variables use the data types that were defined above in procedure 1. Network Publish Variable Variable type Data type Application attribute EIPOutput Global variable...
  • Page 53 Input Assembly Output Assembly 1D/2D Codescanner...
  • Page 54 <Example of Data Storage> • Read string: 123456 Trigger input Data output N OTE! When outputting the Code Quality Grade...
  • Page 55 Read data: 123456 D D A A A D A A • R ead 4 Codes and Store the Read String Output on the PLC <Example of Tag Sets and Connection Settings> – Input Assembly: 4 Decode Input Assembly (104) – Output Assembly: Output Assembly (197) 1D/2D Codescanner...
  • Page 56 <Example of Setting Variables> Input Assembly...
  • Page 57 Output Assembly <Trigger Input> <Example of Data Storage> – Example of PLC data storage for 4 different codes in 1 image capture. WebLink Screen 1D/2D Codescanner...
  • Page 58 Decoded symbol data stored in DECODE_1, 2, 3, 4. • Using the NEW MASTER Bit in the Output Assembly to Register Master Symbol Data <Example Tag Sets and Connection Settings> • Input Assembly: Large Input Assembly (101) • Output Assembly: Output Assembly (198)
  • Page 59 <Example Variables> Input Assembly Output Assembly Set Matchcode to ON. • WebLink - Setup Screen 1D/2D Codescanner...
  • Page 60 With nothing currently registered as the Master Symbol, when a Read is executed with Matchcode ON, the result is Mismatch. By setting the NewMaster bit in the Output Assembly to 1, the next code that is read will be regis- tered as the Master Symbol data.
  • Page 61 <Trigger Input> Trigger bit set to True. Becomes False after Read is executed and NewMaster is registered. <Perform a Read to Verify> Since the data was registered as the Master Symbol, the result is Match. WebLink Screen 1D/2D Codescanner...
  • Page 62 • WebLink - Setup - Matchcode - Match String Editor...
  • Page 63: Communicating With The Code Reader With Ethernet/Ip Message

    6.1.10. Communicating with the Code Reader with EtherNet/IP Message Serial commands can be executed using EtherNet/IP Message (Explicit) communication. For more information on Serial com- mands, please refer to the following: “6.2.5. Controlling Operation from an External Device” on page 73. N OTE! Any explicit message that causes an action that takes longer than 3 seconds will time out. It is recommended to use implicit messaging in these cases.
  • Page 64: Controlling Operation And Data Output With Serial (Tcp)

    6.2. Controlling Operation and Data Output with Serial (TCP) This section explains the communications settings required for using Serial (TCP) communications be- tween the code reader and an external device. 6.2.1. Serial (TCP) Overview Serial (TCP) conforms to the TCP/IP communication protocols. It can be used with any Ethernet communication equipment compat- ible with TCP/IP communication protocol.
  • Page 65: Communication Settings (Serial (Tcp))

    6.2.3. Communication Settings (Serial (TCP)) Network Settings on the Code Reader Set the IP address on the code reader to match the network settings of the PLC or other external device. • WebLink - Setup - Gear Icon - Advanced Settings - Communications - Ethernet Set Ethernet to Enabled. Set the IP Address and Subnet mask according to the network settings of the PLC or other external device.
  • Page 66 Change the Command that Executes Read It is possible to change the command used in Serial communications to execute Read. There are two types of Read execution commands. One includes a Separator Character (delimiter) <> and the other has no delim- iter. • WebLink - Setup - Gear Icon - Advanced Settings - Read Cycle - Serial Trigger (Non-Delimited) Setting Item Setting Value Description...
  • Page 67: Setting The Data To Output After A Read

    6.2.4. Setting the Data to Output after a Read The code reader can be configured so that after a Read is executed, its read results are automatically output to the TCP port it is connected to. Additional information such as print quality grade and code position coordinates can be appended to the Read result output and the format of that output can be modified.
  • Page 68: Additional Information

    Header and Footer Settings You can change the Header (Preamble) and Footer (Postamble) that precedes and follows the Read string. • WebLink - Setup - Format Output Set the Header (Preamble) as needed. In Format Output, check the box for Preamble to add a header to the Read result. To edit the characters used in the header, click on the blue text to the right of Preamble.
  • Page 69 Setting the Format of Data Output You can format the Read data you wish to output, for example, by specifying the number of characters read from a code symbol to output and appending a fixed character string to the output. • WebLink - Setup - Format Output Change the format of the output as needed.
  • Page 70 If you want to specify the range (number) of characters from the read character string to output, select Extract chars from symbol data Enter the range for the number of characters to output. In the example setting below, a string length of 1 to 4 characters is output.
  • Page 71 How to Append Additional Symbol Information Additional information such as print quality grade and code position coordinates can be appended to the Read result output. • Outputting a Code Symbol's Position Information – WebLink - Setup - Gear Icon - Advanced Settings - I/O - Output Object Info Enable Output Coordinates.
  • Page 72 Outputs the DataMatrix Print Quality Symbol Quality - ISO/ Symbol Quality Grade (ISO/IEC 16022) IEC 16022 Parameters defined by ISO/IEC 16022.*1 Outputs the wenglor Print Quality Symbol Quality - Proprietary Symbol (Omron Microscan) wenglor Parameters Quality Grade.*1 Outputs the Symbol...
  • Page 73: Controlling Operation From An External Device

    6.2.5. Controlling Operation from an External Device The code reader can be controlled, have its settings viewed and changed from an external device with the use of serial commands. The C5PC serial commands are divided broadly in to two different types. • Serial Configuration Commands (K Commands) Commands to change settings on the C5PC.
  • Page 74 N OTE! Additional Information The Response includes a Header (Preamble) and Footer (Postamble). The defaults for these are Header: None and Footer: CRLF (hexadecimal: 0D0A). • When the Serial Verification function is enabled (by default: disabled), the current setting status is returned as the response to the K command.
  • Page 75: Serial Command List

    6.2.6. Serial Command List A list of the supported Serial commands. Category Command Description Response Data Example (For Read string ABCDE.) Setting change <Knnn, Parameter> Commands to change settings on the code reader. None (K Command) nnn: Three- digit Refer to the C5PC Technical Manual – for additional (If the Serial Verification function is number of each K information on K Commands.
  • Page 76 Category Command Description Response Data Example (For Read string ABCDE.) Optimization <Knnn?> Queries the setting status of the specified K Com- <K541,2000,30> (nnn: Three-digit mand. (Example response to number of each K <K541??> Exposure: 2000us, Gain: command) <Knnn??> Queries the parameter description of the specified K <K541??,Exposure,Gain>...
  • Page 77 Category Command Description Response Data Example (For Read string ABCDE.) Confirm Firm- <#> Queries all the firmware version information. <#b/ ware version 35-9000033-122.3021><#a/ 35-9000097-1.2.3.3008><#w/ 30-9000079-1.2.3.3006><#p/ N/A><#d/35-xxxxxx- x.x.x.xxxx> <#a> Queries the version information of application soft- <#a/35-9000097-1.2.3.3008> ware. <#b> Queries the Boot Software Version information. <#b/35-9000033-122.3021>...
  • Page 78: Controlling Operation And Data Output With Profinet

    7. Controlling Operation and Data Output with PROFINET This section describes the procedures for connecting the C5PC Series Reader to the NJ Series Machine Automation Controller (hereinafter referred to as Controller) via Profinet IO), and for verifying the device connections. After following the configurations in this section, the user will be able to view PROFINET input and output module data, make changes to the output module, and verify those changes at the input module.
  • Page 79 • Communication Specifications of PROFINET IO The communication specifications of PROFINET IO are described below. Communica- Type Details C5PC Support tion Specifica- tions RT (real-time) Uses standard Ethernet hardware and achieves Supported Periodic data communication the same level of performance as the existing communication Fieldbus.
  • Page 80 Device Types Used in PROFINET IO The devices below are defined in PROFINET IO. Type Details I/O Controller Controller for external and other devices. I/O Device Reader device connected to the I/O controller. The C5PC is an I/O device. I/O Supervisor PC or other device used for maintenance and diagnosis. IO Devices I/O devices consist of DAPs and I/O modules.
  • Page 81 Data Communication in PROFINET IO For an I/O controller and I/O device to communicate, a connection called an AR (Application Relation) must first be established between the two devices. When the AR connection is established, data communication between the I/O controller and I/O device takes place by means of a CR (Communication Relation) that defines the content of the data communication.
  • Page 82: C5Pc Communications For Profinet Connections

    7.2. C5PC Communications for PROFINET Connections You can use PROFINET IO data CR to communicate between the PLC and the reader to perform control via command/response communications or to output data after measurements. The C5PC complies with PROFINET conformance class B. To connect to external devices and communicate using PROFINET, configure the PROFINET IO data CR settings with the engineering tool.
  • Page 83: Setting Up Profinet Communications

    7.3. Setting Up PROFINET Communications 7.3.1. Configuring Network Settings in the C5PC Launch a browser and enter http://192.168.100.1. Google Chrome is the recommended browser. The WebLink startup screen will be displayed. If the WebLink startup screen does not appear, it means that communication between the code reader and the PC has not been established.
  • Page 84 Click on the Setup tab and set the Cycle to Triggered. Click on the gear icon on the upper right of the screen to select Advanced settings. The Advanced Settings will appear. Check the settings indicated by the red boxes. EtherNet/IP connection is Enabled by default.
  • Page 85 Communications Settings Procedure To use PROFINET communication, the settings below must be configured. Configure Network Settings of C5PC Set in WebLink Configure Default PROFINET Settings Configure IO Supervisor (Computer) Settings • IP Address Settings Configure IO Controller Settings Configure the settings with the engineering tool. If you are set- •...
  • Page 86: Timing Charts By Module Type

    7.3.2. Timing Charts by Module Type Read is Executed by the Read (TRIG) Signal. The timing signal at completion of storing the Read data to PLC data memory differs by the Input Module type. • Small Input Module (100) Small Input Module does not correspond to the Timing Signal for storing Read data. Executes read. Executes read. Trigger In Read Cycle In Read Cycle Read data Read data Decode Data...
  • Page 87 • MXL Input Module (102) MXL/Input Module (102) is output at the timing of the Device Status - InReadCycle bit turning from ON to OFF. Executes read Trigger Turns ON if Trigger ON is detected and OFF if OFF is detected Trigger Acknowledged Turns OFF during Exposure and ON after Exposure Complete.
  • Page 88 Sample Ladder Program A sample ladder program is shown below. • Input the Trigger Signal to execute Triggered Read. • The read character string (Decode Data) is compared with the Verification string (Master Symbol) stored in the PLC. • If they match, it is added to the Match/OK Count, and if they do not match, it is added to the Mismatch/NG Count. The following Input and Output Modules are used.
  • Page 89: Controlling Operation And Data Output With Rs-232C

    8. Controlling Operation and Data Output with RS-232C 8.1. Controlling Operation and Data Output with RS-232C This section explains how to connect the code reader to an external device (such as PLC) using RS-232C communications and the methods that you can use to control the code reader and its output. 8.1.1. Communications Processing Flow In a system configuration in which it is connected by Serial (RS-232C) communications to an external device (such as PLC), serial commands can be received and code reading results can be output to the external device.
  • Page 90 Please connect ZDCG003 to the I/O connector (M12 plug) and connect it to power supply etc. RS-232C (D-sub 9 Pin Female Connec- tor) Pin No. Signal Name Pin Layout Diagram — HOST_RxD HOST_TxD — — — — — Using the RS-232C Signal on I/O cable RS-232C communication is possible by combining the signal for RS-232C communication (HOST_RxD, HOST_TxD) coming from the I/O cable with the RS-232C signal of the device it is connected to.
  • Page 91: Communication Settings [Serial (Rs-232C)]

    8.1.3. Communication Settings [Serial (RS-232C)] RS-232C Communication Settings on the Code Reader Set the RS-232C communications settings on the code reader according to the settings on the PLC or other external device. • WebLink - Setup - Gear Icon - Advanced Settings - Communications - RS-232C Set the Baud Rate, Parity, Stop Bit, and Data Length according to the RS-232C communication settings of the external device to connect to.
  • Page 92 Response Timeout 0 to 255 Sets the Response Latency of the ACK/NAK Protocol (milliseconds). If the (Default: 12) Response Timeout for the ACK/NAK response to data transmission is being exceeded, the code reader will cancel/release/clear the ACK/NAK Response Wait State. LRC Status •...
  • Page 93 • ACK/NAK ACK/NAK Control Codes are an RS-232C communication protocol for confirming communication. When data is received, an ACK (Hex:06) response is sent to the device that sent the data. When data is not successfully received, a NAK (Hex:15) response is sent to the device that sent the data.
  • Page 94: Setting Data To Be Output After Reading A Code [Serial (Rs-232C)]

    8.1.4. Setting Data to be Output after Reading a Code [Serial (RS-232C)] The code reader can be configured so that after a Read is executed, its read results are automatically output using Serial (RS-232C) communications. Additional information such as print quality grade and code position coordinates can be appended to the Read result output and the format of that output can be modified.
  • Page 95: Appendices

    9. Appendices 9.1. Command List 9.1.1. Command List This section lists the commands that you can use with the C5PC and the EtherNet/IP industrial protocol. : Supported Command : Command with restricted execution —: Non-Supported Command Function Parallel Serial (TCP) Serial (RS-232C) EtherNet/IP Change the settings.
  • Page 96: Assembly Memory Allocation

    9.2.2. Assembly Memory Allocation An explanation of the memory allocation of each Input Assembly (C5PC  PLC) and each Output Assembly (PLC  C5PC). Small Input Assembly (Instance ID: 100) It is a compact, lightweight input assembly. It is designed to hold 64 bytes of information in the Read result. When reading multiple symbols, the Read strings are output delimited by Separator Characters.
  • Page 97 Member Name Data Type Bit Number Data Length Byte Offset UserTag_22 1 bit UserTag_23 1 bit UserTag_24 1 bit UserTag_25 1 bit UserTag_26 1 bit UserTag_27 1 bit UserTag_28 1 bit UserTag_29 1 bit UserTag_30 1 bit UserTag_31 1 bit UserTag_32 1 bit 32 bit Command Echo DINT...
  • Page 98 Returns the value set in the User-Defined Tag field of the Output Assembly (Legacy). • Command Echo Returns the value set in the Command field of the Output Assembly (Legacy). • Output Control Echo Returns the value set in the External Output field of the Output Assembly (Legacy). •...
  • Page 99 Assembly Memory Allocation Member Name Data Type Bit Number Data Length Byte Offset 32 bit User Defined Tag Echo DINT 4 Byte UserTag_1 1 bit UserTag_2 1 bit UserTag_3 1 bit UserTag_4 1 bit UserTag_5 1 bit UserTag_6 1 bit UserTag_7 1 bit UserTag_8 1 bit UserTag_9 1 bit UserTag_10...
  • Page 100 Member Name Data Type Bit Number Data Length Byte Offset 32 bit External Output Status DINT 4 Byte Out1 1 bit Out2 1 bit Out3 1 bit Reserved 3 - 31 29 bit Device Status DINT 4 Byte 32 bit Reserved 1 bit New Master Requested 1 bit Reserved 2 - 7...
  • Page 101 – Device Status Shows the current status of the code reader. State Run Mode Trigger Acknowledged Exposure Done Decoding Data Is Ready Read Cycle Pass Read Cycle Fail General Fault Matchcode Master Label Trained Matchcode Enabled Image Sensor Calibrating Image Sensor Calibration Complete Training Training Complete Optimizing...
  • Page 102: Communication Error

    Image Sensor Calibration Complete This bit is set to 1 when the C5PC completes executing the following calibrations. Exposure Gain Focus (1.2 Megapixel and 5 Megapixel cameras) Training This bit is set to 1 while Training is in progress. This bit is set to 0 when Training is complete. Training Complete This bit will be set to 0 during training and will be set to 1 when training is successful.
  • Page 103 No Read Read Cycle Counter Outputs the total number of Read Cycle No Reads. Mismatch per Read Cycle Counter Outputs the total number of Read Cycle Mismatches. No Read Counter Outputs the total number of No Reads. Trigger Counter Outputs the total number of executed Triggers. Matchcode Counter Outputs one of the following.
  • Page 104 PDF417 Pharma Code DataMatrix QR Code BC412 RSS-14 RSS-14 LTD RSS-14 EXP Micro PDF Composite Dot Code 20 - 31 Reserved Pixels Per Element Outputs the number of pixels displayed in 1 cell size (or narrow element) on the image. –...
  • Page 105 Member Name Data Type Bit Number Data Length Byte Offset Output 3 Status 1 bit BufferOverflow 1 bit Reserved 22 - 31 10 bit Fault Code 4 Byte 32 bit DINT Command Error Detected 1 bit Communication Error 1 bit Reserved 1 bit Host Port Buffer Overflow 1 bit Reserved...
  • Page 106 1 Decode Input Assembly (Instance ID: 103) 1 Decode Input Assembly is designed to hold a 436 byte Read result string. When reading multiple symbols, the Read strings are output delimited by Separator Characters. 1 Decode Input Assembly Member Structure Member Name Size (Bytes) INFO BITS RESERVED RESERVED RESERVED DEVICE STATUS...
  • Page 107 Member Name Data Type Bit Number Data Length Byte Offset Read Cycle Fail 1 bit General Fault 1 bit New Matchcode 1 bit Acknowl- edged Matchcode Enabled 1 bit Image Sensor Calibrating 1 bit Image Sensor Calibration 1 bit Complete Training 1 bit Training Complete 1 bit Optimizing...
  • Page 108 Member Name Data Type Bit Number Data Length Byte Offset Pharma Code 1 bit DataMatrix 1 bit QR Code 1 bit BC412 1 bit RSS14 1 bit RSS14 LTD 1 bit RSS14 EXP 1 bit Micro PDF 1 bit Composite 1 bit Dot Code 1 bit Reserved...
  • Page 109 • Decode 1 Length Stores the number of characters that comprise the 1st symbol. • Decode 1 Data Stores the Read string of the 1st symbol. When additional information such as Print Quality Grading Standard is set, it is stored following the Read string.
  • Page 110 Member Name Data Type Bit Number Data Length Byte Offset Output 2 Status 1 bit Output 3 Status 1 bit BufferOverflow 1 bit Reserved 22 - 31 10 bit 32 bit Fault Code DINT 4 Byte Command Error Detected 1 bit Communication Error 1 bit Reserved 1 bit...
  • Page 111 Member Name Data Type Bit Number Data Length Byte Offset 32 bit Decode Location Height 0 - 15 2 byte Decode Location Width 0 - 15 2 byte Code Type DINT 4 Byte 32 bit Aztec Code 1 bit Micro QR Code 1 bit Postal Code 1 bit...
  • Page 112 Member Name Data Type Bit Number Data Length Byte Offset Decode 4 Cycle Report INT[4] 8 byte 32 bit Decode Location Top 0 - 15 2 byte Decode Location Left 0 - 15 2 byte 32 bit Decode Location Height 0 - 15 2 byte Decode Location Width 0 - 15...
  • Page 113 N Decode Input Assembly (Instance ID: 105) N Decode Input Assembly supports any number of multiple symbol readings. Use this when you want to execute arbitrary number of multiple symbol readings and query symbol information such as symbol position coordinates for each symbol. Since the data structure of the Read result is a variable length up to a maximum of 456 bytes, the user needs to access the data such as the read character string by referencing the data offset value.
  • Page 114 • Raw Input Data Variable length Read data is stored. Read Data Structure Size (Bytes) Offset Offset of Report 1 Offset of Report 2 … Offset of Report N Decode Cycle Report 1 Offset 1 Decode Length 1 Decode Data 1 Variable length Decode Cycle Report 2 Offset 2...
  • Page 115 Member Name Data Type Bit Number Data Length Byte Offset Auto Image Photometry 1 bit Ena- bled Auto Image Photometry 1 bit Com- plete Output 1 Status 1 bit Output 2 Status 1 bit Output 3 Status 1 bit BufferOverflow 1 bit Reserved 22 - 31 10 bit...
  • Page 116 Output Assembly (Instance ID: 197) The Output Assembly can send several commands to the code reader. This assembly is used with MXL/SLC Input Assembly (ID: 102), 1 Decode Input Assembly (ID: 103), 4 Decode Input Assembly (ID: 104), N Decode Input Assembly (ID: 105). Output Assembly Member Structure Member Name Size (Bytes)
  • Page 117 – Output 2 Turns Parallel OUTPUT 2 Signal ON. – Output 3 Turns Parallel OUTPUT 3 Signal ON. Assembly Memory Allocation Member Name Data Type Bit Number Data Length Byte Offset 32 bit Commands DINT 4 Byte Run Mode 1 bit Trigger 1 bit Enable Matchcode 1 bit...
  • Page 118 – Trigger Executes Read. The code reader recognizes this bit changing from 0 to 1 as the rising edge of the trigger and its change from 1 to 0 as the falling edge of the trigger. – New Master When this bit is ON, the next Read result is registered as the Master Symbol. –...
  • Page 119 Member Name Data Type Bit Number Data Length Byte Offset Trigger 1 bit New Master 1 bit Reserved 2 - 7 6 bit Disable Scanning 1 bit Reserved 9 - 15 7 bit Clear Read Cycle Report 1 bit and Counters Unlatch Outputs 1 bit Reserved 18 - 31...
  • Page 120: Appendix

    The maximum Input CR size for the PNT21 is 450 bytes. Input/Output Modules All Input/Output modules and module descriptions are the same as in Appendix A, except the following new addition: Omron De- code Input Module. • wenglor Decode Input ID:106 SHORT DESCRIPTION SIZE (BYTES) INFO BITS...
  • Page 121: C5Pc Data Types

    The Vendor ID is 0x01D3. Device ID Refer to the PROFINET Files by Firmware Version table below to determine the correct Device ID. Vendor Name The Vendor Name is wenglor sensoric GmbH. Device Function The Device Function is: MainFamily = wenglor Ident ProductFamily = C5PC...
  • Page 122: Gsdml File

    10.3.2. GSDML File Refer to the PROFINET Files by Firmware Version table below to determine the correct GSDML file for your device. 10.3.3. PROFINET Files by Firmware Version Product Firmware Version GSDML File Version Device ID C5PC 1.3.1.xxxx GSDML-V2.33-wenglor-C5PC-20200210.xml V2.33 0x0501 2.1.0.xxxx GSDML-V2.35-wenglor-C5PC-20210303.xml V2.35 0x0501 2.2.0.xxxx GSDML-V2.43-wenglor_C5PC-20240215.xml V2.43 0x0501 10.3.4. Connection Properties: RT Cyclic Messaging...
  • Page 123: Wenglor Decode Input Module

    10.4.2. wenglor Decode Input Module • In this example, the trigger is set high for 513 ms. • The trigger was acknowledged 35 ms after trigger high and stays high 35 ms after trigger low. • Decoding is completed and data is ready 277 ms after trigger start.

Table of Contents