Panasonic FP-XH Series User Manual

Hide thumbs Also See for FP-XH Series:
Table of Contents

Advertisement

Quick Links

WUME-FPXHCOMG-02
2022.5
panasonic.net/id/pidsx/global
Programmable Controller
FP-XH Series
User's Manual
Communication Edition
Western version

Advertisement

Table of Contents
loading

Summary of Contents for Panasonic FP-XH Series

  • Page 1 Programmable Controller FP-XH Series User’s Manual Communication Edition Western version WUME-FPXHCOMG-02 2022.5 panasonic.net/id/pidsx/global...
  • Page 2 (MEMO) WUME-FPXHCOMG-02...
  • Page 3 Types of Manuals ● This manual describes the "Communication Function" provided by the FP-XH Control Unit. ● The following user’s manuals are available for the FP-XH series. Please refer to a relevant manual for the unit and purpose of your use.
  • Page 4 ● Do not carry out construction (wiring, removal, etc.) during power-on. Otherwise it may result in an electric shock. ● If the equipment is used in a manner not specified by the Panasonic, the protection provided by the equipment may be impaired.
  • Page 5: Table Of Contents

    Table of Contents 1 Unit Functions and Restrictions on Combination ......1-1 1.1 Unit Functions and Features...............1-2 1.1.1 Unit Functions .................. 1-2 1.1.2 Restrictions on Communication Functions to be Used ....1-2 1.2 Overview of Communication Functions ..........1-4 1.2.1 PLC Link Function (MEWNET-W0) ..........1-4 1.2.2 MEWTOCOL Master / Slave Communication ........
  • Page 6 4.1 Operation of PLC Link MEWNET-W0 ..........4-2 4.1.1 Operation Overview of PLC Link............4-2 4.1.2 Roles of Link Relays and Link Registers ......... 4-2 4.2 Setting Items for PLC Link ..............4-4 4.2.1 Unit Number Setting................. 4-4 4.2.2 Setting of the Largest Unit Number..........4-4 4.2.3 Memory Block No.
  • Page 7 8.1.4 [F145 SEND] Data Transmission (MODBUS Master: Function Code Specification)................8-7 8.1.5 [F146 RECV] Data Reception (MODBUS Master: Function Code Specification) ..................8-9 8.1.6 [F145 SEND] Data Transmission (MODBUS Master)...... 8-11 8.1.7 [F146 RECV] Data Reception (MODBUS Master) ......8-13 8.1.8 [F159 MTRN] Serial Data Send / Receive Instruction......
  • Page 8 (MEMO) viii WUME-FPXHCOMG-02...
  • Page 9: Unit Functions And Restrictions On Combination

    1 Unit Functions and Restrictions on Combination 1.1 Unit Functions and Features...............1-2 1.1.1 Unit Functions .................. 1-2 1.1.2 Restrictions on Communication Functions to be Used ....1-2 1.2 Overview of Communication Functions ..........1-4 1.2.1 PLC Link Function (MEWNET-W0) ..........1-4 1.2.2 MEWTOCOL Master / Slave Communication ........
  • Page 10: Unit Functions And Features

    1.1 Unit Functions and Features 1.1 Unit Functions and Features 1.1.1 Unit Functions ■ Removable serial Communication Cassettes are used ● Can be selected from six Communication Cassettes (sold separately) that conform to communication standards RS-232C, RS-422, RS-485 and Ethernet. ●...
  • Page 11 1.1 Unit Functions and Features Allocated communication port No. Cassette Cassette Product No. Communication interface Control Unit mounting part 1 mounting part 2 COM0 COM1 COM2 COM3 COM4 RS-232C (3-wire type) x 1 ● ● channel AFPX-COM6 RS-485 x 2 channel ●...
  • Page 12: Overview Of Communication Functions

    RS-485 ■ Purpose of PLC link function (MEWNET-W0) This is used when using the following models and link functions of Panasonic FP series PLCs. 1:1 communication is also possible via RS-232C port. ● FP0R (RS-485 type) ● FP0H (communication cassette RS-485 type is used) ●...
  • Page 13: Modbus Rtu Master / Slave Communication

    MEWTOCOL RS-485 master function ■ Purpose of MEWTOCOL master communication (example) This is used for connection with devices that support MEWTOCOL (Panasonic PLC protocol). ● Programmable controller FP series ● Displacement sensor HL series ● Eco-power meter KW series ■...
  • Page 14: General-Purpose Communication

    1.2 Overview of Communication Functions ● Master communication is performed when the master unit sends commands to slave units, and the slave unit returns responses (response messages) according to the instructions. Data can be read and written between PLC and external devices by specifying unit numbers and memory addresses and executing F145 (SEND) / F146 (RECV) instructions in a user program, because PLC automatically creates messages according to the protocol.
  • Page 15 1.2 Overview of Communication Functions ● A user program should process the creation and transmission of command messages to connected devices, and the reception of responses therefrom. Data transmission / reception with external devices is handled through data registers and other given operation memories. ●...
  • Page 16: Restrictions On Units Combination

    1.3 Restrictions on Units Combination 1.3 Restrictions on Units Combination 1.3.1 Restrictions on Combinations of Extension Cassettes ■ Extension Cassette mounting position (1) ● The FP-XH Control Unit is provided with two Extension Cassette mounting parts. In case of the C14 Control Unit, only the cassette mounting part 1 can be used. Cassette mounting part 1 Cassette mounting part 2 ■...
  • Page 17 1.3 Restrictions on Units Combination ■ Types of Extension Cassettes and mounting position (●: Available, ○: Conditionally available, Blank: Not available) Mounting parts on the Control Unit Cassette type Cassette mounting Cassette mounting part 1 part 2 Type Item name Product No.
  • Page 18 (MEMO) 1-10 WUME-FPXHCOMG-02...
  • Page 19: Wiring Of Com Port

    2 Wiring of COM Port 2.1 Installing Extension Cassettes ............2-2 2.1.1 Precautions When Installing the Extension Cassette ...... 2-2 2.1.2 Installing the Communication Cassette..........2-2 2.2 Wiring of the COM Port Terminal Block ..........2-4 2.2.1 Suitable Wires and Tools ..............2-4 2.2.2 Applicable Cables ................
  • Page 20: Installing Extension Cassettes

    2.1 Installing Extension Cassettes 2.1 Installing Extension Cassettes 2.1.1 Precautions When Installing the Extension Cassette ● Fix the Extension Cassette to the Control Unit using the screws provided with the unit. ● The screw tightening torque should be 0.3 to 0.5 N∙m. Securely tighten them. ■...
  • Page 21 2.1 Installing Extension Cassettes ■ Installation on the Function Cassette ● Connect the connector on the back of the Function Cassette with the connector of the cassette mounting part of the control unit, and secure the two positions, bottom left and top right of the Function Cassette, with the screws.
  • Page 22: Wiring Of The Com Port Terminal Block

    To tighten terminals, use a screwdriver from Phoenix Contact (model No. SZS 0,4 x 2,5, product No. 1205037, blade size 0.4 x 2.5) or a screwdriver from Panasonic (Product No. AFP0806). The tightening torque should be 0.22 to 0.25 N∙m.
  • Page 23: Applicable Cables

    2.2 Wiring of the COM Port Terminal Block 2.2.2 Applicable Cables The following cables should be used. ■ Suitable wires (stranded wire): From RS-232C / RS-422 communication wire Conductor Insulator Cable Classifica Cross-sectional Sample Resistan Materia Thickn tion view appropriate cable diam.
  • Page 24 2.2 Wiring of the COM Port Terminal Block Remove a portion of the wire’s insulation. Insert wire into terminal hole until it stops. Tighten screw clockwise to fix wire in place. The tightening torque should be 0.22 to 0.25 N∙m. The following precautions should be observed to avoid broken or disconnected wires.
  • Page 25: Wiring Of The Control Unit (Gt Power Supply, Com0 Port)

    ● The GT power supply terminal (5 V DC) is dedicated to the GT02 / GT02L series of Panasonic programmable displays. Do not connect it to other devices. ● The GT power supply terminal and COM0 port (RS-232C) are not internally isolated.
  • Page 26 2.3 Wiring of the Control Unit (GT Power Supply, COM0 Port) Indication on the Description Control Unit ■ Wiring example (connection with GT series, 5V type) The terminal layout on the display side differs for the existing model GT01 series. ■...
  • Page 27: Wiring For Communication Cassettes Com1 To Com4 Ports

    2.4 Wiring for Communication Cassettes COM1 to COM4 Ports 2.4 Wiring for Communication Cassettes COM1 to COM4 Ports 2.4.1 Communication Cassette AFPX-COM1 (RS-232C 1ch Non-Isolated Type) ■ Terminal layout Port allocated on the software Terminal Allocated function Signal direction Cassette mounting Cassette mounting code part 1...
  • Page 28: Communication Cassette Afpx-Com2 (Rs-232C 2Ch Non-Isolated Type)

    2.4 Wiring for Communication Cassettes COM1 to COM4 Ports 2.4.2 Communication Cassette AFPX-COM2 (RS-232C 2ch Non-Isolated Type) ■ Terminal layout Terminal Allocated Signal direction Port allocated on the software code function Cassette mounting Cassette mounting part 1 part 2 SD: Send Data PLC →...
  • Page 29 2.4 Wiring for Communication Cassettes COM1 to COM4 Ports Switch No. Function Setting method Move all the three switch pins to the same side. RS-485 / RS-422 switching When set to the ON side: RS-485, When set to the OFF side: RS-422 When using RS-485: Turn ON this switch pin only when it is the terminal unit.
  • Page 30 2.4 Wiring for Communication Cassettes COM1 to COM4 Ports Allocated function Port allocated on the (When RS-422 is software Allocated function selected) Terminal (When RS-485 is code Cassette Cassette selected) Signal direction mounting mounting part 1 part 2 PLC ← External Transmission line (-) Receive data (-) device...
  • Page 31: Non-Isolated Type)

    2.4 Wiring for Communication Cassettes COM1 to COM4 Ports ■ Terminal layout Port allocated on the software Terminal Allocated Signal direction code function Cassette mounting part 1 Cassette mounting part 2 Transmission line COM1 COM3 Transmission line PLC → External Send Data device PLC ←...
  • Page 32 2.4 Wiring for Communication Cassettes COM1 to COM4 Ports switch being ON. After initialization, turn OFF the power supply of the Control Unit, and then turn the switch OFF. ■ Terminal layout ■ RS-232C part Port allocated on the software Terminal Allocated Signal direction...
  • Page 33: Communication Cassette Afpx-Com6 (Rs-485 2Ch Isolated Type)

    2.4 Wiring for Communication Cassettes COM1 to COM4 Ports 2.4.6 Communication Cassette AFPX-COM6 (RS-485 2ch Isolated Type) ■ Setting of cassette backside switch By using the switch on the board, applications of the Communication Cassette AFPX-COM6 can be switched. (Note 1) To set the baud rate, COM1 requires setting of the system register, while COM2 requires setting of both the switch and the system register.
  • Page 34 2.4 Wiring for Communication Cassettes COM1 to COM4 Ports ■ Wiring example (when setting RS-485) 2-16 WUME-FPXHCOMG-02...
  • Page 35: Setting And Confirmation Of Communication Conditions

    3 Setting and Confirmation of Communication Conditions 3.1 Setting of Purpose and Communication Conditions ......3-2 3.1.1 Purpose to be Set for Each Port ............3-2 3.1.2 Communication Conditions to be Set for Each Port......3-2 3.2 Communication Conditions Settings ...........3-4 3.2.1 System Register Settings..............
  • Page 36: Setting Of Purpose And Communication Conditions

    3.1 Setting of Purpose and Communication Conditions 3.1 Setting of Purpose and Communication Conditions 3.1.1 Purpose to be Set for Each Port ■ List of available functions by communication port (●: Available; ○: Conditionally available; Blank: Not available) Allocated communication port No. Control Cassette mounting Cassette mounting...
  • Page 37 3.1 Setting of Purpose and Communication Conditions Communication port Setting range Default Remarks Header No STX / STX No STX (Note 1) Modem connection Invalid / valid Invalid (Note 2) Receive buffer starting number in Depends on port (Note 4) (Note 1) DT0 to DT32764 general-purpose communication...
  • Page 38: Communication Conditions Settings

    3.2 Communication Conditions Settings 3.2 Communication Conditions Settings 3.2.1 System Register Settings Purposes and communication conditions of each communication port should be set using tool software FPWIN GR7. Select Option>System register settings from the menu bar. The "PLC Configuration" dialog box opens. Select any "COM Port setting"...
  • Page 39: Settings Using A Program

    3.2 Communication Conditions Settings 3.2.2 Settings Using a Program Purposes and communication conditions of each communication port may also be specified using system register setting instruction SYS1. ■ Sample program This is a program that changes the transmission format, baud rate, and unit numbers of COM4 port.
  • Page 40 (MEMO) WUME-FPXHCOMG-02...
  • Page 41: Plc Link

    4 PLC link 4.1 Operation of PLC Link MEWNET-W0 ..........4-2 4.1.1 Operation Overview of PLC Link............4-2 4.1.2 Roles of Link Relays and Link Registers ......... 4-2 4.2 Setting Items for PLC Link ..............4-4 4.2.1 Unit Number Setting................. 4-4 4.2.2 Setting of the Largest Unit Number..........4-4 4.2.3 Memory Block No.
  • Page 42: Operation Of Plc Link Mewnet-W0

    4.1 Operation of PLC Link MEWNET-W0 4.1 Operation of PLC Link MEWNET-W0 4.1.1 Operation Overview of PLC Link ● “Link relays (L)” and data registers “link registers (LD)” are shared between connected PLCs. ● In the case of link relays, if the link relay contact of one PLC turns ON, the same link relays also turn ON in all PLCs on the same network.
  • Page 43 4.1 Operation of PLC Link MEWNET-W0 RS-485 No.2 Link register No.3 Link register No.4 Link register LD 0 LD 0 LD 0 F0 MV K100 LD0 No.1 Link register LD 0 ■ Link register When a constant 100 is written into LD0 of the master unit (No. 1), the content of LD0 of every other unit is also changed to constant 100.
  • Page 44: Setting Items For Plc Link

    4.2 Setting Items for PLC Link 4.2 Setting Items for PLC Link 4.2.1 Unit Number Setting ● In a PLC link that connects multiple PLCs on the same transmission line, a unit number must be assigned to each PLC for identification. ●...
  • Page 45: Ranges Of Link Relays And Link Registers To Be Used

    4.2 Setting Items for PLC Link Structure of a link area 4.2.4 Ranges of Link Relays and Link Registers to be Used ● Specify the ranges of memory areas of link relays and link registers to be actually used. ● Link relays and link registers that are not to be used for linking may be used in place of internal relays and data registers.
  • Page 46: Link Register Transmission Start Number And Sending Size

    4.2 Setting Items for PLC Link Example) Setting of the link relay transmission start number and sending size (in the case of memory block No. 0) ■ List of setting items (for PLC link setting) Unit No. and setting method Setting item Setting range No.1...
  • Page 47 4.2 Setting Items for PLC Link ■ List of setting items (for PLC link setting) Unit No. and setting method Setting item Setting range No.1 No.2 No.3 No.4 Memory block No. of link relays and 0 or 1 link registers to be used Max.
  • Page 48 4.2 Setting Items for PLC Link ● If a mistake is made when allocating a link area, be aware that an error will result, and communication will be disabled. ● Avoid overlapping send areas. In the following example, there is an overlapping area between link relays No. 2 and 3. This will cause an error and disable communication.
  • Page 49: Response Time Of Plc Link

    4.3 Response Time of PLC Link 4.3 Response Time of PLC Link 4.3.1 Response Time of One Transmission Cycle The maximum value of one transmission cycle time (T) can be calculated using the following formula. ■ Calculation formula (1) Ts (transmission time per unit) Calculation Ts = Scan time + Tpc (PLC link sending time) formula...
  • Page 50: Response Time When There Are Units That Have Not Been Added To The Link

    4.3 Response Time of PLC Link One transmission cycle Condition Calculation process time (T) Tpc=Ttx×Pcm=0.096×71≈6.82 ms Relays / registers are evenly allocated, and Each Ts=1+6.82=7.82 ms =130.44 ms Each PLC scan time = 1 ms Tlt=0.096×(13+2×16)=4.32 ms Ttx=0.096 16-unit link with all units added Each Pcm=23+(4+8)×4=71 bytes T max.=Ts+Tlt+Tso Max.
  • Page 51: Mewtocol Master-Slave Communication

    5 MEWTOCOL Master-Slave Communication 5.1 List of MEWTOCOL Supported Commands ........5-2 5.1.1 List of MEWTOCOL Commands ............5-2 5.2 MEWTOCOL-COM Master Communication (RECV)......5-3 5.2.1 Reading Data from External Device..........5-3 5.3 MEWTOCOL-COM Master Communication (SEND)......5-6 5.3.1 Writing Data to External Device ............5-6 WUME-FPXHCOMG-02...
  • Page 52: List Of Mewtocol Supported Commands

    5.1 List of MEWTOCOL Supported Commands 5.1 List of MEWTOCOL Supported Commands 5.1.1 List of MEWTOCOL Commands ■ Commands to be used Type of instruction Code Description Reads the ON / OFF state of contacts. (RCS) ● Specifies only one point. Read contact area (RCP) ●...
  • Page 53: Mewtocol-Com Master Communication (Recv)

    5.2 MEWTOCOL-COM Master Communication (RECV) 5.2 MEWTOCOL-COM Master Communication (RECV) 5.2.1 Reading Data from External Device ■ Procedure PLC has the transmission right in master communication, and master communication is performed by sending commands to, and receiving responses from, devices that support MEWTOCOL.
  • Page 54 5.2 MEWTOCOL-COM Master Communication (RECV) Code Description Transfer method and Specify the number of words in higher words of control data. the number of transfer Range: H1 to H1FD (1 word to 509 words) words Specify a COM port No. for the higher 4 bits in lower words of control data. COM port No.
  • Page 55 5.2 MEWTOCOL-COM Master Communication (RECV) REFERENCE 8.1.3 [F146 RECV] Data Reception (MEWTOCOL-COM Master) 10.7.1 List of MEWTOCOL-COM Communication Error Codes WUME-FPXHCOMG-02...
  • Page 56: Mewtocol-Com Master Communication (Send)

    5.3 MEWTOCOL-COM Master Communication (SEND) 5.3 MEWTOCOL-COM Master Communication (SEND) 5.3.1 Writing Data to External Device ■ Procedure PLC has the transmission right in master communication, and master communication is performed by sending commands to, and receiving responses from, devices that support MEWTOCOL.
  • Page 57 5.3 MEWTOCOL-COM Master Communication (SEND) Code Description Specify the number of words in higher words of control data. Number of transfer words Range: H1 to H1FB (1 word to 507 words) Specify a COM port No. for the higher 4 bits in lower words of control data. COM port No.
  • Page 58 5.3 MEWTOCOL-COM Master Communication (SEND) REFERENCE 8.1.2 [F145 SEND] Data Transmission (MEWTOCOL-COM Master) 10.7.1 List of MEWTOCOL-COM Communication Error Codes WUME-FPXHCOMG-02...
  • Page 59: Modbus Rtu Master-Slave Communication

    6 MODBUS RTU Master-Slave Communication 6.1 List of MODBUS RTU Supported Commands ........6-2 6.1.1 List of MODBUS Function Codes ............ 6-2 6.1.2 Device No. Correspondence Table ..........6-2 6.2 MODBUS RTU Master Communication (RECV) ........6-3 6.2.1 Reading Data from External Device..........6-3 6.3 MODBUS RTU Master Communication (SEND) ........6-6 6.3.1 Writing Data to External Device ............
  • Page 60: List Of Modbus Rtu Supported Commands

    6.1 List of MODBUS RTU Supported Commands 6.1 List of MODBUS RTU Supported Commands 6.1.1 List of MODBUS Function Codes ■ Supported commands (●: Available, Blank: Not available) Corresponding Remarks functions Code Name (MODBUS) Name (Reference No.) Slave Master Read Coil Status Read Y / R coils ●...
  • Page 61: Modbus Rtu Master Communication (Recv)

    6.2 MODBUS RTU Master Communication (RECV) 6.2 MODBUS RTU Master Communication (RECV) 6.2.1 Reading Data from External Device ■ Procedure PLC has the transmission right in master communication, and master communication is performed by sending commands to, and receiving responses from, devices that support MODBUS-RTU.
  • Page 62 6.2 MODBUS RTU Master Communication (RECV) Code Description HF: COM0 port; H1: COM1 port; H2: COM2 port; H3: COM3 port; H4: COM4 port Specify a MODBUS command for Bit 11 to Bit 8 of control data. H1: Command 01 (Read coil state) MODBUS command H2: Command 02 (Read input state) H3: Command 03 (Read hold register)
  • Page 63 6.2 MODBUS RTU Master Communication (RECV) 10.3.2 MODBUS RTU Response Format WUME-FPXHCOMG-02...
  • Page 64: Modbus Rtu Master Communication (Send)

    6.3 MODBUS RTU Master Communication (SEND) 6.3 MODBUS RTU Master Communication (SEND) 6.3.1 Writing Data to External Device ■ Procedure PLC has the transmission right in master communication, and master communication is performed by sending commands to, and receiving responses from, devices that support MODBUS-RTU.
  • Page 65 6.3 MODBUS RTU Master Communication (SEND) Code Description HF: COM0 port; H1: COM1 port; H2: COM2 port; H3: COM3 port; H4: COM4 port Specify a MODBUS command for Bit 11 to Bit 8 of control data. H5: Command 05 (Force a single coil) or Command 15 (Force multiple coils) MODBUS command H6: Command 06 (Preset a single register) or Command 16 (Preset multiple registers)
  • Page 66 6.3 MODBUS RTU Master Communication (SEND) REFERENCE 8.1.4 [F145 SEND] Data Transmission (MODBUS Master: Function Code Specification) 10.3.2 MODBUS RTU Response Format WUME-FPXHCOMG-02...
  • Page 67: General-Purpose Communication

    7 General-Purpose Communication 7.1 Overview of Sending Data ..............7-2 7.1.1 Overview of Sending Data ............... 7-2 7.1.2 Send Data Area ................7-3 7.2 Receiving Data from External Devices ..........7-4 7.2.1 Overview of Receiving Data............. 7-4 7.2.2 Receive Data Area ................7-5 7.3 Flag Operations in Transmission / Reception ........7-7 7.3.1 When the Header is Set to “No STX”...
  • Page 68: Overview Of Sending Data

    7.1 Overview of Sending Data 7.1 Overview of Sending Data 7.1.1 Overview of Sending Data Communication with external devices is handled through the data registers. When data to be sent is stored in the data register (DT) used as a send buffer, and F159 (MTRN) instruction is executed, the data is outputted from the COM port.
  • Page 69: Send Data Area

    7.1 Overview of Sending Data ● Do not include the terminator (end code) in the send data if it is specified. The terminator is added automatically. ● When the header (start code) is set to “STX” in system register No. 413 or 414, do not add the header to send data.
  • Page 70: Receiving Data From External Devices

    7.2 Receiving Data from External Devices 7.2 Receiving Data from External Devices 7.2.1 Overview of Receiving Data Data received from a COM port is stored in a “receive buffer” specified by the system register, and the “reception done” flag turns ON. If the “reception done” flag is OFF, data can be received at any time.
  • Page 71: Receive Data Area

    7.2 Receiving Data from External Devices ■ Special relays COM0 COM1 COM2 COM3 General-purpose 9132 (903E) 913A (9038) 9142 (9048) 914A communication reception done flag General-purpose 9133 (903F) 913B (9039) 9143 (9049) 914B communication transmission done flag (Note 1) The Nos. in brackets indicate devices that are compatible with existing FP-X / FPsigma. ●...
  • Page 72 7.2 Receiving Data from External Devices Port COM0 COM1 COM2 COM3 Default 2048 2048 2048 2048 WUME-FPXHCOMG-02...
  • Page 73: Flag Operations In Transmission / Reception

    7.3 Flag Operations in Transmission / Reception 7.3 Flag Operations in Transmission / Reception 7.3.1 When the Header is Set to “No STX” and the Terminator to “CR” ■ When receiving data: The reception done flag, the transmission done flag, and the F159 (MTRN) instruction are related as follows: ●...
  • Page 74: When The Header Is Set To "Stx" And The Terminator To "Etx

    7.3 Flag Operations in Transmission / Reception ■ Special relays COM0 COM1 COM2 COM3 General-purpose 9132 (903E) 913A (9038) 9142 (9048) 914A communication reception done flag General-purpose 9133 (903F) 913B (9039) 9143 (9049) 914B communication transmission done flag (Note 1) The Nos.
  • Page 75 7.3 Flag Operations in Transmission / Reception ● When F159 (MTRN) is executed, the number of receive bytes is cleared, and the address (write pointer) in the receive buffer is reset to the starting address. ● If there are two headers, data following the second header is overwritten and the data is stored in the receive buffer.
  • Page 76 7.3 Flag Operations in Transmission / Reception ● Note that the reception done flag (R913A) changes even while a scan is in progress. (e.g., if the reception done flag is used multiple times as an input condition, there is a possibility of different statuses existing within the same scan.) As a protective measure, replace it with an internal relay at the beginning of the program.
  • Page 77: Instruction References

    8 Instruction References 8.1 Communication Instruction ..............8-2 8.1.1 [F145 SEND] [F146 RECV] Instructions: Common Items ....8-2 8.1.2 [F145 SEND] Data Transmission (MEWTOCOL-COM Master) ..8-3 8.1.3 [F146 RECV] Data Reception (MEWTOCOL-COM Master) .... 8-5 8.1.4 [F145 SEND] Data Transmission (MODBUS Master: Function Code Specification)................
  • Page 78: Communication Instruction

    8.1 Communication Instruction 8.1 Communication Instruction 8.1.1 [F145 SEND] [F146 RECV] Instructions: Common Items Common items for SEND / RECV instructions are indicated. ■ System register settings Using tool software, specify a communication mode for the COM port to be used. Mode System register No.
  • Page 79: F145 Send] Data Transmission (Mewtocol-Com Master)

    8.1 Communication Instruction ■ Other restrictions This is not executable for special internal relays (R9000 onward) or for special data register (DT90000). REFERENCE 10.7.1 List of MEWTOCOL-COM Communication Error Codes 10.3.2 MODBUS RTU Response Format 8.1.2 [F145 SEND] Data Transmission (MEWTOCOL-COM Master) ■...
  • Page 80 8.1 Communication Instruction Operand Settings Setting range Specification Specify the area type of a destination unit that stores send of a data. The number is specified at 0. destination unit Specification Specify the starting address of a destination unit that stores of a H0 to HFFFF send data.
  • Page 81: F146 Recv] Data Reception (Mewtocol-Com Master)

    8.1 Communication Instruction ■ Flag operations Name Description Turns ON when the [S1] / [S1+1] control data value is outside the specified range. Turns ON when the [S2] or [D] area is exceeded, if the number of words specified in [S1] is taken during transfer in word units.
  • Page 82 8.1 Communication Instruction Setting Operand Settings range Word transfer: Specify the number of send words. Bit transfer: Specify the bit number of a master unit and that of a destination unit. Specify the COM port No. of a master unit and the unit number of a (Note 2) S1+1 destination unit.
  • Page 83: F145 Send] Data Transmission (Modbus Master: Function Code Specification)

    8.1 Communication Instruction DT100 Example 2: [S2]: DT0, [n]: HFFF0 ↓ DT65520 ■ Flag operations Name Description Turns ON when the [S1] / [S1+1] control data value is outside the specified range. Turns ON when the [S2] or [D] area is exceeded, if the number of words specified in [S1] is taken during transfer in word units.
  • Page 84 8.1 Communication Instruction ■ Operands Item Settings Setting range Specify the COM port No. of a master unit, MODBUS command to be (Note 1) sent, and the unit number of a destination unit. Specification of (Note 2) Operation memory area that stores data to be sent. a master unit Specification of a destination...
  • Page 85: F146 Recv] Data Reception (Modbus Master: Function Code Specification)

    8.1 Communication Instruction Name Description Turns ON when the COM port specification of control data specified in [S1] is not MODBUS mode. Turns ON when the number of send data [n] is 0. (ER) Turns ON when the number of send data is negative. Turns ON when the number of send data [n] exceeds the operation memory area specified in [S2].
  • Page 86 8.1 Communication Instruction (Note 1) In [S1], specify the combination of the COM port No. of a master unit, MODBUS function code and the unit number of a destination unit. When the COM port No. is 0, specify HF for the highest digit. Example: In the case of COM port No.
  • Page 87: F145 Send] Data Transmission (Modbus Master)

    8.1 Communication Instruction 8.1.6 [F145 SEND] Data Transmission (MODBUS Master) ■ Instruction format ■ Devices that can be specified (indicated by ●) Constant Index Operand modifier (Note 1) ● ● ● ● ● ● ● ● ● ● ● ● ●...
  • Page 88 8.1 Communication Instruction [S1]: Transfer in Specify the number of send words word units H001 to H07F (1 to 127 words) [S1]: H0 (fixed) Transfer in Destination bit No. Master unit bit No. bit units (H0 to HF) (H0 to HF) (Note 2) To [S1+1], the following specification should be applied.
  • Page 89: F146 Recv] Data Reception (Modbus Master)

    Name Description Turns ON when the [D] device No. is not 0. ● This is convenient to write data into Panasonic’s PLC via MODBUS RTU. ● For MODBUS reference Nos. and device Nos., refer to "6.1.2 Device No. Correspondence Table".
  • Page 90 8.1 Communication Instruction Operand Settings Remarks Specification Specify the device starting address of the receive data of a master (Note 3) storage area in the master unit. unit (Note 1) To [S1], the following specification should be applied. The specification method differs depending on word transfer and bit transfer.
  • Page 91: F159 Mtrn] Serial Data Send / Receive Instruction

    Turns ON when the [S2] area is DT / WL / LD, during transfer in bit units. Turns ON when the [S2] device No. is not 0. ● This is convenient to read data from Panasonic PLC via MODBUS-RTU. ● For MODBUS reference Nos. and device Nos., refer to "6.1.2 Device No.
  • Page 92 8.1 Communication Instruction ■ Outline of operation Data is sent or received with an external device connected to the COM port. F159 (MTRN) instruction has the following three functions. Item Description In the data register starting with [S], data to be sent to an external device is set as a table in Send advance.
  • Page 93 8.1 Communication Instruction ● Do not include the terminator in the send data. The terminator is added automatically. When no terminator is to be added during transmission, specify a negative value for [n]. Alternatively, select “None” from the terminator setting in the system register. ●...
  • Page 94 8.1 Communication Instruction ■ Operations when data is received When the reception done flag is OFF, operation takes place as follows when data is sent from an external device. Item Description Incoming data is stored in ascending order from the lower-order byte of the 2nd- Storage of receive word area of the receive buffer.
  • Page 95: Character String Instructions

    8.2 Character String Instructions 8.2 Character String Instructions 8.2.1 F253 SSET (Character Constant → ASCII Code Conversion: with Storage Area Size) ■ Instruction format ■ Operands Items Settings Storage area size (permissible range: K1 to K32767, H8000) Character constant to be converted (permissible range: 0 to 256 characters) Starting device address of the destination ■...
  • Page 96 8.2 Character String Instructions ■ Processing Example 1) When a string "ABC1230 DEF" (11 characters including a space) is to be converted S1...K12 S2... "ABC1230 DEF" D...DT0 (Note 1) Data outside the range in the destination (*) (bytes higher than DT7) does not change. Storage area size Number of characters Example 2) With the 16 characters from A to P as one set, when 16 sets (256...
  • Page 97 8.2 Character String Instructions Storage area size Number of characters Example 4) When a string “ABC1230 DEF” (11 characters including a space) is to be converted S1...H8000 S2... “ABC1230 DEF” D...DT0 (Note 1) Data outside the range in the destination (*) (bytes higher than DT6) does not change. No.
  • Page 98 8.2 Character String Instructions ■ Flag operations Name Description Turns ON when the area is exceeded in index modification. R9007 Turns ON when the accessible range is exceeded if the storage area size starting with D is secured. R9008 (ER) Turns ON when a value outside the permissible range is specified for S1.
  • Page 99: Troubleshooting

    9 Troubleshooting 9.1 What to Do If an Error Occurs.............9-2 9.1.1 If a communication error occurs (RS-232C) ........9-2 9.1.2 If a communication error occurs (RS-422) ........9-3 9.1.3 If a communication error occurs (RS-485) ........9-3 9.1.4 If a communication error occurs (Ethernet)........9-4 WUME-FPXHCOMG-02...
  • Page 100: What To Do If An Error Occurs

    9.1 What to Do If an Error Occurs 9.1 What to Do If an Error Occurs 9.1.1 If a communication error occurs (RS-232C) ■ Target Allocated communication port No. Control Cassette mounting Cassette mounting Product No. Communication interface Unit part 1 part 2 COM0 COM1...
  • Page 101: If A Communication Error Occurs (Rs-422)

    9.1 What to Do If an Error Occurs 9.1.2 If a communication error occurs (RS-422) ■ Target Allocated communication port No. Control Cassette mounting Cassette mounting Product No. Communication interface Unit part 1 part 2 COM0 COM1 COM2 COM3 COM4 AFPX-COM3 RS-485 / RS-422 x 1 channel ●...
  • Page 102: If A Communication Error Occurs (Ethernet)

    9.1 What to Do If an Error Occurs Check if the terminal unit is correctly connected. Do not designate any unit other than those at both ends of the network as a terminal unit. Check if the transmission cables are securely connected between the (+) transmission terminals and between the (-) transmission terminals of each device.
  • Page 103 9.1 What to Do If an Error Occurs If the "DHCP error" is indicated for the status, getting IP from the DHCP server has failed. Check if there is no problem on the network system. WUME-FPXHCOMG-02...
  • Page 104 (MEMO) WUME-FPXHCOMG-02...
  • Page 105: List Of Specifications

    10 List of Specifications 10.1 Communication Function Specifications ...........10-2 10.1.1 Communication Specifications of the Control Unit ......10-2 10.1.2 Specifications of the Communication Cassette......10-2 10.2 MEWTOCOL-COM Format...............10-5 10.2.1 MEWTOCOL-COM Command Type ..........10-5 10.2.2 MEWTOCOL-COM Response Format........... 10-6 10.3 MODBUS RTU Format ..............10-8 10.3.1 MODBUS RTU Command Format ..........
  • Page 106: Communication Function Specifications

    10.1 Communication Function Specifications 10.1 Communication Function Specifications 10.1.1 Communication Specifications of the Control Unit ■ USB port (for tool software) Item Specifications Standard USB 2.0 FULL SPEED Communication MEWTOCOL-COM (slave) function ■ COM0 port Item Specifications Interface RS-232C (3-wire type) x 1ch (non-isolated) Transmission distance (Note 1) 15 m...
  • Page 107 10.1 Communication Function Specifications Specifications Item AFPX-COM1 AFPX-COM2 AFPX-COM3 AFPX-COM4 AFPX-COM6 AFPX-COM5 (non-isolated) (Note 3) (Note 4) RS-232C: Max. 15 m Transmission When using RS-422: Max. 400 m distance (Note 5)(Note 6) When using RS-485: Max. 1,200 m Baud rate 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400 bit/s Communication Half-duplex transmission...
  • Page 108 10.1 Communication Function Specifications (Note 6) The converter SI-35 manufactured by Lineeye Co., Ltd is recommendable for the RS-485 at the computer side. ■ Ethernet port Specifications Item AFPX-COM5 Interface IEEE802.3u, 100BASE-TX / 10BASE-T Baud rate (Note 1) 100 Mbps, 10 Mbps Transmission system Baseband Max.
  • Page 109: Mewtocol-Com Format

    10.2 MEWTOCOL-COM Format 10.2 MEWTOCOL-COM Format 10.2.1 MEWTOCOL-COM Command Type ■ Command message (1) Header (start code) ● Commands must always have a “%” (ASCII code: H25) or a “<” (ASCII code: H3C) at the beginning of a message. ● An expansion header “<” is supported to send a single frame of up to 2048 characters, as well as general “%”.
  • Page 110: Mewtocol-Com Response Format

    10.2 MEWTOCOL-COM Format (4) Check code ● This is a BCC (block check code) for error detection using horizontal parity. The BCC should be created so that it targets all of the text data from the header (start code) to the last text character.
  • Page 111 10.2 MEWTOCOL-COM Format (4) Check code ● This is a BCC (block check code) for error detection using horizontal parity. ● BCC starts from the header and checks each character in sequence, using the exclusive OR operation, and replaces the final result with character text. (5) Terminator (end code) ●...
  • Page 112: Modbus Rtu Format

    10.3 MODBUS RTU Format 10.3 MODBUS RTU Format 10.3.1 MODBUS RTU Command Format ■ MODBUS RTU Command Format START ADDRESS FUNCTION DATA CRC CHECK 3.5-character 8 bits 8 bits n*8 bits 16 bits 3.5-Character time time ADDRESS (Unit 8 bits, 0 to 247 (decimal) No.): Note) 0 = Broadcast address FUNCTION:...
  • Page 113 10.3 MODBUS RTU Format ■ Response in abnormal status In case a parameter disabled to be processed is found in a command (except transmission error) Slave address (Unit No.) 1, 2, or 3 Function code + 80H Error code ■ Error code contents 1.
  • Page 114: List Of System Registers (Com Communication)

    10.4 List of System Registers (COM Communication) 10.4 List of System Registers (COM Communication) Only system registers related to communication by COM0 port of the Control Unit and by COM port of a Communication Cassette are listed below. Name Default Set value range and description C14: 16k words (fixed) Sequence program area size...
  • Page 115 10.4 List of System Registers (COM Communication) (Note 4) The data range set by the system register is retained only when the optional battery is installed. Use the initial values directly when the battery is not installed. Name Default Set value range and description Waiting time for managing multiple 6500.0 ms 10 to 81900 ms (In 2.5 ms unit)
  • Page 116 10.4 List of System Registers (COM Communication) Name Default Set value range and description Unit number 1 to 99 Computer link General-purpose communication Communication mode Computer link PLC link MODBUS RTU Modem connection Not execute Execute / Not execute Data length: 7 bits / 8 bits Parity: None / Odd / Even Data length:8 bits Stop bit: 1 / 2...
  • Page 117 10.4 List of System Registers (COM Communication) Name Default Set value range and description (COM1) Terminator judgement time (x 0.01 ms) (COM2) Terminator judgement time (x 0.01 ms) (COM3) Terminator judgement time (x 0.01 ms) (Note 1) When computer link or MODOBUS RTU is selected by no. 412 (Communication mode), no. 413 (Transmission format) and no.
  • Page 118: List Of Special Relays (Com Communication)

    10.5 List of Special Relays (COM Communication) 10.5 List of Special Relays (COM Communication) Only special relays related to communication by COM0 port of the Control Unit and by COM port of a Communication Cassette are listed below. WR900 (specification in word units) Relay No.
  • Page 119 10.5 List of Special Relays (COM Communication) Relay No. Name Description Turns OFF when transmission is requested during general- purpose communication. (Note 1) R9030 to R903F changes even while a scan is in progress. To maintain compatibility with the existing FP-X / FPsigma Control Unit, the same function is also allocated to the special internal relay indicated in brackets.
  • Page 120 10.5 List of Special Relays (COM Communication) Relay No. Name Description Error codes are stored in DT90125. R904C to Not used R904F (Note 1) R9040 to R904F changes even while a scan is in progress. To maintain compatibility with the existing FP-X / FPsigma Control Unit, the same function is also allocated to the special internal relay indicated in brackets.
  • Page 121 10.5 List of Special Relays (COM Communication) Relay No. Name Description When Unit No. 8 Unit No. is normally communicating in PLC link mode: ON R9067 When the unit is stopped, an error has occurred, or PLC link is not established: OFF When Unit No.
  • Page 122 10.5 List of Special Relays (COM Communication) Relay No. Name Description Turns ON when Unit No. 4 is in RUN mode. Unit No. R9073 Turns OFF in PROG. mode. Turns ON when Unit No. 5 is in RUN mode. Unit No. R9074 Turns OFF in PROG.
  • Page 123 10.5 List of Special Relays (COM Communication) Relay No. Name Description When the unit is stopped, an error has occurred, or PLC link is not established: OFF When Unit No. 5 Unit No. is normally communicating in PLC link mode: ON R9084 When the unit is stopped, an error has occurred, or PLC link is not established: OFF...
  • Page 124 10.5 List of Special Relays (COM Communication) Relay No. Name Description When the unit is stopped, an error has occurred, or PLC link is not established: OFF WR909 (specification in word units) Relay No. Name Description Turns ON when Unit No. 1 is in RUN mode. Unit No.
  • Page 125 10.5 List of Special Relays (COM Communication) Relay No. Name Description Turns OFF when transmission is requested using an F159 (MTRN) instruction. Turns ON when the general-purpose communication function R9131 is used. COM0 port operation mode flag (R9040) Turns OFF when functions other than general-purpose communication are used.
  • Page 126 10.5 List of Special Relays (COM Communication) Relay No. Name Description R913E COM1 port PLC link flag Turns ON when the PLC link function is used. (R9041) R913F Not used (Note 1) R9130 to R913F changes even while a scan is in progress. To maintain compatibility with the existing FP-X / FPsigma control unit, the same function is also allocated to the special internal relay indicated in brackets.
  • Page 127 10.5 List of Special Relays (COM Communication) Relay No. Name Description Turns ON when transmission is done during general-purpose COM3 port transmission done communication. R914B flag during general-purpose Turns OFF when transmission is requested during general- communication purpose communication. Indicates the executability of F145 (SEND) or F146 (RECV) COM3 port instruction to COM3 port.
  • Page 128: List Of Special Data Registers (Com Communication)

    10.6 List of Special Data Registers (COM Communication) 10.6 List of Special Data Registers (COM Communication) Only special data registers related to communication by COM0 port of the Control Unit and by COM1 to COM4 ports of a Communication Cassette are listed below. Register No.
  • Page 129 10.6 List of Special Data Registers (COM Communication) Register No. Name Description Read Write SEND / RECV instruction end code Forcible I/O in process unit DT90126 Used by the system. ○ × number COM3 DT90127 ○ × SEND / RECV instruction An error code is stored when an error occurs end code during the execution of a SEND / RECV...
  • Page 130 10.6 List of Special Data Registers (COM Communication) Register No. Name Description Read Write MEWNET-W0 DT90161 The content of error of PLC link 0 is stored. ○ × PLC link 0 error flag DT90162 to Not used × × DT90169 DT90170 PLC link address duplicate destination DT90171...
  • Page 131 10.6 List of Special Data Registers (COM Communication) Register No. Name Description Read Write System DT90229 registers 42 and 43 System DT90230 registers 44 and 45 System DT90231 registers 46 and 47 System DT90232 registers 40 and 41 System DT90233 registers 42 PC (PLC) and 43...
  • Page 132 10.6 List of Special Data Registers (COM Communication) Register No. Name Description Read Write System DT90246 registers 44 and 45 System DT90247 registers 46 and 47 System DT90248 registers 40 and 41 System DT90249 registers 42 PC (PLC) and 43 link unit no.
  • Page 133: Error Codes List

    10.7 Error Codes List 10.7 Error Codes List 10.7.1 List of MEWTOCOL-COM Communication Error Codes Code Name Error code contents A command that cannot be used for global (unit no. FF) was Unit number setting error received. BCC error Transmission error occurred in received data. Format error Command that does not match the format was received.
  • Page 134 (MEMO) 10-30 WUME-FPXHCOMG-02...
  • Page 135 Record of Changes Manual numbers can be found at the bottom of the manual cover. Date Manual No. Record of Changes Oct. 2020 WUME-FPXHCOMG-01 1st Edition May 2022 WUME-FPXHCOMG-02 2nd Edition ● Added information about the MEWTOCOL- COM command and 1:1 communication. WUME-FPXHCOMG-02...
  • Page 136 [Scope of warranty] In the event that Panasonic Industrial Devices SUNX confirms any failures or defects of the Products by reasons solely attributable to Panasonic Industrial Devices SUNX during the warranty period, Panasonic Industrial Devices SUNX shall supply the replacements of the Products, parts or replace and/or repair the defective portion by free of charge at the location where the Products were purchased or delivered to your premises as soon as possible.
  • Page 137 (MEMO) WUME-FPXHCOMG-02...
  • Page 138 Panasonic Industry Co., Ltd. Panasonic Industrial Devices SUNX Co., Ltd. https://panasonic.net/id/pidsx/global Please visit our website for inquiries and about our sales network. Panasonic Industrial Devices SUNX Co., Ltd. 2022 May, 2022 WUME-FPXHCOMG-02...

Table of Contents