Mitsubishi Electric MELSEC FX, RS-232C, RS-422, RS-485 User Manual

MELSEC FX Series
Programmable Logic Controllers
User's Manual
Communications Modules
RS-232C, RS-485, RS-422
INDUSTRIAL AUTOMATION
MITSUBISHI ELECTRI
MIT
SUBIS
HI ELECTRI
C
Art. no.: 070143 15 04 2003 JY992D69901 Version E
Foreword
• This manual contains text, diagrams and explanations which will guide the reader in the correct installation and o peration of the communication facilities of FX seri es. It should be read and understood before attempting to install or use the unit.
• Further information can be found in the re specti ve manual of each programmab l e control ler.
• If in doubt at any stage of the installation of the communication faciliti es of FX series always consult a professional electrical engineer wh o is qualified and trained to the local and national standards that applies to the installation site.
• If in doubt about the operation or use of the communication facilities of FX series please consult the nearest Mitsubishi Elec tric dis tributor.
• This manual is subject to change without notice.
FX communication
i
FX COMMUNICATION (RS-232C, RS-485, RS-422)
USER’S MANUAL
Brand and product names described by/in this manual are trademarks or registered trademarks of the irrespective owners.
Manual number : JY992D69901 Manual revision : E
Date : April 2003
FX communication
FX communication
ii
FAX BACK
Mitsubishi has a world wide reputation f or its eff orts in continually de veloping and pushing back the frontiers of industrial automation. What is sometimes overlooked by the user is the care and attention to detail that is taken with the documentation. However, to continue this process of improvement, the comments of th e Mitsubish i users ar e always welcomed. This pag e has been designed for you, the reader, to fill in your comments and fax them back to us. We look forward to hearing from you.
Fax numbers: Your name:...................................................
Mitsubishi Electric.... .....................................................................
America (01) 847-478-2253 Your company:.............................................
Australia (02) 638-7072 .....................................................................
Germany (0 21 02) 4 86-1 12 Your location:................................................
Spain (34) 93-589-1579 .....................................................................
United Kingdom (01707) 278-695
Please tick the box of your choice
What condition did the manual arrive in?
!
Good
!
Minor damage
!
Unusable
Will you be using a f older to store the manual?
!
Yes
!
No
What do you think to the manual presentation?
!
Tidy
!
Unfriendly
Are the explanations understandable?
!
Yes
!
Not too bad
!
Unusable
Which explanation was most difficult to understand:..................................................................
....................................................................................................................................................
Are there any diagrams which are not clear?
!
Yes
!
No
If so,which:..................................................................................................................................
What do you think to the manual layout?
!
Good
!
Not too bad
!
Unhelpful
If there one thing you would li ke to see improved, what is it?.................... .. ............................ ...
....................................................................................................................................................
....................................................................................................................................................
Could you find the information you required easily using the index and/or the conten ts, if
possible please identify your experience: ...................................................................................
....................................................................................................................................................
....................................................................................................................................................
....................................................................................................................................................
....................................................................................................................................................
Do you have any comments in general about the Mitsubishi manuals? ............. ........................
....................................................................................................................................................
....................................................................................................................................................
....................................................................................................................................................
....................................................................................................................................................
Thank you for taking the time to fill out this questionnai re. We hope you found both the product and this manual easy to use.
FX communication
iii
FX communication
iv
FX communication
v
Guidelines for the Safety of the User and Protection of the programmable controllers
This manual provides information for the use of the FX series communication 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 w ith this manual should be of a competen t nature, trained and qualified to the loc al and national sta ndards 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 require d to fulfill that job. These engineers should also be trained in the use and maintenance of the completed product. This includes being completely f amili ar with all ass ociated doc umentation for the said product. All maintenance should be carried out in accordance with established safety pra ctices.
c) All operators of the completed equipment (see Note) should be trained to use this
product in a safe manner in compliance to established safety practices. The operators should also be familiar with documentation which is associated with the operation of the completed equipment.
Note :
Note: the term ‘completed equipment’ refers to a third party constructed device which contains or uses the product associated with this manual.
Notes on the Symbols Used in this Manual
At various times throughout this manual cer tain symbols will be used t o highlight points of information which are intended to ensure the users personal safety and protect the integrity of equipment. Whenever any of the following symbols are encountered its associated note must be read and understood. Each of the symbols used will no w be listed wi th a brief description of its meaning.
Hardware Warnings
1) Indicates that the identified danger
WILL
cause physical and prop erty damage.
2) Indicates that the identified danger could
POSSIBLY
cause physical and proper ty
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 which the user of the associate software element should be aware of.
6) Indicates a point of interest or further explanation.
FX communication
vi
• Under no circumstances will Mitsubishi Electric be liable responsible for any consequential damage that may arise as a result of the installation or use of this equipment.
• All examples and diagrams shown in this manual are intended only as an aid to understanding the text, not to guarantee operation. Mitsubishi Electric will accept no responsibility for actual use of the product based on these illustrative examples.
• Please contact a Mitsubishi Electric distributor for more information concerning applications in life critical situations or high reliability.
FX communication
vii
Further Information Manual List
Table 1: Further Information Manual List
Manual name Manual No. Description
FX
1S
Hardware Manual JY992D83901
This manual contains written hardware explanation of wiring, installation and specification, etc. regarding the FX
1S
Series programmable controller.
FX
0
/ FX0N Hardware Manual JY992D47501
This manual contains written hardware explanation of wiring, installation and specification, etc. regarding the FX
0
and FX0N Series programmable controllers.
FX Hardware Manual JY992D47401
This manual contains written hardware explanation of wiring, installation and specification, etc. regarding the FX Series programmable controller.
FX
2C
Supplementary Manual JY992D50201
This manual contains supplementary data regarding the FX Series programmable controller Hardware Manual
FX
1N
Hardware Manual JY992D88201
This manual contains written hardware explanation of wiring, installation and specification, etc. regarding the FX
1N
Series programmable controller.
FX
2N
Hardware Manual JY992D66301
This manual contains written hardware explanation of wiring, installation and specification, etc. regarding the FX
2N
Series programmable controller.
FX
2NC
Hardware Manual JY992D76401
This manual contains written hardware explanation of wiring, installation and specification, etc. regarding the FX
2NC
Series programmable controller.
FX Programming Manual JY992D48301
This manual contains written instructions regarding the FX
0
, FX0S, FX0N, FX, FX2C, FX2N and FX
2NC
Series
programmable controllers.
FX Programming Manual
ΙΙΙΙΙΙΙΙ
JY992D88101
This manual contains written instructions regarding the FX
1
S
, FX1N, FX2N and FX
2NC
Series
programmable controllers.
FX / FX
0N
-485ADP User’s
Guide
JY992D53201
This manual contains written hardware explanation of installation and specification regarding the FX-485ADP and FX
0N
-485ADP.
FX
2NC
-485ADP Installation
Manual
JY997D01201
This manual contains written hardware explanation of installation and specification regarding the FX
2NC
-485ADP.
FX-232ADP User’s Guide JY992D48801
This manual contains written hardware explanation of installation and specification regarding the FX-232ADP.
FX
0N
-232ADP User’s Guide JY992D51301
This manual contains written hardware explanation of installation and specification regarding the FX
0N
-232ADP.
FX
2NC
-232ADP Installation
Manual
JY997D01101
This manual contains written hardware explanation of installation and specification regarding the FX
2NC
-232ADP.
FX
2N
-232-BD User’s Guide JY992D66001
This manual contains written hardware explanation of installation and specification regarding the FX
2N
-232-BD.
FX communication
viii
FX2N-485-BD Hardware Manual
JY992D73401
This manual contains written hardware explanation of installation and specification regarding the FX
2N
-485-BD.
FX
2N
-422-BD User’s Guide JY992D66101
This manual contains written hardware explanation of installation and specification regarding the FX
2N
-422-BD.
FX
1N
-232-BD Hardware
Manual
JY992D84501
This manual contains written hardware explanation of installation and specification regarding the FX
1N
-232-BD.
FX
1N
-485-BD Hardware
Manual
JY992D84301
This manual contains written hardware explanation of installation and specification regarding the FX
1N
-485-
BD.
FX
1N
-422-BD User’s Guide JY992D84101
This manual contains written hardware explanation of installation and specification regarding the FX
1N
-422-BD.
FX-485-IF Hardware Manual JY992D81801
This manual contains written hardware explanation of installation and specification regarding the FX-485-IF.
Table 1: Further Information Manual List
Manual name Manual No. Description
ix
Table of Contents
Further Informa t ion M a nu a l Li st ...................... ................... .................... ......vii
1. Introduction .............................................................................................1-1
1.1 Abbreviations, Generic Names and Terms Used in This Manual..........................1-1
1.2 Communication Types...........................................................................................1-2
1.3 System Configuration ............................................................................................1-3
1.3.1 N:N Network .................. ....... ...... ....... ...... ....... ...... ....... ...... ...... ....... ...... ....... ...... .......................1-3
1.3.2 Parallel Link ....................................... ...... ....... ...... ....... ...... ...... ....... ...... ....... .............................1-3
1.3.3 Computer Link.......... ...... ....... ...... .................................................... ..........................................1-5
1.3.4 No Protocol Communication ............. ...... ....... ...... ....... ...... .......................................................1-6
1.4 Supported Functions and Applicable Versions .....................................................1-6
2. Specifications..........................................................................................2-1
2.1 Communication Specification................................................................................2-1
2.2 Communication Time.............................................................................................2-2
2.2.1 N:N network ............................................................................ ....... ..........................................2-2
2.2.2 Parallel link .............. ...... ....... ...... ....... .......................................................................................2-2
2.2.3 Computer link........................ ...... ....... ...... ....... ...... .................................................... ................2-3
3. Wiring......................................................................................................3-1
3.1 Caution on cable selection................................. .... ..... .......................................... .3-2
3.1.1 FX1N-485-BD, FX2N-485-BD, FX
2NC
-485ADP..........................................................................3-2
3.1.2 FX
0N
-485ADP .......................................................................................................................... 3-2
3.1.3 FX
2
-40AW.................................................................................................................................3-2
3.2 Using RS-232C Interface.......................................................................................3-3
3.2.1 Using RS Instruction or Computer Link.....................................................................................3-3
3.2.2 Using FX
2N
-232IF.....................................................................................................................3-4
3.3 Using RS-485 Interface.........................................................................................3-6
3.3.1 Wiring Selection.............................................. ...... ....... ...... ...... .................................................3-6
3.3.2 Terminal Resistor........................ ....... ...... .................................................... ...... ....... ................3-6
3.3.3 One-pair Wiring ................................. ...... ....... ...... ....... .............................................................3-7
3.3.4 Two-pair Wiring ................................. ...... ....... ...... ....... ...... ...... ....... ...... ....... ...... ....... . ...............3-8
3.4 Parallel Link...........................................................................................................3-9
3.4.1 FX
2N(1N)
-485-BD and FX0N-485ADP........................................................................................3-9
3.4.2 FX
0N
-485ADP and FX0N-485ADP ..........................................................................................3-10
3.4.3 FX
2N(1N)
-485-BD and FX
2N(1N)
-485-BD .................................................................................3-11
3.4.4 FX
2NC
-485ADP and FX0N-485ADP........................................................................................3-12
3.4.5 FX
2N(1N)
-485-BD and FX
2NC
-485ADP....................................................................................3-13
3.4.6 FX
2NC
-485ADP and FX
2NC
-485ADP......................................................................................3-14
3.4.7 FX
2
-40AW and FX2-40AW ............................. ............. ............ ............. ............. ............. ........ 3-15
3.4.8 FX
2
-40AP and FX2-40AP ............................... ................... ................... .................... ..............3-15
4. N:N Network............................................................................................4-1
4.1 Related Flags and Data Registers.........................................................................4-1
4.1.1 Auxiliary Relays .......................................................................................... .............................4-1
4.1.2 Data Registers ..................... ...... ....... ...... ....... ...... ....... ...... ...... ....... ...... ....... ...... ....... ................4-2
FX communication
FX communication
x
4.2 Setting....................................................................................................................4-3
4.2.1 Setting the Station No. (D8176)................................................................................................4-3
4.2.2 Setting the Total Number of Slave Stations (D8177) ...............................................................4-3
4.2.3 Setting the Refresh Range (D8178)..........................................................................................4-4
4.2.4 Setting Retry Count (D8179).....................................................................................................4-5
4.2.5 Setting Comms Time-out (D8180) ............................................................................................4-5
4.2.6 Program Used for Setting ........................................................................................................4-6
4.3 Example Program..................................................................................................4-7
4.3.1 System Configuration .... ....... ...... ....... ...... ....... ...... ....... ...... ...... ....... ...... ....... ...... .......................4-7
4.3.2 Operations ............................ ...... ....... ...... ....... ...... ....... ...... ...... ....... ...... ....... .............................4-7
4.3.3 Example of Setting Program.....................................................................................................4-8
4.3.4 Example of Error Program .......................................................................................................4-8
4.3.5 Example of Operation Program ................................................................................................4-9
5. Parallel link..............................................................................................5-1
5.1 Related Flags and Data Registers ........................................................................5-1
5.2 Mode and Link Device...........................................................................................5-2
5.2.1 Normal Mode (Special auxiliary relay M8162: OFF) ................................................................5-2
5.2.2 High Speed Mode (Special auxiliary relay M8162: ON) ...........................................................5-3
5.3 Example Program..................................................................................................5-4
5.3.1 Normal Mode ..................................... ................................................... ....................................5-4
5.3.2 High Speed Mode .....................................................................................................................5-4
6. Communication format (D8120)....................................... .......................6-1
6.1 What Is Communication Format? ..........................................................................6-1
6.2 Related Flags and Data Registers.........................................................................6-1
6.2.1 Special Auxiliary Relays ........................................................................................................... 6-1
6.2.2 Special Data Registers ............................................................................................................6-1
6.3 Communication Format (D8120) ..........................................................................6-2
6.4 Example of setting program...................................................................................6-3
7. Computer Link.........................................................................................7-1
7.1 Data Flow by Link..................................................................................................7-1
7.2 Information Needed Before Programming.............................................................7-3
7.2.1 Programmable Controller Operation.........................................................................................7-3
7.2.2 Computer Notes................................. ................................................... ....................................7-3
7.3 How to Read a Control Protocol Diagram..............................................................7-4
7.4 Basic Formats of Dedicated Protocol ....................................................................7-5
7.4.1 Control Protocol Format 1 ........................................................................................................7-6
7.4.2 Control Protocol Format 4.........................................................................................................7-7
7.4.3 Control Protocol Parts Explained..............................................................................................7-8
7.4.4 Time-out Check Time..............................................................................................................7-11
7.5 Communication Timing Chart..............................................................................7-12
7.5.1 Reading Data from Programmable controller .........................................................................7-12
7.5.2 Writing Data to Programmable Controller............................................................................... 7-12
7.5.3 Communication Time...................................... ................................................... .....................7-13
7.6 Character Area Data Transmission.....................................................................7-14
7.6.1 Bit Device Memory..................................................................................................................7-14
7.6.2 Word Device Memory .............................................................................................................7-15
7.7 Commands and Device Ranges..........................................................................7-16
7.7.1 Commands........ ....... ...... ....... ...... ....... ...... .................................................... ...... .....................7-16
7.7.2 Device specification ranges....................................................................................................7-17
7.8 Example Computer Program for Loopback Test .................................................7-18
FX communication
xi
8. Commands.............. ........................................................................ ........8-1
8.1 Batch Read of Bit Device (BR command)..............................................................8-2
8.2 Batch Read of Word Device (WR command)........................................................8-3
8.3 Batch Write of Bit Device (BW command).............................................................8-5
8.4 Batch Write of Word Device (WW command)........................................................8-6
8.5 Test of Bit Device (BT command)..........................................................................8-8
8.6 Test of Word Device (WT command) ....................................................................8-9
8.7 Remote RUN/STOP (RR, RS commands) ..........................................................8-10
8.7.1 Operation of Remote RUN/STOP...........................................................................................8-10
8.7.2 Conditions for Valid Execution of Remote RUN/STOP...........................................................8-10
8.7.3 Control Specification and Examples of Remote RUN/STOP..................................................8-11
8.8 Reading The Programmable Controller Type (PC command).............................8-12
8.8.1 Type Codes .......................... ...... ....... ...... ....... ...... ....... ...... ...... ....... ...... ....... ...... ....... ..............8-12
8.8.2 Control Specification and Example.........................................................................................8-13
8.9 Global Function (GW command).........................................................................8-14
8.9.1 Control Specification and Example of Global Function...........................................................8-14
8.10 On-demand Function.........................................................................................8-15
8.10.1 Special Devices Used in On-demand Function ....................................................................8-15
8.10.2 On-demand Control Protocol................................................................................................8-16
8.10.3 Specification and Example of On-demand............................................................................ 8-18
8.11 Loopback Test...................................................................................................8-21
9. RS instruction..........................................................................................9-1
9.1 Function and Operation.........................................................................................9-1
9.1.1 Send and Receive Program......................................................................................................9-1
9.1.2 Operation of RS Instruction.......................................................................................................9-3
9.1.3 Related Flags and Data Registers............................................................................................9-4
9.2 Hardware Hand Shake Operation..........................................................................9-6
9.2.1 FX, FX2C, FX
0N,
FX1S, FX1N and FX
2N
(earlier than V 2.00)....................................................9-6
9.2.2 FX
2N
, FX
2NC
(V 2.00 or later) .................................................................................................9-10
9.3 Number of Communication Data.........................................................................9-13
9.3.1 Deal with 16 bits Data............................................................................................................. 9-13
9.3.2 Deal with 8 bits Data............................................................................................................... 9-14
9.4 Example Program................................................................................................9-15
9.4.1 Personal Computer......................................... ...... ....... ...... ...... ....... ........................................9-15
9.4.2 Printer ......................................... ....... ...... ....... ...... ..................................................................9-17
10. FX2N-232IF..........................................................................................10-1
10.1 Introduction........................................................................................................10-1
10.1.1 Outline of Product.................................................................................................................10-1
10.2 Allocation of Buffer Memories (BFM’s) ..............................................................10-2
10.2.1 BFM List ................................... ....... ...... ....... ...... ....... ...... ...... ....... ...... ....... ...... .....................10-2
10.2.2 Communication Format <BFM#0> .......................................................................................10-4
10.2.3 Command
BFM #1
〉 .................................................................................................. 10−8
10.2.4 Receive Upper Limit Byte Count 〈BFM #2
〉 ................................................................... 10−9
10.2.5 Receive Time-out Time <BFM #3>.......................................................................................10-9
10.2.6 Send Header <BFM #5 (upper), BFM #4 (lower)>................................................................10-9
10.2.7 Send Terminator <BFM #7 (upper), BFM #6 (lower)> ..........................................................10-9
10.2.8 Receive Header <BFM #9 (upper), BFM #8 (lower)>.........................................................10-10
10.2.9 Receive Terminator <BFM #11 (upper), BFM #10 (lower)>................................................10-10
10.2.10 Receive Suspension Waiting Time <BFM #12> ...............................................................10-10
10.2.11 Number of Remaining Send Data <BFM #13> .................................................................10-11
10.2.12 Number of Receive Buffers <BFM #14>........................ ...... ....... ...... ....... ...... ....... ...... ...... 10-11
FX communication
xii
10.2.13 Send Sum Result <BFM #15>..........................................................................................10-11
10.2.14 Receive Sum Result <BFM #16>......................................................................................10-11
10.2.15 Time from CS ON to Send Start <BFM #20>....................................................................10-12
10.2.16 Time from Completion of Actual Send to RS OFF (completion flag ON) <BFM #21> ......10-12
10.2.17 Status <BFM #28> ...........................................................................................................10-13
10.2.18 Error Code <BFM #29>.....................................................................................................10-14
10.2.19 Model Code <BFM #30>...................................................................................................10-14
10.2.20 Send Byte Count <BFM #1000>....................................................................................... 10-14
10.2.21 Send Buffers <BFMs #1001 to #1256>.............................................................................10-14
10.2.22 Receive Byte Count <BFM #2000> ..................................................................................10-15
10.2.23 Receive Buffers <BFM #2001 to #2256>................................................. ...... ....... ...... ...... 10-15
10.2.24 Spare Receive Buffers for Interlink Connection Mode <BFM #2257 to #2271> ...............10-15
10.3 Hardware Hand Shake Operation....................................................................10-16
10.3.1 No Hardware Hand Shake..................................................................................................10-16
10.3.2 Standard RS-232C Mode....................................................................................................10-17
10.3.3 Interlink Mode .................................. ...... ....... ...... ....... .............................................. ...........10-18
10.4 Example Program............................................................................................10-19
10.4.1 Example of 16 Bits Data Communication ...........................................................................10-19
10.4.2 Example of 8 Bits Data Communication .......................... ...... ....... ...... ................................10-23
11. Optional Pr o g r amming Port..... ............................................................11-1
11.1 FX2N-422-BD, FX1N-422-BD............................................................................11-1
11.2 FX2N-232-BD FX1N-232-BD FX0N-232ADP and FX2NC-232ADP .................11-2
11.2.1 Connection cables ........................... ...... ....... ...... ....... ...... .....................................................11-2
11.3 Cautions on Use................................................................................................11-3
11.3.1 Cautions on Setting...............................................................................................................11-3
11.3.2 Cautions on use ................................................................................................................... 11-3
12. Diagnostics.................. .. .................... ................... ................... .. ..........12-1
12.1 Common Items..................................................................................................12-1
12.2 N:N Network ......................................................................................................12-2
12.2.1 Error Code ............................................. ....... ...... ....... ...... ...... ....... ...... ..................................12-2
12.2.2 Diagnostics ............................................................................ ....... ........................................12-2
12.3 Parallel Link.......................................................................................................12-3
12.3.1 Diagnostics ............................................................................ ....... ........................................12-3
12.4 Computer Link ...................................................................................................12-4
12.4.1 NAK Error Code....................................................................................................................12-4
12.4.2 Programmable Controller Error Code ...................................................................................12-4
12.4.3 Diagnostics ............................................................................ ....... ........................................12-5
12.5 RS Instruction....................................................................................................12-6
12.5.1 Diagnostics ............................................................................ ....... ........................................12-6
12.6 FX2N-232IF ........................................................................................................12-7
12.6.1 Error code.................... ....... ...... ....... ...... ....... ...... ....... ...... ...... ....... ........................................12-7
12.6.2 Diagnostics ............................................................................ ....... ........................................12-7
12.7 Using Optional Programming Port.....................................................................12-8
12.7.1 FX1S, FX1N and FX
2N(C)
earlier V2.00.......... ...... ....... ...... ...... ....... ...... ....... ...........................12-8
12.7.2 FX
2N
, FX
2NC
whose version is V 2.00 or later......................................................................12-8
Appendix A:
ASCII code Lists................................................................................................... A-1
FX communication
Introduction 1
1-1
1
1. Introduction
1.1 Abbreviations, Generi c Names and Terms Used in This Manual
Abbreviation List
This manual describes the following product in the new name.
Abbreviation/generic name/term Description
CPU
FX
1S
Series Generic name of FX1S Series main units
FX
0N
Series Generic name of FX0N Series main units
FX
1N
Series Generic name of FX1N Series main units FX Series Generic name of FX Series main units FX
2
Series Generic name of FX2 Series main units
FX
2N
Series Generic name of FX2N Series main units FX
2C
Series Generic name of FX2C Series main units FX
2NC
Series Generic name of FX
2NC
Series main units
FXCPU
Generic name of FX
0
/FX0S/FX1S/FX0N/FX1N/FX1/FX/FX2/FX2N/FX2C/
FX
2NC
Series main units
Others
FX/WIN Abbreviation of programming software FX-PCS/WIN-E for FX Series PLC Windows95 Abbreviation of Microsoft Windows95 Windows98 Abbreviation of Microsoft Windows98 Windows NT4.0 Abbreviation of Microsoft Windows NT Workstation 4.0 Windows 2000 Abbreviation of Microsoft Windows 2000 Professional
Windows
Generic name of Windows95, Windows98, Windows NT4.0 and Windows2000
Personal computer (PC)
Personal computer compatible with Windows to which GX Developer or FX­PCS/WIN-E is installed
Conventional name New name Remarks
GPPW GX Developer Abbreviation of software package SW"D5C-GPPW-E
FX communication
Introduction 1
1-2
1.2 Communication Types
The FX Series supports the following 5 types of communication. 1 ) N:N network
Data transfer with FX
2N
, FX
2NC
, FX1N, FX1S, FX0N programmable controllers can be performed on a N:N basis. They can link data of a small-scale system if using this network. For the system configuration please refer to subsection 1.2.1, specifications refer to chapter 3, wiring refer to chapter 2, settings and the number of transferred data and example program refer to chapter 4,diagnostics refer to chapter 12.
2 ) Parallel link
Data transfer with FX
2N
, FX
2NC
, FX1N, FX and FX2C programmable controllers can be
performed on a 1:1 bas is for 100 auxiliar y relays and 10 data reg isters. With the FX
1S
and
FX
0N
data transfer is performed for 50 auxiliary relays and 10 data registers. For the system configuration please refer to subsection 1.2.2, specifications refer to chapter 3, wiring refer to chapter 2, setting and example program refer to chapter 5, diagnostics refer to chapter 12.
3 ) Computer link (Data transfer using dedicated protocol)
Data transfer with RS-485 (RS-422) units can be performed on a 1:n (16) basis using dedicated protocol. For the system configuration please refer to subsection 1.2.3, specifications refer to chapter 3, wiring refer to chapter 2, setting of communication format refer to chapter 6, dedicated protocol refer to chapter 7 & 8, diagnostics refer to chapter 12.
4 ) No protocol communication (Data transfer using RS instruction)
Data communication with a diversified RS-232C unit including personal computers, bar code readers and printers can be performed using no protocol communications. This communication uses RS instruction’s or an FX
2N
-232IF special function block. For the system configuration please refer to subsection 1.2.3, specifications refer to chapter 3, wiring refer to chapter 2, setting of communication format, RS ins truction and example program refer to chapter 6 and 9, diagnostics refer to chapter 12. When using the RS ins tructio n, for setting the communicatio n format refer to chapter 6, for the RS instruction and example program please refer to chapter 9. Or when using an FX
2N
-
232IF, for setting and example progr am please refer to chapter 10.
5 ) Optional programming port
The port can support programming protocol, if connected to an FX
2N
-232-BD, FX0N-232ADP,
FX
2NC
-232ADP, FX1N-232-BD, FX2N-422-BD and FX1N-422-BD for the FX2N, FX
2NC
, FX1N,
FX
1S
Series programmable controller.
For notes on use, refer to chapter 11, diagnostics refer to chapter 12.
FX communication
Introduction 1
1-3
1
1.3 System Configuration
For programming protocol refer to chapter 11.
1.3.1 N:N Network
1.3.2 Parallel Link
1 ) FX
2N
, FX
2NC
(Shielded twisted-pair cable)
Note:
*1 When including an FX
2N
-485-BD in the system confi gur at ion, thai s , total extension distance
has a max of 50m (164' 0").
FX Series PLC Interface
FX
0N
, FX
2NC
FX0N-485ADP FX
2NC
-485ADP
FX
1S
, FX
1N
FX1N-CNV-BD + FX0N-485ADP FX
1N
-CNV-BD + FX
2NC
-485ADP
FX
1N
-485-BD
FX
2N
FX2N-CNV-BD + FX0N-485ADP FX
2N
-CNV-BD + FX
2NC
-485ADP
FX
2N
-485-BD
####, $$$$
Using interface Extension distance
FX
2N
FX2N-485-BD Max. 50m (164' 0") FX
2N
-CNV-BD + FX0N-485ADP
Max. 500m (1640' 5")
*1
FX2N-CNV-BD + FX
2NC
-485ADP
FX
2NC
FX0N-485ADP FX
2NC
-485ADP
RS-485
communication
equipment
RS-485
communication
equipment
RS-485
communication
equipment
RS-485
communication
equipment
RS-485
communication
equipment
FX PLC FX PLC FX PLC FX PLC FX PLC
Up to eight FX series programmable controllers can be connected. The total extension distance is 500m(1640' 5") when only the FX
0N
-485ADP and FX
2NC
-485ADP
are used in the configuration, and 50m(164' 0") when the FX1N-485-BD and FX2N-485-BD are used.
FX communication
Introduction 1
1-4
2 ) FX1N (Shielded twisted-pair cabl e)
*2 When including an FX
1N
-485-BD in the system configuration, thais, total extension distanc e
has a max of 50m
(164' 0")
.
3 ) FX
1S
(Shielded twisted-pair cable)
*3 When including an FX
1N
-485-BD in the system configuration, thais, total extension distanc e
has a max of 50m
(164' 0")
.
4 ) FX
0N
(Shielded twisted-pair cabl e)
5 ) FX, FX
2C
(Shielded twisted-pair cable and glassfiber cable)
Note;
Parallel link is only possible between the same series of PLC’s, or between other series in th e same group. However, parallel link between each group cannot be achieved. Group’s are separated as follows.
####, $$$$
Using interface Extension distance
FX
1N
FX1N-485-BD Max. 50m (164' 0") FX
1N
-CNV-BD + FX0N-485ADP Max. 500m (1640' 5")
*2
FX1N-CNV-BD + FX
2NC
-485ADP
####, $$$$
Using interface Extension distance
FX
1S
FX1N-485-BD Max. 50m (164' 0") FX
1N
-CNV-BD + FX0N-485ADP Max. 500m (1640' 5")
*3
FX1N-CNV-BD + FX
2NC
-485ADP
####, $$$$
Using interface Extension distance
FX
0N
FX0N-485ADP
Max. 500m (1640' 5")
FX
2NC
-485ADP
####, $$$$
Using interface Extension distance
FX
2
, FX
2C
FX2-40AW (Shielded twisted-pair cable) Max. 10m (32' 9") FX
2
-40AP (Glassfiber cable) Max. 50m (164' 0")
Group No. Series
Group 1 FX
2N
, FX
2NC
Group 2 FX
1N
Group 3 FX
1S
Group 4 FX
0N
Group 5 FX, FX
2C
FX communication
Introduction 1
1-5
1
1.3.3 Computer Link
1 ) In the case of 1:N connection using RS-485 (RS-422)
2 ) In the case of 1:1 connection using RS-232C
Up to sixteen FX series programmable controllers can be connected. The total extension distance is 500m(1640' 5") when only the FX0N-485ADP and FX
2NC
-485ADP are used
in the configuration, and 50m(164' 0") when the FX1N-485-BD and FX2N-485-BD are used.
FX0N,FX
2NC
FX2N + FX2N-CNV-BD, FX
1S
+ FX1N-CNV-BD,
FX
1N
+ FX1N-CNV-BD
FX
2NC
-485ADP,
FX0N-485ADP
FX2, FX
2C
FX-485ADP
A series PLC + A
(1S)
J71UC24
FX
2N
+ FX2N-485-BD,
FX
1S
+ FX1N-485-BD,
FX
1N
+ FX1N-485-BD
Computer
RS-232C
FX-485PC-IF
RS-485(RS-422)
Total extension distance is 15m(49' 2").
Computer
FX
2N
FX
2NC
,FX
0N
FX1N,FX
1S
FX2,FX
2C
:FX2N-232-BD FX2N-CNV-BD+FX0N-232ADP FX2N-CNV-BD+FX
2NC
-232ADP
:FX
0N
-232ADP
FX
2NC
-232ADP :FX1N-232-BD, FX1N-CNV-BD+FX0N-232ADP FX1N-CNV-BD+FX
2NC
-232ADP
:FX-232ADP
%
%
%
%
FX communication
Introduction 1
1-6
1.3.4 No Protocol Communication
*1 The RS-485/RS-232C signal co nvertor is necessary in the case of an R S-485 interface for a
computer connection.
*2 When using an FX
1N
-485-BD a FX2N-485-BD in a s ystem the total extension distance has a max of 50m(164' 0"). But, RS-485/RS-232C signal convertor is necessary in the case of an RS-232C interface for a computer connection.
*3 This system configuration can achieve full-duplex or half-duplex communication. *4 This system configuration can only achieve half-duplex communication.
1.4 Supported Functio n s and Applicable Versions
Items
FX
2N
,
FX
2NC
FX1N, FX
1S
FX
0N
FX, FX
2C
N:N network
All versions
All versions
V2.00 or more No support Parallel link All versions All versions Computer link V1.20 or more V3.30 or more
No protocol communication
Use RS instruction All versions V3.00 or more Use FX
2N
-232IF Not supported.
FX
2N
+
FX2N-CNV-BD
FX, FX
2C
FX
2N
+
FX2N-232-BD
FX0N-232ADP,FX
2NC
-232ADP
RS-232C
FX2N + FX2N-CNV-BD FX1N + FX1N-CNV-BD FX1S + FX1N-CNV-BD FX0N, FX
2NC
FX2N + FX2N-485-BD
FX-232ADP
FX0N-485ADP,FX
2NC
-485ADP
Max 15m(49' 2") *1
Max 500m (1640' 5") *2
*3
*4
*3
FX
0N
FX1N + FX1N-CNV-BD FX1S + FX1N-CNV-BD
FX0N-232ADP,FX
2NC
-232ADP
*4
*4 *3
Personal computer
Bar code reader
Printer
FX
2NC
FX0N-232ADP,FX
2NC
-232ADP
*3
FX1N + FX1N-485-BD FX1S + FX1N-485-BD
*4
% %
%
FX
1N
+ FX1N-232-BD FX1S + FX1N-232-BD
*4
%
%
% % % %
% %
FX2N, FX
2NC
+ FX
2NC
-CNV-IF
FX2N-232IF
RS-485(RS-422)
FX communication
Specifications 2
2-1
2
2. Specifications
2.1 Communication Specification
*1 FX2N, FX
2NC
, FX1N, FX1S and FX0N PLCs are supported.
*2 When using an FX
0N
-485ADP or FX
2NC
-485ADP, this system is only half-duplex.
N:N network Parallel lin k
Computer
link
(dedicated
protocol)
No protocol commu nica tion
Transmission standard
Conforming to
RS-485
Conforming to RS-485
and RS-422
Conforming to RS-485 and RS-422 or
RS-232C
Transmission distance Max. 500m
RS-485(RS-422): Max. 500m(1640' 5") RS-232C: Max. 15m (49' 2")
Number of stations Max. 8 stations 1:1
1:N
(N is Max. 16
stations
RS-232C:1:1 RS-485:1:N
*1
Communication method Half-duplex comm un ic ati on
FX, FX2C, FX0N, FX1N, FX1S: half-duplex communication
FX2N, FX
2NC
*2
: full-duplex
communication
Data length
Fixed
7 bit / 8 bit
Parity None / Odd / Even
Stop bit 1 bit / 2bit
Baud rate (bps) 38,400 19,200 300/600/1,200/2,400/4,800/9,600/19,200
Header character
Fixed
None / effective
Terminator character
Control line
Protocol
Format 1 /
Format 4
None
Sum check Fixed
None /
effective
Supported programmab le
controller
FX
2N
, FX
2NC
,
FX
1N
, FX1S, FX
0N
FX2N, FX
2NC
, FX1N, FX1S, FX0N, FX, FX
2C
FX communication
Specification 2
2-2
2.2 Communicatio n Ti m e
2.2.1 N:N network
Note;
If a N:N network is used, the scan time of each station programmable controller becomes about 10 percent longer regar dless of the number of link s tations or the communication device pattern used.
2.2.2 Parallel link
Communication de vice
Pattern 0
Bit device: 0 point
Word device: 4 points
Pattern 1
Bit device: 32 points
Word device: 4 points
Pattern 2
Bit device: 64 points
Word device: 8 points
Total station number
2 18 22 34 3 26 32 50 4 33 42 66 5 41 52 83 6 49 62 99 7 57 72 115 8 65 82 131
Normal Mode
70ms for reciprocation + Operation cycle of master station
+ Operation cycle of slave station (ms)
High speed mode
20ms for reciprocation + Operation cycle of master station
+ Operation cycle of slave station (ms)
FX communication
Specifications 2
2-3
2
2.2.3 Computer link
Calculations to determine the approximate time until communication is complete. 1 ) Programmable controller
Computer
Communication time = Total number of characters based on dedicated protocol
*1
×
Time to send or receive one character (ms)*2
+ Programmable controller’s maximum scan time (ms)
×
3
+ Message wait (ms)
2 ) Computer
Programmable controller
Communication time = Number of total characters based on dedicated protocol
*1
×
Time to send or receive one character (ms)*2 + Programmable controller’s maximum scan time (ms) + Message wait (ms)
Note:
*1 Please count the number of characters with ref erence section 7.4.1 and 7.4.2 and chapter 8. *2 Please refer to the following expression for time calculati on.
Time to send or receive one character = 1/baud rate
×
number of bits in character
(start bit(1) + Data length(7 or 8) + Parity bit(0 or 1) + Stop bit(1 or 2))
Example
When 1 character = 10 bits (Data length = 7, Parity bit = 1, stop bit = 1 start bit = 1), the time is as follows.
Note;
Please refer to following table fo r the relation between read ing word points and com munication time. “Message time = 0ms, Maximum scan time = 20ms, Dedicated protocol format = format 1, Command = WR, Baud rate = 9,600 or 19,200 bps”
Baud rate (bps) Time to send or receive one character (ms)
300 33.34
600 16.67 1200 8.34 2400 4.17 4800 2.08 9600 1.04
19200 0.52
Reading word points
Baud rate (bps)
9,600 19,200
10 0.3 s 0.2 s 32 0.4 s 0.3 s 64 0.5 s 0.4 s
FX communication
Specification 2
2-4
MEMO
FX communication
Wiring 3
3-1
3
3. Wiring
Terminal layout when using a communication unit, please refer to the individual units manual.
Common
1 ) This system is designed to read and write data (forced on/off) while the programmable
controller is running. If abnormal data is written to the programmable controller, due to effects of noise, the programmable controller may malfunction and cause machine trouble or a n accident. Therefore, observe the following cautions.
• Do not lay signal cables near high voltage power cables or put them in the same trunking duct. Otherwise effect s of noise or surge induction are likely to take place. Keep a safe distance of more than 100 mm (3.94") from these wires.
• Ground the shield wire or shield of a shielded cable at one poi nt on the programmable controller. Do not, however, ground at the same point as high voltage lines.
2 ) Cut off phases of power source externally, before installation or wiring work in order to avoid
electric shock or serious damage to the product.
3 ) Replace the provided terminal cover before supplying power and operating the unit after
installation or wiring work in order to avoid electric shock.
FX communication
Wiring 3
3-2
3.1 Caution on cable selection
3.1.1 FX1N-485-BD, FX2N-485-BD, FX
2NC
-485ADP
Number of cables connected to terminal and their specification
3.1.2 FX
0N
-485ADP
3.1.3 FX
2
-40AW
1 ) The terminal screws for the terminal bl oc k of the FX
2
-40A W are M3.5 s crews, theref ore crimp style terminal (see drawing) suitable for use with these screws should be fitted to th e cable for wiring.
2 ) The ter minal tightening torque is 0.5 to 0.8 N⋅m (5 to 8 kgf⋅cm), tighten securely to avoid
malfunction.
FX1N-485-BD, FX2N-485-BD FX
2NC
-485ADP
When connecting 1 cable
AWG26-16
AWG26-16 When connecting 2 cables AWG26-20 Tightening torque 0.6N%m 0.4 to 0.5N%m
6mm(0.23")
FX
1N
-485-BD,FX2N-485-BD
8mm(0.32")
FX
2NC
-485ADP
To connect the RS-485(RS-422) unit, use a shielded twist-pair cable. The cable model must be A WG 26 to 16, and the maximum tightening tor que must be 0.6 N%m (6 kgf%cm). If a cable other than the AWG 26 to 16 is used, normal communication cannot be assured as the terminal may be imperfectly contacted. It is recommended to insert a cable integrated by a crimping tool into the terminal.
For M3
6.2mm (0.24 inches) or less
6.2mm (0.24 inches) or less
For M3
1 ) The terminal screws of the FX
(0N)
-485ADP are M3 screws, therefore, crimp style terminal
(see drawing) suitable for use with these screws should be fitted to the cable for wiring.
2 ) The terminal tightening torque is 0.5 to 0.8 N⋅m (5 to 8 kgf⋅cm), tighte n securely to avoid
malfunction.
For M3.5
6.8mm (0.27 inches) or less
6.8mm (0.27 inches) or less
For M3.5
FX communication
Wiring 3
3-3
3
3.2 Using RS-232C Interface
Below is a typical wiring example. Please wire similar to the following pin name, when a pin number on the side of a counterpart machine differs.
3.2.1 Using RS Instruction or Computer Link
1 ) Terminal specification device
Note; When using ER and DR signals, please also chec k if RS and CS signals are needed according to the RS-232C device specifications.
2 ) Modem specification device
Note; The FX
0N
-232ADP and FX
2NC
-232ADP does not monitor the CD pin (pin8).
3 ) Computer link
Please refer to 2.2.1 1) for wiring.
RS-232C Device Side
Signal
name
FG
RD(RXD)
SD(TXD)
RSRTS)
SG(GND)
CS(CTS)
Uses CS, RS
­2 3 7 5 8
9-pin
D-SUB
25-pin
D-SUB
1 3 2 4 7 5
Uses DR, ER
9-pin D-
SUB
25-pin
D-SUB
­2 3 4 5 6
1 3 2
20
7 6
Signal
name
FG RD(RXD) SD(TXD) ER(DTR) SG(GND) DR(DSR)
Programmable Controller Side
Signal
name
FX0N-
232ADP
FX-
232ADP
- 1
RD(RXD)
SD(TXD)
FG
ER(DTR) SG(GND) DR(DSR)
FX2N-232-BD FX
1N
-232-BD
2 3 4 5 6
3 2
20
7 6
FX
2NC
-
232ADP
Programmable Controller Side
FX
2NC
-
232ADP
FX-
232ADP
- 1
RS-232C Device Side
Uses CS, RS Uses DR, ER
- 8
Signal
name
FG
RD(RXD)
SD(TXD)
ER(DTR) SG(GND) DR(DSR)
CD(DCD)
FX2N-232-BD FX
1N
-232-BD
1
FX0N-
232ADP
3 2
20
7 6
Signal
name
FG
RD(RXD)
SD(TXD) RS(RTS)
SG(GND)
CS(CTS)
CD(DCD)
-
2 3 7 5 8
9-pin
D-SUB
1
25-pin
D-SUB
1
3 2 4 7 5
8
Signal
name
FG
RD(RXD) SD(TXD) ER(DTR) SG(GND) DR(DSR)
FG
9-pin
D-SUB
-
2 3 4 5 6
1
25-pin
D-SUB
1
3 2
20
7 6
8 2 3 4 5 6
FX communication
Wiring 3
3-4
3.2.2 Using FX2N-232IF
The signal wiring o f the RS-232C equipmen t varies depending on the RS-232C connection specifications. Check the specifications of the RS-232C equipment used, then connect the signals correctly. Representative wiring examples are shown below.
1 ) Terminal specification device (No control line)
Setting communication format (BFM #0); b9=0, b8=0
Communication is performed in accordance with the condition determined by the software in the FX
2N
-232IF and the
counterpart equipment.
2 ) Terminal specification device (Use control line)
a ) Standard RS-232C mode (Use cross cable)
Setting communication format (BFM #0); b9=0, b8=1
As the carrier to send (CS) signal pin of the FX
2N
-232IF itself receives the request to send (RS) signal, signal tr ansfer is performed as if the counterpart equipment is functioning.
Note:
*1 When the CD signal is not monitored, the CD signal pin is not required to be connected.
With regard to the CD signal, the FX
2N
-232IF only indicates the status.
*2 The FX
2N
-232IF only indicates the status.
Programm able Controller Side
Signal
name
RD (RXD)
SD (TXD)
SG (GND)
FX2N-232IF
2
3
5
RS-232C D evice Side
Signal
name
RD (RXD)
SD (TXD)
SG (GND)
2
3
5
9-pin
D-SUB
25-pin
D-SUB
3
2
7
Programm able Controller Side
Signal
name
RD (RXD)
SD (TXD)
RS (RTS)
FX2N-232IF
2
3
7
RS-232C D evice Side
Signal
name
2
3
7
9-pin
D-SUB
25-pin
D-SUB
3
2
4
CD (DCD)
CS (CTS)
ER (DTR)
1
8
4
1
8
4
8
5
20 6 5
6 7
DR (DTR)
SG (GND)
6 5
RD (RXD)
SD (TXD)
RS (RTS)
CD (DCD)
CS (CTS)
ER (DTR) DR (DTR) SG (GND)
*1 *1
*2 *2
FX communication
Wiring 3
3-5
3
b ) Interlink connection mode (Use interlink serial cross cable)
Setting connection format (BFM #0); b9=1, b8=1
In the interlink connection mode, data exceeding 512 bytes (upper limit of the receive buff er in the FX
2N
-232IF) can be
received.
Note:
*1 The FX
2N
-232IF only indicates the status.
*2 In this mode, the request to send (RS) signal func tions as the signal to enable receive in
the FX
2N
-232IF.
When receiving data exceeding 512 bytes, the FX
2N
-232IF sets the request to send (RS) signal to “OFF” and requests the counterpart equipment to suspend the send operation. When the data saved in the receive buffers is read by the sequence program, the remaining data can be receiv ed.
3 ) Modem specification device
Standard RS-232C mode (Using straight cable) Setting communication format (BFM #0); b9=0, b8=1
Note:
*1 The FX
2N
-232IF indicates the status exclusively.
*2 When the CD signal is not monitored, the CD signal pin is not required to be connected.
With regard to the CD signal, the FX
2N
-232IF indicates the status exclusively.
*3 When the CI signal is not required, the CI signal pi n is not required to the connected. With
regard to the CI signal, the FX
2N
-232IF indicates the status exclusively.
Programm able Controller Side
Signal
name
RD (RXD)
SD (TXD)
RS (RTS)
FX2N-232IF
2
3
7
RS-232C D evice Side
Signal
name
2
3
7
9-pin
D-SUB
25-pin
D-SUB
3
2
4 CS (CTS) ER (DTR)
8 4
8 4
5
20 6 5
6 7
DR (DTR)
SG (GND)
6 5
RD (RXD)
SD (TXD)
RS (RTS) CS (CTS)
ER (DTR) DR (DTR) SG (GND)
*1 *1
*2 *2
Programm able Controller Side
Signal
name
RD (RXD)
SD (TXD)
RS (RTS)
FX2N-232IF
2
3
7
RS-232C D evice Side
Signal
name
2
3
7
9-pin
D-SUB
25-pin
D-SUB
3
2
4
CD (DCD)
CS (CTS)
ER (DTR)
1
8
4
1
8
4
8
5
20 6 5
6 7
DR (DTR)
SG (GND)
6 5
RD (RXD)
SD (TXD)
RS (RTS)
CD (DCD)
CS (CTS)
ER (DTR) DR (DTR) SG (GND)
*1 *1
*2 *2
9 22C I (R I) 9 CI (RI)
*3 *3
FX communication
Wiring 3
3-6
3.3 Using RS-485 Interface
3.3.1 Wiring Selection
The wiring of RS-485 can either be one-pair or two-pair. The wiring method is decided according to application usage. Please select the wiring method from the table below.
&
Recommendation,
'
OK, ×…Cannot use
Note:
*1 When this product is added to the system, please match the wir ing to the existing method of
the system.
*2 When using an FX
2N
-485-BD with this wiring method, remember to take account of/or ignore
the “echo” of the commands sent from the FX
2N
programmable contr oller.
*3 Please use the FX
2N
programmable cont roller and FX2N-485-BD together.
Full-duplex combination cannot be achieved with other configurations.
*4 For wiring parallel link, see section 2.4.
3.3.2 T erminal Resistor
A terminal resistor must be used at both ends of the communication line as described in section
2.3.3 and 2.3.4.
Usage One-pair wiring Two-pair wiring
No protocol (Use RS instruction) *1
Half-duplex communication
&
*2
'
Full-duplex communication *3
×
'
Dedicated protocol (Use computer link)*1
It is necessary to set the message wait time to 70 ms or less.
×
'
It is not necessary to set the massage wait time to 70 ms or less.
&
*2
'
Use the on-demand function
×
'
Parallel link *4
&
'
N:N network
'
×
Orange Orange Brown
Brown Brown Brown
330
1/4 W
110
1/2 W
1 )In the case of two-pair wiring, connect the terminal resistor
(330
, 1/4W) between terminals SDA and SDB and between terminals RDA and RDB. Use the resistors offered as accessories with the product.
2 )In the case of one-pair wiring, connect the terminal resistor
(110
, 1/2W) between terminals RDA and RDB. Use the
resistors offered as accessories with the product.
Loading...
+ 132 hidden pages