IDEC FC4A-C10R2 User Manual page 313

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

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.
Synchronization mode
Read mode
Communication parameter
Other communication settings
Comparison preset mode
Allocation Numbers
M100
M101
M8120
D20
D21
D100
D101
Ladder Diagram
When the
MicroSmart
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.
M8120
RXD
1
M100
M101
RXD1 Data
STX
D20 B4 2
ETX
(02h)
(03h)
Data Register
Auto
Single read or multiple read
Baud rate:
Parity check:
Header:
Data echo back:
Output timing:
Data output filter: No
Sub serial:
Not used
Input to start receiving barcode data
Receive completion output for barcode data
Initialize pulse special internal relay
Store barcode data (upper 4 digits)
Store barcode data (lower 4 digits)
Receive status data register for barcode data
Receive data byte count data register
starts operation, the RXD1 instruction is executed to wait for incoming data. When data receive is
S
M100
S1
D1
D2
10
M101
D100
R
M100
S
M100
R
M101
END
End Delimiter
D20, ASCII to BCD Conversion (4 digits), Repeat: 2
Start Delimiter
« FC4A M
17: U
9600 bps
Even
02h
No
Output priority 1
No
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.
S
U
'
M
ICRO
MART
SER
S
ANUAL
C
SER
OMMUNICATION
Data bits:
Stop bit:
Terminator:
BCR data output:
Character suppress: No
Main serial input:
»
I
NSTRUCTIONS
7
1
03h
Yes
No
17-35

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents