Home

FP7 CPU Unit User`s Manual

image

Contents

1. X70 R100 GPRECV execution conditions k DF Reception done flag ON R100 Settings for communication port S1 CPU LAN port U100 S2 Connection 1 U1 Execute GPRECV command i S1 Header of i Received Data DT200 i S2 Terminator of i Received Data DT209 GPRECV US DT200 DT209 S1 S2 7 8 7 3 Receiving Operation E Timing chart e Data received from an external device are saved in the reception buffer for each connection e When data are received the reception done flag X70 X7F turns ON e When the GPRECV command is executed data are copied into the specified area and the reception done flag X70 X7F turns OFF The reception done flag X70 X7F turns OFF when the I O refresh is executed at the beginning of the subsequent scans Reception buffer 4 4 preses reset rte Received data Reception done flag X70 X7F 4 When reception has been done ON i Reception done flag SE When copying of received data has X70 X7F been done based on GPRECV i command OFF Execute GPRECV M I O number I O Allocation Name Explanation General purpose X70 X7F communication reception done flag Turns ON when the receiving process is completed in the general purpose communication mode E Saving method for received data When data are saved in a given data register from the reception buffer based on GPRECV command the data a
2. 7 3 3 GPRECV General Purpose Communication Receiving Command Command format RO S GPRECV US pr200 oT209 D1 D2 Setting a item Settings Setting range i Specify the operation unit US SS D1 Specify the initial address of the data area to save the received data Note 1 D2 Specify the final address of the data area to save the received data Note 2 Note 1 Devices that can be specified for D1 are WX WY WR WL DT LD Note 2 Devices that can be specified for D2 are WX WY WR WL DT LD l KEY POINTS e Specify the connection targeted for communication using UNITSEL command immediately before GPRECV command e When the general purpose communication reception done flag is ON for the targeted connection execute GPRECV General Purpose Communication 7 12 8 Specifications Specifications 8 1 Specifications of CPU Unit LAN Port Communication Function M LAN port O eme T Deseptiom 7 100 Mbps 10 Mbps auto negotiation Note 1 UTP Category 8 Max distance between 100BASE TX 2 segments nodes 10BASE T 5 segments No of nodes 254 units Number of simultaneous User connections 16 ecas SSCS oases SSCS DroBAsET 8segmems SSCS Daws SSCS Cueros SSCS MEWTOCOL DAT master slave MEWTOCOL COM master slave Communication function MEWTOCOL7 COM slave MODBUS TCP master slave general purpose communication Note 1 Swit
3. Values that can be specified in higher WX WY WR WL DT LD transmission for D1 method bytes of S1 H1 Read Coil Status 01 16 bit device Register H2 Read Input Status 02 H3 H4 Read Holding Registers 03 Read Input Registers 04 1 bit device X Y R L DT n LD n Bit transmission H1 H2 Read Coil Status 01 Read Input Status 02 Note 3 The No of sent data is on a word basis for register transmission and on a bit basis for bit transmission Note 4 Devices that can be specified for D2 are WX WY WR WL DT LD Saved as one word in the specified area Normal completion Sending timeout Response reception timeout Received data error OuakhWN O Communication port is being used for master communication Communication port is being used for slave communication No of master communication commands that can be used simultaneously has been exceeded MODBUS TCP Master Slave Communication 6 3 3 RECV Command MODBUS Function Code Unspecified Type Command format RO o Jrecv us HF HFF U10 or100 DTO i St 2 n D1 D2 M Operand Items Settings Setting range i Specify the operation unit US SS S1 Specify the partner station no H1 HF7 1 247 Specify the device initial address of the source node data area in the S2 partner node HO HFFFF 0 65535 Note 1 Note 2 1 127 words n Speci
4. e Relevant flags are allocated to Device No X70 X9F and Y70 Y9F 4 3 Input Output Signals Used for Communication 4 3 Input Output Signals Used for Communication 4 3 1 VO Allocation E Input signal Input Response AR Effective signal connection Name Besctiption Operation mode X70 Connection 1 e When connection is ON in the X71 Connection 2 general purpose communication mode the flag turns ON once data a cals are received x79 Connection 10 Reception e When general purpose X7A Connection 11 general purpose GPRE eee General purpose XTB Connection 12 ee receiving of data has been communication X7C Connection 13 9 completed the flag turns OFF X7D C tion 14 e When connection is in en MEWTOCOL DAT MEWTOCOL X7E Connection 15 COM or MODBUS TCP the flag X7F Connection 16 turns OFF X80 Connection 1 X81 Connection 2 e When connection is ON in the a general purpose communication X89 Connection 10 mode the flag is ON i Clear to send When th tion i tON X8A Connection 11 general purpose tik fed is Sr IOS TC 4 General purpose X8B Connection 12 communication g i communication flag e When connection is in X8C Connection 13 MEWTOCOL DAT MEWTOCOL X8D Connection 14 COM or MODBUS TCP the flag is OFF X8E Connection 15 X8F Connection 16 X90 Connection 1 X91 Connection 2 e When connection is ON in the a MEWTOCOL DAT MEWTOCOL x99 Connectio
5. Execute RECV OFF Master communication Sending done result flag Y70 Y7F Sending done result flag Y70 Y7F Normal completion OFF i Abnormal completion ON Sending data Response reception processing E I O Allocation I O number Name Explanation Clear to send master When connection is ON in the master communication mode the X90 X9F ee communication flag flag is ON Turns ON during sending data based on SEND RECV command Turns OFF when ED command is executed following response reception processing Sending master Y90 Y9F PAI communication flag Reports completion result of sending data in general purpose Y70 Y7F Sending done result flag communication or master communication Normal completion 0 Abnormal completion 1 Note 1 Each contact is used for reading the operation status Do not write over it with a user program l KEY POINTS e Specify the connection No targeted for communication using UNITSEL command immediately before SEND RECV command e Master communication is only valid when MEWTOCOL or MODBUS is selected Confirm that the clear to send master communication flag X90 X9F for the targeted connection is ON and execute SEND RECV command e You cannot execute other SEND RECV command for connection in master communication Confirm that the sending master communication flag Y90 Y9F is OFF and execute command e You ca
6. 6 2 6 2 List of MODBUS TCP Supported Commands 6 2 List of MODBUS TCP Supported Commands 6 2 1 List of MODBUS Function Codes E Table of supported commands Gede Name MODBUS m a vinai S 01 Read Coil Status Read Y and R Coils 0X e 02 Read Input Status Read X Input 1X 03 Read Holding Registers Read DT 4X e 04 Read Input Registers Read WL and LD 3X 05 Force Single Coil Write Single Y and R 0X e 06 Preset Single Register Write DT 1 Word 4X e 08 Diagnostics Loopback Test 15 Force Multiple Coils Write Multiple Y s and R s 0X e 16 Preset Multiple Registers Write DT Multiple Words 4X e 22 Mask Write 4X Register Write DT Mask 4x 23 Read Write 4X Registers Read Write DT 4X Note 1 Types of MODBUS function codes vary by commands to be used E Table for MODBUS reference No and device No MODBUS reference no Data on BUS PLC device number hexadecimal Cail 000001 002048 0000 07FF YO Y127F oi 002049 034816 0800 87FF RO R2047F Input 100001 108192 0000 1F FF X0 X511F Holding register 400001 465536 0000 FFFF DTO DT65535 300001 301024 0000 03FF WLO WL1023 Input register 302001 318384 07D0 47CF LDO LD16383 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 MODBUS TCP Master Slave C
7. Area code of the receiver U1 D2 Forward to address DT400 i M D3 Execution result code DTO 5 7 MEWTOCOL Master Slave Communication E Timing chart Le Conditions to enable execution of SEND command Clear to send flag X90 X9F ON Sending flag Y90 Y9F OFF Clear to send master communication flag X90 X9F Confirm ON Sending master Confirm OFF communication flag Y90 Y9F Sending flag Y90 Y9F i During the sending process ON During execution of ED command following response reception processing Execute SEND OFF Master communication Sending done result flag Y70 Y7F Sending done result flag Y70 Y7F Normal completion OFF Abnormal completion ON Sending data Response reception processing E I O Allocation VO s V Name Explanation number Clear to send master When connection is ON in the master communication mode the flag X90 X9F ca communication flag is ON Sending master Turns ON during sending data based on SEND RECV command Y90 YOF g Turns OFF when ED command is executed following response communication fla g reception processing Reports completion result of sending data in general purpose Y70 Y7F Sending done result flag communication or master communication Normal completion 0 Abnormal completion 1 Note 1 Each contact is used for reading the operation
8. e Execute communication using MEWTOCOL COM a communication protocol used by our PLC e One of the device has the sending right and executes communication by sending commands to devices that support MEWTOCOL COM and receiving responses e The slave side PLC responds automatically so no program concerning communication is necessary e Also on the master side PLC 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 and memory address and executing SEND RECV commands e Because MEWTOCOL COM communication is on an ASCII basis it is suitable for sending receiving text data e The data size that can be sent or received in a single communication is up to 507 words for register transmission and 1 bit for bit transmission EP7 CPU Device supporting Ethernet LAN MEWTOCOL COM IP XXXXXX IP XXXXXX Command Master communication Response Send receive data using MEWTOCOL COM Command Slave communication Response E Applications of MEWTOCOL COM communication This is used for sending text data between our devices that support MEWTOCOL COM via Ethernet This method can also be used for connecting a programming tool e Programmable controller FP series 1 7 Communication Functions of CPU Unit 1 3 3 MODBUS TCP Master Slave Communication HM Overview of function e This is used for communicating with other devices that s
9. host name SNTP server IP address 0 0 0 0 Specify the setting for SNTP server IP address host name Setting unit HHMM HH hour MM minute Time zone 0000 Setting range 9999 to 9999 Specify a standard time zone in each region based on GMT 3 5 Configuration 3 4 Settings for FTP server Select this to use the FTP server function E List of setting items FTP server Setting item Default Setting method ede use ed No Select whether you will use the FTP server function Permission of anonymous No If authentication by user account and password is not required user select Yes Setting unit 100 ms Setting range 3 000 OBB8H to 429 496 729 1999 9999 H FTP server closing time 3000 Input the no communication monitoring time during FTP connection unit 100 ms Connection is automatically cut off when FTP no communication exceeds the specified time User name root Password root 3 6 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 M List of setting items Setting item Default System Connection Setting method Operation Mode Setting MEWTOCOL COM Select the operation mode MEWTOCOL COM Specifying use of g Yes Specify whether system connection is to be used 2 connection c X a7 EMEWTOCO
10. program reading and writing can be done simply by specifying the station no and memory address and executing SEND RECV commands PLC Our PLC supporting MEW TOCOL DAT Command message DT100 100 Hex 80 51 09 90 01 02 00 DT00400 100 DT101 0 kr 7 a DT00401 0 Hex 80 D1 FF 64 00 00 00 Response message Specify and read write address based on SEND RECV command Note The above figure indicates the data part of MEWTOCOL DAT In communication via LAN a header including size information of the sent data is added 5 1 2 MEWTOCOL COM ASCII Communication In master communication PLC has the sending right and executes communication by sending commands to devices that support MEWTOCOL COM 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 and memory address and executing SEND RECV commands External device supporting PLC MEW TOCOL COM Command message DT100 100 014RDD0040000401 BCC CR DT00400 100 _ DT101 0 DT00401 0 01 RDD64000000 BCC CR Response message Specify and read write address based on SEND RECV command Note The above figure indicates the data part of MEWTOCOL COM In communication via LAN a header including size information of the sent data is added Note In MEWTOCOL COM7 there is no master communication function 5 2 5 2 List of MEWTOCOL Supporting C
11. Information 3 2 Setting Basic Communication Information 3 2 1 List of Setting Items E List of setting items basic communication information Setting item Default Remark Automatic getting of No IPv4 address Own IP address IPv4 192 168 1 5 Subnet mask IPv4 255 255 255 0 This is valid as long as the network subnetwork mask field is anything other than 0 If the default router gateway IP address has been set communication will be carried out through the default router gateway without an error occurring even f the class network Default gateway address or subnetwork address of the partner node differ from IPv4 192 168 1 1 those of the source node The network subnetwork address for the default router gateway IP address must be identical to the network subnetwork address for the source node IP address If they are different an error will occur 0000 0000 H and FFFF FFFF H is regarded as an error Setting range 0001 FFFF by 100 ms With TCP this specifies the time that a packet exists when data transmission etc is carried out TCP ULP should be specified TCP ULP time out value 5 i AE ss ee hike at j at an integral multiplication of TCP re transmission timer value When an integral multiplication cannot be given round up the given decimal number Setting range 0001 FFFF by 100 ms TCP zero window With TCP this specifies the time until the receive window siz
12. LAN and send receive data IP address of the FP7 CPU unit protocol TCP UDP connection method with devices port numbers etc should be specified in the configuration menu of the programming tool FPWIN GR7 In master communication commands SEND RECV 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 and memory address and executing commands e Communication functions can be selected depending on the partner device to be connected 1 2 2 System Connection E Functions of system connection e System connection is used when using a programming tool via LAN port e Four connections are available per CPU unit 1 2 Functions of LAN Port 1 2 3 User Connection E Functions of user connection e The FP7 CPU Unit can open virtual communication lines for up to 16 connections with Ethernet supporting devices connected to LAN and send receive data lt can open multiple connections between the FP7 CPU unit and multiple nodes or a single node and execute communication e Operation mode open method protocol etc can be selected for each connection External External FP7 CPU EMT FP7 CPU devi Ethernet LAN evice Ethernet LAN ENIGGI IP XXXXXX IP XXXXXX IP XXXXXX Port 7 IP XXXX Port a Port 8000 S Port XXXX 8000 XXXX Port 5 IP XXXX Port a Port 3 Port XXXX 8001 XXXX 8001 Select a desired communicat
13. Setting Homs esar eaa ERE AA Anai 3 3 3 2 2 Setting Each Timer Value And Timeout Value 3 4 3 3 Settings for SNTP s erv f casa ss ese t mas asti chev senas hoe deanedeasalaetenecaes 3 5 34 Settings for FTP s rv t ssagastiestt sast g 3 6 3 5 Setting of System Connection cccccceeeeeeeeeeeneeeeeeeeeeeneseseeeeeenseeenes 3 7 3 5 1 List of Setting Hems asrini eiii i r r i 3 7 3 5 2 Setting on the Programming Tool Side ccceeeeeeeeeeeeneeeeeesteeeeeeaes 3 9 3 6 Setting of U er Conf i0fissesemeasmugsti osm kiss 3 10 20 1 Listo Setting Heire AE EEE E 3 10 3 6 2 Specifying Port Number nabitia aaa 3 12 Setting and Operation of User Connection 000 4 1 4 1 Configuration Concerning Open Process 4 2 4 1 1 Connection of the FP7 CPU Unit ee a 4 2 4 1 2 Specifying Use of Connection 4 2 4 1 3 Open Method Server Client 0 0 ccccceeceeeeeeeeeeeeeeeneeeeeeeeeeeeeeenaeeeseeaeees 4 2 4 1 4 Open Method Auto Manual ecccccceeeeeeeeeeeeeseeeeeeseeneeeseeeaeeeseeaeees 4 2 4 1 5 Instructions for Specifying Connection Conditions s 4 3 4 2 Communication Processing c ccccessicececeeeteeeeseecneeceeeeeeeeeseednenseeess 4 4 4 2 1 Communication Operation ccccccecccecceceeeeeeeeeeeeeeeeeeeeeseeeenieeeeeeeeeeees 4 4 4 3 Input Output Signals Used for Communication 4 5 43 1 KOAA e eR aita tat 4 5 Table of Contents 5 MEWTOCOL Master Slave
14. ccesceeeeeeeeees 8 4 8 3 MEWTOCOL COM Form kt a aa 8 6 8 3 1 MEWTOCOL COM Command Format in LAN Communication 8 6 8 3 2 MEWTOCOL COM Command Form t iiia aa 8 7 8 3 3 MEWTOCOL COM Response Form t iiaaaa 8 9 8 4 MEWTOCOL7 COM Format 8 11 8 4 1 MEWTOCOL7 COM Command Format cccccseeseceeeeeeeeeeeeenees 8 11 8 4 2 MEWTOCOL7 Response Format cececeeceeceeeeeeeteeeeceeeeeeeeeeeeenaees 8 13 Table of Contents vi 1 Communication Functions of CPU Unit Communication Functions of CPU Unit 1 1 Communication Ports of CPU Unit 1 1 1 Types and Purposes of Communication Ports M Communication ports of CPU unit a Panasonic FP7 CPS4E RUN COM PROG SD RD 0 SD ERROR CARD ALARM COPY 1 J 4 a 3 M 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 2 COMO Port This is an RS 232C port that is equipped to a standard model of CPU unit It is equipped with power supply terminals 5V DC and 24V DC to which a GT series display can be connected 3 LAN Port This is equipped to a standard model of CPU unit It is used for connection to Ethernet It can also be connected with a programming tool The MAC address is printed on the side of the unit It supports the Ethernet commun
15. connect with FP2 ET LAN GoM response data part and no header is attached A header is attached to the MEWTOCOL COM command data part or the Connect with FP2 ET LAN MEWTOCOL COM response data part as indicated in the data structure below e When the PLC side has the sending right and executes the sending receiving process PLC automatically attaches these data when SEND RECV command is executed Therefore it is not necessary to take account of these data in a user program M Message format in the case of Connect with FP2 ET LAN Command message Response message 10 H 10 H 00 H 00 H Data size L Data size L Data size H Data size H 00 H 00 H 00 H 00 H 00 H 00 H 00 H 00 H 00 H 00 H 00 H 00 H MEWTOCOL station no of receiver Note1 User connection No of sender User connection No of sender MEWTOCOL station no of receiver Note1 MEWTOCOL COM MEWTOCOL COM Command data part Note 2 Response data part Note 2 8 6 8 3 MEWTOCOL COM Format 8 3 2 MEWTOCOL COM Command Format M 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 L Target that reads the value internal relay R1 item specifies that only 1 point should be read Command name e g read contact area Command code Indicates that this is a command 1 Header
16. dedicated header not attached Within 8 192 no more received data executed with the to the bytes exceeding the TCP FP2 ET LAN unit or terminal detection timer value default 20 ms communication without a dedicated header is desired HM Sent message format for general purpose communication When Attach a dedicated header is selected for communication type a header as shown below is attached to the sent message 10H 00H Data size L Data size H 02H 00 H 02 H 00 H 00 H 00 H 00 H Connection No of sender Sent Data Part REFERENCE e For details of setting screen for communication type see 3 6 Setting of User Connection General Purpose Communication 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 PLC External device Send message data DT100 U5 ABCDE OOOI rsrsrsrs DT101 BA 00002 eseese DT102 DC Send data based on GPSEND aaas arera DT103 E command kak eee eee Note The above figure indicates the data part In communication via LAN a header including size information of the sent data is added M Sample program e Confirm that Connection 1 is established in the general purpose communication mode X80 and that the general purpose sending process is not in progress for the same
17. exceeded Sending timeout Response reception timeout Received data error OahWN O MEWTOCOL Master Slave Communication 5 10 6 MODBUS TCP Master Slave Communication MODBUS TCP Master Slave Communication 6 1 MODBUS TCP Format 6 1 1 MODBUS TCP M Data structure for the MODBUS TCP format e In MODBUS TCP an MBAP header is attached to the function codes and data used in MODBUS RTU Function MODBUS TCP format MBAP Header Code Data 7 bytes n bytes 1 byte Transaction Protocol Lenath Unit MBAP header part Identifier Identifier aie 2 Identifier 2 bytes 2 bytes y 1 byte E Data contents Fields Field name Description Transaction Identifier Transaction identifier OOH is entered KP Protocol Identifier Protocol identifier OOH is entered Header Length Length The length of the subsequent sending receiving message is entered Unit Identifier Unit identifier Station no of the unit is entered 0 247 F The same function name as that of MODBUS Function code Function code A RTU is entered Data Data Data that correspond to the function code are entered p KEY POINTS e Function codes and data parts for MODBUS TCP are the same as those for MODBUS RTU Note that however CRC check codes contained in the MODBUS RTU format are not included REFERENCE For detailed specifications concerning MODBUS please see the website http www modbus org
18. name l KEY POINTS e Selecta desired operation mode e When client settings are used select Use in the connection settings only for the connection to be used When Use in the connection settings is selected and if connection is failed it is regarded as a communication error 3 10 3 6 Setting of User Connection e The MEWTOCOL communication type is a function to maintain compatibility with the existing models of FP2 ET LAN unit For connection between FP7 units default values should be used e For the open method select Open automatically For server connection client connection please see 4 1 Configuration Concerning Open Process E A FP7 configuration Memory conf igurat ion CPU conf igurat ion Setting item Setting description 1 0 map Built in SCU a a Operating mode setting MEWTOCOL COM Connection to use specification Not use MEWTOCOL communications type Not connect to FP2 ET LAN Open type server client Client connection Open type automatic manual Open automatically Communication type TCP IP Home port number 0 Destination port number 0 Unused connection disconnect time 0 Destination setting method Specify by IP address IPv4 Destination IP address name 0 0 0 0 a Operating mode setting MEWTOCOL COM Connection to use specification Not use MEWTOCOL communications type Not connect to FP2 ET LAN Open type server client Client con
19. node data area in the partner node Note 1 0 65535 0 99999 Note 5 D3 Specify the device area in the source node to Note 6 save the execution result code one word Note 1 Transmission methods vary by the type of device to be specified for the operands S and D2 Device to be specified for S2 and D1 Transmission method 16 bit device WX WY WR WL DT LD Register transmission 1 bit device X Y R L DT n LD n Bit transmission Note 2 The No of sent data is on a word basis for register transmission and on a bit basis for bit transmission Note 3 Configuration The maximum number of words vary by settings of the MEWTOCOL communication type for user connection Connection settings Setting of the Maximum no of words MEWTOCOL communication type Do not connect with FP2 ET LAN 2038 words Connect with FP2 ET LAN 1020 words Note 4 Specify 1 for connection between FP7 units The receiver is specified by IP address Note 5 Bit device DT n and LD n cannot be specified for the header of the receiver data in the partner node Note 6 Devices that can be specified for D3 are WX WY WR WL DT LD Saved as one word in the specified area Normal completion Communication port is being used for master communication Communication port is being used for slave communication No of master communication commands that can be used simultaneously has been
20. port Y80 and start up the sending program e In the SSET command convert a given message into an ASCII text string and specify the number of strings to be sent in the data register DT100 and the message to be sent from the data register DT101 e In the UNITSEL command specify the slot No LAN port U100 and the connection No U1 In the GPSEND command specify and execute the header of the table where the message to be sent is saved DT101 and the No of characters DT100 GPSEND execution conditions Clear to send flag ON i Sending flag OFF RO X80 Y80 R101 R100 eee Clear to send Sending gen ral general purpose purpose R100 communication flag communicati Data conversion S1 Sent Data S2 Save Sent Data i DT100 No of Sent Characters DT101 onward Sent Data R100 DF S1 S2 R100 Settings for communication port UNITSEL 100 S1 CPU LAN port U100 S2 Connection 1 U1 SEND processing S Header of Sent Data DT101 n No of Sent Characters DT100 D Execution Result Code DTO Y80 P DF i Reset GPSEND execution conditions 7 2 Sending Operation E Timing chart Data in the table specified by GPSEND command are sent in ascending order from lower bytes e 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
21. specify the partner station no for the operand of SEND RECV command 6 6 6 3 MODBUS TCP Master Communication RECV 6 3 2 RECV Command MODBUS Function Code Specified Type M Command format RO o ecv us H30F HFF U10 or100 DTO i St S2 n D1 02 M Operand Items Settings Setting range i 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 S1 byte function code Lower ze O byte Two hexadecimal digits that indicate the station no H1 HF7 1 247 S2 Specify the source MODBUS address in the partner node HO HFFFF 0 65535 1 127 words n Specify the No of sent data Note 3 1 2040 bits D1 Specify the device initial address of the receiver node data area in the m source node Note 2 D2 Specify the device area in the source node to save the execution result Note 3 code one word Note 1 Operand S1 is specified by combining two hexadecimal digits of MODBUS function code with two hexadecimal digits of partner station no E g Specify HO30F when MODBUS function code is 03 Read Holding Registers and station no is 15 Note 2 Based on the types of device specified in operand D1 the transmission methods and MODBUS function codes that can be used vary Device to be specified Transmission
22. status Do not write over it with a user program KEY POINTS e Specify the connection No targeted for communication using UNITSEL command immediately before SEND RECV command e Master communication is only valid when MEWTOCOL or MODBUS is selected Confirm that the clear to send master communication flag X90 X9F for the targeted connection is ON and execute SEND RECV command e You cannot execute other SEND RECV command for connection in master communication Confirm that the sending master communication flag Y90 Y9F is OFF and execute command e You cannot execute SEND RECV command for connection in slave communication e Upto 16 SEND RECV commands can be executed simultaneously for different connections e Inthe case of communication between FP7 LAN ports specify U1 for the partner station no The receiver is specified by IP address 5 8 5 4 MEWTOCOL Master Communication SEND 5 4 2 SEND Command When MEWTOCOL is Used Command format RO o sno us oT 109 U2 U1 07400 DTO H i S n Di D2 D3 Setting Setting range gt Settings item MEWTOCOL DAT MEWTOCOL COM i Specify the operation unit US SS s Specify the header of the source node data Note 1 area 1 2038 words n Specify the No of sent data Note 2 or 1 bit ee Words Note 3 l D1 Specify the partner station no 1 64 Note 4 Specify the initial address of the receiver D2
23. transmission Note 3 Bit device DT n and LD n cannot be specified for the header of the sender data in the partner node Note 4 The No of sent data is on a word basis for register transmission and on a bit basis for bit transmission Note 5 The maximum number of words vary by settings of the MEWTOCOL communication type for user connection Connection settings Setting of the Maximum no of words MEWTOCOL communication type Do not connect with FP2 ET LAN 2038 words Connect with FP2 ET LAN 1020 words Note 6 Devices that can be specified for D2 are WX WY WR WL DT LD Saved as one word in the specified area Normal completion Communication port is being used for master communication Communication port is being used for slave communication No of master communication commands that can be used simultaneously has been exceeded Sending timeout Response reception timeout Received data error ODGOBON O 5 6 5 4 MEWTOCOL Master Communication SEND 5 4 MEWTOCOL Master Communication SEND 5 4 1 Write Data into an External Device E 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 can be done simply by specifying the station no and memory add
24. well as the partner station no H0301 initial address HO No of data U2 and initial address on the PLC side to save data DT100 For the address of the partner device please check operating instructions etc of the relevant device 6 3 MODBUS TCP Master Communication RECV RO X90 Starting conditions for RECV execution HP DF i Clear to send flag ON Clear to send Sending master Execute master communication flag RECV R100 communication flag UNITSEL U100 Sending flag OFF Settings for communication port S1 CPU LAN port U100 S1 Connection 1 U1 i Execute RECV command S1 MODBUS command H03 Partner station no H01 S2 Data address HO n No of data U2 D1 Data saving area DT100 D2 Execution result code DTO S1 S2 n D1 D2 E Timing chart y Saw Conditions to enable execution of RECV command i Clear to send flag X90 X9F ON Sending flag Y90 Y9F OFF Clear to send master communication flag X90 X9F Confirm ON Sending master Confirm OFF communication flag Y90 Y9F Sending flag Y90 Y9F During the sending process ON i During execution of ED command following response reception processing OFF Execute RECV Sending done result flag Y70 Y7F Normal completion OFF Abnormal completion ON Master communication Sending done result flag Y70 Y7F Sending data Res
25. 1 HF Force Multiple Coils 15 WX WY WR WL DT gisier H10 Preset Multiple Registers 16 LD transmission aioe HF Force Multiple Coils 15 H10 Preset Multiple Registers 16 i H5 Force Single Coil 05 1 bit device Bit S A X Y R L DT n LD n transmission HF Force Multiple Coils 15 2 2040 HF Force Multiple Coils 15 Note 2 The No of sent data n is on a word basis for register transmission and on a bit basis for bit transmission Note 3 Operand D1 is specified by combining two hexadecimal digits of MODBUS function code with two hexadecimal digits of partner station no E g Specify HOFOA when MODBUS function code is 10 Preset Multiple Registers and station no is 10 Note 4 Devices that can be specified for D3 are WX WY WR WL DT LD Saved as one word in the specified area DODOBON O Normal completion Communication port is being used for master communication Communication port is being used for slave communication No of master communication commands that can be used simultaneously has been exceeded Sending timeout Response reception timeout Received data error MODBUS TCP Master Slave Communication 6 4 3 SEND Command MODBUS Function Code Unspecified Type Command format o seno us oT100 U10 HA HFF DTO i S n Di D2 D3 M Operand Items Settings Setting range i Specify the operation unit US SS S Specify the he
26. COL DAT MEWTOCOL COM Not connect to FP2 ET LAN Not connect to FP2 ET LAN Connect to FP2 ET LAN When communication is to be performed with the FP2 ET LAN unit select Connect to FP2 ET LAN When selecting general purpose communication Attach a dedicated header Attach Do not attach a dedicated header When communication is to be performed with the FP2 ET LAN unit select Do not attach a dedicated header Setting of application use Open method server client Client connection Select connection function settings server connection unspecified partner server connection specified partner client connection Open method Select the connection open method auto manual Auto OPEN auto manual Select Auto OPEN Communication method TCP IP IE the communication protocol TCP IP UDP Source node port No Specify the source node sender port number Partner node port No Specify the partner node receiver port number Input the no connection communication monitoring eae time Connection is automatically cut off when no Unused connection closing time 0 connection communication exceeds the specified time Partner node Setting method Specification using IP address IPv4 Select the setting for partner node IP address host name name Partner node IP address and 0 0 0 0 Specify the setting for partner node IP address host
27. CP re transmission timer value AND e TCP zero window timer value 2 IP assembly timer value E Setting the TCP ULP timeout value packet existence duration and the TCP re transmission timer value When TCP IP communication is being carried out data is automatically re sent the specified number of times as shown in the illustration below TCP ULP packet existence duration Number of re sends TCP re transmission timer value E g When TCP ULP 30 seconds TCP re transmission timer value 10 seconds TCP ULP 30 seconds TCP re send timer value 10 seconds N 0 10 20 30 1st sending 2nd sending 3rd sending 4th sending Re send So seconds 3 times 10 seconds l KEY POINTS e Communication errors occurring in the unit can be minimized by increasing the number of re transmission times Corrective measures should also be taken on the computer side such as increasing the number of times that data is sent e The max number of times data is sent is 12 e If UDP IP is being used re sending is not carried out 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 E List of setting items SNTP server Setting item Default Setting method Specification SNTP server address Select the setting for SNTP server Setting method eee IPv4 specified by IP address IPv4
28. Communication 0008 5 1 5 1 Types of MEWTOCOL Communication sssdss aaa 5 2 5 1 1 MEWTOCOL DAT Binary Communication ssssasss s 5 2 5 1 2 MEWTOCOL COM ASCII Communication aasss asas 5 2 5 2 List of MEWTOCOL Supporting Commands a a 5 3 52 I MEWTOGCOLEDA T eekiduiatei ea dast ar 5 3 5 22 MEWTOGOL COMitsitenk oie Ma EA ss 5 3 5 2 3 MEWTOCOL7 COM uo aaa 5 3 5 3 MEWTOCOL Master Communication RECV eee eeeeiteeeeeeeeeeees 5 4 5 3 1 Read Data From an External Device iiii aaa 5 4 5 3 2 RECV Command When MEWTOCOL is Used iia aaa 5 6 5 4 MEWTOCOL Master Communication END a 5 7 5 4 1 Write Data into an External Device iiiiii aaa 5 7 5 4 2 SEND Command When MEWTOCOL is Used iia a 5 9 6 MODBUS TCP Master Slave Communication 6 1 6 1 MODBUS TCP Format 6 2 6 1 1 MODBUSAGP 23 es eh iettt aorta hd dd tee DS ta s 6 2 6 2 List of MODBUS TCP Supported Commands 0 eseeeteeeeeeeeeeees 6 3 6 2 1 List of MODBUS Function Codes u cece ccccceeseeeccesseeesessaueeeeeeeaaaas 6 3 6 3 MODBUS TCP Master Communication RECV seeeeeeeeeee 6 4 6 3 1 Read Data from an External DeViCe ccc cece cccsce esses ee eeeneeeeeeee 6 4 6 3 2 RECV Command MODBUS Function Code Specified Type 6 7 6 3 3 RECV Command MODBUS Function Code Unspecified Type 6 8 6 4 MODBUS TCP Master Commu
29. DT401 and write the content into PLC s data register DT100 DT101 e Confirm that Connection 1 is established in the master mode X90 and that the sending process is not in progress for the same port Y90 and start up the SEND command e In the UNITSEL command specify the slot No LAN port U100 and the connection No U1 e In the RECV command specify and execute the partner station no U1 initial address DT400 No of data U2 and initial address on the PLC side to save data DT100 Starting conditions for RECV execution X90 RO DF m Clear to send Sending master Execute master communication flag RECV R100 communication flag UNITSEL U100 R100 Settings for communication port i S1 CPU LAN port U100 S2 Connection 1 U1 RECV processing S1 Partner station no U1 S2 Data address DT400 n No of data U2 i D1 Data saving area DT100 D2 Execution result code DTO S1 S2 n D1 D2 5 4 5 3 MEWTOCOL Master Communication RECV E Timing chart LA Clear to send master a ads onamo to enable execution of REC communication flag comman j A Clear to send flag X90 X9F ON 90 XIF Sonn ON Sending flag Y90 Y9F OFF Sending master Confirm OFF communication flag Y90 Y9F Sending flag Y90 Y9F During the sending process ON During execution of ED command following response reception processing
30. External device Command message DT100 U6 ABCD 1 2 00001 3231 gt DT101 BA 00002 seess DT102 DC SS lt _ 00003 tresses XYZ DT103 3231 Ie Response message Specify and write address based on GPSEND GPRECV command Note The above figure indicates the data part In communication via LAN a header including size information of the sent data is added p KEY POINTS e There is no relevance between the operation of transmission by GPSEND command and the operation of reception by GPRECV command 7 2 7 1 Operation of General Purpose Communication 7 1 3 Sending Format in General Purpose Communication HM Difference in operation based on selection of communication types e Data to be sent received in LAN communication vary based on settings for user connection information communication type Communication Maximum no Attach a dedicated attached to type Kids of bytes Receiving operation Setting method Setting yp for sent data A header is The receiving process is Select this when completed when data general purpose message header the message Within 16 384 that correspond to the communication is before bytes No of sent bytes as not executed with indicated in the header the FP2 ET LAN sending h ave been received unit Select this when The receiving process is general purpose Do not attach a A header is ae completed when there is communication is
31. FP2 ET LAN for the MEWTOCOL communication type 4 3 Setting and Operation of User Connection 4 2 Communication Processing 4 2 1 Communication Operation Operation following connection e Once connection is established PLC and devices can communicate in the respectively specified operation mode e By default the FP7 CPU unit is set to enable slave communication e When master communication is to be performed from the FP7 CPU unit to devices use the dedicated commands SEND RECV When general purpose communication is to be performed use GPSEND GPRECV commands e In the case of master communication commands SEND RECV PLC automatically generates communication formats that support the protocol for each communication mode MEWTOCOL DAT MEWTOCOL COM MODBUS TCP e When commands are sent from a higher device to the FP7 CPU unit in communication formats that support the protocol for each communication mode MEWTOCOL DAT MEWTOCOL COM MODBUS TCP data are sent attached with the Ethernet header as necessary to be selected by protocol or by partner Here the FP7 CPU unit responds automatically so no program concerning communication is necessary on the PLC side M Confirm sending reception of each communication e When communication is performed from the FP7 CPU unit and devices the operation devices X Y allocated to built in ET LAN are used for confirming reception reading data and or confirming sending completion
32. L Do not connect with FP2 Select Do not connect with FP2 ET LAN R communication type ET LAN S Open method Server connection Select connection function settings server S server client unspecified partner connection unspecified partner e o Open method Select the connection open method auto manual E auto manual AVE Select Auto OPEN o Communication method TCP IP Select the communication protocol TCP IP Source node port No Connection 01 32769 Connection 02 32770 Connection 03 32771 Connection 04 32772 Specify the source node sender port number Partner node port No Connection 01 32769 Connection 02 32770 Connection 03 32771 Connection 04 32772 Specify the partner node receiver port number This needs not to be set if the partner node is not specified Connection closing time Connection 01 6000 Connection 02 360000 Connection 03 360000 Connection 04 360000 Setting unit Input the no connection communication monitoring time Connection is automatically cut off when no connection communication exceeds the specified time Partner node Setting method Specification using IP address IPv4 Select the setting for partner node IP address This needs not to be set if the partner node is not specified Partner node IP address and name 0 0 0 0 Specify the setting for partner node IP address host name This needs not to be set if the p
33. Panasonic PROGRAMMABLE CONTROLLER FP7 CPU Unit User s Manual LAN port communication WUME FP7LAN 01 2013 3 panasonic net id pidsx global Safety Precautions Observe the following notices to ensure personal safety or to prevent accidents To ensure that you use this product correctly read this User s Manual thoroughly before use Make sure that you fully understand the product and information on safety This manual uses two safety flags to indicate different levels of danger WARNING If critical situations that could lead to user s death or serious injury is assumed by mishandling of the product Always take precautions to ensure the overall safety of your system so that the whole system remains safe in the event of failure of this product or other external factor Do not use this product in areas with inflammable gas It could lead to an explosion Exposing this product to excessive heat or open flames could cause damage to the lithium battery or other electronic parts CAUTION If critical situations that could lead to user s injury or only property damage is assumed by mishandling of the product To prevent excessive exothermic heat or smoke generation use this product at the values less than the maximum of the characteristics and performance that are assured in these specifications Do not dismantle or remodel the product It could cause excessive exothermic heat or smoke generation Do not touch th
34. Setting on the Programming Tool Side e Settings should be performed on the programming tool FPWIN GR7 side PROCEDURE 1 From the menu bar select Online gt Communication Settings The Communication Settings dialog box is displayed 2 Switch the port to be used to LAN Setting items for LAN connection are displayed r Communications settings FPWIN GR7 Computer communications port a Port to use Communications condition settings Title Default E Please select if the connection destination is an ET LAN unit x Port No 0 0 1025 65535 Port No 1025 1 65535 1 Timeout settings Communications timeout sec se Connection timeout sec Register Settings A ListRegistrations 3 In the Connection destination setting field input the IP address and the port number 4 Press OK button 3 9 Configuration 3 6 Setting of User Connection 3 6 1 List of Setting Items E List of setting items Setting item Default Setting method Operation Mode Setting MEWTOCOL COM Select an operating mode MEWTOCOL COM MEWTOCOL COM7 MODBUS TCP MEWTOCOL DAT general purpose communication Specifying use of connection Not use Specify whether each connection is to be used MEWTOCOL communication type Conditions to be selected vary by the selected operation mode is selected MEWTO
35. ader of the source node data area Note 1 1 127 words n Specify the No of sent data Note 2 1 2040 bits D1 Specify the partner station no H1 HF7 1 247 Specify the initial address of the receiver node data area in the partner M N D2 node Note 1 Note 3 HO HFFFF 0 65535 D3 Specify the device area in the source node to save the execution result Note 4 code one word Note 1 Types of devices and transmission methods to be specified for operands S and D2 and MODBUS function codes to be used for command execution vary Types of device to be specified in S Transmission method MODBUS function codes to be used for command execution 16 bit device WX WY WR WL DT LD Register transmission Force Multiple Coils 15 Preset Multiple Registers 16 1 bit device X Y R L DT n LD n Bit transmission Force Multiple Coils 15 Note 2 The No of sent data n is on a word basis for register transmission and on a bit basis for bit transmission Note 3 16 bit device WX and WL and 1 bit device X L DT n and LD n cannot be specified for the header of the receiver data in the partner node Note 4 Devices that can be specified for D3 are WX WY WR WL DT LD Saved as one word in the specified area 0 Communication port is being used for master communication Communication port is being used for slave communication No of master communication comman
36. artner node is not specified Configuration F R FP7 configuration Memory configuration CPU configuration 1 0 map Built in SCU Built in ET LAN Setting item amp Operating mode setting Connection to use specification MEWTOCOL communications type Open type server client Open type automatic manual Communication type Home port number Destination port number Unused connection disconnect time Destination setting method Destination IP address name Operating mode setting Connection to use specification MEWTOCOL communications type Open type server client Open type automatic manual Communication type Home port number Destination port number Unused connection disconnect time Nectinatinn cattine method Setting description MEWTOCOL COM Use Not connect to FP2 ET LAN Server connection any destin tion Open automatically TCP IP 32769 32769 6000 Specify by IP address IPv4 00 0 0 MEWTOCOL COM Use Not connect to FP2 ET LAN Server connection any destination Open automatically TCP IP 32770 32770 360000 Snerifu hw TP address Pw Setting screen for system connection KEY POINTS Read PLC Hount e System connection is aimed at connecting a programming tool Use this in default settings MEWTOCOL COM server connection unspecified partner Auto OPEN TCP IP 3 8 3 5 Setting of System Connection 3 5 2
37. cation e Upto 16 SEND RECV commands can be executed simultaneously for different connections e Inthe MODBUS TCP mode specify the partner station no for the operand of SEND RECV command 6 10 6 4 MODBUS TCP Master Communication SEND 6 4 2 SEND Command MODBUS Function Code Specified Type Command format RO o seno us or100 U10 H1004 HFF DTO H i S n Di D2 D3 M Operand Items Settings Setting range i Specify the operation unit US SS S Specify the header of the source node data area Note 1 1 127 words n Specify the No of sent data Note 1 Note 2 1 2040 bits Specify the MODBUS command and partner station no to be used Note 3 Higher Two hexadecimal digits that indicate the D1 byte MODBUS function code HAG RE HNO Lower Two hexadecimal digits that indicate the station H1 HE7 1 247 byte no D2 Specify the header of the MODBUS address in the receiver data area in HO HFFFF 0 65535 the partner node D3 Specify the device area in the source node to save the execution result Note 4 code one word Note 1 Based on the types of device specified in operand S and the No of sent data specified in n the transmission methods and MODBUS function codes that can be used vary to Bee acne dee ha Nes male Values that can be specified in P n higher bytes of D1 H6 Preset Single Register 06 16 bit device re
38. ching between different speeds is done automatically by auto negotiation function Note 2 The standards cite 100 m as the maximum but noise resistance measures such as attaching a ferrite core may be necessary in some cases depending on the usage environment Also it is recommended to position a hub near the control board and limit the length within 10 m Note 3 Used when connecting tool software via LAN 8 2 8 2 MEWTOCOL DAT Format 8 2 MEWTOCOL DAT Format 8 2 1 MEWTOCOL DAT Command Format in LAN Command Format e 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 eWhen the PLC side has the sending right and executes the sending receiving process PLC automatically attaches these data when SEND RECV command is executed Therefore it is not necessary to take account of these data in a user program Command message 10H 00 H Data size L Data size H 02H 00 H 02H 00 H 00 H 00 H MEWTOCOL station no of receiver Note1 User connection No of sender MEWTOCOL DAT Command data part Note 2 MEWTOCOL station no of receiver Response data part Response message 10H 00H Data size L Data size H 02H 00H 02H 00H 00H 00H User connection No of sender Note1 MEWTOCOL DAT Note 2 Note 1 MEWTOCOL station no of the receiver varies based on se
39. cord of changes Manual No Date Record of Changes WUME FP7LAN 01 Mar 2013 First Edition Please contact Panasonic Industrial Devices SUNX Co Ltd IM Overseas Sales Division Head Office 2431 1 Ushiyama cho Kasugai shi Aichi 486 0901 Japan IM Telephone 81 568 33 7861 W Facsimile 81 568 33 8591 panasonic net id pidsx global About our sale network please visit our website Panasonic Industrial Devices SUNX Co Ltd 2013 arch 2013 PRINTED IN JAPAN WUME FP7LAN 01
40. ds that can be used simultaneously has been exceeded Sending timeout Response reception timeout Received data error OahWN Normal completion 6 12 l General Purpose Communication General Purpose Communication 7 1 Operation of General Purpose Communication 7 1 1 Read Data from an External Device E 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 PLC External device Command message DT100 U5 ABCDE 00001 H 32 31 P DT101 BA 00002 H 34 33 DT102 DC 12345 00003 H 35 DT103 EJ J fa Response message Specify and read address based on GPSEND GPRECV command Note The above figure indicates the data part In communication via LAN a header including size information of the sent data is added 7 1 2 Write Data into an External Device E Write data into 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 PLC
41. e 5 timer value check packet is re sent when the receive window size of the other node becomes 0 Setting range 0001 FFFF by 100 ms TCP re transmission 5 With TCP this specifies the time until data is re sent if ACK is timer value not sent by the other node when data transmission etc is carried out Setting range 0001 FFFF by 100 ms This specifies the time waited until open processing is carried TOF clos d Umer value 20 out when the same port is being re opened when TCP close processing is done by the source node IP assemblina timer Setting range 0001 FFFF by 100 ms 9 3 This specifies the time waited for the next portion of data when value M s f data split by the IP is being received Setting range 0001 FFFF by 1 ms 4 S When divided TCP segments are received specify the time for TCP terminal detection 20 PRI s timervalue monitoring the arrival of the following segment TCP reception is regarded as completed if no data are received after the time as specified above has passed IP address of the DNS Set manually server Prioritized DNS server 0 0 0 0 Substitute DNS server 0 0 0 0 Configuration 3 2 2 Setting Each Timer Value And Timeout Value For setting each timer value and timeout value please refer to the description below M Timer setting conditions in FPWIN GR7 Timer setting conditions in FPWIN GR7 are as follows e TCP closed timer value 2 TCP ULP timeout value 2 T
42. e specified 1 word contact information Read contact Read ON OFF status of contact in the specified 1 word A i 53H D3H information contact 3 Data The content of this varies depending on the type of command The content should be noted following the fixed formula for the particular command 8 2 MEWTOCOL DAT Format E Example of command response message Below is shown an example of Read data area command code 51H Command 80H 51H Area code Starting word No x161 x160 x163 x162 x161 x160 x163 x162 No of specified words n lower word higher word lower word higher word Normal response Read successful Data contents 1 x161 x160 x163 x162 80H D1H FFH Data contents N x161 x160 x163 x16 lower word higher word lower word higher word Reading data n items Do not connect with FP2 ET LAN n 1 to 2038 Connect with FP2 ET LAN n 1 to 1020 Error response Read error 80H D1H Error code Specifications 8 3 MEWTOCOL COM Format 8 3 1 MEWTOCOL COM Command Format in LAN Communication M Format of command response message e Data to be sent received in LAN communication vary based on settings for user connection information MEWTOCOL communication type Configuration MEWTOCOL Format of command and response communication type setting N Only send the MEWTOCOL COM command data part or the MEWTOCOL Do not
43. e terminal while turning on electricity It could lead to an electric shock Use the external devices to function the emergency stop and interlock circuit Connect the wires or connectors securely The loose connection could cause excessive exothermic heat or smoke generation Do not allow foreign matters such as liquid flammable materials metals to go into the inside of the product It could cause excessive exothermic heat or smoke generation Do not undertake construction such as connection and disconnection while the power supply is on It could lead to an electric shock Copyright Trademarks 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 Ethernet is a registered trademark of Fuji Xerox Co Ltd and Xerox Corp All other company names and product names are trademarks or registered trademarks of their respective owners PLC_ORG_ET 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 e There are different types of users manual for the FP7 series as listed below Please refer to a relevant manual for the unit and purp
44. error occurs Abort AB Aborts reception of multiple frame responses before completion Note Some devices are not accessible due to format restrictions of MEWTOCOL COM communication commands 5 2 3 MEWTOCOL7 COM M 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 MEWTOCOL Master Slave Communication 5 3 MEWTOCOL Master Communication RECV 5 3 1 Read Data From an External Device E 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 can be done simply by specifying the station no and memory address and executing RECV commands PLC Our PLC supporting MEW TOCOL DAT Command message DT100 100 Hex 80 51 09 90 01 02 00 DT00400 100 DT101 0 kr 7 a DT00401 0 izde E Hex 80 D1 FF 64 00 00 00 ata eset ees Response message Specify and read write address based on SEND RECV command Note The above figure indicates the data part of MEWTOCOL DAT In communication via LAN a header including size information of the sent data is added E Sample program e Send commands from the LAN port of the CPU unit read data from the data area of an external device DT400
45. ethods for connecting a virtual communication line between FP7 and an external device e Server connection refers to a method to wait for connection from another client e Client connection refers to a method to connect a virtual communication line from the FP7 CPU unit to another external device port Even if connection fails repeated connection attempts are made at a specified interval M Master communication and slave communication e These indicate methods for actually sending receiving messages and data between FP7 and an external device e In master communication PLC sends commands and receives responses In slave communication commands are received from an external device and responses are returned In a system using FP7 whether server connection or client connection is selected once connection is opened and a virtual communication line is connected commands and responses can be sent and received from both sides Virtual line connection Virtual line connection from external device from FP7 CPU FP7 CPU m server External device FP7 CPU it i i client connection connection Ethernet client connection citom Ethernet connection IP XXXXXX LAN IP XXXXXX IP XXXXXX LAN IP XXXXXX Command Command Master Master communication Response communication Response Command Command Slave Slave communication Response communication Response 2 Installation and Wiring Installation and Wiring 2 1 Installation En
46. fy the No of sent data Note 3 1 2040 bits D1 Specify the device initial address of the receiver node data area in the Note 4 source node Note 1 D2 Specify the device area in the source node to save the execution result Note 5 code one word Note 1 Types of devices and transmission methods to be specified for operands S2 and D1 and MODBUS function codes to be used for command execution vary Device to be specified Transmission MODBUS function codes for S2 and D1 method to be used for command execution Read Coil Status 01 16 bit device Register Read Input Status 02 WX WY WR WL DT LD transmission Read Holding Registers 03 Read Input Registers 04 1 bit device Bitt ci Read Coil Status 01 It transmission X Y R L DT n LD n Read Input Status 02 Note 2 Bit device L DT n and LD n cannot be specified for the header of the sender data in the partner node Note 3 The No of sent data is on a word basis for register transmission and on a bit basis for bit transmission Note 4 Devices that can be specified for D1 are WX WY WR WL DT LD Note 5 Devices that can be specified for D2 are WX WY WR WL DT LD Saved as one word in the specified area Normal completion Communication port is being used for master communication Communication port is being used for slave communication No of master communication commands that can be used simu
47. ication interfaces 100BASE TX and 10BASE T 100BASE TX and 10BASE T are automatically switched by the auto negotiation function 4 USB Port This is equipped to a standard model of CPU unit This is used when connecting tool software REFERENCE e For communication using the COM port please see the CPU Unit Users Manual COM Port Communication Cy 3 1 2 1 1 Communication Ports of CPU Unit 1 1 2 LAN Port Specifications M 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 Pin no Signal name TX TX RX Not used Not used RX Not used SINIJA BJ wo n Not used E Functions of LED lamps 1 LINK Turns on when connection is established between the FP7 CPU unit and a device on Ethernet 2 ACK Flashes when some communication is in progress with a connected device e g sending receiving a command or response 1 3 Communication Functions of CPU Unit 1 2 Functions of LAN Port 1 2 1 Communication Functions of FP7 CPU Unit H Configuration chart IP address XXXXXXXX IP address XXXXXXXX IP address XXXXXXXX E Communication functions of FP7 CPU Unit e The FP7 CPU Unit can open a virtual communication line with an Ethernet supporting device connected to
48. ion Select a desired communication method for each connection method for each connection Port 16 IP XXXX Port 16 Port 8015 Port XXXX 8015 XXXX Note Circled numbers in the figure above indicate examples of allocation of connection numbers E Connection operation e Connection is opened from either the FP7 CPU unit side or the external device side e The open method should be selected from server connection unspecified partner server connection specified partner and client connection in the configuration menu of FPWIN GR7 e Once connection is established communication by a user program becomes possible in accordance with the operation mode E Supported operation mode Baer MEWTOCOL7 COM General ormen ain MEWTOCOL DAT MEWTOCOL COM MODBUS TCP piece p Master Slave Master Slave Master Slave communication LAN port e o Note Note MEWTOCOL7 COM does not support master functions Communication Functions of CPU Unit 1 3 Overview of Communication Functions 1 3 1 MEWTOCOL DAT Master Slave Communication Binary Communication M Overview of function e Execute communication using MEWTOCOL DAT a communication protocol usd by our PLC e One of the PLC has the sending right and executes communication by sending commands to PLCs that support MEWTOCOL DAT and receiving responses e The slave side PLC responds automatically so no program concerning communication i
49. ion Functions of FP7 CPU UhNit sssssdddaaa 1 4 1 2 2 System Connection arniran lene ne E AE AA ESARET AR 1 4 12 3 Use CONNEC IOM a ieee nada 1 5 1 3 Overview of Communication Functions c cccceceeeeeeeeeeeeeeeeeeeeeeeeeees 1 6 1 3 1 MEWTOCOL DAT Master Slave Communication Binary Communication transtera a ee ite ied clan ati 1 6 1 3 2 MEWTOCOL COM Master Slave Communication ASCII Communication acide a i nd nt ate t lad 1 7 1 3 3 MODBUS TCP Master Slave Communication 0 ccc ceeeeeeeeeeetees 1 8 1 3 4 General Purpose Communication cccceeeeeceeceeeeeeeeeeteenieaeeeeees 1 9 t4 Termssac nesen s as Sea 1 10 Installation and Wiring aaaaaaa aaa eee 2 1 2 1 Installation Environment and Wiring for LAN Ports 2 2 2 1 1 Before Installation and Wiring isididdd aa 2 2 2 1 2 Installation Environment and Noise Control Measures 0 0 c08 2 2 2 2 Wiring the LAN POfti st essassdsddd e as as 2 3 2 3 Noise Control Measures i aaa 2 4 2 3 1 Guidelines to Noise Generation 2 4 2 3 2 Taking Corrective Measures through the Application eee 2 4 Table of Contents Gonliglit fl0fisias sssisasusz sa is is rianda nasaian repai aitaka ainan 3 1 3 1 Procedure for Setting Communication Conditions 3 2 3 11 Setup Procedure rer esas as s r Agatas ada 3 2 3 2 Setting Basic Communication Information ssssaasaaaaa se 3 3 2 1 Listof
50. irm that the clear to send general purpose communication flag X80 X8F for the targeted connection has turned ON and execute GPSEND command e GPSEND command cannot be used in an interrupt program 7 7 General Purpose Communication 7 3 Receiving Operation 7 3 1 Overview of Receiving Operation M 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 PLC External device Reception buffer one for each connection Receive message data 00001 21 sereen H 31 32 33 34 35 4 00002 43 Operation 12345 00003 5 memory fe eee DT200 U5 DT201 H 32 31 DT202 H 34 33 Transfer the received data to a given operation memory based on GPRECV command DT203 H 35 Note The above figure indicates the data part In communication via LAN a header including size information of the sent data is added E Sample program e When the reception done flag X70 for Connection 1 turns ON the reception program is started up by the GPRECV command e In the UNITSEL command specify the slot No LAN port U100 and the connection No U1 In the GPRECV command specify and execute the header of the data table where the received message is saved DT200 and the final address DT209
51. is is also effective as a lightning shield for outdoor wiring e Metal panels and metal ducts should be grounded at a grounding resistance of 100 O or less Also metal panels and metal ducts should be insulated so that they do not come in contact with communication devices or cables 2 2 2 2 Wiring the LAN Port 2 2 Wiring the LAN Port E Selection of UTP cables e Use Category 5 UTP cable e t is recommended to use a UTP cable of 10 m or shorter taking account of noise resistance eIn an environment where noise may occur attach a ferrite core near the CPU unit on the UTP cable It is also recommended to use a shielded cable e For installation of 100BASE TX or 10BASE T hub laying of cables etc please consult a specialized construction company If this construction work is done incorrectly it can adversely affect the entire network and can cause accidents 2 3 Installation and Wiring 2 3 Noise Control Measures 2 3 1 Guidelines to Noise Generation If any of the following are occurring there is a danger that external noise is affecting the communication circuit Appropriate measures should be taken e Check to see if a communication error is occurring in synchronization with the operation of the device If either of these is happening in synch with the operation of the device take whatever measures are necessary to suppress the generation of noise from the device side 2 3 2 Taking Corrective Mea
52. ltaneously has been exceeded Sending timeout Response reception timeout Received data error OuahWN O 6 8 6 4 MODBUS TCP Master Communication SEND 6 4 MODBUS TCP Master Communication SEND 6 4 1 Write Data into an External Device E 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 In the user program reading and writing can be done simply by specifying the station no and memory address and executing SEND RECV commands PLC External device Command message supporting Modbus TCP DT100 4190 Hex 01 10 00 00 00 02 04 00 64 00 00 29091 mi 100 DT101 0 _ _W gt 40002 0 Hex 01 10 00 00 00 02 Response message Specify and write address based on SEND command Note The above figure indicates the data part of Modbus function In communication via LAN a header including size information of the sent data is added E Sample program e Send a MODBUS command 16 from the LAN port of the CPU unit and write the content of PLC s data register DT100 DT101 into the data area of an external device 40001 40002 MODBUS address 0000H 0001H e Confirm that Connection 1 is established in the master mode X90 and that the sending process is not in progress for the same port Y90 and start up the SEND command e I
53. n 10 COM or MODBUS TCP the flag is Clear to send ON MEWTOCOL DAT X9A Connection 11 master PAES communication e When the connection is not ON MEWTOCOL COM X9B Connection 12 flag the flag is OFF MODBUS TCP X9C Connection 13 e When connection is in general X9D Connection 14 le communication the flag is X9E Connection 15 i X9F Connection 16 Setting and Operation of User Connection E Output signal Output Response Liga Effective 2 z Nam Description signal connection ame sesh Operation mode Y70 Connection 1 Y71 Connection 2 e This reports the result when the execution of the general purpose communication General purpose Y79 Connection 10 sending command GPSEND communication or the master communication YTA Connection 11 Sending done commands SEND RECV has MEWTOCOL COM Y7B Connection 12 result flag been completed 5 MEWTOCOL DAT Y7C C ion 13 e The flag turns OFF when master onnection transmission has been Y7D Connection 14 completed normally and turns MODBUS TCP master 7 ON when transmission has Y7E Connection 15 been completed abnormally Y7F Connection 16 Y80 Connection 1 Y81 Connection 2 e The flag turns ON at the start m of execution of the general purpose communication Y89 Connection 10 Clear to send sending command GPSEND general and turns OFF when sending Y8A Connection 11
54. n the UNITSEL command specify the slot No LAN port U100 and the connection No U1 e In the SEND command specify and execute the PLC initial address DT100 No of data U2 MODBUS command 16 H10 partner device station no H01 and initial address HO For the address of the partner device please check operating instructions etc of the relevant device i SEND execution conditions Clear to send flag ON Sending flag OFF RO X90 DF Clear to send Sending master SEND master communication flag execution R100 communication flag relay i Settings for communication port S1 CPU LAN port U100 S2 Connection 1 U1 Execute SEND command S Data saving area DT100 i n No of sent data U2 D1 MODBUS code H10 and i partner station no H01 D2 Transmit to address HO D3 Execution result code DTO S n D1 D2 D3 6 9 MODBUS TCP Master Slave Communication E Timing chart Le Conditions to enable execution of SEND command Clear to send flag X90 X9F ON Sending flag Y90 Y9F OFF Clear to send master communication flag X90 X9F Confirm ON Sending master Confirm OFF communication flag Y90 Y9F Sending flag Y90 Y9F i During the sending process ON During execution of ED command following response reception processing Execute SEND OFF Master communication Sending done resul
55. nection Open type automatic manual Open automatically Communication type TCP IP Home port number 0 Destination port number 0 Unused connection disconnect time 0 v Read FLC Hount Initialize Setting screen for user connection Configuration 3 6 2 Specifying Port Number HM Port number settings e Port numbers are allocated in order for the various communication processes provided by the TCP IP or UDPIIP to be differentiated by the programmable controller or the computer e The restrictions that apply to available port numbers are different for TCP IP and UDP IP as indicated in the table below Applicable 4 l ii communication Setting status of port no in open processing protocol TCP IP UDP IP Source node Partner node Multiple settings for both Connection 1 O source node port number i and partner node port Connection 2 number Source node Partner node Single setting for source Connection 1 node port number Multipl multiple settings for uap e Connection 2 partner node port number connections ki 4 vil Source node Partner node Multiple settings for partner node Connection 1 source node port number single setting for partner Connection 2 node port number Source node Partner node Neither source node port Connection 1 number nor partner node Connection 2 port number can be set to single setting Source node Partner node Connection 1 source node
56. nection to be used to Use these settings By default Do not use these settings is selected In the case of client connection when Use these settings is selected and if connection is failed it is regarded as a communication error 4 1 3 Open Method Server Client Select the open method for establishing connection Setting item Operation Server connection unspecified partner Wait for connection from an unspecified client Server connection specified partner Wait for connection from a specified client Client connection Connect to the partner port of server connection 4 1 4 Open Method Auto Manual The operation varies according to settings Select Auto OPEN Settings Operation e When the power is turned ON the FP7 CPU unit automatically opens a virtual communication line with devices in accordance with user connection information open method communication method port number partner unit IP address in the configuration menu Auto OPEN e In the case of client connection when connection cannot be established because the partner device is turned OFF or for other reasons the unit makes repeated connection attempts at a specified interval e In the case of server connection the connection status is set to open and the unit waits for connection from the client Do not auto OPEN No process 4 2 4 1 Configuration Concerning Open Process 4 1 5 Instruction
57. nication SEND eeseeeeeeee 6 9 6 4 1 Write Data into an External Device iiilii aaa 6 9 6 4 2 SEND Command MODBUS Function Code Specified Type 6 11 6 4 3 SEND Command MODBUS Function Code Unspecified Type 6 12 Table of Contents General Purpose COMMUNICATION aaa aaa eee 7 1 7 1 Operation of General Purpose Communication 7 2 7 1 1 Read Data from an External Device 0 ei a 7 2 7 1 2 Write Data into an External Device 0 ce eceeceeeeeeeeeneeeeeenneeeeeeneeeeeeaas 7 2 7 1 3 Sending Format in General Purpose Communication 7 3 7 2 Sending Operati0 l it s uz sas Kiss oe SG tee ten ee Soe ene ada 7 4 7 2 1 Overview of Sending Operation isssa sa 7 4 7 2 2 Contents of Sent Data aa 7 6 7 2 3 GPSEND General Purpose Communication Sending Command 7 7 7 3 R celving Op f ti6Ni ssesssseccnas aca udsad si akta dd e saks ie aug 7 8 7 3 1 Overview of Receiving Operation aaaa aa 7 8 7 3 2 Contents of Received Data iiiii dd 7 10 7 3 3 GPRECV General Purpose Communication Receiving Command 7 11 Specifications eei ti sd 8 1 8 1 Specifications of CPU Unit LAN Port Communication Function 8 2 8 2 MEWTOCOL DAT Format ccccccccccescscsesseeceeeeseseeseesseceeeesseseeseaeeeees 8 3 8 2 1 MEWTOCOL DAT Command Format in LAN Command Format 8 3 8 2 2 MEWTOCOL DAT Command Response Format
58. nnot execute SEND RECV command for connection in slave communication e Upto 16 SEND RECV commands can be executed simultaneously for different connections e Inthe case of communication between FP7 LAN ports specify U1 for the partner station no The receiver is specified by IP address MEWTOCOL Master Slave Communication 5 3 2 RECV Command When MEWTOCOL is Used Command format RO o Jrecv us Ut or400 U2 or100 DTO i Si S2 n D1 D2 Setting range Items Settings MEWTOCOL DAT MEWTOCOL COM i Specify the operation unit US SS S1 Specify the partner station no 1 64 Note 1 Specify the device initial address of the source 2 node data area in the partner node Note 2 Note 3 0 7 69935 07 22993 1 2038 words 1 507 words n Specify the No of sent data Note 4 or 1 bit Note 5 or 1 bit D1 Specify the device initial address of the receiver Note 2 node data area in the source node D2 Specify the device area in the source node to save Note 6 the execution result code one word Note 1 Specify 1 for connection between FP7 units The receiver is specified by IP address Note 2 Transmission methods vary by the type of device to be specified for the operands S2 and D1 Device to be specified for S2 and D1 Transmission method 16 bit device WX WY WR WL DT LD Register transmission 1 bit device X Y R L DT n LD n Bit
59. ntains a large number of characters send the command divided in several times e When the message contains a large number of characters the response is sent divided in several times l KEY POINTS e Anexpansion header lt is supported to send single frames of up to 2048 characters as well as general Type of No of characters that can be header sent in 1 frame Max 118 characters lt Max 2048 characters 8 8 8 3 MEWTOCOL COM Format 8 3 3 MEWTOCOL COM Response Format E Response message After PLC receives a command it returns the processing result 1 Header 2 Station no of source PLC that processed the command decimal Text rats Hg ie and communication error codes are stored here 4 Check code BCC Hexadecimal i Terminator Two One res brits Read value Processing results for contact area read contact is off name e g read contact area Response code indicates a normal processing result indicates that an error occurred 1 Header start code eA ASCII code H25 or lt ASCII code H3C must be at the beginning of a message e The response must start with the same header that was at the beginning of the command 2 Station no This is the station no of the PLC that processed the command 3 Text The content of this varies depending on the type of command If the processing is not completed successfull
60. ommands 5 2 List of MEWTOCOL Supporting Commands 5 2 1 MEWTOCOL DAT Type of instruction Code Description Write data area 50H Writes data to a data area Read data area 51H Reads the contents of a data area Write contact information 52H Turn ON or OFF contact in the specified area Read contact information 53H Read ON OFF status of contact in the specified area 5 2 2 MEWTOCOL COM Type of instruction Code Description RC Reads ON OFF status of contact RCS Specifies only a single contact Read contact area RCP Specifies multiple contacts RCC Specifies a range in word units WC Turns ON or OFF the contact WCS Specifies only a single contact Write contact area WCP Specifies multiple contacts WCC Specifies a range in word units Read data area RD Reads the contents of a data area Write data area WD Writes data to a data area Register or RESeLCONTACIS MC Registers the contact to be monitored monitored Register or Reset data monitored MD Registers the data to be monitored Monitoring start MG Monitors a registered contact or data using MC and MD Preset contact area sc Embeds the area of a specified range in a 16 point on off fill command pattern Preset data area SD Writes the same contents to the data area of a specified fill command range Read the status of PLC RT Reads the specifications of the programmable controller and error codes if an
61. ommunication 6 3 MODBUS TCP Master Communication RECV 6 3 1 Read Data from an External Device E 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 In the user program reading can be done simply by specifying the station no and memory address and executing RECV commands External device PLC Command message supporting Modbus TCP DT100 100 Hex 01 03 00 00 00 02 40001 100 DT101 0 40002 0 ietu sus Hex 01 03 04 00 64 00 00 ragus eer Response message Specify and read address based on RECV command Note The above figure indicates the data part of Modbus function In communication via LAN a header including size information of the sent data is added M Sample program e Send MODBUS commands 03 from the LAN port of the CPU unit read data from the data area of an external device 40001 40002 MODBUS address 0000H 0001H and write the content into PLC s data register DT100 DT101 e Confirm that Connection 1 is established in the master mode X90 and that the sending process is not in progress for the same port Y90 and start up the SEND command e In the UNITSEL command specify the slot No LAN port U100 and the connection No U1 e In the RECV command specify and execute the types of MODBUS commands as
62. or reading the operation status Do not write over it with a user program p KEY POINTS e Specify the connection targeted for communication using UNITSEL command immediately before GPSEND command e Maintain the ON conditions for GPSEND command until sending is completed and the sending general purpose communication flag Y80 Y8F turns OFF General Purpose Communication 7 2 2 Contents of Sent Data Strings data sent by the GPSEND command are converted into ASCII text and saved in a given data register M Sent data table e 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 DT100 After executing SSET command the No of characters is set DT101 Strings of the No of bytes specified by GPSEND command Dros are sent in ascending order from lower bytes DT103 DT104 e No start code or end code are attached to data that are sent from the FP7 CPU unit When it is necessary to send a start code and an end code in accordance with the protocol of an external device save them as a part of sent data e The data size that can be sent in a single transmission based on GPSEND command from the LAN port of the FP7 CPU unit is up to 16 384 bytes 7 6 7 2 Sending Operation 7 2 3 GPSEND General Purpose Communication Sending Command Command forma
63. ose of your use e The manuals can be downloaded on our website http industrial panasonic com ac e dl center manual Unit name or purpose of use Manual name Manual code FP7 Power Supply Unit FP7 CPU Unit FP7 CPU Unit Users Manual Hardware WUME FP7CPUH Instructions for Built in COM Port FP7 Extension Communication Cassette FP7 CPU Unit Users Manual COM Port Communication WUME FP7COM Instructions for Built in LAN Port FP7 CPU Unit Users Manual LAN Port Communication WUME FP7LAN FP7 Digital Input Output Unit FP7 Digital Input Output Unit Users Manual WUME FP7DIO FP7 Analog Input Unit FP7 Analog Input Unit Users Manual WUME FP7AIH FP7 Analog Output Unit FP7 Analog Output Unit Users Manual WUME FP7AOH FP7 Positioning Unit FP7 Positioning Unit Users Manual WUME FP7POSP PHLS System PHLS System Users Manual WUME PHLS Programming Software FPWIN GR7 FPWIN GR7 Introduction Guidance WUME FPWINGR7 Table of Contents Table of Contents 1 2 Communication Functions of CPU Unit see 1 1 1 1 Communication Ports of CPU Unit cc aaa 1 2 1 1 1 Types and Purposes of Communication Ports a 1 2 1 1 2 LAN Port Specifications cccccccceceeeeeceeceeeeeeeeeceaeaeeeeeeeseteneeeaeeeeeentees 1 3 1 2 Functions of LAN PoMtiees2 c ccn aa aaa ata t Gedas 1 4 1 2 1 Communicat
64. performed by the user program Sending receiving of data with an external device is executed via given operation memory e g data register e Data are sent by setting message data in a given data register in accordance with the partner device and executing GPSEND command e Data received from the partner device are temporarily saved in the buffer Based on the reception done flag GPRECV command is executed and the received data are copied into a given operation memory The received data can be converted into numerical data etc as necessary by the user program e The data size that can be sent or received in a single communication is up to 16 372 bytes per connection Note 1 When a dedicated header is not attached the size is up to 16 384 bytes Note 2 In the case of connection with our PLC FP2 ET LAN unit the maximum size is 8 192 bytes FP7 CP External devi ey Ethernet LAN eiel device IP XXXXXX IP XXXXXX Message data Send Operation Send x dat memory ena recelve message data Receive Message data E Applications of general purpose communication This is used for communication with devices made by differing manufacturers that have dedicated communication protocols 1 9 Communication Functions of CPU Unit 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 M Server connection and client connection e These indicate m
65. ponse reception processing E I O Allocation vO number Name Explanation Clear to send master When connection is ON in the master communication mode the X90 X9F Sis 3 communication flag flag is ON reception processing Reports completion result of sending data in general purpose Y70 Y7F Sending done result flag communication or master communication Normal completion 0 Abnormal completion 1 Note 1 Each contact is used for reading the operation status Do not write over it with a user program Sending master Turns ON during sending data based on SEND RECV command Y90 YOF g mas Turns OFF when ED command is executed following response communication flag 6 5 MODBUS TCP Master Slave Communication KEY POINTS Specify the connection No targeted for communication using UNITSEL command immediately before SEND RECV command Master communication is only valid when MEWTOCOL or MODBUS is selected Confirm that the clear to send master communication flag X90 X9F for the targeted connection is ON and execute SEND RECV command You cannot execute other SEND RECV command for connection in master communication Confirm that the sending master communication flag Y90 Y9F is OFF and execute command You cannot execute SEND RECV command for connection in slave communication Up to 16 SEND RECV commands can be executed simultaneously for different connections In the MODBUS TCP mode
66. port number Connection 2 O Multiple settings for l Connections with multiple nodes Source node Partner node Connection 1 Oo Single setting for source node port number Connection 2 l KEY POINTS e We recommend setting the port number to a value of 8000 1F40 or higher e The same port number can be specified for the source node and the partner node e The same port number can be specified for TCP and UDP 3 12 4 Setting and Operation of User Connection Setting and Operation of User Connection 4 1 Configuration Concerning Open Process 4 1 1 Connection of the FP7 CPU Unit E Operation of the FP7 CPU unit e The FP7 CPU unit opens a virtual communication line with devices in accordance with user connection information open method communication method port number partner unit IP address in the configuration menu e One FP7 CPU unit can open virtual communication lines for up to 16 connections e Lines for each connection can be used in different connection methods TCP or UDP and in different operation modes MEWTOCOL DAT MEWTOCOL COM MODBUS TCP general purpose communication e Once a line is connected PLC and devices can communicate in the specified operation mode The connection status can be confirmed using the operation device X80 X9F 4 1 2 Specifying Use of Connection eAmong the 16 connections set the setting items for the user con
67. purpose has been completed serail i a communication Y8B Connection 12 communication e This flag turns ON at the start Y8C Connection 13 flag of execution of the sending z command and turns OFF when Y8D Connection 14 the command is executed Y8E Connection 15 following sending completion Y8F Connection 16 Y90 Connection 1 Y91 Connection 2 e The flag turns ON at the start of execution of the master communication sending Y99 Connection 10 command SEND and turns MEWTOCOL COM OFF when sending has been master Y9A Connection 11 Sending master completed communication MEWTOCOL DAT Y9B Connection 12 flag e This flag turns ON at the start master Y9C C ion 13 of execution of the sending onnection command and turns OFF when MODBUS TCP master Y9D Connection 14 the ED command is executed following response reception Y9E Connection 15 completion Y9F Connection 16 NOTE Each contact in the table above is used for reading the operation status Do not write over it with a user program 4 6 O MEWTOCOL Master Slave Communication MEWTOCOL Master Slave Communication 5 1 Types of MEWTOCOL Communication 5 1 1 MEWTOCOL DAT Binary Communication E 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 In the user
68. ration 3 1 Procedure for Setting Communication Conditions 3 1 1 Setup Procedure e To use communication functions based on the LAN port communication conditions must be set e Settings should be performed by the programming tool FPWIN GR7 Pa PROCEDURE From the menu bar select Option gt FP7 Configuration 2 From the left pane select Built in ET LAN Setting items appear r y a FP7 configuration Memory configuration CPU conf igurat ion Setting item Setting description 1 0 map Built in SCU S a IPv4 address automatic acquisition No a Home IP address IPv4 192 168 1 5 a Subnet mask IPv4 255 255 255 0 Default gateway IPv4 192 168 1 1 TOP ULP timeout value 5 TGP zero window timer value 5 TCP resend timer value 5 TCP end timer value 20 IP assembly timer value 3 TGP terminator detection timer value 20 DNS server IP address Set automatically Priority DNS server 00 0 0 Alternate DNS server 0 0 0 0 a SNTP server address setting method Specify by IP address IPv4 SNTP server IP address name 0000 Time zone 0000 a Specify FTP server to use Not use Allow anonymous users Not allow 3000 root sok a x A 3 Specify conditions for each item under Settings for Built in ET LAN and press OK button The settings are registered in the project 4 Select File gt Save As in the menu bar 3 2 Setting Basic Communication
69. re saved in the following manner Saves the received No of bytes The received data are saved in ascending order from DT202 lower bytes DT203 If the received No of bytes is smaller than the area specified by the GPRECV command the data are not overwritten DT204 e Specify the connection targeted for communication using UNITSEL command immediately before GPSEND command e The data size that can be received in a single transmission based on GPRECV command from the LAN port of the FP7 CPU unit is up to 16 384 bytes 7 9 General Purpose Communication 7 3 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 M Saving method for received data When data are saved in a given data register from the reception buffer based on GPRECV command the data are saved in the following manner DT200 Saves the received No of bytes DT201 The received data are saved in ascending order from DT202 lower bytes DT203 DT204 If the received No of bytes is smaller than the area specified by the GPRECV command the data are not overwritten e When a start code and an end code are included in accordance with the communication format of an external device they are saved as a part of received data in the operation memory As necessary insert a program for extracting the relevant data 7 10 7 3 Receiving Operation
70. ress and executing SEND commands External device supporting PLC Command message MEWIOCORCOM 0 DT100 400 014WDD004000040164000000 BCC CR DT00400 100 DT101 0 00401 0 wavs E 01 WD BCC C set side Response message Specify and write address based on SEND command Note The above figure indicates the data part of MEWTOCOL COM In communication via LAN a header including size information of the sent data is added E Sample program e Send commands from the LAN port of the CPU unit and write the content of PLC s data register DT100 DT101 into the data area of an external device DT400 DT401 e Confirm that Connection 1 is established in the master mode X90 and that the sending process is not in progress for the same port Y90 and start up the SEND command e In the UNITSEL command specify the slot No LAN port U100 and the connection No U1 e In the SEND command specify and execute the sender initial address DT100 No of data U2 Transmit to station no U1 and initial address DT400 i SEND execution condition Clear to send flag ON i Sending flag OFF X90 RO DF Clear to send Sending master Execute master communication flag SEND R100 communication flag UNITSEL U100 Y90 R100 Settings for communication port i S1 CPU LAN port U100 i S2 Connection 1 U1 i SEND process i S Data saving area DT100 in No of sent data U2 D1
71. s necessary e Also on the master side PLC messages in accordance with the protocol are automatically generated by PLC In the user program reading and writing can be done between PLCs simply by specifying the station no and memory address and executing SEND RECV commands e This is suitable for sending receiving data between PLCs because the data size that can be transmitted in a single communication is larger and the transmission format is simpler and shorter than the MEWTOCOL COM communication ASCII communication e The data size that can be sent or received in a single communication is up to 2038 words for register transmission and 1 bit for bit transmission Note In the case of connection with our PLC FP2 ET LAN unit the maximum size is 1020 words Our PLC supporting EAGEN Ethernet LAN MEWTOCOL DAT IP XXXXXX IP XXXXXX Command Master communication Response Send receive data using MEWTOCOL DAT Command Slave communication Response E Purpose of MEWTOCOL DAT communication This is used for sending data with our PLC that supports MEWTOCOL DAT via Ethernet e Programmable controller FP series l KEY POINTS e When MEWTOCOL DAT master slave communication is used select TCP IP for the communication protocol in order to guarantee the reliability of communication 1 6 1 3 Overview of Communication Functions 1 3 2 MEWTOCOL COM Master Slave Communication ASCII Communication M Overview of function
72. s for Specifying Connection Conditions e In Ethernet communication using the FP7 unit different operation modes open method and communication methods can be specified for each connection e Specify the same conditions for operation mode MEWTOCOL DAT MEWTOCOL COM MODBUS TCP general purpose communication and communication methods TCP IP UDP IP for devices to be connected in each connection Also specify the IP address and port number of each device PC personal computer FP7 CPU No 1 IP XXX XX XX XXX IP XXX XX XX XXX Por No ARN 8000 8001 8002 Port No 8000 Server Client Client 1 2 3 MEWTOCOL COM MEWTOCOL DAT 2 3 Server Server 8000 8000 Port No Port No IP XXX XX XX XXX IP XXX XX XX XXX FP7 CPU No 2 FP7 CPU No 3 Note Circled numbers in the figure above indicate examples of allocation of connection numbers E Setting example Connection Operation Communication Node Mode Open method Remark no a method Setting PC Use applications that personal HE TOCOL Active Open TCP IP support MEWTOCOL COM computer COM MEWTOCOL Server connection i COM Auto Open Lida FP7 CPU MEWTOCOL Client connection No 1 2 DAT Auto Open IRE MEWTOCOL Client connection 4 DAT Auto Open TERE FP7 CPU MEWTOCOL Server connection No 2 2 DAT Auto Open TORIR FP7 CPU MEWTOCOL Server connection No 3 3 DAT Auto Open MGE LIE When the partner is FP2 ET LAN unit select Connect
73. s is the frame number where the command was processed 4 Text The content of this varies depending on the type of command If the processing is not completed successfully an error code will be stored here so that the content of the error can be checked 8 13 Specifications 5 Check code e This is a CRC Cyclic Redundancy Check to detect errors using a generating polynomial of hamming codes e The CRC should be created so that it targets all of the text data from the header to the last text character e CRC is a value given by replacing the result of calculation by CRC 16 CCITT with character text It is normally part of the calculation program and is created automatically 6 Terminator end code The message should end with CR ASCII code HOD NOTES e 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 if the specified connection is ON or if the connection information setting is correct e Ifthe response contains an instead of a the command was not processed successfully The response will contain a communication error code Check the meaning of the error code e Station no and command name are always identical in a command and its corresponding response see below This makes the correspondence between a command and a response clear Command Response 8 14 Re
74. sending is completed e The sending result 0 normal completion 1 abnormal completion is saved in the general purpose communication sending result flag Y70 Y7F 1 H Clear to send general ad 7 Conditions to enable execution of purpose communication GPSEND command s Clear to send flag X80 X8F ON flag X80 X8F ag Confirm ON Sending flag Y80 Y8F OFF Sending general purpose Confirm OFF communication flag i Sending flag Y80 Y8F Y80 Y8F During the sending process ON During execution of command following i sending completion OFF Execute GPSEND J V g A Bette tesetsee eesti teense siemerietiieeed i Sending done result flag Y70 Y7F Normal completion OFF Abnormal completion ON Sending done result flag Y70 Y7F Sending data M I O Allocation I O number Name Explanation Clear to send general X80 X8F purpose When connection is ON in general purpose communication the flag eee is ON communication flag Sending general Turns ON during sending data based on GPSEND command Y80 Y8F purpose Turns OFF when GPSEND command is executed for the next time communication flag following sending completion Reports completion result of sending data in general purpose communication or master communication Normal completion 0 Abnormal completion 1 Sending done result Y70 Y7F flag Note 1 Each contact is used f
75. start code Commands must always have a ASCII code H25 or a lt ASCII code H3C at the beginning of a message 2 Station no e 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 e When the receiver is FP7 specify 01 ASCII code H3031 The receiver to which you want to connect is specified by IP address 3 Text The content of this varies depending on the type of command The content should be noted in all upper case characters following the fixed formula 4 Check code e This is a BCC block check code for error detection using horizontal parity The BCC should be created so that it targets all of the text data from the header to the last text character e The BCC starts from the header and checks each character in sequence using the exclusive OR operation and replaces the final result with character text It is normally part of the calculation program and is created automatically e By entering ASCII code H2A2A instead of BCC you can omit BCC 5 Terminator end code Messages must always end with a CR ASCII code HOD 8 7 Specifications NOTES e The method for writing text segments in the message varies depending on the type of command e When the message to be sent co
76. sult of calculation by CRC 16 CCITT with ASCII codes It is normally part of the calculation program and is created automatically 6 Terminator end code Messages must always end with a CR ASCII code HOD l KEY POINTS e The method for writing text segments in the message varies depending on the type of command e When the message to be sent contains a large number of characters send the command divided in several times e When the message contains a large number of characters the response is sent divided in several times e In MEWTOCOL7 command up to 4096 characters can be sent received in a single frame Type of header No of characters that can be sent in 1 frame Max 4096 characters 8 12 8 4 MEWTOCOL7 COM Format 8 4 2 MEWTOCOL7 Response Format m Response message Header b code 2 Station no ie the receiver 3 Frame No 4 Text to be specified in accordance with the type of command f command nace name data area read Command code value Response code normal status abnormal status Data normal status read data abnormal toe status error code 5 Check code Terminator 16bit CRC CCITT end code 1 Header start code eA gt ASCII code H3E must be at the beginning of a message e 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 Thi
77. sures through the Application Communication errors occurring in the unit can be minimized by taking the steps outlined below Corrective measures should also be taken on the computer side such as increasing the number of times that data is sent E Increasing the number of times data is sent e In the tool software FPWIN GR7 select built in ET LAN adjust the TCP ULP timeout value and TCP re transmission timer value in basic communication information to increase the number of times data is sent e The number of times data is sent is given in the following formula TCP ULP timeout value should be specified at an integral multiplication of TCP re transmission timer value When an integral multiplication cannot be given round up the given decimal number The max number of times data is sent is 12 No of times data is sent TCP ULP timeout value packet existence duration TCP re transmission timer value e The above setting is invalid when UDP IP is used Use the application to send the transmission again M Increasing the timeout judgment time When master communication commands SEND RECV are executed select CPU configuration in the tool software FPWIN GR and increase the set value for time settings timeout time for communication control commands Default value is set at 10 seconds set value 100 REFERENCE e For configuration please see 3 2 1 List of Setting Items 3 Configuration Configu
78. t RO f GPSEND US or101 U8 DTO H i S n D Setting A item Settings Setting range i Specify the operation unit US SS Note 1 S Specify the header of the source node data area Note 2 1 16384 n Specify the No of bytes of sent data Note 1 Note 4 Specify the device area in the source node to save the processing result D Note 3 code one word Note 1 When a K constant integer with a symbol is specified for the No of sent bytes n select SS for operation unit i When a U constant integer without a symbol or an H constant hexadecimal integer select US for operation unit i Note 2 Devices that can be specified for S are WX WY WR WL DT LD Note 3 Devices that can be specified for D are WX WY WR WL DT LD Once the sending process is completed the sent bytes are saved When an error occurs FFFFH is saved 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 l KEY POINTS e Specify the connection targeted for communication using UNITSEL command immediately before GPSEND command e Maintain the ON conditions for GPSEND command until sending is completed and the sending general purpose communication flag Y80 Y8F turns OFF e When GPSEND command is executed for connection in progress the sending flag and the sending result are updated e Conf
79. t flag Y70 Y7F Sending done result flag Y70 Y7F Normal completion OFF Abnormal completion ON Sending data Response reception processing E I O Allocation I O number Name Explanation Clear to send master When connection is ON in the master communication mode the X90 X9F Sai communication flag flag is ON Turns ON during sending data based on SEND RECV command Turns OFF when ED command is executed following response reception processing Sending master Y90 YOF PIRMA communication flag Reports completion result of sending data in general purpose Y70 Y7F Sending done result flag communication or master communication Normal completion 0 Abnormal completion 1 Note 1 Each contact is used for reading the operation status Do not write over it with a user program l KEY POINTS e Specify the connection No targeted for communication using UNITSEL command immediately before SEND RECV command e Master communication is only valid when MEWTOCOL or MODBUS is selected Confirm that the clear to send master communication flag X90 X9F for the targeted connection is ON and execute SEND RECV command e You cannot execute other SEND RECV command for connection in master communication Confirm that the sending master communication flag Y90 Y9F is OFF and execute command e You cannot execute SEND RECV command for connection in slave communi
80. ttings for user connection information MEWTOCOL communication type Note 2 The maximum No of bytes of the command response data part varies based on settings for user connection information MEWTOCOL communication type Configuration MEWTOCOL communication type setting MEWTOCOL station no of sender Max bytes of the command data part and the response data part Do not connect with FP2 ET LAN 1 Max 4084 bytes Connect with FP2 ET LAN Station no specified by the operand of SEND RECV command Max 2048 bytes 8 3 Specifications 8 2 2 MEWTOCOL DAT Command Response Format E Format of command response message Dedicated protocol by binary code in a dialog format Command code Command message va Area code 80H Data 1 Response code Normal response message TL End code FFH Normal code Error response message 80H Data 2 Response code Tf End code Other than FFH Error code 80H M Data contents 1 Header Make sure to indicate 80H in the beginning of the message 2 Command code and Response code Make sure to indicate 80H in the beginning of the message Type of Command Response instruction code code Beene on Write data area 50H DOH Writes data to a data area Read data area 51H D1H Reads the contents of a data area ITS contact 52H D2H Turns ON or OFF th
81. ue Command ID code Em 5 Check code 16bit CRC CCITT 6 Terminator end code 1 Header start code A gt ASCII code H3E must be at the beginning of a message 2 Station no e 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 e When the receiver is FP7 specify 01 ASCII code H3031 The receiver to which you want to connect is specified by IP address 3 Frame No This indicates the sending frame No Make sure to use consecutive frame numbers E g Commands for multiple frames gt EEE00 00MMRDDO0N1G0DT0000000001000 CR gt EEE01 amp CR Make sure to use consecutive values for frame numbers The usable number range is from 00 to FF After FF return to 00 4 Text The content of this varies depending on the type of command The content should be noted in all upper case characters following the fixed formula for the particular command 8 11 Specifications 5 Check code e This is a CRC Cyclic Redundancy Check to detect errors using a generating polynomial of hamming codes e The CRC should be created so that it targets all of the text data from the header to the last text character e CRC is a value given by replacing the re
82. upport the MODBUS TCP protocol e 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 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 and memory address and executing SEND RECV commands e Slave communication is performed when the higher device connected to PLC has the sending right and sends commands and PLC returns responses In slave communication PLC responds automatically so no program concerning communication is necessary on the PLC side e 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 FP7 CPU MODBUS TCP Ethernet LAN supporting device IP XXXXXX IP XXXXXX Command Master communication Response Send receive data using MODBUS TCP Command Slave communication Response 1 8 1 3 Overview of Communication Functions 1 3 4 General Purpose Communication M Overview of function e General purpose communication is used when PLC executes communication in accordance with the command specifications of the partner device e Formulation and sending of command messages to the partner device and reception processing of responses from the partner device are
83. vironment and Wiring for LAN Ports 2 1 1 Before Installation and Wiring M Noise resistance of Ethernet The Ethernet is a network used in offices and buildings where there is comparatively little noise lt does not have a higher resistance to noise than ordinary FA application networks Caution is reguired when installing the hub and when laying cables 2 1 2 Installation Environment and Noise Control Measures M Measures that can be taken in the installation environment e The CPU unit transceiver hub and communication cables should be installed as far as possible from high voltage wires high voltage equipment power lines power equipment equipment that generates strong breaker surges and the wiring for any of this equipment At least 100 mm of clearance should be allowed when installing the equipment 100 mm or more Noise generating device cable 100 mm or more 100 mm or more Ethernet LAN e When a device must be installed or a cable must be laid near a noise generating device for special reasons take measures such as e install a programmable controller and a hub within a metal panel laying a communication cable inside a metal duct e attaching a ferrite core near the CPU unit on the communication cable etc e An alternative measure is to use an optical transceiver close to the noise generating section of the equipment and install an optical fiber to keep the noise from affecting nearby equipment Th
84. y an error code will be stored here so that the content of the error can be checked 4 Check code e This is a BCC block check code for error detection using horizontal parity e The BCC starts from the header and checks each character in sequence using the exclusive OR operation and replaces the final result with ASCII codes 5 Terminator end code The message should end with CR ASCII code HOD 8 9 Specifications NOTES e 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 if the specified connection is ON or if the connection information setting is correct e Ifthe response contains an instead of a the command was not processed successfully The response will contain a communication error code Check the meaning of the error code e Station no and command name are always identical in a command and its corresponding response see below This makes the correspondence between a command and a response clear lt a Sr Same 4 gt Same Ss S _ tepe 4671 s ate 8 10 8 4 MEWTOCOL7 COM Format 8 4 MEWTOCOL7 COM Format 8 4 1 MEWTOCOL7 COM Command Format E 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 SN 1 w aual f Command name Command code val

Download Pdf Manuals

image

Related Search

Related Contents

電撃殺虫器  [U4.72.05] Opérateur PROJ_CHAMP  Midland Radio 75.82 User's Manual  mass-effect-2  Micropac EC-STUK storage enclosure  

Copyright © All rights reserved.
Failed to retrieve file