Contents

Mitsubishi Electric Melsensor Connection Guide PDF

Pages 154
Year 2021
Language(s)
English en
1 of 154
1 of 154

Summary of Content for Mitsubishi Electric Melsensor Connection Guide PDF

Page 3

SAFETY PRECAUTIONS (Read these precautions before using this product... ) Before using this product, please read this manual and the relevant manuals carefully and pay full attention to safety to handle the product correctly... The precautions given in this manual are concerned with this product only... For the safety precautions for other modules, refer to their respective user's manuals... In this manual, the safety precautions are classified into two levels: " WARNING" and " CAUTION"...

Page 4

CAUTION Do not clean the code reader with highly irritating or corrosive solvent such as caustic alkali solution,

Page 5

PRECAUTIONS FOR USE Observe the following precautions when installing and operating the code reader, to reduce the risk of injury or equipment damage: This device requires the use of an LPS or NEC class 2 power supply... To reduce the risk of damage or malfunction due to over-voltage, line noise, electrostatic discharge (ESD), power surges, or

Page 6

(2) This code reader has been designed and manufactured for the purpose of being used in general industries... MITSUBISHI ELECTRIC SHALL HAVE NO RESPONSIBILITY OR LIABILITY (INCLUDING, BUT NOT LIMITED TO ANY AND ALL RESPONSIBILITY OR LIABILITY BASED ON CONTRACT, WARRANTY, TORT, PRODUCT LIABILITY) FOR ANY INJURY OR DEATH TO PERSONS OR LOSS OR DAMAGE TO PROPERTY CAUSED BY THIS CODE READER THAT ARE OPERATED OR USED IN APPLICATION NOT INTENDED OR EXCLUDED BY INSTRUCTIONS, PRECAUTIONS, OR WARNING CONTAINED IN MITSUBISHI ELECTRIC USER'S, INSTRUCTION AND/OR SAFETY MANUALS, TECHNICAL BULLETINS AND GUIDELINES FOR the CODE READER... ("Prohibited Application") Prohibited Applications include, but not limited to, the use of the code reader in; Nuclear Power Plants and any other power plants operated by Power companies, and/or any other cases in which the

Page 7

Profile To configure communication settings between a programmable controller and a code reader with an engineering tool, registering a profile to the engineering tool is required... A profile is data that stores information of a connected device (such as a model name... ) By registering the profile to an engineering tool, the code reader is added in the "Ethernet Configuration" window or the "CC- Link IEF Basic Configuration" window... For details on how to register a profile, refer to the following manual... GX Works2 Version 1 Operating Manual (Common) GX Works3 Operating Manual Download the profile of a code reader from the Mitsubishi Electric FA website... www... MitsubishiElectric... co... jp/fa

Page 8

Reading target This manual explains the procedures for reading the QR Code as shown below as a setting example...

Page 9

CONTENTS SAFETY PRECAUTIONS ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 1 PRECAUTIONS FOR USE ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 3 CONDITIONS OF USE FOR THE PRODUCT ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 4 INTRODUCTION... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 5 RELEVANT MANUALS ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 9 TERMS ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 9 GENERIC TERMS AND ABBREVIATIONS... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 9

Page 10

6... 2 Basic Operations for an EtherNet/IP Connection... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 114 Overview ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 114 Basic operation process for cyclic (Implicit) communications ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 116 Input/Output Assemblies used for cyclic (Implicit) communications ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 117 Basic operation process for message (Explicit) communications ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 121

Page 11

e-Manual refers to the Mitsubishi Electric FA electronic book manuals that can be browsed using a dedicated tool... e-Manual has the following features: Required information can be cross-searched in multiple manuals... Other manuals can be accessed from the links in the manual... Hardware specifications of each part can be found from the product figures... Pages that users often browse can be bookmarked... Sample programs can be copied to an engineering tool...

Page 12

1 CC-Link IE Field Network Basic CONNECTION This chapter explains the procedure for connecting a code reader to a programmable controller and controlling the code reader with a CC-Link IE Field Network Basic connection...

Page 13

*2 Cable length (0... 6 m, 2 m, 5 m, 10 m, or 15 m), straight *3 Cable length (5 m, 10 m, or 15 m), shielded twisted-pair cable, straight

Page 14

Precautions Check that a 24 VDC power supply is OFF when connecting a breakout cable to the power supply... Cut unused wires or protect them with insulating materials... Be careful not to contact with 24 VDC wires... A breakout cable and an Ethernet cable are designed to connect with their key aligned with the keyway of the connector on

Page 15

Basic Connection Basic operation process for a CC-Link IE Field Network Basic connection With a CC-Link IE Field Network Basic connection, data communication (cyclic transmission) is periodically performed between a master station (programmable controller) and a slave station (code reader) using link devices... Remote input and output (RX and RY), and remote registers (RWr and RWw) are used for data communication... Status block (RX) and output data block (RWr) are link devices to send data from a code reader to a master station (programmable controller)... Control block (RY) and input data block (RWw) are link devices to send data from a master station (programmable controller) to a code reader...

Page 16

3 Results Ack To respond to receiving the latest read results... A code reader turns 'Results Available' OFF when recognizing that this bit turns ON... If 'Buffer Results Enable' is turned ON, the next read results are read out from the buffer queue when receiving a response... ON: Read results are received... OFF:

Page 17

10 Results Buffer Overrun This bit shows that a code reader discards a series of read results after the buffer for read results becomes full... When the next read results are stored in the buffer queue properly, this bit is turned OFF... Only when 'Buffer Results Enable' is enabled, this bit is enabled... ON: Read results are discarded... OFF:

Page 18

1 Trigger ID Image capturing trigger ID... ID of an image capturing trigger to be generated next is stored... This is used to verify a generated image capturing trigger and 'Result Data' to be received later... The same value as this ID is returned as 'Result ID' of the corresponding read results...

Page 19

Select [Repair & Support]... Select the code reader "CF26"... Set an IP address and a subnet mask of the code reader in the "Network Settings" section... IP Address: 192... 168... 3... 1 Subnet Mask: 255... 255... 255... 0 Click the [Apply] button... The code reader is restarted and the network settings are applied...

Page 20

2... Import a QR Code to be read in the "Optimize Image" step... Click the [Optimize Image] button... Click the [Live] button... When a QR Code to be read is displayed, click the [Live] button again... It is recommended to tune and optimize

Page 21

4... Set a trigger type and an exposure method in the "Application Details" step... Click the [Application Details] button... Select "Single (external)" for "Trigger Type" in "Trigger Settings"... Select "Automatic Exposure" for "Exposure"...

Page 22

6... Configure the protocol to be used (CC-Link IE Field Network Basic) in the "Communications" step... Click the [Communications] button... Select the checkbox of "CC-Link IE Field Basic" for "Industrial Protocols" in the [Ethernet] tab...

Page 23

7... Save the settings in the code reader in the "Save Settings" step... Click the [Save Settings] button... Click the [OK] button...

Page 24

Select [Tool] [Profile Management] [Register]... The "Register Profile" screen appears... Select the profile of the code reader obtained previously... Click the [Register] button...

Page 25

Basic Setting: Enable Double-click the "<Detailed Setting>" of "Network Configuration Settings"... The "CC-Link IEF Basic Configuration" screen appears... (Page 24 "CC-Link IEF Basic Configuration" screen) Double-click the "<Detailed Setting>" of "Refresh Settings"... The screen to set the device of the refresh target appears... (Page 24 Refresh settings) Click the [Apply] button to end the settings...

Page 26

For the system configuration in which the automatic detection function of connected devices is not supported, a code reader can be added by dragging and dropping "CF26" in "Code Reader" from "CC-Link IEF Basic Module (Mitsubishi Electric Corporation)" in "Module List... " Parameter settings are as follows: "RX/RY Setting" - "Points": 64 (1 Occupied Station) "IP Address": 192... 168... 3... 1 (IP address of a code reader set in DataMan Setup Tool for MELSENSOR)

Page 27

X1000 Image Capturing Trigger Ready The reception status of 'Image Capturing Trigger Enable' (Y1000) is stored... ON: An image capturing trigger is enabled... OFF: An image capturing trigger is disabled...

Page 28

(0): Set an interlock to check that the cyclic transmission is normally performed between the master station (programmable controller) and the station No... 1 (code reader)... When the cyclic transmission is normally performed, the program in line (4) and later are executed... (4): Enable an image capturing trigger on the code reader... (6): Request the start of the image capture to the code reader ('Image Capturing Trigger'(Y1001) is turned ON)... (11): Perform the processing for the completion of the image capture of the code reader... (19): Clear a read results data copy area after the completion of decoding the code reader... In this program, output data block is set to 32 points, thus areas for 27 points in which read results data is stored are cleared... (26): Copy decoding results after clearing the read results data copy area...

Page 29

1 CC-Link IE Field Network Basic CONNECTION 1... 4 Setting a Programmable Controller 27

Page 30

Select [Online] [Write to PLC]... The "Online Data Operation" screen appears... Click the [Parameter + Program] button... Click the [Execute] button...

Page 31

Click the [Communications] button... Select the [Ethernet] tab... Check that "CC-Link IE Field Basic connection to 192... 168... 3... 2 established" is displayed in "Status"...

Page 32

5... Check the read results... Enter "W0" for "Device Name"... "W5" to "W0A": Check "ABCDEFG01234" is displayed in "String"... "W0B": Check the terminating text "0A0D" (CR/LF) is displayed in "Current Value"...

Page 33

2 SLMP SCANNER CONNECTION This chapter explains the procedure for connecting a code reader to a programmable controller and controlling the code reader with an SLMP scanner connection...

Page 34

*2 Cable length (0... 6 m, 2 m, 5 m, 10 m, or 15 m), straight *3 Cable length (5 m, 10 m, or 15 m), shielded twisted-pair cable, straight

Page 35

Precautions Check that a 24 VDC power supply is OFF when connecting a breakout cable to the power supply... Cut unused wires or protect them with insulating materials... Be careful not to contact with 24 VDC wires... A breakout cable and an Ethernet cable are designed to connect with their key aligned with the keyway of the connector on

Page 36

Basic operations for an SLMP scanner connection With an SLMP scanner connection, a code reader reads a control block from a programmable controller in the poll interval set with DataMan Setup Tool for MELSENSOR, and performs processing according to the change of the bit information in the control block... In addition, the status of the processing is written to the corresponding bit in the status block... By assigning devices of a programmable controller to each of the defined data blocks (including control blocks), a code reader can be controlled using the devices... The following shows the functions of six data blocks...

Page 37

3 Results Ack To respond to receiving the latest read results... A code reader turns 'Results Available' OFF when recognizing that this bit turns ON... If 'Buffer Results Enable' is turned ON, the next read results are read out from the buffer queue when receiving a response... ON: Read results are received... OFF:

Page 38

10 Results Buffer Overrun This bit shows that a code reader discards a series of read results after the buffer for read results becomes full... When the next read results are stored in the buffer queue properly, this bit is turned OFF... Only when 'Buffer Results Enable' is enabled, this bit is enabled... ON: Read results are discarded... OFF:

Page 39

1 Trigger ID Image capturing trigger ID... ID of an image capturing trigger to be generated next is stored... This is used to verify a generated image capturing trigger and 'Result Data' to be received later... The same value as this ID is returned as 'Result ID' of the corresponding read results...

Page 40

Select [Repair & Support]... Select the code reader "CF26"... Set an IP address and a subnet mask of the code reader in the "Network Settings" section... IP Address: 192... 168... 3... 1 Subnet Mask: 255... 255... 255... 0 Click the [Apply] button... The code reader is restarted and the network settings are applied...

Page 41

2... Import a QR Code to be read in the "Optimize Image" step... Click the [Optimize Image] button... Click the [Live] button... When a QR Code to be read is displayed, click the [Live] button again... It is recommended to tune and optimize

Page 42

4... Set a trigger type and an exposure method in the "Application Details" step... Click the [Application Details] button... Select "Single (external)" for "Trigger Type" in "Trigger Settings"... Select "Automatic Exposure" for "Exposure"...

Page 43

6... Configure the protocol to be used (SLMP scanner) in the "Communications" step... Click the [Communications] button... Select the checkbox of "SLMP" for "Industrial Protocols" in the [Ethernet] tab... Set "Industrial Protocols" of the SLMP... IP Address: 192... 168... 3... 2*1

Page 44

*1 IP address of the programmable controller *2 Port number of the programmable controller *3 When the connection with the code reader is disconnected due to timeout, set a large value for the timeout... *4 The interval to monitor the programmable controller status can be shortened by setting a small value for the poll interval...

Page 45

Select [Tool] [Profile Management] [Register]... The "Register Profile" screen appears... Select the profile of the code reader obtained previously... Click the [Register] button...

Page 46

2... Set module parameters in the module parameter setting screen of the CPU module... Double-click "Module Parameter" in the "Navigation" window... The "R04CPU Module Parameter" screen appears... Set "IP Address", "Enable/Disable Online Change" and "Communication Data Code"... IP Address: 192... 168... 3... 2 Enable/Disable Online Change:

Page 47

For the system configuration in which the automatic detection function of connected devices is not supported, a code reader can be added by dragging and dropping "CF26" in "Code Reader" from "Ethernet Device (Mitsubishi Electric Corporation)" in "Module List... " The parameter settings are as follows: "Protocol": TCP "PLC" - "IP Address": 192... 168... 3... 2 (IP address of a programmable controller set in DataMan Setup Tool for

Page 48

D1002... 0 Image Capturing Trigger Ready The reception status of 'Image Capturing Trigger Enable' (D1000... 0) is stored... ON: An image capturing trigger is enabled... OFF: An image capturing trigger is disabled...

Page 49

(0): Monitor the startup of a code reader... (4): Enable an image capturing trigger on the code reader... (7): Request the start of the image capture to the code reader ('Image Capturing Trigger'(D1000... 1) is turned ON)... (12): Perform the processing for the completion of the image capture of the code reader... (20): Clear a read results data copy area after the completion of decoding the code reader... In this program, output data block is set to 100 points, thus clear areas for 95 points in which read results data is stored... (28): Copy decoded read results after clearing the read results data copy area...

Page 50

(0): Monitor the startup of a code reader... (4): Enable an image capturing trigger on the code reader... (7): Request the start of the image capture to the code reader ('Image Capturing Trigger'(D1000... 1) is turned ON)... (12): Perform the processing for the completion of the image capture of the code reader... (16)(19): Notify the code reader that the device received new read results data... (23): Clear a read results data copy area after the completion of decoding the code reader... In this program, output data block is set to 100 points, thus clear areas for 95 points in which read results data is stored... (33): Copy decoded read results after clearing the read results data copy area...

Page 51

Timing chart of SLMP scanner connection A timing chart when 'Trigger (Image Capturing Trigger)' of a control block is turned ON by using a programmable controller is shown below... To enable the image capturing trigger from a programmable controller, turn ON 'Trigger Enable (Image Capturing Trigger Enable)' of a control block... When 'Trigger (Image Capturing Trigger)' of a control block is turned ON using a programmable controller while 'Trigger Ready (Image Capturing Trigger Ready)' of a status block is ON by turning ON 'Trigger Enable (Image Capturing Trigger Enable)', the status of a code reader is output to 'Trigger Ack (Image Capturing Trigger Ack)' and 'Decode Complete Toggle (Decode Complete)' of the status block... The status of 'Decode Complete Toggle (Decode Complete)' is inverted at the completion of decoding...

Page 52

Click the [Online] [Write to PLC] button... The "Online Data Operation" screen appears... Click the [Parameter + Program] button... Click the [Execute] button...

Page 53

2... 6 Checking Operations Check operation by controlling the code reader using the programmable controller... Use a created program to check the operation... (Page 46 Creating a program)

Page 54

4... Check the completion of decoding... Enter "D1000" for "Device Name"... Program example 1: Check that 'Decode Complete' (D1002... 9) is inverted... Program example 2: Check that 'Read results Available' (D10002... B) is turned ON...

Page 55

DMCC Commands Control Control and set a code reader by using DMCC (DataMan Control Commands) command... For details on DMCC commands, refer to the command reference in the help of DataMan Setup Tool for MELSENSOR...

Page 56

4... Check the execution result of the DMCC command... Enter "D2100" for "Device Name"... Check the length of the device name "E" is displayed in "Current Value" of "D2101"... Check the device name (a name of the code reader used) "CF26-0000000" is displayed in "String" of "D2102" to "D2107... " Check the terminating text "0A0D" (CR/LF) is displayed in "Current Value" of "D2108"...

Page 57

3 RS-232 CONNECTION This chapter explains the procedure for connecting a code reader to a programmable controller and controlling the code reader with an RS-232 connection...

Page 58

*2 Cable length (0... 6 m, 2 m, 5 m, 10 m, or 15 m), straight *3 Cable length (5 m, 10 m, or 15 m), shielded twisted-pair cable, straight

Page 59

1... Connect a breakout cable to an RS-232 connector (D-sub 9 Pin)... Connect a breakout cable to an RS-232 connector (D-sub 9 Pin) as follows: TxD (white and yellow) to RD (RxD), RxD (brown) to SD (TxD), and GND (black) to SG... In addition, connect the RS-232 connector (D-Sub 9 Pin) as follows: ER (DTR) to DR (DSR), and RS (RTS) to CS (CTS)...

Page 60

Select [Repair & Support]... Select the code reader "CF26"... Set an IP address and a subnet mask of the code reader in the "Network Settings" section... IP Address: 192... 168... 3... 1 Subnet Mask: 255... 255... 255... 0 Click the [Apply] button... The code reader is restarted and the network settings are applied...

Page 61

2... Import a QR Code to be read in the "Optimize Image" step... Click the [Optimize Image] button... Click the [Live] button... When a QR Code to be read is displayed, click the [Live] button again... It is recommended to tune and optimize

Page 62

4... Set a trigger type and an exposure method in the "Application Details" step... Click the [Application Details] button... Select "Single (external)" for "Trigger Type" in "Trigger Settings"... Select "Automatic Exposure" for "Exposure"...

Page 63

5... Set the output information of the QR Code in the "Format Data" step... Click the [Format Data] button... Select the checkbox of "Standard" for "Universal"... Select the [Standard] tab...

Page 64

6... Configure settings for communication (serial) in the "Communications" step... Click the [Communications] button... Select the [Serial] tab... Configure the "Serial Port Settings"... Speed: 115200 Parity: None Data Bits: 8 Stop Bits: 1 RS 232 Inter-character Delay (ms): 0

Page 65

3... Add an information module in the "Add New Module" screen... Right-click "Module Information" in the "Navigation" window, and select [Add New Module] in the shortcut menu... Set the items in "Module Selection"... Module Type: Information Module Module Name: RJ71C24 Mounting Slot No... : 0 Start I/O No... Specification: Not Set Click the [OK] button...

Page 66

4... Set module parameters in the module parameter setting screen of the information module... Double-click "Module Parameter" in the "Navigation" window... Set the module parameter... Communication protocol setting:

Page 67

6... Create a communication protocol for a serial communication module... Click (New)... Click the [Add] button... Add a protocol... Type: Predefined Protocol Library Manufacturer: MITSUBISHI

Page 68

8... Set devices... Select [Edit] [Device Batch Setting]... Set devices to the configured protocol... Protocol No... : 1-2 Device No... : D200 Click the [OK] button... For devices that are set for packets of

Page 69

Devices used in the program Device Device name Description M0 Initialization Protocol Execution Completed This device is turned ON when the execution of an initialization protocol is completed...

Page 70

(0): Request the execution of an initialization protocol... (15): The processing for the completion of an initialization protocol execution is performed... (24): Request the execution command of a trigger protocol... (41): The processing for the completion of a trigger protocol execution is performed...

Page 71

3... Add an information module in the "Add New Module" screen... Right-click "Module Information" in the "Navigation" window, and select [Add New Module] in the shortcut menu... Set the items in "Module Selection"... Module Type: Information Module Module Name: RJ71C24 Mounting Slot No... : 0 Start I/O No... Specification: Not Set Click the [OK] button...

Page 72

4... Set module parameters in the module parameter setting screen of the information module... Double-click "Module Parameter" in the "Navigation" window... Set the module parameter... Communication protocol setting:

Page 73

'DMCC Command Transmission Completed flag' (M101) and 'DMCC Command Transmission Failure flag' (M102) are reset when this device is turned ON...

Page 74

(0)(3): Request a DMCC command transmission... (35)(44): The processing for the completion of a DMCC command transmission is performed...

Page 75

(0): Request for receiving character strings... (24)(31): The processing for the completion of receiving character strings is performed...

Page 76

Click the [Online] [Write to PLC] button... The "Online Data Operation" screen appears... Click the [Parameter + Program] button... Click the [Execute] button...

Page 77

1... Start monitoring in the "Device/Buffer Memory Batch Monitor" window... Select [Online] [Monitor] [Device/Buffer Memory Batch Monitor]... The "Device/Buffer Memory Batch Monitor" window appears... Enter "M50" for "Device Name"... Click the [Start Monitoring] button...

Page 78

1... Start monitoring in the "Device/Buffer Memory Batch Monitor" window... Select [Online] [Monitor] [Device/Buffer Memory Batch Monitor]... The "Device/Buffer Memory Batch Monitor" window appears... Enter "X20" for "Device Name"... Click the [Start Monitoring] button...

Page 79

4 RS-232 CONNECTION (GOT) This chapter explains the procedure for connecting a code reader to a GOT and controlling the code reader with an RS-232 connection...

Page 80

*2 Cable length (0... 6 m, 2 m, 5 m, 10 m, or 15 m), straight *3 Cable length (5 m, 10 m, or 15 m), shielded twisted-pair cable, straight

Page 81

1... Connect a breakout cable to an RS-232 connector (D-sub 9 Pin)... Connect a breakout cable and an RS-232 connector (D-sub 9 Pin) as follows: TxD (white and yellow) to RD (RxD), RxD (brown) to SD (TxD), and GND (black) to SG... In addition, connect the RS-232 connector (D-Sub 9 Pin) as follows: ER (DTR) to DR (DSR), and RS (RTS) to CS (CTS)...

Page 82

Select [Repair & Support]... Select the code reader "CF26"... Set an IP address and a subnet mask of the code reader in the "Network Settings" section... IP Address: 192... 168... 3... 1 Subnet Mask: 255... 255... 255... 0 Click the [Apply] button... The code reader is restarted and the network settings are applied...

Page 83

2... Import a QR Code to be read in the "Optimize Image" step... Click the [Optimize Image] button... Click the [Live] button... When a QR Code to be read is displayed, click the [Live] button again... It is recommended to tune and optimize

Page 84

4... Set a trigger type and an exposure method in the "Application Details" step... Click the [Application Details] button... Select "Single (external)" for "Trigger Type" in "Trigger Settings"... Select "Automatic Exposure" for "Exposure"...

Page 85

5... Set the output information of the QR Code in the "Format Data" step... Click the [Format Data] button... Select the checkbox of "Standard" for "Universal"... Select the [Standard] tab...

Page 86

6... Configure settings for communication (serial) in the "Communications" step... Click the [Communications] button... Select the [Serial] tab... Set "Serial Port Settings"... Speed: 115200 Parity: None Data Bits: 8 Stop Bits: 1 RS 232 Inter-character Delay (ms): 0

Page 87

2... Configure the settings in the "New Project Wizard" screen... Set each page as follows, and click the [Next] button... Page 86 New Project Wizard Click the [Finish] button...

Page 88

When IP address of the programmable controller is other than the default (192... 168... 3... 39), select [Common] [Controller Setting] and set the IP address in the "Ethernet Controller Setting" section...

Page 89

Disable Click the [Detail Setting] button... Set the property of barcodes... Transmission Speed (BPS): 115200 Data Bit: 8 bit Stop Bit: 1 bit Parity: None Click the [OK] button...

Page 90

4... Place the object of an input character string... Place the character string object on the screen and double-click it...

Page 91

5... Set the value of the input character string... Configure the setting of the input character string... The [Device/Style] tab Device: D0 Digits: 12

Page 92

7... Configure the advanced settings of the key window... Select the [Key Window Advanced Setting] tab and configure "Key Window/Cursor Display Setting"... Select the checkbox of "Prioritize

Page 93

2... Check the communication configuration... Check "Direct" is selected for "Connection to GOT" and click the [OK] button...

Page 94

Select [Project] [New]... The "New" screen appears... Set a CPU module and a program language... Series: RCPU Type: R04 Program Language: Ladder Click the [OK] button... Click the [OK] button...

Page 95

Select [Online] [Write to PLC]... The "Online Data Operation" screen appears... Click the [Parameter + Program] button... Click the [Execute] button...

Page 96

2... Start monitoring in the "Device/Buffer Memory Batch Monitor" window... Select [Online] [Monitor] [Device/Buffer Memory Batch Monitor]... The "Device/Buffer Memory Batch Monitor" window appears... Enter "D0" for "Device Name"... Click the [Start Monitoring] button...

Page 97

5 I/O CONNECTION This chapter explains the procedure for connecting a code reader to a programmable controller and controlling the code reader with an I/O connection...

Page 98

*2 Cable length (0... 6 m, 2 m, 5 m, 10 m, or 15 m), straight *3 Cable length (5 m, 10 m, or 15 m), shielded twisted-pair cable, straight

Page 99

Precautions Check that a 24 VDC power supply is OFF when connecting a breakout cable to the power supply... Cut unused wires or protect them with insulating materials... Be careful not to contact with 24 VDC wires... A breakout cable and an Ethernet cable are designed to connect with their key aligned with the keyway of the connector on

Page 100

1... Connect a breakout cable to an input/output module... For details on the connection with an input/output module, refer to the user's manual... Code Reader CF26 User's Manual Code Reader CF37 User's Manual

Page 101

Select [Repair & Support]... Select the code reader "CF26"... Set an IP address and a subnet mask of the code reader in the "Network Settings" section... IP Address: 192... 168... 3... 1 Subnet Mask: 255... 255... 255... 0 Click the [Apply] button... The code reader is restarted and the network settings are applied...

Page 102

2... Import a QR Code to be read in the "Optimize Image" step... Click the [Optimize Image] button... Click the [Live] button... When a QR Code to be read is displayed, click the [Live] button again... It is recommended to tune and optimize

Page 103

4... Set a trigger type and an exposure method in the "Application Details" step... Click the [Application Details] button... Select "Single (external)" for "Trigger Type" in "Trigger Settings"... Select "Automatic Exposure" for "Exposure"...

Page 104

5... Set inputs and outputs (I/O connection) in the "Inputs/Outputs" step... Click the [Inputs/Outputs] button... The [Outputs] tab Select the [Outputs] tab... Set "Events" and "Action" in the table... ? "Event" Read: Select the checkbox of '0'... No Read: Select the checkbox of '1'... Validation Failure: Select the checkbox of '2'... Buffer Overflow: Select the checkbox of '3'...

Page 105

6... Configure the settings for data validation Select the [Settings] tab Click the [Data Validation] button... Select the [QR Code/MaxiCode/Aztec Code] tab... Select "Match String Validation"... Enter "ABCDEFG01234" in "Match String"...

Page 106

3... Add an input module in the "Add New Module" screen... Right-click "Module Information" in the "Navigation" window, and select [Add New Module] in the shortcut menu... Set the items in "Module Selection"... Module Type: Input Module Name: RX40C7 Mounting Slot No... : 0 Start I/O No... Specification: Not Set Click the [OK] button...

Page 107

4... Add an output module... Right-click "Module Information" in the "Navigation" window, and select [Add New Module] in the shortcut menu... Set the items in "Module Selection"... Module Type: Output Module Name: RX40NT5P Mounting Slot No... : 1 Start I/O No... Specification: Not Set Click the [OK] button...

Page 108

M12 Failed Validation flag This device is turned ON when a code can be read from the captured image but failed validation... ON: Succeeded to read a code but failed validation OFF: Failed to read a code or passed validation

Page 109

(0): Request the start of the image capture to the code reader ('Trigger'(Y10) is turned ON)... (8): Monitor the I/O connection status between the code reader and programmable controller... (44): Process the results from the code reader as follows: When a code can be read from the captured image or passed validation, 'Read flag' (M10) is turned ON... When codes cannot be read from the captured image, 'No Read flag' (M11) is turned ON... When a code can be read from the captured image but failed validation, 'Failed Validation flag' (M12) is turned ON... When a buffer overflow occurs, the annunciator F10 is turned ON...

Page 110

Turn ON/OFF the code reader automatically... ProcessingProcessing Processing

Page 111

Select [Online] [Write to PLC]... The "Online Data Operation" screen appears... Click the [Parameter + Program] button... Click the [Execute] button...

Page 112

1... Start monitoring in the "Device/Buffer Memory Batch Monitor" window... Select [Online] [Monitor] [Device/Buffer Memory Batch Monitor]... The "Device/Buffer Memory Batch Monitor" window appears... Enter "M100" for "Device Name... " Click the [Start Monitoring] button...

Page 113

6 EtherNet/IP CONNECTION This chapter explains the procedure for connecting a code reader to a programmable controller and controlling the code reader with an EtherNet/IP connection... Only the CF37 supports an EtherNet/IP connection...

Page 114

*2 Cable length (0... 6 m, 2 m, 5 m, 10 m, or 15 m), straight *3 Cable length (5 m, 10 m, or 15 m), shielded twisted-pair cable, straight

Page 115

Precautions Check that a 24 VDC power supply is OFF when connecting a breakout cable to the power supply... Cut unused wires or protect them with insulating materials... Be careful not to contact with 24 VDC wires... A breakout cable and an Ethernet cable are designed to connect with their key aligned with the keyway of the connector on

Page 116

The DataMan ID Reader Object consists of attributes (data) and services (functions)... For details on attributes and services, refer to DataMan Industrial Protocols Manual... DataMan Industrial Protocols Manual can be opened by clicking "CF Industrial Protocols Manual" in the help of DataMan Setup Tool for MELSENSOR...

Page 117

Message (Explicit) communications Message (Explicit) communications are the method where a message is sent to a specific device (code reader) when desired, and the device (code reader) that received the message sends a response... Attributes can be accessed by using the services of the DataMan ID Reader Object via message (Explicit) communications...

Page 118

Basic operation process for cyclic (Implicit) communications The Class 1 instance communications function of an EtherNet/IP network interface module (RJ71EIP91) is used for cyclic (Implicit) communications... Cyclic (Implicit) communications perform data communications periodically with the Requested Packet Interval (hereafter abbreviated as RPI) set in an RJ71EIP91, and the specified buffer memory is updated... Data communications are performed between the originator (RJ71EIP91) that sends the connection request and the target (coder reader) that receives the connection request... In addition, defined Input/Output Assemblies are used to transmit data... Cyclic (Implicit) communications establish a connection between an RJ71EIP91 and a code reader; therefore, it is suitable for performing operations which frequently read codes and for detecting an error early...

Page 119

Input/Output Assemblies used for cyclic (Implicit) communications The Assembly Object is used for cyclic (Implicit) communications... For details on each assembly data, refer to DataMan Industrial Protocols Manual... DataMan Industrial Protocols Manual can be opened by clicking "CF Industrial Protocols Manual" in the help of DataMan Setup Tool for MELSENSOR...

Page 120

2 Results Buffer Overrun This bit shows that a code reader discards a series of read results after the buffer for read results becomes full... When the next read results are stored in the buffer queue properly, this bit is turned OFF... Only when 'Buffer Results Enable' is enabled, this bit is enabled... ON: Read results are discarded... OFF:

Page 121

10 Result Code (16-bit integer) Result code for the current result set... Bit 0: 1 = Read, 0 = No Read Bit 1: 1 = Passed validation, 0 = Failed validation Bit 2*2: 1 = Passed verification, 0 = Failed (or unexecuted) verification Bit 3: 1 = Image capturing trigger overrun Bit 4: 1 = Image capturing buffer overrun Bit 5 to 15:

Page 122

3 Results Ack To respond to receiving the latest read results... A code reader turns 'Results Available' OFF when recognizing that this bit turns ON... If 'Buffer Results Enable' is turned ON, the next read results are read out from the buffer queue when receiving a response... ON: Read results are received... OFF:

Page 123

Basic operation process for message (Explicit) communications The client function of UCMM message communications of an EtherNet/IP network interface module (RJ71EIP91) is used for message (Explicit) communications... Message (Explicit) communications send a message to a code reader, and the code reader that received the message sends a response... Unlike cyclic (Implicit) communications, data communications are performed without establishing a connection between an RJ71EIP91 and a code reader; therefore it is suitable for operations that are not frequently performed...

Page 124

Select [Repair & Support]... Select the code reader "CF37"... Set an IP address and a subnet mask of the code reader in the "Network Settings" section... IP Address: 192... 168... 3... 1 Subnet Mask: 255... 255... 255... 0 Click the [Apply] button... The code reader is restarted and the network settings are applied...

Page 125

2... Import a QR Code to be read in the "Optimize Image" step... Click the [Optimize Image] button... Click the [Live] button... When a QR Code to be read is displayed, click the [Live] button again... It is recommended to tune and

Page 126

4... Set a trigger type and an exposure method in the "Application Details" step... Click the [Application Details] button... Select "Single (external)" for "Trigger Type" in "Trigger Settings"... Select "Automatic Exposure" for "Exposure"...

Page 127

6... Configure the protocol to be used (EtherNet/IP) in the "Communications" step... Click the [Communications] button... Select the checkbox of "EtherNet/ IP" for "Industrial Protocols" in the [Ethernet] tab...

Page 128

8... Restart the code reader... Select [System] [Reset Configuration] [Reboot Device]... The code reader is restarted...

Page 129

3... Add a network module in the "Add New Module" screen... Right-click "Module Information" in the "Navigation" window, and select [Add New Module] in the shortcut menu... Set the items in "Module Selection"... Module Type: Network Module Module Name: RJ71EIP91 Mounting Slot No... : 0 Start I/O No... Specification: Not Set

Page 130

4... Set to use module labels... Click the [Setting Change] button...

Page 131

5... Set module parameters in the module parameter setting screen of the network module... Double-click the module name (RJ71EIP91) in the "Navigation" window... Select "Basic Setting," and set "IP Address" and "Subnet Mask... " IP Address: 192... 168... 3... 60 Subnet Mask: 255... 255... 255... 0

Page 132

Configuring Communication Settings in EtherNet/IP Configuration Tool For cyclic (Implicit) communications, use EtherNet/IP Configuration Tool to set the EtherNet/IP network configuration and the trigger type, RPI, etc... for each connection in an EtherNet/IP network interface module (RJ71EIP91)...

Page 133

Click the [Browse] button and specify a necessary EDS file... Click the [Next] button...

Page 134

4... Add a code reader in the network configuration setting... In the [Device Library] tab, right-click a code reader under the tree of "EtherNet/IP Devices," and select [Insert in Configuration] from the shortcut menu...

Page 135

Select the [Connections] tab to set Class 1 instance communications... Select "General," and set parameters as follows: Input Size: 100 bytes Input Mode: Point to Point Output Size: 100 bytes Output Mode: Point to Point Request Packet Interval(RPI): 10 ms

Page 136

Precautions Settings that are written to an EtherNet/IP network interface module (RJ71EIP91) in EtherNet/IP Configuration Tool are applied when 'EtherNet/IP communication start request' (Y10) is turned from OFF to ON...

Page 137

D1050... 0 Trigger Ready The reception status of 'Trigger Enable' (D1000... 0) is stored... ON: An image capturing trigger is enabled... OFF: An image capturing trigger is disabled...

Page 138

EIP91_1... bSet_CommunicationStartupRequest EtherNet/IP communication start request Y10

Page 139

(20): Request the start of the image capture to the code reader ('Trigger' (D1000... 1) is turned ON)... (25): Monitor that the code reader completes the processing for capturing an image... (40): Perform the processing for the completion of the image capture of the code reader... (47): Check the communication status and turn ON the input execution command... (53): Acquire input data by using the module FB (M+RJ71EIP91_Class1SetInputData*2) of an RJ71EIP91... *3

Page 140

Timing chart of cyclic (Implicit) communications A timing chart when 'Trigger (Image Capturing Trigger)' of the Output Assembly is turned ON by using a programmable controller via cyclic (Implicit) communications is shown below... To enable the image capturing trigger from a programmable controller, turn ON 'Trigger Enable (Image Capturing Trigger Enable)' of the Output Assembly... When 'Trigger (Image Capturing Trigger)' of the Output Assembly is turned ON using a programmable controller while 'Trigger Ready (Image Capturing Trigger Ready)' of the Input Assembly is ON by turning ON 'Trigger Enable (Image Capturing Trigger Enable),' the reception status of 'Trigger (Image Capturing Trigger)' of the code reader is output to 'Trigger Ack (Image Capturing Trigger Ack)' of the Input Assembly... The status of 'Decode Complete Toggle (Decode Complete)' of the Input Assembly is inverted at the completion of decoding... When 'Trigger Enable (Image Capturing Trigger Enable)' of the Output Assembly is turned OFF, 'Trigger Ready (Image Capturing Trigger Ready)' is also turned OFF...

Page 141

Creating a program for message (Explicit) communications Create a program for acquiring the device name of a code reader via message (Explicit) communications by using DMCC commands... For details on DMCC commands, refer to the command reference in the help of DataMan Setup Tool for MELSENSOR...

Page 142

EIP91_1... stnUCMMCommandArea[1]... unResult_Response_ReceiveData_D UCMM data link receive command (No... 1) Receive data

Page 143

D100 K2 EIP91_1... stnUCM MCommandArea [1]... uSet_Request _DataLength_D

Page 144

(0): Perform the processing for starting communications... (4): Initialize data of the UCMM data link request command... (17): Initialize the DMCC command string ("||>GET DEVICE... NAME")... (36): Store data of the UCMM data link request command... (89): Perform UCMM communications... (98): Store response data and reset the command request... *1

Page 145

Select [Online] [Write to PLC]... The "Online Data Operation" screen appears... Click the [Parameter + Program] button... Click the [Execute] button...

Page 146

Checking operations of cyclic (Implicit) communications Use a created program to check the operation... (Page 135 Creating a program for cyclic (Implicit) communications)

Page 147

Checking read results Check the read results of a QR Code in the "Device/Buffer Memory Batch Monitor" window of an engineering tool... 1... Start monitoring in the "Device/Buffer Memory Batch Monitor" window...

Page 148

3... Check command length and string data length... Enter "D100" for "Device Name... " Check the DMCC command data length "0014" is displayed in "Current Value" of "D100"... Check the DMCC command "||>GET DEVICE... NAME" is displayed in "String" of "D101" to "D109... " Check the terminating text "0A0D" (CR/LF) is displayed in "Current Value" of "D110... "

Page 149

5... Check response data... Enter "D200" for "Device Name... " Check the length of the device name "D" is displayed in "Current Value" of "D202... " Check the device name (a name of the code reader used) "CF37-xxxxxx" is displayed in "String" of "D203" to "D208... " Check the terminating text (CR/LF) is displayed in "Current Value" of "D208" and "D209... "

Page 150

8 6 EtherNet/IP CONNECTION 6... 6 Checking Operations

Page 151

May 2021 BCN-P5999-1074-D Added or modified parts INTRODUCTION, RELEVANT MANUALS, TERMS, GENERIC TERMS AND ABBREVIATIONS, Section 1... 1, Section 1... 2, Section 1... 4, Section 1... 5, Section 1... 6, Section 2... 1, Section 2... 2, Section 2... 4, Section 2... 5, Section 2... 6, Section 3... 1, Section 3... 2, Section 3... 3, Section 3... 4, Section 3... 5, Section 4... 1, Section 4... 2, Section 4... 4, Section 4... 5, Section 4... 6, Section 5... 1, Section 5... 3, Section 5... 4, Section 5... 5, Chapter 6, Section 6... 1, Section 6... 2, Section 6... 3, Section 6... 4, Section 6... 5, Section 6... 6

Page 152

TRADEMARKS The following are registered trademarks of Cognex Corporation: Cognex, 2DMAX, Advantage, AlignPlus, Assemblyplus, Check it with Checker, Checker, Cognex Vision for Industry, Cognex VSOC, CVL, DataMan, DisplayInspect, DVT, EasyBuilder, HotBars II, IDMax, In-Sight, Laser Killer, MVS-8000, OmniView, PatFind, PatFlex, PatInspect, PatMax, PatQuick, SensorView, SmartView, SmartAdvisor, SmartLearn, UltraLight, Vision Solutions, VisionPro, VisionView The following are trademarks of Cognex Corporation: The Cognex logo, 1DMax, 3D-Locate, 3DMax, BGAII, CheckPoint, Cognex VSoC, CVC-1000, FFD, iLearn, In-Sight (design insignia with cross-hairs), In-Sight 2000, InspectEdge, Inspection Designer, MVS, NotchMax, OCRMax, PatMax RedLine, ProofRead, SmartSync, ProfilePlus, SmartDisplay, SmartSystem, SMD4, VisiFlex, Xpand The company names, system names and product names mentioned in this manual are either registered trademarks or trademarks of their respective companies... In some cases, trademark symbols such as '' or '' are not specified in this manual...

Page 154

HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN NAGOYA WORKS : 1-14 , YADA-MINAMI 5-CHOME , HIGASHI-KU, NAGOYA , JAPAN

Manualsnet FAQs

If you want to find out how the Melsensor Mitsubishi Electric works, you can view and download the Mitsubishi Electric Melsensor Connection Guide on the Manualsnet website.

Yes, we have the Connection Guide for Mitsubishi Electric Melsensor as well as other Mitsubishi Electric manuals. All you need to do is to use our search bar and find the user manual that you are looking for.

The Connection Guide should include all the details that are needed to use a Mitsubishi Electric Melsensor. Full manuals and user guide PDFs can be downloaded from Manualsnet.com.

The best way to navigate the Mitsubishi Electric Melsensor Connection Guide is by checking the Table of Contents at the top of the page where available. This allows you to navigate a manual by jumping to the section you are looking for.

This Mitsubishi Electric Melsensor Connection Guide consists of sections like Table of Contents, to name a few. For easier navigation, use the Table of Contents in the upper left corner.

You can download Mitsubishi Electric Melsensor Connection Guide free of charge simply by clicking the “download” button in the upper right corner of any manuals page. This feature allows you to download any manual in a couple of seconds and is generally in PDF format. You can also save a manual for later by adding it to your saved documents in the user profile.

To be able to print Mitsubishi Electric Melsensor Connection Guide, simply download the document to your computer. Once downloaded, open the PDF file and print the Mitsubishi Electric Melsensor Connection Guide as you would any other document. This can usually be achieved by clicking on “File” and then “Print” from the menu bar.