The text of a manual · part 3 of 4
Citizen User's Manual Dot Matrix Printer Model iDP-562, pages 19 to 27
Pages 19 to 27 of 35
The original document is the PDF (275 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Citizen iDP562
Page 19
iDP-562 User’s Manual
5.6 DATA Construction 5.6.1 Serial Data format
1. Start BIT 2. DATA BIT (+ Parity BIT) 3. Stop BIT (1 ~ 2 BIT) (1) START BIT At 1 / 2 BIT after (a), signal level is checked out, (b). When signal level is MARK, continuous search for START BIT is made for the next bit. (2) DATA BIT + PARITY BIT DATA BIT and PARITY BIT are checked out every 1 / 2 BIT from the half point of START BIT, (b). Signal level of these points (MARK = 1, SPACE = 0) are read as input DATA. The sequence of these BIT is BIT 0, BIT 1 ~ PARITY BIT from START BIT. (3) STOP BIT STOP BIT is 1 or 2 BIT and its signal level is MARK. If SPACE LEVEL is read at STOP BIT, FRAMING ERROR occurs.
CITIZEN
19
Page 20
iDP-562 User’s Manual
5.6.2. Detection System for Error The printer detects PARITY and FRAMING ERROR. ALARM (ALM) LAMP informs the user error occurrence. When any error is detected, the printer deletes the wrong DATA and waits for new DATA, ALM LAMP can be put out by depressing SEL switch. Framing Error Framing error occurs when SPACE signal is checked out at STOP BIT. ALM LAMP informs the user this error and the wrong data is neglected by the printer. Parity Error Parity check function works only when the user designates it. ALM LAMP informs you this error. The wrong data is neglected by the printer. Other Errors When any trouble is found out at the printer, ALM LAMP informs the user this error. In this case, FAULT signal is SPACE, DTR signal is BUSY and the machine becomes deselect condition. ALARM condition will be released by depressing SEL Switch after removing the trouble at the printer. The machine is now SELECT condition and starts to input DATA.
5.6.3. Input Control and Buffering DATA receipt is controlled by each character. In case the connected computer neglects this regulation and transfers DATA during BUSY, “OVER RUN ERROR” occurs. To avoid this error, DATA should be transferred after confirming the printer is at “READY”. However, if the connected computer has double buffer system, the printer can accept up to 2 words. (1) Input Control to Signal Buffer BUSY signal is SPACE when the printer is ready to accept DATA (signal level of BUSY can be changed by H / W) After receiving START BIT from the computer, (1 / 2 START BIT), BUSY signal becomes MARK level.
CITIZEN
20
Page 21
iDP-562 User’s Manual
(2) Input Control for Double Buffer
Double buffer transfer is made as follows. 1. The computer transfers 1st and 2nd BYTE of DATA after checking READY condition. 2. The printer continues BUSY condition for receiving 2nd BYTE of DATA. 3. The computer transfers 3rd BYTE of DATA after checking READY condition.
The printer expects Double Buffer transfer at the first stage. Therefore, after completion of 1st BYTE of DATA reception, the printer waits for 2nd BYTE of DATA. The printer recognizes Single Buffer transfer for the absence of START BIT after 1 ~ 2 STOP BIT.
CITIZEN
21
Page 22
iDP-562 User’s Manual
6. Parallel Interface 6.1 Description on Input / Output Signals (a) Input signals to printer O DATA 1 …. 8 bit parallel input Data Signal, Logic “1” represent HIGH level. DATA 2 DATA 3 DATA 4 DATA 5 DATA 6 DATA 7 DATA 8 O STB ……. This is a strobe for reading-in the data signal. This signal is normally HIGH. The data signal is clocked-in when STB is made LOW by the host computer. (b) Output signals from printer O ACK ……. The printer transmits this signal to the host computer after it has received and processed input data and performed any function commands. This signal indicates that the printer is ready to receive additional data or function codes. This signal is normally HIGH. This is activated when signal is LOW. The printer will not transmit this signal when DC3 code is received under SELECT state. O BUSY …… This is an output signal from the printer. When the printer is BUSY state, the signal is HIGH. O FAULT …. This is an output signal from the printer indicating printer FAULT state. The signal is LOW during a ALARM state. Conditions of Alarm (1) If home position is not detected within the stipulated period. (2) If clock pulse is not detected within the stipulated period. O SLCT …… This is an output signal from the printer indicating whether the printer is in a SELECT or DESELECT state. The signal is HIGH under the printer is ON-LINE state. The signal is LOW under the printer is OFF-LINE state
CITIZEN
22
Page 23
iDP-562 User’s Manual
6.2 Setting the Dip Switch IDP562CNL / CN has Dip Switch with which you can select the followings to meet your computer’s function. Selection of “CR” and “LF” code function. Please refer to the table below. DSW-1 CR and LF code are valid function. *OFF CR code is selected by the DSW-2 and 3.
ON
CR code is ignored LF code is valid. LF code is selected by the DSW-2 and 3.
DSW-2 When CR code comes immediately after full buffer printing
DSW-3 When the buffer is blank.
*OFF CR code is void ON CR code is valid When LF code comes immediately after full buffer printing
*OFF CR code is valid ON CR code is void When the buffer is blank.
*OFF LF code is void *OFF LF code is valid ON LF code is valid ON LF code is void It is recommended to set the DIP switches in accordance with your host’s output DATA format. DATA Form DATA + CR DATA + LF DATA + CR + LF DATA + LF + CR
DSW-1 DSW-2 DSW-3 OFF OFF OFF
Foreign character Selection
DSW-4 DSW-5
ON
OFF
DSW-6 ¯ DSW-10 NOTE: *Marks are a “Factory Setting”
CITIZEN
OFF
USA *OFF *OFF
GERMANY OFF ON Not for use
23
FRANCE ON OFF
UK ON ON
Page 24
iDP-562 User’s Manual
6.3 Connector and Pin Assignment PIN NO. Signal Name 1 STB DATA 1 2 2 3 3 4 4 5 5 6 6 7 7 8 9 DATA 8 10 11 12 13 14 15 16 17 18
ACK BUSY GND SLCT GND
GND
PIN NO. Signal Name 19 TWISTED PAIR GND 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
TWISTED PAIR GND
FAULT
Data Entry Method : 8 Bit Parallel Control Signal : ACK, BUSY, SLCT, STB, FAULT Connectors : Printer side – 57-40360 (AMPHENOL) or equivalent Cable side – 57-30360 (AMPHENOL) or equivalent
CITIZEN
24
Page 25
iDP-562 User’s Manual
6.4 Electric Characteristics (a) Input Signal Level All the input / output signals are of TTL level. “HIGH” level 2.0 V MIN “LOW” level 0.8 V MAX (b) Output Signal Level “HIGH” level 2.4 V MIN “LOW” level 0.4 V MAX (c) Input / Output Conditions All the input signal are pulled up by 1 K ohms. (Fig. 7)
(Fig.7) All the output signals are pulled up by 3.3 K ohms. (Fig. 8)
(Fig. 8)
CITIZEN
25
Page 26
iDP-562 User’s Manual
6.5 Timing Chart (1) Input Data and print timing
T1, T2, T3 T4 T5 T6
0.5ms MIN 100 ns MAX 7m TYP 1100 ms MAX
400 m MAX When data is stored input buffer.
(2) FAULT and SEL switch
T1 0.5ms MIN T2 100 ns MAX T3 550 ms TYP (Note) preset by SEL is done manually
CITIZEN
26
Page 27
iDP-562 User’s Manual
7. Control Code Control codes are the same for 7 BIT DATA and 8 BIT DATA except SI & SO code. 7.1 SI & SO Code Symbol 8 BIT DATA SI Standard character designation (Same as US) SO Enlarged character designation (Same as RS)
7 BIT DATA Designation of SI side character Designation of SO side character
7.2 Function Code Symbol LF CR
RS
Code Function ( Hexadecimal) 0A Feeds a new line after printing. 0D Feeds a new line after printing. You can select CR function in accordance with your computer's output. For details, refer to 5.5 Setting the Preset Jumper. 1E Enhanced character designation. The designation is released with US code or line feed.
US FF
1F 0C
Standard character designation. Carries out from feed performance after printing.
DC1
11
DC2
12
DC3
13
Makes the printer SELECT (ON-LINE) state. Only this code can be accepted irrespective of DESELECT (OFF-LINE) state. Red printing is specified / released. Designation / release (alternative) of red one line printing is possible with this code. Makes the printer DESELECT (ON-LINE) state.
Symbol
Code (Hexadecimal)
Function
Designation / release of reverse printing. Designation / release (alternative) of reverse printing is possible with this code. CAN 18 Clears the print data in the buffer. Al the previous input data is cleared with this code. Graphic print (correspondence with bit) mode designation. *ESC + "K" 1B, 4B It is not possible to print graphic mode and another character mode in one line. ESC + "C" 1B, 43 Page length designation and paging action. Refer to 7.3. ESC + "0" 1B, 4F Paging is off *ESC + "1" 1B, 31 2.75mm line spacing. *ESC + "2" 1B, 32 5.5mm line spacing. *Only for iDP562-RS and iDP562CN type. DC4
CITIZEN
14
27