Panasonic FP7 Series User Manual
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

Quick Links

WUME-FP7COM-07
2023.7
panasonic.net/id/pidsx/global
Programmable Controller
FP7 series
User's Manual
SCU Communication
[ Applicable models ]
● FP7 CPU Unit
● FP7 Serial Communication Unit
(Model number AFP7NSCR)
● FP7 Extension Cassette (Communication
Cassette)
• RS-232C x 1 ch type
(Model number AFP7CCRS1)
• RS-232C x 2 ch type
(Model number AFP7CCRS2)
• RS-422/RS-485 x 1 ch type
(Model number AFP7CCRM1)
• RS-422/RS-485 x 2 ch type
(Model number AFP7CCRM2)
• RS-232C x 1 ch type
+ RS-422/RS-485 x 1 ch type
(Model number AFP7CCRS1M1)

Advertisement

Table of Contents
loading

Summary of Contents for Panasonic FP7 Series

  • Page 1 Programmable Controller FP7 series User's Manual SCU Communication [ Applicable models ] ● FP7 CPU Unit ● FP7 Serial Communication Unit (Model number AFP7NSCR) ● FP7 Extension Cassette (Communication Cassette) • RS-232C x 1 ch type (Model number AFP7CCRS1) • RS-232C x 2 ch type (Model number AFP7CCRS2) •...
  • Page 2 (MEMO) WUME-FP7COM-07...
  • Page 3 Types of Manual ● There are different types of user’s manual for the FP7 series, as listed below. Please refer to a relevant manual for the unit and purpose of your use. ● The manuals can be downloaded from our Download Center: https:// industrial.panasonic.com/ac/e/dl_center/.
  • Page 4 FP7 Pulse Output Unit User’s Manual WUME-FP7PG FP7 Positioning Unit FP7 Positioning Unit User’s Manual WUME-FP7POSP FP7 Serial Communication FP7 Series User’s Manual (SCU Communication) WUME-FP7COM Unit FP7 Multi-wire Link Unit FP7 Multi-wire Link Unit User’s Manual WUME-FP7MW FP7 Motion Control Unit FP7 Motion Control Unit User’s Manual...
  • Page 5 ● This product was developed and manufactured for use in industrial environments. Copyright / Trademarks ● The copyright of this manual is owned by Panasonic Industrial Devices SUNX Co., Ltd ● Unauthorized reproduction of this manual is strictly prohibited. ● Windows is a registered trademark of Microsoft Corporation in the U.S. and other countries.
  • Page 6 Indicates details about the subject in question or information useful to remember. Indicates operation procedures. FP7 Connector Compatibility The connectors of old and new model FP7CPU units and add-on cassettes (hereinafter "cassettes") are shaped differently. Please use old model cassettes with old model units and new model cassettes with new model units as shown in the table below.
  • Page 7: Table Of Contents

    Table of Contents 1 Unit Functions and Restrictions on Combination ......1-1 1.1 Features and Functions of Units ............1-2 1.1.1 Functions of Units ................1-2 1.1.2 Unit type ................... 1-3 1.1.3 Types of Cassette ................1-3 1.1.4 Applications that can be Used in Each Port ........1-3 1.2 Overview of Communication Functions ..........1-5 1.2.1 PLC Link Functions (MEWNET-W0) ..........
  • Page 8 4 I/O Allocation ..................4-1 4.1 Input/Output Signals Used for Communication........4-2 4.1.1 I/O Allocation of CPU Unit..............4-2 4.1.2 I/O Allocation of Serial Communication Unit ........4-4 4.2 Registration in I/O Map ...............4-7 4.2.1 Settings Using FPWIN GR7 (For CPU with built-in SCU) ....4-7 4.2.2 Settings Using FPWIN GR7 (For Serial Communication Unit) ..
  • Page 9 8 MODBUS RTU Master-Slave Communication ........8-1 8.1 Configuration..................8-2 8.1.1 Setting Communication Conditions ..........8-2 8.2 List of MODBUS RTU Supported Commands ........8-3 8.2.1 List of MODBUS Function Codes ............ 8-3 8.3 MODBUS RTU Master Communication (RECV) ........8-4 8.3.1 Read Data from an External Device ..........8-4 8.3.2 RECV (MEWTOCOL Master / MODBUS Master)......
  • Page 10 10.3.2 List of Communication Parameters ..........10-7 10.4 Clearing Errors Using User Programs ..........10-10 10.4.1 Clearing Errors Using User Programs ........... 10-10 11 Specifications ..................11-1 11.1 Communication Function Specifications ...........11-2 11.1.1 CPU Unit Communication Specifications ........11-2 11.1.2 Extension Cassette Communication Specifications ....... 11-2 11.2 MEWTOCOL-COM Format ...............11-4 11.2.1 MEWTOCOL-COM command Format ...........
  • Page 11: Unit Functions And Restrictions On Combination

    1 Unit Functions and Restrictions on Combination 1.1 Features and Functions of Units ............1-2 1.1.1 Functions of Units ................1-2 1.1.2 Unit type ................... 1-3 1.1.3 Types of Cassette ................1-3 1.1.4 Applications that can be Used in Each Port ........1-3 1.2 Overview of Communication Functions ..........1-5 1.2.1 PLC Link Functions (MEWNET-W0) ..........
  • Page 12: Features And Functions Of Units

    1.1 Features and Functions of Units 1.1 Features and Functions of Units 1.1.1 Functions of Units CPU unit Serial communication unit Two communication Serial communication cassettes can be attached. unit COM.0 port is equipped as standard. (For 3-wire RS-232C) ■ Removable serial communication cassettes are used.
  • Page 13: Unit Type

    1.1 Features and Functions of Units 1.1.2 Unit type ■ Types of unit that can perform serial communication Allocated communication port Name Model no. COM.0 COM.1 COM.2 COM.3 COM.4 AFP7CPS4RE AFP7CPS4RES AFP7CPS3RE AFP7CPS3RES CPU unit ● ● ● AFP7CPS3R AFP7CPS3RS AFP7CPS2R Serial Communication Unit AFP7NSCR...
  • Page 14 1.1 Features and Functions of Units Allocated communication port Communication function to be used COM.0 COM.1 COM.2 COM.3 COM.4 Master ● ● ● ● ● (Note 1) MEWTOCOL7-COM MEWTOCOL-COM Slave ● ● ● ● ● Master ● ● ● ● ●...
  • Page 15: Overview Of Communication Functions

    1.2 Overview of Communication Functions 1.2 Overview of Communication Functions 1.2.1 PLC Link Functions (MEWNET-W0) ■ Overview of function ● A system can be configured for the PLC link (MEWNET-W0). ● Exclusive internal relays “link relays (L)” and data registers “link registers (LD)” are shared between the connected PLCs.
  • Page 16 1.2 Overview of Communication Functions protocol are automatically generated by PLC. In the user program, reading and writing can be done simply by specifying the station no. and memory address and executing SEND/ RECV instructions. ● Slave communication is performed when the computer or display connected to PLC has the sending right, and sends commands, and PLC returns responses.
  • Page 17: Modbus Rtu Master/Slave Communication

    1.2 Overview of Communication Functions 1.2.3 MODBUS RTU Master/Slave Communication ■ Overview of function ● This is used for communicating with other devices that support the MODBUS RTU protocol. ● In master communication, communication is performed when the master unit sends instructions (command messages) to slave units and the slave unit returns responses (response messages) according to the instructions.
  • Page 18: 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 executes communication in accordance with the protocol of the partner device. ● Formulation and sending of command messages to the partner device, and reception processing of responses from the partner device, are performed by the user program.
  • Page 19: Restrictions On Units Combination

    1.3 Restrictions on Units Combination 1.3 Restrictions on Units Combination 1.3.1 Restrictions on the Number of Installed Units There are following restrictions depending on units to be used. Unit type Number of installed units Remark Serial Communication Unit Max. 8 units 1.3.2 Restrictions on the Combination of Extension Cassettes (Communication Cassettes) ●...
  • Page 20: Restrictions On Consumption Current

    1.3 Restrictions on Units Combination Applicable versions Unit type Remark CPU unit FPWIN GR7 FP7 Serial Communication Unit Ver.1.2 or later Ver.1.3 or later 1.3.5 Restrictions on Consumption Current Including other units, the consumption current should be within the allowable capacity of a power supply unit.
  • Page 21: Names And Functions Of Parts

    2 Names and Functions of Parts 2.1 Names and Functions of Parts............2-2 2.1.1 Communication Port of CPU Unit ............ 2-2 2.1.2 Parts Names and Functions of Serial Communication Unit ..... 2-3 WUME-FP7COM-07...
  • Page 22: Communication Port Of Cpu Unit

    ● For details of the communication method using LAN port, refer to FP7 CPU Unit User's Manual (LAN port communication). ● For details of the communication using Communication cassette (Ethernet type) AFP7CCRET1, refer to FP7 series User's Manual (Communication cassette Ethernet type). WUME-FP7COM-07...
  • Page 23: Parts Names And Functions Of Serial Communication Unit

    2.1 Names and Functions of Parts 2.1.2 Parts Names and Functions of Serial Communication Unit ① ② ⑥ ③ ④ ⑤ (In the above figure, two communication cassettes are attached.) ■ Names and Functions of Parts (1) Operation monitor LEDs Display LED color Description...
  • Page 24 (MEMO) WUME-FP7COM-07...
  • Page 25: Wiring The Com. Port

    3 Wiring the COM. Port 3.1 Attaching a Communication Cassette..........3-2 3.1.1 Attachment Instructions ..............3-2 3.2 Wiring of COM. Port Terminal Block ...........3-3 3.2.1 Suitable Wires and Tools ..............3-3 3.2.2 Applicable Cable ................3-4 3.2.3 Wiring Method .................. 3-5 3.3 Wiring for CPU Unit (GT Power Supply and COM.0 Port) ....3-7 3.3.1 Handling of GT Power Supply Terminals .........
  • Page 26: Attaching A Communication Cassette

    3.1 Attaching a Communication Cassette 3.1 Attaching a Communication Cassette 3.1.1 Attachment Instructions When an optional Communication Cassette is to be used, attach it in the following procedures. Using a flathead screwdriver, remove the cover on the side of the CPU unit. You will find four toggles.
  • Page 27: Wiring Of Com. Port Terminal Block

    3.2 Wiring of COM. Port Terminal Block 3.2 Wiring of COM. Port Terminal Block 3.2.1 Suitable Wires and Tools A screw-down connection type for terminal block is used for the communication port. Use the following items for wiring. ■ Suitable wires (strand wire) Size Nominal cross-sectional area AWG #28 to 16...
  • Page 28: Applicable Cable

    3.2 Wiring of COM. Port Terminal Block ■ Pressure welding tool for pole terminals Product name Product number Number of poles Manufacturer Model number AFP7CPS2R 5-pin terminal MC1.5/5-ST-3.5BK AFP7CPS3R AFP7CPS3RE CPU unit AFP7CPS3RS 6-pin terminal MC1.5/6-ST-3.5BK AFP7CPS3RES AFP7CPS4RE Phoenix Contact Co., AFP7CPS4RES Ltd.
  • Page 29: Wiring Method

    3.2 Wiring of COM. Port Terminal Block ● Use shielded twisted pair cables. ● Use only one type of transmission cable. Do not mix more than 1 type. ● Twisted pair cables are recommended in noisy environments. ● When using shielded cable with crossover wiring for the RS-485 transmission line, grounded one end.
  • Page 30 3.2 Wiring of COM. Port Terminal Block ● If two wires are connected to the RS-485 terminal, use the same wire material of the same cross-sectional area (0.5 mm WUME-FP7COM-07...
  • Page 31: Wiring For Cpu Unit (Gt Power Supply And Com.0 Port)

    3.3 Wiring for CPU Unit (GT Power Supply and COM.0 Port) 3.3 Wiring for CPU Unit (GT Power Supply and COM.0 Port) 3.3.1 Handling of GT Power Supply Terminals ● GT power supply terminals can be used as power supply terminals for the GT series of our programmable displays.
  • Page 32 3.3 Wiring for CPU Unit (GT Power Supply and COM.0 Port) ■ Example of wiring (in the case of GT02 5V DC type) ■ Example of wiring (in the case of GT series 24V DC type) ● The terminal layout on the display side differs for the existing models GT01 series. WUME-FP7COM-07...
  • Page 33: Wiring For Communication Cassettes Com.1 To Com.4 Ports

    3.4 Wiring for Communication Cassettes COM.1 to COM.4 Ports 3.4 Wiring for Communication Cassettes COM.1 to COM.4 Ports 3.4.1 Communication Cassette AFP7CCRS1 (RS-232C, 1-Channel Insulated Type) ■ Terminal layout Termin LED part Terminal Functions that Ports that can be Signal direction al no.
  • Page 34 3.4 Wiring for Communication Cassettes COM.1 to COM.4 Ports 5-wire 1-channel RS-232C (RS/CS controlled) (Note 1) The switch is factory-set to 3Wire (3-wire 2-channel RS-232C). ■ Terminal layout (in the setting of 3-wire 2-channel RS-232C) Termin LED part Terminal Functions that Port that can be allocated Signal direction al no.
  • Page 35 3.4 Wiring for Communication Cassettes COM.1 to COM.4 Ports ■ Example of wiring (in the setting of 3-wire 2-channel RS-232C) AFP7CCRS2 Partner 1 Termina Terminal Symbol Signal name Signal name Functions l No. part symbol Received Data Sent Data 1 Sent Data Received Data 1 Signal Ground...
  • Page 36: Communication Cassette Afp7Ccrm1 (Rs-422 / Rs-485, 1-Channel Insulated Type)

    3.4 Wiring for Communication Cassettes COM.1 to COM.4 Ports ■ Example of wiring (in the setting of 5-wire 1-channel RS-232C RS/CS controlled) AFP7CCRS2 Partner Termina Terminal Signal name Functions Symbol Signal name l No. part symbol Received Data Sent Data Sent Data Received Data Signal Ground...
  • Page 37 3.4 Wiring for Communication Cassettes COM.1 to COM.4 Ports ■ Terminal layout (in the setting of RS-485) Termin LED part Terminal Functions that Ports that can be Signal direction al no. symbol part symbol can be allocated allocated in the software Transmission line + / S - / S...
  • Page 38 3.4 Wiring for Communication Cassettes COM.1 to COM.4 Ports ■ Example of wiring (in the setting of RS-485) AFP7CCRM1 Partner 1 Terminal Terminal part Terminal Signal name Signal name Functions symbol Transmission line (+) + / S Transmission line (+) Transmission line (-) - / S Transmission line (-)
  • Page 39: Communication Cassette Afp7Ccrm2 (Rs-422 / Rs-485, 2-Channel Insulated Type)

    3.4 Wiring for Communication Cassettes COM.1 to COM.4 Ports 3.4.4 Communication Cassette AFP7CCRM2 (RS-422 / RS-485, 2-Channel Insulated Type) ■ Setting of application switch Applications for use can be switched using a switch on the backplane for Communication Cassette AFP7CCRM2. Settings can be confirmed with LED lamps at the front of the cassette.
  • Page 40 3.4 Wiring for Communication Cassettes COM.1 to COM.4 Ports ■ Terminal layout (in the setting of RS-485) Termin LED part Terminal Functions that Ports that can be Signal direction al no. symbol part symbol can be allocated allocated in the software Transmission line + / S - / S...
  • Page 41 3.4 Wiring for Communication Cassettes COM.1 to COM.4 Ports ■ Example of wiring (in the setting of RS-485) AFP7CCRM2 Transmission line 1 Partner 1 Terminal Terminal Terminal Signal name Signal name Functions part symbol Transmission line (+) + / S Transmission line 1 (+) - / S Transmission line 1 (-)
  • Page 42: Communication Cassette Afp7Ccrs1M1

    3.4 Wiring for Communication Cassettes COM.1 to COM.4 Ports Termin LED part Terminal Functions that Ports that can be Signal direction al no. symbol part symbol can be allocated allocated in the software + / R Received Data PLC ← External device - / R PLC ←...
  • Page 43 3.4 Wiring for Communication Cassettes COM.1 to COM.4 Ports ■ Terminal layout Termin LED part Terminal Functions that Ports that can be Signal direction al no. symbol part symbol can be allocated allocated in the software Transmission line Transmission line COM.1/COM.3 Transmission line Transmission line...
  • Page 44 (MEMO) 3-20 WUME-FP7COM-07...
  • Page 45: O Allocation

    4 I/O Allocation 4.1 Input/Output Signals Used for Communication........4-2 4.1.1 I/O Allocation of CPU Unit..............4-2 4.1.2 I/O Allocation of Serial Communication Unit ........4-4 4.2 Registration in I/O Map ...............4-7 4.2.1 Settings Using FPWIN GR7 (For CPU with built-in SCU) ....4-7 4.2.2 Settings Using FPWIN GR7 (For Serial Communication Unit) ..
  • Page 46: Input/Output Signals Used For Communication

    4.1 Input/Output Signals Used for Communication 4.1 Input/Output Signals Used for Communication 4.1.1 I/O Allocation of CPU Unit ■ Input signal Effective Input Communication Name Description operation signal port mode For COM.1 Port General- purpose For COM.2 Port When the unit completes the data reception, it General- communicatio turns on (1).
  • Page 47 4.1 Input/Output Signals Used for Communication Effective Input Communication Name Description operation signal port mode X15 to Not used Do not use this. (Note 1) The general-purpose communication reception done (copy) flag is effective after the execution of the RECV instruction until one of the following instructions is executed. This flag does not remain ON across several scans.
  • Page 48: I/O Allocation Of Serial Communication Unit

    4.1 Input/Output Signals Used for Communication Outpu Effective Communication Name Description operation port signal mode By turning on (1) this output, RTS is controlled. When RS/CS Transmission from the device communicating with is set to valid is permitted = 0 Output RTS For COM.1 Port Transmission from the device communicating with...
  • Page 49 4.1 Input/Output Signals Used for Communication Effective Input Communication Name Description operation signal port mode For COM.3 Port Clear to send communication mode. It turns off (0) in other flag modes. For COM.4 Port For COM.1 Port When the communication channel is reset under General- the output Y10 to Y13, the flag is turned on (1) For COM.2 Port...
  • Page 50 4.1 Input/Output Signals Used for Communication Outpu Effective Communication Name Description operation port signal mode flag For COM.4 Port For COM.1 Port By turning on (1) Y10 to Y13, the communication channel can be reset. For COM.2 Port Without a request to reset = 0, With a request to reset = 1 For COM.3 Port After ON (1) is output and the completion of the...
  • Page 51: Registration In I/O Map

    4.2 Registration in I/O Map 4.2 Registration in I/O Map 4.2.1 Settings Using FPWIN GR7 (For CPU with built-in SCU) ● For the CPU with built-in SCU, there is no need to set with FPWIN GR7 because the following fixed areas are allocated. No.
  • Page 52 4.2 Registration in I/O Map Double-click Slot No. 1 in the "I/O map" dialog box. The "Unit selection [Slot No. 1]" dialog box is displayed. Select "Communications" for Unit type, select "SCU unit" for Unit name, and press the [OK] button.
  • Page 53 4.2 Registration in I/O Map The set conditions are reflected in the project being edited. WUME-FP7COM-07...
  • Page 54 (MEMO) 4-10 WUME-FP7COM-07...
  • Page 55: Setting And Confirming Communication Conditions

    5 Setting and Confirming Communication Conditions 5.1 Setting Applications and Communication Conditions ......5-2 5.1.1 Applications to be Set for Each Port ..........5-2 5.1.2 Conditions to be Set for Each Port........... 5-2 5.2 Setting Communication Conditions.............5-3 5.2.1 Settings Using FPWIN GR7 (For CPU with built-in SCU) ....5-3 5.2.2 Settings Using FPWIN GR7 (For Serial Communication Unit) ..
  • Page 56: Setting Applications And Communication Conditions

    5.1 Setting Applications and Communication Conditions 5.1 Setting Applications and Communication Conditions 5.1.1 Applications to be Set for Each Port ■ Available functions for each communication port Allocated communication port Communication function to be used COM.0 COM.1 COM.2 COM.3 COM.4 PLC Link ●...
  • Page 57: Setting Communication Conditions

    5.2 Setting Communication Conditions 5.2 Setting Communication Conditions 5.2.1 Settings Using FPWIN GR7 (For CPU with built-in SCU) Applications and communication conditions for each communication port should be set using the tool software FPWIN GR7. From the menu bar, select Option>FP7 Configuration. The "FP7 Configuration"...
  • Page 58: Settings Using Fpwin Gr7 (For Serial Communication Unit)

    5.2 Setting Communication Conditions 5.2.2 Settings Using FPWIN GR7 (For Serial Communication Unit) ● Applications and communication conditions for each communication port should be set using the tool software FPWIN GR7. ● The explanation below shows the case that the serial communication unit is registered in the slot number 1.
  • Page 59: Plc Link

    6 PLC Link 6.1 Operation of PLC Link MEWNET-W0 ..........6-2 6.1.1 Operation Overview of PLC Link............6-2 6.1.2 Roles of Link Relays and Link Registers ......... 6-2 6.2 Configuration Required for PLC Link ..........6-4 6.2.1 Setup Procedure (For CPU with Built-in SCU)......... 6-4 6.2.2 Setup Procedure (For Serial Communication Unit)......
  • Page 60: Operation Of Plc Link Mewnet-W0

    6.1 Operation of PLC Link MEWNET-W0 6.1 Operation of PLC Link MEWNET-W0 6.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 61 6.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 62: Configuration Required For Plc Link

    6.2 Configuration Required for PLC Link 6.2 Configuration Required for PLC Link 6.2.1 Setup Procedure (For CPU with Built-in SCU) ● In order to use the PLC link function, setting of communication conditions and allocation of memories are required. ● Settings should be performed by the programming tool FPWIN GR7. From the menu bar, select Option>FP7 Configuration.
  • Page 63: Setup Procedure (For Serial Communication Unit)

    6.2 Configuration Required for PLC Link 6.2.2 Setup Procedure (For Serial Communication Unit) ● In order to use the PLC link function, setting of communication conditions and allocation of memories are required. ● Settings should be performed by the programming tool FPWIN GR7. ●...
  • Page 64: List Of Setting Items

    6.2 Configuration Required for PLC Link The settings are registered in the project. ● For details of "PLC link settings", please see the explanation on the next page onward. 6.2.3 List of Setting Items ■ List of setting items (COM.1 settings) Settings when the PLC link Setting items Remark...
  • Page 65 6.2 Configuration Required for PLC Link Setting items Setting range Setting method Size of link register send area 0 to 127 words ● When you want to change the Communication mode set in the PLC link to another mode, download the changed project to the CPU unit in FPWIN GR7, and turn on power to the FP7 CPU unit again.
  • Page 66: Setting Items For Plc Link

    6.3 Setting Items for PLC Link 6.3 Setting Items for PLC Link 6.3.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 67: Ranges Of Link Relays And Link Registers To Be Used

    6.3 Setting Items for PLC Link Structure of a link area 6.3.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 68: Link Register Transmission Start Number And Sending Size

    6.3 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 69 6.3 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 70 6.3 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 71: Response Time Of Plc Link

    6.4 Response Time of PLC Link 6.4 Response Time of PLC Link 6.4.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 72: Response Time When There Are Units That Have Not Been Added To The Link

    6.4 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 73: Mewtocol Master-Slave Communication

    7 MEWTOCOL Master-Slave Communication 7.1 Configuration..................7-2 7.1.1 Setting Communication Conditions ..........7-2 7.2 List of MEWTOCOL / MEWTOCOL7 Supporting Commands ....7-3 7.2.1 List of MEWTOCOL-COM Commands ..........7-3 7.2.2 List of MEWTOCOL7 Commands ............ 7-3 7.3 MEWTOCOL-COM Master Communication (RECV)......7-5 7.3.1 Read Data from an External Device ..........
  • Page 74: Configuration

    7.1 Configuration 7.1 Configuration 7.1.1 Setting Communication Conditions ■ Configuration Setting items Default Specification range Remark MEWTOCOL-COM Communication MEWTOCOL- Master communication is not mode possible using "MEWTOCOL7". MEWTOCOL7-COM Set a specific station no. for PLC to MEWTOCOL-COM: 1 to 99, EE be connected to the PLC link.
  • Page 75: List Of Mewtocol / Mewtocol7 Supporting Commands

    7.2 List of MEWTOCOL / MEWTOCOL7 Supporting Commands 7.2 List of MEWTOCOL / MEWTOCOL7 Supporting Commands 7.2.1 List of MEWTOCOL-COM Commands ■ Commands to be used Type of instruction Code Description Reads contact ON/OFF status. (RCS) ● Specifies only a single contact. Read contact area (RCP) ●...
  • Page 76 7.2 List of MEWTOCOL / MEWTOCOL7 Supporting Commands ● For details of MEWTOCOL commands, please see "11.3 MEWTOCOL7-COM Format". WUME-FP7COM-07...
  • Page 77: Mewtocol-Com Master Communication (Recv)

    7.3 MEWTOCOL-COM Master Communication (RECV) 7.3 MEWTOCOL-COM Master Communication (RECV) 7.3.1 Read Data from an External Device ■ Instructions In master communication, PLC has the sending right, and executes communication by sending commands to devices that support MEWTOCOL, and receiving responses. Messages in accordance with the protocol are automatically generated by PLC.
  • Page 78 7.3 MEWTOCOL-COM Master Communication (RECV) ■ Timing chart ■ I/O allocation (CPU Unit) COM. port no. Name Description Master communication Turns ON when MEWTOCOL-COM is set for the Clear to send flag communication mode and the unit is in RUN mode. Turns ON during transmission using SEND/RECV instructions.
  • Page 79: Recv (Mewtocol Master / Modbus Master)

    7.3 MEWTOCOL-COM Master Communication (RECV) ● Use the UNITSEL instruction immediately before the SEND/RECV instruction to specify a target port for communication. ● Master communication is only enabled when MEWTOCOL is selected. Confirm that the "Master communication Clear to send flag" (XC - XF) for the targeted channel is ON, and execute SEND/RECV instruction.
  • Page 80 7.3 MEWTOCOL-COM Master Communication (RECV) ■ Available word devices (●: Available) Real 32-Bit 16-Bit device: Integer numbe device: Index Operan modifie " " U ● ● ● ● ● ● ● ● ● (Note ● ● ● ● ● ● ●...
  • Page 81 7.3 MEWTOCOL-COM Master Communication (RECV) ● The amount of received data [n] is specified in words for the register transfer, and in the number of bits for the bit transfer. ● The execution result code is stored in the one-word area of the master unit that is specified by [D2].
  • Page 82 7.3 MEWTOCOL-COM Master Communication (RECV) (Note 1) When 16-bit devices are specified for sender [S] and receiver [D2] (Note 2) When bit devices are specified for sender [S] and receiver [D2] ■ Execution result code [D2] Code Description Code Description (Note 1) Normal end Reception error...
  • Page 83 7.3 MEWTOCOL-COM Master Communication (RECV) ■ Time chart (in the case of SCU) Master communication RECV Instruction executable conditions clear to send flag Clear to send flag (XC,XD,XE,XF): ON Checks that the (XC,XD,XE,XF) Sending flag (YC,YD,YE,YF): OFF flag is ON Checks that the Master communication flag is OFF...
  • Page 84 7.3 MEWTOCOL-COM Master Communication (RECV) ■ I/O allocation (in the case of Serial Communication Unit) COM Port No. Name Description Master Turns ON when MEWTOCOL-COM, MEWTOCOL7, or communication MODBUS-RTU is set for the communication mode, and the unit clear to send flag is in the RUN mode.
  • Page 85 7.3 MEWTOCOL-COM Master Communication (RECV) R100 RECV execution start conditions Clear to send flag: ON ( ( ) ) Sending flag: OFF Master Master RECV communication communication execution Settings for the communication clear to send flag sending flag R100 port UNITSEL U100 S1: CPU LAN port (U100)
  • Page 86 7.3 MEWTOCOL-COM Master Communication (RECV) ● Master communication is only enabled when MEWTOCOL or MODBUS is selected. Confirm that the "master communication clear to send flags" (X90 to X9F) are ON for the corresponding connection, and execute the SEND/RECV instruction. ●...
  • Page 87: Mewtocol-Com Master Communication (Send)

    7.4 MEWTOCOL-COM Master Communication (SEND) 7.4 MEWTOCOL-COM Master Communication (SEND) 7.4.1 Write Data into an External Device ■ Instructions In master communication, PLC has the sending right, and executes communication by sending commands to devices that support MEWTOCOL, and receiving responses. Messages in accordance with the protocol are automatically generated by PLC.
  • Page 88 7.4 MEWTOCOL-COM Master Communication (SEND) ■ Timing chart ■ I/O allocation (CPU Unit) COM. port no. Name Description Master communication Turns ON when MEWTOCOL-COM is set for the Clear to send flag communication mode and the unit is in RUN mode. Turns ON during transmission using SEND/RECV instructions.
  • Page 89: Send (Mewtocol Master / Modbus Master)

    7.4 MEWTOCOL-COM Master Communication (SEND) ● Use the UNITSEL instruction immediately before the SEND/RECV instruction to specify a target port for communication. ● Master communication is only enabled when MEWTOCOL is selected. Confirm that the "Master communication Clear to send flag" (XC - XF) for the targeted channel is ON, and execute SEND/RECV instruction.
  • Page 90 7.4 MEWTOCOL-COM Master Communication (SEND) ■ Available word devices (●: Available) Real 32-Bit 16-Bit device: Integer numbe device: Index Operan modifie " " U ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●...
  • Page 91 7.4 MEWTOCOL-COM Master Communication (SEND) ● The execution result code is stored in the one-word area of the master unit that is specified by [D3]. ■ Setting the amount of sent data [n] Transfer Communication Amount of sent Note method Mode data n MEWTOCOL-COM 1 to 507 words...
  • Page 92 7.4 MEWTOCOL-COM Master Communication (SEND) ■ Execution result code [D3] Code Description Code Description Normal end (Note 1) Reception error The communication port is being used in the (Note 2) I/O allocation shortage error master communication. The communication port is being used in the Format error slave communication.
  • Page 93 7.4 MEWTOCOL-COM Master Communication (SEND) ■ Time chart (in the case of SCU) SEND instruction executable conditions Master communication clear to send flag Clear to send flag (XC, XD, XE, XF): Check that the (XC, XD, XE, XF) flag is ON Sending flag (YC, YD, YE, YF): OFF Check that the Master communication...
  • Page 94 7.4 MEWTOCOL-COM Master Communication (SEND) ■ I/O allocation (in the case of Serial Communication Unit) COM Port No. Name Description Master Turns ON when MEWTOCOL-COM, MEWTOCOL7, or communication MODBUS-RTU is set for the communication mode, and the unit clear to send flag is in the RUN mode.
  • Page 95 7.4 MEWTOCOL-COM Master Communication (SEND) R100 SEND execution conditions Clear to send flag: ON ( ( ) ) Sending flag: OFF Master Master SEND communication communication execution R100 clear to send flag sending flag Settings for the communication port UNITSEL U100 S1: CPU LAN port (U100) S2: Connection 1 (U1)
  • Page 96 7.4 MEWTOCOL-COM Master Communication (SEND) ● Master communication is only enabled when MEWTOCOL or MODBUS is selected. Confirm that the "master communication clear to send flags" (X90 to X9F) are ON for the corresponding connection, and execute the SEND/RECV instruction. ●...
  • Page 97: Modbus Rtu Master-Slave Communication

    8 MODBUS RTU Master-Slave Communication 8.1 Configuration..................8-2 8.1.1 Setting Communication Conditions ..........8-2 8.2 List of MODBUS RTU Supported Commands ........8-3 8.2.1 List of MODBUS Function Codes ............ 8-3 8.3 MODBUS RTU Master Communication (RECV) ........8-4 8.3.1 Read Data from an External Device ..........8-4 8.3.2 RECV (MEWTOCOL Master / MODBUS Master)......
  • Page 98: Configuration

    8.1 Configuration 8.1 Configuration 8.1.1 Setting Communication Conditions ■ Configuration Setting items Default Specification range Remark Communication MEWTOCOL-COM MODBUS RTU Specify "MODBUS RTU". mode Set a specific station no. for PLC to be connected to the PLC link. Set a Station no.
  • Page 99: List Of Modbus Rtu Supported Commands

    8.2 List of MODBUS RTU Supported Commands 8.2 List of MODBUS RTU Supported Commands 8.2.1 List of MODBUS Function Codes ■ Table of supported commands Remarks FP7 supported Code Name (MODBUS) Name (Reference No.) functions Read Coil Status Read Y and R Coils ●...
  • Page 100: Modbus Rtu Master Communication (Recv)

    8.3 MODBUS RTU Master Communication (RECV) 8.3 MODBUS RTU Master Communication (RECV) 8.3.1 Read Data from an External Device ■ Instructions In master communication, PLC has the sending right, and executes communication by sending commands to devices that support MODBUS RTU, and receiving responses. Messages in accordance with the protocol are automatically generated by PLC.
  • Page 101 8.3 MODBUS RTU Master Communication (RECV) (Note 3) The unit number and COM. port number in the above program is applied when the COM.1 port of the CPU unit is used. ■ Timing chart ■ I/O allocation (CPU Unit) COM. port no. Name Description Master...
  • Page 102: Recv (Mewtocol Master / Modbus Master)

    8.3 MODBUS RTU Master Communication (RECV) ● Use the UNITSEL instruction immediately before the SEND/RECV instruction to specify a target port for communication. ● Master communication is only valid when MODBUS is selected. Confirm that the "Master communication Clear to send flag" (XC - XF) for the targeted channel is ON, and execute SEND/RECV instruction.
  • Page 103 8.3 MODBUS RTU Master Communication (RECV) ■ Available word devices (●: Available) Real 32-Bit 16-Bit device: Integer numbe device: Index Operan modifie " " U ● ● ● ● ● ● ● ● ● (Note ● ● ● ● ● ●...
  • Page 104 8.3 MODBUS RTU Master Communication (RECV) ● The amount of received data [n] is specified in words for the register transfer, and in the number of bits for the bit transfer. ● The execution result code is stored in the one-word area of the master unit that is specified by [D2].
  • Page 105 8.3 MODBUS RTU Master Communication (RECV) (Note 1) When 16-bit devices are specified for sender [S] and receiver [D2] (Note 2) When bit devices are specified for sender [S] and receiver [D2] ■ Execution result code [D2] Code Description Code Description (Note 1) Normal end...
  • Page 106 8.3 MODBUS RTU Master Communication (RECV) ■ Time chart (in the case of SCU) Master communication RECV Instruction executable conditions clear to send flag Clear to send flag (XC,XD,XE,XF): ON Checks that the (XC,XD,XE,XF) Sending flag (YC,YD,YE,YF): OFF flag is ON Checks that the Master communication flag is OFF...
  • Page 107 8.3 MODBUS RTU Master Communication (RECV) ■ I/O allocation (in the case of Serial Communication Unit) COM Port No. Name Description Master Turns ON when MEWTOCOL-COM, MEWTOCOL7, or communication MODBUS-RTU is set for the communication mode, and the unit clear to send flag is in the RUN mode.
  • Page 108 8.3 MODBUS RTU Master Communication (RECV) R100 RECV execution start conditions Clear to send flag: ON ( ( ) ) Sending flag: OFF Master Master RECV communication communication execution Settings for the communication clear to send flag sending flag R100 port UNITSEL U100...
  • Page 109 8.3 MODBUS RTU Master Communication (RECV) ● Master communication is only enabled when MEWTOCOL or MODBUS is selected. Confirm that the "master communication clear to send flags" (X90 to X9F) are ON for the corresponding connection, and execute the SEND/RECV instruction. ●...
  • Page 110: Recv (Modbus Master: Function Code Specification)

    8.3 MODBUS RTU Master Communication (RECV) 8.3.3 RECV (MODBUS Master: Function Code Specification) ■ Ladder diagram (Note 1) The above figure shows the case that S1=U0 (CPU unit with built-in SCU) and S2=U1 (port number 1) are specified by the UNITSEL instruction. ■...
  • Page 111 8.3 MODBUS RTU Master Communication (RECV) Real 32-Bit 16-Bit device: Integer numbe device: Index Operan modifie U " " ● ● ● ● ● ● ● ● ● ● ● ● ● ● (Note 1) Only in the case of "direct address specification" (main instruction) in the MODBUS mode, an integer can be specified for the sender address.
  • Page 112 8.3 MODBUS RTU Master Communication (RECV) Device to be specified for Transfer Value that can be specified for high bytes of [S1] [D1] method H1: Read coil state (01) 16-Bit device: H2: Read input state (02) Register transfer WX, WY, WR, WL, DT, LD H3: Read hold register (03) H4: Read input register (04) 1-Bit device:...
  • Page 113 8.3 MODBUS RTU Master Communication (RECV) R100 RECV execution start conditions Clear to send flag: ON ( ( ) ) Sending flag: OFF Master Master RECV communication communication execution Settings for the communication R100 clear to send flag sending flag port S1: Slot 0 (U0) UNITSEL...
  • Page 114 8.3 MODBUS RTU Master Communication (RECV) ■ I/O allocation (in the case of CPU with built-in SCU) COM Port No. Name Description Master Turns ON when MEWTOCOL-COM, MEWTOCOL7, or MODBUS- communication RTU is set for the communication mode, and the unit is in the clear to send flag RUN mode.
  • Page 115 8.3 MODBUS RTU Master Communication (RECV) ● After it is confirmed that connection 1 is established in master mode (X90) and no transmissions are currently being executed for the same port (Y90), the RECV instruction is started. ● The UNITSEL instruction is used to specify a slot number (LAN port: U100) and the connection number (U1).
  • Page 116 8.3 MODBUS RTU Master Communication (RECV) I/O number Name Description Reports completion result of sending data in genera-purpose communication or master communication. Y70 to Y7F Sent flag (Normal completion: 0, Abnormal completion: 1) (Note 1) Each contact is used for reading the operation state. Do not write over it with a user program. ■...
  • Page 117: Modbus Rtu Master Communication (Send)

    8.4 MODBUS RTU Master Communication (SEND) 8.4 MODBUS RTU Master Communication (SEND) 8.4.1 Write Data into an External Device ■ Instructions In master communication, PLC has the sending right, and executes communication by sending commands to devices that support MODBUS RTU, and receiving responses. Messages in accordance with the protocol are automatically generated by PLC.
  • Page 118 8.4 MODBUS RTU Master Communication (SEND) ■ Timing chart ■ I/O allocation (CPU Unit) COM. port no. Name Description Master Turns ON when MODBUS RTU is set for the communication communication mode and the unit is in RUN mode. Clear to send flag Master Turns ON during transmission using SEND/RECV instructions.
  • Page 119: Send (Mewtocol Master / Modbus Master)

    8.4 MODBUS RTU Master Communication (SEND) ● Use the UNITSEL instruction immediately before the SEND/RECV instruction to specify a target port for communication. ● Master communication is only valid when MODBUS is selected. Confirm that the "Master communication Clear to send flag" (XC - XF) for the targeted channel is ON, and execute SEND/RECV instruction.
  • Page 120 8.4 MODBUS RTU Master Communication (SEND) ■ Available word devices (●: Available) Real 32-Bit 16-Bit device: Integer numbe device: Index Operan modifie " " U ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●...
  • Page 121 8.4 MODBUS RTU Master Communication (SEND) ● The execution result code is stored in the one-word area of the master unit that is specified by [D3]. ■ Setting the amount of sent data [n] Transfer Communication Amount of sent Note method Mode data n...
  • Page 122 8.4 MODBUS RTU Master Communication (SEND) ■ Execution result code [D3] Code Description Code Description Normal end (Note 1) Reception error The communication port is being used in the (Note 2) I/O allocation shortage error master communication. The communication port is being used in the Format error slave communication.
  • Page 123 8.4 MODBUS RTU Master Communication (SEND) ■ Time chart (in the case of SCU) SEND instruction executable conditions Master communication clear to send flag Clear to send flag (XC, XD, XE, XF): Check that the (XC, XD, XE, XF) flag is ON Sending flag (YC, YD, YE, YF): OFF Check that the Master communication...
  • Page 124 8.4 MODBUS RTU Master Communication (SEND) ■ I/O allocation (in the case of Serial Communication Unit) COM Port No. Name Description Master Turns ON when MEWTOCOL-COM, MEWTOCOL7, or communication MODBUS-RTU is set for the communication mode, and the unit clear to send flag is in the RUN mode.
  • Page 125 8.4 MODBUS RTU Master Communication (SEND) R100 SEND execution conditions Clear to send flag: ON ( ( ) ) Sending flag: OFF Master Master SEND communication communication execution R100 clear to send flag sending flag Settings for the communication port UNITSEL U100 S1: CPU LAN port (U100)
  • Page 126 8.4 MODBUS RTU Master Communication (SEND) ● Master communication is only enabled when MEWTOCOL or MODBUS is selected. Confirm that the "master communication clear to send flags" (X90 to X9F) are ON for the corresponding connection, and execute the SEND/RECV instruction. ●...
  • Page 127: Send (Modbus Master: Function Code Specification)

    8.4 MODBUS RTU Master Communication (SEND) 8.4.3 SEND (MODBUS Master: Function Code Specification) ■ Ladder diagram (Note 1) The above figure shows the case that S1=U0 (CPU unit with built-in SCU) and S2=U1 (port number 1) are specified by the UNITSEL instruction. ■...
  • Page 128 8.4 MODBUS RTU Master Communication (SEND) Real 32-Bit 16-Bit device: Integer numbe device: Index Operan modifie U " " ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● (Note 1) When the destination unit is FP7, only global devices can be specified. (Local devices cannot be specified.) ■...
  • Page 129 8.4 MODBUS RTU Master Communication (SEND) Types of device to be Transfer Number of sent Value that can be specified for high bytes specified for [S] method data [n] of [D1] H6: Preset single register (06) HF: Force multiple coils (15) 16-Bit device: Register H10: Preset multiple registers (16)
  • Page 130 8.4 MODBUS RTU Master Communication (SEND) ● Using the UNITSEL instruction, specify the slot number (U0) and the COM. port number (U1). ● In the SEND instruction, specify and execute PLC's starting address (DT100) and data amount (U2), MODBUS function code to be used (16: H10), and partner station number (H01) and starting address (H0).
  • Page 131 8.4 MODBUS RTU Master Communication (SEND) ● The case of SCU shows the case that it is used in the following combination. • COM.0 port equipped in the CPU unit • Communication cassettes attached to the CPU unit (COM.1 to COM.2 ports) •...
  • Page 132 8.4 MODBUS RTU Master Communication (SEND) ● A SEND/RECV instruction cannot be executed for a port where slave communication is in progress. ● If there is no response, the "master communication sending flags" (YC to YF) remain ON during the time-out period set in the CPU configuration. ●...
  • Page 133 8.4 MODBUS RTU Master Communication (SEND) ■ I/O allocations I/O number Name Description Master communication Turns ON when a connection is established in the master X90 to X9F clear to send flag communication. Turns ON during sending data based on the SEND/RECV instruction.
  • Page 134 (MEMO) 8-38 WUME-FP7COM-07...
  • Page 135: General-Purpose Communication

    9 General-Purpose Communication 9.1 Operation of General-Purpose Communication........9-2 9.1.1 Read Data from an External Device ..........9-2 9.1.2 Write Data into an External Device ..........9-2 9.2 Configuration..................9-3 9.2.1 Setting Communication Conditions ..........9-3 9.3 Sending Operation ................9-4 9.3.1 Overview of Sending Operation ............9-4 9.3.2 Contents of Sent Data..............
  • Page 136: Operation Of General-Purpose Communication

    9.1 Operation of General-Purpose Communication 9.1 Operation of General-Purpose Communication 9.1.1 Read Data from an External Device ■ Read data from a partner device In general-purpose communication, communication is executed by sending commands that suit the partner device, and receiving responses. Command messages are sent by formulating a data table for message in accordance with the protocol, on the given data register, and subsequently executing GPSEND instruction.
  • Page 137: Configuration

    9.2 Configuration 9.2 Configuration 9.2.1 Setting Communication Conditions ■ Configuration Setting items Default Specification range Remark Communication General-purpose MEWTOCOL-COM Specify "general-purpose communication". mode communication Station no. 1 to 999 Settings are not necessary. 300 / 600 / 1200 / 2400 / 4800 / 9600 / 19200 / Baud rate 9600...
  • Page 138: Sending Operation

    9.3 Sending Operation 9.3 Sending Operation 9.3.1 Overview of Sending Operation ■ Instructions Sending in the general-purpose communication is performed by formulating a data table for sending on the given operation memory, and subsequently executing GPSEND instruction. ■ Sample program ●...
  • Page 139 9.3 Sending Operation turn off right after the execution of the instruction. It turns off at the beginning of the second scan.) ● The sending result (0: normal completion, 1: abnormal completion) is saved in the general- purpose communication sending result flag (Y0, Y1, Y2, Y3). ■...
  • Page 140: Contents Of Sent Data

    9.3 Sending Operation ● Specify the port targeted for communication, using UNITSEL instruction immediately before GPSEND instruction. ● Maintain the ON conditions for GPSEND instruction until sending is completed and the general- purpose communication sending active flag (Y8, Y9, YA, YB) turns OFF. 9.3.2 Contents of Sent Data Strings data sent by the GPSEND instruction are converted into ASCII text and saved in a given data register.
  • Page 141 9.3 Sending Operation ■ Ladder diagram (pGPSEND) ■ Ladder diagram (GPSEND) (Note 1) The above figure shows the case that S1=U0 (CPU unit with built-in SCU) and S2=U1 (port number 1) are specified by the UNITSEL instruction. ■ Available operation units (●: Available) Operatio n unit ●...
  • Page 142 9.3 Sending Operation Real 32-Bit 16-Bit device: Integer numbe device: Index Operan modifie U " " (Note 1) ● ● ● ● ● ● ● ● ● ● (Note ● ● ● ● ● ● ● (Note 1) Always 16-bit data/device, regardless of the specification of operation units [i]. ■...
  • Page 143 9.3 Sending Operation Instruction Characteristics Disa Up to 16 send operations can be performed simultaneously to different COM ports and dvan connections. (The total of simultaneous usage of SEND, RECV, GPTRNS, pGPSEND, tage and pPMSET instructions) The data send confirmation process is performed in the operation processing for the GPSEND (Note 2) instruction.
  • Page 144 9.3 Sending Operation ■ Setting the number of bytes in sent data [n] Unit type Set value Description When the value is positive, an end code is automatically added 1 to 4096 according to the "Terminator setting" of COM settings. (Note 1)(Note 2) When the value is negative, an end code is not automatically added -1 to -4096...
  • Page 145 9.3 Sending Operation ● The GPTRNS, pGPSEND, and GPSEND instructions should be executed after confirming that the general-purpose communication clear to send flag for the target COM port and connection is ON and that the general-purpose communication sending flag is OFF. ●...
  • Page 146 9.3 Sending Operation GPTRNS instruction R100 GPTRNS execution conditions X8: Clear to send flag: ON < > Y8: Send active flag: OFF Data conversion R100 S1: Sent data SSET "ABCDE" DT100 S2: Sent data storage DT100: Number of sent characters DT101 and after: Sent data R100 Communication port settings...
  • Page 147 9.3 Sending Operation ● The sending result (0: normal completion; 1: abnormal completion) is stored in the general- purpose communication sent flags (Y0, Y1, Y2, Y3). General-purpose Instruction executable conditions communication clear to Clear to send flag (X8, X9, XA, XB): ON Checks that the send flag (X8, X9, XA, XB) Sending flag (Y8, Y9, YA, YB): OFF...
  • Page 148 9.3 Sending Operation COM Port No. Name Description Reports completion result of sending data in genera- purpose communication or master communication. Sent flag (Normal completion: 0, Abnormal completion: 1) (Note 1) Each contact is used for reading the operation state. Do not write over it with a user program. (Note 2) In the case of the GPTRNS and pGPSEND instructions, the sending flag and send results flag are updated after the scan is complete.
  • Page 149 9.3 Sending Operation R101 R100 GPSEND execution conditions X80: Clear to send flag:ON Y80: Send active flag:OFF R100 Data conversion S1: Sent data S2: Sent data storage R100 DT100: Number of sent characters SSET “ABCDE” DT100 ( ( ) ) DT101 and after: Sent data R100 Communication port settings...
  • Page 150: Precautions On Sending Data

    9.3 Sending Operation ■ I/O allocation (in the case of CPU with built-in ET-LAN) I/O number Name Description General-purpose Turns ON when general-purpose communication is in a connected X80 to X8F communication clear to status. send flag General-purpose Y80 to Y8F communication sending Turns ON when sending with general-purpose communication.
  • Page 151 9.3 Sending Operation (Note 1) The unit number and COM. port number in the above program is applied when the COM.1 port of the CPU unit is used. ● When you do not wish to add the terminator (end code), use a negative value for specifying the No.
  • Page 152: Receiving Operation

    9.4 Receiving Operation 9.4 Receiving Operation 9.4.1 Overview of Receiving Operation ■ Instructions In the general-purpose communication mode, data received from the partner device are saved in eight reception buffers for each COM. port. When the GPRECV instruction is executed in a user program, data in the reception buffer can be copied into a given operation memory.
  • Page 153 9.4 Receiving Operation ■ I/O allocation (For Serial Communication Unit) COM. port no. Name Description General-purpose Turns ON when the receiving process is completed in communication Reception the general-purpose communication mode. done flag Turns ON when the GPRECV instruction is executed General-purpose and the received data have been copied into the communication Reception...
  • Page 154: Contents Of Received Data

    9.4 Receiving Operation 9.4.2 Contents of Received Data When data are copied into a given data register, based on GPRECV instruction, the data are saved in the following manner. Example: The data “12345 CR” is transmitted from a device with RS-232C device. ●...
  • Page 155: Operations Of The "Reception Done Copy" Flag And Multiplex Reception

    9.4 Receiving Operation 9.4.4 Operations of the "Reception Done Copy" Flag and Multiplex Reception ■ Operation and function of the "reception done copy" flag (X4, X5, X6, X7) ● The "reception done copy" flag (X4, X5, X6, X7) turns ON when the GPRECV instruction is executed and data are copied from the reception buffer to the specified operation memory, and turns OFF when the END instruction is executed.
  • Page 156 9.4 Receiving Operation ■ Available operation units (●: Available) Operatio n unit ● ● ■ List of operands Operand Description Starting address of the received data storage data area Ending address of the received data storage data area ■ Available devices (●: Available) Real 32-Bit 16-Bit device:...
  • Page 157 9.4 Receiving Operation When "Start code STX" is set to "Enabled", the maximum amount of sent data that can be specified is decremented by one. When "Terminator setting" is set to "ETX" or "CR", the maximum amount of sent data is decremented by one.
  • Page 158 9.4 Receiving Operation ■ Time chart (in the case of SCU) ● Data received from an external device are stored in the receive buffer. ● When the end code is received, the received flag (X0, X1, X2, X3) turns ON. Subsequently, the following data are stored in the buffers upon reception.
  • Page 159 9.4 Receiving Operation ■ Precautions during programming (in the case of SCU) ● Use the UNITSEL instruction immediately before the GPRECV instruction to specify a target port for communication. ● When the general-purpose communication received flag is ON for the targeted COM port, execute GPRECV.
  • Page 160 9.4 Receiving Operation ● When data are received, the received flag (X70 to X7F) turns ON. ● When the GPRECV instruction is executed, data are copied to the specified area, and the received flags (X70 to X7F) are turned OFF. The received flags (X70 to X7F) are turned OFF when I/O refresh is executed at the start of the following scans.
  • Page 161 9.4 Receiving Operation Name Description Connection specified by UNITSEL is in a "reception done OFF" status, but not in a "connected" status. Data device specified by [D1] and/or [D2] exceeds the area. The specified [D1] is greater than or equal to [D2]. The devices specified for [D1] and [D2] differ.
  • Page 162: Sending/Receiving Flag Operation

    9.5 Sending/Receiving Flag Operation 9.5 Sending/Receiving Flag Operation 9.5.1 No Header (Start Code), Terminator (End Code) "CR": The “reception done” flag, the “sending active” flag, the GPSEND instruction, and the GPRECV instruction are related as follows: ● The COM. port has eight reception buffers. The reception process is continued after the reception done flag (X0, X1, X2, X3) turns ON.
  • Page 163: Start Code "Stx", End Code "Etx

    9.5 Sending/Receiving Flag Operation 9.5.2 Start Code "STX", End Code "ETX": Receiving process: Reception done flag and GPRECV instruction are related as follows: ● When the start code is set to "STX", the data are saved in the reception buffer. When the start code is received, the receive pointer is initialized.
  • Page 164 9.5 Sending/Receiving Flag Operation Sending process: Sending done flag and GPSEND instruction are related as follows: ● Header (STX) and terminator (ETX) are automatically added to the data to be sent. The data are transmitted to an external device. ● After GPSEND instruction is executed, data transmission is started in several μs to several tens of ms.
  • Page 165: Troubleshooting

    10 Troubleshooting 10.1 Self-diagnostic Function..............10-2 10.1.1 CPU Unit’s Operation Monitor LED..........10-2 10.1.2 Operation at the Time of Error ............10-2 10.1.3 Serial Communication Unit's Operation Monitor LED ....10-3 10.2 What to Do If an Error Occurs (For Each Communication Mode)..10-4 10.2.1 When Using PLC Link Function .............
  • Page 166: Self-Diagnostic Function

    10.1 Self-diagnostic Function 10.1 Self-diagnostic Function 10.1.1 CPU Unit’s Operation Monitor LED The CPU unit has a self-diagnostic function which identifies errors and stops operation if necessary. Indications concerning self-diagnosis are as follows. ■ LED indications concerning self-diagnostic errors LED indications on the CPU unit Operation Description PROG...
  • Page 167: Serial Communication Unit's Operation Monitor Led

    10.1 Self-diagnostic Function ● For information on the troubleshooting for the CPU unit, also refer to FP7 CPU Unit User's Manual (Hardware). 10.1.3 Serial Communication Unit's Operation Monitor LED The serial communication unit has a self-diagnostic function which identifies errors. Indications concerning self-diagnosis are as follows.
  • Page 168: What To Do If An Error Occurs (For Each Communication Mode)

    10.2 What to Do If an Error Occurs (For Each Communication Mode) 10.2 What to Do If an Error Occurs (For Each Communication Mode) 10.2.1 When Using PLC Link Function ■ What to do if an error occurs Situation Contents to check Confirmation method Check if the communication block is Is a communication cassette attached?
  • Page 169: When Using General-Purpose Communication Function

    10.2 What to Do If an Error Occurs (For Each Communication Mode) Situation Contents to check Confirmation method Is the communication mode set to the same mode as that of a destination device? Is the command length for MEWTOCOL or Check the programs of destination MEWTOCOL7 within the prescribed length? devices.
  • Page 170 10.2 What to Do If an Error Occurs (For Each Communication Mode) (Note 1) For checking communication parameters with PMGET instruction, the CPU should be set in the RUN mode. Set Mode selection when self-diagnostic error occurs>A unit error occurred. to "Continue operation"...
  • Page 171: Checking Status With Pmget Instruction

    10.3 Checking Status with PMGET Instruction 10.3 Checking Status with PMGET Instruction 10.3.1 Specifications of PMGET Instruction ■ Confirmation of error information ● Describe UNITSEL instruction immediately before PMGET instruction, and specify the slot and port numbers of the unit to be read. ●...
  • Page 172 10.3 Checking Status with PMGET Instruction Operand Parameter Range Settings [D+6] (Note 1) U0 to U1 U0: Disable, U1: Enable RS/CS U0: Immediate Effective time = Un x 0.01 ms (0 to 100 [D+7] Send waiting time U0 to U10000 [D+8] Header STX U0 to U1...
  • Page 173 10.3 Checking Status with PMGET Instruction ■ SCU COM. port operation status monitor information Operand Monitor Range Settings information U0: MEWTOCOL-COM U1: MEWTOCOL7-COM Operation mode U2: MODBUS RTU U8: General-purpose communication U9: PLC link U0: No communication cassette U232 U 232: RS-232C Communication [D+1] cassette detection...
  • Page 174: Clearing Errors Using User Programs

    10.4 Clearing Errors Using User Programs 10.4 Clearing Errors Using User Programs 10.4.1 Clearing Errors Using User Programs ● Each error can be cleared by user programs. ● Refer to error codes, correct error factors, and clears the errors. ■ Clearing unit by UCLR instruction ●...
  • Page 175 11 Specifications 11.1 Communication Function Specifications ...........11-2 11.1.1 CPU Unit Communication Specifications ........11-2 11.1.2 Extension Cassette Communication Specifications ....... 11-2 11.2 MEWTOCOL-COM Format ...............11-4 11.2.1 MEWTOCOL-COM command Format ........... 11-4 11.2.2 MEWTOCOL-COM Response Format ........... 11-5 11.3 MEWTOCOL7-COM Format .............11-7 11.3.1 MEWTOCOL7-COM Command Format.........
  • Page 176: Communication Function Specifications

    11.1 Communication Function Specifications 11.1 Communication Function Specifications 11.1.1 CPU Unit Communication Specifications ■ USB port (for tool software) Items Description Standard USB2.0 FULL SPEED Communication MEWTOCOL-COM (slave), MEWTOCOL7-COM (slave) function ■ COM.0 Port Items Description Interface 3-wire 1-channel RS-232C Transmission distance (Note 1) 15 m...
  • Page 177 11.1 Communication Function Specifications Description Items AFP7CCRS1 AFP7CCRS2 AFP7CCRM1 AFP7CCRM2 AFP7CCRS1M1 (Note 5)(Note 6) Baud rate 300, 600,1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400 bit/s Communication (Note 7) Half-duplex transmission method Synchronous Start stop synchronous system method Communication Data length: 7 bits / 8 bits, stop bit: 1 bit / 2 bits, parity: Yes / No (Odd / Even) Start code: format Without STX / With STX, end code: CR / CR + LF / None / ETX...
  • Page 178: Mewtocol-Com Format

    11.2 MEWTOCOL-COM Format 11.2 MEWTOCOL-COM Format 11.2.1 MEWTOCOL-COM command Format ■ 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 and receive single frames of up to 2048 characters as well as general “%”.
  • Page 179: Mewtocol-Com Response Format

    11.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 to the last text character.
  • Page 180 11.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 181: Mewtocol7-Com Format

    11.3 MEWTOCOL7-COM Format 11.3 MEWTOCOL7-COM Format 11.3.1 MEWTOCOL7-COM Command Format ■ Command message (1) Header (start code) A “>” (ASCII code: H3E) must be at the beginning of a message. ● The method for writing text segments in the message varies depending on the type of command.
  • Page 182: Mewtocol7-Com Response Format

    11.3 MEWTOCOL7-COM Format (3) Frame No. This indicates the sending frame No. Make sure to use consecutive frame numbers. E.g. commands for multiple frames >@EEE00#00MMRDD001G0DT0000000001000****CR >@EEE01****& CR * Make sure to use consecutive values for frame numbers. The usable number range is from 00 to FF.
  • Page 183 11.3 MEWTOCOL7-COM Format This is the station no. of the PLC that processed the command. (3) Frame No. This is the frame number where the command was processed. (4) Text The content of this varies depending on the type of command. If the processing is not completed successfully, an error code will be stored here, so that the content of the error can be checked.
  • Page 184: Modbus Rtu Format

    11.4 MODBUS RTU Format 11.4 MODBUS RTU Format 11.4.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 (station (Note 1) 8 bits, 0 to 255 (decimal) no.) FUNCTION...
  • Page 185 11.4 MODBUS RTU Format ● A part of a command message (6 bytes from the beginning) is returned for multiple write command. ■ 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...
  • Page 186 (MEMO) 11-12 WUME-FP7COM-07...
  • Page 187 Index GPRECV ......... 9-21 GPSEND ........... 9-6 GPTRNS ........... 9-6 pGPSEND ......... 9-6 RECV MEWTOCOL ......7-7,8-6 MODBUS ........8-14 SEND ........7-17,8-23 MEWTOCOL ......7-17,8-23 MODBUS ........8-31 WUME-FP7COM-07...
  • Page 188 Record of Changes The manual number can be found at the bottom of the manual cover. Date Manual No. Record of Changes Dec. 2012 WUME-FP7COM-01 1st Edition Feb. 2013 WUME-FP7COM-02 2nd Edition ● Amended errors Sep. 2013 WUME-FP7COM-03 3rd Edition ●...
  • Page 189 [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 190 (MEMO) WUME-FP7COM-07...
  • Page 191 (MEMO) WUME-FP7COM-07...
  • Page 192 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. 2023 July, 2023 WUME-FP7COM-07...

This manual is also suitable for:

Fp7cpu

Table of Contents