Table of Contents

Advertisement

Quick Links

Advertisement

Table of Contents
loading

Summary of Contents for Panasonic AF7CPS Series

  • Page 2 -This manual and its contents are copyrighted. -You may not copy this manual, in whole or part, without written consent of Panasonic Industrial Devices SUNX Co., Ltd. -Windows is a registered trademark of Microsoft Corporation in the United States and other countries.
  • Page 3 Introduction Thank you for buying a Panasonic product. Before you use the product, please carefully read the installation instructions and the users manual, and understand their contents in detail to use the product properly. Types of Manual  There are different types of users manual for the FP7 series, as listed below. Please refer to a relevant manual for the unit and purpose of your use.
  • Page 4: Table Of Contents

    Table of Contents Table of Contents 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 AFP7CCET1 Port Specifications.............1-3 1.1.3 Types of communication cassette............1-3 1.1.4 Configurator WD..................1-3 Available Function For Each COM Port ..........
  • Page 5 Table of Contents 4. Setting Communication Conditions ........4-1 Settings Using FPWIN GR7..............4-2 Specified using Configurator WD............4-4 4.2.1 Start Configurator WD and Serach units..........4-4 4.2.2 IP Address Settings.................4-5 4.2.3 Communication Settings .................4-6 4.2.4 Option Settings..................4-8 4.2.5 Target IP address for unit number Setting ..........4-10 4.2.6 Initialization ot the environment setting of the cassette ......4-11 Example of User connection (MEWTOCOL) ........
  • Page 6 Table of Contents 5.3.3 SEND Instruction (When MEWTOCOL-COM is Used)......5-8 6. General-Purpose Communication ........6-1 Operation of General-Purpose Communication ........6-2 6.1.1 Read Data from an External Device............6-2 6.1.2 Write Data into an External Device ............6-2 Sending Operation ................. 6-3 6.2.1 Overview of Sending Operation ..............6-3 6.2.2...
  • Page 7: Communication Functions Of Cpu Unit

    Communication Functions of CPU Unit...
  • Page 8: Communication Ports Of Cpu Unit

    Communication Functions of CPU Unit 1.1 Communication Ports of CPU Unit 1.1.1 Types and Purposes of Communication Ports  Communication Port of CPU Unit (In the above figure, a communication cassette (Ethernet type) is attached to the COM.1 and COM.2 ports.) ...
  • Page 9: Afp7Ccet1 Port Specifications

    1.1.4 Configurator WD  The communication tool software “Configurator WD” is required to set Ethernet communication for the AFP7CCET1  The Configurator WD can be downloaded from our website free of charge. http://industrial.panasonic.com/ac/e/dl_center/software/ (Member registration is required. Free of charge)
  • Page 10: Available Function For Each Com Port

    Communication Functions of CPU Unit 1.2 Available Function For Each COM Port 1.2.1 Applications that can be Used in Each Port  Mode MEWTOCOL7-COM General MEWTOCOL-COM Type of connection COM port Communication Master Slave User connection COM.1 ○(Note) ● ● System connection COM.2 ●...
  • Page 11: Overview Of Communication Functions

    1.3 Overview of Communication Functions 1.3 Overview of Communication Functions 1.3.1 MEWTOCOL Master/Slave Communication  Overview of function  Execute communication using MEWTOCOL-COM, a communication protocol used by our PLC.  In master communication, PLC executes communication by sending commands to devices that support MEWTOCOL, and receiving responses.
  • Page 12: General-Purpose Communication

    Communication Functions of CPU Unit 1.3.2 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 13: Terms

    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.
  • Page 14 Communication Functions of CPU Unit...
  • Page 15: Installation And Wiring

    Installation and Wiring...
  • Page 16: Attaching A Communication Cassette

    Installation and Wiring 2.1 Attaching a Communication Cassette 2.1.1 Setting of Switches  Two switches are mounted on the circuit board of communication cassette AFP7CCET1.  SW1 is used to initialize comunication condtions. SW2 is reserved. Please turn OFF during nomal use.
  • Page 17: Installation Environment And Wiring For Lan Ports

    2.2 Installation Environment and Wiring for LAN Ports 2.2 Installation Environment and Wiring for LAN Ports 2.2.1 Before Installation and Wiring  Noise resistance of Ethernet The Ethernet is a network used in offices and buildings, where there is comparatively little noise.
  • Page 18: Wiring The Lan Port

    Installation and Wiring 2.3 Wiring the LAN Port  Selection of UTP cables  Use Category 5 UTP cable.  It is recommended to use a UTP cable of 10 m or shorter, taking account of noise resistance.  In an environment where noise may occur, attach a ferrite core near the CPU unit on the UTP cable.
  • Page 19: I/O Number Allocation

    I/O Number Allocation...
  • Page 20: Input/Output Signals Used For Communication

    I/O Number Allocation 3.1 Input/Output Signals Used for Communication 3.1.1 Occupied Area for Communication cassette (Ethernet type) A fixed area is allocated as follows.  List of occupied words and I/O points by unit Occupied words (occupied I/O points) Unit Type Model number Input Output...
  • Page 21 3.1 Input/Output Signals Used for Communication  Input signal (COM.1 port User connection, COM.2 port for System connection) Effective Communica Input signal Name Description operation tion port mode For COM.2 0: During start process Start status flag Normally Port 1: Start process done 0: Link Up For COM.2 Link status flag...
  • Page 22 I/O Number Allocation  Output signal (COM.1port: User connection use) Output Communica Effective Name Description signal tion port operation mode Reports the results of sending in master MEWTOCOL communication or general-purpose For COM.1 Sending General- communication. Port done result purpose Normal completion: 0, Abnormal completion: 1 communication Y1 - Y7...
  • Page 23: Setting Communication Conditions

    Setting Communication Conditions...
  • Page 24: Settings Using Fpwin Gr7

    Setting Communication Conditions 4.1 Settings Using FPWIN GR7  Set the "Communication Mode", "Station no." and others in the FPWIN GR7.  These configuration will downloaded to the PLC with Programs as a Project. PROCEDURE Select "Options" > "FP7 Configuration" from the menu bar, The "FP7 Configuration"...
  • Page 25 4.1 Settings Using FPWIN GR7  Specified using FPWINGR7 (COM.1port) Permissible range for Parameter Description AFPCCET1 MEWTOCOL-COM Select the mode MEWTOCOL or General-purpose Communication MEWTOCOL-7 Communication to match the settings of Configurator mode General-purpose Communication 1to99 (MEWTOCOL-COM) It is not available for the General-purpose Station No.
  • Page 26: Specified Using Configurator Wd

    Setting Communication Conditions 4.2 Specified using Configurator WD 4.2.1 Start Configurator WD and Serach units  The communication tool software “Configurator WD” is required to set Ethernet communication for the Communication cassette AFP7CCET1.  The setting is saved in the Communication cassette AFP7CCET1. PROCEDURE 1.
  • Page 27: Ip Address Settings

    4.2 Specified using Configurator WD 4.2.2 IP Address Settings Set the IP address in the "Setting IP Address" dialogbox of Configurator WD. PROCEDURE 1. Activate unit name, when connected unit is indicated. The unit name will be highlighted. 2. Select "Edit" > "Setting IP Address" from the menu bar. The "IP AddressSetting"...
  • Page 28: Communication Settings

    Setting Communication Conditions 4.2.3 Communication Settings Set the parameters for the User connection in the "Communication Setting" dialogbox of Configurator WD. PROCEDURE 1. Activate unit name, when connected unit is indicated. The unit name will be highlighted. 2. Select "Edit" > "Communication Setting" from the menu bar. "Communication Setting"...
  • Page 29 4.2 Specified using Configurator WD  Communication Settings Parameters Description Default Protocol Mode of Communication cassette AFP7 CCET1 Protocol Mode Select TCP or UDP. Action Mode of Communication cassette AFP7 CCET1 Action Mode Server Mode Select Client Mode or Server Mode. Communication Mode of Communication cassette AFP7 CCET1.
  • Page 30: Option Settings

    Setting Communication Conditions 4.2.4 Option Settings Set the parameters in the option dialogbox of Configurator WD for the User connection or System connection. PROCEDURE 1. Activate unit name, when connected unit is indicated. The unit name will be highlighted. 2. Select "Edit" > "Communication Setting" from the menu bar. "Communication Setting"...
  • Page 31 4.2 Specified using Configurator WD  Option Setting Parameter Description Default This is the code for the AFP7 CCET1 to confirm the end of the message (data) to be received from the FP7 CPU unit. End code CR, CR+LF or NONE can be selected. Reception continues until the end of the message (CR, CR+LF) will be received.
  • Page 32: Target Ip Address For Unit Number Setting

    Setting Communication Conditions 4.2.5 Target IP address for unit number Setting "Target IP address for unit number Setting" is available, in case of the following condtions.  Protocol Mode:TCP or UDP (UNICAST)  Action Mode:Client Mode  Communication Mode:MEWTOCOL PROCEDURE 1.
  • Page 33: Initialization Ot The Environment Setting Of The Cassette

    4.2 Specified using Configurator WD 4.2.6 Initialization ot the environment setting of the cassette  The Ethernet communication environment setting of the AFP7CCET1 can be initialized. PROCEDURE 1. Turn on the SW1 at the back of the AFP7CCET1. 2. Install the AFP7CCET1 on the FP7 CPU unit and turn on the power supply. 3.
  • Page 34: Example Of User Connection (Mewtocol)

    Setting Communication Conditions 4.3 Example of User connection (MEWTOCOL) 4.3.1 Specified using FPWINGR7  Set the communication mode and station no. into the field built-in SCU >COM.1 settings in the FPWINGR7. Setting items for COM.1 port (AFP7CCET1) Setting item Setting descripyion Communication Mode MEWTOCOL-COM Station No.
  • Page 35 4.3 Example of User connection (MEWTOCOL) KEY POINTS  Connection request will be performed when data transfer is executed. Please execute master communication command after confirming the connection status flag (X30) is OFF. When a connection successfully established, connection status flag (X30) turns ON. If a connection failed, connection status flag (X30) stays OFF and TCP client connection failure flag (X32) turns ON.
  • Page 36: Example Of Mewtocol Master Communication

    Setting Communication Conditions 4.3.3 Example of MEWTOCOL Master Communication The following example shows how to set the parameters, for the master communication from home station. 1) MEWTOCOL Master Communicationin the TCP mode Parameter Example Dialogbox Field Home Slave1 Slave2 IP Address 192.168.1.5 192.168.1.11 192.168.1.12...
  • Page 37 4.3 Example of User connection (MEWTOCOL) 2) MEWTOCOL Master Communicationin the UDP UNICAST mode Parameter Example Dialogbox Field Home Slave1 Slave2 IP Address 192.168.1.5 192.168.1.11 192.168.1.12 IP Address Subnet Mask 255.255.255.0 255.255.255.0 255.255.255.0 Default Gateway 192.168.1.1 192.168.1.1 192.168.1.1 Protocol Mode Action Mode Client Mode Server Mode...
  • Page 38: Example Of User Connection (General Communication)

    Setting Communication Conditions 4.4 Example of User connection (General Communication) 4.4.1 Specified using FPWINGR7  Set the communication mode and format into the field built-in SCU >COM.1 settings in the FPWINGR7. Setting of COM.1port (AFP7CCET1) Parameter Setting description Communication mode General Communication Terminator setting CR, CR+LF, Time...
  • Page 39 4.4 Example of User connection (General Communication)  TCP Server Mode Parameter Default Protocol Mode Action Mode Server Mode Communication General Mode Communication Destination IP 192.168.1.100 Address Source Port No. 9095 Timeout 15 sec  UDP mode Parameter Default Protocol Mode Action Mode Client Mode Communication...
  • Page 40: Example Of System Connection

    Setting Communication Conditions 4.5 Example of System connection 4.5.1 Specified using Configuration WD  System connection is used, when the tool software e.g. FPWIN GR7 is used via LAN port.  Settings are necessary in the IP Address dialogbox and Option dialogbox for the System connection ...
  • Page 41: Specified Using Fpwin Gr7

    4.5 Example of System connection 4.5.2 Specified using FPWIN GR7  Please specify the following settings to connect with PLC via Communication cassette AFP7CCET1 using tool software FPWINGR7. PROCEDURE 1. Select "Online" > "Communications settings" from the menu bar. "Communication Settings" dialogbox will open. 2.
  • Page 42 Setting Communication Conditions 4-20...
  • Page 43: Mewtocol Master/Slave Communication

    MEWTOCOL Master/Slave Communication...
  • Page 44: List Of Mewtocol / Mewtocol7 Supporting Commands

    MEWTOCOL Master/Slave Communication 5.1 List of MEWTOCOL / MEWTOCOL7 Supporting Commands 5.1.1 List of MEWTOCOL Commands  Commands to be used Type of instruction Code Description Reads ON/OFF status of contact. (RCS) - Specifies only one point. Read contact area (RCP) - Specifies multiple contacts.
  • Page 45: Mewtocol-Com Master Communication (Recv)

    5.2 MEWTOCOL-COM Master Communication (RECV) 5.2 MEWTOCOL-COM Master Communication (RECV) 5.2.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 46 MEWTOCOL Master/Slave Communication  Timing chart Master communication Conditions to enable execution of RECV Clear to send flag instruction (XC) Clear to send flag (XC): ON Confirm ON Sending active flag (YC): OFF Master communication Confirm OFF Sending active flag Sending active flag (YC): (YC) Sending data: ON, Sending done: OFF...
  • Page 47: Precaution When Using Tcp Client Mode

    5.2 MEWTOCOL-COM Master Communication (RECV) 5.2.2 Precaution When Using TCP Client Mode  Connection request will be performed when data transfer is executed. Please execute master communication command after confirming the connection status flag (X30) is OFF.  When a connection successfully established, connection status flag (X30) turns ON. If a connection failed, connection status flag (X30) stays OFF and TCP client connection failure flag (X32) turns ON.
  • Page 48: Mewtocol-Com Master Communication (Send)

    MEWTOCOL Master/Slave Communication 5.3 MEWTOCOL-COM Master Communication (SEND) 5.3.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. In the user program, reading and writing can be done simply by specifying the station no.
  • Page 49 5.3 MEWTOCOL-COM Master Communication (SEND)  Timing chart Master communication Conditions to enable execution of SEND Clear to send flag instruction (XC) Confirm ON Clear to send flag (XC): ON Sending active flag (YC): OFF Confirm OFF Master communication Sending active flag Sending active flag (YC): (YC) Sending data: ON, Sending done: OFF...
  • Page 50: Precautions When Using Tcp Client Mode

    MEWTOCOL Master/Slave Communication 5.3.2 Precautions When Using TCP Client Mode  Connection request will be performed when data transfer is executed. Please execute master communication command after confirming the connection status flag (X30) is OFF.  When a connection successfully established, connection status flag (X30) turns ON. If a connection failed, connection status flag (X30) stays OFF and TCP client connection failure flag (X32) turns ON.
  • Page 51: General-Purpose Communication

    General-Purpose Communication...
  • Page 52: Operation Of General-Purpose Communication

    General-Purpose Communication 6.1 Operation of General-Purpose Communication 6.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 53: Sending Operation

    6.2 Sending Operation 6.2 Sending Operation 6.2.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. External device Send message/data ABCDE (CR) DT100 00001...
  • Page 54 General-Purpose Communication  Timing chart  Data in the table [S] specified by GPSEND instruction are sent, in ascending order from lower bytes.  During the sending process, the "General-purpose communication Sending active flag" (Y8) turns ON. The flag is turned OFF when sending is completed. (The flag does not turn off right after the execution of the instruction.
  • Page 55: Contents Of Sent Data

    6.2 Sending Operation 6.2.2 Contents of Sent Data Strings data sent by the GPSEND instruction are converted into ASCII text and saved in a given data register.  Sent data table  Once the sent data are converted into strings data using the SSET instruction, the No. of characters is saved in the header area.
  • Page 56: Gpsend (General-Purpose Communication Sending Instruction)

    General-Purpose Communication 6.2.3 GPSEND (General-Purpose Communication Sending Instruction)  Instruction format Items Settings Setting range Specify the operation unit. US / SS (Note 1) Specify the header of the source node data area. (Note 2) 1 to 4094, -1 to -4096 Specify the No.
  • Page 57: Precautions On Sending Data

    6.2 Sending Operation 6.2.4 Precautions on Sending Data  Procedures when the end code is not added in the sending process When you do not wish to add the terminator (end code) in the sending process, use a negative value for specifying the No. of sent bytes. R101 R100 GPSEND execution conditions...
  • Page 58: Receiving Operation

    General-Purpose Communication 6.3 Receiving Operation 6.3.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 59 6.3 Receiving Operation  Timing chart  Data received from an external device are saved in the same reception buffer.  When the terminator (end code) is received, the “reception done” flag (X0) turns on. Subsequently, the following data are saved in the buffer upon reception. 8 data can be received consecutively.
  • Page 60: Contents Of Received Data

    General-Purpose Communication 6.3.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 61: Operations Of The "Reception Done Copy" Flag And Multiplex Reception

    6.3 Receiving Operation 6.3.4 Operations of the "Reception done copy" flag and multiplex reception  Operation and function of the "reception done copy" flag (X4)  The "reception done copy" flag (X4) 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 62: Gprecv (General-Purpose Communication Receiving Instruction)

    General-Purpose Communication 6.3.5 GPRECV (General-Purpose Communication Receiving Instruction)  Instruction format Setting Settings Setting range items Specify the operation unit. US / SS Specify the initial address of the data area to save the received data. (Note 1) Specify the final address of the data area to save the received data. (Note 2) (Note 1): Device that can be specified for D1 are: WX, WY, WR, WL, DT, LD.
  • Page 63: Sending/Receiving Flag Operation

    6.4 Sending/Receiving Flag Operation 6.4 Sending/Receiving Flag Operation 6.4.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: Data received from external device Stored receive bu ffer...
  • Page 64: Start Code "Stx", End Code "Etx

    General-Purpose Communication  After GPSEND instruction is executed, dual sending to the same port is not possible until the "sending General-purpose communication Sending active flag" (Y8) turns OFF. The "General-purpose communication Sending active flag" (Y8) turns OFF in instruction execution in the next scan or later following completion of data sending. 6.4.2 Start Code "STX", End Code "ETX": Receiving process: Reception done flag and GPRECV instruction are related as follows:...
  • Page 65 6.4 Sending/Receiving Flag Operation KEY POINTS  The data without the Code STX at the reception is saved in the reception buffer, and the “reception done” flag turns on when the end code is received.  However, if the code STX is added in the middle of the data, the data are saved from the beginning of the reception buffer.
  • Page 66 General-Purpose Communication 6-16...
  • Page 67: Specifications

    Specifications...
  • Page 68: Specifications

    Specifications 7.1 Specifications 7.1.1 Communication  COM.1 port (User connection) Communication port Setting range Default 1 - 99 (MEWTOCOL-COM) Station no. 1 - 999 (MEWTOCOL7-COM) Baud rate 230400 bps 230400 Data length 8 bits 8 bits Parity Stop bit 1 bit 1 bit Communicati on format...
  • Page 69 7.1 Specifications  Communication cassette AFP7CCET1 Items Description Interface 100BASE-TX / 10BASE-T Baud rate 100 Mbps, 10 Mbps auto-negotiation (Note 1) Transmission Baseband system Max. segment 100 m (Note 2) length Communication UTP (Category 5) cable 100BASE-TX: 2 segments Max. distance between nodes 10BASE-T: 5 segments No.
  • Page 70: Mewtocol-Com Format

    Specifications 7.2 MEWTOCOL-COM Format 7.2.1 MEWTOCOL-COM Command Format  Command message (1) Header (2) Station no. of destination (01 to 99, decimal) (3) Text (Content depends on type of command) (4) Check code (BCC, hexadecimal) (5) Terminator < (Two- One- digit) digit) Target that reads the value (internal relay R1)
  • Page 71 7.2 MEWTOCOL-COM Format NOTE  The method for writing text segments in the message varies depending on the type of command.  When the message to be sent contains a large number of characters, send the command divided in several times. ...
  • Page 72: Mewtocol-Com Response Format

    Specifications 7.2.2 MEWTOCOL-COM Response Format  Response message After PLC receives a command, it returns the processing result. (1) Header (start code)  A “%” (ASCII code: H25) or “<” (ASCII code: H3C) must be at the beginning of a message. ...
  • Page 73 7.2 MEWTOCOL-COM Format NOTE  If no response is returned, the communication format may not be correct, or the command may not have arrived at the PLC, or the PLC may not be functioning. Check to make sure all of the communication specifications (e.g.
  • Page 74: Mewtocol7-Com Format

    Specifications 7.3 MEWTOCOL7-COM Format 7.3.1 MEWTOCOL7-COM Command Format  Command message (1) Header (start code) (3) Frame No. (2) Station no. of the receiver (4) Text (to be specified in accordance with the type of command) > Command name Command code value Command ID code (6) Terminator (end code) (5) Check code (16bit CRC (CCITT) )
  • Page 75 7.3 MEWTOCOL7-COM Format (5) Check code  This is a CRC (Cyclic Redundancy Check) to detect errors using a generating polynomial of hamming codes.  This should be created so that it targets all of the text data from the header to the last text character.
  • Page 76: Mewtocol7 Response Format

    Specifications 7.3.2 MEWTOCOL7 Response Format  Response message (1) Header (start code) (2) Station no. of the receiver (3) Frame No. (4) Text (to be specified in accordance with the type of command) > Command name (data area read) Command code value Response code (normal status: $, abnormal status: !) Data (normal status: read data, abnormal Terminator...
  • Page 77 7.3 MEWTOCOL7-COM Format (5) Check code  This is a CRC (Cyclic Redundancy Check) to detect errors using a generating polynomial of hamming codes.  This should be created so that it targets all of the text data from the header to the last text character.
  • Page 78 Specifications 7-12...
  • Page 79 Record of changes Manual No. Date Record of Changes WUME-FP7CCET-01 DEC.2013 First Edition...

Table of Contents