Download Print this page

Panasonic FP7 User Manual

Cpu unit. com port communication.
Hide thumbs
Also See for FP7
User manual - 275 pages
User manual - 61 pages
User manual - 147 pages

Advertisement

PROGRAMMABLE CONTROLLER
FP7 CPU Unit
User's Manual
COM port communication
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com

Advertisement

   Also See for Panasonic FP7

   Related Manuals for Panasonic FP7

   Summary of Contents for Panasonic FP7

  • Page 1

    PROGRAMMABLE CONTROLLER FP7 CPU Unit User's Manual COM port communication Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 2

    It could lead to an electric shock. Copyright / Trademarks -This manual and its contents are copyrighted. Panasonic -You may not copy this manual, in whole or part, without written consent of Industrial Devices SUNX Co., Ltd.

  • Page 3

    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.  The manuals can be downloaded on our website.

  • 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 Communication Functions Supported by Each Port....... 1-3 1.2.1 Applications that can be Used in Each Port ..........1-3 1.2.2 Types of Communication Cassette ............1-3 Overview of Communication Functions..........

  • Page 5

    Table of Contents 2.4.3 Communication Cassette AFP7CCM1 (RS-422 / RS-485, 1-Channel Insulated Type) ..................2-12 2.4.4 Communication Cassette AFP7CCM2 (RS-422 / RS-485, 2-Channel Insulated Type) ..................2-15 2.4.5 Communication Cassette AFP7CCS1M1 (RS-232C 1-Channel + RS-485 1-Channel Insulated Type)..............2-19 3. Setting and Confirming Communication Conditions ..3-1 Setting Applications and Communication Conditions ......

  • Page 6

    Table of Contents 4.4.1 Response Time of 1 Transmission Cycle..........4-11 4.4.2 Response Time When There is a Station Yet to be Added ....4-13 5. MEWTOCOL Master/Slave Communication...... 5-1 Configuration ..................5-2 5.1.1 Setting Communication Conditions ............5-2 List of MEWTOCOL / MEWTOCOL7 Supporting Commands....5-3 5.2.1 List of MEWTOCOL Commands .............5-3 5.2.2...

  • Page 7

    Table of Contents 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 Configuration ..................7-3 7.2.1 Setting Communication Conditions............7-3 Sending Operation.................. 7-4 7.3.1 Overview of Sending Operation ..............7-4 7.3.2 Contents of Sent Data................7-6 7.3.3...

  • Page 8

    Table of Contents MEWTOCOL7-COM Format ..............8-9 8.3.1 MEWTOCOL7-COM Command Format ..........8-9 8.3.2 MEWTOCOL7 Response Format ............8-11 MODBUS RTU Format................. 8-13 8.4.1 MODBUS RTU Command Format ............8-13 8.4.2 MODBUS RTU Response Format ............8-14 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 9: Communication Functions Of Cpu Unit

    Communication Functions of CPU Unit Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 10: Communication Ports Of Cpu Unit

    This is equipped to a standard model of CPU unit. This is used when connecting tool software. REFERENCE  For details of communication methods using the LAN port, please see the FP7 CPU Unit (LAN Port Communication). Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 11: Communication Functions Supported By Each Port

    1.2 Communication Functions Supported by Each Port 1.2 Communication Functions Supported by Each Port 1.2.1 Applications that can be Used in Each Port  Unit type MEWTOCOL7-COM MODBUS-RTU Communication General-purpose MEWTOCOL-COM PLC link port communication Master Slave Master Slave ○ (Note 1) ●...

  • Page 12: Overview Of Communication Functions

    Communication Functions of CPU Unit 1.3 Overview of Communication Functions 1.3.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 13: Mewtocol Master/slave Communication

    1.3 Overview of Communication Functions 1.3.2 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. Messages in accordance with the protocol are automatically generated by PLC.

  • Page 14: Modbus Rtu Master/slave Communication

    Communication Functions of CPU Unit 1.3.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 15: General-purpose Communication

    1.3 Overview of Communication Functions 1.3.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 16

    Communication Functions of CPU Unit Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 17: Wiring The Com. Port

    Wiring the COM. Port Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 18: Attaching A Communication Cassette

    Wiring the COM. Port 2.1 Attaching a Communication Cassette 2.1.1 Attachment Instructions When an optional Communication Cassette is to be used, attach it in the following procedures. PROCEDURE 1. Using a flathead screwdriver, remove the cover on the side of the CPU unit. You will find four toggles.

  • Page 19: Wiring Of Com Port Terminal Block

    2.2 Wiring of COM Port Terminal Block 2.2 Wiring of COM Port Terminal Block 2.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 20: Applicable Cable

    Wiring the COM. Port 2.2.2 Applicable Cable Use a cable as prescribed below.  Suitable wires (strand wire): For RS-232C / RS-422 communication Conductor Insulator Sample Classifi- Cross-sectional Cable Resistance appropriate Thick- cation view diam. Size value Material cable ness (at 20°C) Cover Shield...

  • Page 21: Wiring Method

    2.2 Wiring of COM Port Terminal Block 2.2.3 Wiring Method  Wiring method (1) Remove a portion of the wire’s insulation. (2) Insert wire into terminal hole until it stops. Tighten screw clockwise to fix wire in place. (The tightening torque: 0.22 to 0.25 N·m (2.3 to 2.5 kgf·cm)) ...

  • Page 22: Wiring For Cpu Unit (gt Power Supply And Com0 Port)

    Wiring the COM. Port 2.3 Wiring for CPU Unit (GT Power Supply and COM0 Port) 2.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 23

    2.3 Wiring for CPU Unit (GT Power Supply and COM0 Port)  Example of wiring (in the case of GT02 5V DC type) FP7 CPU unit GT02 / GT02L series COM.0 port terminal / GT power supply terminal 5V DC type...

  • Page 24: Wiring For Communication Cassettes Com1 And Com2 Ports

    Wiring the COM. Port 2.4 Wiring for Communication Cassettes COM1 and COM2 ports 2.4.1 Communication Cassette AFP7CCS1 (RS-232C, 1-Channel Insulated Type)  Terminal layout Terminal LED part Terminal Functions Signal Ports that can be Symbol part that can be direction allocated Symbol allocated...

  • Page 25: Communication Cassette Afp7ccs2 (rs-232c, 2-channel Insulated Type)

    2.4 Wiring for Communication Cassettes COM1 and COM2 ports 2.4.2 Communication Cassette AFP7CCS2 (RS-232C, 2-channel insulated type)  Setting of Application Switch Applications for use can be switched using a switch on the backplane for Communication Cassette AFP7CCS2. Settings can be confirmed with LED lamps at the front of the cassette. 3-wire 2-channel RS-232C 5-wire 1-channel RS-232C (RS/CS controlled) Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 26

    Wiring the COM. Port  Terminal layout (in the setting of 3-wire 2-channel RS-232C) Terminal LED part Terminal Functions Signal Ports that can be Symbol part that can be direction allocated Symbol allocated in the software PLC → SD: Sent Data External device PLC ←...

  • Page 27

    2.4 Wiring for Communication Cassettes COM1 and COM2 ports  Terminal layout (in the setting of 5-wire 1-channel RS-232C RS/CS controlled) Terminal LED part Terminal Functions Signal Ports that can be Symbol part that can be direction allocated Symbol allocated in the software PLC →...

  • Page 28: Communication Cassette Afp7ccm1 (rs-422 / Rs-485, 1-channel Insulated Type)

    Wiring the COM. Port 2.4.3 Communication Cassette AFP7CCM1 (RS-422 / RS-485, 1-Channel Insulated Type)  Setting of application switch Applications for use can be switched using a switch on the backplane for Communication Cassette AFP7CCM1. Settings can be confirmed with LED lamps at the front of the cassette. ...

  • Page 29

    2.4 Wiring for Communication Cassettes COM1 and COM2 ports  Terminal layout (in the setting of RS-485) Terminal LED part Terminal Functions that can Signal Ports that can be Symbol part be allocated direction allocated Symbol in the software + / S Transmission line (+) - / S Transmission line (-)

  • Page 30

    Wiring the COM. Port  Terminal layout (in the setting of RS-422) Terminal LED part Terminal Functions that Signal Ports that can be Symbol part can be direction allocated Symbol allocated in the software PLC → + / S Sent Data (+) External device PLC →...

  • Page 31: Communication Cassette Afp7ccm2 (rs-422 / Rs-485, 2-channel Insulated Type)

    2.4 Wiring for Communication Cassettes COM1 and COM2 ports 2.4.4 Communication Cassette AFP7CCM2 (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 AFP7CCM2. Settings can be confirmed with LED lamps at the front of the cassette. ...

  • Page 32

    Wiring the COM. Port  Terminal layout (in the setting of RS-485) Terminal LED part Terminal Functions that can Signal Ports that can Symbol part be allocated direction be allocated Symbol in the software + / S Transmission line (+) - / S Transmission line (-) COM.1...

  • Page 33

    2.4 Wiring for Communication Cassettes COM1 and COM2 ports  Example of wiring (in the setting of RS-485) AFP7CCM2 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 34

    Wiring the COM. Port  Terminal layout (in the setting of RS-422) Terminal LED part Terminal Functions that Signal direction Ports that can be Symbol part can be allocated allocated Symbol in the software PLC → External device + / S Sent Data (+) PLC →...

  • Page 35: Communication Cassette Afp7ccs1m1

    2.4 Wiring for Communication Cassettes COM1 and COM2 ports 2.4.5 Communication Cassette AFP7CCS1M1 (RS-232C 1-Channel + RS-485 1-Channel Insulated Type)  Terminal layout Terminal LED part Terminal Functions that Signal Ports that can be Symbol part can be allocated direction allocated Symbol in the software...

  • Page 36

    Wiring the COM. Port 2-20 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 37: Setting And Confirming Communication Conditions

    Setting and Confirming Communication Conditions Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 38: Setting Applications And Communication Conditions

    Setting and Confirming Communication Conditions 3.1 Setting Applications and Communication Conditions 3.1.1 Applications to be Set for Each Port  Unit Type MEWTOCOL7-COM MODBUS-RTU Communication General-purpose MEWTOCOL-COM PLC link port communication Master Slave Master Slave ○ (Note 1) ● ● ●...

  • Page 39: Settings Using Tool Software Fpwin Gr7

    Applications and communication conditions for each communication port should be set using the tool software FPWIN GR7. PROCEDURE 1. From the menu bar, select "Option" > "FP7 Configuration". The "FP7 Configuration" dialog box opens. 2. Select "Built-in SCU". Setting items for "Built-in SCU" appear.

  • Page 40: Input/output Signals Used For Communication

    Setting and Confirming Communication Conditions 3.2 Input/Output Signals Used for Communication 3.2.1 I/O Allocation  Input signal Effective Input Communication Name Description Operation signal port mode For COM.1 Port When the unit completes the data reception, it Reception general- General- turns on (1).

  • Page 41

    3.2 Input/Output Signals Used for Communication  Output signal Output Communication Name Description Valid signal port communication mode For COM.1 Port MEWTOCOL Reports the result of sending in master communication or general-purpose Sending done MODBUS-RTU For COM.2 Port communication. result General-purpose For COM.0 Port Normal completion: 0, Abnormal completion: 1...

  • Page 42

    Setting and Confirming Communication Conditions Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 43: Plc Link

    PLC Link Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 44: Operation Of Plc Link Mewnet-w0

    PLC Link 4.1 Operation of PLC link MEWNET-W0 4.1.1 Overview of PLC Link Operation  “Link relays (L)” and data registers “link registers (LD)” are shared between the connected PLCs.  If the link relay contact for one PLC goes on, the same link relay also goes on in each of the other PLCs connected to the network.

  • Page 45: Operation Of Link Relays And Link Registers

    4.1 Operation of PLC link MEWNET-W0 4.1.2 Operation of Link Relays and Link Registers  Link relay If the link relay L0 of the source station (No.1) goes on, it is reflected into the ladder programs of the other station, and Y0 is output on it. RS485 No.2 Link register No.3 Link register...

  • Page 46: Configuration Required For Plc Link

     Settings should be performed by the programming tool FPWIN GR7. PROCEDURE 1. From the menu bar, select "Option" > "FP7 Configuration". The "FP7 Configuration" dialog box is displayed. 2. From the left pane of the dialog box, select "Built-in SCU Settings".

  • Page 47: List Of Setting Items

    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. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 48: Setting Items For Plc Link

    PLC Link 4.3 Setting Items for PLC Link 4.3.1 Station No. Setting  In the PLC link where multiple PLCs are connected to the transmission line, station no. should be set to identify each PLC.  Station nos. are the numbers to identify the different PLCs on the same network. The same number must not be used for more than one PLC on the same network.

  • Page 49: Memory Block Numbers For Link Relays And Link Registers To Be Used4-7

    4.3 Setting Items for PLC Link 4.3.3 Memory Block Numbers for Link Relays and Link Registers to be Used  The memory area of link relays and link registers are divided into the area for PLC link 0 and the area for PLC link 1, which can respectively use up to 1024 link relay points (64 words) and up to 128 link register words.

  • Page 50: Starting No. For Link Relay Send Area And Sending Size

    PLC Link 4.3.5 Starting No. for Link Relay Send Area and Sending Size  The memory areas for link relays are divided into send areas and receive areas.  The link relays are transmitted from the send area to the receive area of a different PLC. Link relays with the same numbers as those on the sending side must exist in the receive area on the receiving side.

  • Page 51: Starting No. For Link Register Send Area And Sending Size

    4.3 Setting Items for PLC Link 4.3.6 Starting No. for Link Register Send Area and Sending Size  The memory areas for link registers are divided into send areas and receive areas.  The link registers are sent from the send area to the receive area of a different PLC. Link registers with the same numbers as those on the sending side must exist in the receive area on the receiving side.

  • Page 52

    PLC Link In the example shown below, there is an area between No. 2 and No. 3 link relays which is overlapped, and this will cause an error, so that communication cannot be carried out.  The allocations shown below are not possible, neither for link relays nor for link registers.

  • Page 53: Plc Link Response Time

    4.4 PLC Link Response Time 4.4 PLC Link Response Time 4.4.1 Response Time of 1 Transmission Cycle The maximum value for the transmission time (T) of one cycle can be calculated using the following formula.  Calculation formula (1) Ts (transmission time per station) Calculation Ts = Scan time + Tpc (PLC link sending time) formula...

  • Page 54

    PLC Link  Example of calculation Response time of 1 Condition Calculation process transmission cycle 16 units connected to the link; no Ttx = 0.096 station yet to be added Each Pcm = 23 + (4 + 8) × 4 = 71 bytes Where Max.

  • Page 55: Response Time When There Is A Station Yet To Be Added

    4.4 PLC Link Response Time 4.4.2 Response Time When There is a Station Yet to be Added  If there are stations that have not been added to the link, the Tlk time (link addition processing time) icreases, and with this the transmission cycle time will be longer. NOTE ...

  • Page 56

    PLC Link 4-14 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 57

    MEWTOCOL Master/Slave Communication Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 58: Mewtocol Master/slave Communication

    MEWTOCOL Master/Slave Communication 5.1 Configuration 5.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: 0 - 99 be connected to the PLC link.

  • Page 59: List Of Mewtocol / Mewtocol7 Supporting Commands

    5.2 List of MEWTOCOL / MEWTOCOL7 Supporting Commands 5.2 List of MEWTOCOL / MEWTOCOL7 Supporting Commands 5.2.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 60: Mewtocol-com Master Communication (recv)

    MEWTOCOL Master/Slave Communication 5.3 MEWTOCOL-COM 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. In the user program, reading and writing can be done simply by specifying the station no.

  • Page 61

    5.3 MEWTOCOL-COM Master Communication (RECV)  Timing chart Clear to send master Conditions to enable execution of RECV communication flag (XC, command XD, XE) Clear to send flag (XC, XD, XE): ON Confirm ON Sending flag (YC, YD, YE): OFF Confirm OFF Sending master communication flag (YC,...

  • Page 62: Recv Command (when Mewtocol-com Is Used)

    MEWTOCOL Master/Slave Communication 5.3.2 RECV Command (When MEWTOCOL-COM is Used)  Command format Items Settings Setting range Specify the operation unit. US / SS Specify the partner station no. 1 - 99 Specify the device initial address of the source node data area in the partner 0 - 99999 node.

  • Page 63: Mewtocol-com Master Communication (send)

    5.4 MEWTOCOL-COM Master Communication (SEND) 5.4 MEWTOCOL-COM 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 64

    MEWTOCOL Master/Slave Communication  Timing chart Clear to send master Conditions to enable execution of SEND communication flag (XC, command XD, XE) Confirm ON Clear to send flag (XC, XD, XE): ON Sending flag (YC, YD, YE): OFF Confirm OFF Sending master communication flag (YC, Sending flag (YC, YD, YE):...

  • Page 65: Send Command (when Mewtocol-com Is Used)

    5.4 MEWTOCOL-COM Master Communication (SEND) 5.4.2 SEND Command (When MEWTOCOL-COM is Used)  Command format Setting Settings Setting range items Specify the operation unit. US / SS Specify the header of the source node data area. (Note 1) 1 - 507 words Specify the No.

  • Page 66

    MEWTOCOL Master/Slave Communication 5-10 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 67

    MODBUS RTU Master/Slave Communication Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 68: Modbus Rtu Master/slave Communication

    MODBUS RTU Master/Slave Communication 6.1 Configuration 6.1.1 Setting Communication Conditions  Configuration Setting items Default Specification range Remark MEWTOCOL- Communication mode MODBUS-RTU Specify "MODBUS-RTU". Set a specific station no. for PLC to be connected to the PLC link. Set a Station no.

  • Page 69: List Of Modbus Rtu Supported Commands

    (Note 1) The table above indicates correspondence between the MODBUS reference numbers for accessing from a higher device to FP7 using the MODBUS protocol, and the operation device numbers of FP7. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 70: Modbus Rtu Master Communication (recv)

    MODBUS RTU Master/Slave Communication 6.3 MODBUS RTU 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-RTU, and receiving responses. Messages in accordance with the protocol are automatically generated by PLC.

  • Page 71

    6.3 MODBUS RTU Master Communication (RECV)  Timing chart Clear to send master Conditions to enable execution of RECV communication flag (XC, command XD, XE) Clear to send flag (XC, XD, XE): ON Confirm ON Sending flag (YC, YD, YE): OFF Confirm OFF Sending master communication flag (YC,...

  • Page 72: Recv Command (modbus Function Code Specified Type)

    MODBUS RTU Master/Slave Communication 6.3.2 RECV Command (MODBUS Function Code Specified Type)  Command format  Operand Items Settings Setting range Specify the operation unit. US / SS Specify the MODBUS function codes and partner station no. to be used. (Note 1) (Note 2) Higher Two hexadecimal digits that indicate the MODBUS H1 - H4 (1 - 4)

  • Page 73: Recv Command (modbus Function Code Unspecified Type)

    6.3 MODBUS RTU Master Communication (RECV) 6.3.3 RECV Command (MODBUS Function Code Unspecified Type)  Command format  Operand Items Settings Setting range Specify the operation unit. US / SS Specify the partner station no. H1 - HF7 (1 - 247) H0 - HFFFF (0 - 65535) Specify the device initial address of the source node data area in the partner node.

  • Page 74: Modbus Rtu Master Communication (send)

    MODBUS RTU Master/Slave Communication 6.4 MODBUS RTU 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-RTU, and receiving responses. Messages in accordance with the protocol are automatically generated by PLC.

  • Page 75

    6.4 MODBUS RTU Master Communication (SEND)  Timing chart Clear to send master Conditions to enable execution of SEND communication flag (XC, command XD, XE) Confirm ON Clear to send flag (XC, XD, XE): ON Sending flag (YC, YD, YE): OFF Sending master Confirm OFF communication flag (YC,...

  • Page 76: Send Command (modbus Function Code Specified Type)

    MODBUS RTU Master/Slave Communication 6.4.2 SEND Command (MODBUS Function Code Specified Type)  Command format  Operand Items Settings Setting range Specify the operation unit. US / SS Specify the header of the source node data area. (Note 1) 1 - 127 words Specify the No.

  • Page 77: Send Command (modbus Function Code Unspecified Type)

    6.4 MODBUS RTU Master Communication (SEND) 6.4.3 SEND Command (MODBUS Function Code Unspecified Type)  Command format  Operand Items Settings Setting range Specify the operation unit. US / SS Specify the header of the source node data area. (Note 1) Specify the No.

  • Page 78

    MODBUS RTU Master/Slave Communication 6-12 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 79: General-purpose Communication

    General-Purpose Communication Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 80: Operation Of General-purpose Communication

    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.

  • Page 81: Configuration

    7.2 Configuration 7.2 Configuration 7.2.1 Setting Communication Conditions  Configuration Setting items Default Specification range Remark Communication General-purpose Specify "general-purpose MEWTOCOL-COM mode communication communication". Station no. 1 - 999 Settings are not necessary. 300 / 600 / 1200 / 2400 / 4800 / 9600 / 19200 / Baud rate 9600...

  • Page 82: Sending Operation

    General-Purpose Communication 7.3 Sending Operation 7.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 command. External device Send message/data ABCDE (CR) ・・・・・・・・...

  • Page 83

    7.3 Sending Operation  Timing chart  Data in the table [S] specified by GPSEND command are sent, in ascending order from lower bytes.  During the sending process, the "sending general-purpose communication flag" (Y8, Y9, YA) 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 84: Contents Of Sent Data

    General-Purpose Communication 7.3.2 Contents of Sent Data Strings data sent by the GPSEND command 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 command, the No. of characters is saved in the header area.

  • Page 85: Gpsend (general-purpose Communication Sending Command)

    7.3 Sending Operation 7.3.3 GPSEND (General-Purpose Communication Sending Command)  Command 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 86: Precautions On Sending Data

    General-Purpose Communication 7.3.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 87: Receiving Operation

    7.4 Receiving Operation 7.4 Receiving Operation 7.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 command is executed in a user program, data in the reception buffer can be copied into a given operation memory.

  • Page 88

    General-Purpose Communication  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, X1, X2) turns on. Subsequently, the following data are saved in the buffer upon reception. 8 data can be received consecutively.

  • Page 89: Contents Of Received Data

    7.4 Receiving Operation 7.4.2 Contents of Received Data When data are copied into a given data register, based on GPRECV command, the data are saved in the following manner. Example: The data “12345 CR” is transmitted from a device with RS-232C device. ...

  • Page 90: Operations Of The "reception Done Copy" Flag And Multiplex Reception

    General-Purpose Communication 7.4.4 Operations of the "Reception done copy" flag and multiplex reception  Operation and function of the "reception done copy" flag (X4, X5, X6)  The "reception done copy" flag (X4, X5, X6) turns ON when the GPRECV command is executed and data are copied from the reception buffer to the specified operation memory, and turns OFF when the END command is executed.

  • Page 91: Gprecv (general-purpose Communication Receiving Command)

    7.4 Receiving Operation 7.4.5 GPRECV (General-Purpose Communication Receiving Command)  Command 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 92: Sending/receiving Flag Operation

    General-Purpose Communication 7.5 Sending/Receiving Flag Operation 7.5.1 No Header (Start Code), Terminator (End Code) "CR": The “reception done” flag, the “sending” flag, the GPSEND command, and the GPRECV command are related as follows: Data received from external device Stored receive bu ffer Data can be received until eight receive bu ffers are all filled up even if the reception done flag is turned on.

  • Page 93: Start Code "stx", End Code "etx

    7.5 Sending/Receiving Flag Operation  After GPSEND command is executed, dual sending to the same port is not possible until the "sending general-purpose communication flag" (Y8, Y9, YA) turns OFF. The "sending general-purpose communication flag" (Y8, Y9, YA) turns OFF in command execution in the next scan or later following completion of data sending.

  • Page 94

    General-Purpose Communication  However, if the code STX is added in the middle of the data, the data are saved from the beginning of the reception buffer. Sending process: Sending done flag and GPSEND command are related as follows: Transmitted data send buffer GPSEND...

  • Page 95: Specifications

    Specifications Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 96: Communication Function Specifications

    Specifications 8.1 Communication Function Specifications 8.1.1 CPU Unit Communication Specifications  USB port (for tool software) Items Description Standard USB2.0 FULL SPEED Communication function MEWTOCOL-COM (slave), MEWTOCOL7-COM (slave)  COM0 Port Items Description Interface 3-wire 1-channel RS-232C Transmission distance 15 m (Note 1) Baud rate 300, 600,1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400 bit / s...

  • Page 97

    8.1 Communication Function Specifications  LAN port Items Description Interface 100BASE-TX / 10BASE-T Baud rate 100 Mbps, 10 Mbps auto-negotiation (Note 1) Transmission system Baseband Max. segment length 100 m (Note 2) Communication cable UTP (Category 5) 100BASE-TX: 2 segments Max.

  • Page 98: Extension Cassette Communication Specifications

    Specifications 8.1.2 Extension Cassette Communication Specifications  COM1 Port / COM2 Port Description Items AFP7CCS1 AFP7CCS2 AFP7CCM1 AFP7CCM2 AFP7CCS1M1 3-wire 1-channel 3-wire RS-232C 3-wire 2-channel 1-channel 2-channel Interface 1-channel RS-232C RS-422/RS485 RS-422/RS485 1-channel RS-232C (Note 2) (Note 3) (Note 2) (Note 3) (Note 1) RS-422/RS-485 (Note 2) (Note 3)

  • Page 99: Mewtocol-com Format

     The station no. of the PLC to which you want to send the command must be specified. The station no. of the PLC is specified by the system register. In the case of the FP7 CPU unit, the station no. is specified in the FPWIN GR7 configuration menu.

  • Page 100

    Specifications NOTES  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.  When the message contains a large number of characters, the response is sent divided in several times.

  • Page 101: Mewtocol-com Response Format

    8.2 MEWTOCOL-COM Format 8.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 102

    Specifications NOTES  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 103: Mewtocol7-com Format

     The station no. of the receiving PLC to which you want to send the command must be specified with "@ and three digits". The station no. of the PLC is specified by the system register. In the case of the FP7 CPU unit, the station no. is specified in the FPWIN GR7 configuration menu.

  • Page 104

    Specifications (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 105: Mewtocol7 Response Format

    8.3 MEWTOCOL7-COM Format 8.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...

  • Page 106

    Specifications (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 107: Modbus Rtu Format

    8.4 MODBUS RTU Format 8.4 MODBUS RTU Format 8.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 8 bits, 0 to 247 (decimal) (station no.) (Note) 0 = Broadcast address FUNCTION...

  • Page 108: Modbus Rtu Response Format

    Specifications 8.4.2 MODBUS RTU Response Format  Response in normal status  The same message as a command is returned and for a loop back test.  A part of a command message (6 bytes from the beginning) is returned for multiple write command.

  • Page 109

    Record of changes Manual No. Date Record of Changes WUME-FP7COM-01 Mar.2013 First Edition Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

Comments to this Manuals

Symbols: 0
Latest comments: