Home
FP7 User`s Manual [Communication Cassette
Contents
1. scu D D 2 receive bu ffer j B E E n Le C Data can be received until eight F 2 receive bu ffers are all filled up even S DE if the reception done flag is turned on oO z No of bytes ais D3 lt 3 gt lt 1 gt lt 2 gt 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 OFE X0 4 z ON GPRECV instruction OFF execution N GPSEND A instruction OFF execution ON General purpose communication Sending active flag OFF Y8 Transmitted 1 lo 3 CR data Receive bu ffer No of bytes received specified using GPRECV instruction Oj o gt 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net General Purpose Communication e After GPSEND instru
2. 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 ge Send type UNICAST UNICAST UNICAST 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 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 Slavel 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 re i 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Setting Communication Conditions 4 4 Example of
3. Setting Communication Conditions 4 2 5 Target IP address for unit number Setting Target IP address for unit number Setting is available in case of the following conditions e Protocol Mode TCP or UDP UNICAST e Action Mode Client Mode e Communication Mode MEWTOCOL PROCEDURE 1 Press Option Option dialigbox will open 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 Target 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 F Use Cancel Action Mj Destination Port No 9095 502 65534 Protocol 4 Enter IP Address for unit number 5 Press OK Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 sWw1 For Initialization Normally OFF a PROCEDURE Turn on the SW1 at th
4. DT203 DT202 DT201 DT200 Higher Lower Higher Lower Higher Lower Higher Lower byte byte byte byte byte byte byte byte HOD H35 H34 H33 H32 H31 HO H5 CR 5 4 3 2 1 Received No of bytes 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 itis also possible to receive binary data based on the GPRECV instruction In this case the terminator should be specified using Time 6 3 3 Precautions on Receiving Data E Reset communication ports e f 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 ean 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 6 3 Receiving Operation 6 3 4 Operations of t
5. e In the UNITSEL instruction specify the slot No U0 and the COM port No U1 ein the SEND instruction specify and execute the sender initial address DT 100 No of data U2 Transmit to station no U1 and initial address DT400 RO XC YC R100 i SEND execution condition i DF 4 F Clear to send flag ON Master Master Execute Sending active flag OFF communication communication SEND b R100 Clear to send flag Sending active flag ettings for communication port S1 Slot 0 UO i S2 COM1 U1 UNITSEL i SEND process i S Data saving area DT100 n No of sent data U2 D1 Area code of the receiver U1 F D2 Forward to address DT400 D3 Execution result code DTO SEND US DT100 DT400 S1 n D1 D2 D3 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 5 3 MEWTOCOL COM Master Communication SEND E Timing chart a RE Master communication Conditions to enable execution of SEND i Clear to send flag instruction i i Clear to send flag XC ON Sending active flag YC OFF XC Confirm ON Master communication Confirm OFF Sending active flag YC Sending active flag YC i Sending data ON Sending done OFF Execute SEND Master communication es Sending done result flag Sending done result flag Y0 Y0 Normal completion OFF Abnormal completion ON Sending data
6. 1 3 1 MEWTOCOL Master Slave Communication 1 5 1 3 2 General Purpose Communication 1 6 14 TeMSssis neue ane tas eee lea Mee ee diets 1 7 2 Installation and Wiring 2 1 2 1 Attaching a Communication Cassette ccccceceeeeeeeeeeeeeeeeeeeeeeeeeeeees 2 2 2 41 1 Setting of Switches tn intense 2 2 2 1 2 Attachment Instructions TRE 2 2 2 2 Installation Environment and Wiring for LAN Ports seeen 2 3 2 2 1 Before Installation and Wiring cceeceeeeeeeeeee cent eeeeeeeeeeeeeeeeesaeeneeeeees 2 3 2 2 2 Installation Environment and Noise Control Measures cceecees 2 3 253 WininGthe LANIP OT Seins mea metne tite int tn etes eee 2 4 3 1 0 Number Allocation cccccccceesssseeseeseeeeeeeeeeeeeeeeeseenees 3 1 3 1 Input Output Signals Used for Communication ccceeeeeeeeeeeeees 3 2 8 1 1 Occupied Area for Communication cassette Ethernet type 3 2 3 1 2 WO Number Allocation iii 3 2 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Table of Contents 4 Setting Communication Conditions cceeeeeeeeeseeeeeeeees 4 1 4 1 Settings Using FPWIN GR7 us 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 4 5 4 2 3 Communication Settings c cccccc
7. 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 _ 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 Connection destination IP address 192 168 1 5 Port No 9094 1 65535 1 Timeout settings Communications timeout sec 15 z Connection timeout sec l Register Settings A l 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 gt Switch to Online Mode from the menu bar Phone 8
8. Response reception processing E O allocation COM port no 1 Name Explanation Manier Turns ON when MEWTOCOL COM or MEWTOCOL7 is set for XC communication Clear to send flag the communication mode and the unit is in the RUN mode Master YC communication Sending active flag Turns ON during sending data based on SEND RECYV instruction 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 vO result flag Note 1 Each contact is used for reading the operation status Do not write over it with a user program p 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
9. WUME FP7FCA FP7 Digital Input Output Unit FP7 Digital Input Output Unit Users Manual WUME FP7DIO FP7 Analog Input Unit FP7 Analog Input Unit Users Manual WUME FP7AIH FP7 Analog Output Unit FP7 Analog Output Unit Users Manual WUME FP7AOH FP7 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 3 FPWIN GR7 FPWIN GR7 Introduction Guidance WUME FPWINGR7 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Table of Contents Table of Contents 1 Communication Functions of CPU Unit 1 1 1 1 Communication Ports of CPU Unit entendus 1 2 1 1 1 Types and Purposes of Communication Ports 1 2 1 1 2 AFP7CCET1 Port Specifications 1 3 1 1 3 Types of communication cassette 1 3 1 1 4 Configurator WD iii 1 3 1 2 Available Function For Each COM Port 1 4 1 2 1 Applications that can be Used in Each Port 1 4 11252 ROSC ON S ee aM aloe nee RAR aloes ne a ne 1 4 1 3 Overview of Communication FUNCTIONS ccseeeeeceeeeeeeeeeeeeeeeeeeeeees 1 5
10. ETX e ETX e e e hel e e 5 ETX ETX ETX ETX e ETX Ha 8 a g ON GPSEND instruction OFF execution ON General purpose communication OFF Sending active flag 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 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net General Purpose Communication Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Specifications Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Specifications 7 1 Specifications 7 1 1 Communication E COM 1 por
11. Reset done once the resetting operation is completed purpose Resetting done 1 communication Y10 is off O 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 executed This flag does not remain ON across several scans Execute 1 END instruction scan header and 2 RECV instruction Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 3 1 Input Output Signals Used for Communication E Input signal COM 1 port User connection COM 2 port for System connection Communica BUTE NSS Input signal HORDE Name Description operation p mode For COM 2 0 During start process X20 Port Start status flag 1 Start process done Normally For COM 2 0 Link Up X21 Link fl N Il Port ins status fag 1 Link Down ee For COM 2 ss de 0 Normal operation ie Port nee ag 1 During initialized process Normally X23 X27 Not used Do not use this gt For COM 2 0 Normal X28 Port Error status flag i Errorocc r Normally For COM 2 ni 0 Normal nee Port DHGP acquisition flag 1 Acquisition error occurred Normally For COM 2 0 Normal X2A Port Ver up error flag 1 Ver up error occured Normally X2B X2F Not used Do not use this For COM User connection X30 Connection stat
12. ee ey t 01 RD64000000 BCC Ca 1 Response message bone Specify and read station no and address based on RECV instruction sel 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 RO XC ae conditions for RECV execution DF Clear to send flag ON Master Master Execute i Sending active fl FF communication communication RECV Ke R100 Clear to send flag Sending active flag UNITSEL i Settings for communication port i i S1 Slot 0 i S2 COM1 RECV processing S1 Partner station no U1 S2 Data address DT400 in No of data U2 D1 Data saving area DT100 D2 Execution result code DTO RECV US DT400 DT100 S1 S2 n D1 D2 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net MEWTOCOL Master Slave Communication E Timing chart M
13. Ethernet LAN and in the Users Manuals m 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 In 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 mT from FP7 CPU To oh 1 I v L L Y ue External device FP7 CPU nn connection Ethernet client connection cIsntieSnnecion Ethernet connection IP XXXXXX LAN IP XXXXXX IP XXXXXX LAN IP XXXXXX Command Command Master SE ni Master k gt communication _ _ A Response communication ___ _ Response lt Command Command Slave lt f Slave 5 4 communication Response _ _ gt communicatio
14. Instruction E Instruction format RO GPRECV US DT200 DT209 i D1 rab 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 p 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 6 4 Sending Receiving Flag Operation 6 4 Sending Receiving Flag Operation 6 4 1 No Header Start Code Terminator End Code CR The reception done flag the sending active flag the GPSEND instruction and the GPRECYV instruction are related as follows c CR D E F Data received from external A device Q n m o jea 0
15. 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 2 FP7 Configuration Memory configuration CPU configuration Setting item Setting description I O mal H 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 settine CR Terminator judgement time 0 Modem initialization Not initialize Communication mode 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 Terminator judgement time 0 Modem initialization Not initialize Link relay link register memory block numbe 0 b 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 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 4 1 Settings Using FPWIN GR7 E Spec
16. built in SCU in the CPU unit is always clear to receive data Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 00001 l DT101 BA 00002 rem DT102 DC Send data based on GPSEND DT103 E instruction 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 DT100 and the message to be sent from the data register DT101 e In 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 DT100 RO X8 Y8 R101 R100 i GPSEND execution conditions H DF i Clear to send flag ON Sending activ
17. in offices and buildings where there is comparatively little 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 Q or
18. less Also metal panels and metal ducts should be insulated so that they do not come in contact with communication devices or cables Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Installation and Wiring 2 3 Wiring the LAN Port E Selection of UTP cables e Use Category 5 UTP cable e It is recommended to use a UTP cable of 10 m or shorter taking account of noise resistance eIn an environment where noise may occur attach a ferrite core near the CPU unit on the UTP cable It is also recommended to use a shielded cable e For installation of 100BASE TX or 10BASE T hub laying of cables etc please consult a specialized construction company If this construction work is done incorrectly it can adversely affect the entire network and can cause accidents Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net I O Number Allocation Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net I O Number Allocation 3 1 Input Output Signals Used for Communication 3 1 1 Occupied Area for Communication cassette Ethernet type A fixed area is allocated as follows E List of occupied words and I O points by unit Occupied words Unit Type Model number occupied 1 0 points Input Output Communication 4
19. sending completion Y8 DF 4 Reset GPSEND execution conditions p 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 ale H 31 32 33 34 35 Receive message data 00001 21 00002 43 Operation 1234 5 CR 00003 5 memory DT200 U5 L _ _ DT201 H3231 i DT202 H3433 Transfer the strings received based on GPRECV instruction to a given data register DT203 H 35 E Sample program e When the reception done flag X0 turns 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 DT
20. 00 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Setting Communication Conditions Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 9 MEWTOCOL Master Slave Communication Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 or 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 contact area je fill command SC Embeds the area of a specified range in a 16 point on off pattern Br eset data area SD Writes the same contents to the data area of a specif
21. 200 and the final address DT209 XO DF R100 GPRECV execution conditions Fi Reception done flag ON R100 Settings for communication port 1 Slot 0 Bu ltin CPU U0 S2 COMI U1 GPRECV processing S1 Header of 4 Received Data DT200 S2 Terminator of GPRECV US DT200 DT209 S1 S2 Received Data DT209 E O allocation COM port no 1 Name Explanation General purpose i LE Turns ON when the receiving process is completed in XU EA Reception 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 nee 5 SR A B Reception ON done flag OFF XO ON GPRECV execution OFF condition R100 Execute GPRECV instruction e When the GPRECYV instruction is executed data are copied into
22. 5534 Timeout 15 sec 0 No Timeout 0 1800 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Setting Communication Conditions 4 3 3 Example of MEWTOCOL Master Communication The following example shows how to set the parameters for the master communication from home station FP7 IP Address 192 168 1 5 FP7 Station 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 a 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 4 3 Example of User connection MEWTOCOL 2 MEWTOCOL Master Communicationin the UDP UNICAST mode
23. 7 Server If AFP7 CCET not communicate with a destination device Setting during this setting time seconds in the state that Note1 Timeout connection is established connection will be cut 15 Range 0 to 1800s When 0 is set the connection will not be cut Destination Specify IP address of destination 192 168 1 100 IP Address Set an IP address other than 0 0 0 0 and 255 255 255 255 Aer ei Destination Specify port number of destination 9094 Port No Range 502 to 32767 Client s Port Source port number of a destination device ource Po Setting No Range 0 1025 to 32767 9095 Note2 When 0 is set optional If AFPX COM5 not communicate with a destination device during this setting time seconds in the state that Timeout connection is established connection will be cut 15 Note1 This parameter is valid if Server Mode is selected Note2 This parameter is valid if Client Mode is selected Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Setting Communication Conditions 4 2 4 Option Settings Set the parameters in the option dialogbox of Configurator WD for the User connection or System connection PROCEDURE 1 Activate unit name when connected unit is indicated The unit name will be highlighted Select Edit gt Communication Setting from the menu bar Communication Setting dialigbox will open Press Option Option diali
24. 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 0 ccscceeeeeeesteeeeneeeeeees 5 8 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation netiii Table of Contents 5 8 3 SEND Instruction When MEWTOCOL COM is Used 5 8 6 General Purpose Communication 6 1 6 1 Operation of General Purpose Communication 6 2 6 1 1 Read Data from an External Device nnne 6 2 6 1 2 Write Data into an External Device 00 0 0 cece eeeeee cee e ee eeeeeeeteeeeeeeteeeeeeee 6 2 6 2 Sending Operation sr teens ceceesdtianertiseceptydvenzees 6 3 6 2 1 Overview of Sending Operation UV 6 3 6 2 2 Contents of Sent Data ss 6 5 6 2 3 GPSEND General Purpose Communication Sending Instruction 6 6 6 2 4 Precautions on Sending Data 0 ccccceeeceeeeeeeceeeeeeeeeeeeeeeesaeeesaeeeeneeee 6 7 6 3 Receiving OPSratiOn wicccvcsssedaveniecd ned eeecngekentenanwelos peoneueeupertandeeaeebntieed 6 8 6 3 1 Overview of Receiving Operation 6 8 6 3 2 Contents of Received Data cccccccccesseceeeesseceseeeseeeeesseeeeseneeeessaaes 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 Sen
25. 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 exce
26. 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 RECYV 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 EP7 CPU Device supporting Ethernet LAN MEWTOCOL COM IP XXXXXX IP XXXXXX Comman Master 4 gt communication ence Response_ Send receive data using MEWTOCOL COM Command lt communication Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 accor
27. 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 If the 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 7 Same a gt Same SS _ Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Specifications 7 3 MEWTOCOL7 COM Format 7 3 1 MEWTOCOL7 COM Command Format Command message 1 Header start code 3 Frame No 2 Station no of the receiver 4 Text to be specified in accordance with the type of co
28. User connection General Communication 4 4 1 Specified using FPWINGR7 e Set the communication mode and format into the field built in SCU gt COM 1 settings in the FPWINGR7 FP7 Configuration Memory configuration vid Las Setting item Settine description E a ETTAN MEWTOCOL COM Station No 1 Baud rate 9600bps Data length 8 bits Parity Odd Stop bit 1 bit RS CS Disable 2 Send waiting time 0 7 Header STX Disable Terminator setting CR Terminator judgement time 0 Modem initialization Not initialize Setting of COM 1port AFP7CCET1 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 Communication Mode 0 No Timeout 0 1800 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation General Communication Re Parameter Default User Connection Protocol Mode TCP Protocol Mode For a Action Mode Client Mode Communication General Cancel sal Mode Mode Communication lent Mose 1 Option Setting Send type UNICAST Destination IP 192 168 1 100 we Address Send Type UNIGAST v Server Setting T ai Port 9094 Source Port No 9095 502 65534 _ i Source Port No 9095 imeout 15 sec 0 No Timeou
29. ader lt is supported to send and receive single frames of up to 2048 characters as well as general Type of header No of characters that can be sent in 1 frame Max 118 characters lt Max 2048 characters Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Specifications 7 2 2 MEWTOCOL COM Response Format m Response message After PLC receives a command it returns the processing result T 4 Check code BCC Hexadecimal L 5 Terminator HB One digit digit 1 Header 2 Station no of source PLC that processed the command decimal B Text Processing results and communication error codes are stored here TL Read value Processing results for contact area read contact is off name e g read contact area Response code indicates a normal processing result indicates that an error occurred 1 Header start code eA ASCII code H25 or lt ASCII code H3C must be at the beginning of a message e The response must start with the same header that was at the beginning of the command 2 Station no This is the station no of the PLC that processed the command 3 Text The content of this varies depending on the type of command If the processing is not completed successfully an error code will be stored here so that the content of the error can be checked 4 Check code e
30. aster communication Clear to send flag XC Master communication Sending active flag YC Execute RECV Master communication Sending done result flag Y0 Sending data Response reception processing E O allocation sr i onditions to enable execution of RECV instruction Confirm ON Confirm OFF i Clear to send flag XC ON Sending active flag YC OFF ending active flag YC ending data ON Sending done OFF ending done result flag YO Normal completion OFF Abnormal completion ON lt O Jau COM port no 1 Name Explanation Master Turns ON when MEWTOCOL COM or MEWTOCOLZ is set for XC communication Clear a RE 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 YO Sending done result communication or master communication flag Normal completion 0 Abnormal completion 1 Note 1 Each contact is used for reading the operation status Do not write over it with a user program p 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 communic
31. ation 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 Up to 16 SEND RECV instructions can be executed simultaneously for different COM ports Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 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 5 2 3 RECV Instr
32. ch 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 1 1 Communication Ports of CPU Unit 1 1 2 AFP7CCET1 Port Specifications E 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 N oa al ar wl pr Not used E Functions of LED lamps 1 LINK Turns ON when the connection is connected between the communication cassette AFP7 CCET1 and ext
33. configuration e Up to 16 SEND RECV instructions can be executed simultaneously for different COM ports Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net MEWTOCOL Master Slave Communication 5 3 2 Precautions 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 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 5 3 3 SEND Instruction When MEWTOCOL COM is Used E Instruction format RO i i S n D1 D2 D3 Setting 5 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 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
34. ction depend on RARES MEWTOCOL7 COM Slave 3 connection MEWTOCOL7 COMSlave 1 connection mode General Communication 1 connection 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Specifications 7 2 MEWTOCOL COM Format 7 2 1 MEWTOCOL COM Command Format Command message Header 2 Station no of destination 01 to 99 decimal 3 Text Content depends on type of command 4 Check code BCC hexadecimal a 5 Terminator Two One digit digit i Target that reads the value internal relay R1 al 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 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
35. ction is executed dual sending to the same port is not possible until the sending General purpose communication Sending active flag Y8 turns OFF The General purpose communication Sending active flag Y8 turns OFF in instruction execution in the next scan or later following completion of data sending 6 4 2 Start Code STX End Code ETX Receiving process Reception done flag and GPRECV instruction are related as follows Data received from external A B Cc sn D E ET F G GTX H lt r device Stored i SCU A A A A D D D F F F IH H receive bu ffer be B B B B e E E Lae G G Gel G e Le Even in a Lc c c cem reception done FT 3 ja status received data is continued into another buffer because there are 4 096 x No of bytes 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 received buffers Upon reception of the Upon reception of the start code the reception start code the reception pointer is initialized pointer is initialized Wu ON Reception done flag X0 OFF ON GPSEND instruction OFF execution Receive bu ffer L No of bytes received specified using GPRECV instruction mjo IN je e When the start code is set
36. dance 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 CPU External device Ethernet LAN IP XXXXXX l IP XXXXXX EMAA PARARRR Message data Send unis se Operation 3 memory Send receive message data Receive Message data E Applications of general purpose communication This is used for connection with devices made by differing manufacturers that have dedicated communication protocols Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 1 4 Terms 1 4 Terms The following terms are used for settings on the software for connecting the FP7 CPU unit to
37. ding Receiving Flag Operation 6 13 6 4 1 No Header Start Code Terminator End Code CR 6 13 6 4 2 Start Code STX End Code ETX 6 14 7 SPeCIICAlIONS S M ds mir 7 1 Bal SD CITICATIONS es Se a ere ER ne td ae de te 7 2 FAA COMMUNICATION os cos aiment ananas E aA PaE cle AE aeaa EAR 7 2 7 2 MEWTOCOL COM Format se utenninennenin mienne 7 4 7 2 1 MEWTOCOL COM Command Format ccecceeseeeeeeeeeeeeeeeeeteeetnees 7 4 7 2 2 MEWTOCOL COM Response Format 7 6 7 3 MEWTOCOL7 COM Formal sicsisseceeesscteckcactustetentsasssalanendeadevs sdetentevasiates 7 8 7 3 1 MEWTOCOL7 COM Command Format 7 8 7 3 2 MEWTOCOL7 Response Format c ccccecceeseeeeeneeseceeeeseaeeeeneeeeenees 7 10 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 1 Communication Functions of CPU Unit Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Communication Functions of CPU Unit 1 1 Communication Ports of CPU Unit 1 1 1 Types and Purposes of Communication Ports Communication Port of CPU Unit Panasonic FP7 CPS4E RUN COMO SD ERROR SD CARD ALARM RD COPY PROG 5 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 Atta
38. e back of the AFP7CCET1 Install the AFP7CCET1 on the FP7 CPU unit and turn on the power supply Start Configrator WD 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 Install the AFP7CCET1 on the FP7 CPU unit 7 p 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 Po NM a Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 FPWINGR 7 Memory configuration CPU configuration Setting item Setting description 1 0 may g 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 5 Send waiting time 0 1 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 Spec
39. e flag OFF General purpose General purppse O E vddicbsndnsnateedenived communication communicatidn R100 Clear to send flag Sending active flag Data conversion S1 Sent Data S2 Save Sent Data DT100 No of Sent Characters DT101 onward Sent Data See ee EEE eer EE CEE TEL EL EE CET ELELEE EE CET ELLE LE LE LEE EEE R100 H DF R100 i Settings for communication port 4 S1 Slot 0 U0 S2 COM1 U1 S Header of Sent Data DT101 in No of Sent Characters DT100 uti It Cod Confirm sending completion i Reset GPSEND execution Y8 L DF Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net General Purpose Communication 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 7 ES i Conditions to enable execution of communication Clear to GPSEND instruction Clear to send flag X8 ON send flag X8 JE Confini ON Sending active f
40. ective owners PLC_BATPE_ET Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Introduction Thank you for buying a Panasonic product Before you use the product please carefully read the installation instructions and the users manual and understand their contents in detail to use the product properly Types of Manual e There are different types of users manual for the FP7 series as listed below Please refer to a relevant manual for the unit and purpose of your use eThe manuals can be downloaded on our website 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
41. ed will appear IP Address Setting Parameter Description Default Obtain IP address When selecting Obtain an IP address automatically an IP automatically address is obtained from the DHCP server When selecting Le following IP Note1 Use the following IP address an IP address is set manually Unit name for can be specified to identify iCommunication snit name cassette AFP7 CCET1 in the Configurator WD FPZ CCETI 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 S 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 I O Number Allocation Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Setting Communication Conditions 4 2 3 Communication Settings Set the parameters for the User connection in the Communication Setting dialogbox of Configurator WD PROCEDURE 1 Activate unit name when connected unit is indicated The unit name will be highlighted Select Edit gt Communication Setting from the menu bar Communication Setting dialigbox will open User Connection Protocol Mode 7 Bacs Action Mode Cancel Server Mode x Opti
42. eration 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 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 CR DT100 U4 40001 21 DT101 H4241 40002 43 DT102 H44 43 a l Je ee ee 1234 CR ee run A 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 E 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 oo XYZ CR Receive response message Send command based on GPSEND instruction Receive response based on GPRECYV instruction p KEY POINTS e There is no relevance between the operation of transmission by GPSEND instruction and the operation of reception by GPRECV instruction The
43. ernal 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 e AFP7CCET1 System connection o 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Communication Functions of CPU Unit 1 2 Available Function For Each COM Port 1 2 1 Applications that can be Used in Each Port E Mode MEWTOCOL7 COM i General MEWT L M Type of connection COM port OCOL CO Co sl tion Master Slave User connection COM 1 O Note J J System connection COM 2 e Note MEWTOCOL7 COM do not support Master communication function m 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 c
44. eseceeeeeceeeeeeeaeeeeneeseeeeesaeeesaeeeeeeeeaas 4 6 4 24 Option Settings sira aaen inner eens tie td Parades 4 8 4 2 5 Target IP address for unit number Setting eee eee eeeeeseeeeneeeees 4 10 4 2 6 Initialization ot the environment setting of the cassette cee 4 11 4 3 Example of User connection MEWTOCOL ceeeeeeeceeeeettteeeeeeees 4 12 4 3 1 Specified using FPWINGR7 iii 4 12 4 3 2 Specified using Configuration WD ccceccceeeeeeeee cesses tetaeeeeeeteenees 4 12 4 3 3 Example of MEWTOCOL Master Communication 4 14 4 4 Example of User connection General Communication 4 16 44 1 Specified using FPWINGR7 ire 4 16 4 4 2 Specified using Configuration WD ccccceeeeeeeeeeeeeeeteteeeeeeeteeeees 4 16 4 5 Example of System connection sac ateaaitnnkss dio Senn ota 4 18 4 5 1 Specified using Configuration WD cccececeeeeeeeeeeeeeeeseteeeeeneeeeeeees 4 18 4 5 2 Specified using FPWIN GR7 ins 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 nen 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 e ccceeeeeeeeeeeeteeceeeeeeeaeeteseeeeeaees 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
45. gbox will open poa Option User Connection f j Endcode CR X Cancel Judgment time without termination 20 0 100 ms Target IP address for unit number T Unit Number IP Address Dest Port No Unit Number EE O1 192 168 1 100 9095 Not Use O2 192 168 1 100 9095 Not Use O3 192 168 1 100 9095 Not Use mE 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 Server setting Source Port No ss 502 65534 Timeout 15 sec 0 No Timeout 0 1800 Enter the desired items See the next page for the details Press OK Communication Setting dialigbox will open Press OK in the Communication Setting dialigbox The message box Unit communication setting was completed will appear Press OK Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 code is not confirmed Set the wait time for the end code If the next message data is n
46. he Reception done copy flag and multiplex reception E Operation and function of the reception done copy flag X4 e The reception done copy flag X4 turns ON when the GPRECYV 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 If 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 I I l Reception 1 I done flag X0 Execute GPRECV instruction I I I Reception done a copy flag X4 1 scan time A After always executing GPRECV instruction confirm i whether there are lately received data referring to the I I i reception done copy flag X4 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net General Purpose Communication 6 3 5 GPRECV General Purpose Communication Receiving
47. ied range fill command Reads the specifications of the programmable controller and error Read the status of PLC AN 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 PLC External device supporting MEWTOCOL COM Command message aaa ET 401 RD0040000401 BCC Ch DT00400 100 DT101 0 DT00401 0
48. ified using Configuration WD m TCP Client Mode Parameter Default User Connection Protocol Mode TCP me TR or Action Mode Client Mode AC Communication Mode MEWTOCOL Action Mode Cancel r e a e A a a I anaana a aa cl i Destination IP Address 192 168 1 100 Sent Mode _Option Settine Destination Port No 9094 Communication Mode MEWTOCOL v Source Port No 9095 Send Type UNICAST Timeout 15 sec 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 9098 502 65554 Source Port No 9095 0 502 65534 Timeout js sec 0 No Timeout 0 1800 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 4 3 Example of User connection MEWTOCOL p 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 maste
49. ified using FPWINGR7 COM 1port Parameter LEE rangeiton Description Rene MEWTOCOL COM Select the mode MEWTOCOL or General purpose mod 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 1t0999 MEWTOCOL7 COM Communication mode Baud rate 230400 bps Data length 8bits F These parameters are fixed regardless of the settings in Parity ODD the FPWINGR7 Stop bit bits RS CS N A Send waiting time 0 100ms Terminati CR is fixed for the MEWTOCOL mode setting CR CR LF Time CR CR LF or Time can be selected to match the settings of Configurator WD Terminator g It is avallable if terminator setting is Time judgement time PO ae Set the time to match the settings of Configurator WD Header STX N A i Mod These parameters are fixed regardless of the settings in odem initiali the FPWINGR7 initialization Notinyalize KEY POINTS e The parameters Communication mode Station No Send waiting time Terminator setting and Terminator judgement time are available in the FPWINGR Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Setting Communication Conditions 4 2 Specified using Configurator WD 4 2 1 Start Configurator WD and Serach units e The communication tool software Configura
50. lag Y8 OFF General purpose Confirm OFF communication Sending ee i Sending active flag Y8 active flag Y8 i Sending data ON Sending done OFF Execute GPSEND Sending done result flag YO Normal completion OFF Abnormal completion ON Sending done result flag YO Sending data E O allocation COM port no Name Explanation General purpose Turns ON when the unit is set to the general purpose X8 communication Clear to communication mode 9 purp 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 of sending data in genera purpose communication or master communication Normal completion 0 Abnormal completion 1 Note 1 Each contact is used for reading the operation status Do not write over it with a user program Note 2 When the sending time is shorter than the scan time the General purpose communication Sending active flag Y8 turns 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 pu
51. mmand oF 1 SS f Command name Command code value Command ID code i I I l l l l I I I I i l l l I I I l l l l I I I I l i l l I I I I l l l l l Fa 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 eIn 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 00MMRDD001G0DT0000000001000 CR gt EEE01 amp CR Make sure to use consecutive values for frame numbers The usable number range is from 00 to FF After FF return to 00 4 Text The content of this varies depending on the type of command The content should be noted in all upper case characters following the fixed formula for the particular command Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 7 3 MEWTOCOL7 COM Format 5 Check c
52. n Responseh _ _ ke Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Communication Functions of CPU Unit Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Installation and Wiring Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 zZ SW2 Normally OFF sw1 For Initialization Normally OFF REFERENCE e See 4 2 6 for initialization of communication conditions 2 1 2 Attachment Instructions When an optional communication cassette is to be used attach it in the following procedures _ PROCEDURE 1 Using a flathead screwdriver remove the cover on the side of the CPU unit 2 Attach a desired communication cassette Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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
53. n 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 OCETI Cancel IP Address 192 168 1 5 Subnet Mask 255 255 255 0 Default Gateway 192 168 1 1 E Option dialogbox opon sts lt s Oe User Connection Endcode CR v Cancel Judgment time without termination 20 0 100 ms Target IP address for unit number fr Des Z Unit Number EE a Unit Number IP Address Dest Port No mil 192 168 1 100 9095 Not Use o2 192 168 1 100 9095 Not Use o 192 168 1 100 9095 Not Use O4 192 168 1 100 9095 Not Use mer ing iRo 1 inn ann Mat Iaa System Connection Action Mode Server Mode D4 Protocol Mode TCP Communication Mode MEWTOGOL o OC Server setting Source Port No
54. 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 s
55. nstructions that can be used simultaneously has been exceeded Sending timeout Response reception timeout Received data error O O1 B D Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 DT100 100 01 WDD004000040164000000 BCC Ca DT00400 1100 p DT101 0 DT00401 Han aweaa Yas ee METE ETE 01 WD BCC CR us Response message L R Specify and write station no and address based on SEND instruction 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 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
56. ode 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 p 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Specifications 7 3 2 MEWTOCOL7 Response Format m Response message Header oe code 2 Station no i the receiver 3 Frame No 4 Text to be specified in accordance with the type of command L l ew f Command name data area read Command code value Response code normal status abnormal status Data
57. ommunication 3 connection or General Communication 1 connection e Parameters are set using the software FPWIN GR7 and Configurator WD E System connection elt can be used to connect tool software via communication cassette AFP7CCET1 e Only 1 connection is available e COM 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 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 1 3 Overview of Communication Functions 1 3 Overview of Communication Functions 1 3 1 MEWTOCOL Master
58. on 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 15 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 4 2 Specified using Configurator WD 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 of Communication cassette AFP7 CCET1 Range 0 to 1800 s When 0 is set the connection will not be cut ication M MEWTOCOL Communication Mode Select MEWTOCOL or General communication to match the communication mode setting of FPWINGR7 Method for transmitting data to partner devices Send type Select UNICAST or BROADCAST Bees UNICAST It is valid when selecting UDP in the communication protocol Source Port Port number that AFP7 CCET1 opens 9095 No Range 502 to 3276
59. ot 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 Specify a station number number Unit Number N A 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 Protocol Mode of Communication cassette AFP7 CCET1 Protocol Mode nae x TCP TCP is fixed c icati Communication Mode of Communication cassette AFP7 A on CCET1 MEWTOCOL System MEWTOCOL is fixed connection s Port N Port number that AFP7 CCET1 opens 9094 r o pats 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net
60. pecifications e g baud rate data length and parity match between the computer and the PLC e If the 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Specifications Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net Record of changes Manual No Date Record of Changes WUME FP7CCET 01 DEC 2013 First Edition Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net
61. r 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 timeout 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 E UDP Client mode Communication Setting Sa Parameter Default User Connection Protocol Mode UDP Protocol Mode 5 z Action Mode Client Mode jo Communication Action Mode Cancel Mode MEWTOCOL Client Mode X Onti s UNICAST ption Setting Send type BROADCAST Communication Mode MEWTOCOL x Note1 Send Type UNICAST v Destination IP Address 192 168 1 100 Server Setting Source Port No 9095 502 65524 oo 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 6
62. rpose communication sending active flag Y8 turns OFF Sending done result Le flag Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 DT100 After executing SSET instruction the No of characters is set DT101 Strings of the No of bytes specified by GPSEND instruction pre are sent in ascending order from lower bytes DT103 DT104 p KEY 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 Itis also possible to send binary data Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net General Purpose Communication 6 2 3 GPSEND General Purpose Communication Sending Instruction E Instruction forma
63. s 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 6 2 Sending Operation 6 2 4 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 C Clear to send flag ON Sending active flag OFF General purpose General purppse ne EEPE communication communicatidn R100 Clear to send flag Sending active flag greteeseeeaeeneeeseeneanssnennanessennenseneananeatenas Data conversion i S1 Sent Data R100 i S2 Save Sent Data DT100 No of Sent Characters Hx DF SSET ABCDE DT100 FH DT101 onward Sent Data S1 S2 R100 i Because no end code is added Hx DF NEG SS DT100 DT100 Hi use a negative value for specifying the No of sent bytes S1 D mi R100 Settings for communication port UNITSELT Uo J Ut Hst sito tuo ap m S2 COM1 U1 i ISEND processing apansasesenosasoaosassasesas GPSEND SS DT101 DT100 DTO HiS Header of Sent Data DT101 in No of Sent Characters DT100 S n D iD Execution Result Code DTO F Confirm
64. ssive exothermic heat or smoke generation use this product at the values less than the maximum of the characteristics and performance that are assured in these specifications Do not dismantle or remodel the product It could cause excessive exothermic heat or smoke generation Do not touch 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 resp
65. 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 Terminator end code Messages must always end with a CR ASCII code HOD Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 p KEY POINTS e An expansion he
66. t 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 ify the No of n Specify the No of sent bytes Note 1 Note 3 D Specify the device area in the source node to save the execution 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 completed 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 i
67. t 0 1800 Timeout 15 sec Client Setting Destination IP Address 192 168 1 100 Destination Port No 3094 502 6554 Source Port No 9095 0 502 65534 Timeout 15 sec net 4 4 Example of User connection General Communication m TCP Server Mode Com i C User Connection Protocol Mode Communication Mode Send Type Server Setting Source Port No Timeout 0 No Timeout 0 1800 Client Setting Destination IP Address La TGP Action Mode Cancel x Option Setting General Communication La UNICAST 9095 502 65534 9094 6502 65534 Parameter Default Protocol Mode TCP Action Mode Server Mode Communication Mode General Communication Destination IP Address 192 168 1 100 Destination Port No Source Port No 9095 0 502 65534 Timeout 15 sec 0 No Timeout 0 1800 m UDP mode Communicatio tting Sc User Connection Protocol Mode a La BE Action Mode Server Mode Communication Mode Send Type Destination IP Address Destination Port No Source Port No Timeout 0 No Timeout 0 1800 Cancel Option Setting General Communication Le UNICAST bd 9095 15 192 168 1 100 oas 502 65534 9095 0 502 65534 js sec Source Port No 9095 Timeout 15 sec Parameter Default Protocol Mode UDP Action Mode Client Mode Communicatio
68. t 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 on format Erd bd CR CR LF ETX 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 E COM 2 port System connection Communication port Settingrange Detaur ae 1 99 MEWTOCOL COM slave 1 999 MEWTOCOL7 COM slave Without Start code Without STX Send Waiting 0 to 100ms Note Permissible communication mode is MEWTOCOL only Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 7 1 Specifications Communication cassette AFP7CCET1 items Description 100BASE TX 10BASE T Baud rate 100 Mbps 10 Mbps auto negotiation Note 1 Transmission system Baseband Max segment length 100 m Note 2 Communication Cable UTP Category 5 Max distance 100BASE TX 2 segments between nodes 10BASE T 5 segments No of nodes 254 units ue i lad tie oe connection Communication protocol TCP IP UDP IP TCP IP DHCP IP address assigned automatically Numbers of MEWTOCOL COM Master 1 connection connection MEWTOCOL COM Slave 3 connection MEWTOCOL COMSlave 1 conne
69. t 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 Y10 For COM 1 Request to this signal rises purpose Port reset CH 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 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 YO Y8 YC in the table above is used for reading the Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net operation status Do not write over it with a user program excluding Y10 4 Setting Communication Conditions Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 A7 2 7 3 7
70. 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 Ta mar 16 bit device WX WY WR WL DT LD Register transmission 1 bit device X Y R L DT n LD n Bit transmission Note 2 The No of sent data is on a word basis for register transmission and on a bit basis for bit transmission Note 3 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 6 General Purpose Communication Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net General Purpose Communication 6 1 Op
71. the specified area and the reception done flag X0 turns OFF The reception done flag X0 turns OFF when the 1 0 refresh is executed at the beginning of the subsequent scans Reception buffer or H H Xor ST Received data cr cr Reception done flag X0 When reception has been done ON When copying of received data has Reception done flag N been done based on GPRECV X0 F instruction OFF Execute GPRECV es 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 ascending order from lower bytes to higher bytes starting with DT201
72. 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 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 f there are no received data following execution of GPRECV instruction the reception done copy flag X4 turns OFF Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 6 4 Sending Receiving Flag Operation p 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 oe STX a y b ETX STR c d e ETX SCU STX STX sTx STX STX STX STx STx STX send buffer a jeja a a c pej c c c c b 2 b je b b d d d d d ETX ETX
73. tor WD is required to set Ethernet communication for the Communication cassette AFP7CCET1 e The setting is saved in the Communication cassette AFP7CCET1 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 Ta R F4 Configurator WD kaba File Search Edit View Option Help E 12 dh Unit 1P 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 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net 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 PROCEDURE 1 Activate unit name when connected unit is indicated The unit name will be highlighted 2 Select Edit gt Setting IP Address from the menu bar The IP AddressSetting dialogbox will open Setting IP Address Base Setting Unit Name Gi ai IP Address 192 168 1 5 Subnet Mask 255 255 255 0 Default Gateway 192 168 1 1 3 Enter the IP Address 4 Press OK The message box IP Address is updat
74. uction When MEWTOCOL COM is Used E Instruction format RO RECVUS u1 pra uz orio 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 s2 Specify the device initial address of the source node data area in the partner 0 99999 node Note 1 Note 2 n Specify the No of sent data Note 3 a 509 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 one word Note 4 Note 1 Transmission methods vary by the type of device to be specified for the operands S2 and D1 Device to be specified for S2 and D1 ne 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 Normal completion Communication port is being used for master communication Communication port is being used for slave communication No of master communication i
75. us flag 0 Disconnected Normally 1 Connected For COM TCP S i User connection or erver connection X31 Port Full flag 0 Not full Normally 1 Full For COM TCP Cli User connection X32 of i iont connection 0 SuccessO Normally Port failure flag 1 Failure X33 Not used Do not use this For COM 2 System connection X34 peA Connection status flag 0 Disconnected Normally 1 Connected X35 X3F Not used Do not use this Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net I O Number Allocation E Output signal COM 1port User connection use Output Communica vie Effective signal tion port VUE Petes CC 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 purpose inati General For COM 1 Nr purpose communication mode Y8 Port communicati Note 1 purpose on Sending communication active flag Sending done 0 Sending 1 Y9 YB Not used Do not use this Master ae Shoal It turns on 1 during sending in the master YC For COM communicati communication mode MEWTOCOL Port on Sending Sendina done Sandie active flag ending done 0 Sending YD YF No
76. words 64points 2words 32points CPU Unit cassette AFP7CCET1 WXO WX3 WY0 WY1 Ethernet type 3 1 2 I O Number Allocation E Input signal COM 1 port for User connection Input Communica SEINE si pe tion port Name Description operation g p mode General When the unit completes the data reception it ForCOM 1 PUrPOSe turns on 1 enera X0 Port communicatio Waiting for d ion 0 R purpose n Reception ane or joe reception 0 Reception communication done flag completed X1 X3 Not used Do not use this General It turns on 1 if there are copied data when purpose GPRECYV instruction is executed It turns off Gen ral For COM 1 communicatio 0 when END instruction is executed X4 purpose Port n Reception Note 1 communication 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 Port communicatio general purpose communication mode It purpose n Clear to turns off 0 in other modes communication send flag X9 XB Not used Do not use this gt Master It turns on 1 when the unit is set to modes For COM 1 communicatio other than the general purpose XC Port n Clear to communication mode It turns off 0 in other MEWTOCOE 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
Download Pdf Manuals
Related Search
Related Contents
Samsung SGH-U908 User Manual Energy Sistem F3510 Triple 1 Runwien user`s and reference guide Contents USER`S MANUAL - Icon Heath & Fitness Copyright © All rights reserved.
Failed to retrieve file