
FC6A S
ERIES
M
ICRO
S
MART
A
LL
-
IN
-O
NE
T
YPE
C
OMMUNICATION
M
ANUAL
FC9Y-B1730
5-45
5: U
SER
C
OMMUNICATION
I
NSTRUCTIONS
Sample Program – User Communication TXD
This example demonstrates a program to send data to a printer using the user communication TXD1 (transmit) instruction.
System Setup
Cable Connection and Pinouts
The name of BUSY terminal differs depending on printers, such as DTR. The function of this terminal is to send a signal to remote
equipment whether the printer is ready to print data or not. Since the operation of this signal may differ depending on printers,
confirm the operation before connecting the cable.
The FC6A Series MicroSmart monitors the DSR signal to prevent the receive buffer of the printer from overflowing. For the DSR
signal, see "DSR Input Control Signal Option D8105" on page 5-33.
To Serial Port 1 (RS232C)
Serial Port 1
Printer
To RS232C Port
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.) long
FC6A Series MicroSmart
Description
Pin
Color
Pin
Description
Shield
—
Cover
1
NC
No Connection
Shield
RXD Receive
Data
White/Orange
2
1
NC
No Connection
TXD Transmit
Data Orange
3
2
DATA
Receive Data
DTR Equipment
Ready
White/Green
4
3
NC
No Connection
A
Blue
5
4
SG Signal
Ground
B
White/Blue
6
5
NC
No Connection
DSR
Data Set Ready
Green
7
6
NC
No Connection
NC No
Connection White/Brown
8
7
BUSY
Busy Signal
SG Signal
Ground Brown
9
8
NC
No Connection
Do not connect any wiring to the NC (no connection) pins; otherwise, the FC6A Series MicroSmart and the printer may not
work correctly and may be damaged.
Caution
Description of Operation
Printout Example
The data of counter C2 and data register D30 are printed every minute. A printout
example is shown on the right.
Programming Special Data Register
Special data register D8105 is used to monitor the BUSY signal and to control the
transmission of print data.
Special DR
Value
Description
D8105
3
(011)
While DSR is on (not busy), the FC6A Series MicroSmart sends data.
While DSR is off (busy), the FC6A Series MicroSmart stops data
transmission.
If the off duration exceeds a limit (approx. 5 s), a transmission busy
timeout error will occur, and the remaining data is not sent. The
transmit status data register stores an error code. See "User
Communication Error" on page 5-43.
--- PRINT TEST ---
11H 00M
CNT2...0050
D030...3854
--- PRINT TEST ---
11H 01M
CNT2...0110
D030...2124