IDEC WB1F Series User manual

B-1780(0)
WB1F Fix Linear CCD Scanner
PLC Connection
User’s Manual

i
Introduction
Attention
zIDEC Corporation holds all rights related to this manual. Unauthorized duplication, reproduction, sales, transfers, or leas-
ing without the express consent of IDEC is prohibited.
zInformation contained in this manual may be changed or updated without notice.
zEvery eort has been made to ensure the accuracy of the information contained in this manual. However, if you do note
any errors or inconsistencies please contact the dealer from which you purchased the product or an IDEC sales repre-
sentative.
Trademarks
MELSEC, GX Works 3, GX Works2 and GX Developer are registered trademarks of Mitsubishi Electric Corporation.
Graphic Symbol Glossary
This manual uses the following graphic symbols to simplify explanations:
Notes
Graphic Symbol Description
WarningWarning
Failure to operate the product in accordance with the information provided may result in severe per-
sonal injury or death.
CautionCaution
Failure to operate the product in accordance with the information provided may result in personal
injury or damage to equipment.
Notes information that should be carefully noted. Failure to operate the product in accordance with
the information provided may aect the appearance and performance of the main unit as well as any
peripheral devices.
Denotes additional information that may prove useful for using a given function.

3 Setting and Wiring 4 Menu Sheet1 Overview 2 Operation Specications
ii
Introduction
Related manuals
Manuals related to the WB1F are as follows. Refer to them together with this manual.
All related manuals are available for download from our website.
Type Manual name Details
B-1780
WB1F Fix Linear CCD Scanner
PLC Connection
User’s Manual (this manual)
Explains about PLC Connection.
B-1741 Instruction Sheet WB1F series Included with the product.
B-1775 WB1F Fix Linear CCD Scanner
User’s Manual
Explains an overview and functions of the WB1F, plus basic
operating methods.
B-1768 WB1F Fix Linear CCD Scanner
Support Tool User's Manual
Included with the support tool.
Explains about support tool.
B-1782 WB1F Fix Linear CCD Scanner
Menu Sheet Explains about menu sheet.

iii
Introduction i
Attention..............................................................................................................................................................i
Trademarks..........................................................................................................................................................i
Graphic Symbol Glossary ...............................................................................................................................i
Notes........................................................................................................................................................................................i
Related manuals...............................................................................................................................................ii
Contents iii
1
Overview 1-1
1. 1 PLC connection..............................................................................................................................1-1
1. 2 Limitation.........................................................................................................................................1-2
1. 3 Applicable Models........................................................................................................................1-2
1. 4 Applicable PLC ...............................................................................................................................1-2
1. 5 Setting Parameters (WB1F)........................................................................................................1-3
2
Operation Specications 2-1
2. 1 Overview..........................................................................................................................................2-1
2. 2 Assigning Data Memory .............................................................................................................2-1
2. 3 Special Area.....................................................................................................................................2-2
2. 4 Scanner Information Area..........................................................................................................2-4
2. 5 Start and End..................................................................................................................................2-6
2. 6 Operation Sequence....................................................................................................................2-7
Contents

3 Setting and Wiring 4 Menu Sheet1 Overview 2 Operation Specications
iv
Contents
3
Setting and Wiring 3-1
3. 1 Connection to PLC........................................................................................................................3-1
3. 2 MC Protocol Connection ............................................................................................................3-2
3. 2. 1 Overview...................................................................................................................................................... 3-2
3. 2. 2 WB1F Setting examples.......................................................................................................................... 3-2
3. 2. 3 PLC Setting example................................................................................................................................ 3-4
3. 2. 4 Wiring example ......................................................................................................................................... 3-5
4
Menu Sheet 4-1
1. RS-232 settings ..............................................................................................................................4-1
2. PLC Connection .............................................................................................................................4-4
3. Hexadecimal input .................................................................................................................... 4-11
Index A-1
Revision history A-2

1-1
1
Overview
This chapter describes gives an overview, limitations, applicable models, applicable PLCs, and setting parameters of the
PLC connection.
1. 1 PLC connection
The PLC connection is a device in which the read result of barcodes is directly written to the data memory of a PLC (Pro-
grammable Logic Controller).
The WB1F supports the PLC communication protocol, and there is no need to create a specic communication program
in the PLC.
Data
memory
Data
memory
Programs
PLC
PLC communication
protocol
Request Setting
Acquisition
Monitoring
Respond
Request
Data writing
Respond
What is data memory?
It is the general storage area incorporated in PLC, allowing read and write.
The data exchange between the WB1F and PLC uses data memory.
The name and size corresponding to the data memory depends on the PLC.
For details, refer to F[3 Setting and Wiring] on page 3-1.

3 Setting and Wiring 4 Menu Sheet1 Overview 2 Operation Specications
1-2
Limitation
1. 2 Limitation
Follow the limiations below when using the PLC connection.
zReading operation is available only at single read.
zOperation button, external trigger input and control commands cannot be used to make read requests.
zThe installation assistant function and analysis function are not available.
zReading and editing of the setting values is not available.
zNot compatible with menu sheets.
1. 3 Applicable Models
The WB1F that supports the function is as follows:
Model Version of main application Remarks
WB1F-100S1B A-002.010.00 and higher Only supports WB1F model RS-232 type.
Does not support USB type.
1. 4 Applicable PLC
The function is supported by the following PLCs:
Manufacturer Series Model Connection
method Protocol
Mitsubishi
Electric
MELSEC iQ-R RJ71C24*1
RS-232 MC protocol
(Model 4, 4C frame, with Checksum)
RJ71C24N-R2
MELSEC iQ-F FX5-232-BD*1
FX5-232ADP*1
MELSEC Q QJ71C24N*1
QJ71C24N-R2
MELSEC L LJ71C24
LJ71C24-R2*1
*1 In IDEC, the operation check is performed by these models.
For the other models, please perform the operation check at the customer’s side before use.

3 Setting and Wiring 4 Menu Sheet1 Overview 2 Operation Specications
1-3
Setting Parameters (WB1F)
1. 5 Setting Parameters (WB1F)
The setting parameters and setting values necessary for the PLC connection are as follows:
Adjust the setting according to the using environment.
zAll the settings of the WB1F should be performed before using the PLC connection.
zWhen the device of setting the WB1F (as PC) is dierent from the device to be connected through the PLC
connection, prepare a cable supporting both devices.
zDo not access or change any settings that are not listed here.
zDo not access or change any settings in reserved areas.
zWhen the setting values have been changed, save the setting value by “Save Set Values”on the control com-
mand.
Turning OFF the power, resetting, or changing the operation mode without performing “Save Set Values”will
return to the setting value that existed before change.
When conguring settings that specify ASCII code for the setting value, be aware of the following points.
zNUL (00H) cannot be used as a setting value.
zThe characters up to the rst NUL (00H) are considered the data and any data after that is not valid.
Setting value (hex) of bold face is default value (Setting at the time of factory shipments).
Item Sub item Address
(hex)
Size
(dec)
Default
(hex)
Setting value
(hex) Remarks
RS-232 setting
Communication
speed 0100 1 03
00 : 1,200bps
01 : 2,400bps
02 : 4,800bps
03 : 9,600bps
04 : 19,200bps
05 : 38,400bps
06 : 57,600bps
07 : 115,200bps
0a : 600bps
After saving, the settings are
reected when the power is
turned on, the WB1F is reset,
or the operation mode is
changed.
Data length 0101 1 01 00 : 7bits
01 : 8bits
Parity 0102 1 01
00 : NONE
01 : EVEN
02 : ODD
Stop bits 0103 1 00 00 : 1bit
01 : 2bits
Flow control 0104 1 00 00 : NONE
01 : CTS/RTS
PLC
Connection
Function enabled 06C0 1 00 00 : Disabled
01 : Enabled
If enabled, it will begin
the process to establish a
connection with connected
external devices at start up.
New settings will be reected
after saving and resetting the
device.
Protocol Select 06C1 1 00 00 : MC Protocol Format
4 4C (Q,L Series)
Select the communication
protocol of the external device
that is to be connected to the
WB1F.
Monitoring cycle 06C2 1 0A 01 - FF : Setting Value × 10ms
(10ms to 2,550ms)
Congure the monitoring
interval for the special area.
Timeout 06C3 1 14 01 - FF :
Setting Value × 100ms
(100ms to 25,500ms)
Configures response timeout
from a PLC.

3 Setting and Wiring 4 Menu Sheet1 Overview 2 Operation Specications
1-4
Setting Parameters (WB1F)
Item Sub item Address
(hex)
Size
(dec)
Default
(hex)
Setting value
(hex) Remarks
PLC
Connection
Retry Count 06C4 1 05 01 - FF : Times Sets the number of command
retransmissions to a PLC.
Barcodel data
storage endian 06C5 1 00 00 : Lower→Upper
01 : Upper→Lower
To congure the order of
stockeddata in data memory of
PLC.
Reserved 06C6-06C7 1 - -
Special Area Start
Address
06C8
4
00
00000000 - FFFFFFFF :
Special Area Start
Address
When conguring the settings
ensure that the special area
and the scanner information
area do not overlap. The special
area requires 4 words (8 bytes)
of data memory.
06C9 00
06CA 00
06CB 00
Scanner Information
Area Start Address
06CC
4
10 00000000 - FFFFFFFF :
Scanner Information
Area Start Address
06CD 00
06CE 00
06CF 00
Reserved 06D0-06DF 16 - -
Protocol
Parameter [0]
06E0 2 0000 0000 - FFFF :
Protocol Parameter
The meaning of the setting
depends on each protocol
selected.
For details, refer to F[3
Setting and Wiring] on page
3-1.
06E1
Protocol
Parameter [1]
06E2 2 0000 0000 - FFFF :
Protocol Parameter
06E3
Protocol
Parameter [2]
06E4 2 0000 0000 - FFFF :
Protocol Parameter
06E5
Protocol
Parameter [3]
06E6 2 0000 0000 - FFFF :
Protocol Parameter
06E7
Protocol
Parameter [4]
06E8 2 0000 0000 - FFFF :
Protocol Parameter
06E9
Protocol
Parameter [5]
06EA 2 0000 0000 - FFFF :
Protocol Parameter
06EB
Protocol
Parameter [6]
06EC 2 0000 0000 - FFFF :
Protocol parameter
06ED
Protocol
Parameter [7]
06EE 2 0000 0000 - FFFF :
Protocol Parameter
06EF
Protocol
Parameter [8]
06F0 2 0000 0000 - FFFF :
Protocol Parameter
06F1
Protocol
Parameter [9]
06F2 2 0000 0000 - FFFF :
Protocol Parameter
06F3
Protocol
Parameter [10]
06F4 2 0000 0000 - FFFF :
Protocol Parameter
06F5
Protocol
Parameter [11]
06F6 2 0000 0000 - FFFF :
Protocol parameter
06F7
Protocol
Parameter [12]
06F8 2 0000 0000 - FFFF :
Protocol Parameter
06F9
Protocol
Parameter [13]
06FA 2 0000 0000 - FFFF :
Protocol Parameter
06FB
Protocol
Parameter [14]
06FC 2 0000 0000 - FFFF :
Protocol Parameter
06FD
Protocol
Parameter [15]
06FE 2 0000 0000 - FFFF :
Protocol Parameter
06FF

2-1
2
Operation Specications
This chapter describes the operation specication of the PLC connection.
2. 1 Overview
The WB1F periodically reads the PLC data memory. When the data memory which is being read has any change, the func-
tion assigned to the data memory is performed.
This mechanism allows to perform each function of the WB1F only by setting the data memory of PLC to the specied
value.
2. 2 Assigning Data Memory
The WB1F performs reading and writing to the “Special area” and the “Scanner Information Area” assigned to the PLC data
memory. When using this function, set where to assign these two areas in the data memory. For details of the setting, refer
to F[1. 5 Setting Parameters (WB1F)] on page 1-3.

3 Setting and Wiring 4 Menu Sheet1 Overview 2 Operation Specications
2-2
Special Area
2. 3 Special Area
With the special memory area starting address as a header, the following functions shown in the table below are assigned
to the data memory.By setting the corresponding bit of the correspoding address to “1”, each function can be performed.
The WB1F performs the requested function, and then performs zero clear of the special area.
The zero clear after the function is executed targets not only the corresponding bit of the corresponding address, but the
special area entirely.
Address
(OFFSET) bit Function Contents
0
0 PLC Connection end Ends the PLC Connection.
1 - 7 Reserved
8 Start barcode reading Starts barcode reading
9 Stop barcode reading Stops barcode reading.
10 - 15 Reserved
1
0 OK Output OFF Stops the OK Output.
1 OK Output ON Starts the OK Output (the operation logic and operation time
follows the setting value.)
2 NG Output OFF Stops the NG Output.
3 NG Output ON Starts the NG Output (the operation logic and operation time
follows the setting value.)
4PWM Output OFF
(When successful settings) Stops the PWM Output.
5PWM Output ON
(When successful settings)
Starts the PWM Output. (Frequency, duration, and duty follow
the setting values.)
6PWM Output OFF
(When failure settings) Stops the PWM Output.
7PWM Output ON
(When failure settings)
Starts the PWM Output. (Frequency, duration, and duty follow
the setting values.)
8 Indicator LED (Red) OFF Sets the Indicator LED (Red) to the OFF state.
9 Indicator LED (Red) ON Sets the Indicator LED (Red) to the ON state (the lighting pat-
tern and the lighting time follows the setting value.)
10 Indicator LED (Orange) OFF Sets the Indicator LED (Orange) to OFF state.
11 Indicator LED (Orange) ON Sets the Indicator LED (Orange) to ON state (the lighting pat-
tern and the lighting time follows the setting value.)
12 Indicator LED (Green) OFF Sets the Indicator LED (Green) to OFF state.
13 Indicator LED (Green) ON Sets the Indicator LED (Green) to ON state (the lighting pattern
and the lighting time follows the setting value.)
14 Reserved
15 Reserved
2 0-15 Reserved
3 0-15 Reserved

3 Setting and Wiring 4 Menu Sheet1 Overview 2 Operation Specications
2-3
Special Area
When multiple bits are set to 1 at the same time, the lowest one is preferably executed for both address and bit. The other
functions are ignored.
e.g. When the following thee bits are set to 1 at the same time:
z[Bit 8 of Address 0]
z[Bit 9 of Address 0]
z[Bit 0 of Address 1]
The function only assigned to Bit 8 of Address 0 is executed.
e.g. When the following three bits are set to 1 at the same time:
z[Bit 0 of Address 0]
z[Bit 9 of Address 0]
z[Bit 0 of Address 1]
The function only assigned to Bit 0 of Address 0 is executed.

3 Setting and Wiring 4 Menu Sheet1 Overview 2 Operation Specications
2-4
Scanner Information Area
2. 4 Scanner Information Area
With the scanner information area starting address as a header, the functions shown in the table below are assigned to
the data memory of PLC.The WB1F writes the barcode data and the data length in the scanner information area.
Address
(OFFSET) bit Function Contents
0 0 - 15 Data length Writes the data length of the barcode data.
10 - 7 Data [0]
Writes the read barcode data.
The storage order of the barcode data follows the setting val-
ues.
8 - 15 Data [1]
20 - 7 Data [2]
8 - 15 Data [3]
30 - 7 Data [4]
8 - 15 Data [5]
•
•
•
•
•
•
•
•
•
The barcode data quantity is variable. Assure an adequate area of expected data length or more.

3 Setting and Wiring 4 Menu Sheet1 Overview 2 Operation Specications
2-5
Scanner Information Area
e.g. Storage example to the scanner information area
The below shows an example of storing data into the scanner information area.
The setting of the barcode data storage order can change the storage order to the data memory.
[Condition]
Scanner information area starting address: 100
Data memory Data length: 16 bits
Barcode data: “ABCDEFGHI[CR][LF]”11 bytes
Position 012345678910
ASCII A B C D E F G H I [CR] [LF]
HEX 41H 42H 43H 44H 45H 46H 47H 48H 49H 0DH 0AH
z[Storing image] (Barcode data storing order: Lower→Upper)
Address Upper byte Lower byte Remarks
100 000BH <- Number of barcode data: 11 bytes
101 42H 41H <- Stored in the order of lower byte and upper byte.
102 44H 43H
103 46H 45H
104 48H 47H
105 0DH 49H
106 00H 0AH <- The upper byte is padded with 00H .
z[Storage image] (barcode data storage order:Upper→Lower
Address Upper byte Lower byte Remarks
100 000BH <- Number of barcode data: 11 bytes
101 41H 42H <- Stored in the order of upper byte and lower byte.
102 43H 44H
103 45H 46H
104 47H 48H
105 49H 0DH
106 0AH 00H <- The lower byte is padded with 00H.

3 Setting and Wiring 4 Menu Sheet1 Overview 2 Operation Specications
2-6
Start and End
2. 5 Start and End
The PLC connection can be started and ended in the following conditions:
Start condition
With Address “06C0 (PLC connection – function Enabled) in the setting parameter of the WB1F set and stored to ”01 (En-
able), turn the power from OFF to ON.
When the start condition is established, the Indicator LED (Green) starts ashing.
After blinking stops, the PLC connection starts.
End condition
zDepress the Operation button of the WB1F for 5 seconds.
zSet the PLC Connection End Bit in the Special Area of the PLC data memory to “1”.
When the end condition is established, the Indicator LED (Red) starts blinking.
After blinking stops, the PLC connection ends.

3 Setting and Wiring 4 Menu Sheet1 Overview 2 Operation Specications
2-7
Operation Sequence
2. 6 Operation Sequence
The WB1F repeatedly performs the following four operations:
1 When barcode reading is completed, the writing of barcode data to the scanner information area is performed.
2 When the execution of the requested function is completed, the zero clear of the special area is performed.
3 When the bit in the special area is 1, and there is a request of function execution, the assigned function is per-
formed.
4 If the above 1 to 3 is not applicable, reading of the special area is performed.
1. 2. 3. 4.
NO
YES
NO
YES
NO
YES
Start
Read area
Write execution
Symbol
Read
complete ?
Special area
Write execution
(the zero clear)
Requested
function
complete ?
Scanner
function
execution
Function
execution
requested ?
Special area
Read execution
When creating a PLC program, note the following:
(1) After checking that the special area is all “0”, make the bit in the special area to ”1”.
(On the PLC program, even when the dierent bit is 1 in the dierent timing, it is regarded that plural bits
are set to 1 at the same time depending on the communication timing.)
(2) Before requesting to start reading the barcode, perform zero clear for the scanner information area (data
length).
(3) If the connection between the WB1F and PLC cannot be established after the specied times of retry, the
process is transferred to the “Special Area Read”.
(4) When the bit in the special area is “1” when the communication is restored, the corresponding function is
performed.
(Even for the function requested by the PLC program before the communication was unsuccessful, when
the bit in the special area is “1” when the communication is established, the function is performed.)

3 Setting and Wiring 4 Menu Sheet1 Overview 2 Operation Specications
2-8
Operation Sequence
e.g. PLC program and access to the data memory of WB1F
WB1F
PLC
Program
Special area: Zero check
Scanner information area:
Data length Zero clear
Data memory write
Data memory read
Scanner information area:
Data length check
Special area:
Barcode read start bit ON
Barcode
Read start
process
Barcode
Read process
(Read result
creation)
Barcode
Process at read
completion
Special area:
bit ON check
Special area: Zero clear
Scanner information area:
Data length, Data writing
Data memory

3-1
3
Setting and Wiring
This chapter describes the connection between the WB1F and PLC.
3. 1 Connection to PLC
To use the PLC connection function, congure the WB1F model and the PLC; then, connect the WB1F model and PLC
communication interfaces.
Communication interface
zTo nd the WB1F model, main unit and PLC interface specications, please refer to the respective user's man-
uals for each.
zPlease refer to the PLC manual for more information about PLC conguration.

3 Setting and Wiring 4 Menu Sheet1 Overview 2 Operation Specications
3-2
MC Protocol Connection
3. 2 MC Protocol Connection
3. 2. 1 Overview
The MC protocol performs data sending/receiving between the WB1F and the MELSEC sequencer.
The MC protocol is the abbreviation of “MELSEC Communication Protocol,” which is the communication protocol for the
MELSEC sequencer allowing the sequencer to communicate with external devices (such as the WB1F)
The WB1F can send/receive the data to/from the MC protocol supporting devices in the following conditions:
Protocol Format 4, 4C frame, Check sum
Series supported *1 MELSEC iQ-R/iQ-F/Q/L series
Connection method RS-232
Data memory Data register
*1 For the details of supporting devices, refer to F[1. 4 Applicable PLC] on page 1-2.
3. 2. 2 WB1F Setting examples
To perform the data send/receive with the MELSEC sequencer, the setting of the RS-232 of the WB1F as well as the PLC
connection is necessary.
When selecting the MC protocol, the protocol parameters [0]to [15] means the following setting respecitvely.
Protocol Parameter [0] Station No.
Protocol Parameter [1] Network No.
Protocol Parameter [2] PC No.
Protocol Parameter [3] I/O No. of the unit requested
Protocol Parameter [4] Station No. of the unit requested
Protocol Parameter [5] Local station No.
Protocol Parameter [6] to [15] Not used

3 Setting and Wiring 4 Menu Sheet1 Overview 2 Operation Specications
3-3
MC Protocol Connection
Here describes the setting examples of the WB1F:
Item Sub Item MC protocol
Parameter
Address
(hex)
Size
(dec)
Setting
example
(hex)
Remarks
RS-232
settings
Communication speed 0100 103 03 : 9,600bps
Data length 0101 101 01 : 8bits
Parity 0102 101 01 : EVEN
Stop bits 0103 100 00 : 1bit
Flow control 0104 100 00 : NONE
PLC Con-
nection
Function enabled 06C0 101 01 : Enabled
Protocol Select 06C1 100 00 : MC Protocol Format4 4C(Q,L Series)
Monitoring cycle 06C2 10A 0A : 10 × 10ms (100ms)
Timeout 06C3 114 14 : 20 × 100ms (2,000ms)
Retry Count 06C4 105 05 : 5 times
Barcode data storage endian 06C5 100 00 : Lower→Upper
Special Area Start Address
06C8
4
00
00000000 : D00000
06C9 00
06CA 00
06CB 00
Scanner Information Area
Start Address
06CC
4
10
00000010 : D000016
06CD 00
06CE 00
06CF 00
Protocol
Parameter [0] Station No. 06E0 20000 0000 : Station No. 0
06E1
Protocol
Parameter [1] Network No. 06E2 20000 0000 : Network No. 00
06E3
Protocol
Parameter [2] PC No. 06E4 200FF 00FF : PC No. FF
06E5
Protocol
Parameter [3]
I/O No. of the unit
requested
06E6 203FF 03FF : I/O No. of the unit requested 03FF
06E7
Protocol
Parameter [4]
Station No. of the
unit requested
06E8 20000 0000 : Station No. of the unit requested 00
06E9
Protocol
Parameter [5] Local station No. 06EA 20000 0000 : Local station No. 00
06EB
The protocol parameter with the MC protocol set means that the parameter is named with the name of MC
protocol component.
Other manuals for WB1F Series
1
This manual suits for next models
2
Table of contents
Other IDEC Barcode Reader manuals