1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

FX Series Programmable Controllers jy992d53501a

91 298 1

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Nội dung

FX Series Programmable Controllers

MELSEC FX Series Programmable Controller User's Manual FX-485PC-IF Interface Unit Art.-Nr.: 055966 1995 12 01 Version A INDUSTRIAL AUTOMATION Foreword • This manual contains text, diagrams and explanations which will guide the reader in the correct installation and operation of the 485PC-IF Interface Unit and should be read and understood before attempting to install or use the unit • If in doubt at any stage during the installation of the 485PC-IF Interface Unit always consult a professional electrical engineer who is qualified and trained to the local and national standards If in doubt about the operation or use of the 485PC-IF Interface Unit please consult the nearest Mitsubishi Electric distributor • This manual is subject to change without notice FX-485PC-IF RS485 Interface Unit FX-485PC-IF RS485 Interface Unit User’s Manual Manual number: Manual revision: Date: JY992D53501 A December 1995 i FX-485PC-IF RS485 Interface Unit ii FX-485PC-IF RS485 Interface Unit Guidelines for the safety of the user and protection of the FX-485PC-IF RS-485 Interface Unit This manual provides information for the installation and use of the FX-485PC-IF RS-485 interface unit The manual has been written to be used by trained and competent personnel The definition of such a person or persons is as follows; a) Any engineer who is responsible for the planning, design and construction of automatic equipment using the product associated with this manual should be of a competent nature, (trained and qualified to the local and national standards required to fulfill that role) These engineers should be fully aware of all aspects of safety with regards to automated equipment b) Any commissioning or service engineer must be of a competent nature, trained and qualified to the local and national standards required to fulfill that job These engineers should also be trained in the use and maintenance of the completed product This includes being completely familiar with all associated documentation for the said product All maintenance should be carried out in accordance with established safety practices c) All operators of the compliance product should be trained to use that product in a safe and coordinated manner in compliance to established safety practices The operators should also be familiar with all documentation which is connected with the actual operation of the completed equipment Note: the term 'completed equipment' refers to a third party constructed device which contains or uses the product associated with this manual Note's on the symbology used in this manual At various times through out this manual certain symbols will be used to highlight points of information which are intended to ensure the users personal safety and protect the integrity of the equipment Whenever any of the following symbols are encountered, its associated note must be read and understood Each of the symbols used will now be listed with a brief description of its meaning Hardware warnings 1) Indicates that the identified danger WILL cause physical and property damage 2) Indicates that the identified danger could POSSIBLY cause physical and property damage 3) Indicates a point of further interest or further explanation Software warnings 4) Indicates special care must be taken when using this element of software 5) Indicates a special point of which the user of the associate software element should be aware 6) Indicates a point of interest or further explanation iii Contents FX-485PC-IF RS485 Interface Unit Contents Outline and system configuration 1-1~1-6 1.1 Outline 1-1 1.1.1 Product interaction 1-1 1.1.2 Communications Outline 1-2 1.1.3 Functions 1-2 1.1.4 System configuration and number of link stations 1-3 1.2 System configuration 1-4 1.2.1 Computer and PC in 1:1 system configuration 1-4 1.2.2 Computer and PC in 1:n system configuration 1-4 1.2.3 Applicable PCs 1-5 1.2.4 Applicable functions in system configurations 1-5 Specification 2-1~2-4 2.1 Environmental specifications 2-1 2.2 Power source specifications and insulation 2-1 2.2.1 Power source specifications of 485PC-IF 2-1 2.2.2 485PC-IF isolation 2-1 2.3 Performance specifications 2-2 2.3.1 RS-232C connector specifications 2-2 2.3.2 RS-485 terminal block specifications 2-2 2.3.3 Cable specification 2-2 2.3.4 Transmission characteristics of the PC 2-3 2.4 Data communication function 2-3 2.5 Dimensions and Part Names 2-4 2.5.1 FX-485PC-IF Dimensions 2-4 2.5.2 Power feed plug specifications 2-4 Settings and procedures before operation 3-1~3-10 3.1 Procedures before operation 3-1 3.2 Setting of transmission specifications and transmission control protocol 3-2 3.2.1 Setting of transmission specifications 3-2 3.2.2 Setting of transmission control protocol 3-2 3.3 Setting of station number 3-3 3.4 Setting of time-out check time 3-3 3.5 Cautions for connection of 485PC-IF and power source unit 3-4 3.6 External wiring 3-4 3.6.1 Cautions for wiring 3-4 3.6.2 Connecting to a computer 3-5 3.6.3 Connecting to a PC 3-5 3.7 Connection of terminating resistance 3-8 3.7.1 Classification of terminating resistances 3-8 3.7.2 When connecting computer and PC by 1:1 3-8 3.7.3 When connecting computer and PCs by 1:n 3-8 3.8 Loopback test 3-9 3.9 Operation, maintenance and checking 3-9 3.9.1 Operation 3-9 3.9.2 Maintenance, checking 3-9 iv Contents FX-485PC-IF RS485 Interface Unit Communication using dedicated protocols 4-1~4-14 4.1 Data flow by link 4-1 4.2 Information needed before programming 4-2 4.2.1 PC operation during data communication 4-2 4.2.2 Precautions during data communication 4-2 4.3 How to read a control protocol diagram 4-2 4.4 Basic formats of dedicated protocol 4-3 4.4.1 Control protocol format 4-4 4.4.2 Control protocol format 4-5 4.4.3 Control Protocol parts explained 4-6 4.4.4 Error code 4-8 4.5 Communication Timing chart 4-9 4.5.1 When reading data from the PC to the computer (with the message wait time set) 4-9 4.5.2 When writing data from the computer to the PC (with the message wait time set) 4-9 4.5.3 Communication Time 4-10 4.6 Character area data transmission 4-11 4.6.1 When reading or writing bit device memory 4-11 4.6.2 When reading or writing word device memory 4-12 4.7 Commands and Device ranges 4-13 4.7.1 Commands 4-13 4.7.2 Device specification ranges 4-14 Commands 5-1~5-18 5.1 Batch read of device memory, bit units (BR command) 5-2 5.2 Batch read of device memory, word units (WR command) 5-3 5.3 Batch write of device memory, bit units (BW command) 5-4 5.4 Batch write of device memory, word units (WW command) 5-5 5.5 Test of device memory, bit unit (selective write) (BT command) 5-6 5.6 Test of device memory, word units (selective write) (WT command) 5-7 5.7 Remote run/stop with PC (RR, RS commands) 5-8 5.7.1 Operation of remote run/stop 5-8 5.7.2 Conditions for valid execution of remote run/stop 5-8 5.7.3 Control specification and examples of remote run/stop 5-9 5.8 Reading the PC type name (PC command) 5-10 5.8.1 PC type codes 5-10 5.8.2 Control specification and example 5-10 5.9 Global function (GW command) 5-11 5.9.1 Control specification and example of global function 5-11 5.10 On-demand function 5-12 5.10.1 Special devices used in on-demand function 5-12 5.10.2 On-demand Control protocol 5-13 5.10.3 Specification and example of on-demand 5-15 5.11 Loopback test 5-18 Diagnostics 6-1~6-6 6.1 NAK Error codes 6-1 6.2 PC Error codes 6-1 6.3 Diagnostics 6-2 6.3.1 Diagnostic Flow Chart 6-2 6.3.2 Computer does not receive data 6-3 6.3.3 PC error flag M8063 is ON 6-4 6.3.4 Communication fails sometimes 6-5 Appendix A A-1~A-3 Example computer program for Loopback command A-1 v FX-485PC-IF RS485 Interface Unit vi FX-485PC-IF RS485 Interface Unit Outline and system configuration 1 Outline and system configuration Specification Settings and produres before operation Communication using dedicated protocols Commands Diagnostics Appendix A FX-485PC-IF RS485 Interface Unit Outline and system configuration Diagnostics FX-485PC-IF RS485 Interface Unit 6.3.4 Communication fails sometimes Communication fails sometimes Same station number is used by more than one PC YES · Check and change the station numbers so that there are no duplicates After changing the setting, reset the power source NO Terminating resistance is not connected properly YES · Connect terminating resistance properly by referring to section 3.7 NO Using Multidrop link of computer and PC? YES · When using one-pair wiring set the message wait time to 70ms or over (see section 4.4.3 (5)) · Check the data communication by connecting computer and PC by 1:1 · Confirm all stations can transmit NO Faulty contact of signal cable wiring? YES · Replace cable, or fix connection points securely NO FG terminal is not wired correctly YES · Connect FG terminal to earth terminal of PC grounded at resistance of 100 Ω or less NO Consult your nearest Mitsubishi representative 6-5 FX-485PC-IF RS485 Interface Unit Diagnostics 6-6 FX-485PC-IF RS485 Interface Unit Outline and system configuration Specification Settings and produres before operation Communication using dedicated protocols Commands Diagnostics Appendix A Appendix A FX-485PC-IF RS485 Interface Unit Appendix A Appendix A FX-485PC-IF RS485 Interface Unit Appendix A Example computer program for Loopback command This is an example of a BASIC program for communication of the computer link using a computer, programmable controller 485PC-IF, and 485ADP (N88BASIC of Nippon Electric Corporation is used) (1) Setting of transmission specification Item Description Communication method Half-duplex communication method Synchronizing method Start-stop synchronization method Transmission speed 9600bps FX series programmable controller None Stop bit 485 PC-IF 7bit Parity bit 485 PC-IF 1bit Data length Data format Start bit Personal computer 1bit Sum check Sum check is used Station No Station No Exclusive protocol format Format According to the above transmission specification, the transmission specification and transmission procedure of the programmable controller are set as follows D8120=H6080 D8121=H0000 D8129=K0 For setting and details, see section 3.2 to 3.4 (2) Program example A-1 Sum check code Character Number of characters Data wait RVCNT = GOSUB *RECWAIT IF ERFLG = 99 THEN GOTO *ERRORFIN1 Command 150 160 170 PC No Station No :' Reception wait counter (adjusted depending on computer speed) 10 T0 = 3000 :' Normal data length 20 STCNT = 14 :' Data length of error code (NAK statement) 30 NACNT = 40 ERFLG = 50 ENQ$ = CHR$(5) Transmission data 60 STX$ = CHR$(2) 70 ETX$ = CHR$(3) 80 NAK$ = CHR$(&H15) 0 F F T T A B C D :' Data transmission 90 *DATASEND 100 CLOSE #1 110 OPEN"COM1":"AS #1 120 SENDDATA$="00FFTT204ABCD34" :' Transmission data 130 PRINT #1,ENQ$;SENDDATA$; :' Reception of first character 140 *REC0 FX-485PC-IF RS485 Interface Unit 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 540 550 560 570 580 590 600 610 620 630 640 650 660 670 680 690 Appendix A BUF$ = RCV$ HED$ = LEFT$(BUF$.1) IF HED$ = STX$ OR HED$ = NAK$ THEN GOTO *REC1 ELSE GOTO *REC0 *REC1 :'Reception of remaining data IF HED$ = STX$ THEN RVCNT = STCNT-1 IF HED$ = NAK$ THEN RVCNT = NACNT-1 GOSUB *RECWAIT IF ERFLG = 99 THEN GOTO *ERRORFIN1 BUF$ = BUF$+RCV$ *PRINTRDATA :'Display of received data PRINT "Received data" PRINT "HEX ASCII" FOR I=1 TO LEN(BUF$) PRT1$ = MID$(BUF$,I,1) PRT1$ = HEX$(ASC(PRT1$)) IF PRT2$ = "2"THEN PRINT " ";"02";" ";"STX" :GOTO 370 IF PRT2$ = "3"THEN PRINT " ";"03";" ";"ETX" :GOTO 370 IF PRT2$ = "15"THEN PRINT " ";"15";" ";"NAK" :GOTO 370 PRINT " ";PRT2$;" "CHR$(&H22);PRT1$;CHR$(&H22) NEXT I IF HED$ = NAK$ THEN GOTO *ERRORFIN2 *DATACHECK :'Check of received data DDATA$ = STX$+"00FF04ABCD"+ETX$+"5D" :'Normal data FOR J=1 TO LEN(BUF$) RDATA$ = MID$(BUF$,J,1) ODATA$ = MID$(DDATA$,J,1) IF RDATA$ ODATA$ THEN GOTO *ERRORFIN3 NEXT J PRINT "Received data is normal" PRINT "Loopback test complete":GOTO *FIN *ERRORFIN1 PRINT "Data is not received at all or data content is insufficient." GOTO *FIN *ERRORFIN2 ERRORCODE$ = MID$(BUF$,6,2) PRINT "Error code" ;ERRORCODE$; "H is received." GOTO *FIN *ERRORFIN3 PRINT "Received data is abnormal (";J;"-th character)" *FIN CLOSE #1 END *RECWAIT :'Wait for receive FOR I=1 TO T0 RCV$ = "" IF LOC(1) => RVCNT THEN GOTO *BUFIN NEXT IF RCV$ = "" THEN ERFLG=99 RETURN *BUFIN :'Reading of received data RCV$ = INPUT$(RVCNT,#1) RETURN A-2 Appendix A FX-485PC-IF RS485 Interface Unit (3) Operation 1) Start the computer program 2) Send four characters "ABCD" from the computer to the FX PC 3) The FX PC returns the four characters "ABCD" back to the computer 4) The computer compares the data received from the PC and the original sent data, and displays a result message (4) List of result messages Message Remedy Received data is normal Data sending and receiving is normal Data is not received at all or data content is insufficient Check again the wiring, station No., transmission specification, and transmission protocol Error code OOH is received Refer to error code list in chapter Received character is abnormal (O-th character) Check for faulty wiring, observing wiring cautions A-3 FX-485PC-IF RS485 Interface Unit Appendix A A-4 FX-485PC-IF RS485 Interface Unit Appendix A A-5 FX-485PC-IF RS485 Interface Unit Appendix A A-6 FX-485PC-IF RS485 Interface Unit Appendix A A-7 FX-485PC-IF RS485 Interface Unit MEMO ERRATA Page K or * ( L C F R ) FX2,FX2C Error code K ) FX0N PC No A Station No N F R Device specification characters F R K L C (1) Bit devices L C A Error code N F R ( * K Error code C PC No A Station No 4.7.2 Error code F R PC No L C PC No Station No K L C K Error code PC No T Station No S Station No C F R K or 4.4.4 Notes 4-14 PC No K A L C PC No C Station No A or 4-8 Station No A F R F R To write data from the computer to the PC L C 4.4.2 N X Error code PC No T Station No S L C 4-5 PC No C K or Station No A PC No C Station No A To write data from the computer to the PC Right Sum check code 4.4.1 Wrong Sum check code 4-4 Section Device specification characters FX0N FX2,FX2C X0000~X0177 X0000~X0377 X0000~X0177 X0000~X0337 Y0000~Y0177 Y0000~Y0377 Y0000~Y0177 Y0000~Y0337 FX-485PC-IF RS485 Interface Unit MEMO Headquarters European Representatives EUROPE MITSUBISHI ELECTRIC EUROPE B.V Gothaer Str D-40880 Ratingen GERMANY Phone: +49 (0) 2102 / 486 Fax: +49 (0) 2102 / 486 112 ITALY MITSUBISHI ELECTRIC EUROPE B.V C.D Colleoni - P Perseo Ing 2, Via Paracelso I-20041 Agrate Brianza (MI) ITALY Phone: +39 039 6053 Fax: +39 039 6053 312 SPAIN MITSUBISHI ELECTRIC EUROPE B.V Pol Ind Can Magi-C Joan Buscallá, 2-4 AC 420 E-08190 Sant Cugat del Vallés (Barcelona) SPAIN Phone: +34 (9) / 565 31 60 Fax: +34 (9) / 589 15 79 UK MITSUBISHI ELECTRIC EUROPE B.V Travellers Lane GB-Hatfield Herts AL10 XB UK Phone: +44 (0) 1707 / 27 61 00 Fax: +44 (0) 1707 / 27 86 95 AUSTRIA MPL Technology Sp z o.o ul Wroclawska 53 PL-30011 Kraków Phone: +48 (0) 12 / 632 28 85 Fax: +48 (0) 12 / 632 47 82 N.V GETRONICS Belgium S.A Pontbeeklaan 43 B-1731 Asse-Zellik Phone: +32 (0) / 467 17 51 Fax: +32 (0) / 467 17 45 BELGIUM ROMANIA Sirius Trading & Services srl Bd Ghica nr 112, Bl 41, Sc.2, ap 98 RO-72335 Bucuresti Phone: +40 (0) / 210 55 11 Fax: +40 (0) / 210 55 11 TELECON CO 4, A Ljapchev Blvd BG-1756 Sofia Phone: +359 92 97 44 05 Fax: +359 92 97 44 06 BULGARIA AutoCont Control Systems s.r.o Nemocnicni 12 CZ-702 00 Ostrava Phone: +420 (0) 69 / 615 21 11 Fax: +420 (0) 69 / 615 21 12 CZECHIA louis poulsen Geminivej 32 DK-2670 Greve Phone: +45 (0) 43 / 95 95 95 Fax: +45 (0) 43 / 95 95 91 DENMARK POLAND Mitsubishi Electric Europe B.V 12/1 Goncharnaya St, suite 3C RUS-109240 Moscow Phone: +7 (0) 95 / 915-8624/02 Fax: +7 (0) 95 / 915-8603 RUSSIA NPP Uralelektra Sverdlova 11A RU-620027 Ekaterinburg Phone: +7 (34 32) 53 27 45 Fax: +7 (34 32) 53 24 61 RUSSIA ACP AUTOCOMP a.s Chalupkova SK-81109 Bratislava Phone: +421 (0) 592 2248 Fax: +421 (0) 592 2254 SLOVAKIA USA UTU ELEKTROTEHNIKA AS Laki 12E EE-10621 Tallinn Phone: +372 / 51 72 80 Fax: +372 / 51 72 88 ESTONIA INEA d.o.o Ljubljanska 80 SI-61230 Domzale Phone: +386 (0) 17 21 80 00 Fax: +386 (0) 17 24 16 72 SLOVENIA Beijer Electronics OY Elannontie FIN-01510 Vantaa Phone: +358 (0) / 615 20 11 Fax: +358 (0) / 615 20 500 JAPAN MITSUBISHI ELECTRIC CORPORATION 2-2-3 Marunouchi Chiyoda-Ku Tokyo 100-8310 JAPAN Phone: +81 (0) / 32 18 31 76 Fax: +81 (0) / 32 18 24 22 MITSUBISHI ELECTRIC AUTOMATION, INC 500 Corporate Woods Parkway Vernon Hills, Illinois 60061 USA Phone: +1 / 847 / 478 21 00 Fax: +1 / 847 / 478 22 83 GEVA Wiener Straße 89 A-2500 Baden Phone: +43 (0) 2252 / 85 55 20 Fax: +43 (0) 2252 / 488 60 FINLAND Beijer Electronics AB Box 325 S-20123 Malmö Phone: +46 (0) 40 / 35 86 00 Fax: +46 (0) 40 / 93 23 01 SWEDEN IP Systèmes 8, Rue du Colonel Chambonnet F-69672 Lyon Bron Cedex Phone: +33 (0) / 72 14 18 00 Fax: +33 (0) / 72 14 18 01 FRANCE ECONOTEC AG Postfach 282 CH-8309 Nürensdorf Phone: +41 (0) / 838 48 11 Fax: +41 (0) / 838 48 12 SWITZERLAND MITSUBISHI ELECTRIC EUROPE B.V Westgate Business Park, Ballymount IRL-Dublin 24 Phone: +353 (0) / 419 88 00 Fax: +353 (0) / 419 88 90 IRELAND ILAN & GAVISH Automation Service 24 Shenkar St., Qiryat-Arie 49513 IL-Petach-Tikva 49001 Phone: +972 (0) / 922 18 24 Fax: +972 (0) / 972 39 24 07 61 ISRAEL TEXEL Electronics Ltd P.O Box 6272 IL-Netanya 42160 Phone: +972 (0) / 863 08 91 Fax: +972 (0) / 885 24 30 GTS Darülaceze Cad No 43A KAT: TR-80270 Okmeydani-Istanbul Phone: +90 (0) 212 / 320 1640 Fax: +90 (0) 212 / 320 1649 TURKEY ISRAEL Getronics Industrial Automation bv Donauweg 10 NL-1043 AJ Amsterdam Phone: +31 (0) 20 / 586 15 92 Fax: +31 (0) 20 / 586 19 27 Beijer Electronics AS Teglverksveien N-3002 Drammen Phone: +47 (0) 32 / 24 30 00 Fax: +47 (0) 32 / 84 85 77 UKRAINE JV-CSC Automation 15, M Raskovoyi St., Floor 10, Office 1010 U-02002 Kiev Phone: +380 (4) / 238 83 16 Fax: +380 (4) / 238 83 17 NETHERLANDS NORWAY 6.12.2000 GOTHAER STR D-40880 RATINGEN PHONE: +49 2102 486 HOTLINE: +49 1805 000 766 / 765 FAX: +49 2102 486 717 FAXBACK: +49 2102 486 485 / 790 www.mitsubishi-automation.de www.mitsubishi-automation.com PLC - Printed in Germany megfamail@meg.mee.com ... RS-232C FX0 N-485ADP RS485 Adapter * FX0 N series PC * FX- 485ADP RS485 Adapter * FX series PC * FX2 C series PC * Computer link unit for A series PC * A series PC * RS-485 PO SD WER RD FX- 485PC-IF... Station No FX series PC Station No FX series PC A series PC A series PC CPU FX series PC CPU Station No 10 Computer link unit Station No 11 Computer link unit Station No 15 Notes G The FX series. .. case of FX 0N series turn on M8120 when using the special D8121 For the setting method of an A series PC, see the A series manual Computer FX series ↑ 485ADP Station No 485PC-IF FX series FX series

Ngày đăng: 23/04/2014, 08:14

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN