10: U
SER
C
OMMUNICATION
I
NSTRUCTIONS
10-26
S
MART
AXIS P
RO
/ L
ITE
U
SER
'
S
M
ANUAL
FT9Y-B1378
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
RXD2 (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 SmartAXIS through the RS232C
port 2 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 RS232C port 2, select User Protocol for Port 2 in the Function Area Settings using WindLDR. See
"Programming WindLDR" on page 10-4.
Setting Communication Parameters
Set the communication parameters to match those of the barcode reader. See "Programming WindLDR" on page 10-4. 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 Port 2 (RS232C)
RS232C Communication
Cartridge
FT1A-KP1C
Barcode Reader
IDEC DATALOGIC
DS4600A
Attach a proper connector to the open
end of the cable referring to the cable
connector pinouts shown below.
User Communication Cable
FC2A-KP1C
2.4m (7.87 ft.) long
Mini DIN Connector Pinouts
D-sub 25-pin Connector Pinouts
Description
Color
Pin
Pin
Description
Shield
—
Cover
1
FG
Frame Ground
NC
No Connection
Black
2
1
TXD1
Transmit Data
NC
No Connection
Yellow
3
2
RXD1
Receive Data
TXD
Transmit Data
Blue
7
3
GND
Ground
RXD
Receive Data
Green
4
NC
No Connection
Brown
5
NC
No Connection
Gray
6
SG
Signal Ground
Red
7
NC
No Connection
White
8
Do not connect any wiring to the NC (no connection) pins; otherwise, the SmartAXIS and the barcode reader may not
work correctly and may be damaged.
Caution
Communication Parameters:
Baud rate:
9600bps
Data bits:
7
Parity check:
Even
Stop bits:
1
Summary of Contents for SmartAXIS FT9Z-1A01
Page 1: ...FT9Y B1378 7...
Page 10: ...TABLE OF CONTENTS Preface 9 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378...
Page 212: ...7 DEVICE ADDRESSES 7 16 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378...
Page 230: ...8 INSTRUCTIONS FUNCTION BLOCKS REFERENCE 8 18 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378...
Page 344: ...13 SCRIPTS 13 36 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378...
Page 386: ...APPENDIX Appendix 16 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 Japanese Font JIS X0201...
Page 393: ......