Professional Documents
Culture Documents
A u t o - I D Te c h n i c a l G u i d e
Chapter 1 EQUIPMENT USED Use AutoID Network Navigator to configure the communication
Chapter
Base unit
Q35B
Power supply unit
Q61P-A1
2 Start AutoID Network Navigator.
USB cable
OP-51580 (2 m)*
Chapter
2 CONNECTION METHODS
SR-5000/2000/1000 QJ71E71-100
Ethernet cable
2
3 Change the settings to those of the desired fixed IP CONFIGURING MITSUBISHI
Chapter
address. 4 ELECTRIC PLC Q SERIES SETTINGS
Ethernet
In the ladder entry screen, in the "Project" menu, click "New Project."
Communication settings
Setting Value
PLC Series QCPU(Qmode)
PLC Type Q03UDE
Program type Ladder
Label setting Do not use label
3
4
Assign I/O as shown below. In the network parameters, configure the operational
settings and open settings.
In the "Project" tab, click "Parameter," and then double-click "Network
param" Then, click "Ethernet/CC IE/MELSECNET" in the dialog box
that appears.
I/O assignment
Setting Value
Type Intelli.
Model name QJ71E71-100
Points 32points
StartXY 0000
Base setting
Setting Value
Setting Value
Base model name Q35B Network type Ethernet
Power model name Q61PA1 Starting I/O No. 0000
Slots 5 Network No. 1
* You can set "StartXY" according to the location in which the unit will be installed. Group No. 1
* There is no need to configure the switch settings. Station No. 1
Mode On line
Set "Program name" to "MAIN" and select "Scan" for "Execute Type." 5 Set the parameters in the operation settings.
4
6 CREATING AND TRANSMITTING
Chapter
Set the parameters in the open settings.
5 LADDER PROGRAMS
Setting Value
Protocol TCP
Open system Active
Fixed buffer communication When F0 is set to ON,
No procedure the connection open
procedure
processing starts.
Pairing open Enable
Existence confirmation Confirm
Host station Port No. 232C (hexadecimal)
Transmission target device IP
192.168.0.1
address
Transmission target device Port No. 232C (hexadecimal)
* The port number is 9004 in decimal, so it is displayed as 232C in hexadecimal.
( SetKthemeans
T1 H timer in units of 10 ms.
a decimal constant. )
Explanation
5
Reference program (3) Program for sending the reading start Reference program (5) Program for receiving reading data
command
Explanation
Send the reading start command "LON" from the PLC to the code
reader.
Set D300 to 4 for the number of bytes to send (D301 and D302), and
then store LON[CR], the data to send, as a hexadecimal value in D301
and D302. Use the data send instruction (ZP.BUFSND) to send the
reading start command LON[CR] to the code reader.
* Enter [CR] by directly entering the bits of D302 as shown below.
Bit Explanation
DM
F E D C B A 9 8 7 6 5 4 3 2 1 0
Close processing for connection number 1.
0 0 0 0 1 1 0 1 0 1 0 0 1 1 1 0
302
[CR] (0x0D) N (0x4E) When M6000 is set to ON, the close processing starts.
Use the close processing instruction (ZP.CLOSE) to close connection
number 1.
Reference program (4) Program for sending the reading stop
command
Explanation
Send the reading stop command "LOFF" from the PLC to the
code reader. Select the files that need to be written, and then click "Execute."
Set D400 to 5 for the number of bytes to send (D401 to D403), and
Restart the PLC.
then store LOFF[CR], the data to send, as a hexadecimal value in
D401 to D403. Use the data send instruction (ZP.BUFSND) to send the * Note that the transmitted program will not be applied if you do not
reading stop command LOFF[CR] to the code reader. restart the PLC.
6
Chapter
EXECUTING LADDER PROGRAMS If the connection is opened normally, M0 (open complete signal) and
6 AND MONITORING READING DATA M20 (open request signal) will be set to ON.
Check that the connection has been opened, and then forcibly set the
Set the open instruction "F0" to ON from the ladder program to open instruction "F0" to OFF.
open the connection between the SR-5000/2000/1000 and the PLC.
Next, set the reading instruction "F1" to ON to start reading with the
SR‑5000/2000/1000. Then, check that the read data is stored in data
memory starting at "D501."
Click "Device test," select "F1," the reading instruction, for "Device,"
and then click "FORCE ON."
Enter the following settings in the device batch monitor, and then click When the data is read normally, the details of the read data are
"Start monitor." displayed as shown below.
Sample code
KEYENCE
7
Copyright (c) 2017 KEYENCE CORPORATION. All rights reserved. 193102GB 2040-2 A06GB Printed in Japan