USER’S MANUALFX COMMUNICATION (RS-232C, RS-485, RS-422)RS-232CFX-232ADPFX0N-232ADPFX2NC-232ADPFX1N-232-BDFX2N-232-BDFX2N-232IFRS-485FX-485ADPFX0N-485A
FX communicationviiiFX2N-485-BD Hardware ManualJY992D73401This manual contains written hardware explanation of installation and specification regardin
FX communicationCommands 88-203 ) Specification Example 2To transmit the data stored in data registers D100 and D101 from the programmablecontroller (
FX communicationCommands 88-2188.11 Loopback TestThe loopback test is the function for testing if communication between the computer andprogrammable c
FX communicationCommands 88-22MEMO
FX communicationRS instruction 99-199. RS instructionThis section refers to the RS instruction. For target devices, refer to the application instructi
FX communicationRS instruction 99-2Operating Conditions and Format Set ContentThe programmable controller can change from using no protocol communicat
FX communicationRS instruction 99-399.1.2 Operation of RS InstructionAn RS instruction specifies the head address and the number of points of the send
FX communicationRS instruction 99-49.1.3 Related Flags and Data Registers1 ) Send request <M8122>When M8122 is set by a pulse instruction in the
FX communicationRS instruction 99-594 ) Time-out evaluation <M8129> (Valid in the FX2N, FX2NC programmable controller earlier thanV2.00)If recei
FX communicationRS instruction 99-69.2 Hardware Hand Shake Operation9.2.1 FX, FX2C, FX0N, FX1S, FX1N and FX2N (earlier than V 2.00)In the FX, FX2C, FX
FX communicationRS instruction 99-792 ) Use terminal mode of control lineThis mode is available for send only or receive only.a ) Send only b ) Receiv
ixTable of Contents Further Information Manual List ... vii1. Introduction ...
FX communicationRS instruction 99-83 ) Use normal mode 1 of control line Note:* When using FX1S, FX1N, FX0N, FX, or FX2C, this period should be longer
FX communicationRS instruction 99-994 ) Use normal mode 2 of control line (FX, FX2C only) *1 Please turn OFF ER (DTR) of DR (DSR) later.*2 When the da
FX communicationRS instruction 99-109.2.2 FX2N, FX2NC (V 2.00 or later)In the FX2N V 2.00 or later, full duplex communication is performed. When perfo
FX communicationRS instruction 99-1193 ) Use normal mode 1 of control line Reset using a program.When it is not trurned off, the next datacannot be re
FX communicationRS instruction 99-124 ) Use interlink mode of control line *1 While the counterpart equipment is ready to receive, turn ON the DR (DSR
FX communicationRS instruction 99-1399.3 Number of Communication Data9.3.1 Deal with 16 bits DataWhen M8161 is set to OFF (M8161 is shared by an ASCII
FX communicationRS instruction 99-149.3.2 Deal with 8 bits DataWhen M8161 is set to ON (M8161 is shared by an ASCII instruction, a HEX instruction and
FX communicationRS instruction 99-1599.4 Example Program9.4.1 Personal ComputerWhen a programmable controller is connected to a personal computer, and
FX communicationRS instruction 99-164 ) Example program of programmable controller 5 ) Example program of computerThis is an example of a BASIC progra
FX communicationRS instruction 99-1799.4.2 PrinterConnecting FX2N-232-BD and printer, and printing out the data send from the programmablecontroller.1
FX communicationx4.2 Setting...4-34.2
FX communicationRS instruction 99-184 ) Operation Turn on the power of theprogrammable controller and printer,check the printer is on line and switcht
FX communicationFX2N-232IF 1010-11010. FX2N-232IF10.1 IntroductionThe RS-232C interface block FX2N-232IF (hereinafter referred to as “232IF”) is conne
FX communicationFX2N-232IF 1010-210.2 Allocation of Buffer Memories (BFM’s)The RS-232C interface block FX2N-232IF(232IF) transmits data with the progr
FX communicationFX2N-232IF 1010-310Note : “W : For write” can be used for read also. Undefined BFM Nos. are not allowed to be usedin the program.*1 :
FX communicationFX2N-232IF 1010-410.2.2 Communication Format <BFM#0> The communication format is determined on the rising edge of the send/recei
FX communicationFX2N-232IF 1010-510Note : Setting example (hexadecimal, constant specification) 1 ) Communication format 2 ) b0 to b7 (data length, pa
FX communicationFX2N-232IF 1010-63 ) b9 and b8 (control line)For examples of connecting the equipment corresponding to each setting, refer to section2
FX communicationFX2N-232IF 1010-710Note : ASCII/HEX conversionWhen execution of the ASCII/HEX conversion is specified, the hexadecimal numeric data (0
FX communicationFX2N-232IF 1010-810.2.3 Command 〈BFM #1〉 BFM #1 gives the command for send/receive and the status information reset command to the232I
FX communicationFX2N-232IF 1010-91010.2.4 Receive Upper Limit Byte Count 〈BFM #2〉Setting range: 1 to 512 (when buffer data length is 16 bits)1 to 256
FX communicationxi8. Commands... 8-18.1 Batch Read of Bit D
FX communicationFX2N-232IF 1010-1010.2.8 Receive Header <BFM #9 (upper), BFM #8 (lower)>Setting range: 4 bytes maximum, zero suppressionThe init
FX communicationFX2N-232IF 1010-111010.2.11 Number of Remaining Send Data <BFM #13>Saved value: 0 to 512 (when buffer data length is 16 bits)0 t
FX communicationFX2N-232IF 1010-1210.2.15 Time from CS ON to Send Start <BFM #20>Set value: 0 to 32,767 (x 10ms)The initial value is 0 ms.The ti
FX communicationFX2N-232IF 1010-131010.2.17 Status <BFM #28> The 232IF status and the send/receive result are saved as status information. This
FX communicationFX2N-232IF 1010-147 ) b7 (being received)b7 is turned on after the head data is received until the receive completion status (BFM #28b
FX communicationFX2N-232IF 1010-151010.2.22 Receive Byte Count <BFM #2000>Saved value: 0 to 512+30*1(when buffer data length is 16 bits)0 to 256
FX communicationFX2N-232IF 1010-1610.3 Hardware Hand Shake Operation 10.3.1 No Hardware Hand Shake Setting BFM#0 (b9, b8)=(0, 0) *1 Turn off using a p
FX communicationFX2N-232IF 1010-171010.3.2 Standard RS-232C ModeSetting BFM #0 (b9, b8) = (0, 1) *1 Turn off using a program. When it is turned ON, th
FX communicationFX2N-232IF 1010-1810.3.3 Interlink ModeSetting BFM #0 (b9, b8) = (1, 1) *1 Turn off using a program. When it is turned ON, the next da
FX communicationFX2N-232IF 1010-191010.4 Example Program10.4.1 Example of 16 Bits Data CommunicationThis system configuration describes an example in
FX communicationxii10.2.13 Send Sum Result <BFM #15> ...
FX communicationFX2N-232IF 1010-20b ) Command <BFM #1>M0→b0:Send/receive enable (ER ON)M1→b1:Send command M2→b2:Receive completion reset command
FX communicationFX2N-232IF 1010-21103 ) Example program Transfer of send byte count and send data D200(K 9)→BFM#1000 D201(2 1)→BFM#1001 D202(4 3)→B
FX communicationFX2N-232IF 1010-224 ) Operation chart (M10)BFM#1000Send byte countSend(M1)BFM#1 b0Send/receive enableBFM#1001 to #1256Send buffersSend
FX communicationFX2N-232IF 1010-231010.4.2 Example of 8 Bits Data CommunicationThis system configuration describes an example in which 8-bit buffer le
FX communicationFX2N-232IF 1010-24b ) Command <BFM #1>M0→b0:Send/receive enable (ER ON)M1→b1:Send commandM2→b2:Receive completion reset commandM
FX communicationFX2N-232IF 1010-25103 ) Example program M8002FNC 79TOK 0 K 0 H409F K 1InitialpulseTransfer of communication format(409FH→BFM#0)FNC 79T
FX communicationFX2N-232IF 1010-264 ) Operation chart (M10)BFM#1000Send byte countSend(M1)BFM#1 b0Send/receive enableBFM#1001 to #1256Send buffersSend
FX communicationOptional programming port 1111-11111. Optional Programming PortThis section describes connection to peripheral equipment (programming
FX communicationOptional programming port 1111-211.2 FX2N-232-BD FX1N-232-BD FX0N-232ADP and FX2NC-232ADPWhen an FX2N-232-BD an FX0N-232ADP or an FX2N
FX communicationOptional programming port 1111-311Note: Reference 11.3 Cautions on Use11.3.1 Cautions on SettingNever set communication to the FX1S, F
FX communicationIntroduction 11-111. Introduction1.1 Abbreviations, Generic Names and Terms Used in This ManualAbbreviation ListThis manual describes
FX communicationOptional programming port 1111-4Memo
12FX communicationDiagnostics 1212-112. Diagnostics12.1 Common Items1 ) Check the connection with the communication unit of the programmable controlle
FX communicationDiagnostics 1212-212.2 N:N Network12.2.1 Error CodeWhen occurring the communication error, auxiliary relays (FX2N, FX2NC, FX1N, FX1S:
12FX communicationDiagnostics 1212-312.3 Parallel Link12.3.1 Diagnostics1 ) Check the status of the RD(RXD) LED and the SD(TXD) LED provided on eachco
FX communicationDiagnostics 1212-412.4 Computer Link12.4.1 NAK Error CodeThe error code is sent following a NAK response to indicate the type of error
12FX communicationDiagnostics 1212-512.4.3 Diagnostics1 ) Check the status of the RD(RXD) LED and the SD(TXD) LED provided on eachcommunication unit.•
FX communicationDiagnostics 1212-612.5 RS Instruction12.5.1 Diagnostics1 ) Check the status of the RD (RXD) LED and the SD (TXD) LED provided on the o
12FX communicationDiagnostics 1212-712.6 FX2N-232IF12.6.1 Error codeWhen an error occurs while data is sent or received, BFM #28 b3 is set to ON and t
FX communicationDiagnostics 1212-812.7 Using Optional Programming Port12.7.1 FX1S, FX1N and FX2N(C) earlier V2.001 ) Make sure that the communication
A-1AAppendix A:ASCII code ListsTable B-2: ASCII code ListsHex code0 1 2 3 4 5 6 70DLESP0@P`p1 SOH DC1 ! 1 A Q a q2 STX DC2 ” 2 B R b r3 ETX DC3 # 3 C
FX communicationIntroduction 11-21.2 Communication TypesThe FX Series supports the following 5 types of communication.1 ) N:N networkData transfer wit
FX communicationAppendix AA-2MEMO
HEAD OFFICE: MITSUBISHI DENKI BLDG MARUNOUCHI TOKYO 100-8310HIMEJI WORKS: 840, CHIYODA CHO, HIMEJI, JAPANJY992D69901E(MEE)Effective Apr. 2003Specifica
FX communicationIntroduction 11-311.3 System ConfigurationFor programming protocol refer to chapter 11.1.3.1 N:N Network 1.3.2 Parallel Link1 ) FX2N,
FX communicationIntroduction 11-42 ) FX1N (Shielded twisted-pair cable)*2 When including an FX1N-485-BD in the system configuration, thais, total exte
FX communicationIntroduction 11-511.3.3 Computer Link1 ) In the case of 1:N connection using RS-485 (RS-422) 2 ) In the case of 1:1 connection using R
Foreword• This manual contains text, diagrams and explanations which will guide the reader in thecorrect installation and operation of the communicati
FX communicationIntroduction 11-61.3.4 No Protocol Communication *1 The RS-485/RS-232C signal convertor is necessary in the case of an RS-485 interfac
FX communicationSpecifications 22-122. Specifications2.1 Communication Specification*1 FX2N, FX2NC, FX1N, FX1S and FX0N PLCs are supported.*2 When usi
FX communicationSpecification 22-22.2 Communication Time2.2.1 N:N network Note;If a N:N network is used, the scan time of each station programmable co
FX communicationSpecifications 22-322.2.3 Computer linkCalculations to determine the approximate time until communication is complete.1 ) Programmable
FX communicationSpecification 22-4MEMO
FX communicationWiring 33-133. WiringTerminal layout when using a communication unit, please refer to the individual units manual.Common1 ) This syste
FX communicationWiring 33-23.1 Caution on cable selection3.1.1 FX1N-485-BD, FX2N-485-BD, FX2NC-485ADP Number of cables connected to terminal and their
FX communicationWiring 33-333.2 Using RS-232C InterfaceBelow is a typical wiring example. Please wire similar to the following pin name, when a pinnum
FX communicationWiring 33-43.2.2 Using FX2N-232IFThe signal wiring of the RS-232C equipment varies depending on the RS-232C connectionspecifications.
FX communicationWiring 33-53b ) Interlink connection mode (Use interlink serial cross cable)Setting connection format (BFM #0); b9=1, b8=1In the inter
iFX COMMUNICATION(RS-232C, RS-485, RS-422)USER’S MANUALBrand and product names described by/in this manual are trademarks or registeredtrademarks of t
FX communicationWiring 33-63.3 Using RS-485 Interface3.3.1 Wiring SelectionThe wiring of RS-485 can either be one-pair or two-pair. The wiring method
FX communicationWiring 33-733.3.3 One-pair Wiring Note:*1 R is a terminating resistor (110Ω)*2 Make sure to connect the shield of the appropriate cabl
FX communicationWiring 33-83.3.4 Two-pair Wiring Note:*1 R is a terminating resistor (330Ω)*2 Make sure to connect the shield of the appropriate cable
FX communicationWiring 33-933.4 Parallel Link3.4.1 FX2N(1N)-485-BD and FX0N-485ADP1 ) One-pair WiringNote:*1 Connect the terminal FG to the ground ter
FX communicationWiring 33-103.4.2 FX0N-485ADP and FX0N-485ADP1 ) One-pair WiringNote:*1 Connect the terminal FG to the ground terminal of a programmab
FX communicationWiring 33-1133.4.3 FX2N(1N)-485-BD and FX2N(1N)-485-BD1 ) One-pair Wiring2 ) Two-pair WiringRDBRDASDASDBSDATerminatingresistor110ΩTerm
FX communicationWiring 33-123.4.4 FX2NC-485ADP and FX0N-485ADP1 ) One-pair WiringNote:*1 Connect the terminal FG to the ground terminal of a programma
FX communicationWiring 33-1333.4.5 FX2N(1N)-485-BD and FX2NC-485ADP1 ) One-pair Wiring2 ) Two-pair WiringSDBSDARDASDASDBRDARDBSGRDBSGFX2N-485-BD,FX1N-
FX communicationWiring 33-143.4.6 FX2NC-485ADP and FX2NC-485ADP1 ) One-pair Wiring2 ) Two-pair WiringSDBSDARDASDASDBRDARDBSGRDBSGClass D groundingFX2N
FX communicationWiring 33-1533.4.7 FX2-40AW and FX2-40AW 3.4.8 FX2-40AP and FX2-40AP SBSASASBSG*1SG*1FX2-40AW FX2-40AWNote:*1 Connect the terminal SG
FX communicationii
FX communicationWiring 33-16MEMO
FX communicationN:N network 44-144. N:N NetworkFor diagnostics, please refer to chapter 12.4.1 Related Flags and Data Registers4.1.1 Auxiliary Relays
FX communicationN:N network 44-24.1.2 Data Registers R : Read only W : Write only M : Master station L : Slave station*1 The number of commun
FX communicationN:N network 44-344.2 SettingN:N settings become valid when the program is run or when the power of the programmablecontroller is turne
FX communicationN:N network 44-44.2.3 Setting the Refresh Range (D8178)Set a value 0 to 2 to the special data register D8178. (Default = 0)This settin
FX communicationN:N network 44-542 ) In the case of pattern 1 (FX1N, FX2N, FX2NC) 3 ) In the case of pattern 2 (FX1N, FX2N, FX2NC) 4.2.4 Setting Retr
FX communicationN:N network 44-64.2.6 Program Used for Setting Make sure to write the program above step 0 as the N:N network parameter setting progra
FX communicationN:N network 44-744.3 Example Program4.3.1 System Configuration • Refresh range: 32 bit devices and 4 word devices (Pattern 1)• Retry c
FX communicationN:N network 44-84.3.3 Example of Setting ProgramFor the setting program of the master station and the stations Nos.1 and 2, refer to t
FX communicationN:N network 44-944.3.5 Example of Operation Programa ) Program of master station Slave 1communicationerrorM8184Slave 2communication er
FAX BACKMitsubishi has a world wide reputation for its efforts in continually developing and pushing backthe frontiers of industrial automation. What
FX communicationN:N network 44-10b ) Program of slave station No.1 MastercommunicationerrorM8183K1M1000 K1Y010Counter resetCounter inputX000C 1RST C
FX communicationN:N network 44-114c ) Program of slave station No.2 MastercommunicationerrorM8183Counter resetRST C 2FNC 12MOVFNC 12MOVSlave 1communi
FX communicationN:N network 44-12MEMO
FX communicationParallel link 55-155. Parallel linkData transfer with FX2N, FX2NC, FX1N, FX, FX2C programmable controllers can be performed on a1:1 ba
FX communicationParallel link 55-25.2 Mode and Link Device5.2.1 Normal Mode (Special auxiliary relay M8162: OFF) Note;Parallel link is possible betwee
FX communicationParallel link 55-355.2.2 High Speed Mode (Special auxiliary relay M8162: ON) Note;Parallel link is possible between PLC’s in the same
FX communicationParallel link 55-45.3 Example Program5.3.1 Normal ModeThe ON/OFF status of the inputs X000 to X007 in the master station is output to
FX communicationCommunication format 66-166. Communication format (D8120)This chapter explains setting the communication between no protocol communica
FX communicationCommunication format 66-26.3 Communication Format (D8120) *1 Make sure to set to “0” when computer link used.*2 Make sure to set to “0
FX communicationCommunication format 66-366.4 Example of setting programWhen setting the contents shown on the left, perform programming as follows. M
FX communicationiv
FX communicationCommunication format 66-4MEMO
FX communicationComputer link 77-177. Computer LinkThis chapter explains the details and methods of specifying dedicated protocol used for linking oft
FX communicationComputer link 77-23 ) Programmable controller sends data to the computer.*OS (operating system) is the software for operating (or usin
FX communicationComputer link 77-377.2 Information Needed Before Programming7.2.1 Programmable Controller OperationThe operation and the scan time of
FX communicationComputer link 77-47.3 How to Read a Control Protocol Diagram1 ) When the computer reads data from the programmable controller (compute
FX communicationComputer link 77-577.4 Basic Formats of Dedicated ProtocolThere are two formats for the dedicated protocol; which may be selected by s
FX communicationComputer link 77-67.4.1 Control Protocol Format 1 Description Control protocolTo read data from the PLC to the computerTo write data f
FX communicationComputer link 77-777.4.2 Control Protocol Format 4Description Control protocolTo read data from the PLC to the computerTo write data f
FX communicationComputer link 77-87.4.3 Control Protocol Parts ExplainedThis is to explain the content of data set in each control procedure.1 ) Contr
FX communicationComputer link 77-972 ) Station numberThe station number is the number provided at the programmable controller in order todetermine whi
FX communicationvGuidelines for the Safety of the User and Protection of the programmable controllersThis manual provides information for the use of t
FX communicationComputer link 77-105 ) Message waitThis is a delay time required by some computers to switch between send and receive states.The messa
FX communicationComputer link 77-1177.4.4 Time-out Check TimeThe time out check time refers to the duration after termination of receive (final charac
FX communicationComputer link 77-127.5 Communication Timing Chart7.5.1 Reading Data from Programmable controller7.5.2 Writing Data to Programmable Con
FX communicationComputer link 77-1377.5.3 Communication TimeThis is to explain the method of calculating the approximate time until all communication
FX communicationComputer link 77-147.6 Character Area Data TransmissionThe data shown in the following examples are samples of the data used in charac
FX communicationComputer link 77-1577.6.2 Word Device MemoryWhen handling word device memory, each word is expressed as 4 hexadecimal digits (each of
FX communicationComputer link 77-167.7 Commands and Device Ranges7.7.1 Commands* Computer except high speed (32-bit) counters C200 to C255.CommandDesc
FX communicationComputer link 77-1777.7.2 Device specification rangesThe following is the device and device number range that can be used in the acces
FX communicationComputer link 77-187.8 Example Computer Program for Loopback TestThis is an example of a BASIC program for communication of the comput
FX communicationComputer link 77-197190 HED$ = LEFT$(BUF$.1)200 IF HED$ = STX$ OR HED$ = NAK$ THEN GOTO *REC1 ELSE GOTO *REC0210 *REC1
FX communicationvi• Under no circumstances will Mitsubishi Electric be liable responsible for any consequentialdamage that may arise as a result of th
FX communicationComputer link 77-203 ) Operationa ) Start the computer program.b ) Send four characters “ABCD” from the computer to the FX programmabl
FX communicationCommands 88-188. CommandsThis chapter describes the structure and gives examples for each command of the dedicatedprotocol.See also Ch
FX communicationCommands 88-28.1 Batch Read of Bit Device (BR command)1 ) Command specificationProtocol format 1 is shown. 2 ) Command exampleTo read
FX communicationCommands 88-388.2 Batch Read of Word Device (WR command)1 ) Command specificationProtocol format 1 is shown. 2 ) Command examplesa ) E
FX communicationCommands 88-4b ) Example 2To read the present value of two points, T123 and T124, at station No.5. ComputerProgrammablecontrollerENQTh
FX communicationCommands 88-588.3 Batch Write of Bit Device (BW command)1 ) Command specificationProtocol format 1 is shown 2 ) Command exampleTo writ
FX communicationCommands 88-68.4 Batch Write of Word Device (WW command)1 ) Command specificationProtocol format 1 is shown 2 ) Specification examples
FX communicationCommands 88-78b ) Example 2To write to data to two points, D0 and D1, at station No.0 (with message wait time set to 0 ms). ComputerPr
FX communicationCommands 88-88.5 Test of Bit Device (BT command)1 ) Command specificationProtocol format 1 is shown 2 ) Specification exampleTo set ON
FX communicationCommands 88-988.6 Test of Word Device (WT command)1 ) Command specificationProtocol format 1 is shown. 2 ) Specification exampleTo cha
FX communicationviiFurther Information Manual ListTable 1: Further Information Manual ListManual name Manual No. DescriptionFX1S Hardware Manual JY992
FX communicationCommands 88-108.7 Remote RUN/STOP (RR, RS commands)8.7.1 Operation of Remote RUN/STOPWhen remote RUN/STOP is requested from the comput
FX communicationCommands 88-1188.7.3 Control Specification and Examples of Remote RUN/STOP1 ) Control specificationProtocol format 1 is shown. 2 ) Ope
FX communicationCommands 88-128.8 Reading The Programmable Controller Type (PC command)8.8.1 Type Codes Programmable controller typeType code (hex.)Pr
FX communicationCommands 88-1388.8.2 Control Specification and Example1 ) Control specificationProtocol format 1 is shown. 2 ) Specification exampleTo
FX communicationCommands 88-148.9 Global Function (GW command)This function is to turn on and off the global operation flag at all stations in the mul
FX communicationCommands 88-1588.10 On-demand FunctionData transmission between the computer and programmable controller is usually initiated by theco
FX communicationCommands 88-168.10.2 On-demand Control Protocol1 ) Control protocol programmable controller 2 ) Control protocol at computer Transmiss
FX communicationCommands 88-1783 ) On-demand request time chart. • When the computer is transmitting data a ) When on-demand is requested, the on
FX communicationCommands 88-188.10.3 Specification and Example of On-demand1 ) Command specificationProtocol format 1 is shown. Programmablecontroller
FX communicationCommands 88-1982 ) Specification Example 1To transmit the data stored in data registers D100 and D101 from the programmablecontroller
Komentáře k této Příručce