BL-1300_SR-600_MITSUBISHIQ_Ethernet_OM_600F04_GB_WW_1084-1.pdf
Short Description
Download BL-1300_SR-600_MITSUBISHIQ_Ethernet_OM_600F04_GB_WW_1084-1.pdf...
Description
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
Table of contents I. System Configuration (Hardware/Software) I. Mitsubishi Electric Product Hardware Configuration II. Mitsubishi Electric Product Software Configuration III. Keyence Hardware Configuration IV. Keyence Software Configuration
II. Connection Method I. Overall Connection Diagram
III. Keyence Code Reader Configuration I. Keyence Code Reader Communication Setting II. N-L1 Ethernet/RS-232C Communication Setting
IV. Mitsubishi Electric Q Series Configuration I. Connection between the PC and the Q Series II. GX Developer Operation [basic + communication settings]
V. Programming for the Q Series I. Ladder Program Creation II. Commands Used in Programs
VI. Creating a Sample Program for Q Series Ethernet Communication I. Creation of Ethernet Command Communication Program
VII. Program Operation Test (Barcode Reading) I. Up to Code Data Monitoring
VIII. Troubleshooting I. CPU Errors II. Communication Unit Errors III. Control Command Execution Errors IV. AutoID Navigator Connection Errors
0/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
I. System Configuration (Hardware/Software) I. Mitsubishi Electric Product Hardware Configuration Symbo
Function
A B C D
Base unit Power supply unit CPU unit Ethernet interface unit
A
B
Model Q35B Q61P-A1 Q03UDECPU QJ71E71-100
C
D
II. Mitsubishi Electric Product Software Configuration i
GX Developer v8.**S This software is used to configure and program the Mitsubishi Electric PLC. The software version must be 8 or higher before you can perform operation described in this manual.
Applicable models Q series, L series, QnA series, A series, and FX series
Communication interface Serial communication (RS-232C), USB, Ethernet
Languages that can be used Ladder, function block, and ST languages can be used.
1/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
III. Keyence Hardware Configuration Communication unit and cables
KEYENCE code reader Barcode reader BL-1300 series
2D code reader SR-600 series
BL-1300 connection image
Communicatio n unit N-L1
LAN cable OP-66843 or category 5e or higher STP cross cable (for direct connection)
SR-600 connection image
IV. Keyence Software Configuration AutoID Navigator This software is used to configure the Keyence code reader and its peripheral devices. Interface: RS-232C, USB, Ethernet For connection with the N-L1, a LAN cable (cross cable) is used.
2/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
II. Connection Method I. Overall Connection Diagram
100-120 VAC BL-1300 or SR-600
Ethernet hub or switch
N-L1
Ethernet
24 VDC Note: The N-L1 cannot be connected to the Ethernet port built in the CPU unit of the Mitsubishi Electric Q series. A QJ71E71 is required for connection.
3/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
III. Keyence Code Reader Configuration I. Keyence Code Reader Communication Setting I
BL-1300 series communication setting The serial communication setting must match between the BL-1300 series and the N-L1. If you want communication setting that differs from the following, also change the N-L1 communication settings as described in III-III.
Setting Baud rate Parity Data bits Stop bit Multi-drop link RTS/CTS
Value
Setting
115200 bps PLC Link
Even 8 bits 1 bit Disable Enable
Handshaking Format length Checksum Header Delimiter
4/25
Value Disable None Excluded Excluded None CR
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
II SR-600 series communication setting The serial communication setting must match between the SR-600 series and the N-L1. If you want communication setting that differs from the following, also change the N-L1 communication settings as described in III-III.
Setting Baud rate Parity Data bits Stop bit Multi-drop link RTS/CTS
Value 115200 bps
Even 8 bits 1 bit Disable Enable
Setting PLC Link Handshaking Format length Checksum Header Delimiter
5/25
Value Disable None Excluded Excluded None CR
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
II. N-L1 Ethernet/RS-232C Communication Setting Activate AutoID Navigator and change the N-L1 communication setting. I. Ethernet Communication
Basic setting Connected device settings Setting Value Setting Value IP address 192.168.0.1 IP address 192.168.0.100 Subnet mask 255.255.255.0 Port No. 9004 0. 0. 0. 0 Connection request Default gateway Value Port No. 9004 Setting Password RAS Connection request Disable Specify any numbers as the IP address and port number. The PLC setting must match this setting.
6/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
II. RS-232C communication
Setting Baud rate Parity Data bits Stop bit
Value 115200 bps Even 8 bits 1 bit TCP transmission timin100 RTS/CTS Enable For details on how to manipulate and configure the N-L1, see the N-L1 Technical Guide.
7/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
IV. Mitsubishi Electric Q Series Configuration I. Connection between the PC and the Q Series Interconnect a PC on which GX Developer is installed and a Q series PLC with a USB cable.
Engineering PC A connector B connector
USB
II. GX Developer Operation [basic + communication settings] I
Creating a New Project Activate GX Developer, access the menu, select [Project] - [New Project] to create a new project.
PLC series: PLC Type: Program type: Label setting: Project name:
QCPU(Qmode) Q03UDE Ladder Do not use label KYE_BL-SR_Ethern * The name shown at left is a sample name.
Note: Note that the above program is only a sample. Enter values that are appropriate for the actual system configuration.
8/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
II I/O assignment setting i. On the project tab, select [Parameter] - [PLC Parameter] - [I/O assignment].
ii. Configure I/O assignment settings. Configure the slots installed on the Ethernet interface unit as follows: Type: Intelli. Model name: QJ71E71-100 Points: 32points StartXY: 0000
iii. Configure basic settings. Configure the basic settings as follows: Base model name: Q35B Power model name: Q61P-A1 Slots: 5
If there are additional units, configure settings appropriate for
Note: Note that the above program is only a sample. Enter values that are appropriate for the actual system configuration.
9/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
III Ethernet Communication Setting i. Open [Network parameter]. From the project data, select [Parameter] - [Network param] [Ethernet/CC IE/MELSECNET].
ii. Configure unit 1. In the unit 1 table, enter settings for the Ethernet interface unit. Network type:
Ethernet
Starting I/O No.
0000
Network No.
1
Group No.:
1
Station No.
1
Mode:
Online
iii. Configure operational settings. Click [Operational settings] to open the right window: Communication data code: Binary code Initial timing: Do not wait for OPEN IP address
.
Input format: DEC IP address: 192.168.0.100 Send frame setting: Ethernet(V2.0) TCP Existence confirmation setting: Use the KeepAlive Enable Write at RUN time: Unchecked
10/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
iv. Configure open settings. Click [Open settings] to open the following window: Configure the settings as follows:
Protocol: Open system: Fixed buffer communication procedure: Existence confirmation: Host station Port No. Transmission target device IP address: Transmission target device Port No.:
TCP Active No procedure No confirm 232C 192.168.0.1 232C
By selecting [Enable] for [Pairing open], [Receive] and [Send] are selected respectively for fixed buffers 1 and 2, and the settings for connection No. 1 are reflected on the settings for connection No. 2.
After all settings are configured, close the window by clicking [End].
Note: Note that the above program is only a sample. Enter values that are appropriate for the actual system configuration.
11/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
V. Programming for the Q Series I. Ladder Program Creation This manual uses the ladder language for programming.
i. Creating a new project Create a new project as described in IV-II-I.
ii. Selecting the write mode Select [Edit] - [Write mode] from the menu. You cannot create programs in read mode.
iii. Inserting lines Select [Edit] - [Insert line] from the menu to insert as many lines as required for your program.
12/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
iv. Inserting a circuit Select a contact type from the provided circuit symbols.
v. Specifying a device number Assign a device number to the contact to be used.
You can confirm the range of available device numbers by selecting [PLC parameter] - [Device].
13/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
vi. Entering comments Select [Tools] - [Options] from the menu to open the Options window. Check [Continues during command write] under [Comment input]. This allows you to enter comments on the contact after specifying the device number in step v. above.
vii. Conversion When program creation is completed, select [Convert] - [Convert] from the menu. You can write up to 24 lines without conversion. Make sure to perform conversion before writing to PLC in step viii. below.
viii. Writing to PLC Select [Online] - [Write to PLC] from the menu. Select the file to be written and then click the [OK] button to perform writing.
14/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
II. Commands Used in Programs i. I/O commands An I/O command passes an input or an internal device ON/OFF status to an output or an internal device.
ii. Data transfer commands A data transfer command transfers data or constants from one device to another.
Transfer commands used in this manual [MOV D1 D2] ... Command that transfers data from D1 to D2 [MOVP D1 D2] ... Command that transfers data from D1 to D2 and, if the condition is satisfied, is executed during one scan [FMOVP D1 D2 K100] ... Command that transfers the same data in blocks and, if the condition is satisfied, is executed during one scan. The data on D1 is transferred to D2 through D101. For details, see the Mitsubishi Electric Q Series documentation.
15/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
VI. Creating a Sample Program for Q Series Ethernet Communication I. Creation of Ethernet Command Communication Program i. Checking the status of connections For communication with another device using the QJ71E71 Ethernet unit, reception and transmission connections must be automatically or manually opened. Use the following program to check whether M0 connection 1 (reception) and M1 connection 2 (transmission) are open. Also check the connections being requested to open - M20 connection 1 (reception) and M21 connection 2 (transmission). If a signal being received exists in the fixed buffer information area, M40 turns ON.
ii. Connection open processing X19:
QJ71E71 Ethernet unit normal
M0:
Connection 1 open status
M20:
Connection 1 open request status
M110:
Open command execution status
D100=0:
Open processing is executed according to network parameters and open settings.
F0:
Turns on a connection open instruction target device.
M1100:
When the open instruction turns ON, the "ZP.OPEN" connection open command is executed.
"U0": Unit I/O, K1: number of the connection being opened, D100: command execution type Upon abnormal command termination, M100 and M101 turn ON and M103 is set (and held). D101: Check the control data, and solve the problem according to the Q Series documentation. Connection 1 open instruction When F0 turns ON, M1100 is turned ON for one scan.
D100=0 Configure open settings using parameters.
Open command execution
Set for normal termination
Set for abnormal termination
Open command already executed
Upon normal termination of open command execution, M0, M20, and M110 turn ON.
16/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
iii. Connection close processing M0:
Connection 1 open status
M102:
Connection 1 opening normally terminated
F2:
Turns on a connection close instruction target device.
M2000:
If the condition is satisfied, the ZP.CLOSE connection close command is executed.
M1201:
If the condition is satisfied, the ZP.CLOSE connection close command is executed.
"U0": Unit I/O, K1: number of the connection being closed, D200: system area (no data set) Upon abnormal command termination, M200 and M201 turn ON and M203 is set (and held). D201: Check the control data, and solve the problem according to the Q Series documentation. When the M0 open completion signal turns OFF, M1200 is turned ON for one scan.
When M1200 turns ON, normal open command termination is confirmed and M1201 is turned ON for one scan. Connection 1 close instruction When F2 turns ON, M2000 is turned ON for one scan.
Close command execution
Stays on during close command execution
Reset if the previous execution was normally terminated
Reset if the previous execution was abnormally terminated
Set for normal termination
Set for abnormal termination
Reset if the open command normally terminated
Reset if the open command abnormally terminated
Reset upon open command completion
Reset during close command execution
Upon normal termination of close command execution, M0 and M20 turn OFF.
17/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
iv. Code read program When code information reading starts, the following program is executed: F1
:
Turns on a code read instruction target device.
M8001
:
"Code read in progress" is set (and held).
M40
:
When code reading is normally completed, it is considered that a signal is received in the fixed buffer.
T0
:
After confirmation of the presence of a signal, M8001 is reset (released from held status) to end read processing. If read data does not return within K2 = 0.2 second after code reading starts, the program considers that a timeout has occurred and resets M8001 (releases it from held status) to force read processing to terminate. Code read instruction When F1 turns ON, M8000 is turned ON for one scan.
Upon the leading edge of M8000, M8001 (read in progress) is set.
Sets T0 (code data read timeout) to 0.2 second.
Terminates reading when M40 turns ON (normal termination of reading) or a T0 timeout occurs.
v. Timer ON program iv. When code read program execution starts, a timer ON command is sent to the code reader. X19:
QJ71E71 Ethernet unit normal
M0:
Connection 1 open status
M3000:
Turned ON for one scan when M8001 (code read in progress) turns ON. The timer command "LON" and the "ZP.BUFSND" data transmission command are executed.
D300:
Send byte length - 4
D301:
Send data - "20300" in decimal or "L0" in ASCII
D302:
Send data - "3406" in decimal or "N CR" in ASCII
"U0": Unit I/O, K2: number of the transmission-target connection, D3000: system area (no data set) Upon abnormal command termination, M300 and M301 turn ON and M303 is set (and held). D3001: Check the control data, and solve the problem according to the Q Series documentation. If the condition is satisfied, M3000 will be turned ON for one scan upon the leading edge of M8001.
Send data and byte length input
Send data ("20300" in decimal or "LO" in ASCII) input
Send data ("3406" in decimal or "N CR" in ASCII) input
Data transmission command execution
18/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
Reset if the previous execution was normally terminated
Reset if the previous execution was abnormally terminated
Set for normal termination
Set for abnormal termination
vi. Timer OFF program iv. When code read program execution encounters a timeout, a timer OFF command is sent to the code reader. X19:
QJ71E71 Ethernet unit normal
M0:
Connection 1 open status
M4000:
Turned ON for one scan when the T0 timeout turns ON. The timer command "LOFF" and the "ZP.BUFSND" data transmission command are executed.
D400:
Send byte length - 5
D401:
Send data - "20300" in decimal or "L0" in ASCII
D402:
Send data - "17990" in decimal or "FF" in ASCII
D403:
Send data - "13" in decimal or "CR" in ASCII
"U0": Unit I/O, K2: number of the transmission-target connection, D4000: system area (no data set) Upon abnormal command termination, M400 and M401 turn ON and M403 is set (and held). D4001: Check the control data, and solve the problem according to the Q Series documentation.
If the condition is satisfied, M4000 will be turned ON for one scan upon the leading edge of T0.
Send data and byte length input
Send data ("20300" in decimal or "LO" in ASCII) input
Send data ("17990" in decimal or "FF" in ASCII) input
Send data ("13" in decimal or "CR" in ASCII) input
Data transmission command execution
19/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
Reset if the previous execution was normally terminated
Reset if the previous execution was abnormally terminated
Set for normal termination
Set for abnormal termination
vii. Code data reception program iv. When code read program execution normally terminates or when "ERROR" is received from the code reader due to a timeout, the reception program is executed. X19:
QJ71E71 Ethernet unit normal
M0:
Connection 1 open status
M40:
Data being received exists in the fixed buffer. The "ZP.BUFRCV" data reception command is executed.
[FMOVP K0 D500 K100 :
Before reception starts, 100 words of the previously received data are deleted. You can freely specify whether to delete the previously received data and the number of data words to be deleted.
"U0": Unit I/O, K1: number of the reception-target connection, D5000: system area (no data set) D500: Received data (data word count varies depending on the reception status) Upon abnormal command termination, M500 and M501 turn ON and M503 is set (and held). D5001: Check the control data, and solve the problem according to the Q Series documentation.
Deletes 100 words of previously received data.
Data reception command execution
Reset if the previous execution was normally terminated
Reset if the previous execution was abnormally terminated
Set for normal termination
Set for abnormal termination
20/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
VII. Program Operation Test (Barcode Reading) I. Up to Code Data Monitoring i. Verify the connection between the Q series and Keyence code reader, and then turn on the power. ii. Write the created program and specified parameters into the Q series
and set KEYENCE code reader parameters. iii. After all the necessary settings are completed, once turn the power off and then turn it on again. iv. Execute the connection open command.
1. Select [Online] - [Debug] - [Device test...] from the menu.
2. Type "F0" (read execution signal) in the [Device] field and then click the [FORCE ON] button.
21/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
3. Select [Online] - [Monitor] - [Device batch...] from the menu.
4. Type "M0" in the [Device] field and then click the [Start monitor] button.
5. After confirming that M0 and M20 turn ON, force F0 to turn OFF.
22/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
v. Read the code data. 1. Perform steps 1 and 2 in iv. to force F1 to turn ON.
2. Perform steps 3 and 4 in iv. to monitor the D500 value. The read code information is displayed if reading was successful or "ERROR" is displayed if a timeout (read error) occurred.
Screen displayed when reading was successful
Screen displayed if a timeout occurred
If you have no appropriate barcode, read the following sample.
Sample barcode * K E Y E N C E *
23/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
VIII. Troubleshooting I. CPU Errors If a CPU error occurs, select [Diagnostics] - [PLC diagnostics] from the menu to start the PC diagnostics monitor. Identify the error that has occurred, and solve the problem according to the Mitsubishi Electric Q Series documentation.
II. Communication Unit Errors If an error occurs in the communication unit, select [Diagnostics] [System Monitor] to start the system monitor. The color of a unit on which an error occurs depends on the error status. Click the unit on which an error has occurred, to display detailed unit information. Identify the error that has occurred, and solve the problem according to the Mitsubishi Electric Q Series documentation.
24/25
【KEYENCE CODE-READER】 【Mitsubishi Electric Q Series】 Connection Guide
III. Control Command Execution Errors A command in the above sample program did not normally terminate.
i
After open command execution, an M103 (abnormal open command termination) error occurred. Check D101 (open command completion status), and solve the problem according to the Mitsubishi Electric Q Series documentation.
ii
After close command execution, an M203 (abnormal close command termination) error occurred. Check D201 (close command completion status), and solve the problem according to the Mitsubishi Electric Q Series documentation.
iii After transmission command execution, an M303 or M403 (abnormal transmission command termination) error occurred. Check D3001 and D4001 (transmission command completion status), and solve the problem according to the Mitsubishi Electric Q Series documentation. iv After reception command execution, an M503 (abnormal reception command termination) error occurred. Check D5001 (reception command completion status), and solve the problem according to the Mitsubishi Electric Q Series documentation.
IV. AutoID Navigator Connection Errors Initialize communication settings, and then try to make connection. For the BL-1300 series Press the test button long (for 11 seconds). As shown in the right figure, LEDs 1, 3, and 5 out of the five LEDs on the BL-1300 blink. In this condition, the BL-1300 communication settings are in as-shipped state. Baud rate
:
9600 bps
Parity
:
Even
Delimiter
:
CR
Data bits
:
7 bits
Header
:
None
Stop bit
:
1 bit
For the SR-600 series Press the test button long (for 6 seconds). As shown in the right figure, LEDs 1 and 5 out of the five LEDs on the SR-600 blink. In this condition, the SR-600 communication settings are in as-shipped state. Baud rate
:
115200 bps
Parity
:
Even
Delimiter
:
CR
Data bits
:
8 bits
Header
:
None
Stop bit
:
1 bit
Once the communication setting is initialized, you can make connection successfully by selecting the correct COM port, selecting AUTO for [Connect], and clicking [OK] to update the communication setting.
25/25 1084-1 600F04
View more...
Comments