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 the Panasonic website:https:// industry.panasonic.com/global/en/downloads/?tab=manual.
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 and trademarks ● Panasonic Industry Co., Ltd. owns the copyright of this manual. ● Unauthorized copying of this document is strictly prohibited. ● Windows is a registered trademark of the Microsoft Corporation in the USA and in other nations.
Page 6
Network Security When this product is connected to a network, you might receive damage as listed below. (1) Information leakage or outflow through this product (2) Fraudulent operation of this product by a malicious third party (3) Obstructing or stopping this product by a malicious third party Sufficient network security measures, including the following measures, should be taken at your own risk to prevent such damages.
Table of Contents 1 Communication Functions of CPU Unit..........1-1 1.1 Communication Ports of CPU Unit............1-2 1.1.1 Types and Purposes of Communication Ports ......... 1-2 1.1.2 LAN Port Specifications ..............1-3 1.2 Functions of LAN Port.................1-4 1.2.1 Communication functions of FP7 CPU Unit ........1-4 1.2.2 System Connection ................
Page 8
4.1.3 Open Method (Server / Client) ............4-2 4.1.4 Open Method (Automatic/Manual) ........... 4-2 4.1.5 Instructions for Specifying Connection Conditions......4-3 4.1.6 IP Address Setting Specifications ............ 4-4 4.2 Communication Processing ..............4-6 4.2.1 Communication Operation ............... 4-6 4.3 Input/Output Signals Used for Communication........4-7 4.3.1 I/O Allocation..................
Page 9
7.2.4 GPTRNS / pGPSEND /GPSEND (General-Purpose Communication Send Instruction)............. 7-7 7.3 Receiving Operation ................7-18 7.3.1 Overview of Receiving Operation ............ 7-18 7.3.2 Contents of Received Data .............. 7-19 7.3.3 GPRECV (General-Purpose Communication Receive Instruction) . 7-20 8 Specifications..................8-1 8.1 Specifications of CPU Unit LAN Port Communication Function ..8-2 8.2 MEWTOCOL-DAT Format ..............8-3 8.2.1 MEWTOCOL-DAT Command Format in LAN Command Format ..
1 Communication Functions of CPU Unit 1.1 Communication Ports of CPU Unit............1-2 1.1.1 Types and Purposes of Communication Ports ......... 1-2 1.1.2 LAN Port Specifications ..............1-3 1.2 Functions of LAN Port.................1-4 1.2.1 Communication functions of FP7 CPU Unit ........1-4 1.2.2 System Connection ................
1.1 Communication Ports of CPU Unit 1.1 Communication Ports of CPU Unit 1.1.1 Types and Purposes of Communication Ports ■ Communication ports of CPU unit ■ Functions of Ports (1) COM1 and COM2 ports Attach a separately sold communication cassette to use these ports. You can select from five types of communication cassettes.
1.1 Communication Ports of CPU Unit ● For communication using the COM port, refer to the CPU Unit User's Manual (COM Port Communication). 1.1.2 LAN Port Specifications ■ 100BASE-TX / 10BASE-T connector (RJ45) This connector connects the ET-LAN Unit and the Hub in Ethernet (100BASE-TX, 10BASE-T) and UTP Cable.
1.2 Functions of LAN Port 1.2 Functions of LAN Port 1.2.1 Communication functions of FP7 CPU Unit ■ Configuration chart ■ Communication functions of FP7 CPU Unit ● The FP7 CPU Unit can open a virtual communication line with an Ethernet-supporting device connected to LAN, and send/receive data.
Page 15
1.2 Functions of LAN Port ● It can open multiple connections between the FP7 CPU unit and multiple nodes or a single node, and execute communication. ● Operating mode, open type, protocol, etc. can be selected for each connection. External External FP7 CPU FP7 CPU...
Response communication ■ Purpose of MEWTOCOL-DAT communication This is used for sending data via Ethernet between Panasonic PLCs that support "MEWTOCOL-DAT". ● Programmable controller FP series ● When MEWTOCOL-DAT master/slave communication is used, select "TCP/IP" for the communication protocol in order to guarantee the reliability of communication.
■ Applications of MEWTOCOL-COM communication This is used for sending text data via Ethernet between Panasonic devices that support "MEWTOCOL-COM". This method can also be used for connecting a programming tool. ● Programmable controller FP series 1.3.3 MODBUS TCP Master/Slave Communication ■...
1.3 Overview of Communication Functions ● The data size that can be sent or received in a single communication is up to 127 words for register transmission and 2040 bit for bit transmission. MODBUS-TCP FP7 CPU supporting device Ethernet LAN IP XXXXXX IP XXXXXX Command...
1.4 Terms 1.4 Terms The following terms are used for settings on the software for connecting the FP7 CPU unit to Ethernet LAN, and in the Users Manuals. ■ Server connection and client connection ● These indicate methods for connecting a virtual communication line between FP7 and an external device.
2 Installation and Wiring 2.1 Installation Environment and Wiring for LAN Ports......2-2 2.1.1 Before Installation or Wiring ............. 2-2 2.1.2 Installation Environment and Noise Control Measures ....2-2 2.2 LAN Port Wiring ..................2-3 2.3 Noise Control Measures ..............2-4 2.3.1 Guidelines to Noise Generation ............2-4 2.3.2 Taking Corrective Measures through the Application.......
2.1 Installation Environment and Wiring for LAN Ports 2.1 Installation Environment and Wiring for LAN Ports 2.1.1 Before Installation or Wiring ■ Noise suppression of Ethernet Ethernet is a network used in offices and buildings, where there is comparatively little noise. It does not have a higher resistance to noise than ordinary FA application networks.
2.2 LAN Port Wiring 2.2 LAN Port Wiring ■ Selection of UTP cables ● Use UTP cables of Category 5 or higher. ● It is recommended to keep the UTP cable length to 10 m or shorter, considering noise resistance. ●...
2.3 Noise Control Measures 2.3 Noise Control Measures 2.3.1 Guidelines to Noise Generation If any of the following are occurring, external noise may have entered the communication line. Take noise control measures. ● Check to see if a transmission / reception error is occurring, in synch with the operation of the device.
3 Configuration 3.1 Procedure for Setting Communication Conditions ......3-2 3.1.1 Setup Procedure ................3-2 3.2 Setting Basic Communication Information ..........3-3 3.2.1 List of setting items ................3-3 3.3 Settings for SNTP server ..............3-5 3.4 Settings for FTP server ...............3-7 3.5 Setting of System Connection.............3-8 3.5.1 List of setting items ................
3.1 Procedure for Setting Communication Conditions 3.1 Procedure for Setting Communication Conditions 3.1.1 Setup Procedure ● To use communication functions based on the LAN port, communication conditions must be set. ● Settings should be performed by the programming tool FPWIN GR7. Select Options>FP7 Configuration>Built-in ET-LAN from the menu bar.
3.2 Setting Basic Communication Information 3.2 Setting Basic Communication Information 3.2.1 List of setting items ■ List of setting items (Basic communication information) Setting item Default Remark IPv4 address automatic When the IP address is to be acquired automatically, change the acquisition value to"Yes".
Page 28
3.2 Setting Basic Communication Information Setting item Default Remark Setting range: 0001 to 65535 (by 100 ms) This specifies the time to wait until all packets are received when an IP packet is split and sent before it passes through the router. Reconfigured IP packet Split IP packets...
3.3 Settings for SNTP server 3.3 Settings for SNTP server These settings are required when the time is synchronized by SNTP while the calendar timer function is being used. ■ List of setting items (SNTP server) Setting item Default Setting method SNTP Address setting Select the setting for SNTP server (Use IPv4 / Use IPv6 / Use IPv4.
Page 30
3.3 Settings for SNTP server Setting item Default Explanation Monthly time: Hours and Set a time for acquisition. Setting range: 0 to 2359 (0:00 to minutes 23:59) WUME-FP7LAN-08...
3.4 Settings for FTP server 3.4 Settings for FTP server Select this to use the FTP server function. ■ List of setting items (FTP server) Setting item Default Setting method Specify FTP server to use Not use Select whether you will use the FTP server function. If authentication by user account and password is not required, Allow anonymous users Not allow...
3.5 Setting of System Connection 3.5 Setting of System Connection 3.5.1 List of setting items System connection is used when using a programming tool via LAN port. ■ List of setting items Setting item Default System Connection - Setting method Operating mode setting MEWTOCOL-COM Select the operation mode MEWTOCOL-COM.
3.5 Setting of System Connection System connection information setting screen ● System connection is aimed at connecting a programming tool. Use this in default settings (MEWTOCOL-COM, Server connection (any destination), Open automatically, TCP/IP). 3.5.2 Setting on the Programming Tool Side For using the system connection, communication settings should be performed on the programming tool FPWIN GR7 side.
Page 34
3.5 Setting of System Connection In the "Connection destination setting" field, input the "IP address" and "Port No". Items Settings IP address IP address set in Basic communication information Port No. Connection 01: 32769 Connection 02: 32770 Connection 03: 32771 Connection 04: 32772 Press the [OK] button.
3.6 Setting of User Connections 3.6 Setting of User Connections 3.6.1 List of Setting Items ■ List of setting items Setting item Default Setting method Select an operating mode (MEWTOCOL-COM / MEWTOCOL7-COM / MODBUS-TCP / Operating mode setting MEWTOCOL-COM MEWTOCOL-DAT / General-purpose communication / MC protocol (QnA compatible 3E frame, binary).
3.6 Setting of User Connections ● Select a desired operation mode. ● In the case of client settings, when specifying the connection to use, only select "Use" for the connection to be used. If connection fails when "Use" is selected, a communication error occurs.
Page 37
3.6 Setting of User Connections Applicable communicatio Setting status of port no. in open processing protocol UDP/I TCP/IP Source Destination node node Multiple settings both for Connection 1 source node port No. and for ● ● destination node port No. Connection 2 Source Destination...
4 Setting and Operation of User Connection 4.1 Configuration Concerning Open Process ...........4-2 4.1.1 Connection of the FP7 CPU Unit ............. 4-2 4.1.2 Specifying connection to use ............4-2 4.1.3 Open Method (Server / Client) ............4-2 4.1.4 Open Method (Automatic/Manual) ........... 4-2 4.1.5 Instructions for Specifying Connection Conditions......
4.1 Configuration Concerning Open Process 4.1 Configuration Concerning Open Process 4.1.1 Connection of the FP7 CPU Unit ■ Operation of the FP7 CPU unit ● The FP7 CPU unit opens a virtual communication line with devices in accordance with user connection information (Open type, communication type, port number, destination unit IP address) in the configuration menu.
4.1 Configuration Concerning Open Process Settings Operation ● For client connection, the unit repeatedly tries to reconnect in a specified interval when connection cannot be established (e.g. the connected device is powered OFF). ● For server connection, the unit sets connection in an open state, and waits for connection from the client.
4.1 Configuration Concerning Open Process Commu Connecti Operating mode Node Open method nication Remark on No. setting method Client connection MEWTOCOL- TCP / IP Open automatically Client connection MEWTOCOL- TCP / IP Open automatically FP7 CPU Server connection MEWTOCOL- TCP / IP No.
Page 43
4.1 Configuration Concerning Open Process Code Explanation Self IP address setting with IPv4SET instruction Destination address setting with CONSET instruction Home IP address (IPv4) setting with tool software SNTP IP address (name), priority DNS server, alternative DNS server and router IP address settings with tool software System connection IP addresses and user connection IP addresses 1 to 9 with tool software...
4.2 Communication Processing 4.2 Communication Processing 4.2.1 Communication Operation ■ Operation following connection ● Once connection is established, PLC and devices can communicate in the respectively specified operation mode. ● By default, the FP7 CPU unit is set to enable slave communication. ●...
4.3 Input/Output Signals Used for Communication 4.3 Input/Output Signals Used for Communication 4.3.1 I/O Allocation ■ Input signal Input Supported Valid operation Name Description signal connection mode Connection 1 Connection 2 ● Turns ON when a connection is established in general-purpose communication mode and data are Connection 10 received.
Page 46
4.3 Input/Output Signals Used for Communication ■ Output signal Output Supported Name Description Valid operation mode signal connection Connection 1 Connection 2 ● Reports completion result when execution of the general-purpose General-Purpose communication send instruction Connection 10 Communication (GPSEND) or the master Connection 11 communication instructions (SEND/ MEWTOCOL-COM...
5 MEWTOCOL Master/Slave Communication 5.1 Types of MEWTOCOL Communication ..........5-2 5.1.1 MEWTOCOL-DAT (Binary Communication) ........5-2 5.1.2 MEWTOCOL-COM (ASCII Communication)........5-2 5.2 List of MEWTOCOL Supported Commands ........5-3 5.2.1 List of MEWTOCOL-DAT Commands..........5-3 5.2.2 List of MEWTOCOL-COM Commands ..........5-3 5.2.3 List of MEWTOCOL7 Commands ............
5.1 Types of MEWTOCOL Communication 5.1 Types of MEWTOCOL Communication 5.1.1 MEWTOCOL-DAT (Binary Communication) ■ Instructions In master communication, PLC has the sending right, and executes communication by sending commands to devices that support MEWTOCOL-DAT, and receiving responses. Messages in accordance with the protocol are automatically generated by PLC.
5.2 List of MEWTOCOL Supported Commands 5.2 List of MEWTOCOL Supported Commands 5.2.1 List of MEWTOCOL-DAT Commands Type of instruction Code Description Write data area Writes data to a data area. Read data area Reads the contents of a data area. Write contact information Turns ON or OFF a contact in the specified area.
5.2 List of MEWTOCOL Supported Commands 5.2.3 List of MEWTOCOL7 Commands ■ Commands to be used Type of instruction Code Description Read data area MMRD Reads the contents of a data area. Write data area MMWT Writes data to a data area. ●...
5.3 MEWTOCOL Master Communication (RECV) 5.3 MEWTOCOL Master Communication (RECV) 5.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 52
5.3 MEWTOCOL Master Communication (RECV) ■ Timing chart Conditions to enable execution of RECV Clear to send master command communication flag Clear to send flag (X90 - X9F): ON (X90 - X9F) Confirm ON Sending flag (Y90 - Y9F): OFF Confirm OFF Sending master Sending flag (Y90 - Y9F):...
5.3 MEWTOCOL Master Communication (RECV) 5.3.2 RECV (MEWTOCOL Master / MODBUS Master) ■ 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 54
5.3 MEWTOCOL Master Communication (RECV) ■ Available bit devices (●: Available) Specification of bit of Bit device Index word device Operand modifier DT.n LD.n (Not (Note 1) (Note 3) (Note 3) ● ● ● ● e 2) ● ● ● ●...
Page 55
5.3 MEWTOCOL Master Communication (RECV) Transfer method Communication Mode Address range MODBUS 0 to 65535 (H FFFF) MEWTOCOL-COM 0 to 999F Bit transfer MEWTOCOL-DAT 0 to 65535 (H FFFF) MODBUS 0 to 65535 (H FFFF) (Note 1) When the receiver is the file register FL, specify a constant. Example) For FL100, specify U100. For the file register, only bank 0 can be specified.
Page 56
5.3 MEWTOCOL Master Communication (RECV) (Note 1) It occurs when an abnormal telegram is received. When there is a format error in the header of an individual protocol, the communication discards the received data and a response reception timeout occurs. (Note 2) It occurs when the communication control I/O relays corresponding to the communication port (master communication clear to send flag, master communication send active flag, master communication...
Page 57
5.3 MEWTOCOL Master Communication (RECV) ● 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 58
5.3 MEWTOCOL Master Communication (RECV) ● Another SEND/RECV instruction cannot be executed for a communication port where master communication is in progress. Confirm that the "master communication sending flags" (YC to YF) are OFF, and execute the instruction. ● A SEND/RECV instruction cannot be executed for a port where slave communication is in progress.
Page 59
5.3 MEWTOCOL Master Communication (RECV) ■ Time chart (in the case of CPU with built-in ET-LAN) RECV instruction executable Master communication conditions clear to send flag Clear to send flag (X90 - X9F): ON Check that the (X90 - X9F) Sending flag (Y90 - Y9F): OFF flag is ON Check that the...
Page 60
5.3 MEWTOCOL Master Communication (RECV) ● As the communication cassette (Ethernet type) has an Ethernet-serial conversion function, the internal interface operates with similar programs as the case of the CPU with built-in SCU. The setting method and programming method are different from those for the CPU with built-in ET- LAN.
5.4 MEWTOCOL Master Communication (SEND) 5.4 MEWTOCOL Master Communication (SEND) 5.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 62
5.4 MEWTOCOL Master Communication (SEND) ■ Timing chart Conditions to enable execution of SEND Clear to send master command communication flag Clear to send flag (X90 - X9F): ON (X90 - X9F) Confirm ON Sending flag (Y90 - Y9F): OFF Confirm OFF Sending master communication flag...
5.4 MEWTOCOL Master Communication (SEND) 5.4.2 SEND (MEWTOCOL Master / MODBUS Master) ■ 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 64
5.4 MEWTOCOL Master Communication (SEND) (Note 1) When the destination unit is FP7, only global devices can be specified. (Local devices cannot be specified.) (Note 2) In the MODBUS mode, this cannot be specified as the receiver. ■ Available bit devices (●: Available) Specification of bit of Bit device Index...
Page 65
5.4 MEWTOCOL Master Communication (SEND) Transfer Communication Amount of sent Note method Mode data n During MEWTOCOL-DAT, contact information write MEWTOCOL-DAT Fixed at 1 bit 52H is used. MODBUS 1 to 2040 Use the force multiple coils command 15. (Note 1) The transfer method varies according to the device type specified for operands [S] and [D2].
Page 66
5.4 MEWTOCOL Master Communication (SEND) Code Description Code Description (Note 1) Reception error (Note 1) It occurs when an abnormal telegram is received. When there is a format error in the header of an individual protocol, the communication discards the received data and a response reception timeout occurs.
Page 67
5.4 MEWTOCOL 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 68
5.4 MEWTOCOL 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 69
5.4 MEWTOCOL 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 70
5.4 MEWTOCOL 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. ●...
6 MODBUS TCP Master/Slave Communication 6.1 MODBUS TCP Format................6-2 6.1.1 MODBUS TCP ................. 6-2 6.1.2 Response Format of MODBUS TCP ..........6-2 6.2 List of MODBUS TCP Supported Commands ........6-4 6.2.1 List of MODBUS Function Codes ............ 6-4 6.3 MODBUS TCP Master Communication (RECV).........6-5 6.3.1 Read Data from an External Device ..........
6.1 MODBUS TCP Format 6.1 MODBUS TCP Format 6.1.1 MODBUS TCP ■ Data structure of MODBUS TCP format ● In MODBUS TCP, an MBAP header is added to function codes and data used in MODBUS- RTU. Function MBAPHeader Data MODBUS TCP format Code 7 bytes n bytes...
Page 73
6.1 MODBUS TCP Format ■ Response in abnormal status If a parameter that cannot be processed is found in a command (except Ethernet communication errors) Field name Description Function code Function code is input in “+80H” format. (Example) "81H" in the case of code 01 “Read Coil state” Data The following error codes are input: 1.
6.2 List of MODBUS TCP Supported Commands 6.2 List of MODBUS TCP Supported Commands 6.2.1 List of MODBUS Function Codes ■ Table of supported commands Code Name (MODBUS) Name Remarks FP7 supported (Reference no.) functions Read Coil Status Read Y and R Coils ●...
6.3 MODBUS TCP Master Communication (RECV) 6.3 MODBUS TCP Master Communication (RECV) 6.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, and receiving responses. Messages in accordance with the protocol are automatically generated by PLC.
Page 76
6.3 MODBUS TCP Master Communication (RECV) ■ Timing chart Conditions to enable execution of RECV Clear to send master command communication flag Clear to send flag (X90 - X9F): ON (X90 - X9F) Confirm ON Sending flag (Y90 - Y9F): OFF Confirm OFF Sending master Sending flag (Y90 - Y9F):...
6.3 MODBUS TCP Master Communication (RECV) 6.3.2 RECV (MEWTOCOL Master / MODBUS Master) ■ 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 78
6.3 MODBUS TCP Master Communication (RECV) ■ Available bit devices (●: Available) Specification of bit of Bit device Index word device Operand modifier DT.n LD.n (Not (Note 1) (Note 3) (Note 3) ● ● ● ● e 2) ● ● ●...
Page 79
6.3 MODBUS TCP Master Communication (RECV) Transfer method Communication Mode Address range MODBUS 0 to 65535 (H FFFF) MEWTOCOL-COM 0 to 999F Bit transfer MEWTOCOL-DAT 0 to 65535 (H FFFF) MODBUS 0 to 65535 (H FFFF) (Note 1) When the receiver is the file register FL, specify a constant. Example) For FL100, specify U100. For the file register, only bank 0 can be specified.
Page 80
6.3 MODBUS TCP Master Communication (RECV) (Note 1) It occurs when an abnormal telegram is received. When there is a format error in the header of an individual protocol, the communication discards the received data and a response reception timeout occurs.
Page 81
6.3 MODBUS TCP Master Communication (RECV) ● 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 82
6.3 MODBUS TCP Master Communication (RECV) ● Another SEND/RECV instruction cannot be executed for a communication port where master communication is in progress. Confirm that the "master communication sending flags" (YC to YF) are OFF, and execute the instruction. ● A SEND/RECV instruction cannot be executed for a port where slave communication is in progress.
Page 83
6.3 MODBUS TCP Master Communication (RECV) ■ Time chart (in the case of CPU with built-in ET-LAN) RECV instruction executable Master communication conditions clear to send flag Clear to send flag (X90 - X9F): ON Check that the (X90 - X9F) Sending flag (Y90 - Y9F): OFF flag is ON Check that the...
6.3 MODBUS TCP Master Communication (RECV) ● As the communication cassette (Ethernet type) has an Ethernet-serial conversion function, the internal interface operates with similar programs as the case of the CPU with built-in SCU. The setting method and programming method are different from those for the CPU with built-in ET- LAN.
Page 85
6.3 MODBUS TCP Master Communication (RECV) ■ List of operands Items Settings Setting range MODBUS function code to be used, and the partner station number Higher byte MODBUS function code (two hexadecimal digits) H1 to H4 (1 to 4) Lower byte Partner station number (two hexadecimal digits) H1 to HFF (1 to 255) MODBUS starting address of the sender in the partner unit...
Page 86
6.3 MODBUS TCP Master Communication (RECV) ■ Outline of operation ● The MODBUS command is sent from the communication port of the unit to send/receive data to/from external devices. ● Data can be read and written by specifying station numbers and memory addresses and executing the SEND and RECV instructions in a user program, because PLC automatically creates messages according to the protocol.
Page 87
6.3 MODBUS TCP Master Communication (RECV) (Note 1) It occurs when an abnormal telegram is received. When there is a format error in the header of an individual protocol, the communication discards the received data and a response reception timeout occurs.
Page 88
6.3 MODBUS TCP 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 89
6.3 MODBUS TCP Master Communication (RECV) COM Port No. Name Description Turns ON during sending data based on SEND/RECV Master instruction. communication sending flag Turns OFF when the sending process is completed. Reports completion result of sending data in genera-purpose communication or master communication.
Page 90
6.3 MODBUS TCP 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 UNITSEL U100...
Page 91
6.3 MODBUS TCP 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. ●...
6.4 MODBUS TCP Master Communication (SEND) 6.4 MODBUS TCP Master Communication (SEND) 6.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, and receiving responses. Messages in accordance with the protocol are automatically generated by PLC.
Page 93
6.4 MODBUS TCP Master Communication (SEND) ■ Timing chart Conditions to enable execution of SEND Clear to send master command communication flag Clear to send flag (X90 - X9F): ON (X90 - X9F) Confirm ON Sending flag (Y90 - Y9F): OFF Confirm OFF Sending master communication flag...
6.4 MODBUS TCP Master Communication (SEND) 6.4.2 SEND (MEWTOCOL Master / MODBUS Master) ■ 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 95
6.4 MODBUS TCP Master Communication (SEND) (Note 1) When the destination unit is FP7, only global devices can be specified. (Local devices cannot be specified.) (Note 2) In the MODBUS mode, this cannot be specified as the receiver. ■ Available bit devices (●: Available) Specification of bit of Bit device Index...
Page 96
6.4 MODBUS TCP Master Communication (SEND) Transfer Communication Amount of sent Note method Mode data n During MEWTOCOL-DAT, contact information write MEWTOCOL-DAT Fixed at 1 bit 52H is used. MODBUS 1 to 2040 Use the force multiple coils command 15. (Note 1) The transfer method varies according to the device type specified for operands [S] and [D2].
Page 97
6.4 MODBUS TCP Master Communication (SEND) Code Description Code Description (Note 1) Reception error (Note 1) It occurs when an abnormal telegram is received. When there is a format error in the header of an individual protocol, the communication discards the received data and a response reception timeout occurs.
Page 98
6.4 MODBUS TCP 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 99
6.4 MODBUS TCP 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 100
6.4 MODBUS TCP 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 101
6.4 MODBUS TCP 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. ●...
6.4 MODBUS TCP Master Communication (SEND) 6.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 103
6.4 MODBUS TCP 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 104
6.4 MODBUS TCP 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 105
6.4 MODBUS TCP Master Communication (SEND) ● This program checks that the master mode is on (XC) and that sending is not in progress in the same port (YC), and then starts up the SEND instruction. ● Using the UNITSEL instruction, specify the slot number (U0) and the COM. port number (U1).
Page 106
6.4 MODBUS TCP 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 107
6.4 MODBUS TCP 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 108
6.4 MODBUS TCP 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.
7 General-Purpose Communication 7.1 Operation of General-Purpose Communication........7-2 7.1.1 Read Data from an External Device ..........7-2 7.1.2 Write Data into an External Device ..........7-2 7.1.3 Transmission Format in General-Purpose Communication ..... 7-3 7.2 Sending Operation ................7-4 7.2.1 Overview of Sending Operation ............7-4 7.2.2 Contents of Sent Data..............
7.1 Operation of General-Purpose Communication 7.1 Operation of General-Purpose Communication 7.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 command.
7.1 Operation of General-Purpose Communication 7.1.3 Transmission Format in General-Purpose Communication ■ Operational difference based on a selected communication type ● Data for transmission / reception in Ethernet communication varies based on setting in “User connection information: Communication type”. Communication Not add a special header Add a special header type...
7.2 Sending Operation 7.2 Sending Operation 7.2.1 Overview of Sending Operation Sending in the general-purpose communication is performed by formulating a data table for sending on the given operation memory, and subsequently executing GPSEND command. External device Send message/data ABCDE 00001 DT100 ・・・・・・・・...
7.2 Sending Operation ■ Timing chart ● Data in the table specified by GPSEND command are sent, in ascending order from lower bytes. ● While data are being sent, the sending general-purpose communication flag for the relevant connection (Y80 - Y8F) turns ON. The flag is turned OFF when sending is completed. ●...
7.2 Sending Operation ■ Sent data table ● Once the sent data are converted into strings data using the SSET command, the No. of characters is saved in the header area. The sent data are saved starting with lower bytes of the subsequent address.
7.2 Sending Operation (Note 4) This indicates a case where the sending port is a LAN port. When a dedicated header is attached, the size is up to 16,372 bytes. ● Specify the connection targeted for communication, using UNITSEL command immediately before GPSEND command.
Page 116
7.2 Sending Operation ■ 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 117
7.2 Sending Operation ● The processing result is stored in the area specified by [D]. ■ Processing ● The slot numbers and communication port numbers specified with UNITSEL instruction are obtained from the system data register (SD). ● This instruction confirms that the general-purpose communication clear to send flag of a specified communication port is ON and the general-purpose communication sending flag is OFF.
Page 118
7.2 Sending Operation pGPSEN Condition in which errors occur GPTRNS GPSEND 16 or more SEND, RECV, GPTRNS, pGPSEND, and pPMSET ● ● instructions are used simultaneously. Communication error ● ● ● (Note 2) Even when the same port is specified and the GPTRNS instruction is executed during the execution of the general-purpose communication transmission, an error does not occur and the result is not updated.
Page 119
7.2 Sending Operation When "Terminator setting" is set to "ETX" or "CR", the maximum amount of sent data is decremented by one. When "Terminator setting" is set to "CR+LF", the maximum amount of sent data is decremented by two. When "Terminator setting" is set to "Time", the maximum amount of sent data is not decremented. (Note 2) For specifying a negative value for [n] (signed integer K), specify SS for the operation units.
Page 120
7.2 Sending Operation ■ Precautions during programming (in the case of SCU) ● If a positive number is specified for [n], the start code and end code that are specified in the configuration menu are automatically added to the data to be sent. Do not include a start code or an end code in the sent data.
Page 121
7.2 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 122
7.2 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 123
7.2 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 124
7.2 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 125
7.2 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.
7.3 Receiving Operation 7.3 Receiving Operation 7.3.1 Overview of Receiving Operation ■ Procedures In the general-purpose communication mode, data received from the partner device are saved in the same reception buffer for each connection. When the GPRECV command is executed in a user program, data in the reception buffer can be copied into a given operation memory.
7.3 Receiving Operation Reception buffer Received data Reception done flag (X70 - X7F): When reception has been done: ON, When copying of received data has Reception done flag been done based on GPRECV (X70 - X7F) command: OFF Execute GPRECV ■...
7.3 Receiving Operation Saves the received No. of bytes. DT200 H32(2) H31 (1) DT201 The received data are saved in ascending order from H34 (5) H33 (3) DT202 lower bytes. H0D ( H35 (4) DT203 If the received No. of bytes is smaller than the area ----- ----- DT204...
Page 129
7.3 Receiving Operation ■ Available devices (●: Available) Real 32-Bit 16-Bit device: Integer numbe device: Index Operan modifie " " U (Note ● ● ● ● ● ● ● (Note ● ● ● ● ● ● ● (Note 1) Always 16-bit data/device, regardless of the specification of operation units [i]. ■...
Page 130
7.3 Receiving Operation ■ Storage method for received data Received number of bytes are stored. DT200 DT201 H32(2) H31(1) Received data are stored in ascending order from lower bytes. DT202 H34(4) H33(3) ----- H35(5) DT203 If the number of received bytes is smaller than the area ----- ----- DT204...
Page 131
7.3 Receiving Operation Start receiving Received data ・・・ ・・・ Reception done flag GPRECV execution condition R100 Execute GPRECV instruction ● When the GPRECV instruction is executed, data are copied to the specified area, and the received flags (X0, X1, X2, X3) are turned OFF. The received flags (X0, X1, X2, X3) are turned OFF when I/O refresh is executed at the start of the following scans.
Page 132
7.3 Receiving Operation ● When the general-purpose communication received flag is ON for the targeted COM port, execute GPRECV. ● When multiplex reception is in progress, the received flag remains ON after the received data have been copied using the GPRECV instruction. The received data cannot be copied at the leading edge of the reception done signal.
Page 133
7.3 Receiving Operation Receive buffer Received data Reception done flag (X70 - X7F): Reception done: ON, Reception done Received data copy done using flag (X70 - X7F) GPRECV instruction: OFF Execute GPRECV ■ I/O allocation (in the case of CPU with built-in ET-LAN) I/O allocations Name Description...
Page 135
8 Specifications 8.1 Specifications of CPU Unit LAN Port Communication Function ..8-2 8.2 MEWTOCOL-DAT Format ..............8-3 8.2.1 MEWTOCOL-DAT Command Format in LAN Command Format ..8-3 8.2.2 MEWTOCOL-DAT Command / Response Format......8-3 8.3 MEWTOCOL-COM Format..............8-6 8.3.1 MEWTOCOL-COM Command Format in LAN Communication..8-6 8.3.2 MEWTOCOL-COM Command Format ..........
8.1 Specifications of CPU Unit LAN Port Communication Function 8.1 Specifications of CPU Unit LAN Port Communication Function ■ LAN port Items Description Interface 100BASE-TX / 10BASE-T Baud rate (Note 1) 100 Mbps, 10 Mbps auto-negotiation Transmission system Baseband Max. segment length (Note 2) 100 m Communication cable...
8.2 MEWTOCOL-DAT Format 8.2 MEWTOCOL-DAT Format 8.2.1 MEWTOCOL-DAT Command Format in LAN Command Format ● In data sent/received in LAN communication, a header is attached to the MEWTOCOL-DAT command data part, or the MEWTOCOL-DAT response data part, as indicated in the data structure below.
Page 138
8.2 MEWTOCOL-DAT Format Command code Header Area code Command message Data 1 Response code Header End code (FFH: Normal code) Normal response message Data 2 Response code Header End code (Other than FFH: Error code) Error response message ■ Data content 1.
Page 139
8.2 MEWTOCOL-DAT Format Command Area code ×16 ×16 ×16 ×16 ×16 ×16 ×16 ×16 (lower word) (higher word) (lower word) (higher word) Response in a normal state (Read OK) ×16 ×16 ×16 ×16 ×16 ×16 ×16 ×16 (lower word) (higher word) (lower word) (higher word) No.
8.3 MEWTOCOL-COM Format 8.3 MEWTOCOL-COM Format 8.3.1 MEWTOCOL-COM Command Format in LAN Communication ■ Format of command/response message ● Data to be sent/received in LAN communication vary based on settings for user connection information: MEWTOCOL communication type. MEWTOCOL communication Format of command and response type setting Only send the MEWTOCOL-COM command data part, or the Not connect with FP2-ET-LAN...
8.3 MEWTOCOL-COM Format 8.3.2 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 “%”.
8.3 MEWTOCOL-COM Format ● BCC starts from the header and checks each character in sequence, using the exclusive OR operation, and replaces the final result with character text (ASCII code). It is normally part of the calculation program and is created automatically. ●...
Page 143
8.3 MEWTOCOL-COM Format ● 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) ● Messages must always end with a “CR” (ASCII code: H0D). ●...
8.4 MEWTOCOL7-COM Format 8.4 MEWTOCOL7-COM Format 8.4.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.
8.4 MEWTOCOL7-COM Format ● When the PLC receives a command with "EEE" specified for the station number, it will respond regardless of the station number setting. If “EEE” is specified in the 1:1 communication, communication can be performed regardless of the unit number setting of the partner PLC. (3) Frame No.
Page 146
8.4 MEWTOCOL7-COM Format (1) Header (start code) ● A “>” (ASCII code: H3E) must be at the beginning of a message. ● The response must start with the same header (start code). (2) Station no. This is the station no. of the PLC that processed the command. (3) Frame No.
Page 147
Record of Changes Manual number can be found at the bottom of the cover page. Date Manual No. Record of Changes Dec. 2012 Mar. 2013 WUME-FP7LAN-01 1st Edition ● Errors corrected Apr. 2018 WUME-FP7LAN-02 2nd Edition ● Added "Ethernet Security" precautions ●...
Page 148
[Scope of warranty] In the event that Panasonic Industry Co., Ltd. confirms any failures or defects of the Products by reasons solely attributable to Panasonic Industry Co., Ltd. during the warranty period, Panasonic Industry Co., Ltd. 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.
Need help?
Do you have a question about the FP7 Series and is the answer not in the manual?
Questions and answers