0% found this document useful (0 votes)
153 views120 pages

M500 Computer Link Instruction Manual

M500 Computer Link Instruction Manual

Uploaded by

xzaiqi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
153 views120 pages

M500 Computer Link Instruction Manual

M500 Computer Link Instruction Manual

Uploaded by

xzaiqi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 120
Changes for the Better MITSUBISHI ELECTRIC CNC MELDAS 500 Series COMPUTER LINK INSTRUCTION MANUAL is MEL Zz PREFACE ‘This manual is a guide to the use of the M500 series computer links A and B. ‘The manual provides information on connection to the host computer, operation, daily maintenance, and host computer software preparation. Before using the M500 series computer link, read the manual. ‘The communication protocol of the computer links A and B is the same as that for M300 series computer links. Therefore, host of the computer link currently used can be used as it is. However, be careful that there are some differences in the operations on the display and parameters. CAUTION ON USE OF THE MANUAL (2) In the manual, special handling is also described as much as possible. However, consider the computer link to have the capabilities only within the description of the manual. 1 CONTENTS GENERAL SPECIFICATIONS . 1-1 Outline 1-1-1, W500 Series Computer Link Function Comparison Table... 1-2 Communication Specifications .. COMPUTER LINK A .....eeseeeeceeee 2-1 Outline of Computer Link A ..... 2-2 Computer Link A Software Configuration fies 2-3 Function Outline .......sseeseeeseseees 2-4 Protocol and Data Format . 2-4-1 General Formats of Command and Response Messages . 2-42 PLC Communication Function 2-5-1 Error Message Display 2-5-2 Error Message Clear . : . 2-5-3 Processing after Error Occurrence .........sssssss0 2-6 Computer Link A Parameters . 2-6-1 Input/output Basic Parameters . 2-6-2 Computer Link Parameters . 2-6-3. Online Operation Signal. 2-7 Exclusive Control .. 2-8 Cautions on Usage of Computer Link A Port 3 Change by Using ONLINE Switch Software Provided by Host Computer . Cautions on Host Work Program Number Search - Gautions on BTR RUN .....seeeeeeeeeeees Cautions on Data In ....... Cautions on Use of Computer Link A. 2-9 Operation Description - 2-9-1 Host Work Program Number Search ........ 2-9-3 Date In seseeeeeseeeeeeees 2-9-4 Operation of Work Program Down-load, Up-load, Deletion, and Number Search ..... COMPUTER LINK B ......--55 2-1 Rimetian Outline wees oe 3-2 Protocol . 3-2-1 Communication System 3-2-2 Error Occurrence Operation and Reset Operation .. 3-2-3 Transmission Control Characters 3-2-4 Work Program Format . 3-2-5 NC Data Code Table ......... 3-3. Error .. 3-3-1 Error Messages . 3-3-2. Error Reset . 3-4 Computer Link B Parameters .........0. 3-4-1 Input/output Basic Parameters 3-4-2 Computer Link Parameters . 3-4-3. Online Operation Signal Page Bufter Correction When Computer Link: B Ia Used «......... 1 Outline . bees -2 Buffer Edit Effective Parameter . -3 Buffer Edit Effective Parameter Setting Screen 4 Differences in Buffer Edit between Tape Operation and Computer Link B......eseeeee Parity Vi... -2 Detail peseription Host Computer Processing Example When Computer Link B Is Used . 3-7-1 When NAK SEND and SiN SEND Parameters Are Set tol ..... 3-7-2 When NAK SEND and SYN SEND Parameters Are Set to 0 ..... 3-8 Cautions on BIR Run .......++++ 3-8- 3-8- 1 Port 3 Change by Using ONLINE Switch 2 Limitations on BIR Run . 4, CONNECTION 2.0... 0ecesseeeeeeeeeeseeee es 4-1 Connector Specifications .. 5. ADDITION OF DEDICATED COMMAND . 5-1 Relationship between Computer Link and User PLC ...... 5-2 User PLC for PLC Communication Function ........... 5-2-1 PLC Communication Function Development Procedure (User FLC for PLC Communication) .. 5-3. Basic Format of PLC Communication ... 5-3-1 Command and Response «..-.eeess.0 5-3-2. Data Formats ...eeeesecveesseceseseee 5-4 Data Processing Range by User PLC ..... 5-5 Interface . 5-5. 5-5 5-6 3-7 Interface Variables . Use of Interface Table . Neceseary Options to Use DDB Function Interface Table Structure .. APPENDIX 1 ERROR MESSAGE LIST .. i-1 Computer Link Errors ... 1-2 CRY Operation Messages Displayed during Communication Processing .+++ssseseceeeecseteeeeeees 1-3. Miscellaneous Messages aa aw (2) and GENERAL SPECIFICATIONS Outline 1. GENERAL SPECIFICATIONS 1-1 Outline The M500 series computer link has the following two functions: Computer link A Computer link B The computer links require’a computer link card (QX731). Computer links A B implement each function. A required link must be specified for each purpose. Each link is an option. Both options can be used by setting and switching them. ‘The computer link card to be installed in the NC is an RS232C communication Anterfece. For communication using an RS422 or optical cable, prepare a market-sold converter (from R5232C to RS422 or Light). Function Feature Computer Link A|) Bxpande- bility Down-load, up-load, deletion, and memory search can bel performed for work program as instructed from the host| computer . In addition to these functions, unique functions such as PC data down-load and up-load can be added by preparing user PLC (C-language) using a communication interface (PLC communication function). Computer Link B| High- speed machin Although it has the BIR run function only, it has a receiving buffer of a maximum of 4000 bytes and in appropriate for high-speed machining such as micro line data machining. However, the following limitations are placed for high-speed machining: ® ‘The maximum transfer rate is 19200 bps. @ The number of simultaneously controlled axes by work program is three or less. ® The mumber of characters in one block 4s 24 or Jess (when the baud rate is 19200). Hereinafter. the host computer is called simply the host. 1. GENERAL SPECIFICATIONS 1-1 Outline 1-1-1 M500 Series Computer Link Function Comparison Table Function Description Function Computer | Computer link A | link B BIR run (Note 1) | NC receives work program from the (ote 2) 9 host by pushing the cycle start ° ° = button.on the NC operation panel and § operates the machine. a | Host work program| A search is made for work program ° x £ | number search registered in the host ° | Data in Work program is registered in CNC. ° x Auto BIR run NC is turned on in cycle start mode | (Note 3) from the host and then receives work| o program from the host and work is : performed. Work program Work program registered in CNC is ° x deletion deleted. Work program A memory search is made for work ° x y | number search program registered in CNC. B. | Work program Work program registered in the host ° x & | down-load is fetched to NC. 8 | Work program Work program registered in CNC is ° x 8 | up-oad transferred to the host. § | Tool offset Tool offset data registered in the | (Note 4)| x | down-Load host is fetched to CNC. at ° . ~ © | tool offset Tool offset data registered in CNC at x B | up-toad is transferred to the host. Parameter ONC parameters registered in the At x down-load host are fetched to CNC. (Note 5) Parameter ONC parameters are transferred to at x up load the host. PC data down- PC data is transferred to ONC. A x load PC data up-load | PC data is transferred to the host. a x 1. GENERAL SPECIFICATIONS 1-1 Outline Funetion Function Description Computer | Computer link a | Link B p | Integrating data | Data such as CNC integrating time At x 8 | up-load is transferred to the host. 2 g | GNC status CNC status information is At x ey upload transferred to the host. is $B) Start/reset/feed | The host starts (cycle start), stops A x SB] hold (feed hold) and resets the GNC by transmitting the command. Note 1: Note 2: Note Note 4: Note A part of the BIR run function is limited as compared with operation through RS-232-C. When the micro line machining is performed in high speed, the high speed machining mode should be optionally provided. O: Cycle start turns on through DI/DO. A: The function can be provided by preparing user PLC (c- language) by the machine manufacturer. *: The DDB function is used. For computer link A, the parameters to be up/down loaded are Limited to data that can be read/written by using the DDB function. 1-2 Conmunication Specifications 1, GENERAL SPECIFICATIONS 1-2 Communication Specifications Item Computer link A] Computer link B Interface RS-232-C RS-232-C | Transmission speed (BPS) |110 to 19200 110 to 19200 Character [Number of [1 L configura~ | start bits tion Number of (8 8 data bits Parity bit |None, even, or | None, even, or odd odd Number of | |1, 1.5, or 2 1, 1.5, or 2 stop bits Transaission system Half duplex Half duplex Synchronization system | Asynchronous Asynchronous Control system De ve ‘Trans- Control code|With parity or | With parity nission no parity code Data 180/aS¢IT IS0/ASCIE See 4 for the pin assignments, signal names, and connection method of the RS-232~C external cable. COMPUTER LINK A 2-1 Outline of Computer Link A 2. COMPUTER LINK A 2-1 Outline of Computer Link A This section explains how to use computer link A. Computer A configures the commands so that work programs can be up-loaded or down-loaded from the host to an unmanned NC. For opening to the user (software is prepared by a machine manufacturer), an interface performing host communication with a unique command defined is available. Therefore, the machine manufacturer can add its original machine by using the communication interface. al provides information to prepare host computer software (comand }. “However, detailed information of the communication interface open to the user PLC is required to prepare software providing the original function using the user PLC. For details see 2-4-2. 2-2 Computer Link A Software Contiguration NC block Work program S | Blew Criutti tesk)| 2. COMPUTER LINK A 22 Computer Link A Software Configuration Original function (Csnquage) PLC communication function chine UF Machine 2. COMPUTER LINK A 2-3 Function Outline 2-3 Function Outline M500 Sunde tunctone arr un Deain } serorne Het wrk rogram naar rch | su Wiotk program uprioad Work program deletion NC work propram number search host computer BS-232-£ Development by using ‘Clanguae PLC communication function {user-defined commands) (orepared by machine manufecturet! The standard functions are classified into the functions started through CNC (BTR run, data in, and host work program number search) and the functions started through the host (work program up~load, down-load, deletion, and number search). In addition, the PLC commmication function (user-defined commands) can be used. This function enables communication between the host computer and user PIC if user PLC is prepared by the machine manufacturer. The PLC communication function is eimply to cend the user-defined command received from the host computer to user PLC and for communication software to send a response set by the user PLC in a buffer to the host computer. Command analysis processing and data processing should be performed by the user PLC and host computer respectively. See 5-2 for user PLC programming. COMPUTER LINK A 2-3 Function Outline Function Started by: : Function outline BIR run onc is sent to the host as a starting Signal by the cycle start, and the systen runs vhile reading work program ftom the host. Data in is sent to the host as a starting signal by setting it on the INPUT screen. Later, a work program from the host is read and stored in a CNC file. Host work program number search Search command is sent \o the host and a search is made for work program registered in the host. Work program down-load HOST ‘The NC receives a down-load command from the host and sends a response (down-load enabled or disabled) to the host. When dovn-load is enabled, the NC| waits for a work program to be input. When the work program ie sent from the host, it is received and stored in an NO| file. Work program up-load HOST The NC receives an up-load command from the host and sends a response (up-load enabled or disabled) to the host. When up-load is enabled, the NC sends the specified work program consecutively to ‘the host. Work program deletion HOST ‘The NC receives the command from the host and deletes a CNC work program. NC work program number search ‘The NC receives a search comand from the host and searches for CNC work programs. PIA comm function RosT When the NC receives a user-defined command, it passes the command message to a custom interface. Conversely, the Nc sends a requested message on the custom interface to the host. Note: To implement the above functions. software to enable those functions must be prepared in the host. 24 2. COMPUTER LINK A 2-4 Protocol and Data Format Protocol and Data Format 2nh-1 General Formats of Command and Response Messages a 2) Command meceage (in CNC, file data meane work program) i) Conmand not involving file transfer 1234 Nore DICIE command | D N<260 bytes ce] ule a ¢ MINE memory capac ini STulg ene g ry eapacy i ii) Conmand involving file transfer 1234 4 ¥ RIclE s 2 €/ WIC foes Tt Fe dat (work program) é [>| i x 4 Response message i) Response not involving file transfer 12365 y RIASTE]S D GIN|M[ C/T] Sepome | C Zis|o{m{s| ™ 4 ii) Response involving file transfer 12345 4 « RlAlSlEls $ 2 C(n|wle|t| somec, | z Pi ii rs prowe) g 2|s|b| mls x 4 Command }For response, the sane code as the Expanded command code } conmand is entered. Response code (always 70H) Status (30H: Normal completion, 3FH: Abnormal completion) Note 2: The number of command or recponce parameter data bytes varica depending on the command. Note 3: Transmission starts at 1 and ends at M or N. 2. COMPUTER LINK A 2-4 Protocol and Data Format (3) CMD: Command code definition {rTeis[4[3[2[ifo TT commons numer (9 29 71 ooo } camnor be wes ool 0.1.0 Ms00 atom resoved oll System definition command: 100 Urcdetogd command 101) (31ECommuniatontncton 110) sere eens lili 0 (4) System definition command List of Computer Link A Specifications (1/2) Function System definition conmand BIR run Data in cameras cose Host work I program pez] 1 [| 0 | Pormame] . [pca number az | eu | on | = cect) | caw) search Work program down-load Dez] 2] 0 . | STX Same sr above azn | 2m | Gow cece) | (oom) Work program up-load pez] 3 7 0 | ae | + [Ded azn _| Gam | Gow cca _| ca Work program deletion pea] 4] 0 [pea Same 2 shove az) | Gan | Gow ec _| ai 10 - 2. COMPUTER LINK A 2-4 Protocol and Data Format List of Computer Link A Specifications (2/2) Function Systen definition command (NC Work pro- gram number ez] 5 | 0 | Powmamw] , [Dod ceva Search cam | sm | ow | eas ecw) | cas) PLC communt- gation pce} Agu 0 . Dc4 eee a> am | 5FH | Goo ec | can) Note 1: The PLC communication function command codes (user-defined commands) are defined by the machine manufacturer. For details, refer to the manual issued by the machine manufacturer. (A maximum of 32 command codes (40H to 5FH) can be defined.) (5) Response message and error Basic format of response message 12 345 678 Ze 5 T Gel os wfc]T| | .[c? BD) ms] ax 1 LL. st wr autor leben) stats (35e: Scand crore sare L______ seme cade atthe command ie sent. Response cod (aways 7OH) ror No. (ascut) Meaning 0 (30H) Normal completion 1 (31H) ‘Unused (reserved) 2 (32H) geen, ammaninon oma be continue 3 (aH) SNEERtag he promem wed for automatic operation 4 (34H) “The specified number is not found. 5 (35H) Unsed(esened 6 (36H) Unused (resened 1 (37H) Duplicate program number 3 (38H) __Temeximum numberof eseredpromam is exceeded 9 (39H) [No registration eres -u- 2. COMPUTER LINK A 24 Protocol and Data Format Note: For host work program number search, Ute host couputer sends 2 command response to CNC in the response format shown above. Example 1: Example 2: When the program having the number requested by CNC exists in the host computer. When the program having the number requested by GNC does not exist in the host computer. 2 D S}P|rjojolo) .j¢ D D ¢ S[Pptjo} ejay te] For host work program number search, send only either of these responses to cnc. (6) Error response Function | Host work NC work program Work program | Work program | Work program | program number down-load | up-load deletion number Error NOx | search search 1 Gu) (unused) 2 (32H) CNC is busy | CNC is busy | CNC is busy | CNC is busy NC busy and communi-| and communi-| and communi- | and communi-| cation cation cation cation cannot be | cannot be | cannot be | cannot be continued. | continued. | continued. | continued. Wait fora |Wait fora |Wait fora |Wait for a while. while. while. while. Again send | Again send | Again send | Again send the command. | the command. | the command. | the command. (Note 1) 3 (33H) the Program | Because the NC starting having the | CNC is in requested | automatic program operation, number fs [a search used for cannot be automatic | made. operation, and cannot be deieted. -1- 2. COMPUTER LINK & 2-4 Protocol and Data Format Function |]Host work NC work progran Work program |Work progran| Work progran| program number down-load | up-load deletion number Error NOx || search search 4 (34H) When the ‘the request-|rne requested [rhe requested| The spe- _ |] specified ed program |progran program cified program is number is number is faumber is number not found, not not fact does nat. |{the host registered |regiatered — |regintered exist should . in ONC. in ONC. lin CNC. transmit 4 (34H) to Nc. 5 (35H) (anused) 6 (36H) (unused) 7 G7) The requested Duplicate program program number is number already re~ gistered in onc. 8 (38H) The number of The maximum registered number of programs is registered out of the programe is epeeifica- exceeded tions. ‘Additional program can— not be registered. 9 (39H) CNC memory No regis~ area is full. tration Additional area work program cannot be registered. Note 1: Work programs other than that in automatic operation mode can be deleted even in running. = 2. COMPUTER LINK A 2-4 Protocol and Data Format (7) Pile data (work program) format 1) Work program down-load, data-in, BIR run 2 E E 8 6 B] 01234 WAIN ) |B] G28 Xx a I T ww} 1 1 T Suieagwage cruptelsbyme | Nwererm 3 aE? ™ B MO2 BIR 2) [an] oo | 4 Note 1: the part @ ts not necessarily required. When file data contains a program number, the number is input taking precedence over the number specified in the command. Note For data in, if file data contains two or more work programs, the data can be input, that is, work programs can be input consecutively. For dowa-ioed or BTR run, only one work program per file can be transferred. Note Example: Data in E E Ez E]D 6 for GB] 02 mmm 1G] 03 S)c 5 B B LR] 4] Example: Down-load, BTR run E Ofor se Ey] B RIG -u- COMPUTER LINK A 2-4 Protocol and Data Format 2) Work program up-load Note: output. E]E E 6] 6 6 R]B | 000001234 aln-rrocm ) | B| G28 —~# @ [dn L L a | 7 ' Were) t conaiewiniensth — stupteiwoyes Non progen g ele]. 0 6} 6 ~ B| woz |B} Ri] Cc ) an} oo | 4 Comment 1) When a coument is registered, 18 bytes containing space are (MAIN-PROGRAN Jo) When a trailing canent ie leas than 18 bytes, apace is inserted in the region. 2) When no connent is registered, ( ) ts output. (8) Teansmission control character List Coutrot | Hexadecimal # leode | (ascrt/180) Meaning 1} DeL 11H/118 This control code instructs the host computer to start or transaission or restart halted trans~ nission. 2) pez (128/128 Beginning of command 3 | Des 13H/93H This control code instructs the host computer to halt transmission. 4 | De4 (14n/14n End of transmission (terminator) 5 | NAK 15H/95H Error notification (Data has been sent abnormally ie notified.) -15- 2. COMPIFTRR LTNK A 2-4 Protocol and Data Format Control | Hexadecimal # |code | (ascr1/Is0) Meantag Ls ‘SYN, 168/968 Reset notification (forcible termination) 7| six 028/824 ‘The control character indicates command or response separation and also indicates that file data transfer follows. 24 gy transatseton codteol byte other than these seven bytes te transnttted Eo CNC, CNC malfunction is caused. Transmit any of only the seven transmission control bytes to CNC. (9) CNC data code table (do not use codes not listed in the table as CNC data.) 1) Valid codes as CNC data Tanase T see bi of afte] 3s} 4a4}sfe6ja7 fourbits | 0(0) | 1a) 2(2) 3(3) 4(4) 5 (5) % 6(6) 17) 8(8) ‘ 9(9) ) 10(A) | uP¢@oey} ei: 1(B) + 12(c) : 13(D) - |=] MCE) : | 15 (F) / | 1 AN 3EH & 26H 2 3FH s 24H - 6 40H : 27H 28H Note: ‘The TSO codes carresponding to the ASCII codes shown above are valid as ISO code communication data. OR (ODH) and ; (3BH) are insignificant codes and cannot be used as EOB. (20) General format of conmunication 1) Command not involving file data (work program) transfer (work program number search, deletion, PLC communication function, host work program number search) = 2 p 2 4 ‘Response P 3 ¢ € 2 4 -w- 2. COMPUTER LINK A 2-4 Protocol and Data Format 2) Command involving file data (work program) transfer (work program down-load) Host ene $ 2 ; smo 2 2 D 4 ie ¢ | 2 4 2 ¢ Fie ene eT Ik 2 ¢ 4 3) Response involving file data (work program) transfer (work program up-load) HOST ‘Command D D c c 2 4 p c T cnc Sot man Fite data soo 18 - 2. COMPUTER LINK A 2-4 Protocol and Data Format 4) File data (work program) transfer only (data in, BIR run) HOST cnc ‘Command 00 File ce 00 (11) Handshaking The receiving party requests the transmitting party to temporarily stop transmission and restart transmission. Host (CNC) cNc (Host) ore rerun count { —= oa Number of data bytes received efter the rectiving party Sutputs Bo8 fo bree or les} oo Tine sar — [pei File data transfer handshaking between the host computer and CNC is performed by using and codes. DG3]: Transmission temporary stop request sent from the receiving party a Transmission request or transmission temporary stop release request sent from the receiving party- -19- 2. COMPUTER LINK A 2-4 Protocol and Data Format After CNC outputs transmission temporary stop request, the host should stop file data transfer within 10 bytes. If data of 10 bytes or more is transferred, CNC terminates with an error (LO1 COMPUTER LINK ERROR 17). + when £210 data (work progran) is transmitted from the host to CNC, NC transnits for handshaking whenever NC receives 250 or 248 bytes of file data. HOST cnc Det 250 bytes (work program download, datain) Fie dace {work rogram) 248 bytes (TR run) DCs Del (42) Error code (NAK) transmission (a3) When a communication error occurs, NC transmits error code [Ber] to the host. Prepare host software so that similarly the host transmits error code to NC when an error occurs. HOST enc [ax] [Der ror occurence mee Reset code (SYN) transmission When the NC _reset switch (RESET l)or the like is pressed, CNC transmits reset code to the host. For details, see 2~4-3 communication example (8). HOST cnc syn] [pei Rest stch i prose = 20- a4) Cautions on protocol b Inhibition of consecutive commands 2. COMPUTER LINK A 2-4 Protocol and Data Format TE consecutive commands are transmitted from the host to CNC, communication may stop. After receiving a response to the transmitted command from CNC, the host should transmit another command. HOST D D ¢ c 2 4 D D ¢ c a 4 Command 1 2 D c c a 4 Command 2 D D C c 2 4 cnc Tron _ Response to command 1 | procedure > BI ee ¢ L 2 4 Response to command 2 2 2 ¢ ¢ 2 i = -2- 2) 2. COMPUTER LINK A 2-4 Protocol and Data Format Caution on command or response involving file data transfer When the host transmits a command to CNC and receives a normal response froa ONC in work program down-load or up-load, the host aust always receive or transit file data conforming to the work progran download or upload protocol. If the host again transuits a comand to ONC after receiving a noraal response from CNC, comminication nay stop erroneously. HOST ~ ea cnc ‘Werk program downoad command D 3 Norns reponse cle t = : : g 2 z 4) fo] : ¢ i command D D g ¢ z 4 aaa pra Work orem uoioud | command 2 D Normal remonae g]2 ej ob 5 i 2 s & Tt 3 x Command 2 R 8 g z 4 -22- 2. COMPUTER LINK A 2-4 Protocol and Data Format 3) Duplicate command In some timing, a command may be transmitted at a time from both the host and CNC, in which case CNC may terminate abnormally. HOST cnc Work proeram downoad Work program upsiosd rogram deletion Work program number search PLC communleation function Command Commend T Q D D ¢ c cjijo ¢ a 4 z 4 ork program downdoad (Clo may serine Work proram up tosd Sonormalty Werk prosram deletion Work prosrary number search “C communication fonction Data io, BTR run wo0 g = a5] 7 ENC may terminate sbocrmaly 2-4-2 PLC Communication Function (i) outline If the message structure and command codes are defined between CNC and the host computer, communication between the user PLC and host coaputer through the PLC communication function is enabled. (For example, tool data controlled by the user PLC can be up loaded, down loaded, etc.) However, command analysis processing and data processing should be performed by the user PLC (C-language). -23- ‘The communication format is as shown belot 2. COMPUTER LINK A 2-4 Protocol and Data Format HOST cNc (cnc) (HOST) ‘Command 2 c Response to command 2 D c 4 D c 4 2 ¢ : 2 Application example: To add an original command of tool data down-load, for example, define the following: 3) Command m1 2 4 a Soe 3 3 BL] Satie ise amour “Too! number, eurter compensation amount, 200] 5 >) Response Parameter meaning | ners tre ‘command code of tool data downoad D € 2 = D c 4 oan om moe Le ornate 13 0H: Compietion (0K) UgPH: enor Response code ~ 24 2. COMPUTER LINK A 2-4 Protocol and Data Format (2) PLC oftware production i CNC : | Work program dowload rae cere \ Werke program number seerch DB] 2 > nos User PLE (CSianguspe? PLc communication unetion {userefined command! \ Software performing procesing Felaned to user defined commande © When @ system definition command is received from the host, the communication software transfers the command to the user PLC. The user PLC should process the command, generate a response message to the conmand, and transfer the response message to the communication software. The commnication software transmits the received response to the host. © If for example, a tool data down-load command defined by the user is transmitted from the host, the communication software transfers the command through PLC interface to the user PIC. Prepare user PLC so that user PLC software has following function. @ PIC checks whether or not a received message exists in PLC interface @ 1 the message is a tool data down-load command, PLC searches the parameters and rewrites tool information on the corresponding tool (coumand processing) @ Pie generates a response message and cats it to PLC interface For details, see 5-2. - 25 - 2. COMPUTER LINK A 2-4 Protocol and Data Format 2-4-3 Communication Framples - The characters used in the examplec corrcopond to the characters in ASCII code table except that EOB corresponds to Lp (OAH). (1) Response only (command transmission from the host) ‘CNC work program number search Work program deletion PLC communication function ost oxo Example 1: When a search is made for work progran OLL11 registered in CNC Command D D ¢ 1}1y.je gf 5] oja}a g P| D oy.j¢ a 4 (how 9 | Example 2: When a search is made for work program not registered in CNC (Aseume that 02 ic not registered in CNC.) ojole|. 09 D 2 wi Le | (The specitieg number ist found) Example 3: When the host communicates with CNC user PLC (PLC communication conn D D Cclalo Cc § { 1 3 R etna ee 2 we ‘When the command is defined as 41H (A) = 26 - @ 2. COMPUTER LINK A 2-4 Protocol and Data Format The message structures in (@) and @) should be defined by the host and user PLC. Note 1: The host should perform processing corresponding to the response contents. Response only (command transmission from CNC) (host work program number search, PLC conmunication function) cnc _HosT Example 1: When a search is made for work program O1111 registered in the host See 2-9 for the operation method. ib c d Norma emonie Neto BT] D . "search execution” | |C} P| 1/0] 0]0| .|C {8 digit program number 2] I 4 istranmited to he het. When the specified work Program is found, fhe hort should anemit 2 noemal response to CNC. When receiving the normal ‘sponge, CNC day “SEARCH COMPLETE” Example 2: When a search is made for work program not registered in the host (Assume that 02 is not registered in the host.) Command | a When the specified work program snot found, the Feaponse& (No, not foun tone -27- 2. COMPUTER LINK A 2-4 Protocol and Data Format Example 3: When user PLC contained in CNC communicates with the hast (PLC communication function) GNC (user PLC) HOST Common 09 @ Oo e Noo 200 as 42H (8) @ The message structures in @) and @ should be defined as required at both the host and usec PLC. (3) Format involving file data transfer (Work program down-load) Host cnc Example 1: When work program 01111 is down loaded into CNC (Assume that O1111 is not registered in CNC.) Command Nao >a Normal response 2 S]Pi2jojolo 2 — Wore 1) D ¢ T (Wote2) Fite cea bwork proacam) | o1111 (warn) Reequest for temporary stop B of transmission Request for restart of tempor ‘Ropped transmission wor mom a) Ye) - 28 - 2. COMPUTER LINK A 2-4 Protocol and Data Format Example 2: When No. of program to be down loaded ic already regiatered in cnc (Assume that 02 is registered in CNC.) Command | Blafolojoljol2|.jz a x Error response 2 D clp}z2jolel7].je 2 4 (ore 4) Note 1: Note 2: Note 3: Note 4: NC transmits normal response, and next [DCI] to the host. The host should start file transfer after receiving Flow control when file data transfer is in progress is performed by using [Dci] [063]. After receiving error response, the host should transfer no file data. 29 - @ COMPUTER LINK A 2-4 Protocol and Data Format Format involving file data transfer (work program up-load) HOST enc Example 1: When work program O1111 is up loaded into CNC (assume that O1111 ts registered in CNC.) ‘command 2}afofajalali] fe 5 LE] TT era ct 2 Ts |_ 4 |g} P|siojolo|.|t Wore 1) z l x legate }-——_| [e[E twote3) 5} G}oooc01111¢ R[B eaves or wmporery sop DC3 of transmission [per E | ruc xrenactvencorny | DCL r]o ‘Sopoed tansmaion t——__} an 6[S}¢ ——" Bi R|4 Example 2: When the work prog! (Assume that O1111 ran to be up loaded is not registered is registered in CNC.) enna D2 D 21°92] EE] J ee | D LF P FE to CNC. in CNC) (Specified number isnot found.) Note 2: When receiving [DCL], ONC starts file data transfer. Note 3: Note -30- receiving normal response from CNC, the host should transmit When sending error response, CNC does not transfer file data. COMPUTER LINK A 2-4 Protocol aad Data Format BIR run) enc Es] of eonemision Request for erat of temporally stooped taremission (5) Format of file data transfer only (data in, HOST See 2-9 for the operation method. (Wore 1) File to [E 0} 01 (MAIN 8 ) (Wore 2) pes E/E|D Oo] o/c BUR|4 Note 1: When receiving [DCL Note 2: Flow using |. Note 3: Although BIR run work is complete, completion code to the host. —31- (Note 3) |, the host should start file data transfer. when file data transfer is in progress is performed by CNC does not transmit machining 2. COMPUTER LINK A 2-4 Protocol and Data Format (6) NC flow control during command transmission When a command is transmitted from the host to CN data which the host tranemits CNC once transmits transmits ery three bytes of and then again to the host and receives the remaining command part. Example: When a work program deletion command is transmitted to CNC Deletion command (01111 deletion command) D € 2 © =0o HOST cnc ° — 2 ee 3 D Cc 1 1} }——__ [= ~32- 2. COMPUTER LINK A 2-4 Protocol and Data Format (7) Sending the error code (NAK) 1) Protocol error or input/output parameter error 2) ONC file error during file data transfer (data in, work program download, up-load) 3) Program error during BIR running When any of these three errors is detected, CNC transmits [WAK],[DCI] to the host and terminates communication. After receiving [RAK] [BCL], immediately the host should terminate communication. CNC nay regard file ceived after error occurrence as undefined data, transmit to the host, and display error (101 COMPUTER TINK’ FRROR ~32)~ Host cnc. Example 1: When undefined command code is transmitted Command D D ¢]xjofijifaja].|¢ z 4 (owe 1) 7 N[D] | erormenace Undefined command ALC] isciieves KU (L01 COMPUTER: LINK ERROR ~ 23), Example 2: When CNC file overflows during work program (file data) transfer in data-in or work program dovn-load ol NB] « Seat Kit (LO1 COMPUTER LINK ERROR ~ 49), Note + For the error contents, see Appendix 1. = 33- (8) + COMPUTER LINK & 2-4 Protocol and Data Format Example 3: When a program error occurs during BIR running Wore 1) Error messge is %& diplayes on > aD Note 1: For program error (Puxx), refer to "Program Errors" in the MELDAS 500 Series Manual. Sending the reset code 1) When NC RESET switch is pressed 2) When energency stop is turned oa 3) When the ONLINE switch is turned off When any of these three conditions is met, CNC sends DCL] to the host regardless of whether it is communicating or stands 1 ee) conmunication. When receiving [SYN] [DCL], immediately the host should stop data transmission, If the Host Contiaues data transmission sitll after receiving NC may send [RAK] to the hoat aad Gisplay LOL COMPUTER LINK ERROR ~32 (or ERROR -17). Note: Even if the NC RESET switch is pressed or emergency atop ts turned on in the offline mode, ONC does uot send [SYN] [DCI]. HOST Nc Example: When NC RESET (RESET 1) switch 1s pressed when file data down~load is in progress File date % Norene meser -34- 2. COMPUTER LINK A 2-5. Errors 2-5 Errors 2-5-1 Error Message Display (1) 14-inch CRT display rosa Tray enraneon wert oe Sumer 212 Rew mmocu 211 rorrna | | sncenau>couscr fotos $12. Severso. 9 Pe Ter ear acm reset 1 comvers ra B Seaton 00 & #10 eee & E=) Pd Bie & Be a to 10 coat 00> 120 10 100 cou 90089 10 28 co oO —ea 03 C—O tbe Tae ourror | com _|_emst_| omen | nano * i (2) 9-inch CRT display TOATA INPUT! wiour 1 21 MAINPROGRAM — 211 PORTNO. 0 2 2 TOOL DATA 212 DEVICE NO. 0 = 3 parameter PTR Fg Move <@AUDRATE> 4800 2: come. J 2 Data ) c=? wa Z,iseGr7| OUTPUT ERASE FILE MENU 1) When an error oceurg, an error message is displayed in the field @ or @ (atoplayed in @) only in date-in or hoot work program munber search). See the following page for the error messages and display fields. 2) An ertor message is always displayed in (@) on every screen. The error number is displayed following an error meSsage on the DIAGN screen. Example: 01 COMPUTER LINK ERROR -4 —35- 2. COMPUTER LINK A 2-5 Errors Computer link function Error message Display field Work program down-load LOL COMPUTER LINK ERROR Work proyeam up-Load LOL COMPUTER LINK ERROR Work program deletion LO1 COMPUTER LINK ERROR Work program number search 101 COMPUTER LINK ERROR PLC communication function LOL COMPUTER LINK ERROR Data in LOL COMPUTER LINK ERROR ELL PROG NO. DUPRI E66 NO PROG NO. B86 INPUT DATA ERR E12 FILE ENTRY OVER ELO MEMORY OVER Host work program number search LOL COMPUTER LINK ERROR BIR run LOL COMPUTER LINK ERROR P462 computer Link error| Prax (Program error) ©©CG/0/ © G00 GG/E/E/E/O/0 For program errors, refer to the M500 Series Manuals. errors, see Appendix 1. -36- Note: When a setting error occurs, an error message is dis- played in the field For communication 2-5-2 Error Message Clear 2. COMPUTER LINK A 2-5 Errore ‘The error message is cleared as follows: (1) When the NC RESET switch is pressed the error messages "LOL COMPUTER LINK ERROR” "P462 COMPUTER LINK ERROR" “Pxxx (Program error)” are cleared. (2) When the function started through the host computer (work program down-load, up-load, deletion, or number search) starts to execute} the error message “LO1 COMPUTER LINK ERROR” is cleared. When the PLC communication function is executed, however, the error message is not cleared. (3) When the ONLINE witch ie turned off, the error meccage "LOL COMPUTER LINK ERROR” is cleared. 2-5-3 Processing after Error Occurrence For the functions started through the host computer (work program down-Load, up-load, deletion, number search, and PLC comminication function), CNC can receive another command still after "LO1 COMPUTER LINK ERROR” occurs. For the functions started throngh CNG (data in, host work program number search, and BTR run), again set after pressing the NC RESET switch. When or (SYN DCI], the host should be initialized and enter receiving [NAK] [DCL the preparation state for-execution of the next command. See Appendix 1 for actions to be tukeu after ertor occurrence. -37- 2. COMPUTER LINK A 2-6 Computer Link A Parameters 2-6 Computer Link A Parameters The parameters to execute computer link A are roughly classified into the following three types: (2) CONTROL PARAMETER: 46. HOST COMMUNICATION to cnable the computer Link (2) 1/0 BASE PARAM to set system connection (3) COMPUTER LINK PARAMETER for the computer link COMPUTER LINK PARAMETER screen 9-inch CRT: I/O PARAMETER SETTING screen 5 Ld-inch CRT: I/O PARAMETER SETTING screen 3 Note 1: The parameters become effective by pressing the NC reset switch after the parameters are set. Note 1: Computer link A can be turned on and off using CONTROL PARAMETER: 46., HOST COMMUNICATION. ~38- 2. COMPUTER LINK A 2-6 Computer Link A Parameters 2-6-1 Input/output Basic Parameters (1/O BASE PARAM] (1) 14-inch CRT display WO RASEPARAMI our ex 1 oman 2 {c wacRO PRINT 5s meiour MEMORVE( ) OATAL YC) (2) 9-inch CRT display WO BASE Panam swour avs +40 som cence. 5 Pucinour 7 PocKETeeLL =39- (3) 2. COMPUTER LINK A 2-6 Computer Link A Parameters| Input/output basic parameter contents The parameters with circled number are valid for computer link A. Parameter Explanation Set range DATA IN ‘The I/O port number and device number to input @ work program are set. DATA OUT ‘The I/O port mmber and device number to which the data such as tool data parameters and work program are output are set. NC RUNNING The I/O port number and device number of an input device where work program is input in tape operation mode are set. ‘MACRO FRINT ‘The I/O port number and device number of an output device from which a command is output to external in user macro are set. PLC IN/OUT The 1/0 port number and device number where a variety of data is input/output through PLC are set. The parameter cannot be used at present. (For function extension in the future) Host communication The device number where a variety of data is input/output by using the computer link function is set. The NC assumes the contents of the I/O port as 3 regardless of the set value. Item Port Device Host communication |Not applicable| 1: Computer link A 2: Computer link B = 40- Note: The link type of a computer link is set by the device number of the host communication. 2-6-2 Computer Link Parameters [COMPUTER LINK PARAM] (COMPUTER un FARA © staat cone 2. COMPUTER LINK A 2-6 Computer Link A Parameters| our 620 2 Recount * The parameters with a circled number are valid for computer link A. -a- 2. COMPUTER LINK A 2-6 Computer Link A Parameters ‘Type of Parameter Explanation Set range (unit) | computer Link used BAUD RATE See the data transfer rate. 19200 (bps) | A, B 9600 4800 2400 - 1200 600 300 110 STOP BIT Set the number of stop bits in|1: 1 (bit) ALB asynchronous mode. See #3 1.5 PARITY EFFECTIVE. 2 PARITY ameter to use the parity Parity bit is] A, B EFFECTIVE bit in addition to the data not included bit in input/ output data. —— Parity bit ie & included in See One eye dante input/output data. ‘EVEN PARTTY | When the above parity is Odd parity [A.B effective, select the even or |1: Even parity odd parity. If no parity is set. this parameter is ignored, car. LENGTH | Set the data bit length. 5 (bit) ALB See #3 PARITY EFFECTIVE. 6 7 8 HAND SHAKE | RS-232-C transmission control |0: No control | A, B system. For computer links A | 1: RTS/CTS and B, specify the DC control control system. For computer Tink D. system specify no control or RS/CS | 2: No hand- control. shaking 3: DC code system 42 - 2. COMPUTER LINK A 2-6 Computer Link A Parameters ‘Type of Parameter Explanation Set range (unit) | computer Link used TIMB-our SET | Set the time-out period to 0 to 999 (1/10 fA, B PARITY detect data transfer stop when | second) data is input/output. Time-out period setting must be changed-according to the transfer rate. If the parameter is set to 0, the ‘time-out period is set to about 90 minutes. Data code Set the code to be used. ASCII code | A, B 180 code ‘Bit_0:_Gheckeum Checksum A parameter 1 | This bit selects whether to enabled enable or disable the checksum Checksum function of computer link A. disabled ‘The checksum function of computer D is valid regardless of this parameter. Bit_l:_DCl output after NAK D1 code not | A, B ox Suv output After outputting the NAK or DCL code SYN code, this bit selects output whether to output the DC1 code, Bit 5: Buffer correction Buffer ALB This bit selects whether to correction enable or disable the buffer disabled correction during operation. Buffer correction enabled Bit J: Resetting disabled Computer Link | A, B This bit selects whether to resetting enable or disable the enabled resetting of the computer link 1: Computer Link Usually, specify 0 in this resetting parameter. disabled 43 - 2. COMPUTER LINK A 2-6 Computer Link A Parameters ‘Type of # |. Parameter Explanation Set range (unit) | computer link used 10) Link Bit_l:_CR output 0: CRI code not | A parameter 2 | This bit selects whether to output output the CR code. 1: ORI code output it 22 Without ALB ‘This bit is valid only when control code the DC control system in 3 is parity selected in #6 (handshaking | 1: With control system). It adds the even code parity parity for a control code. Set this bit according to the 1/0 device specifications. 3 0: Invalid AB . | Set this bit to check parity V1: Valid in a block during date input. 11| Link Not used parameter 3 12| Link Wot used parameter 4 13) Link Not used parameter 5 14| start code | A code indicating the 0: DeI ALB beginning of the first file | 1: BEL data transfer is set. This code is for specific users. Usually. specify 0 in ‘this parameter. 15| Control code | Bit 0: NAK output 0: NAK code not | B output Tf a communication error output occurs in computer link B, 1: NAK code this bit selects whether to output send the NAK code to the host. 2 o 0: S¥N code not |B For NC resetting or emergency output stop via computer link B, this|1: SYN code bit selects whether to send output ‘the SYN code to the host. ve 2. COMPUTER LINK A 2-6 Computer Link A Parameters| Type of # Parameter Explanation Set range (unit) | computer Link used 15| Control code | Bit 3: DC3 output : DCS code not | B output For communication termination output via link B, this bit selects DC3 code whether to send the DC3 code output to the host. 16 | Control code | Not used time interval 17| Waiting time | When a command is received 0: 255 (1/10 A from the host via computer second) link A, the system waits the time specified in the waiting time and returns a response command. Also, the system . | sends @ file transfer starting code (DC1 or BEL) for work program down-load after waiting the specified time. 18 | Packet length | Not used 19| utter size | when data is received by the | 248 to 4096 (byte) A, B number of bytes specified in the buffer size, the DC3 code is output. Usually, specify 4096 in this parameter. 20| Buffer size | When receive buffers receive | 248 to #19 ALB for operation | as much data as specified in | (buffer size) start this parameter, the system in bytes starts operation. Usually. specify 248 in this parameter. 21] Dei output | When the data size in receive | 248 to #19 ALB size buffers decreases to less (buffer size) than the number of bytes in bytes specified in this parameter, ‘the DG1 code is output. Usually, specify the same value as #19 (buffer size) in this parameter. 45 - 2. COMPUTER LINK A 2-6 Computer Link A Parameters| ‘Type of # |. Parameter Explanation Set range (unit) | computer link used 22| Polling time | Specify a waiting time after |0 to 999 (1/10 | * a control code for data fron | second) ‘the host is sent to the host or one for data from the NC is received from the host. ‘The system sends the next data or control code after waiting the specified time. 23| Transmission |Not used switch time 24| Retry count | Data to or from the host is | 0 to 99 . retransmitted if it 1s determined to be invalid as a result of checksum. Specify ‘the number of times of retransmission in this Parameter. Parameter to be used in the future 46 2-6-3 Online Operation Signal 2. COMPUTER LINK A 2-6 Computer Link A Parameters To validate computer link A, CONTROL PARAMETER "46. HOST COMMUNICATION” must be turned on. ‘When CONTROL PARAMETER "46. HOST COMMUNICATION" is turned on, the NC internally turns on the ONLINE OPERATION SIGNAL (Y1F8) of the PLC ladder interface. Computer link A is validated when ONLINE OPERATION SIGNAL (Y1F8) turns on. When 46. HOST COMM in CONTROL PARAMETER of the PARAM (user) screen is set to ON, computer link A is made effective and "c" is displayed at the bottom of the NC screen. To make computer link A ineffective, set 46. HOST COMM of CONTROL PARAMETER to OFF. When the computer link is set to OFF. " sends to the host.) (2) 14-dnch cRT display TcONTROL PARAMETER wows gegy gues (2) 9-dnch ORT display {CONTROL PARAMETER] Pana BRILL axis? Poe eRe, : z 2 pasa: Bae: eh ey e MANUAL IT RST oD disappears. (At the time. ONC To connect PIP or PIR to the port 3, make computer link A ineffective, osteo EE 2 ‘% RWO (SEARCH! = -a7- To make computer link A effective CONTROL PARAMETER screen Set 46. COMPUTER LINK to ON. Enter [4] (6) in #( ) and Press fo) « ‘COMPUTER LINK 4 2-6 Computer Link A Parameters ‘4inch ORT capley 48 Wostcomm > 1 Bena calor changes from biue to vellow To make computer link A ineffective CONTROL PARAMETER screen Set 46. COMPUTER LINK to OFF. = 48 - oH 1 + On dinch CRT dpi, display ‘Shanges to reverse play. ‘ymen computer ink As mace ‘Mtoe, "2" deployed ot ‘he boom ofthe screen ‘blach CRT ciplay 46 Hostcomm Display changes from blue t yellow. + On oineh sere, reverse ‘Seplay i restored to normal depay. 2. COMPUTER LINK A 2-6 Computer Link A Parameters If the NC power is turned on when 46. HOST COMM on the CONTROL PARAMETER screen is ON, it takes about 10 seconds to make computer link A effective. CONTROL PARAMETER sersen 48, WostcoMM, ‘Yellow copay on 14-och CRT display Reverse delay on Ginch CRT deploy : NC power OFF é NC power ON ‘CONTROL PARAMETER screen 48. HOSTCOMM Vallow dinpiny on t4-inah CRT deploy Reverse eplay on Sinch CRT aispay ——— c ‘ttakes about 10 seconds to 49 - 2. COMPUTER LINK A 2-7 Exclusive Control 2-7 Exclusive Control When the function activated by CNC (data in, BIR run, or host work program number search) is executed, if port 3 is already used for another function, such ac work program download, the requected function is not executed and an error message is displayed on the CNC screen, then processing terminates. At the time, the current function continues to be executed. Work program is being down loaded + Detain communi + BTR software + Host work program number S search v Error message diplay Requested function Errot message Data in E85 LINE BUSY Host work program number search | E85 LINE BUSY BIR run P462 COMPUTER LINK ERROR = 50- 2-8 CauLlous ou Usage of Computer Link A 2-8-1 Port 3 Change by Using ONLINE Switch Port 3 function selection 2. COMPUTER LINK A ‘2-8 Cautions on Usage of Computer Link A ONLINE switch | ONLINE switch ON ONLINE switch OFF Punction we" status display | No status display | Computer Link A oO — | Normal serial input/ a | owepue | ° 2-8-2 Software Provided by Host Cosputer rR run odin 8 i xe ea] | + | seach torton work [ ssh tor or work | | prem numer | eparscnte | 4 | i, | | {BTR run or ta a | | (Ramsar wes | | | tly | ea -s1- Reception of error signal_.> Error oeeurrence i Reception of reset signal > Error displayed Error eluplayed E+ enor sispiaves Nereset oe. 2. COMPUTER LINK A 28 Cautions on Usage oF Computer Link A 2-8-3 Cautions on Host Work Program Number Search To set host work program number search, set only the parameters © number and tape selection. For details. see 2-9-1. SEARCH screen Example: To call 01234 O(1234)N( )-( ) OPC) ov ca) | Do not set any vale here. 2-8-4 Cautions on BIR Run (2) BOR, BOB, and DC& Be sure to add EOB to the beginning of a work program for transmission. Be sure to add EOR and DC4 to the end of a work program for transmission. 01234 G28 woe oom wom Swom Snom ‘00 If a work program does not begin with BOB, the first one block of the work program is ignored: if a work program does not end with DC4, communication does not terminate. If the time-out value is set, transmission terminates abnormally with time-out end (LO1 COMPUTER LINK ERROR -4). (2) Transfer data Send work programs from the host in ISO or ASCII code. Set the CNC parameters as follows: Data sent from host | UNC setting [I/O DEVICE PAKAM Screen] Iso Data ASCII: 0 ASCII Tate ASCTT: 1 =52- 2. COMPUTER LINK A 2-8 Cautions on Usage oF Computer Link A (3) CR and Le To send a work program from a personal computer, send Ly (OAH) for EOB. A line feed is transmitted by adding Cr (ODH) Ly (OAH) in some type of ‘personal computer, in which case Cr is buffer-displayed as (J: there is no problem on BIR run. eee XT as. am F'aee Y 345,678 ig oo 7 0.000 ee 0.000 2345 M 56 1234 B1234 However, note that if a personal computer from which a line feed is sent only with Cr (ODH) is connected, BTR run cannot be performed. (4) 2 format Unless variables are used, BIR run is enabled in the M2 format. Tf variables are used. BIR run terminates abnormally (P32 ADDRESS ERROR) . (5) Processing after error occurrence If @ program error occurs’ during BYR running, the host should search for the head of work program and CNC should activate cycle start after NC is reset. (6) Restart search The restart search function is not available. (7) Tape search The tape search function is not available. (8) Graphics check search ‘The graphics check search function is not available. (9) ONLINE switch Do not set the ONLINE switch to OFF during BIR running. —53- 2. COMPUTER LINK A 7-8 Cautions on Usage oF Computer Link A (10) BOB code sent to ONC To send a work program, be sure to use OAH (Lp) for EOB. If 3BH (;) is used for HOB, a program error occurs. 2-8-5 Cautions on Data In Data in limitations ‘There are the following limitations on data-in: Data-in Performance and Limitations Item Data in ‘Transfer rate 19200 bps Parity V Available (parameter setting) Parity H Available (parameter setting) Comparison None My format Available under some condition (variables cannot be used) HOR at the data end Required Comment, Gan be registered Available characters ASCII/ISO Ly. CR processing Available (parameter setting) ‘Time-out period Parameter setting 2-8-6 Cautions on Use of Computer Link A (1) If ONC runs in memory mode, etc., and becomes busy, the actual baud rate of communication may lover. (2) When the host issues a command to execute the work program dovn-load, up- load, number search, deletion, or PLC communication function, if NC is already executing input from PTR or output to PIP at another port (port 0 or 1), the command sent from the host may not be accepted. (3) Host to be connected If a line feed is transmitted with Cr (ODH). Ly (OAH) from the host to be connected or personal computer, work programs cannot be up loaded. 54 — o>) (5) 2. COMPUTER LINK A 2-8 Cautions on Usage of Computer Link A Reset, emergency stop, and error occurrence during work program down-load or data in If NC reset, emergency stop, or an error occurs during work program down- Joad or data in and data transfer is stopped, the data transferred so far is regietered in CNC. Online switch Do not turn the online switch off during excution of a function. = 55- COMPUTER LINK A 2-9 Operation Description 2-9 Operation Description 2-9-1 Host Work Program Number Search Before a work program in the host is run or data is input, the program number or other data is searched. Search for the specified program number is requested by setting 3 in the device (DEV). Ope . Press (ORTTOR) and [SEARCH] ana HOST CNC all the SEARCH sereen | ‘Set the target program number and ape ‘eorch mode, Example: To calt 01294 Seo mama N..)0eve, (1234) N( )-( ) cue _yneW(a) | a, Sy | Pros INPUT] 1) Search ie taed. (6-0) 2) the specified program number ie fund, a SEARCH (COMPLETE moseage ie delayed. (C+) Do not et ‘ive e} * Geancn execuTiOn i oM2s4yN¢ d= ¢ ) cre MOE) ) When 2 commend is transmitted ‘State display C ipetemie wena | BeceuTION t denlayed | b ne re . Blefalololol. (2 + sean conus a a NN oO NC =) PC nv) ened: meee SEARCH Sime oni Coc) | CaMBCETE TE Syee Error reapone (end nly (4) Socled nomber et ound) ~ 0 | ID * £03 NO. NOT FOUND Pilot Ie ot NC )-¢ ) eC Doev > NN, When aor response 4 Gpaciid number Sate dopleye ae iSued i cened€Es NOTNOT coc) | BSONE Santee = 56 - 2-9-2 BIR Run 2. COMPUTER LINK A 2-9 Operation Description While the work program found in the host is being read, machining is executed. = DeL ce) File da (orork proaremt ced Deca ope Sette tape ode by Semele CO segue Select any desied overie value by setting the RAPID FEEDRATE OVERRIDE? fed SPINDLE OVERRIDE sed SPINDLE OVERRI ReSTENH rexonare ovenwioe in | ecm rere ser Ol -345, 678 345, 678 1234 81234 *c* satus deployed during fl wanster. I When CNC reoives [BEE] rom the ost the status resoredto "c= 2-9-3 Data In Host work programs can be input. 2. COMPUTER LINK A 2-9 Operation Description If a program number is not specified in the input data, it is registered in the program number set on the screen. HOST cNc pei] Lo cod Fie ce (work rogram EXecUTION co) % Dc4 oe “DATA IN COMPLETE” ced operation ress [OATATNIOUD and (IBID a cat the DATAINPUT scree. ‘Set the data type and progam aumbsr, it “To esse program 01000 Set#()) OATA (1.G0 Wi}. # (1) ava (1000) Example: 1 Search ie stated. (2-6 2) Hf program umber snot sou in th int Sets the abovementioned sp ‘When the entire data is input normally and [DEE] [srecowed the data loputtrminated. Te statu pi a estored toe" — 58 - Xf an attenpr is made to input data when input data does not contain any program number and no program number is specified in the setting area, a "E66 NO PROG NUMBER” message is displayed. (at the time 4s sent to the host.) After the host prepares for file data transmission (or performs host file data indexing by executing host work program search), set the program husver in the settiug area of the DATA INPUT screen and press [INPUT]. 2. COMPUTER LINK A 2-9 Operation Description % << COMP. DATA > E65 NO PROG NUMBER, ) ) oara ( #(0 ‘Sue display 2-9-4 Operation of Work Program Down-load, Up-load, Deletion, and Number Search ‘The work program down-load, up-load. deletion, and number search functions are executed on background. (The screen does not change and an EXECUTION message is not displayed either.) Check operation on specific screens. Note: When CONTROL PARAMETER "46. HOST COMMUNICATION" on the I/O ecreen ic ON, computer link A operates as an I/O device. When CONTROL PARAMETER "46. HOST COMMUNICATION" is OFF, the RS232C operates as an I/O device. 59 - (1) Work program down load (For example, 01 work program ig down loaded.) HOST cnc File deca (work program) ™ pea] 2. COMPUTER LINK A 2-9 Operation Description peration on = 60 - When CNC returns @ normal response, 1 "caus is deployed. Caer Levies | com | enastcomment| cane! tt *€" sass coplayed during fle ’ sranster (ATATRIOUD ana (HPO and selec he DATA INPUT seresn. DATA INPUT screen men CNC receives [BG] from the host the status ciple is esfored to“. «ay Work program up. “load (for example, 01 work program is up loaded.) ata tow between HOST command pH} — DCL NN jotand CNC cnc File cata (work propram! 2. COMPUTER LINK A 2-9 Operation Description {A sereen on which operation con be checked ‘doesnot onist. Select ny sree. Operation on selected sorean “Tme DATA INIOUT] screen s shown beiow: cannes te mat | Wen CNC outputs [BEE] to he host, the sas dapay i Fsioredt0“e". ~el- 2. COMPUTER LINK A 2-9 Operation Description (3) Work program deletion (For example, 01001 work progran is deleted.) ata How betomin hos and CNC Operation on selected screen HOST cnc” PROGRAM ENTRY 20 REMAIN 160 CHARACTER 21234 REMAIN 41750 “, 1 123 | 2 300 | 10 222 Command oo 312 1000__1 1020287 ? t Normal response \ PROGRAM ENTRY 79 AEWAIN 181 lcHARACTER 20921 Remain 42000 CPROGRAM> 21 123 2 300 yo 222 yoo, 312 1000° 125 1020 297 t t Program 0100! disappears. The number Drograms, the number of sored characters, ana the Femaining numbers are apeln spayed. ~62- 2. COMPUTER LINK A 2-9 Operation Description (4) Work program number search (For example, @ search is made for work program 01234.) sale seven, Data lw bntnoen host and CNC No aus.678 Host enc y us.678 Command Z 0.000 a b © 0.000 JC |5}0}1)2)3}4). |C 4 ic 31234 “345.678 345.678 0,000 0.000 When CNC runs in memory mode, ‘he progam loaded in buffer i “eplayed in the seme manner ss Inprowram search. 63 - 3. COMPUTER LINK B 3-1 Function Outline 3. COMPUTER LINK B 3+1 Function Outline ene Qx731 ost operon . em exc Cmaae ae So oe a oo Wonca Be um ora byte salu it 2K bytes eTR Run (BET] is seat to the host by CNC cycle start aad the eystea can be run while receiving @ work program ftom the host. ‘The computer link has a receive buffer of a maximum of 4K bytes, which causes the affection oa operation by transfer from the host to be less. Thus, if the host which can transfer data at the high speed (19200 bps) is connected, high-speed machining can be executed by using micro line data. High-speed nachining mode option is required for high-speed micro line machining. When BIR run is performed by computer link B, validate the parity V function and send a work program with parity V from the host to the CNC. For details of parity V, see Section 3-6. — 64 - 3. COMPUTER LINK B 3-2 Protocol 3-2 Protocol, 3-2-1 Communication System ‘A data send request is always sent from computer link B to the host. (2) A vhost DR check (if DR check is set to OFF, an error message is displayed (L01 COMPUTER LINK ERROR -10)) is made. (2) is sent by cycle start and data input is started from the host. (3) When receiving the host should start data transmission to computer link B. (4) When the computer link B buffer becomes full, de sent. (5) When receiving [DG3], the host should stop data transmission within 10 characters. (6) After buffer processing terminates, computer link B sends requesting the host to transfer data for (7) When receiving the host should send the remaining data. (8) When data read is complete (BOR is received), computer link B performs ‘termination processing. (Termination processing: When the DC3 output parameter is set to 1, is sent to the host to turn the RS signal off.) ERloutpur) BS (output oC) C3, Och C3) s0touus! ATI 1 AMT wow) [ \ v eo 20 (input iii I ox tapes S 6S tinged oH Tims of more Within 10 characters '0C3 transmission time Computer link B ignores all received data until it receives the first EOB code after sending ‘to the host. Computer link B buffers the date following the HOB. When receiving EOR code, computer link B terminates data reception. 65 - 3. COMPUTER LINK B 3-2 Protocol 3-2-2 Error Occurrence Operation and Reset Operation When an error occurs in NC (program error or communication error) or the RESET switch is pressed, computer link B sends to the host to turn off the RS signal and ER signal. When the NAK output parameter is set to 1 and the SYN out; set to 1, computer link B outputs [DC3], then sends (ote) Reset 1 SYN (96H) . Error NAK (95H) and rameter is at, SYN] to the host. The ER eignal is again turned on after NC reset terminates: smin_Lsec (output NGrese is ER tov being executes RS fourpue) rv eZ SN $0 (oven) Ji RD input) 38 ope p+ 8 input Se INC Error or Reset - 66 - SYN is sont 3. COMPUTER LINK B 3-2 Protocol 3-2-3 Transmission Control Characters # | character Code Meaning a{ per 1H ‘The command instructs the host which sends a data to start transmission or restart a temporarily stopped transmission. 93H The gonmand inotruete the host which ccndo a data to stop transmission temporarily. If the DC3 output parameter is set to 1 when communication terminates, DC3 is sent to the host. 95H When an error (program error or communication error) occurs in CNC, if the NAK output parameter is set to 1, NAK is sent to the host. 96H When NC reset (reset 1) or emergency stop is turned on, if the SYN output parameter is set to 1, SYN is sent to the host. -6r- 3. COMPUTER LINK B 3-2 Protocol 3-2-4 Work Progcam Format ® [fg = 9 9 B 01234 (MAIN ) B G28 —~s ud) T 7 ww] ft T cesT ee GFpwiseat | Nekeren Eg E|E 8 }o]o ~ BJ) mo2 | BIR lr) Gr) | me part @ ts not necessarily required. 68 — 3. COMPUTER LINK B 3-2 Protocol 3-2-5 GNC Data Code Table (do not use codes not icted in the table as CNC data.) (1) Valid codes as CNC data order tree bite Loworder four bite 0¢0) 1qi) 2(2) 3(3) # aca 5 (5) % 6 (6) 1D (8) ‘ 99) ) 10a) ureeo0 * n(B) 12(¢) : 13(D) - | - M(B) 1B(F) / 1 aN x Sc cHHoReEW oz Er RGA raaMcoOw> Lect prt eda (2) Valid codes only in comment field (if the code is used in any other than comment field, an error occurs.) BS 08H : 0 8BH HT 09H < 3CH ! 21H > 3EH & 26H 2 3FH s 24H @ 40H . 27H "22H Note: The ISO codes corresponding to the ASCII codes shown above are valid as communication data. CR (ODH) and ; (3B) are insignificant codes and cannot be used as EOB. 69 —

You might also like