background image

7.5.3

Example of Set Program

For the set program for the master station and the stations Nos. 1 and 2, refer to Section 7.3.6 program.

Master station

Slave station No. 1

Slave station No. 2

Remarks

D8176

K0

K1

K2

Station No.

D8177

K2

Total slave station : 2 stastions

D8178

K1

Refresh range : Pattern 1

D8179

K3

Retry count : 3 times (default)

D8180

K5

comms time-out : 50 ms (default)

7

FX

2N

-485-BD COMMUNICATION BOARD

N:N NETWORK

7-12

Содержание FX2N-485-BD

Страница 1: ...FX2N 485 BD COMMUNICATION BOARD USER S MANUAL ...

Страница 2: ...G MARUNOUCHI TOKYO 100 TELEX J24532 CABLE MELCO TOKYO HIMEJI WORKS 840 CHIYODA CHO HIMEJI JAPAN FX2N 485 BD COMMUNICATION BOARD USER S MANUAL JY992D66201A MEE 9706 Effective JUN 1997 Specifications are subject to change without notice ...

Страница 3: ...FX2N 485 BD COMMUNICATION BOARD ...

Страница 4: ...ore attempting to install or use the unit Further information can be found in the FX PROGRAMMING MANUAL FX2N series hardware manuals and manual of FX 485PC IF USER S MANUAL If in doubt at any stage during the installation of the FX2N 485 BD COMMUNICATION BOARD always consult a professional electrical engineer who is qualified and trained to the local and national standards FX2N 485 BD COMMUNICATIO...

Страница 5: ...own 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 Owing to the very great variety in possible application of this equipment you must satisfy yourself as to its suitability for your specific application FX2N 485 BD COMMUNICATION BOARD...

Страница 6: ...USER S MANUAL FX2N 485 BD COMMUNICATION BOARD Manual number JY992D66201 Manual revision A Date JUNE 1997 FX2N 485 BD COMMUNICATION BOARD i ...

Страница 7: ...ssioning 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...

Страница 8: ...l 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 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 Indica...

Страница 9: ...re 2 1 2 2 Cable and Terminal Resistor 2 2 2 2 1 Cable 2 2 2 2 2 Selection of Wiring 2 3 2 2 3 Terminal Resistor 2 4 2 2 4 Two pair Wiring 2 5 2 2 5 One pair Wiring 2 6 3 SPECIFICATION 3 1 3 1 General Specification 3 1 3 2 Power Supply Specification 3 1 3 3 Specification 3 1 4 COMMUNICATION FORMAT 4 1 4 1 Related Flag and Data Registers 4 1 4 2 Communication Format D8120 4 2 4 2 1 Example Program ...

Страница 10: ... 5 6 6 PARALLEL LINK 6 1 6 1 Parallel Link 6 1 6 2 Outline 6 1 6 2 1 Normal Mode Special auxiliary relay M8162 OFF 6 2 6 2 2 High Speed Mode Special auxiliary relay M8162 ON 6 2 6 3 Example Program 3 6 3 6 3 1 Normal Mode 6 3 6 3 2 High Speed Mode 6 4 7 N N NETWORK 7 1 7 1 Outline 7 1 7 2 Related Flags and Data Registers 7 2 7 2 1 Special Auxiliary Relays 7 2 7 2 2 Special Data Registers 7 3 7 3 S...

Страница 11: ...sed for setting 7 8 7 4 Error Code 7 9 7 5 Examples Program 7 10 7 5 1 System Configuration 7 10 7 5 2 Operations 7 11 7 5 3 Example of Set Program 7 12 7 5 4 Example of Error Program 7 13 7 5 5 Example of Operation Program 7 14 8 DIAGNOSTICS 8 1 8 1 Common Items 8 1 8 2 Using the No Protocol 8 2 8 3 Using the Dedicated Protocol 8 3 8 4 Using the Parallel Link 8 4 8 5 Using the N N network 8 5 FX2...

Страница 12: ...ters 5 and 6 For the RS instruction refer to the FX Programming Manual 2 Data transfer using the dedicated protocol Data transfer with RS485 422 units can be performed on the 1 N basis using the dedicated protocol For the contents of the dedicated protocol used in this application refer to the FX 485PC IF User s Manual 3 Data transfer using the parallel link Data transfer with an FX2N programmable...

Страница 13: ...LED Flashes at high speed during sending RD LED Flashes at high speed during sending Terminals to connect RS485 unit The top face of this terminal block is higher than the top face of the panel cover of the programmable controller by approximately 7 mm 39 1 54 52 2 05 35 1 38 46 1 81 5 RDA RDB SDA RDB SG RDA RDB SDA SDB SG 4 3 2 1 1 FX2N 485 BD COMMUNICATION BOARD INTRODUCTION 1 2 ...

Страница 14: ... max 16 stations including A series programmable controller 1 2 2 When Use Parallel Link When use 485BD in the system this distance 50m No use max 500m FX2N FX FX2C FXON A series 485BD FX ON 485ADP A series Porgrammable controller s computer link unit RS422 485 Unit A C P U 485BD FX2N FX2N 485BD or FX2N FX CNV BD FX0N 485ADP 1 FX2N 485 BD COMMUNICATION BOARD INTRODUCTION 1 3 ...

Страница 15: ...1 2 3 When Use N N Network Total extension distance 50m max 8 stations Master FX2N Slave Slave Slave FX2N 485BD 485BD FX2N 485BD FX2N 485BD 1 FX2N 485 BD COMMUNICATION BOARD INTRODUCTION 1 4 ...

Страница 16: ...ounting connector provided on the base unit Fix the 485BD to the base unit using the M3 self tapping screws supplied Tightening torque 0 3 to 0 6 Nm 3 to 6 kgf cm Remove the cut out on the left of the panel cover using a tool such as nippers or cutters so that the terminal block can The top face of this terminal block is higher than the top face of the panel cover of the programmable controller by...

Страница 17: ...f a cable other than the AWG 26 to 16 is used normal communication cannot be assured because the terminal may be imperfectly contacted It is recommended to insert a cable integrated by the crimping tool into the terminal Total extension distance 50m No use max 500m max 8 stations Master FX2N Slave Slave Slave FX2N 485BD 485BD FX2N 485BD FX2N 485BD 2 FX2N 485 BD COMMUNICATION BOARD MOUNTING AND WIR...

Страница 18: ...users manual of the FX 485PC IF 4 When the on demand function of the dedicated protocol is used However the RS485 422 unit must be connected to the 485BD on the one to one basis 5 When wiring is added to the system which has been already constructed using two pair wiring 2 When one pair wiring is required 1 When wiring is added to the system which has been already constructed using one pair wiring...

Страница 19: ...0 Ω 1 4 W between terminals SDA and SDB as well as between terminals RDA and RDB Use the resistors offered as accessories of the 485BD 2 In the case of one pair wiring connect the terminal resistor 110 Ω 1 2 W between termials RDA and RDB Use the resistors offered as accessories of the 485BD Orange Orange Brown Brown Brown Brown 2 FX2N 485 BD COMMUNICATION BOARD MOUNTING AND WIRING 2 4 ...

Страница 20: ...ch terminal of the programmable controller main body grounded with resistance of 100 Ω or less However as for the computer link unit of the A series programmable controller see the manual of the computer link unit 4 When use RS232 485 or RS232 422 adapter please the adapter use FX 485PC IF Grounding of resistance 100 or less R 1 R 1 SDA SDB RDA RDB SDA SDB RDA RDB SG SDA SDB RDA RDB LINK SG 3 FG S...

Страница 21: ...o each terminal of the programmable controller main body grounded with resistance of 100 Ω or less However as for the computer link unit of the A series PC see the manual of the computer link unit 4 When use RS232 485 or RS232 422 adapter please the adapter use FX 485PC IF Grounding of resistance 100 or less R 1 SDA SDB RDA RDB SDA SDB RDA RDB SG SDA SDB RDA RDB LINK SG 3 FG SDA SDB RDA RDB SG 3 F...

Страница 22: ...tion Transmission standard Conforming to RS485 and RS422 Transmission distance Max 50 m LED indicators SD RD Communication method Half duplex communication system Protocol Dedicated protocol format 1 or format 4 No protocol Parallel link N N network Sported baud rate Dedicated protocol and no protocol 300 19 200 bps Parallel link 19 200 bps N N network 38 400 bps Isolation No isolation 3 FX2N 485 ...

Страница 23: ...MEMO 3 FX2N 485 BD COMMUNICATION BOARD SPECIFICATIONS 3 2 ...

Страница 24: ...emand handshake flag dedicated protocol M8128 On demand error flag dedicated protocol M8129 On demand Byte Word flag dedicated protocol M8161 Selection of 8 bit operations for applied instructions ASC RS ASCI HEX CCD RS instruction Diagnostic devices Operation D8120 Communications format RS instruction dedicated protocol D8121 Local station number dedicated protocol D8122 Amount of remaining data ...

Страница 25: ...on format in accordance with the RS485 422 unit used For the setting method using the parameters of the FX2N programmable controller refer to the manual of the peripheral unit used Make sure to turn off the power of the programmable controller and turn it on again after modifying the setting Bit No Meaning Contents 0 OFF 1 ON b0 Data length 7 bit 8 bit b1 b2 Parity b2 b1 b2 b1 0 0 None 1 1 Even 0 ...

Страница 26: ...tocol format 4 1 Make sure to set it to 0 when the dedicated protocol is used 2 It is effective exclusively when the no protocol RS instruction is selected and the initial value is STX 02H Can be modified by the user 3 It is effective exclusively when the no protocol RS instruction is selected and the initial value is ETX 03H Can be modified by the user 4 Make sure to set in to b10 b11 b12 1 1 0 i...

Страница 27: ...ng it is not actually accepted An example of setting D8120 is shown below H1B8E 0001 1011 1000 1110 binary The settings for the above program are as right M8002 MOV H1B8E D8120 Data length 7 bit Parity Even Stop bit 2 bit Baud rate 9 600 bps Protocol No protocol Header character Use Terminator character Use DTR check Receive Control line H W of type II use Type I does not use 4 FX2N 485 BD COMMUNI...

Страница 28: ...5 1 1 System Configuration For communication between the printer and the FX 485PC IF use the cable which is consistent with the connector pin assignment of the printer used For wiring between the FX 485PC IF and the 485BD refer to Section 2 For the FX 485PC IF refer to the users manual of the FX 485PC IF 485BD FX2N FX 485PC IF Send Send Printer having RS232C interface RS232C 485 signal converter 5...

Страница 29: ... as follows Data length 8 bit Parity Even Stop bit 2 bit Baud rate 2 400 bps Protocol No protocol Header character Not use Terminator character Not use DTR check Receive Control line H W of type II use Type I does not use 5 FX2N 485 BD COMMUNICATION BOARD RS EXAMPLE PROGRAM 5 2 ...

Страница 30: ...V D11 H0065 MOV D17 H006E MOV D18 H0065 MOV D19 H000D MOV D20 H000A MOV M8122 SET END Handled by 8 bit data Setting of communication format RS instruction drive Send request Writing of send data Herein test line is sent b15 b0 H 182F 0001 1000 0010 1111 5 FX2N 485 BD COMMUNICATION BOARD RS EXAMPLE PROGRAM 5 3 ...

Страница 31: ...e cable which is consistent with the connector pin assignment of the printer used For wiring between the FX 485PC IF and the 485BD refer to Section 2 For the FX 485PC IF refer to the users manual of the FX 485PC IF Note Preparation of software Use ordinary communication software terminal emulator or dedicated program in the personal computer Personal Computer 485BD FX2N FX 485PC IF Send Send RS232...

Страница 32: ...not be adjusted this setting adjusted the programmable controller and the software to be the same Data length 8 bit Parity Even Stop bit 2 bit Baud rate 2 400 bps Protocol No protocol Header character Not use Terminator character Not use DTR check Receive Control line H W of type II use Type I does not use 5 FX2N 485 BD COMMUNICATION BOARD RS EXAMPLE PROGRAM 5 5 ...

Страница 33: ... X000 K1 D50 D10 K11 RS X001 M0 PLS M0 D10 H0074 MOV D11 H0065 MOV D17 H0074 MOV D18 H0061 MOV D19 H000D MOV D20 H000A MOV M8122 SET Handled by 8 bit data Setting of communication format RS instruction drive Send request Writing of send data Herein test line is sent b15 b0 H 182F 0001 1000 0010 1111 5 FX2N 485 BD COMMUNICATION BOARD RS EXAMPLE PROGRAM 5 6 ...

Страница 34: ...each other by the wiring described in Chapter 2 and the data is automatically transferred between them using the special auxiliary relays 6 2 Outline Two modes the normal mode and the high speed mode are offered for the parallel link The special auxiliary relay M8162 recognizes the type of mode The master station and the slave station are set by the special auxiliary relays M8070 and M8071 6 FX2N ...

Страница 35: ...ms M8000 M8070 D490 D499 D500 D509 M800 M899 M900 M999 M8000 M8071 D490 D499 D500 D509 M800 M899 M900 M999 Automatical communication Master station to Slave station M800 to M899 100 points D490 to D499 10 points Slave station to Master station M900 to M999 100 points D500 to D509 10 points Master Slave M8000 M8070 M8162 M8000 M8071 M8162 D490 D491 D500 D501 Master Slave Automatical communication M...

Страница 36: ... OFF status of the M0 to the M7 in the slave station is output to the Y000 to the Y007 in the master station The D10 value in the slave station is set to the timer T0 in the master station Master station M8000 MOV K2X000 K2M800 M8070 ADD D0 D2 D490 M8000 MOV K2M900 K2Y000 M8000 X010 T0 D500 END 1 2 3 4 Slave atation MOV K2M800 K2Y000 M8071 CMP D490 K100 M10 MOV K2M0 K2M900 END MOV D10 D500 M10 Y01...

Страница 37: ...tation is turned on The D10 value in the slave station is set to the timer T0 in the master station M8000 M8070 ADD D0 D2 D490 M8000 X010 T0 D500 END M8162 Master station 1 2 M8000 M8071 CMP D490 K100 M10 M8000 END M8162 M10 Y010 X010 MOV D10 D500 Slave atation 1 2 6 FX2N 485 BD COMMUNICATION BOARD PARALLEL LINK 6 4 ...

Страница 38: ...r is automatically performed among the programmable controllers for the devices determined in the refresh range The devices in the refresh range can be monitored by all the stations However the data writing operation and the ON OFF operation are enabled in its own station exclusively 7 FX2N 485 BD COMMUNICATION BOARD N N NETWORK 7 1 ...

Страница 39: ...is is ON 1 L R M8184 to M8190 2 Communication error of Slave station When communication error is in slave station this is ON 1 M L R M8191 Data communication When communicate to other station this is ON M L R Ready only W Write only M Master station L Slave station 1 The number of communication errors occurred in its own station cannot be counted in the CPU error status the program error status or...

Страница 40: ...um network scan time M L R D8203 Number of communication error at master station Number of communication error at master station 1 L R D8204 to D8210 2 Number of communication error at slave station Number of communication error at slave station 1 M L R D8211 Code of communication error at master station Code of communication error at master station L R D8212 to D8218 2 Code of communication error...

Страница 41: ...ster D8176 Set value Decryption 0 Master station 1 to 7 Salve station No Example 1 is Slave station No 1 2 is Slave station No 2 7 3 2 Setting the Total Number of Slave Stations D8177 Set a value 1 to 7 to the special data register D8177 Default 7 This setting is not required for the slave station Set value Description 1 1 slave station 2 2 slave station 7 7 slave station 7 FX2N 485 BD COMMUNICATI...

Страница 42: ... N N network Communication device Refresh range Pattern 0 Pattern 1 Pattern 2 Bit device M 0 point 32 points 64 points Word device D 4 points 4 points 8 points 1 In the case of pattern 0 Station No Device No Bit device M Word device D 0 point 4 points No 0 D0 to D3 No 1 D10 to D13 No 2 D20 to D23 No 3 D30 to D33 No 4 D40 to D43 No 5 D50 to D53 No 6 D60 to D63 No 7 D70 to D73 7 FX2N 485 BD COMMUNIC...

Страница 43: ...351 D50 to D53 No 6 M1384 to M1415 D60 to D63 No 7 M1448 to M1479 D70 to D73 3 In the case of pattern 2 Station No Device No Bit device M Word device D 0 point 8 points No 0 M1000 to M1063 D0 to D7 No 1 M1064 to M11127 D10 to D17 No 2 M1128 to M1191 D20 to D27 No 3 M1192 to M1255 D30 to D37 No 4 M1256 to M1319 D40 to D47 No 5 M1320 to M1383 D50 to D57 No 6 M1384 to M1447 D60 to D67 No 7 M1448 to M...

Страница 44: ...te the slave station this retry count or over communication error occur in the station 7 3 5 Setting comms time out D8179 Set value 5 to 255 to thespecial data register D8179 Default 5 This value multiply by 10 ms is time of comms time out Comms time out is time out of communication time between the master station and slave station 7 FX2N 485 BD COMMUNICATION BOARD N N NETWORK 7 7 ...

Страница 45: ...e 0th step LD M8038 and finished when any instruction or device other than the program above is processed M8038 FNC 12 MOV K 0 D8176 FNC 12 MOV K 2 D8177 FNC 12 MOV K 1 D8178 FNC 12 MOV K 3 D8179 0 Station No setting Required for master station Set range 0 to 7 Refry count setting 3 3times Total number of slave stations 2 Setting range 1 to 7 Refresh range setting Pattern 1 Set range 0 to 2 Not re...

Страница 46: ... STOP state RUN is OK station No setting 11H Comms time out error M L After slave station send answer to master station master station do not send request to next slave station Check wiring power of programmable controller RUN STOP state RUN is OK 14H Comms format error M L Communication format is not right from master station Check wiring power of programmable controller RUN STOP state RUN is OK ...

Страница 47: ...on 1 Refresh range 32 bit devices and 4 word devices Pattern 1 2 Retry count 3 times 3 comms time out 5 50 ms FX2N 485BD FX2N 485BD Master station No 0 Slave station No 1 485BD Slave station No 2 7 FX2N 485 BD COMMUNICATION BOARD N N NETWORK 7 10 ...

Страница 48: ...he counter C1 is reflected on the output point Y005 in the master station The data register D2 in the master station is specified as the set value of the counter C2 in the station No 2 The contact M1140 status of the counter C2 is reflected on the output point Y006 in the master station The value of the data register D10 in the station No 1 and the value of the data register D20 in the station No ...

Страница 49: ...o Section 7 3 6 program Master station Slave station No 1 Slave station No 2 Remarks D8176 K0 K1 K2 Station No D8177 K2 Total slave station 2 stastions D8178 K1 Refresh range Pattern 1 D8179 K3 Retry count 3 times default D8180 K5 comms time out 50 ms default 7 FX2N 485 BD COMMUNICATION BOARD N N NETWORK 7 12 ...

Страница 50: ...8183 Master communication error Y000 M8184 Slave 1 communication error Y001 M8185 Slave 2 communication error Y002 M8191 Data communication Y003 Continued to a b or c in 7 5 5 Program 7 FX2N 485 BD COMMUNICATION BOARD N N NETWORK 7 13 ...

Страница 51: ...munication error Slave 2 communication error M8184 Slave 1 communication error M8184 M8185 M1070 Contact of slave 1 C1 device MOV K1X000 K1M1000 MOV K1M1064 K1Y014 MOV K1M1128 K1Y020 MOV K 10 D 1 Y005 Operation 1 Operation 2 Operation 3 Operation 4 Continued 7 FX2N 485 BD COMMUNICATION BOARD N N NETWORK 7 14 ...

Страница 52: ...140 Contact of slave 2 C2 device MOV K 10 D 2 Y006 Operation 5 Slave 1 communication error M8184 MOV K 10 D 3 M8185 Slave 2 communication error MOV K 10 D 0 END Operation 6 Operation 7 8 7 FX2N 485 BD COMMUNICATION BOARD N N NETWORK 7 15 ...

Страница 53: ...ication error M8183 M8184 Slave 1 communication error Operation 1 Operation 3 X001 MOV K1M1000 K1Y010 MOV K1X000 K1M1064 M8185 Slave 2 communication error MOV K1M1128 K1Y020 Counter input X000 D 1 Y005 C 1 M1070 Operation 2 Continued 7 FX2N 485 BD COMMUNICATION BOARD N N NETWORK 7 16 ...

Страница 54: ...cation error M8185 M1140 Contact of slave 2 C2 device MOV K 10 D 10 Y006 Slave 2 communication error D 0 D 20 D 11 ADD END Operation 5 Operation 6 8 Operation 7 M8185 7 FX2N 485 BD COMMUNICATION BOARD N N NETWORK 7 17 ...

Страница 55: ...M8185 Slave 2 communication error Operation 1 Operation 3 X001 MOV K1M1000 K1Y010 MOV K1X000 K1M1128 M8184 Slave 1 communication error MOV K1M1064 K1Y014 Y005 Operation 2 M8184 Slave 1 communication error M1070 Contact of Slave 1 C1 device Continued 7 FX2N 485 BD COMMUNICATION BOARD N N NETWORK 7 18 ...

Страница 56: ...C 2 Operation 5 7 M8184 Slave 1 communication error Counter input X000 D 2 Y006 C 2 M1140 Operation 6 END MOV K 10 D 20 D 0 D 10 D 21 ADD 7 FX2N 485 BD COMMUNICATION BOARD N N NETWORK 7 19 ...

Страница 57: ...MEMO 7 FX2N 485 BD COMMUNICATION BOARD N N NETWORK 7 20 ...

Страница 58: ...between the 485BD and the programmable controller is correct When the these LEDs is extinguished OFF connect the 485BD to the programmable controller using the procedure described in Chapter 2 2 Check whether the VRRD or VRSC instruction is used in the program If it is used delete it turn off the power of the programmable controller then turn it on again 8 FX2N485 BD COMMUNICATION BOARD DIAGNOSTIC...

Страница 59: ...e D8120 in the programmable controller When the D8120 is corrected restart the RS instruction When the communication parameters are corrected turn off the power of the programmable controller and turn it on again 5 Confirm the timing of data transmission For example before sending the data make sure that the counterpart equipment is ready for receiving the data 6 When a terminator is not used make...

Страница 60: ...ion parameters in the external unit or correct the contents of the D8120 in the programmable controller When the D8120 is corrected turn off the power of the programmable controller and turn it on again 4 Make sure that the communication target programmable controller station No is equivalent to the station No specified in the communication procedure If they are different let them be equivalent 5 ...

Страница 61: ...8120 is not 0 perform the following When the D8120 is used in the program delete it turn off the power of the programmable controller then turn it on again Check the value of the D8120 using a peripheral unit If it is not 0 set it to 0 using the peripheral unit turn off the power of the programmable controller then turn it on again When the parameters for the communication setting are used initial...

Страница 62: ...ister D8120 for the communication format or the parameters for the communication setting are used or when the value of the D8120 is not 0 perform the following When the D8120 is used in the program delete it turn off the power of the programmable controller then turn it on again Check the value of the D8120 using a peripheral unit If it is not 0 set it to 0 using the peripheral unit turn off the p...

Страница 63: ...MEMO 8 FX2N485 BD COMMUNICATION BOARD DIAGNOSTICS 8 6 ...

Страница 64: ...MEMO 8 FX2N485 BD COMMUNICATION BOARD DIAGNOSTICS 8 7 ...

Страница 65: ...MEMO 8 FX2N485 BD COMMUNICATION BOARD DIAGNOSTICS 8 8 ...

Отзывы: