background image

Summary of Contents for CE-158

Page 1: ...I ...

Page 2: ...All and more about Sharp PC 1500 at http www PC 1500 info Do not sell this PDF ...

Page 3: ... 15 2 In itial state upcn power on after oFF I key power off 16 BASIC program mode 18 1 SETCOM 18 2 COMS 18 3 SETDEV 19 4 DEV 19 5 OVTSTAT I I I I 19 6 INSTAT 2C 7 INPUT 20 8 INPUTS 22 9 INPUT 22 10 LPRINT 23 11 LUST 27 12 PAINT _ 28 13 CSAVE CSAVEa CSAVEr PRINT iranunission lormat _ 29 14 LOADING BY CLOAD CLOADa CLOADr MERGE MERGEa 29 15 CSAVE 30 16 CSAVEa 31 17 CSAVEr 32 18 CLOAD 32 19 CLOAOa 32...

Page 4: ...ti Ip I I o o o o I o 0 o O o o O o 1 o I I O I I a 1 l I I l a I 53 3 Operate 57 4 Protocol 58 5 Output 59 16 RTS DTR signals 62 17 Error codes 63 ParalleI interface 65 Specifications Parallel port 65 Parallel interface 65 1 Specifications 65 2 Output connector 65 3 Connector signal descriptions 66 4 Timing chart 66 1 Devices connectable 67 2 Caution before connection 67 3 Interfacing cable 67 4 ...

Page 5: ...sture and dust 2 A soft dfy cloth should be used lo clean the interface Do not use any solvent or wet cloth 3 If service of your interface is required consult only an authorized SHARP service center 4 Keep th is manual for further reference The term RS 232C represents the specific standard of the EIA Electronic Industries Associa tion in U S A This standard specifies the interfaces for use in data...

Page 6: ...he signals received are then converted from serial to parallel In addition to the data signal line there are a number of signal lines required for exchang ing operating status on sending and receiving sides though they vary depending on the device used The serial interface will offer a wide range of applications when used in conjunction with the number of peripheral units that are equipped with th...

Page 7: ...E 158 Power swit h PC 1500 Joint plate A PC 1500 __ CE 150 z _ v 1 fi 4 J r J r t t il J _ _ _ CE 158 _ _ f b I _ J Connector for 5 _ t4 parallel inter face H i l V AC adaptor ef 1 P connection jack 1 0 Connector Joint plate B for RS 232C Do not sell this PDF 5 ...

Page 8: ...All and more about Sharp PC 1500 at http l www PC 1500 info RS 232C INTERFACE 6 Do not sell this PDF ...

Page 9: ...1ith an C tCrrla l device A daptor jack 4 8 V DC Ni Cad rechargeable battery AC Local voltage with EA 21A 4 8 V DC 0 80 W EA 21A Local voltage For al prox 3 h ours o f operation charging 15 hours High level 5 V to 10 V 3 to 7 Kohms load Low level 5 V to 10 V 3 to 7 Kohms load lnpUts RD DSR CD CTS Outputs TD RTS DTR Others SG FGJ x1 POWER switchl 86 W x 115 DJx 50 H mm 3 3 8 W x 4 1 7 32 D x 1 31 3...

Page 10: ... above PRINT PRINT 123 0 0 0 0 Sends data thru the RS 232C port PRINT PRINT A 0 0 0 Same as above LPRINT LPR INT 123 0 0 0 0 Same as above LUST LUST 10 100 0 0 0 0 Sends program thru the RS 232C port CLOAD CLOAD FILE 0 0 0 x Loads program thru the RS 232C port Loads program thru the CLOAOa CLOAOa 0 0 x x RS 232C port in ASCII code CLOADr CLOAOr 0 0 0 x Loads reserve program thru the RS 232C port C...

Page 11: ...g Links progtan I with the program sent thru the RS 232C por t Links procJrarn vith the program sent thru the RS 232C port in ASCII code Sends dara out thru the RS 232C port Substitutes the vatiablc with the data sent th1ou9h the RS 232C port Cha racter string Jith Jhich communication parameters arc se t Character stringwith Jhich communication device is set Designates RS 232C port handshake signa...

Page 12: ...rise a single transmission character 3 Parity bit A bit attached next to the Ian data bit MSB Three modes of non parity even parity and odd parity can be chosen to check data accuracy 4 Stop bit s Bit s attached next to the data bit or parity bit the size varies from 1to1 5 and 2 Interfacing signal Signal levels at the 1 0 pins of the DB 25W connector shall be as follows Input signal High level SP...

Page 13: ...above 3 V as SPACE 2t Load side impedance shall be a direct current resistance of more than 3 Kohrns against an impressed voltage of less than 25 V or less than 7 Kohms against an impressed voltage of 3to25V 3 Output sign I in MAR K st te sh ll be 5 to 15 V or output sign I in SPACE state shall be 5 V to 15V 4 Effect ive load capacitance at the end shall be less than 2500 pF inclvding cable capac ...

Page 14: ...cn1 Data Set Ready OSR lo ON W Odem rtady to ndJr 111e c abft sn 1 OFF Modem no1 r Y to wnd 1ece1Yt connected Signal Ground SG Provides refl fence volt ye itvel with respect to all interfacing s1gnil C arr1 cc d etectio n ON when a Carrier Detect CD In ON c a ticr sigoal f C41 vcd cable isn t OFF C ln ic r s1 1 nal no t nlceived connccu IJ Data Terminal Status indication on 1 tm1nal iidc rce 158 O...

Page 15: ... following manner when the unit is connected with an acoustic coupler CE 158 side 08 25MI 2 TD 3 RO 4 RTS 5 CTS 6 DSR 7 SG 8 co Connection with Personal Computer Connect cable signal lines in a manner Personal Computer CE 158 side DB 25M 2 T O 3 RD 4 RTS 5 C TS D 6 DSR 7 SG 8 CD 20 DTR Do not sell this PDF Accoustic coupler side DB 25Ml 2 T D 3 RD 4 R T S 5 CTS 6 DS R 7 SG 8 co described below whe...

Page 16: ...three output signal lines are used it w ill reQuire fou r lines for signal inpu t In case one output line should be connected with two inpu t lines attcn tion must be paid to the load resistance as it may not mee with the EIA requirement 8 Signal flow to peripheral Because this unit is a data terminal connector signals are designed for transmission he t een the data terminal and the data co mmu ni...

Page 17: ...e a1 soon as all of these 1ig11al go activo Thcrctorc the state of the peripheral unit must t e checked using the INSTAT func tion boforc oxe cution of che s tatcmcnt Because the status output signals to the peripheral unit RTS aod OTR are nact1ve af ter po1 A1cr on they have to be turned active vsing the OUTST AT statement before commencement of data trOtlsnlis sion PORTAf il This un11 has to be ...

Page 18: ... adaptor to the CE 158 when the program is executed with the PC 1500 Otherwise the ERROR 50 may occur Supply voltage of PC 1500 The CE 158 will not perform a proper operation when the battery indicator looks v eak as seen from the fr ont as it alerts low battery condition for the PC 1500 The battery indicator is located to the right side of the display In such a case either replace the battery of ...

Page 19: ...ve the similar data for more than two tu nes 21 Note that the opposite sicfe may sometrmc assume the CE 158 output si9r ol RTS DTRI to be ON state when the PC 1500 or CE 158 is in On or lol1 owing cond1t1om e I PC 1500 in the power off state fl The POWER switch of the CE 158 is off g The CE 158 in low battery condition h The CE 158 is not connected with the PC 500 or CE 50 that is connected with t...

Page 20: ... 100 11 0 200 300 600 1200 2400 WL 5 6 7 8 PR N Non E Event 0 Odd ST 1 2 actual ST 1 5 when WL 5 Omission of parameter entry will assign the previously used parameters EX 10 SETCOM 300 8 N 1 1200 8 E 7 20 SETCOM 1200 E 2 30 ABS 300 7 E 1 40 SETCOM ABS 300 7 E 1 NOTE When the contents ot the nonnumcfic variable is null it 1ill assurnc the sarr1e condition as 1 2 COM When parameter designation is su...

Page 21: ...sequence of assignments NOTE 1 Once the SETDEV statement has been executed all assignments before that will become invalid To clear all assignments eitt1er omit assignment or reset the contents of the non numeric variable NOTE 2 Clear all assignment to use TAB of the CE 150 because it will result in ERROR 27 when for instance TAB expression is executed with assignment set by the SETDEV itatement 4...

Page 22: ...sult in ERROR 65 If larger on the contrary data are received for as many as specified in the statement and the last data of the input is put on the display For 1 and 2 above the question mark and the message GUIDANCE are put out of the displ v but for 3 the last data part is put on the display after the message GUIDANCE NOTE l NOTE 2 NOTE 3 EX to 20 30 40 50 60 In the INPUT INPUTS and INPUT 8 stat...

Page 23: ... wait time before uansmit1in9 data Since the wait time may vary depending on the contents of the input data or the program 1t has to have sufficient allowance You will be able to create the wa11 time ot about INT X 64 sec by means of the statement below i1 the transmit side is the PC 1500 SETDEV WAIT X PRINT Depression of the PAPER FEED key when lhe CE 150 i1 in connection will not enalllo to rece...

Page 24: ...etical expression 9 INPUT T his command is also effective only when Kl has b en declared by the SETDEV statement Data received through the RS 232C port are substituted with specified character array of which the contents are cleared upon execution of this command Command execution terminates when the CR code is receiv ed or when data are received to the lull capacity of character array General for...

Page 25: ...t ends w ith a semicolon it will issue no END code 3 General format LPRINTLression When data are separated by a comma a blank portion to the next zone will be padded with SPACE codes If data were to be too long to contai1i in the same zone it extends av er a next ZOl 1 e Zones arc defined in the manner shown below CapacitY of each 1 0ne can bo defined by means of the ZONE state menc Defau lt after...

Page 26: ...LE statement It must be less than 255 if CONSOLE 0 5 LPRINT USING format designation USING can be used in the LPRINT statement 6 LPRfNT Only the END code issent ou t EXJ Let s take up for example the video display terminal tha t incorporates the RS 232C interface As a single line of the disp lay screen consists of 80 columns automatic ca iagc t cturn is executed upon receiving 80 characters of dat...

Page 27: ...nt description 50 line O is sent out then the CR code 60 line 1 and 2 are sent out 70 line The END code issent out 80 line Oat arc sent out in accordance with the USING statement definition 90 line Codes O thru F are sent out in a unit of block The reason v1hy ends of lines are on the sarne position is that 80 CRT screen columns could be divided without fraction by the parameter 16 dcfirled by the...

Page 28: ...PC 1500 at http www PC 1500 info l m J J J l N w 1ll l l f J I J J IJ J a 0 0 Q J 0 l z l _J l N I u l w l 0 l u i l al N C u l J J l J l l J J l 1 l I al J u N M N N IJ a O l J l J co N l M J I J N J u 26 Do not sell this PDF ...

Page 29: ...eneral format L LIST expression The p rogram line specified by either the line number itself or by the label scnl out 3 Gen c ral format L LIST expression I expression 2 Progr am lines existing from the expression 1 to the expression 2 are sent out 141 LLIS T expression Program exist ing from the beginning of tho program to the line represented by the expres sion is sent out 5J LLIS T expression P...

Page 30: ...YSGOTO 30 40 BS INKEYS 50 IF 8 PRINT BS GOTO 30 60GOT040 NOTE r and quoted in the program will be outputted by the code string of square plus a spac c and pi plus a space respectively The same is applicable for the CSAVEo statement which will be discussed later 12 PRINT But it will result in error if the CLOADa statement which will be discussed later is exeOJtC d at the receive side with r or ll q...

Page 31: ...e header CSAVE RUN PRO mode without file name designation with progr am size of 0139 CSAVE FILENAME RUN PRO mode with file name designation CSAVE RESERVE mode CSAVEr PRINT Capocitv 1 Capacity 1 iXX I i XJ Capacity 1 Note 1 Portions indicated with an asterisk v 1ill be filled up with the file narnc when there i s a file name designated but unoccupied portions viii be padded with NULL code when flO ...

Page 32: ...cter string label affix a semicolon to dis criminate it from the file n 0mc 31 General format CSAVE t FILENAME T T expression l expression 2 Program lines from the expression 1 to expression 2 are sent out 4 General format CSAVE F FILE NAME T T expression 2 Program lines f ram the beginning of the program to the expression 2 are sent out General format CSAVEF FILE NAME T Texpression Program portio...

Page 33: ...Though it uses the same general format as in 1 to 5 of the CSAVE s1atement it would no1 send out subsequent portion of the merged program if program in the memory Vere merged together One more CR mode Viii be issued after sending the program Key operation Outpu t on RS 232C port CSAV E a CfNTER I 10 A RE M RS 232C 20 O LJ TST AT 0 30 C L S 40 WA I T 0 50 A RI N KE Y 60 I F A P R N T A 70 GOTO 50 8...

Page 34: ...T FILE NAME NOTE l Set the word length to 8 bits NOTE 2 Program will be N EW when an err or or a break i s met during loading operation 19 CLOADa Effoctive only when Cl has been declared by the SETDEV statement Only manual operation is permitted Program is received through the RS 232C port in the ASCII code General format CLOAOa Length of one program line received through the RS 232C port must be ...

Page 35: ... portion is linked when an error or a break is met d1 J1rin9 loading operation 2 There will be no practical ptoblem even if an insignificant program is put on the display by depression of or key PRO mode __ after interruption of cornmand execution by means of fo1il key or after occurrence of an error during command execution immediately after starting execution of MERGEa before the trans fer of pr...

Page 36: ...w ith the specified variable ii the internal code mode General format INPUT 1 FILE NAME T JCvaria le name J If the variable name is a variable array it should have been declared by the DIM statement Two letter variable name will be defined automatically The variable name can be specified in the same manner as in the PRINT statement 26 INPUT 8 This command is executed withe ut any coonection with K...

Page 37: ...s ed to determine the block t ngthof the output data that is sent on the RS 232C port when data are separated by a comma I in the LPRINT statement Default after power on is the block length of 13 General format ZONE expression Where expression 1 31 31 ERN It Is the function with which the error code is provided within a range of Oto 255 32 ERL It is the function with which the error line number is...

Page 38: ...sending out the data on the RS 232C port by the LPRINT PRINT LLIST or FEEO statement Default after power on is t he CR cocfe 1 General format CONSOLE expression Where I 0 Number of digits per line is unlimited Expression 16 255 Number of digits per line 2 IGeneral format CONSOLE expression 1 expression 2 The expression 1 is the same as in 1 The kind of END code is specifie l with the expression 2 ...

Page 39: ... of automatic sending of the XON XOF F code 31 Auto sign start 4 Defin ing auto sign code 5 Defining live soft keys 6 Defining comrnunication parame ters such as baud rate word length parity ISSignmcn t stop bit length 7 Choice of normal or auto paged halt of communication at every 5 12 bytes or auto line halt of communication at every line 8 Specifying the receive data output channel CE 150 or pa...

Page 40: ...ogram and variat es out of 1650 bytes user s area for the basic memory si1 ze 5946 bytes area for the memory expanded i vith the 4 K option RAM or 10042 bytes area for the memory expanded with the 8 K option RAM It will cause ERROR 5 1 if it is less than 569 bytes The value of free area is obtained by STATUS 3 STATUS 2 I BASIC program I I Free area l more than 570 bytes User s a rea Variable When ...

Page 41: ...The computer 1s not ready to receive OFF The computer is ready to receive When any key A thru Z os p0shed while this symbol o s on the s mall lelter code corresponding to the key depression a z SML ON is entered When the SHIFT symbol is on it enters the corresponding capital letter A ZI SH IFT ON Indicatcs that tha n key function i on Altcrnatcoct1ont lnd icatl 1htt state o f the special key MODE ...

Page 42: ...r 3 3 c s c s 4 s 4 0 T d t 5 5 E u e u 6 6 F v f v 7 BEL G w 9 w 8 BKS 8 H X I h x 9 g I y i y A J z j B K r k l c L I 0 CR M I m E N I n F I 0 0 NOTE Coda not assigned in 00 thru 1 F hex has no function except tor Bt l BKS nd CR Code 80 thru FF hex are used for graphic pauern application see Graphic func tions Do not sell this PDF 40 ...

Page 43: ...he CLEAR statement or to clear the 6ASIC program and variables using the NEW statement If it is undcrsierable to c lear save such vafi ables and program on the cassette tape via the CE 150 The fo llowing maximum capacity w i ll be available for the character buffer when the NE vV statem ent has beer executed 1792 5888 4 KRAM moduleCE 151 in use 9984 8 KRAM module CE 155 in use Data are stored in t...

Page 44: ...definition auigied to the keys Code Name Key operation MODE 1111 0 0 NULL J 01 CON T R OL A CS OH L Tl 0 2 B CS T X l ra 0 3 c CE T X l I CJ or f cL j 04 D E 0 T l J 05 E CE NG l I I l J 06 F ACK F I j 0 G BEL I J 0 08 H BK S CJ f 1 or I j 09 I CH TA 8 0 A J L F 00 K VTAB l _ 0 C L CF F l l 00 M CCR I Mi j T fll or 0 E N SOU r N 0 F 0 S I N J 0 1 0 p 01 E I l 1 1 CONTROL a 0 C I I I lo 1 2 R D C2 ...

Page 45: ... page co follow 8 Repeat function Almost all keys are provided with the repeat function ir the terminal program mode after entry of l 1 or key When a repetitive key is held depressed continuously it starts to repeat 1he sarne key entry in about one second later EXI Key operation Display f J A One second after AAAAA 1 1 rn AAA AA a One second after C AAA A A a a a a The following keys have no repea...

Page 46: ...00 o G 8 E EJ B 8 D 11 1 I G GB t r i G 3 8 ti L R w w a 0 a a 0 0 0 0 w 0 J J i r oJ u a n r x i__ o _ a BV a rr 0 z E 2 1 0 c G El EJ E E c O s I c G G G 0 D i 0 c J c 0 B G El c c 0 0 o 0 t El 8 0 U Q ow o El B e G El D B 8 B G 0 EJ B 00 B B Do not sell this PDF 44 ...

Page 47: ...h the BUSY symbol off it h alu the receiving operation If XON XOFF were ON in this occasion it will send out the XOFF code CONTROLS Then tl c BUSY symbol is activated ond the CUrSOl disappear from the display Note that it may take some time before the cursor goes out Depression of the key in thi condition makes the BUSY symbol go ou1 and the communication will be enabled with the ho S t cornputer ...

Page 48: ... the BUSY symbol is on When this key is pushed key symbols are activated with respect to the symbol I 11 or 111 111 activation MODE I MODE II 1 t __1 2 I _J 31 i I 4 4 D MODE Ill Con1enu that the user h d defined in the ASIC prog ram mode Operational assignments are put on the display indicating assignmen1 of the fol lowing four keys in MODE II effective even during the tirne of trans1 l lission T...

Page 49: ...on the display the top line of the character buffer is d isplayed 3 When a window key is pushed in the condition of 1 or 2 the following aCllon will cake place The word next to the currently displayed contenis will be put on the displ y The word immediately preceding the currently displayed contents will be put on the display The line immediately preceding thli a irrent lone will be put Oil the di...

Page 50: ...OE 111 DiS1 lay J n g t o c o n c e r t evsv J a m e s l3 r o w n e s p e a k i n g 1 js v I i s J a me s B r o w n e i s J a m e s B r o w n e T DOS I s p e a k i n g 1 want t o ta I k l I a m t o con c e r t NOTE The CR code will be displayed as a space Do not sell this PDF 48 ...

Page 51: ... pon ei1her the CR or LF code is outpimcd 1hc selection defined by the first END code designation of the CONSOLEstatement Default after power on is the LF code The CR code appearing alter the first CR cooe will be igna ed Ex istence of codes OOH IFH instead of the CA code w ill also be assumed as cotlllnuing appearance of the CR codo 3 BEL With reception of the BEL code 0 with depression of 1 o MO...

Page 52: ...ay column With appearance of the nextspace or CR code the present display contents are cleared and replaced with the newly received data Unless a next space or CR code was not received Vi thin 26 digits it puts the received data on the display 2 If a space or CA cooe was not received within 21st to 26th column it performs horizontal scrolling Received data speak Received data ing CR 6 ea n g Br o ...

Page 53: ...des Codes 80H thru FFH are used for graphic application When any of these codes is l cceivcd 1 1 will display in the same format as described in the GPRINT statement MSB LSB l11111IIJ Single dot column A row of bits w ill be made active bit r 1 or inactive bit Ol according to bit arrangement after the most significant bit MSB of the received data In this scope the character length must be set to 8...

Page 54: ...he parallel port during execution of the terminal program The BUSY signal will be in high level when no connection is made with the parallel port when pawer was not turned on to the connected device or when the connected device is not working properly r il P R 1 NT ER ERR OR To be followed by r e r m i n a I Ent A u t a u i t In the terminal selection mode a variety of conditions are set up such a...

Page 55: ... J key is depressed during entry of the auto sign code it will put on the dis play Same effect when j r are pushed will become the CR code at the time of transmission As the auto sign code is secured in the reserve area it will display the error message de scrilJ ed below when it is not possible to hold in tho reserve area Note that it is not pos sible to serure in the reserve area even in the BAS...

Page 56: ...r depressing C I NOTE will be chang ed to the CR code before output Use of 1 I or I key will enable chang s and to check contents of F2 F3 of MODE I l _ J C H A NjG E F 2 i 0 A y N _ _ _ _ _ _ It defines 0A 10 ILF code to F2 not F2 0A O thru F is usable for two digits after otherwise it will be handled as though nothing has defined Nothing has been defined to F m 12 4 J A M E s B R o w N E 0v Abov...

Page 57: ...er putting the setting error mes 9 on the display The contents of fl thru f6 will be cleared when the reserve program is newed or loaded in the BASIC mode 3 _t Used to check the length of the butier that is used in the termina1 program mode or to check and change communication parameters Depression of key for instance will put the followitig informat ion on the display s u F F E R It indicates tha...

Page 58: ...scuss how to make change of parameters 300 8 N 1 to 300 7 E 1 Since there is no change required for the baud rate proceed to a next parameter screen Same effect by the depression of t n J I NTER J key l Now WL B must be changed to WL 7 Enter I and CO w o R o onER t I L E N G r H 8 v N N l PR N must be changed to PR E CDl NT J f TI S r oip Y I N N s 1 r s 1 DJ 7 l __ Do not sell this PDF ...

Page 59: ...ied the newest data going into the buffer pushes up the oldest data Pfcsent buffer contents ABCD E 0 1 Input data 2 ABCDE Input data 3 8 C D E F 0 1 2 3 2 i J When this key is pushed the symbol PRO comes to activate Though it has the almost similar action as 1 the data received through the RS 232C port or key input data during ECHO ON will be stopped receiving at every 512 bytes If the XON XOFF mo...

Page 60: ...ompt on the display rxON XO FF OFF 1 Y Push 4 anu l or _ _ rw1e11 if it is correc1 Then it returns to the protocol display Non receiving condition will be on vJhcn one of the conditions belo v is met a l Depression of l l key MODE Ill bl During A P or AIL mode of 3 cl Depression of window key l I I I a 1 fW tl r I except for the NL and T re modes di Too fast transmission of input data through the ...

Page 61: ...en11 on the display ECHO ON 1 y I N Output When L I are pushed in 1 41 instead of ten ts are put on the display l the follow ing con 11 0 u t p u t E x t T r C D s I I I I I j l I p E t x I I i I This key determines whether the data received through the RS 232C port arc 10 be p6nt ed on the CE 150 or the printer connected to the parallel port As th e CE 150 has been assigned after the entry to the...

Page 62: ...eived from the RS 232C port is put on the display from left to right But once a space or CR code was put on display column of 21st to 26th digit in the CLEAN TEXT ON mode at the iime of terminal program entry WORD WRAP it holds the present display screen as it is until a next word space or CR code is received or the data of 26 characters are received Then the present display is cleared and replace...

Page 63: ...e ci l key is assigned to ETX function and fin c keys 10 LONG SPACE after the execution of the DTE statement Both I i and I causes no funct ion alte the execution of the TERMINAL statement Whe n this key is pushed after the execution of the DTE statement the follow ing prompt is put on the display C L E T x O N l yi iN T j lC Depression of la l key during execution of the terminal program mode wil...

Page 64: ...R signals When it changes from the terminal display to the execution in the terminal program mode both the RTS and DTR signalsgo into ON state It will return to the MENU SELECT mode when 10 key is activated or LOW BATTERY condition ismet but both the RTS and DTR signals will be subject to the OUTSTAT statement executed before the terminal pre gram mode Do not sell this PDF 62 ...

Page 65: ...run crl or Improper TAB designation by the LPR INT 11a1emen1 For example he 53 specified value exce lds the data size before the END code specified by the CONSOLE statement 54 57 Not used 58 Contents of the received data is not appropriate 59 60 Not used 61 Unmatched headers rmet during the execution of the CLOAD CLOADr MERGE or INPUT statement 65 The number of variables in INPUT is less than that...

Page 66: ...All and more about Sharp PC 1500 at http www PC 1500 info PARALLEL INTERFACE Do not sell this PDF 64 ...

Page 67: ... strobe pulse By BUSY signal Outpu1 data ar ld all u IEH face control signals ara TTL con1 pa11blc Electrical conditionsOf1 parallel interface connt ctor p in Outpu t signal level H IGH 2 4 1 0 5 0 V LOW 0 lO 0 4 v Output cond111on Outputted through 74LS04 One TTL or LSTTL compatible is recommended f0t the load Input signal level HIGH 2 0 V to S V LOW 0 to 0 8 V IInput cond111on Input load of one ...

Page 68: ...uring data ou tpu t S bit data signal High when the data is 1 Bit s tate is retained unit output of nex t data after sending out the STROBE signal Vhen high data output is held up assuming the peripheral is BUSY Normally high but tow st 1te of signal is issued aft er po1 er on If BUSY for more than 10 seconds it establishes ERROR 69 Non Connection Non Con nection In logically GND le el and also is...

Page 69: ...r is to be connected as a pheripheral cJevice check the carr1ag1 retu r1 1 and linefeed specificati n of the printer Though the LF code is issued upon power on for the END code it can be changed 10 the CR code LF code or a combination of both using the CONSOLE statement Reier to CONSOLE statement 1 4 Wherl connected with the printer incorporating a normal parallel interface it w ill not pri _t r a...

Page 70: ...t CONSOLE CONSOLE 80 1 0 0 0 0 Seu digits line and END code LPRINT LPRINT 123 0 0 0 0 Data sent on parallel port LLIST LLIST 0 0 0 0 Program sent onparallel 10 100 port FEED FEED 5 0 0 0 0 ENO code sent on parnl lei port PRINT 9 PRINT 9 0 0 0 0 Same as LPRINT 123 1 OPN With this command is assigned 1he 1 0 port for the 1 0 statement All assignment by SETDEV arc cleared upon execution of thiscomman...

Page 71: ...l om c r l11ttOI Lo 1d h c tm C tn ttl l IERROfi I a n l1 C lnn cr I s r 10 c i uc I IEAAOR 2 1 1 no1 cont l l 1 S w tOCMWI I IERtlOR lS 11 no1CONl I HS 2l2C SIJb te ct l lA µ WI P I _ _ 1 I Ov1pu1 10 I 0 1 T I J1C Sut 110A I I 1 l I 1 RS 732C Cir l A I x I i I i vu1 om j l I c _ I I lnp1 11 111 11 RS J1C IS il il t 11 1 A I XI I I 1 ov11 I KS 2J 2C S 1t l t f A l I I 1n 1 RS 3 C I T 11 1 ll0 FEEO...

Page 72: ... to the parallel port 2l Columns line and ihe END code is subjeci io ihe description of the CONSOLE statement after the execution of OPN LPRT Set to 80 digits line and the LF code for the END code upon power on 4 PRINT 9 Same as LPRINT statement of 3 except that it executes to the parallel port regardless of OPN LPRT declaration 5 lnirtial state upon power on after fC l key power off When power is...

Page 73: ...than 10 seconds in issuing data on the parallel port Cause for such a condition may be one of follo v ings Peripheral device not in connection 69 Pov1er is not turn on to the periphe ral device Peripheral device in BUSY state Error in the peripheral device Paper empty in the prir ter operation In case it turns to BUSY state for more than 10 second even if the peripheral is in good working conditio...

Page 74: ...eration ERROR 50 Note CHECK 8 message means that the battery of CE 158 should be recharged If this appears connect the AC adaptor to the CE 158 for recharging If the CHECK 8 is displayed with the Computer powe r ON even after recharging the CE 158 may be malfunc tioning Please contact an authorized SHARP servic e center 3 When the terminal program is executed with the CE 158 power O N LOW BATTERY ...

Page 75: ... interface fully charged When the Interface has been left uncharged for an extended period of time after the battery had been exhausted the battery power will be dropped beyond the minimum allowable charge level In such a case refresh the batteries to full capacity through recharging When the unit is not in use be sure 10 remove the adaptor from the interface and the waII outlet Be sure to turn of...

Page 76: ...All and more about Sharp PC 1500 at http www PC 1500 info 74 Do not sell this PDF ...

Page 77: ...ost computer to enter data or generate program in a free period of time Thus this results in a great convenience The following describes the application equipment and program examples with MZ SO l r garded a s a host computer Use patterns of the CE 158 RS 232C I interface O n w y 1J f Y11 u 1on l 10111 lf l l ll111e1 lo IH l c J Application lnpu1 gutttblet l t inp 1 lj U 9 l i1 l P t lflX O t l fl...

Page 78: ...other 10 kinds of informat ion After the power supply of the terminals is turned off by the BREAK operation another terminal can send the data to the host 2 Processing concept at the host MZ 80Bl Upon receipt of information by irldividu ll the MZ 808 counts it as the number of re celved data and at the same tirne calculates sales per individual information If required the sales together with the r...

Page 79: ...J NZ BOB 2 78 o 0 2780 1 1 SALeS CONl ROL LIST OATE PERSONNE L IN C fARGE PRODUCT L JNJ T PtilCE Q l V AMOUNT 100 AOKI P C 1S l0 59800 2 1 I bQO 9 2 9 AOt J PC 1 5 10 59800 2 1 1t ti OO 930 HIGUCHI CE 15 4 9 9 1 1 3 l 494 0 11 2 1 HIGUCHI HZ B B 278 11 0 BOOC J Ql Ol AMOTU CE 150 498 49600 3 0 0 1 AHOTO PC J 1 1 59800 5 10 0 1 1 SA LES REF ORT NO 2 DATE PERSONNEL I N CHARGE PRODUCT UNIT PRICE Q TY...

Page 80: ...and stored in the PC 1500 the program stan must be initiated by loo key operation to protect the memories PC 1600 DATA INPUT OUT PUT 1 l J IH TtllAHSMrSStON z MZ SO B SAt E CONTROL PA OG A AM P fflSONNfl IH OIAAGE t W ttwn1ldl IClen PROOUCTSr RKttn fd So t t RfW11 Q W tf lrl16d a 1trt CY UHIT PfUCEr W o lllit 1 ttoaib i J QUAN fl TV Wlll llft 3 dlgits r x11 OATA t NOf M 78 Do not sell this PDF ...

Page 81: ... Ch 1 CtC 1 Unit puce l f number w11l lin d oi s Ou111n11tv Input nurnbcr within 3 dig C I Do not sell this PDF START 79 Mz aosl at the host I 1t 1t1 1 lt l 1 ill lClt ijrMn pc pt ot unit and 1tp1t ttth II 1nput data 1n lh1s use ST A R 0 Coununq lh t nu mbr 1 ot 1ece1 a1 dillt fitctn Cd d llll p11ntou J Soc tin9 by pi o u 11 iel in Ch 119f and produc1 All d liJ sorted u sult printou I N ...

Page 82: ...IN TRAN SMJSS ION A l T 0 320 SETCOM 1200 a N l 330 SETDEU PO LPRJNT f lBC 335 SEIDEU Kl INPUI as IF as Y BEEP 1 GOTO 320 337 SE DEV PO 340 8 1 350 IF B ATHEN 500 360 IF BC ATHEN LPR INT 370 LF A BTHEN LPR JN I E 380 LPRINT USING HJ Bl 390 LPRJ NT TAS 9 400 LPRl ff SJS B 410 LPRINT USING i ldOOd TA B 420 LPRJNT USING UUUU SUCB 42 1 SETOEV Kl 422 I NPUT XS 423 SCTOEU PO 430 B B I 440 GOTO 350 500 S...

Page 83: ...R 9 U0 10 N 4 40 PRINI JP HltA B 450 AINT p 1A5 A D 00 PklNT P S l 5 A it J 70 PAJ t T JP Tf tC A 8 490 PAINT JP SU CA 8 495 PftlWT J fA A StJ A O 4 10 NCXl 520 CUf Sl R 1 5 1UPUl l Sort l n l qu r 1 d t t F I 52 l JI F V THEN S l l S J fO 1 30 5 100 S 1 10 N i7 1 J l J A b SQ 1 1i lA OJ B l f tiEl J 1 Y 10UIO 4V 590 ll T l ti J fo t l ot THEN 0 0 IF s1 cJt SI 1HE f O lt O 010 GOTO b O 620 IF JA J...

Page 84: ...l TEMr ORARY VAAIASL or 10 1 gl K TEMN RARY VARIAOLE loo L t EMPOAAflY VAAIABlt lot 10flil l I N NO Of AECEPTION T CHAlU i NtRA NCE u CHAIN ENO 2 NO OF REC t Tl0N 8 TEMPORARY H C Vfl N 8UffER E S RECEPTION END FLAG P OUTPUT AfTtA SORTING Hl 200 DATE TAS 200 PERSONNEL IN CHARGE 51 200 PRODUCT TA 100 ur o1TPRIC SV 200 0VANTl 1 Y CH W OATA CHAIN 82 Do not sell this PDF ...

Page 85: ...transmission to the PC 1500 The d ate is designated at the MZ SOB to instruct data transmission 31 Schedule inquiry PC 1500 The r eceiver PC 1500 of l he schedule dala is capable of schedule inquiries even whP ri the CE 158 RS 232C interface is disconnected from the PC 1500 The old or new schedule contents for the date are seQuentiallv displayed by using the o key Data inputioutput formats 1 Data ...

Page 86: ... transmitted at a time is up to 20 9th 18 29 H ikari No 165 at Tokyo station 10th 8 30 Visits Sharp Corporation 10th 10 00 Conference 10th 15 30 Hikari No 180 at Shin Osaka station rv A A Printouts 90900 110 ning Gathering 91000 l leet in9 9 1500 1r Sho r P Vl Our Co 91800 1eet Mr Hayakawa P 91824 TOKYO SI H 165 J 00830 s 1 SHARP CORP 10 1534 51 nOSAKA st t l80 Do not sell this PDF 90900 91000 915...

Page 87: ... AU lOOHHMMJ G 1 1 Jl I 6 d i l l I N bH t1vMbc1 C hotdulit W1 rnt1 J WI I di l l r 0ATA N 0t IYINI l l IJl rl Flow Chart PC 1500 at the terminal sciw n COo ltent 11i wuy N Do not sell this PDF lAAr 85 PC 1500 OtSP1 PAtH INTt I EXl 1 Flru tl IHl ll t hl f WtlldlWll 11 r v MZ SOBJ at the host computer y Vl ln o Hl I d ll dtt f llOl l STA RT o ue l illtll 1Gd 9 11 10 mt 11 S fwdvlt COrll fll o flC u...

Page 88: ...AJ T J 5J0 Q 0 520 PRJNT USING U UMUUM T J A I MESIA 530 AS INKEYS 540 l F AS CHRS I J0 ITllEN 600 550 IF As CHRS J I THEN 650 560 I F AS CHR 24 THEN 400 570 GOTO 530 500 4 A J 61 0 IF AICLET A 0 620 GOTO 520 6 50 1 l A J 660 lf A 0LET A C c 0 GOTO 520 700 CSJZE 2 LPRJNT 730 FQR A 0TO C 710 LPRJNT USI NG H tilttiN T l LPRINT M S A 750 NEXT A 0 GOTO 400 800 CONSOL B0 l 8 10 QPN LPRT 820 FOR A 0TO C...

Page 89: ... OOV GUIO 1 1 l J I V f H llll I l l 1 l6J 1 0 v cun3Uff l J I t h lN I GLHl C Jl E H f N4ttll tJ l tl 1 4 cunsoi t l 1 1 h l J f H ltl l I l k I 1R1o Sl1IS S l lt IJ IA 00 HMl U i s 1 Cuk OR s 1 l t ttn u t P ov r H t C11R 01 0 CUk elt h t u Pff l Uf tt N l lStti io ilOU 11 I 0 1 J f M I J V O I lt Q I r 11 10 1 TltEN i i JJ It a u TIUi N 1 00 11 1 t IH IJI 1 0 1 _ ou 1n 1110 1i l v c 1 00 C L 1 ...

Page 90: ...gram registration into the MZ BOB file PC 1500 o Operation procedure 1 at MZ BOB RUN file name 2 at PC 1500 PRO mode MZ SOB SETCOM 1200 8 N 1 ill SETDEV CO IENTE I OUTSTAT 0 IENT j CSAVEa I I o Program list The program generated on the PC 1500 is registered into the MZ BOB disc file w ith a file name 300 REM SAVE PROCESS 31C CONSOLE C40 320 ON ERROR Go1 0 450 33 RSMODE A R8 T8 M70 RXI 3 4 0 lNPlJT...

Page 91: ...ines or COMMANOS input Position B Statement lup to 72 digitsl or operand input Position C Program diSPlay by LIST command up to 18 lines Position 0 Error message display P ition B Description Program is SCI into the relevant Line number Program statement program area by pre ing the 00 key The designated line is indicatc d on Line number Space the display by pressing the IE N T kev xxx 1 xxxl The d...

Page 92: ...6 00 GOTO i 1 t u J J I c SAVl I HEN GUS l tlJ J o GOlO t 811 JF CSn LOAO 1H N Gl JSUO 1OuO GOTO v 3 6 3 l F CS OELE 1 IHE14 IJOSIJFJ VOO GQlO O J 3 86 lF 1 KILL IH N Gt1Stll I za oo QOTO 20 307 I F C S ENO THEN J 3 11 j 0U tr LEFT C1 1 1 0 IHEl J GOS Ult 1 11v oo rn t o9 11 K zO l HEN GOSlJB j02 1 3 010 tu 3 10 I F Y SPACE 17 t llCN 4 30 39 t l J 1 t MS M yt 00 H H IF N l THEN GO UO bVtr GOTO 20 ...

Page 93: ...Oe 9 9 9 GOTO I b l 6 1Er 1 11 1 I 16 21 I f E l U l tE t J 16 25 162 2 X 1f l l lJ I l i E 1 162 I f X il lHEt f f4 b01 0 t o 25 16 2 4 E I 0010 l Z J l b 1 5 E v IF b U lH E l f E l l l J 10 0 C l llT CVAl MJ Oit r t l l i 1 I J 1J lNi1VMI M JJ l f D l 1 1 lv 11 o I l C E N O J qq9 1 165 1 16 6 0 J t l J H J C I HEt J 11 I l 1 7 J F A ll I HE l 17 4 l OBV Ac Ct I t U J J J6o 16 9 0 I f E 1 l l l...

Page 94: ... I F N H l HE N 29b 0 IF A U JJ1 l 4 STOP B AIA CHCA GO TO 29 0 l F A l l tEN 3020 l f AMU fHEN N l 1 CH l u _ H A RETURN U O l CAJ 1 RETURN I F AaU lt1EN 3040 l CH A IN A J REtURN l O U Ot RE IURN llEM EHllOR PRDCfSS ER lt Cl J RSOR 40 Ci PR IN l co111 1 f1ND cr ROR i ERl IQSC URSOR 40 t F H l t l r IJNOFF rf IFf I Ml ER O i CURSOf 4 f f AIN T t J Lt NIJI FOl lllllJ t Ef Oit UHSOR 4 0 f f l l J I...

Page 95: ...O b03 6150 l F Xl l r1 EN 6 S J 616 t x1 1 Goro 603v 6170 ft s1 ACEs Y l J l I CllRSOf 1 y z F P 1flT ti 6180 130 10 6 3 J 61 90 l F X1 1 l llEI 61 i _ J 6 0V y Ml tif 1 l Al Li 11 110 i Y l Xl f XJ t 11 XJ J 1 6 2 10 cur SQf i 12 PJ I N l Y GOTO 6030 l2v IF Xl Y l l f iEN c 6230 f S MIDt YS J X 1 1 t t Ml 0 SC Y 5 Y 1 I X l 1 2 4C CURSOR 1 y PRIM I l UU I 0 6031 6 250 CURSOR 1 Y 2 1 PR l t l SPAC...

Page 96: ...AD PROCESS 5 10 CONSOLE C40 l l l A TEMPO 7 520 RSMODE A R8 18 M70 RXO s o ON ERROR GOfO 65v 5 1 0 INPU f Fi l e nt m Fs 5 45 F l LEF1 S FS SPACE l 6 6l 550 ROPEN 1 FOl F9 560 I F EOF 1 THEN 610 570 INPUT 1 A l seo RSC A A I 591 HUSlC BS 590 FOR Tat TO o OOO NEXT T 600 GOTO 560 1 0 RSO A CHR ICl3 620 CLOSE Il l b30 PRINT END 640 ENO 650 IF ERLuSSQ t ERN a 40l THEN 670 660 STOP 670 PRINT 0 TH1 s Fi...

Page 97: ...All and more about Sharp PC 1500 at http f www PC 1500 info Do not sell this PDF 95 ...

Page 98: ...All and more about Sharp PC 1500 at http www PC 1500 info Do not sell this PDF 96 ...

Page 99: ...All and more about Sharp PC 1500 at http l www PC 1500 info This apparatus complies with requirements of BSBOO and EEC directive 76 889 EEC Do not sell this PDF ...

Page 100: ...All and more about Sharp PC 1500 at http www PC 1500 info SHARP CORPORATION OSAKA JAPAN Do not sell this PDF 198 2 G HARP CORP011ATl0N Printed in Jap u 3Bos5 TINSC J721CCZZ ...

Reviews: