IDEC FT1A Series User Manual page 263

Hide thumbs Also See for FT1A Series:
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
Device Addresses
M100
M101
M8120
D20
D21
D100
D101
Ladder Diagram
When the SmartAXIS starts operation, the RXD2 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 RXD2 instruction to wait for
another incoming data.
M8120
RXD
2
M100
M101
RXD2 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:
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
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
S
AXIS P
MART
10: U
9600bps
Even
02h
No
Output priority 1
No
No
M8120 is the initialize pulse special internal relay used to set M100.
At the rising edge of M100, RXD2 is executed to be ready for receiving data.
Even after M100 is reset, RXD2 still waits for incoming data.
When data receive is complete, M101 is turned on, then M100 is set to execute RXD2 to
receive the next incoming data.
/L
U
'
M
FT9Y-B1378
RO
ITE
SER
S
ANUAL
C
SER
OMMUNICATION
Data bits:
7
Stop bit:
1
Terminator:
03h
BCR data output:
Yes
Character suppress:
No
Main serial input:
No
I
NSTRUCTIONS
10-27

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents