EasyManua.ls Logo

IDEC FC6A-C16K1CE - Sample Program - User Communication RXD

IDEC FC6A-C16K1CE
252 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FC6A S
ERIES
M
ICRO
S
MART
A
LL
-
IN
-O
NE
T
YPE
C
OMMUNICATION
M
ANUAL
FC9Y-B1730 5-47
5: U
SER
C
OMMUNICATION
I
NSTRUCTIONS
Sample Program – User Communication RXD
This example demonstrates a program to receive data from a barcode reader with an RS232C port using the user communication
RXD1 (receive) instruction.
System Setup
Description of Operation
A barcode reader is used to scan barcodes of 8 numerical digits. The scanned data is sent to the FC6A Series MicroSmart through
the Serial Port 1 (RS232C) and stored to data registers. The upper 8 digits of the data are stored to data register D20 and the
lower 8 digits are stored to data register D21.
Setting User Communication Mode in WindLDR Function Area Settings
Since this example uses the Serial Port 1 (RS232C), select User Protocol for Port 1 in the Function Area Settings using WindLDR.
See "Programming WindLDR" on page 5-25.
Setting Communication Parameters
Set the communication parameters to match those of the barcode reader. See "Programming WindLDR" on page 5-25. For details
of the communication parameters of the barcode reader, see the user’s manual for the barcode reader. An example is shown
below:
To RS232C Port
To Serial Port 1 (RS232C)
Attach a proper connector to the open
end of the cable referring to the cable
connector pinouts shown below.
Communication Cable
(part no: FC6A-KC1C)
5 m (16.4 ft.)
Serial Port 1
Barcode Reader
FC6A Series MicroSmart
RJ45 Connector D-sub 25-pin Connector Pinouts
Pin Description
1 FG Frame Ground
2 TXD1 Transmit Data
3 RXD1 Receive Data
7 GND Ground
Description Pin
Color
Shield Cover
RXD Receive Data White/Orange 1
TXD Transmit Data Orange 2
DTR Equipment Ready White/Green 3
A Blue 4
B White/Blue 5
DSR Data Set Ready Green 6
NC No Connection White/Brown
7
SG Signal Ground Brown 8
Do not connect any wiring to the NC (no connection) pins; otherwise, the FC6A Series MicroSmart and the barcode reader
may not work correctly and may be damaged.
Caution
Communication Parameters:
Baud rate: 9,600 bps
Data bits: 7
Parity check: Even
Stop bits: 1

Table of Contents

Related product manuals