Sample Program - User Communication Rxd - IDEC FC6A-C16K1CE Communications Manual

Fc6a series microsmart all-in-one type
Hide thumbs Also See for FC6A-C16K1CE:
Table of Contents

Advertisement

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
FC6A Series MicroSmart
Serial Port 1
RJ45 Connector
Description
Shield
RXD
Receive Data
TXD
Transmit Data
DTR
Equipment Ready
A
B
DSR
Data Set Ready
NC
No Connection
SG
Signal Ground
Do not connect any wiring to the NC (no connection) pins; otherwise, the FC6A Series MicroSmart and the barcode reader
Caution
may not work correctly and may be damaged.
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:
Communication Parameters:
Baud rate:
9,600 bps
Data bits:
7
Parity check:
Even
Stop bits:
1
To Serial Port 1 (RS232C)
Pin
Color
Cover
White/Orange
1
Orange
2
White/Green
3
Blue
4
White/Blue
5
Green
6
White/Brown
7
Brown
8
FC6A S
M
S
A
ERIES
ICRO
MART
LL
5: U
Communication Cable
(part no: FC6A-KC1C)
5 m (16.4 ft.)
Attach a proper connector to the open
end of the cable referring to the cable
connector pinouts shown below.
-
-O
T
C
IN
NE
YPE
OMMUNICATION
C
SER
OMMUNICATION
To RS232C Port
D-sub 25-pin Connector Pinouts
Pin
Description
1
FG
2
TXD1
3
RXD1
7
GND
M
FC9Y-B1730
ANUAL
I
NSTRUCTIONS
Barcode Reader
Frame Ground
Transmit Data
Receive Data
Ground
5-47

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents