Home
FP7 Ethernet Communication Cassette User`s Manual, WUME
Contents
1. O Number Allocation E Output signal COM 1port User connection use Output Communica Name Description Effective signal tion port operation mode Reports the results of sending in master MEWTOCOL Yo For COM 1 Sending communication or general purpose General Port done result communication purpose Normal completion 0 Abnormal completion 1 communication Y1 Y7 Not used Do not use this General It turns on 1 during sending in the general F purpose inati General or COM 1 Pere purpose communication mode Y8 Port communicati Note 1 purpose on Sending gt communication active flag Sending done 0 Sending 1 Y9 YB Not used Do not use this Master Pare ore It turns on 1 during sending in the master YC ee KANG a communication mode MEWTOCOL active flag Sending done O Sending 1 YD YF Not used Do not use this By turning on 1 Y10 the communication channel can be reset Without a request to reset 0 With a request to reset 1 After ON 1 is output and the completion of the reset is confirmed by X10 return to OFF 0 The reset is performed only once when General For COM 1 Request to this signal rises LA Port reset CH i i purpose This function can be used to delete communication unnecessary received data or to clear errors before starting normal reception 1 Sending canceled 2 Reception canceled 3 Re set communication parameters 4 Clear error
2. 2 1 2 1 Attaching a Communication Cassette cc eeceeeeeeeeeeeeeeeeeeeeeeeeeees 2 2 LET Settingof Switches amie inl GB 2 2 2 1 2 Attachment Instructions 2 2 2 2 Installation Environment and Wiring for LAN Ports 2 3 2 2 1 Before Installation and Wiring 0 0 0 eee cece eee eeeeeeeeeeeeaeeeeeeaeeeeeenaeeeeeeeaas 2 3 2 2 2 Installation Environment and Noise Control Measures 2 3 2 37 Wiringitne LAN PO Satan an KA NENA An 2 4 3 YO Number Allo6atloN aa ANAN NAA NANANA ANG 3 1 3 1 Input Output Signals Used for Communication aaa na nanana nennen 3 2 3 1 1 Occupied Area for Communication cassette Ethernet type 3 2 3 1 2 WO Number Alcat ONA asaan 3 2 Table of Contents 4 Setting Communication Conditions ccccceeeeeeeeeeeees 4 1 4 1 Settings Using FPWIN GR7 naaa pA AA 4 2 4 2 Specified using Configurator WD 4 4 4 2 1 Start Configurator WD and Serach units 4 4 4 2 2 IP Address Settings nine animale ie tonne 4 5 4 2 3 Communication Settings 00 0 cece eeeeeeeeeeeeeeeeeeeeeeeeeeeaeeeeeeeaeeeeeeaaees 4 6 4214 Option Settings 215225280070 00 enr nan a nn ee ln dd AUS 4 8 4 2 5 Target IP address for unit number Setting nananana 4 10 4 2 6 Initialization ot the environment setting of the cassette 4 11 4 3 Example of User conn
3. E Sample program e Confirm that the unit is in the general purpose communication mode X8 and that the general purpose sending process is not in progress for the same port Y8 and start up the sending program e In the SSET instruction convert a given message into an ASCII text string and specify the number of strings to be sent in the data register DT 100 and the message to be sent from the data register DT101 ein the UNITSEL instruction specify the slot No U0 and the COM port No U1 e In the GPSEND instruction specify and execute the header of the table where the message to be sent is saved DT101 and the No of characters DT 100 y8 R101 R100 RO X8 DF gt H 4 Clear to send flag ON i Sending active flag OFF General purpose General purppse E A E E communication communicatidn R100 Clear to send flag Sending activp flag i Data conversion S1 Sent Data S2 Save Sent Data i DT100 No of Sent Characters DT101 onward Sent Data C DPPETETEETETETEE CEE TELE EE CET EE EEE LE LETELEELELELEL EEE R100 H DF R100 SSET ABCDE DT100 Si S2 i Settings for communication port 4 S1 Slot O UO S52 COM1 U1 GPSEND US DT101 DT100 S Header of Sent Data DT101 s a D in No of Sent Characters DT 100 i uti It Cod Confirm sending completion 3 Reset GPSEND execution Y8 L DF 6 3 General Purpose Comm
4. Parameter Setting description Communication mode General Communication Terminator setting CR CR LF Time Terminator judgement time 0 to 100ms 4 4 2 Specified using Configuration WD m TCP Client Mode User Connection Protocol Mode Top El Action Mode Cancel Client Mode bd Option Setting zi Communication Mode Send Type fuNicasT z Server Setting gt gt Source Port No aa 502 55584 Timeout irc sec 0 No Timeout 0 1800 Client Setting Destination IP Address 192 168 1 100 Destination Port No 9098 502 6534 Source Port No 9095 0 502 65584 Timeout js sec 0 No Timeout 0 1800 Parameter Default Protocol Mode TCP Action Mode Client Mode Communication General Mode Communication Send type UNICAST Destination IP 192 168 1 100 Address Destination Port No 9094 Source Port No 9095 Timeout 15 sec 4 4 Example of User connection General Communication E TCP Server Mode Com User Connection Protocol Mode TOP Action Mode Server Mode Communication Mode Send Type Server Setting Source Port No Timeout 0 No Timeout 0 1800 Client Setting Destination IP Address Destination Port No Source Port No Timeout 0 No Timeout 0 1800 m UDP mode Cancel Option Setting General Communication ba 9095 502 65534
5. Transmit to station no U1 and initial address DT400 i SEND execution condition Clear to send flag ON YC R100 RO XC HA DF H Master Master Execute Sending active flag OFF communication communication SEND R100 Clear to send flag Sending active flag i Settings for communication port S1 Slot 0 U0 iS2 COM1 U1 UNITSEL i SEND process S Data saving area DT100 in No of sent data U2 D1 Area code of the receiver U1 i D2 Forward to address DT400 D3 Execution result code DTO SEND US DT100 DT400 S1 n D1 D2 D3 5 6 5 3 MEWTOCOL COM Master Communication SEND E Timing chart instruction Clear to send flag XC ON i Sending active flag YC OFF ws PR a a Master communication ka Conditions to enable execution of SEND i Clear to send flag i i XC Confirm ON Master communication Confirm OFF Sending active flag YC i Sending active flag YC Sending data ON Sending done OFF Execute SEND Master communication Sending done result flag YO Sending done result flag YO Normal completion OFF Abnormal completion ON Sending data Response reception processing E I O allocation COM port no 1 Name Explanation Master Turns ON when MEWTOCOL COM or MEWTOCOL7 is set for x San the communication mode and the unit is in the RUN mode Clear to send flag dia urns ON during sending data ba
6. 909 6502 65534 9095 0 502 65534 sec Parameter Default Protocol Mode TCP Action Mode Server Mode Communication General Mode Communication Destination IP Address 192 168 1 100 User Connection Protocol Mode Action Mode Server Mode Communication Mode Send Type Destination IP Address Destination Port No Source Port No Timeout 0 No Timeout 0 1800 9095 Cancel Option Setting General Communication Le UNICAST bd 9094 602 65534 9095 0 502 65534 16 sec Source Port No 9095 Timeout 15 sec Parameter Default Protocol Mode UDP Action Mode Client Mode Communication General Mode Communication Destination IP Address 192 168 1 100 Destination Port No 9094 Source Port No 9095 Timeout 15 sec Note The parameter Destination IP Addres is not available if BROADCAST is selected 4 17 Setting Communication Conditions 4 5 Example of System connection 4 5 1 Specified using Configuration WD e System connection is used when the tool software e g FPWIN GR7 is used via LAN port e Settings are necessary in the IP Address dialogbox and Option dialogbox for the System connection E Setting IP Address dialogbox Setting IP Address Base Setting Unit Name FP CCETI Cancel IP Address 192 168 1 5 Subnet Mask 255 255 255 0
7. Communication Mode MEWTOCOL Destination IP Address 192 168 1 100 B Destination Port No 9094 Communication Mode MEWTOCOL Source Port No 9095 Send Type UNIGasT Timeout 15 sec Server Settine Source Port No 9095 502 6553 Timeout nn sec 0 No Timeout 0 1800 Client Setting _ Destination IP Address 192 168 1 100 Destination Port No os 502 65534 Source Port No 9095 C0 502 65534 Timeout js sec 0 No Timeout 0 1800 4 3 Example of User connection MEWTOCOL X3 KEY POINTS e Connection request will be performed when data transfer is executed Please execute master communication command after confirming the connection status flag X30 is OFF When a connection successfully established connection status flag X30 turns ON If a connection failed connection status flag X30 stays OFF and TCP client connection failure flag X32 turns ON Please reconfirm the conditions of destination or connection e If it needs to continue data transfer between the same connected equipment please execute master communication command after confirming the connection status flag X30 is ON e Timeout value of respons reception for AFP7CCET1 is the same as connection termination timeout during no communication Set the timeout of SEND RECV instruction longer than the timeout during no communication to judge the timeo
8. DTi00 Dro i 1 2 n D1 D2 Items Settings Setting range i Specify the operation unit US SS S1 Specify the partner station no 1 99 Specify the device initial address of the source node data area in the partner e node Note 1 Note 2 039999 n Specify the No of sent data Note 3 1 309 words or 1 bit Specify the device initial address of the receiver node data area in the source D1 Note1 node Note1 D2 Specify the device area in the source node to save the execution result code 7 one word Note 4 Note 1 Transmission methods vary by the type of device to be specified for the operands S2 and D1 i ifi Transmission Device to be specified for S2 and D1 net 16 bit device WX WY WR WL DT LD Register transmission 1 bit device X Y R L DT n LD Bit transmission Note 2 Bit device 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 Device that can be specified for D2 are WX WY WR WL DT LD Saved as one word in the specified area 0 Normal completion Communication port is being used for master communication Communication port is being used for slave communication No of master communication instructions that can be used simultaneously has been exceeded Sending
9. It is valid when selecting UDP in the communication protocol UNICAST Source Port No Port number that AFP7 CCET1 opens Range 502 to 32767 9095 Server Setting Note1 Timeout If AFP7 CCET not communicate with a destination device during this setting time seconds in the state that connection is established connection will be cut Range 0 to 1800s When 0 is set the connection will not be cut 15 Destination IP Address Specify IP address of destination Set an IP address other than 0 0 0 0 and 255 255 255 255 192 168 1 100 Destination Port No Specify port number of destination Range 502 to 32767 9094 Client Setting Note2 Source Port No Timeout Source port number of a destination device Range 0 1025 to 32767 When 0 is set optional If AFPX COM5 not communicate with a destination device during this setting time seconds in the state that connection is established connection will be cut Range 0 to 1800 s When 0 is set the connection will not be cut 9095 15 Note1 This parameter is valid Note2 This parameter is valid if Client Mode is selected if Server Mode is selected Setting Communication Conditions 4 2 4 Option Settings Set the parameters in the option dialogbox of Configurator WD for the User connection or System connection a PROCEDURE 1 Activate unit name when connected uni
10. Terminator judgement time 0 Not initialize Modem initialization Link relay link register memory block numbe 0 Cancel Read PLC Mount Initialize 3 Press OK after setting for communication conditions of COM 1 port Set conditions are incorporated into the project that is being edited p KEY POINTS e Select the Built in SCU for the Communication cassette AFP7CCET1 to recognised as serial communication in the internal system e Settings for the COM 2 ports is not available for the Communication cassette AFP7CCET1 4 2 4 1 Settings Using FPWIN GR7 E Specified using FPWINGR7 COM 1port Parameter Panmissiblamange far Description AFPCCET1 P Co a MEWTOCOL COM Select the mode MEWTOCOL or General purpose mode MEWTOCOL 7 Communication to match the settings of Configurator General purpose Communication WD Station No 1to99 MEWTOCOL COM It is not available for the General purpose 1to999 MEWTOCOL7 COM Communication mode Baud rate 230400 bps Data length 8bits z These parameters are fixed regardless of the settings in RANY QDD the FPWINGRZ Stop bit 1bits RS CS N A Send waiting 0 100ms time CR is fixed for the MEWTOCOL mode Terminator setting CR CR LF Time CR CR LF or Time can be selected to match the settings of Configurator WD Terminator It is avallable if terminator setting is Time A 0 10000 0 01 judgement time
11. client connection client connection Ethernet D en IP XXXXXX LAN IP XXXXXX IP XXXXXX LAN IP XXXXXX Command Command Master ns le Master gt communication _ _ Response communication _ _ _ Response angga Haya si Pa Command si pa Command ave f ave 4 communication Response _ _ gt communication Response 1 7 Communication Functions of CPU Unit 1 8 2 Installation and Wiring Installation and Wiring 2 1 Attaching a Communication Cassette 2 1 1 Setting of Switches e Two switches are mounted on the circuit board of communication cassette AFP7CCET1 e SW1 is used to initialize comunication condtions SW2 is reserved Please turn OFF during nomal use OFF O z SW2 Normally OFF sw1 For Initialization Normally OFF ee REFERENCE e See 4 2 6 for initialization of communication conditions 212 Attachment Instructions When an optional communication cassette is to be used attach it in the following procedures a PROCEDURE 1 Using a flathead screwdriver remove the cover on the side of the CPU unit 2 Attach a desired communication cassette 2 2 2 2 Installation Environment and Wiring for LAN Ports 2 2 Installation Environment and Wiring for LAN Ports 2 2 1 Before Installation and Wiring E Noise resistance of Ethernet The Ethernet is a network used in offices and buildings where there is comparatively li
12. Default Gateway 192 168 1 1 E Option dialogbox User Connection Endcode CR X Cancel Judgment time without termination 20 0 100 ms Target IP address for unit number Unit Number IP Address Dest Port No Unit Number EE a 192 168 1 100 9095 Not Use a o2 192 168 1 100 9095 Not Use o 192 168 1 100 9095 Not Use 4 192 168 1 100 9095 Not Use mir inniko1inn nang Mat llaa ns System Connection Action Mode Server Mode p4 Protocol Mode TCP X Communication Mode MEWTOGOL Server setting Source Port No 9094 502 6554 Timeout fs sec 0 No Timeout 0 1800 p KEY POINTS e Select Server Mode TCP and MEWTOCOL for the System connection And it need not set in the Communication Setting dialog box 4 5 Example of System connection 4 5 2 Specified using FPWIN GR7 e Please specify the following settings to connect with PLC via Communication cassette AFP7CCET1 using tool software FPWINGR7 a PROCEDURE 1 Select Online gt Communications settings from the menu bar Communication Settings dialogbox will open Communications settings FPWIN GR7 Computer communications port Port to use Cancel Initialize Communications condition settings Browse Title Default E Please select if the connection destination is an ET LAN unit Computer settings IP address Port No 9095 0 1025 65535 999 Connecti
13. Destination Port No 9094 N A N A Source Port No 0 9094 9094 Destination unit number and IP address is Activated N A N A Option specified IP Address for No 1 192 168 1 11 N A N A unit no No 2 192 168 1 12 N A N A 3 MEWTOCOL Master Communicationin the UDP BROADCAST mode Parameter Example Dialogbox Field Home Slave1 Slave2 IP Address 192 168 1 5 192 168 1 11 192 168 1 12 IP Address Subnet Mask 255 255 255 0 255 255 255 0 255 255 255 0 Default Gateway 192 168 1 1 192 168 1 1 192 168 1 1 Protocol Mode UDP UDP UDP Action Mode Client Mode Server Mode Server Mode Communication Mode MEWTOCOL MEWTOCOL MEWTOCOL canes Send type BROADCAST BROADCAST BROADCAST Destination IP Address 192 168 1 11 N A N A Destination Port No 9094 N A N A Source Port No 0 9094 9094 Option N A N A N A Setting Communication Conditions 4 4 Example of User connection General Communication 441 Specified using FPWINGR7 e Set the communication mode and format into the field built in SCU gt COM 1 settings in the FPWINGR7 7 FP Configuration Memory configuration vid cote ction Setting item Setting description 5 a ETTAN MEWTOCOL COM Station No 1 Baud rate 9600bps Data length 8 bits Parity Odd Stop bit 1 bit RS CS Disable 3 Send waiting time 0 E Header STX Disable Terminator setting GR Terminator judgement time 0 Modem initialization Not initialize Setting of COM 1port AFP7CCET1
14. Reception ON done flag OFF XO ON GPRECV execution OFF condition R100 Execute GPRECV instruction e When the GPRECV instruction is executed data are copied into the specified area and the reception done flag X0 turns OFF The reception done flag X0 turns OFF when the I O refresh is executed at the beginning of the subsequent scans Reception buffer c H H Ho a aa e ERER Received data cr e cr i Reception done flag X0 When reception has been done ON a i When copying of received data has Reception ae 2 N been done based on GPRECV i instruction OFF Execute GPRECV E Saving method for received data When data are saved in a given data register from the reception buffer based on GPRECV instruction 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 6 9 General Purpose Communication 6 3 2 Contents of Received Data When data are copied into a given data register based on GPRECV instruction the data are saved in the following manner Example The data 12345 CR is transmitted from a device with RS 232C device e At the beginning of the data register the No of received bytes is saved e The received data are saved in a
15. 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 High speed counter Unit FP7 High speed counter Unit Users Manual WUME FP7HSC FP7 Pulse Output Unit FP7 Pulse Output Unit Users Manual WUME FP7PG FP7 Positioning Unit FP7 Positioning Unit Users Manual WUME FP7POSP FP7 Serial Communication Unit FP7 series Users Manual SCU communication WUME FP7COM 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 Communication Functions of CPU Unit 1 1 1 1 Communication Ports of CPU Unit 1 2 1 1 1 Types and Purposes of Communication Ports 1 2 1 1 2 AFP 7CCET1 Port Specifications 1 3 1 1 3 Types of communication cassette 1 3 1 14 Configurator WD unan AN AN NAA 1 3 1 2 Available Function For Each COM Port cceccceeeeeeeeeeeeeeeeeeeeeeeeees 1 4 1 2 1 Applications that can be Used in Each Port 1 4 T22 Restrictions dire MAA AN aad aaa 1 4 1 3 Overview of Communication Functions 111111111115 1 5 1 3 1 MEWTOCOL Master Slave Communication 1 5 1 3 2 General Purpose Communication 1 6 LA TEM Sace Ma EE EE DAN ares 1 7 2 Installation and Wiring
16. Without Start code Without STX Send Waiting 0 to 100ms Note Permissible communication mode is MEWTOCOL only 7 1 Specifications E Communication cassette AFP7CCET1 tome Description 100BASE TX 10BASE T 100 Mbps 10 Mbps auto negotiation Note 1 Transmission system Max segment length 100 m Note 2 Communication sable UTP Category 5 Max distance 100BASE TX 2 segments between nodes 10BASE T 5 segments No of nodes 254 units connection eommunication TCP IP UDP IP TCP IP protocol DHCP IP address assigned automatically Numbers of MEWTOCOL COM Master 1 connection Ses MEWTOCOL COM Slave 3 connection MEWTOCOL COMSlave 1 connection GALA O MEWTOCOL7 COM Slave 3 connection MEWTOCOL7 COMSlave 1 connection mode General Communication 1 connection Baseband Note 1 Switching 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 Specifications 7 2 MEWTOCOL COM Format 7 21 MEWTOCOL COM Command Format m Command message Header 2 Station no of destination 01 to 99 decimal 3 Text Content depends on typ
17. ms Set the time to match the settings of Configurator WD Header STX N A F Mag These parameters are fixed regardless of the settings in odem initiali the FPWINGR7 initialization Not initialize KEY POINTS e The parameters Communication mode Station No Send waiting time Terminator setting and Terminator judgement time are available in the FPWINGR Setting Communication Conditions 4 2 Specified using Configurator WD 4 2 1 Start Configurator WD and Serach units e The communication tool software Configurator WD is required to set Ethernet communication for the Communication cassette AFP7CCET1 e The setting is saved in the Communication cassette AFP7CCET1 a PROCEDURE 1 Start Configurator WD 2 Click Search unit icon after confirmation to connect the PLC to the PC via the communication cassette AFP7CCET1 Connected units are indicated if they are connected correctly If FP7 CCET is not indicated please reconfirm the connection X 34 Configurator WD kol ola File Search Edit View Option Help IBA Unit IP Address Port DHCP Type MAC Address Firm Version Run Stop Status FP7 CCET1 192 168 1 5 9094 9095 OFF FP7 CCET1 00 C0 8F 6 1 00 Normal Ready Computer 4 2 Specified using Configurator WD 4 2 2 IP Address Settings Set the IP address in the Setting IP Address dialogbox of Configurator WD a
18. 40000401 BCC Cp DT00400 100 gt DT101 0 DT00401 0 CUT a eaei eeuse ma aranan 01 RD64000000 BCC Cp Aa avr a i Response message 7 7 EEE Specify and read station no and address based on RECV instruction Ho E Sample program e Send commands from the COM1 port of the CPU unit read data from the data area of an external device station no 1 DT400 DT401 and write the content into PLC s data register DT100 DT101 e Confirm that the unit is in the master mode XC and that the sending process is not in progress for the same port YC and start up the SEND instruction e In the UNITSEL instruction specify the slot No U0 and the COM port No U1 e In the RECV instruction 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 i execution Clear to send flag ON RO XC pF 4 Master Master Execute i Sending active flag OFF communication communication RECV a D OSSEA E REA EENE TFAA trini R100 Clear to send flag Sending active flag i Settings for communication port i S1 Slot 0 S2 COM1 UNITSEL i RECV processing S1 Partner station no U1 S2 Data address DT400 in No of data U2 i D1 Data saving area DT100 D2 Execution result code DTO i RECV US DT400 DT100 S1 S2 n D1 D2 5 3 MEWTOCOL Master Slave Communica
19. 9 BAGO 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 Device that can be specified for D1 are WX WY WR WL DT LD Note 2 Device that can be specified for D2 are WX WY WR WL DT LD X3 KEY POINTS e Specify the port targeted for communication using UNITSEL instruction immediately before GPRECV instruction e When the general purpose communication reception done flag is ON for the targeted COM port execute GPRECV e When multiplex reception is carried out the reception done flag X0 remains ON after the received data are copied based on GPRECV instruction Therefore the received data cannot be copied by when the reception done signal rises 6 12 6 4 Sending Receiving Flag Operation 6 4 Sending Receiving Flag Operation 6 41 No Header Start Code Terminator End Code CR The reception done flag the sending active flag the GPSEND instruction and the GPRECV instruction are related as follows Data received from external A B C CR D E F G device Stored SCU A A A D D D D receive bu ffer B B E E E pi Le C Data can be received until ei
20. Applications of general purpose communication This is used for connection with devices made by differing manufacturers that have dedicated communication protocols 1 6 1 4 Terms 1 4 Terms The following terms are used for settings on the software for connecting the FP7 CPU unit to Ethernet LAN and in the Users Manuals E Server connection and client connection e These indicate methods 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 E Master communication and slave communication e These indicate methods for actually sending receiving messages and data between FP7 and an external device e ln master communication PLC sends commands and receives responses e In slave communication commands are received from an external device and responses are returned ein 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 j from external device 1 Im from FP7 CPU ST 1 v i y FP7 CP ee External device FP7 CPU mera F i i lient connection connection Ethernet
21. E Operation and function of the reception done copy flag X4 e The reception done copy flag X4 turns ON when the GPRECV instruction is executed and data are copied from the reception buffer to the specified operation memory and turns OFF when the END instruction is executed E Processing in the case of multiplex reception e f the time from the reception of data in the reception buffer to the subsequent data reception is shorter than the PLC scan time and the receiving frequency is high it is possible that the reception done flag X0 remains ON and cannot detect sequential receptions e In cases where it is necessary to process sequentially received data constantly execute the GPRECV instruction in combination with the reception done copy flag X4 e Referring to the reception done copy flag X4 you can confirm whether there are lately received data Reception buffer data In the case of sequential receptions the dt reception done flag X0 remains ON I art apn AT eg ee Reception a 5 aa done flag XO Execute GPRECV instruction I I Reception done m copy flag X4 1 scan time After always executing GPRECV instruction confirm whether there are lately received data referring to the I reception done copy flag X4 l General Purpose Communication 6 3 5 GPRECV General Purpose Communication Receiving Instruction E Instruction format RO GPRECV US DT200 DT20
22. OCOL7 COM i General MEWTOCOL M Type of connection COM port oc co ANNA AA Master Slave User connection COM 1 O Note J J System connection COM 2 Note MEWTOCOL7 COM do not support Master communication function E User connection elt can be used for data communication between external Ethernet equipment connected on LAN to open virtual connection via communication cassette AFP7CCET1 e Any one of the following condition can be used MEWTOCOL master communication 1 connection MEWTOCOL slave communication 3 connection or General Communication 1 connection e Parameters are set using the software FPWIN GR7 and Configurator WD E System connection e It can be used to connect tool software via communication cassette AFP7CCET1 e Only 1 connection is available eCOM 2 is allocated and communication conditions are fixed e Parameters are set using the software Configurator WD 1 2 2 Restrictions E Behavior after the power has been turned on It takes approx 5 seconds to Initialize communication cassette AFP7CCET1 after the power has been turned on Data transfer cannot be executed during initialzaition process Please program to start communication after the connection flag turns ON E Restriction of broadcast communication e Broadcast communication do not support communication via router because generally a router do not forward broadcast packets e Broadcast communication put
23. ON the reception program is started up by the GPRECV instruction e In the UNITSEL instruction specify the slot No U0 and the COM port No U1 e In the GPRECV instruction specify and execute the header of the data table where the received message is saved DT200 and the final address DT209 bitag R100 DF R100 GPRECV execution conditions 4 Reception done flag ON ettings for communication port F 1 Slot O Built in CPU U0 PRECV processing 1 Header of Received Data DT200 2 Terminator of GPRECV US DT200 DT209 S1 2 i Received Data DT209 E 1 0 allocation COM port no 1 Name Explanation General purpose Turns ON when the receiving process is completed in XO communication Reception h aA d done flag the general purpose communication mode Turns ON when the GPRECV instruction is executed and the received data have been copied into the specified operation memory Turns OFF when there are no applicable data General purpose X4 communication Reception copy done flag 6 8 6 3 Receiving Operation E Timing chart e Data received from an external device are saved in the same reception buffer e When the terminator end code is received the reception done flag X0 turns on Subsequently the following data are saved in the buffer upon reception 8 data can be received consecutively m Start receiving Received data 1 2 5 Sp A B
24. POINTS e The start code and the end code specified in the configuration menu are automatically added to the sent data Do not include the start code or the end code into sent data e The maximum volume of data that can be sent is 4 096 bytes If the start code is set to valid the maximum size is 4 096 bytes including the start code and the end code e It is also possible to send binary data 6 5 General Purpose Communication 6 2 3 GPSEND General Purpose Communication Sending Instruction E Instruction format RO i S n D Items 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 to 4094 1 to 4096 n Specify the No of sent bytes Note 1 Note 3 Specify the device area in the source node to save the execution D result one word Note 4 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 Device that can be specified for S are WX WY WR WL DT LD Note 3 If a negative value is specified the end code is not automatically added to the sent data Where SCU is targeted Note 4 Device that can be specified for D are WX WY WR WL DT LD Once the sending process is compl
25. PROCEDURE 1 Activate unit name when connected unit is indicated The unit name will be highlighted 2 Select Edit 5 Setting IP Address from the menu bar The IP AddressSetting dialogbox will open Setting IP Address Base Setting Unit Name IP Address Subnet Mask Default Gateway Lx FP CCETI Cancel 192 168 1 5 255 255 255 0 3 Enter the IP Address 4 Press OK The message box IP Address is updated will appear IP Address Setting Parameter Description Default Obtain IP address automatically When selecting Obtain an IP address automatically an IP address is obtained from the DHCP server When selecting Use the following IP address Note1 Use the following IP address an IP address is set manually Unang Upitreme fa cen be spechagio SE Pr ccert IP address IP address of Communication cassette AFP7 CCET1 192 168 1 5 Note1 Set an IP address other than 0 0 0 0 and 255 255 255 255 Subnet mask Netmask of Communication cassette AFP7 CCET1 255 255 255 0 Default Gateway Gateway of Communication cassette AFP7 CCET1 192 168 1 1 Note1 When an error occurs its cause will be confirmed by specified I O See 3 1 2 1 0 Number Allocation Setting Communication Conditions 4 2 3 Communication Settings Set the parameters for the User connection in the Communication Setting dialogbox of Co
26. Panasonic PROGRAMMABLE CONTROLLER FP7 series User s Manual Communication Cassette Ethernet type Applicable models FP7 CPU Unit Model number AFP7CPS FP7 Extension Cassettes Communication Cassettes Ethernet x 1ch type Model number AFP7CCET1 WUME FP7CCET 01 2013 12 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 Battery may explode if mistreated Do not recharge disassemble or dispose of fire 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 generat
27. TOCOL7 COM Format 7 3 1 MEWTOCOL7 COM Command Format m 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 oo 1 ara f Command name Command code value Command ID code l l I l l l l l l l l l l l l l l I l l l l l l l l l l l l l l l l l l l l l Xx 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 eln 1 1 communication specify 001 ASCII code H303031 or EEE ASCII code H45H4545 3 Frame No This indicates the sending frame No Make sure to use consecutive frame numbers E g Commands for multiple frames gt EEE00 00MMRDDO01GODT0000000001000 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 up
28. U Unit 1 1 2 AFP7CCET1 Port Specifications m 100BASE TX 10BASE T connector RJ45 When an Ethernet 100BASE TX 10BASE T is being used this connector is used to connect the communication cassette and the hub using a UTP cable 1 Pin no Signal name 1 TX TX RX Not used Not used RX Not used oO o nl loala a o Nn Not used E Functions of LED lamps 1 LINK Turns ON when the connection is connected between the communication cassette AFP7 CCET1 and external equipment 2 ACK Flashes when some communication is in progress with a connected device e g sending receiving a command or response 1 1 3 Types of communication cassette Communication ports Model no Communication interface that can be allocated COM 1 COM 2 User connection AFP7CCET1 System connection J Note See 1 2 for the information of User connection or System connection 1 1 4 Configurator WD e The communication tool software Configurator WD is required to set Ethernet communication for the AFP7CCET1 e The Configurator WD can be downloaded from our website free of charge http industrial panasonic com ac e dl center software Member registration is required Free of charge 1 3 Communication Functions of CPU Unit 1 2 Available Function For Each COM Port 1 21 Applications that can be Used in Each Port E Mode MEWT
29. X Comman 4 gt lt Response Send receive data using MEWTOCOL COM Command f Response LL gt Master communication communication 1 5 Communication Functions of CPU Unit 1 3 2 General Purpose Communication E Overview of function e General purpose communication is used when PLC executes communication in accordance with the protocol 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 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 converting commands in accordance with the partner device as strings into ASCII text setting them into a given data register and executing GPSEND instruction e Response received from the partner device is temporarily saved in the buffer Based on the reception done flag GPRECV instruction is executed The ASCII strings 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 4 096 bytes including control codes FP7 CP External devi CPU Ethernet LAN ARS IP XXXXXX _ l IP XXXXXX Message data Send Operation Send dat memory ena recelve message data z 4 Receive Message data E
30. a load on all other equipment on the network Please evaruate the effects on other equipment enough before a broadcast communication executed E Restriction to connect tool software communication eAlthogh there is no limitation of connection if you selecte UDP as a protocol mode but FPWIN GR7 do not support UDP communication 1 3 Overview of Communication Functions 1 3 Overview of Communication Functions 1 3 1 MEWTOCOL Master Slave Communication E Overview of function e Execute communication using MEWTOCOL COM a communication protocol used by our PLC e In master communication PLC executes communication by sending commands to devices that support MEWTOCOL and receiving responses Messages in accordance with the protocol are automatically generated by PLC In the user program reading and writing can be done simply by specifying the station no and memory address and executing SEND RECV instructions e Slave communication is performed when the computer or display 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 507 words for register transmission up to 1 014 words for MEWTOCOL7 COM and 1 bit for bit transmission Device supporting FPT GPU Ethernet LAN MEWTOCOL COM IP XXXXXX IP XXXXX
31. ated so that they do not come in contact with communication devices or cables 2 3 Installation and Wiring 2 3 Wiring the LAN Port E Selection of UTP cables e Use Category 5 UTP cable elt is recommended to use a UTP cable of 10 m or shorter taking account of noise resistance e In 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 3 I O Number Allocation O Number Allocation 3 1 Input Output Signals Used for Communication 3 1 1 Occupied Area for Communication cassette Ethernet type A fixed area is allocated as follows m List of occupied words and I O points by unit Occupied words Unit Type Model number occupied I O points Input Output Communication 4words 64points 2words 32points CPU Unit cassette AFP7CCET1 WX0 WX3 WYO WY1 Ethernet type 3 1 2 I O Number Allocation E Input signal COM 1 port for User connection Input Communica BEN a E Name Description operation signal tion port mode General When the unit completes the data reception it For COM 1 PUD OSE A turns on 1 Genera
32. ation no 1 IP Address 192 168 1 11 FP7 Station no 2 IP Address 192 168 1 12 1 MEWTOCOL Master Communicationin the TCP mode Parameter Example Dialogbox Field Home Slave1 Slave2 IP Address 192 168 1 5 192 168 1 11 192 168 1 12 IP Address Subnet Mask 255 255 255 0 255 255 255 0 255 255 255 0 Default Gateway 192 168 1 1 192 168 1 1 192 168 1 1 Protocol Mode TCP TCP TCP Action Mode Client Mode Server Mode Server Mode Communication Mode MEWTOCOL MEWTOCOL MEWTOCOL aa Destination IP Address 192 168 1 11 N A N A Destination Port No 9094 N A N A Source Port No 0 9094 9094 Timeout 0 0 0 Destination unit number and IP address is Activated N A N A Option specified IP Address for No 1 192 168 1 11 N A N A unit no No 2 192 168 1 12 N A N A 4 14 4 3 Example of User connection MEWTOCOL 2 MEWTOCOL Master Communicationin the UDP UNICAST mode Parameter Example Dialogbox Field Home Slave1 Slave2 IP Address 192 168 1 5 192 168 1 11 192 168 1 12 IP Address Subnet Mask 255 255 255 0 255 255 255 0 255 255 255 0 Default Gateway 192 168 1 1 192 168 1 1 192 168 1 1 Protocol Mode UDP UDP UDP Action Mode Client Mode Server Mode Server Mode Communication Mode MEWTOCOL MEWTOCOL MEWTOCOL ae Send type UNICAST UNICAST UNICAST Destination IP Address 192 168 1 11 N A N A
33. can or later following completion of data sending 6 4 2 Start Code STX End Code ETX Receiving process Reception done flag and GPRECV instruction are related as follows Data received from external device SCU receive bu ffer No of bytes received Reception done flag XO GPSEND instruction execution Receive bu ffer specified using GPRECV instruction DLNLYLBAN OAR G NAR N AB Stored A A A A ID D D F F F IH H j B B B B E E G G Gre Gt 5 Even in a mie c c c c reception done Ba 2 te status received data is continued into another buffer because there are 4 096 x lt 1 gt lt 2 gt lt 3 gt lt 0 gt lt 1 gt lt 2 gt lt 2 gt lt 1 gt 8 reception lt 2 gt lt 0 gt lt 1 gt lt 1 gt buffers 4 Upon reception of the Upon reception of the start code the reception start code the reception pointer is initialized pointer is initialized mu ON tt No of bytes received mjo N je e When the start code is set to STX the data are saved in the reception buffer When the start code is received the receive pointer is initialized If there are two headers data following the second header overwrites the data in the reception buffer e The COM port has eight reception buffers The reception p
34. ct arga SC Embeds the area of a specified range in a 16 point on off pattern fill command Preset cases SD Writes the same contents to the data area of a specified range fill command Read the status of PLC RT Reads the specifications of the programmable controller and error codes if an 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 1 2 List of MEWTOCOL7 Commands E 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 REFERENCE e For details of MEWTOCOL commands please see 7 2 MEWTOCOL COM Format and 7 3 MEWTOCOL7 COM Format 5 2 MEWTOCOL COM Master Communication RECV 5 2 MEWTOCOL COM Master Communication RECV 5 2 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 and writing can be done simply by specifying the station no and memory address and executing SEND RECV instructions External device supporting PLC MEWTOCOL COM Command message DT100 100 01 RD00
35. d This flag does not remain ON across several scans Execute 1 END instruction scan header and 2 RECV instruction 3 1 Input Output Signals Used for Communication E Input signal COM 1 port User connection COM 2 port for System connection Effective 3 Communica naa Input signal F Name Description operation tion port mode For COM 2 0 During start process X20 Port Start status flag 1 Start process done Normally For COM 2 3 0 Link Up X21 Port Link status flag RAR Dowh Normally For COM 2 dise 0 Normal operation X22 Initialized fl N Il Port ARAL 1 During initialized process deca X23 X27 Not used Do not use this For COM 2 0 Normal X28 Port Error status flag i Eroroc ured Normally For COM 2 Nba 0 Normal RE Port DHCP acquisition flag 1 Acquisition error occurred Normally For COM 2 0 Normal X2A V fl N Il Port RARES 1 Ver up error occured Omay X2B X2F Not used Do not use this Ear coma User connection X30 a Connection status flag 0 Disconnected Normally 1 Connected For COM tops ki User connection Or erver connection X31 Port Full flag 0 Not full Normally 1 Full orCOM t tcp ci User connection X32 sg lenticonnechion 0 Success0 Normally Port failure flag 1 Failure X33 Not used Do not use this ECON System connection X34 poa Connection status flag 0 Disconnected Normally 1 Connected X35 X3F Not used Do not use this
36. ded H DF NEG SS DT100 DT100 i use a negative value for specifying the No of sent bytes S1 D bin aa R100 Settings for communication port UNITSEL 81 Slot 0 U0 S2 COM1 U1 i i SEND processing GPSEND SS DT101 DT100 4 S Header of Sent Data DT101 S D in No of Sent Characters DT100 i n i D Execution Result Code DTO 8 R101 F Confirm sending completion DF Reset GPSEND execution conditions X3 KEY POINTS e When you do not wish to add the terminator end code use a negative value for specifying the No of sent data in GPSEND instruction Select SS for operation unit Y 6 7 General Purpose Communication 6 3 Receiving Operation 6 3 1 Overview of Receiving Operation E Instructions In the general purpose communication mode data received from the partner device are saved in eight reception buffers for each COM port When the GPRECV instruction is executed in a user program data in the reception buffer can be copied into a given operation memory PLC External device Reception buffer eight for each COM port Receive message data ai ee H 31 32 33 34 35 30002 rE Paan Operation 1 12 34 5 CR 00003 5 memory sais aa DT200 U5 DT201 H 32 31 T j rer ihe stri edib P ransfer the strings received based on ee oo GPRECV instruction to a given data register DT203 H 35 E Sample program eWhen the reception done flag X0 turns
37. duction 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 purpose 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 FP7 CPU Unit Command Reference Manual WUME FP7CPUPGR FP7 CPU Unit Users Manual Logging Trace Function WUME FP7CPULOG FP7 CPU Unit Users Manual Security Function WUME FP7CPUSEC Instructions for Built in LAN Port FP7 CPU Unit Users Manual LAN Port Communication WUME FP7LAN Instructions for Built in COM Port FP7 Extension Cassette Communication RS 232C RS485 type FP7 Extension Cassette Communication Ethernet type FP7 series Users Manual SCU communication FP7 series Users Manual Communication cassette Ethernet type WUME FP7COM WUME FP7CCET FP7 Extension Function Cassette Analog Cassette FP7 Analog Cassette Users Manual WUME FP7FCA FP7 Digital Input Output Unit FP7 Digital Input Output Unit
38. e is not confirmed Set the wait time for the end code If the next message data is not received within the judgment time without termination ms after the last received message data the AFP7 CCET1 judges that is no termination and performs the following operation Judgement time without End code when selecting CR CR LF 20ms termination The received message data is discarded For TCP the connection is disconnected End code when selecting NONE The message data is transmitted to the connected destination Destination unit number and IP A command is transmitted to the IP address N A Target IP address is corresponding to the unit number Address specified for unit 3 number Unit Number Specify a stationnumb r PO N A Specify a value between 1 and 99 in decimal format IP Address Specify IP address 192 168 1 100 Action Mode Server Mode is fixed for the System connection Server Mode Etototel Mod Protocol Mode of Communication cassette AFP7 CCET1 TCP TCP is fixed c icati Communication Mode of Communication cassette AFP7 aa oe CCET1 MEWTOCOL System MEWTOCOL is fixed connection s Port N Port number that AFP7 CCET1 opens 9094 ource Port No Range 1025 to 32767 If AFP7 CCET1 not communicate with a destination device during this setting time seconds in the state that Timeout connection is established connection will be cut 15 sec Range 0 to1800s When 0 is set the connection will not be cut Setting C
39. e of command 4 Check code BCC hexadecimal 5 Terminator Two One oe digit t Target that reads the value intemal 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 start code Commands must always have a Yo 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 eIn 1 1 communication specify 01 ASCII code H3031 or EE ASCII code H4545 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 ASCII code 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 Ter
40. ection MEWTOCOL s es 4 12 4 3 1 Specified using FPWINGR7 rennes 4 12 4 3 2 Specified using Configuration WD 00 ee eee ceeeeeeeenteeeeeenteeeeeeeneeeeeeaas 4 12 43 3 Example of MEWTOCOL Master Communication 4 14 4 4 Example of User connection General Communication 4 16 44 1 Specified using FPWINGR7 rennes 4 16 44 2 Specified using Configuration WD 00 ec ceeeeeeeeeeeeeeeeeneeeeeeeeneeeeeeaas 4 16 4 5 Example of System connection 4 18 4 5 1 Specified using Configuration WD 00 eee eeeeeeeeeeeeeeeenteeeeeeeseeeeeeaas 4 18 4 5 2 Specified using FPWIN GR7 iii 4 19 5 MEWTOCOL Master Slave Communication 5 1 5 1 List of MEWTOCOL MEWTOCOL7 Supporting Commands 5 2 5 1 1 List of MEWTOCOL Commands assesoires as AEEA EEE RARA 5 2 5 1 2 List of MEWTOCOL7 Commands 5 2 5 2 MEWTOCOL COM Master Communication RECV 5 3 5 2 1 Read Data from an External Device 00 0 eee eeeeeceetteeeeeenteeeeeenaeeeeeeeaes 5 3 5 2 2 Precaution When Using TCP Client Mode 5 5 5 2 3 RECV Instruction When MEWTOCOL COM is Used 5 5 5 3 MEWTOCOL COM Master Communication SEND 5 6 5 3 1 Write Data into an External Device 5 6 5 3 2 Precautions When Using TCP Client Mode 5 8 Table of Contents 5 3 3 SEND Instruction When MEWTOCOL COM is Used 5 8 General Purpose Communication 6 1 6 1 Opera
41. ength and parity match between the computer and the PLC 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 Specifications 7 12 Record of changes Manual No Date Record of Changes WUME FP7CCET 01 DEC 2013 First Edition Please contact Panasonic Industrial Devices SUNX Co Ltd E Overseas Sales Division Head Office 2431 1 Ushiyama cho Kasugai shi Aichi 486 0901 Japan E 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 December 2013 PRINTED IN JAPAN WUME FP7CCET 01
42. eted the sent bytes are saved When an error occurs FFFFH is saved p KEY POINTS e Specify the port targeted for communication using UNITSEL instruction immediately before GPSEND instruction e Maintain the ON conditions for GPSEND instruction until sending is completed and the general purpose communication sending active flag Y8 turns OFF e Confirm that the General purpose communication Clear to send flag for the targeted COM port has turned ON and execute GPSEND instruction e When GPSEND instruction is executed for a communication port in the sending process the sending active flag and the sending result are updated e GPSEND instruction cannot be used in an interrupt program 6 6 6 2 Sending Operation 6 24 Precautions on Sending Data E Procedures when the end code is not added in the sending process When you do not wish to add the terminator end code in the sending process use a negative value for specifying the No of sent bytes RO X8 Y8 R101 R100 i GPSEND execution conditions H DF i Clear to send flag ON Sending active flag OFF General purpose General purppse sens nn en ess ss sn es cannes SA communication communicatidn R100 Clear to send flag Sending activp flag paraatiin Data conversion S1 Sent Data R100 S2 Save Sent Data i DT100 No of Sent Characters DF SSET ABCDE DT100 i DT101 onward Sent Data i S1 S2 a R100 i Because no end code is ad
43. f sending data in genera purpose communication or master communication Normal completion 0 Abnormal completion 1 Sending done result KO flag Note 1 Each contact is used for reading the operation status Do not write over it with a user program Note 2 When the sending time is shorter than the scan time the General purpose communication Sending active flag Y8 tums OFF when the GPSEND instruction is executed in the subsequent scan following data sending completion In all cases it is turned ON for at least one scan time p KEY POINTS e Specify the port targeted for communication using UNITSEL instruction immediately before GPSEND instruction e Maintain the ON conditions for GPSEND instruction until sending is completed and the general purpose communication sending active flag Y8 turns OFF 6 2 Sending Operation 6 2 2 Contents of Sent Data Strings data sent by the GPSEND instruction are converted into ASCII text and saved in a given data register E Sent data table e Once the sent data are converted into strings data using the SSET instruction the No of characters is saved in the header area The sent data are saved starting with lower bytes of the subsequent address After executing SSET instruction the No of characters is set DT101 Strings of the No of bytes specified by GPSEND instruction prige are sent in ascending order from lower bytes DT103 DT104 p KEY
44. ght F 2 receive bu ffers are all filled up even G 5 Da if the reception done flag is turned on D No of bytes lt 1 gt lt 2 gt lt 3 gt s15 s25 lt 3 gt lt 4 gt received After GPRECV instruction is ON executed reception done Reception flag turns off at the beginning done flag of next scan or later OFF XO 4 iy ON GPRECV instruction et OFF execution ON GPSEND instruction OFF execution ON General purpose communication Sending active flag OFF Y8 Transmitted 1 2 3 CR data Receive bu ffer No of bytes received specified using GPRECV instruction Ojoj gt v e The COM port has eight reception buffers The reception process is continued after the reception done flag X0 turns ON The reception done flag X0 does not turn OFF immediately following the execution of GPRECV instruction It will be turned off at the beginning of the next scan or later e After GPSEND instruction is executed data transmission is started in several us to several tens of ms For time before transmission is started please refer to the communication cycle time SM208 SM210 using the system monitor function General Purpose Communication e After GPSEND instruction is executed dual sending to the same port is not possible until the sending General purpose communication Sending active flag Y8 turns OFF The General purpose communication Sending active flag Y8 turns OFF in instruction execution in the next s
45. information only for errors that can be cleared Y11 Y1F Not used Do not use this Note 1 When transmission is completed within one scan it turns off when the GPSEND instruction is executed in the subsequent scan NOTE Each contact Y0 Y8 YC in the table above is used for reading the operation status Do not write over it with a user program excluding Y10 4 Setting Communication Conditions Setting Communication Conditions 4 1 Settings Using FPWIN GR7 e Set the Communication Mode Station no and others in the FPWIN GR7 e These configuration will downloaded to the PLC with Programs as a Project a PROCEDURE 1 Select Options gt FP7 Configuration from the menu bar The FP7 Configuration dialog box opens 2 Select Built in SCU Setting items for Built in SCU appear 3 FP7 Configuration mein Memory configuration Communication mode CPU configuration Setting item Setting description I O mal A Built in ET LAN Communication mode MEWTOCOL COM Station No 1 Baud rate 9600bps Data length 8 bits Parity Odd Stop bit 1 bit RS CS Disable F Send waiting time 0 1 Header STX Disable Terminator setting CR Terminator judgement time 0 Modem initialization Not initialize MEWTOCOL COM Station No 1 Baud rate 9600bps Data length 8 bits Parity Odd Stop bit 1 bit RS CS Disable Send waiting time 0 Header STX Disable Terminator setting CR
46. instruction is executed data transmission is started in several us to several tens of ms For time before transmission is started please refer to the communication cycle time SM208 SM210 using the system monitor function e After GPSEND instruction is executed dual sending to the same port is not possible until the sending general purpose communication flag Y8 turns OFF e The General purpose communication Sending active flag Y8 turns OFF in GPSEND instruction execution in the next scan or later following completion of data sending to an external device The General purpose communication Sending active flag Y8 always remains on for at least 1 scan time 6 15 General Purpose Communication 6 16 l Specifications Specifications 7 1 Specifications 7 1 1 Communication E COM 1 port User connection Communication port Setting range 1 99 MEWTOCOL COM 1 999 MEWTOCOL7 COM Baud rate 230400 bps 230400 Data length 8 bits 8 bits Station no Parity Communicati Stop bi on format End code CR CR LF ETX CR or time 0 01 ms 100 ms by the unit of 0 01 ms Without Start code Without STX Send Waiting 0 to 100ms Note1 Permissible communication condtions depend on communication mode MEWTOCOL or General perpose Communication mE COM 2 port System connection L communiction port Setingan eur es 1 99 MEWTOCOL COM slave 1 999 MEWTOCOL7 COM slave
47. ion 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 the 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 Ground the protective earth PE terminal Class D grounding Failure to do so could lead to an electric shock 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_BATPE_ET Intro
48. l XO Port communicatio Waitina for d ion 0 R purpose n Reception aiting of ata reception 0 Reception communication done flag completed 1 X1 X3 Not used Do not use this General It turns on 1 if there are copied data when purpose GPRECV instruction is executed It turns off General For COM 1 communicatio 0 when END instruction is executed X4 purpose Port n Reception Note 1 eamnmunication done copy Reading completed 1 flag No data to be read 0 X5 X7 Not used Do not use this General For COM 1 purpose It turns on 1 when the unit is set to the General X8 communicatio general purpose communication mode It purpose Port ae n Clear to turns off 0 in other modes communication send flag X9 XB Not used Do not use this Master It turns on 1 when the unit is set to modes For COM 1 communicatio other than the general purpose AG Port n Clear to communication mode It turns off 0 in other MEWTOCOL send flag modes XD XF Not used Do not use this When the communication channel is reset For COM 1 under the output Y10 the flag is turned on 1 General X10 Port Reset done once the resetting operation is completed purpose Resetting done 1 communication Y10 is off 0 X11 X1F Not used Do not use this Note 1 The general purpose communication reception done copy flag is effective after the execution of the RECV instruction until one of the following instructions is execute
49. minator end code Messages must always end with a CR ASCII code HOD 7 2 MEWTOCOL COM Format NOTE 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 X3 KEY POINTS e An expansion header lt is supported to send and receive single frames of up to 2048 characters as well as general 90 Type of header No of characters that can be sent in 1 frame Yo Max 118 characters lt Max 2048 characters 7 5 Specifications 7 2 2 MEWTOCOL COM Response Format E Response message After PLC receives a command it returns the processing result 1 Baa 2 Station no a source PLC that processed the command decimal 3 Text Processing results and communication error codes are stored here 4 iie code BCC Hexadecimal LE Terminator Two One Two Gan Read value Processing results for contact area read contact is off name e g read contact area Response code na 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 m
50. mmand Format 7 8 7 3 2 MEWTOCOL7 Response Format cceceececeeceeeeeeeeeeeeeaeeeeeeeeeeeees 7 10 1 Communication Functions of CPU Unit Communication Functions of CPU Unit 1 1 Communication Ports of CPU Unit 11 14 Types and Purposes of Communication Ports E Communication Port of CPU Unit Panasonic FP7 CPS4E RUN COMO SD ERROR PROG SD CARD ALARM RD COPY t8 In the above figure a communication cassette Ethernet type is attached to the COM 1 and COM 2 ports E Functions of Ports 1 COM 1 and COM 2 ports Attach a separately sold communication cassette to use these ports 2 COM 0 port GT power supply terminals 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 This is used for connection to Ethernet 4 USB port This is equipped to a standard model of CPU unit This is used for connecting tool software REFERENCE e See the FP7 CPU unit User s manual LAN port communication for the detailed information of communication method via built in LAN port in the CPU unit There is the deference of the usage between the Communication cassette Ethernet type AFP7CCET1 and built in LAN port 1 2 1 1 Communication Ports of CP
51. n i Receive response message Send command based on GPSEND instruction Receive response based on GPRECV instruction 6 1 2 Write Data into an External Device m Write data into a partner device In general purpose communication communication is executed by sending command s that suit the partner device and receiving responses Command messages are sent by formulating a data table for message in accordance with the protocol on the given data register and subsequently executing GPSEND instruction PLC External device Send command message ABCD 1 2 CR X r XYZ CR Receive response message Send command based on GPSEND instruction Receive response based on GPRECV instruction X3 KEY POINTS e There is no relevance between the operation of transmission by GPSEND instruction and the operation of reception by GPRECV instruction The built in SCU in the CPU unit is always clear to receive data 6 2 6 2 Sending Operation 6 2 Sending Operation 6 2 1 Overview of Sending Operation E Instructions Sending in the general purpose communication is performed by formulating a data table for sending on the given operation memory and subsequently executing GPSEND instruction PLC External device Send message data DT100 U5 ABCDE CR 000011 Tamaan DT101 BA 00002 DT102 DC Send data based on GPSEND 222 DT103 E instruction eaaa
52. nfigurator WD o PROCEDURE 1 Activate unit name when connected unit is indicated The unit name will be highlighted Select Edit 5 Communication Setting from the menu bar Communication Setting dialigbox will open User Connection Protocol Mode 7 Bacs Action Mode Cancel Server Mode x Option Setting Communication Mode JMEWTOCOL Send Type UNIGAST Server Setting Source Port No 9095 502 65534 Timeout 15 sec 0 No Timeout 0 1800 Client Setting Destination IP Address J 192 168 1 100 Destination Port No 9094 502 65534 Source Port No 9095 0 502 65534 Timeout 16 sec 0 No Timeout 0 1800 Enter the desired items See the next page for the details Press OK The message box Unit communication setting was completed will appear Press OK 4 6 4 2 Specified using Configurator WD Em Communication Settings Parameters Description Default Protocol Mode Protocol Mode of Communication cassette AFP7 CCET1 Select TCP or UDP TCP Action Mode Action Mode of Communication cassette AFP7 CCET1 Select Client Mode or Server Mode Server Mode Communication Mode Communication Mode of Communication cassette AFP7 CCET1 Select MEWTOCOL or General communication to match the communication mode setting of FPWINGR7 MEWTOCOL Send type Method for transmitting data to partner devices Select UNICAST or BROADCAST
53. ommunication Clear to send flag XC for the targeted channel is ON and execute SEND RECV instruction e You cannot execute other SEND RECV instruction for a communication port in master communication Confirm that the Master communication Sending active flag YC is OFF and execute instruction e You cannot execute SEND RECV instruction for a port in slave communication e If no response is received the Master communication Sending active flag YC remains ON throughout the timeout setting time specified in CPU configuration e Upto 16 SEND RECV instructions can be executed simultaneously for different COM ports 5 2 MEWTOCOL COM Master Communication RECV 5 2 2 Precaution When Using TCP Client Mode e Connection request will be performed when data transfer is executed Please execute master communication command after confirming the connection status flag X30 is OFF e When a connection successfully established connection status flag X30 turns ON If a connection failed connection status flag X30 stays OFF and TCP client connection failure flag X32 turns ON Please reconfirm the conditions of destination or connection elf it needs to continue data transfer between the same connected equipment please execute master communication command after confirming the connection status flag X30 is ON 5 2 3 RECV Instruction When MEWTOCOL COM is Used E Instruction format RO RECVIUS u1 pra uz
54. ommunication Conditions 4 2 5 Target IP address for unit number Setting Target IP address for unit number Setting is available in case of the following condtions e Protocol Mode TCP or UDP UNICAST e Action Mode Client Mode e Communication Mode MEWTOCOL a PROCEDURE 1 Press Option Option dialigbox will open 2 Check the checkbox Destination unit number and IP address is specified Double click the line of the desired unit number Target IP address for unit number setting dialigbox will open Tareet IP address for unit number jv Destination unit number and IP address is specified Unit Number IP Address Dest Port No Unit Number EE 1 192 168 1 100 9095 Not Use M2 192 168 1 100 9095 Not Use Target IP address for unit number setting mir Unit Number 1 Target IP 168 1 100 System Cof Use Unit Number EE Use Cancel Action Mj Destination Port No 9095 502 655 34 Protocol 4 Enter IP Address for unit number 5 Press OK 4 10 4 2 Specified using Configurator WD 4 2 6 Initialization ot the environment setting of the cassette e The Ethernet communication environment setting of the AFP7CCET1 can be initialized OFF amp ON SW2 Normally OFF SW1 For Initialization Normally OFF a PROCEDURE 1 Turn on the SW1 at the back of the AFP7CCET1 2 Install the AFP7CCET1 on the FP7 CPU unit and turn on the power supply 3 Start C
55. on destination IP address 192 168 1 5 Port No 9094 1 65535 Timeout settings Communications timeout sec 15 KA Connection timeout sec Register Settings A List Registrations Select LAN Enter the same IP Address and the same Source Port no into Connection destination field as the setting in the Configurator WD Press OK Select Online 5 Switch to Online Mode from the menu bar 4 19 Setting Communication Conditions 4 20 5 MEWTOCOL Master Slave Communication MEWTOCOL Master Slave Communication 5 1 List of MEWTOCOL MEWTOCOL7 Supporting Commands 5 1 1 List of MEWTOCOL Commands E Commands to be used Type of instruction Code Description RC Reads ON OFF status of contact RCS Specifies only one point Read contact area RCP Specifies multiple contacts RCC Specifies a range in word units WC Turns ON or OFF the contact WCS Specifies only one point 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 ol Reset MC Registers the contact to be monitored contacts monitored Register of Reset MD Registers the data to be monitored data monitored Monitoring start MG Monitors a registered contact or data using MC and MD Preset conta
56. onfigrator WD 4 Press Search Unit icon in the Configrator If FP7CCET1 is detected it has sucessfully initialized Turn off the power supply of the FP7 CPU unit Remove the AFP7CCET1 Turn off the SW1 at the back of the AFP7CCET1 7 Install the AFP7CCET1 on the FP7 CPU unit X3 KEY POINTS e The Ethernet communication setting including the IP address cannot be changed when the SW1 of the AFP7CCET1 is on Always turn it off after initialization gi Setting Communication Conditions 4 3 Example of User connection MEWTOCOL 4 3 1 Specified using FPWINGR7 e Set the communication mode and station no into the field built in SCU gt COM 1 settings in the FPWINGR7 Memory configuration CPU configuration Setting item Setting description 1 0 may o A Built in ET LAN Communication mode MEWTOCOL COM Station No 1 Baud rate 9600bps Data leneth 8 bits Parity Odd Stop bit 1 bit RS CS Disable 8 Send waiting time 0 g Header STX Disable Terminator setting CR Terminator judgement time 0 Modem initialization Not initialize Setting items for COM 1 port AFP7CCET1 Setting item Setting descripyion Communication Mode MEWTOCOL COM Station No 1to99 4 3 2 Specified using Configuration WD E TCP Client Mode Parameter Default User Connection Protocol Mode TCP Action Mode Client Mode Protocol Mode Action Mode Cancel Client Mode Gan Gane
57. per case characters following the fixed formula for the particular command 7 8 7 3 MEWTOCOL7 COM Format 5 Check code e This is a CRC Cyclic Redundancy Check to detect errors using a generating polynomial of hamming codes e This 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 ASCII code 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 X3 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 No of characters that can be header sent in 1 frame gt Max 4096 characters 7 9 Specifications 7 3 2 MEWTOCOL7 Response Format m Response message Header taga code LL 2 Station no ie the receiver 3 Frame No 4 Text to be specified in accordance with the type of command 1 I g I sw f Command name data area read Command code value Response code no
58. rmal status abnormal status Data normal status read data abnormal Le 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 This is the frame number where the command was processed 4 Text The content of this varies depending on the type of command If the processing is not completed successfully an error code will be stored here so that the content of the error can be checked 7 10 7 3 MEWTOCOL7 COM Format 5 Check code e This is a CRC Cyclic Redundancy Check to detect errors using a generating polynomial of hamming codes e This 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 ASCII code 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 NOTE 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 to make sure all of the communication specifications e g baud rate data l
59. rocess is continued after the reception done flag X0 turns ON The reception done flag X0 does not turn OFF immediately following the execution of GPRECV instruction It will be turned off at the beginning of the next scan or later e f there are no received data following execution of GPRECV instruction the reception done copy flag X4 turns OFF 6 14 6 4 Sending Receiving Flag Operation X3 KEY POINTS e The data without the Code STX at the reception is saved in the reception buffer and the reception done flag turns on when the end code is received e However if the code STX is added in the middle of the data the data are saved from the beginning of the reception buffer Sending process Sending done flag and GPSEND instruction are related as follows transmitted STX a b ETX STR c d e ET data T SCU STX sTX sTX STX STX sTX sTX STX STX send buffer a ka a a a c ej c c c c b 2 b jej b b d d be d d d ETX Q eTx etx e ETX j e e e jej e e 5 ETX ETX ETX ETX j ETX ja 2 N c g ON GPSEND instruction Z mj L OFF execution ON General purpose communication Sending active flag OFF Y8 e Header STX and terminator ETX are automatically added to the data to be sent The data are transmitted to an external device e After GPSEND
60. scending order from lower bytes to higher bytes starting with DT201 DT203 DT202 DT201 DT200 Higher Lower Higher Lower Higher Lower Higher Lower byte byte byte byte byte byte byte byte CR 5 4 3 2 1 p KEY POINTS e The received data that are copied based on the GPRECV instruction do not include a start code or end code e It is also possible to receive binary data based on the GPRECV instruction In this case the terminator should be specified using Time Received No of bytes 6 3 3 Precautions on Receiving Data E Reset communication ports elf a communication abnormality has occurred communication ports can be reset by turning on the Request to reset signal Y10 by the user program e Once reset is completed X10 turns ON Subsequently turn OFF the Request to reset Y10 Por eens of COM port Request to reset an error Y10 CH1 error Request to reset done reset CH1 Request to reset CH1 E Procedure for repeated reception of data For repeated reception of data perform the following steps 1 to 4 1 Receive data 2 Turn on the General purpose communication reception done flag X0 3 Specify a port to receive data based on the UNITSEL instruction 4 Execute the GPRECV instruction and read the received data from the reception buffer 6 10 6 3 Receiving Operation 6 3 4 Operations of the Reception done copy flag and multiplex reception
61. sed on SEND RECV instruction YC communication j ring ing instruction Sending active flag Turns OFF when the sending process is completed Reports completion result of sending data in general purpose communication or master communication Normal completion 0 Abnormal completion 1 Sending done Yo result flag Note 1 Each contact is used for reading the operation status Do not write over it with a user program X3 KEY POINTS e Specify the port targeted for communication using UNITSEL instruction immediately before SEND RECV instruction e Master communication is only valid when MEWTOCOL is selected Confirm that the Master communication Clear to send flag XC for the targeted channel is ON and execute SEND RECV instruction e You cannot execute other SEND RECV instruction for a communication port in master communication Confirm that the Master communication Sending active flag YC is OFF and execute instruction e You cannot execute SEND RECV instruction for a port in slave communication e If no response is received the Master communication Sending active flag YC remains ON throughout the timeout setting time specified in CPU configuration e Upto 16 SEND RECV instructions can be executed simultaneously for different COM ports MEWTOCOL Master Slave Communication 5 3 2 Precautions When Using TCP Client Mode e Connection request will be performed when data transfer is exec
62. t is indicated The unit name will be highlighted 2 Select Edit 5 Communication Setting from the menu bar Communication Setting dialigbox will open 3 Press Option Option dialigbox will open a BB User Connection Endcode CR X Judgment time without termination 20 0 100 ms Target IP address for unit number Cj Unit Number IP Address Dest Port No Unit Number EE O 192 168 1 100 9095 Not Use i 2 192 168 1 100 9095 Not Lise 13 192 168 1 100 9095 Not Lise o4 192 168 1 100 9095 Not Use mr inv ieo1inn nonk lat Ilan System Connection Action Mode Server Mode ZI Protocol Mode TGP bd Communication Mode MEWTOCOL o J Server setting Source Port No ss 502 65534 Timeout 15 sec 0 No Timeout 0 1800 4 Enter the desired items See the next page for the details 5 Press OK Communication Setting dialigbox will open 6 Press OK in the Communication Setting dialigbox The message box Unit communication setting was completed will appear 7 Press OK 4 2 Specified using Configurator WD E Option Setting Parameter Description Default This is the code for the AFP7 CCET1 to confirm the end of the message data to be received from the FP7 CPU unit End code CR CR LF or NONE can be selected CR Reception continues until the end of the message CR CR LF will be received When selecting NONE the end cod
63. te 2 The No of sent data is on a word basis for register transmission and on a bit basis for bit transmission Note 3 When 0 is specified for partner station no global transmission is applied In this case no response message is received from the partner side Note 4 Bit device DT n and LD n cannot be specified for the header of the receiver data in the partner node Note 5 Device that can be specified for D3 are WX WY WR WL DT LD Saved as one word in the specified area 0 Normal completion 1 Communication port is being used for master communication 2 Communication port is being used for slave communication 3 No of master communication instructions that can be used simultaneously has been exceeded 4 Sending timeout 5 Response reception timeout 6 Received data error 6 General Purpose Communication General Purpose Communication 6 1 Operation of General Purpose Communication 6 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 instruction PLC External device Send command message DT100 U4 ABCD CR 20001 121 DT101 H4241 40002 43 DT102 H44 43 an l ae le 1234 CR es e
64. timeout Response reception timeout Received data error DOAUBAWN MEWTOCOL Master Slave Communication 5 3 MEWTOCOL COM Master Communication SEND 5 3 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 and writing can be done simply by specifying the station no and memory address and executing SEND RECV instructions PLC External device supporting MEWTOCOL COM Command message O es le 01 WDD004000040164000000 BCC Cr 500400 100 gt DT101 0 DT00401 0 UA AY SS NEE aa 01 WD BCC Cr Response message L nie Specify and write station no and address based on SEND instruction eese i E Sample program e Send commands from the COM1 port of the CPU unit and write the content of PLC s data register DT100 DT101 into the data area of an external device station no 1 DT400 DT401 eConfirm that the unit is in the master mode XC and that the sending process is not in progress for the same port YC and start up the SEND instruction e In the UNITSEL instruction specify the slot No U0 and the COM port No U1 e In the SEND instruction specify and execute the sender initial address DT100 No of data U2
65. tion E Timing chart Master communication ae i Conditions to enable execution of RECV i Clear to send flag i instruction i XC Confirm ON i Clear to send flag XC ON Sending active flag YC OFF Master communication Confirm OFF Sending active flag YC i Sending active flag YC Sending data ON Sending done OFF Execute RECV i Sending done result flag YO Normal completion OFF Abnormal completion ON Master communication Sending done result flag YO Sending data Response reception processing E 1 0 allocation COM port no 1 Name Explanation Master 3 ue Turns ON when MEWTOCOL COM or MEWTOCOL is set for XC communication Clear Se SAPA the communication mode and the unit is in the RUN mode to send flag Master Turns ON during sending data based on SEND RECV YC communication instruction Sending active flag Turns OFF when the sending process is completed Reports completion result of sending data in general purpose communication or master communication Normal completion 0 Abnormal completion 1 Sending done result YO flag Note 1 Each contact is used for reading the operation status Do not write over it with a user program X3 KEY POINTS e Specify the port targeted for communication using UNITSEL instruction immediately before SEND RECV instruction e Master communication is only valid when MEWTOCOL is selected Confirm that the Master c
66. tion of General Purpose Communication nananana 6 2 6 1 1 Read Data from an External Device 6 2 6 1 2 Write Data into an External Device 00000077702 maas eeeeeeeeeeeeeeeeeeeeeeeeee 6 2 6 2 Sending OD rAtION triennal attentat ne re el 6 3 6 2 1 Overview of Sending Operation u s nannaanawannaa nanana aaaaanannnwaasann 6 3 6 2 2 Contents of Sent Data 6 5 6 2 3 GPSEND General Purpose Communication Sending Instruction 6 6 6 2 4 Precautions on Sending Data 1117 mununanannaaananaanananaananannnasassnwaasann 6 7 6 3 RECEIVING Op ration a NAA 6 8 6 3 1 Overview of Receiving Operation 6 8 6 3 2 Contents of Received Data 0 ecceceeeeeeeeeneeeeeeeneeeeeeneeeeeeneeeeseaes 6 10 6 3 3 Precautions on Receiving Data 6 10 6 3 4 Operations of the Reception done copy flag and multiplex reception 6 11 6 3 5 GPRECV General Purpose Communication Receiving Instruction 6 12 6 4 Sending Receiving Flag Operation 6 13 6 4 1 No Header Start Code Terminator End Code CR assesses 6 13 6 4 2 Start Code STX End Code ETX 6 14 SpecificationS aah aa AL a aa 7 1 Lal Specifications aeee NANA Ama ann Ae 7 2 CEVA COMMUNICATION a maam nA AA aaa 7 2 7 2 MEWTOCOL COM Format sise 7 4 7 2 1 MEWTOCOL COM Command Format ccccceeeeeeeeeeeeeeeeeeneeeeeeaeees 7 4 7 2 2 MEWTOCOL COM Response Format 7 6 7 3 MEWTOCOL7 COM Format ses 7 8 7 3 1 MEWTOCOL7 COM Co
67. ttle noise It does not have a higher resistance to noise than ordinary FA application networks Caution is required when installing the hub and when laying cables 2 2 2 Installation Environment and Noise Control Measures E Measures that can be taken in the installation environm ent 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 100mm or more Noise generating device cable 100mm or more 100mm 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 e 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 This 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 insul
68. unication E Timing chart e Data in the table S specified by GPSEND instruction are sent in ascending order from lower bytes e During the sending process the General purpose communication Sending active flag Y8 turns ON The flag is turned OFF when sending is completed The flag does not turn off right after the execution of the instruction It turns off at the beginning of the second scan e The sending result 0 normal completion 1 abnormal completion is saved in the general purpose communication sending result flag YO General purpose Na i Conditions to enable execution of communication Clear to GPSEND instruction Clear to send flag X8 ON send flag X8 g X8 Confirm ON Sending active flag Y8 OFF General purpose Confirm OFF communication Sending active flag Y8 i Sending active flag Y8 Sending data ON Sending done OFF Execute GPSEND Sending done result flag YO Normal completion OFF Abnormal completion ON Sending done resut tx flag YO Sending data E 1 0 allocation COM port no Name Explanation General purpose Turns ON when the unit is set to the general purpose X8 communication Clear to ae communication mode send flag General purpose Turns ON during sending data based on general purpose Y8 communication communication GPSEND Sending active flag Turns OFF when the sending process is completed Reports completion result o
69. ust 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 successfully 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 converts the final result 5 Terminator end code The message should end with CR ASCII code HOD 7 6 7 2 MEWTOCOL COM Format NOTE 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 to make sure all of the communication specifications e g baud rate data length and parity match 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 CI 7 Same lt gt Same A _ taon Joti s eie 7 7 Specifications 7 3 MEW
70. ut of response reception Enter the Time setting filed of CPU Configuration in the FP7 configuration dialig box of FPWIN GR7 End processing time setting value 0 1 ms 125 Next frame wait timeout time during multi fram 6500 Monitor registration valid time setting value 1 65535 Contact scan time setting value 1 ms 0 Communications control instruction timeout tim 100 UDP Client mode Communication Setting Ss Parameter Default User Connection Protocol Mode UDP Protocol Mode 6 Action Mode Client Mode jo Communication Action Mode Cancel Mode MEWTOCOL Client Mode X Onti 5 UNICAST ption Setting oaa Send type BROADCAST Communication Mode MEWTOCOL x Note1 Send Type UNICAST Destination IP 192 168 1 100 Address T Server Setting Source Port No 3095 502 65534 v Port 9094 Timeout 15 sec 0 No Timeout 0 1800 Source Port No 9095 Timeout 15 sec Client Setting Note Destination IP Address 192 168 1 100 The parameter IP Address is not Destination Port No 9094 502 65534 available if BROADCAST is selected Source Port No 9095 0 502 65534 Timeout 16 sec 0 No Timeout 0 1800 Setting Communication Conditions 43 3 Example of MEWTOCOL Master Communication The following example shows how to set the parameters for the master communication from home station IP Address 192 168 1 5 FP7 St
71. uted Please execute master communication command after confirming the connection status flag X30 is OFF e When a connection successfully established connection status flag X30 turns ON If a connection failed connection status flag X30 stays OFF and TCP client connection failure flag X32 turns ON Please reconfirm the conditions of destination or connection e f it needs to continue data transfer between the same connected equipment please execute master communication command after confirming the connection status flag X30 is ON 5 3 3 SEND Instruction When MEWTOCOL COM is Used E Instruction format i Ss n D1 D2 D3 RO Setting 4 gt a in ing ran items Settings Setting range i Specify the operation unit US SS S Specify the header of the source node data area Note 1 i 1 507 words n Specify the No of sent data or 1 bit D1 Specify the partner station no Note 2 Note 3 0 99 D2 Specify the initial address of the receiver node data area in the partner 0 99999 node Note 4 D3 Specify the device area in the source node to save the execution result Note 5 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 ate 16 bit device WX WY WR WL DT LD Register transmission 1 bit device X Y R L DT n LD n Bit transmission No
Download Pdf Manuals
Related Search
Related Contents
Omega Speaker Systems CNiTH-i32 User's Manual Harbor Freight Tools 44505 User's Manual 2 - Support Dish Network 123698 Satellite TV System User Manual Samsung NP-R411 用户手册(Windows 7) NEW: DataCard - American Radio History Copyright © All rights reserved.
Failed to retrieve file