
5: U
SER
C
OMMUNICATION
I
NSTRUCTIONS
5-48
FC6A S
ERIES
M
ICRO
S
MART
A
LL
-
IN
-O
NE
T
YPE
C
OMMUNICATION
M
ANUAL
FC9Y-B1730
Configuring Barcode Reader
The values shown below are an example of configuring a barcode reader. For actual settings, see the user’s manual for the
barcode reader.
Device Addresses
Ladder Diagram
When the FC6A Series MicroSmart starts operation, the RXD1 instruction is executed to wait for incoming data. When data receive
is complete, the data is stored to data registers D20 and D21. The receive completion signal is used to execute the RXD1
instruction to wait for another incoming data.
RXD1 Data
Synchronization Mode
Auto
Read Mode
Single read or
multiple read
Communication Parameter
Baud rate:
Parity check:
9,600 bps
Even
Data bits:
Stop bit:
7
1
Other Communication Settings
Header:
Data echo back:
Output timing:
Data output filter:
Sub serial:
02h
No
Output priority 1
No
No
Terminator:
BCR data output:
Character suppress:
Main serial input:
03h
Yes
No
No
Comparison Preset Mode
Not used
M100
Input to start receiving barcode data
M101
Receive completion output for barcode data
M8120
Initialize pulse special internal relay
D20
Store barcode data (upper 4 digits)
D21
Store barcode data (lower 4 digits)
D100
Receive status data register for barcode data
D101
Receive data byte count data register
M8120
END
S1
10
D2
D100
D1
M101
M101
RXD
1
M100
M100
S
M100
R
M101
R
M100
S
M8120 is the initialize pulse special internal relay used to set M100.
At the rising edge of M100, RXD1 is executed to be ready for receiving data.
Even after M100 is reset, RXD1 still waits for incoming data.
When data receive is complete, M101 is turned on, then M100 is set to execute RXD1 to
receive the next incoming data.
STX
(02h)
ETX
(03h)
Data Register
D20 B4 2
End Delimiter
D20, ASCII to BCD conversion (4 digits), Repeat: 2
Start Delimiter