Sample Program - User Communication Txd - 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 TXD
This example demonstrates a program to send data to a printer using the user communication TXD1 (transmit) instruction.
System Setup
FC6A Series MicroSmart
Serial Port 1
Description
Shield
RXD
Receive Data
TXD
Transmit Data
DTR
Equipment Ready
A
B
DSR
Data Set Ready
NC
No Connection
SG
Signal Ground
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.
Do not connect any wiring to the NC (no connection) pins; otherwise, the FC6A Series MicroSmart and the printer may not
Caution
work correctly and may be damaged.
Description of Operation
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
3
D8105
(011)
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)
Pin
Color
Cover
White/Orange
1
Orange
2
White/Green
3
Blue
4
White/Blue
5
Green
6
White/Brown
7
Brown
8
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.
FC6A S
M
S
A
ERIES
ICRO
MART
LL
Communication Cable
(part no.: FC6A-KC1C)
5 m (16.4 ft.) long
Attach a proper connector to the open
end of the cable referring to the cable
connector pinouts shown below.
Cable Connection and Pinouts
Description
-
-O
T
C
IN
NE
YPE
OMMUNICATION
5: U
C
SER
OMMUNICATION
To RS232C Port
Pin
Shield
1
NC
2
NC
3
DATA
4
NC
5
SG
6
NC
7
NC
8
BUSY
9
NC
Printout Example
--- PRINT TEST ---
11H 00M
CNT2...0050
D030...3854
--- PRINT TEST ---
11H 01M
CNT2...0110
D030...2124
M
FC9Y-B1730
ANUAL
I
NSTRUCTIONS
Printer
Description
No Connection
No Connection
Receive Data
No Connection
Signal Ground
No Connection
No Connection
Busy Signal
No Connection
5-45

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents