Panasonic FP0H User Manual

Programmable controller
Hide thumbs Also See for FP0H:
Table of Contents

Advertisement

Quick Links

WUME-FP0HCOM-01
2017.10
panasonic.net/id/pidsx/global
PROGRAMMABLE CONTROLLER
FP0H Control Unit
User's Manual
COM Communication

Advertisement

Table of Contents
loading

Summary of Contents for Panasonic FP0H

  • Page 1 PROGRAMMABLE CONTROLLER FP0H Control Unit User's Manual COM Communication WUME-FP0HCOM-01 2017.10 panasonic.net/id/pidsx/global...
  • Page 2: Safety Precautions

    ● Do not undertake construction (such as connection and disconnection) while the power supply is on. It could lead to 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 3 FPΣ Positioning Unit User's Manual (Note) ARCT1F365E (Note): For information on FP0H Positioning Unit, refer to the conventional FPΣ Positioning Unit Manual. The color of the main unit case is different (FP0H is black, and FPΣ is gray), however, the other specifications are the same.
  • Page 4: Table Of Contents

    Table of Contents Table of Contents 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 Names and Functions of Parts ..............1-2 1.1.3 Restrictions on Communication Functions to be Used ......1-3 Overview of Communication Functions ..........
  • Page 5 Table of Contents 3. Setting and Confirmation of Communication Conditions3-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 Communication Conditions Settings ............3-3 3.2.1 System Register Settings ................
  • Page 6 Table of Contents 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 MODBUS RTU Master Communication (RECV) ........6-3 MODBUS RTU Master Communication (SEND) ........
  • Page 7 Table of Contents Character String Instructions ............... 8-19 8.3.1 [F253 SSET] (Character Constant → ASCII Code Conversion: With Storage Area Size) ................8-19 9. Troubleshooting ..............9-1 What to Do If an Error Occurs ............... 9-2 9.1.1 Communication Error (RS-232C) ............9-2 9.1.2 Communication Error (RS-485) ...............
  • Page 8 Table of Contents...
  • Page 9: Unit Functions And Restrictions On Combination

    Unit Functions and Restrictions on Combination...
  • Page 10: Unit Functions And Features

    Unit Functions and Restrictions on Combination 1.1 Unit Functions and Features 1.1.1 Unit Functions  Removable serial communication cassettes are used • Can be selected from four communication cassettes (sold separately) that conform with communication standards RS-232C and RS-485. • One communication cassette can be attached to the control unit. ...
  • Page 11: Restrictions On Communication Functions To Be Used

    1.1 Unit Functions and Features 1.1.3 Restrictions on Communication Functions to be Used • When a communication port that is built in the control unit as standard equipment or a communication cassette is used, the following restrictions are applied depending on functions to be used.
  • Page 12: Overview Of Communication Functions

    16 PLC units.  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. • FP-X0 (L40MR / L60MR) •...
  • Page 13: Mewtocol Master / Slave Communication

    509 words for register reception, and 1 bit for bit transmission or reception. Master function Slave 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: Modbus Rtu Master / Slave Communication

    Unit Functions and Restrictions on Combination 1.2.3 MODBUS RTU Master / Slave Communication  Overview of function • Used for communication with other devices that support the MODBUS RTU protocol. • 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.
  • Page 15: General-Purpose Communication

    1.2 Overview of Communication Functions 1.2.4 General-Purpose Communication  Overview of function • General-purpose communication is used when PLC performs communication in accordance with the protocol of the connected device. • A user program should process the creation and transmission of command messages to connected devices, and the reception of responses therefrom.
  • Page 16 Unit Functions and Restrictions on Combination...
  • Page 17: Wiring Of Com Port

    Wiring of COM Port...
  • Page 18: Installation Of An Extension (Communication) Cassette

    Wiring of COM Port 2.1 Installation of an Extension (Communication) Cassette 2.1.1 Precautions for the Installation of an Extension (Communication) Cassette • Installation must be carried out while the unit is powered OFF. Installation while the control unit is powered ON, a failure may result. Do not touch the back side of an extension (communication) cassette or the •...
  • Page 19: 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 (order No. AFP0806). The tightening torque should be 0.22 to 0.25 N・m.
  • Page 20: Applicable Cable

    Wiring of COM Port 2.2.2 Applicable Cable The following cables should be used.  Suitable wires (strand wire): RS-485 communication wire Conductor Insulator Classifi- Cross-sectional Cable Sample appropriate Size Resist- Mate- Thick- cation view diam. cable ance rial ness (at 20°C) 1.25 mm Sumiden Hitachi Cable Max.
  • Page 21: Wiring Method

    2.2 Wiring of the COM Port Terminal Block 2.2.3 Wiring Method  Wiring method (1) Remove a portion of the wire’s insulation. (2) Insert wire into terminal hole until it stops. Tighten screw clockwise to fix wire in place. (Tightening torque: 0.22 N・m to 0.25 N・m (2.3 kgf・cm to 2.5 kgf・cm) ...
  • Page 22: Wiring Of The Control Unit (Gt Power Supply, Com0 Port)

    Port) 2.3.1 Handling of GT Power Supply Terminal A GT power supply terminal can be used as a power supply terminal for Panasonic programmable display GT02 / GT02L series.  Displays that can be connected to the 5V power supply section...
  • Page 23: Terminal Layout Diagrams And Wiring Examples

    Signal Ground OUTPUT 5V DC is outputted as power supply for a GT series display.  Wiring example (connection with GT series, 5V type) FP0H control unit COM0 port terminal / GT02/GT02L series, GT power supply terminal 5V DC type...
  • Page 24: Wiring Of Com Port Of A Communication Cassette

    Wiring of COM Port 2.4 Wiring of COM Port of a Communication Cassette 2.4.1 AFP0HCCS1 (RS-232C 1ch Non-Insulated Type)  Terminal layout SD RD RS CS SG Terminal Signal Allocated function Port allocated on the software code direction PLC → External SD: Send Data device PLC ←...
  • Page 25: Afp0Hccs2 (Rs-232C 2Ch Non-Insulated Type)

    2.4 Wiring of COM Port of a Communication Cassette 2.4.2 AFP0HCCS2 (RS-232C 2ch Non-Insulated Type)  Terminal layout SD1 RD1 SD2 RD2 SG Terminal Allocated function Signal direction Port allocated on the software code SD: Send Data PLC → External device COM1 RD: Receive Data PLC ←...
  • Page 26: Afp0Hccm1 (Rs-485 1Ch Insulated Type)

    Wiring of COM Port 2.4.3 AFP0HCCM1 (RS-485 1ch Insulated Type)  Setting of cassette backside switch A termination resistance selector switch for RS-485 interface is located on communication cassette AFP0HCCM1. Turn ON this switch only when it is the end unit. An equivalent circuit diagram is indicated below.
  • Page 27: Afp0Hccs1M1 (Rs-485 1Ch Insulated + Rs-232C 1Ch Non-Insulated Type)

    2.4 Wiring of COM Port of a Communication Cassette 2.4.4 AFP0HCCS1M1 (RS-485 1ch insulated + RS-232C 1ch Non-Insulated Type)  Setting of cassette backside switch A termination resistance selector switch for RS-485 interface is located on communication cassette AFP0HCCS1M1. Turn ON this switch only when it is the end unit. An equivalent circuit diagram is indicated below.
  • Page 28 Wiring of COM Port 2-12...
  • Page 29: Setting And Confirmation Of Communication

    Setting and Confirmation of Communication Conditions...
  • Page 30: Setting Of Purpose And Communication Conditions

    Setting and Confirmation of 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 (●: can be used; ○: conditional use; no mark: cannot be used) Main unit Cassette Available communication functions...
  • Page 31: 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. PROCEDURE 1. Select “Option” > “System register settings” from the menu bar. The “PLC Configuration” dialog box opens. 2.
  • Page 32: Settings Using A Program

    Setting and Confirmation of Communication Conditions 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 COM1 port.
  • Page 33: Plc Link

    PLC link...
  • Page 34: Operation Of Plc Link Mewnet-W0

    PLC link 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 35: Roles Of Link Relays And Link Registers

    4.1 Operation of PLC Link MEWNET-W0 4.1.2 Roles of Link Relays and Link Registers  Link relay If link relay L0 in the master unit (No.1) is turned ON, the state change is fed back to link relay L0 that has the same number in other units, and R0 is outputted from these units. RS-485 No.2 Link register No.3 Link register...
  • Page 36: Setting Items For Plc Link

    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. • A unit number is a unique number used to identify PLCs on a network. The same number must not be used for more than one PLC on the same network.
  • Page 37: Memory Block No. Of Link Relays And Link Registers To Be Used

    4.2 Setting Items for PLC Link 4.2.3 Memory Block No. of Link Relays and Link Registers to be Used • The memory areas of link relays and link registers are divided for PLC link 0 and for PLC link 1. Either area can be selected, and max. 1024 points (64 words) can be used for link relays, and max.
  • Page 38: Link Relay Transmission Start Number And Sending Size

    PLC link 4.2.5 Link Relay Transmission Start Number and Sending Size • The memory areas of link relays are divided into send areas and receive areas. • Link relays are transmitted from the send area of a PLC to the receive area of another PLC. The receiving PLC must have the same link relay No.
  • Page 39: Link Register Transmission Start Number And Sending Size

    4.2 Setting Items for PLC Link 4.2.6 Link Register Transmission Start Number and Sending Size • The memory areas of link registers are divided into send areas and receive areas. • Link registers are transmitted from the send area of a PLC to the receive area of another PLC.
  • Page 40 PLC link • Allocations as shown below are not possible for link relays or for link registers: Send area is split in a PLC Send and receive areas are split into multiple segments...
  • Page 41: 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 42 PLC link  Calculation example One transmission Condition Calculation process cycle time (T) Ttx=0.096 16-unit link with all units added Each Pcm=23+(4+8)×4=71 bytes Max. unit number = 16 T max.=Ts+Tlt+Tso Tpc=Ttx×Pcm=0.096×71≈6.82 ms 7.82×16+4.32+1 Relays / registers are evenly =130.44 ms allocated, and Each Ts=1+6.82=7.82 ms Each PLC scan time = 1 ms...
  • Page 43: Response Time When There Are Units That Have Not Been Added To The

    4.3 Response Time of PLC Link 4.3.2 Response Time when There are Units that have not been Added to the Link • If there is an unadded unit, Tlk (link addition processing time) becomes longer, and makes transmission cycle time longer. •...
  • Page 44 PLC link 4-12...
  • Page 45: Mewtocol Master-Slave Communication

    MEWTOCOL Master-Slave Communication...
  • Page 46 MEWTOCOL Master-Slave Communication...
  • Page 47: 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) - Specifies multiple contacts.
  • Page 48: Mewtocol-Com Master Communication (Recv)

    MEWTOCOL Master-Slave Communication 5.2 MEWTOCOL-COM Master Communication (RECV)  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. Data can be read by specifying unit numbers and memory addresses and executing F146 (RECV) instruction in a user program, because PLC automatically creates messages according to the protocol.
  • Page 49 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 50: Mewtocol-Com Master Communication (Send)

    MEWTOCOL Master-Slave Communication 5.3 MEWTOCOL-COM Master Communication (SEND)  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. Data can be written by specifying unit numbers. and memory addresses and executing F145 (SEND) instruction in a user program, because PLC automatically creates messages according to the protocol.
  • Page 51 5.3 MEWTOCOL-COM Master Communication (SEND) Description Code Number of transfer Specify the number of words in higher words of control data. ① words Range: H1 to H1FB (1 word to 507 words) COM port number of a Specify a COM port No. for the higher 4 bits in lower words of control data. ②...
  • Page 52 MEWTOCOL Master-Slave Communication...
  • Page 53: Modbus Rtu Master-Slave Communication

    MODBUS RTU Master-Slave Communication...
  • Page 54: List Of Modbus Rtu Supported Commands

    MODBUS RTU Master-Slave Communication 6.1 List of MODBUS RTU Supported Commands 6.1.1 List of MODBUS Function Codes  Supported commands (●: can be used; no mark: cannot be used) FP0H supported Remarks functions Code Name (MODBUS) Name (Reference No.) Slave...
  • Page 55: Modbus Rtu Master Communication (Recv)

    6.2 MODBUS RTU Master Communication (RECV) 6.2 MODBUS RTU Master Communication (RECV)  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. Data can be read by specifying unit numbers and memory addresses and executing F146 (RECV) instruction in a user program, because PLC automatically creates messages according to the protocol.
  • Page 56 MODBUS RTU Master-Slave Communication Code Description SEND / RECV This is inserted to confirm that no SEND / RECV instruction is in progress for ① executable flag the same port. Turns ON when an instruction is executable. COM port No. of a master Specify a COM port No.
  • Page 57: Modbus Rtu Master Communication (Send)

    6.3 MODBUS RTU Master Communication (SEND) 6.3 MODBUS RTU Master Communication (SEND)  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. Data can be written by specifying unit numbers and memory addresses and executing F145 (SEND) instruction in a user program, because PLC automatically creates messages according to the protocol.
  • Page 58 MODBUS RTU Master-Slave Communication Code Description SEND / RECV This is inserted to confirm that no SEND / RECV instruction is in progress for the ① executable flag same port. Turns ON when an instruction is executable. COM port No. of a Specify a COM port No.
  • Page 59: General-Purpose Communication

    General-Purpose Communication...
  • Page 60: Overview Of Sending Data

    General-Purpose Communication 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 61: Send Data Area

    7.1 Overview of Sending Data KEY POINTS • Do not include the terminator (end code) in the send data. 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. The header is added automatically. •...
  • Page 62: Receiving Data From External Devices

    General-Purpose Communication 7.2 Receiving Data from External Devices 7.2.1 Receiving Data from External Devices 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 63: Receive Data Area

    7.2 Receiving Data from External Devices  Special relays COM0 COM1 COM2 Reception done flag in general-purpose R9132 (R903E) R913A (R9038) R9142 (R9048) communication Transmission done flag in general- R9133 (R903F) R913B (R9039) R9143 (R9049) purpose communication (Note): The Nos. in brackets indicate devices that are compatible with existing FP-X / FPΣ. KEY POINTS •...
  • Page 64: Flag Operations In Transmission / Reception

    General-Purpose Communication 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: Data Received from external devices...
  • Page 65 7.3 Flag Operations in Transmission / Reception  Special relays / special data registers COM0 COM1 COM2 Reception done flag in general-purpose R9132 (R903E) R913A (R9038) R9142 (R9048) communication Transmission done flag in general- R9133 (R903F) R913B (R9039) R9143 (R9049) purpose communication (Note): The Nos.
  • Page 66: When The Header Is Set To "Stx" And The Terminator To "Etx

    General-Purpose Communication 7.3.2 When the Header is Set to “STX” and the Terminator to “ETX”  When receiving data: The reception done flag, the transmission done flag, and the F159 (MTRN) instruction are related as follows: Data received from external devices Cannot be stored when Reception code is invalidated...
  • Page 67 7.3 Flag Operations in Transmission / Reception  When sending data: The reception done flag, the transmission done flag, and the F159 (MTRN) instruction are related as follows: Send data Send Send Transmission done flag R913B Duplex transmission is disabled while MTRN is being executed Execute F159 (MTRN) instruction...
  • Page 68 General-Purpose Communication 7-10...
  • Page 69: Instruction References

    Instruction References...
  • Page 70: List Of Instructions

    Instruction References 8.1 List of Instructions Instruction Overview of Functions page: Communication instruction F145 SEND Data send instruction MEWTOCOL master F146 RECV Data receive instruction MEWTOCOL master F145 SEND Data send instruction MODBUS master (function code specification) F146 RECV Data receive instruction MODBUS master (function code specification) 8-10 F145 SEND Data send instruction MODBUS master...
  • Page 71: Communication Instruction

    8.2 Communication Instruction 8.2 Communication Instruction 8.2.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 72: F145 Send] Data Transmission (Mewtocol-Com Master)

    Instruction References 8.2.2 [F145 SEND] Data Transmission (MEWTOCOL-COM Master)  Instruction format F145 SEND DT10 DT20 K100  Devices that can be specified (indicated by ●) Constant Index Operand SWR SDT modifier (*1) ● ● ● ● ● ● ● ●...
  • Page 73 8.2 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 74: F146 Recv] Data Reception (Mewtocol-Com Master)

    Instruction References 8.2.3 [F146 RECV] Data Reception (MEWTOCOL-COM Master)  Instruction format F146 RECV DT10 K100 DT50  Devices that can be specified (indicated by ●) Constant Index Oper- SWR SDT modifier ands (*1) ● ● ● ● ● ● ●...
  • Page 75 8.2 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 76: F145 Send] Data Transmission (Modbus Master: Function Code Specification)

    Instruction References 8.2.4 [F145 SEND] Data Transmission (MODBUS Master: Function Code Specification)  Instruction format F145 SEND DT10 DT20  Devices that can be specified (indicated by ●) Constant Index Oper- SWR SDT modifier ands (*1) ● ● ● ● ●...
  • Page 77 8.2 Communication Instruction  Flag operations Name Description Turns ON when the [S1] control data value is outside the specified range. Turns ON when the COM port specification of control data specified in [S1] is not MODBUS mode. R9007 Turns ON when the number of send data [n] is 0. R9008 Turns ON when the number of send data is negative.
  • Page 78: [F146 Recv] Data Reception (Modbus Master: Function Code Specification)

    Instruction References 8.2.5 [F146 RECV] Data Reception (MODBUS Master: Function Code Specification)  Instruction format F146 RECV DT10 DT50  Devices that can be specified (indicated by ●) Constant Index Oper- SWR SDT modifier ands (*1) ● ● ● ● ●...
  • Page 79 8.2 Communication Instruction  Flag operations Name Description Turns ON when the [S1] control data value is outside the specified range. Turns ON when the COM port specification of control data specified in [S1] is not MODBUS mode. R9007 Turns ON when the number of receive data [n] is 0 R9008 Turns ON when the number of receive data is negative (ER)
  • Page 80: F145 Send] Data Transmission (Modbus Master)

    Instruction References 8.2.6 [F145 SEND] data transmission (MODBUS master)  Instruction format F145 SEND DT10 DT20 K100  Devices that can be specified (indicated by ●) Constant Index Operand SWR SDT modifier (*1) ● ● ● ● ● ● ● ●...
  • Page 81 Turns ON when the [D] area is DT during transfer in bit units. Turns ON when the [D] device number is not 0. KEY POINTS • This is convenient to write data into Panasonic’s PLC via MODBUS RTU. For MODBUS reference Nos. and device Nos., see “6.1.2Device No. • Correspondence Table”.
  • Page 82: F146 Recv] Data Reception (Modbus Master)

    Instruction References 8.2.7 [F146 RECV] Data Reception (MODBUS Master)  Instruction format F146 RECV DT10 K100 DT50  Devices that can be specified (indicated by ●) Constant Index Operand SWR SDT modifier (*1) ● ● ● ● ● ● ● ●...
  • Page 83 Turns ON when the [S2] area is DT / WL / LD, during transfer in bit units. Turns ON when the [S2] device number is not 0. KEY POINTS • This is convenient to read data from Panasonic PLC via MODBUS-RTU. • For MODBUS reference Nos. and device Nos., see “6.1.2Device No. Correspondence Table”.
  • Page 84: F159 Mtrn] Serial Data Send / Receive Instruction

    Instruction References 8.2.8 [F159 MTRN] Serial Data Send / Receive Instruction  Instruction format F159 MTRN DT100 ( )  Devices that can be specified (indicated by ●) Constant Index modifier Operands (*1) ● ● ● ● ● ● ● ●...
  • Page 85 8.2 Communication Instruction  Related flag /system register No. Operation COM0 COM1 COM2 0: Normal Communication error flag R9130 R9138 R9140 1: Error 0: Other than general-purpose communication Operation mode flag R9131 R9139 R9141 1: General-purpose communication 0: Reception enabled Reception done flag 1: Reception disabled R9132...
  • Page 86 Instruction References  Structure of receive data Receive data is stored in the receive buffer (data register DT) specified in the system register. The number of receive data bytes is stored in the starting word. Example: When 8-byte data “ABCDEFGH” is received Specify 200 for the “receive buffer starting number”, and 5 for the “receive buffer capacity”, in the system register.
  • Page 87: Character String Instructions

    8.3 Character String Instructions 8.3 Character String Instructions 8.3.1 [F253 SSET] (Character Constant → ASCII Code Conversion: With Storage Area Size)  Instruction format F253 SSET “ABC1230DEF”  Operands Items Settings Storage area size (permissible range: K1 to K32767) Character constant to be converted (permissible range: 0 to 256 characters) Starting device address of the destination ...
  • Page 88 Instruction References  Processing Example 1) When a string “ABC1230 DEF” (11 characters including a space) is to be converted [S1]...K12 [S2]... “ABC1230 DEF” [D]...DT0 ① ② H 42 H 41 [S2] H 31 H 43 “ABC1230 DEF” H 33 H 32 H 20 H 30...
  • Page 89 8.3 Character String Instructions Example 3) A string of zero character bracketed by “” (i.e. double quotation marks in sequel) is converted [S1]...K1 [S2]... "" [D]...DT0 ① ② * * [S2] * * “” * * * * * * *...
  • Page 90 Instruction References 8-22...
  • Page 91: Troubleshooting

    Troubleshooting...
  • Page 92: What To Do If An Error Occurs

    Troubleshooting 9.1 What to Do If an Error Occurs 9.1.1 Communication Error (RS-232C)  Object Allocated communication port No. Product No. Communication interface Main unit Cassette COM0 COM1 COM2 Control unit (standard RS-232C (3-wire type) ×1 channels ● equipment) AFP0HCCS1 RS-232C (5-wire type) ×1 channels ●...
  • Page 93: Communication Error (Rs-485)

    9.1 What to Do If an Error Occurs 9.1.2 Communication Error (RS-485)  Object Allocated communication port No. Product No. Communication interface Main unit Cassette COM0 COM1 COM2 AFP0HCCM1 RS-485 x 1 channel ● RS-485 x 1 channel ● AFP0HCCS1M1 RS-232C (3-wire type) ×1 channel ●...
  • Page 94 Troubleshooting...
  • Page 95: Specifications

    Specifications...
  • Page 96: Communication Function Specifications

    Specifications 10.1 Communication Function Specifications 10.1.1 Communication Specifications of the Control Unit  USB port (for tool software) Items Description Standard USB2.0 FULL SPEED Communication function MEWTOCOL-COM (slave)  COM0 port Items Description Interface RS-232C (3-wire type)×1ch (non-insulated) Transmission distance 15 m (Note 1) Baud rate 4800, 9600, 19200, 38400, 57600, 115200, 230400 bit/s...
  • Page 97: Communication Cassette Specifications

    10.1 Communication Function Specifications 10.1.2 Communication Cassette Specifications  RS-232C / RS-485 interface Description Items AFP0HCCS1 AFP0HCCS2 AFP0HCCM1 AFP0HCCS1M1 RS-485 × 1ch (insulated) RS-232C × 1 ch RS-485 × 1 ch RS-232C (3-wire type) × RS-232C (3-wire type) × Interface (non-insulated) (insulated) 2 ch (non-insulated)
  • Page 98: List Of System Data Registers

    Specifications 10.2 List of System Data Registers Name Default Setting range and description Setting of sequence program area C32: 24, 32 k words capacity (Note 1) (Note 3) C32E: 24, 32, 40, 64 k words C32: 4096, 8192 Internal relay capacity (Note 1) 8192 C32E: 8192 (fixed) Counter starting No.
  • Page 99 10.2 List of System Data Registers Name Default Setting range and description Self-diagnostic error is not reported in case of battery error. ERR/ALM LED does not flash. Selection of operation in case of battery error Yes: Self-diagnostic error is reported in case of battery error.
  • Page 100 Specifications Name Default Setting range and description Wait time for multiple frame 6500 ms 10 to 81900 ms (by 2.5 ms) processing Timeout time for SEND / RECV, 10000 ms 10 to 81900 ms (by 2.5 ms) RMRD / RMWT instructions Normal 0: Normal scan (by 0.5 ms) Constant scan time...
  • Page 101 10.2 List of System Data Registers Name Default Setting range and description Not set X0 as high-speed counter 2-phase input (X0, X1) 2-phase input (X0, X1), reset input (X2) Incremental input (X0) CH0: Incremental input (X0), reset input (X2) Not set X0 as Decremental input (X0) high-speed Decremental input (X0), reset input (X2)
  • Page 102 Specifications Name Default Setting range and description Positioning control mode Table setting mode Table setting mode setting FPΣ compatible instruction mode Normal output (Y0, Y1) Normal output pulse output (Y0, Y1) CH0: (Y0, Y1) PWM output (Y0), normal output (Y1) pulse output [Table operation] (Y0, Y1) Normal output (Y3, Y4) Normal output...
  • Page 103 10.2 List of System Data Registers Name Default Setting range and description Unit number 1 to 99 Computer link General-purpose communication Communication mode Computer link PLC link MODBUS RTU Selection of modem Yes / No connection Data length: Data length 7 bits / 8 bits 8 bits Parity check: None / Odd / Even Parity check:...
  • Page 104 Specifications Name Default Setting range and description Detect / Not detect Detect: When the control unit cover is open, an SD memory card cannot be accessed. Alternatively, SD card cover open / access is interrupted. Detect close detection Not detect: Even when the control unit cover is open, an SD card may be accessed.
  • Page 105: List Of Special Relays (Com Communication)

    10.3 List of Special Relays (COM Communication) 10.3 List of Special Relays (COM Communication) Only special relays related to communication by COM0 port of the main control unit and by COM port of a communication cassette are listed below. WR900 (specification in word units) Relay No.
  • Page 106 Specifications WR904 (specification in word units) Relay No. Name Description Turns ON when the general-purpose communication function R9040 is used. COM0 port operation mode flag (R9131) Turns OFF when functions other than general-purpose communication are used. R9041 COM1 port PLC link flag Turns ON when the PLC link function is used.
  • Page 107 10.3 List of Special Relays (COM Communication) WR906 (specification in word units) Relay No. Name Description When Unit No.1 is normally communicating in PLC link mode: ON Unit R9060 When the unit is stopped, an error has occurred, or PLC link is not No.1 established: OFF When Unit No.2 is normally communicating in PLC link mode: ON...
  • Page 108 Specifications WR907 (specification in word units) Relay No. Name Description Unit Turns ON when Unit No.1 is in RUN mode. R9070 No.1 Turns OFF in PROG. mode. Unit Turns ON when Unit No.2 is in RUN mode. R9071 No.2 Turns OFF in PROG. mode. Unit Turns ON when Unit No.3 is in RUN mode.
  • Page 109 10.3 List of Special Relays (COM Communication) WR908 (specification in word units) Relay No. Name Description When Unit No.1 is normally communicating in PLC link mode: ON Unit R9080 When the unit is stopped, an error has occurred, or PLC link is not No.1 established: OFF When Unit No.2 is normally communicating in PLC link mode: ON...
  • Page 110 Specifications WR909 (specification in word units) Relay No. Name Description Unit Turns ON when Unit No.1 is in RUN mode. R9090 No.1 Turns OFF in PROG. mode. Unit Turns ON when Unit No.2 is in RUN mode. R9091 No.2 Turns OFF in PROG. mode. Unit Turns ON when Unit No.3 is in RUN mode.
  • Page 111 10.3 List of Special Relays (COM Communication) WR913 (specification in word units) Relay No. Name Description Turns ON when a transmission error occurs during data R9130 COM0 port communication error communication. (R900E) flag Turns OFF when transmission is requested using an F159 (MTRN) instruction.
  • Page 112 Specifications WR914 (specification in word units) Relay No. Name Description Turns ON when a transmission error occurs during data R9140 COM2 port communication error communication. (R9047) flag Turns OFF when transmission is requested using an F159 (MTRN) instruction. Turns ON when the general-purpose communication function R9141 is used.
  • Page 113: List Of Special Data Registers (Com Communication)

    10.4 List of Special Data Registers (COM Communication) 10.4 List of Special Data Registers (COM Communication) Only special data registers related to communication by COM0 port of the main control unit and by COM port of a communication cassette are listed below. Register No.
  • Page 114 Specifications Register No. Name Description DT90140 Number of receptions of PLC link 0 DT90141 PLC link 0 reception interval (current value) (x 2.5 ms) DT90142 PLC link 0 reception interval (min. value) (x 2.5 ms) MEWNET-W0 DT90143 PLC link 0 reception interval (max. value) (x 2.5 ms) PLC link 0 ●...
  • Page 115 10.4 List of Special Data Registers (COM Communication) Register No. Name Description Unit No. switch from DT90219 0: Unit Nos. 1 to 8; 1: Unit Nos. 9 to 16 ● DT90220 to DT90251 System DT90220 registers 40 and 41 System DT90221 registers PLC link...
  • Page 116 Specifications Register No. Name Description System DT90236 registers 40 and 41 System DT90237 registers PLC link 42 and 43 unit No. System 5 or 13 DT90238 registers 44 and 45 System DT90239 registers 46 and 47 System System register settings related to the PLC link function DT90240 registers of each unit number are stored as below.
  • Page 117: Error Codes Table

    Guarantee data error Guarantee data (CRC code) is incorrect. Missing effective data There is no effective data. error Logging trace error Invalid command was executed during logging trace. Unsupported SD card Not an industrial SD card produced by Panasonic. error 10-23...
  • Page 118: Mewtocol-Com Format

    Specifications 10.6 MEWTOCOL-COM Format 10.6.1 MEWTOCOL-COM Command Type  Command message ① Header ② Destination unit number (01 to 99, decimal) ③ Text (specify based on the instruction type) ④ Check code (BCC, hexadecimal) ⑤ Terminator < (10’s (1’s place) place) Reading target (internal relay R1) Setting item (specify the reading of only one point)
  • Page 119 10.6 MEWTOCOL-COM Format • The method for writing text segments in a message varies depending on the type of command. • If there are a large number of characters in a message to be sent, divide and send them in several commands. •...
  • Page 120: Mewtocol-Com Response Format

    Specifications 10.6.2 MEWTOCOL-COM Response Format  Response message The PLC that received the command returns the processing result. ① Header ② Source unit number (PLC that has handled the command, decimal) ③ Text (processing result / communication error code is stored) ④...
  • Page 121 10.6 MEWTOCOL-COM Format • If no response is returned, the transmission format may not be correct, the command may not have arrived at the PLC, or the PLC may not be functioning. Check to make sure all of the communication specifications (e.g.
  • Page 122: Modbus Rtu Format

    Specifications 10.7 MODBUS RTU Format 10.7.1 MODBUS RTU Command Format  MODBUS RTU command format START ADDRESS FUNCTION DATA CHECK 3.5-Character time 8 bits 8 bits n*8 bits 16 bits 3.5-Character time ADDRESS (Unit No.): 8 bits, 0 to 247 (decimal) Note) 0 = Broadcast address FUNCTION: 8 bits...
  • Page 123: Modbus Rtu Response Format

    10.7 MODBUS RTU Format 10.7.2 MODBUS RTU Response Format  Response in normal status • The same message as a command is returned for a single write command or for a loop back test. • A part of a command message (6 bytes from the beginning) is returned for multiple write command.
  • Page 124 Specifications 10-30...
  • Page 125 Record of changes Manual No. Date Record of Changes WUME-FP0HCOM-01 Oct. 2017 1st Edition...
  • Page 128 ■ Overseas Sales Division (Head Office): 2431-1 Ushiyama-cho, Kasugai-shi, Aichi, 486-0901, Japan ■ Telephone: +81-568-33-7861 ■ Facsimile: +81-568-33-8591 panasonic.net/id/pidsx/global About our sale network, please visit our website. © Panasonic Industrial Devices SUNX Co., Ltd. 2017 October, 2017 PRINTED IN JAPAN WUME-FP0HCOM-01...

Table of Contents