Home
FP7 COM Port Communication User`s Manual
Contents
1. 1 3 1 3 Overview of Communication Functions sssssssee 1 4 1 3 1 PLC Link Functions 1 4 1 3 2 MEWTOCOL Master Slave Communication 1 5 1 3 3 MODBUS RTU Master Slave 1 6 1 3 4 General Purpose 1 7 Wiring the COM 2 1 2 1 Attaching a Communication Cassette 2 2 2 1 1 Attachment INStructions cccccccceceesecccceececeeeeesececeeeeeeeeeeseesenieaeeeeeees 2 2 2 2 Wiring of COM Port Terminal Block 2 3 2 2 1 Suitable Wires and Tools ssssssssssssseeeeeee 2 3 2 2 2 Applicable Cable p diat tii tima 2 4 2 2 3 Wiring Method 2 5 2 3 Wiring for CPU Unit GT Power Supply and COMO Port 2 6 2 3 1 Handling of GT Power Supply Terminals eene 2 6 2 8 2 Terminal Layouts and Examples 2 6 24 Wiring for Communication Cassettes COM1 and COM2 2 8 2 4 1 Communication Cassette AFP7CCS1 RS 232C 1 Channel Insulated Type cei oe di
2. 4 4 42 1 Setup Procedure 2 egeta thread e 4 4 4 2 2 Listof Setting rte bars 4 5 43 Setting Items for PLC Link ace rre Re orti 4 6 4 3 1 Station No Setting cot Ere D e pete dd cats Hb tp sheets 4 6 4 3 2 Station No Setting ssssessseee eee 4 6 4 3 3 Memory Block Numbers for Link Relays and Link Registers to be Used4 7 4 3 4 Range of Use of Link Relays and Range of Use of Link Registers 4 7 4 3 5 Starting No for Link Relay Send Area and Sending Size 4 8 4 3 6 Starting No for Link Register Send Area and Sending Size 4 9 4 4 PLC Link Response HH eH 4 11 Table of Contents 4 4 1 Response Time of 1 Transmission 4 11 4 4 2 Response Time When There is a Station Yet to be Added 4 13 MEWTOCOL Master Slave Communication 5 1 DT SCOMMGUPAMON sd ies e ctore ta ze erholen team be al D eoe e edu lies 5 2 5 1 1 Setting Communication Conditions esse 5 2 5 2 List of MEWTOCOL MEWTOCOL7 Supporting Commands 5 3 5 2 1 List of MEWTOCOL Commands sss emen 5 3 5 22 List of MEWTOCOL7 5 3 5 3 MEWTOCOL COM Master Communication RECV
3. 5 4 5 3 1 Read Data from an External 5 4 5 3 2 RECV Command When MEWTOCOL COM is Useq 5 6 5 4 MEWTOCOL COM Master Communication SEND 5 7 5 4 1 Write Data into an External Device 5 7 5 4 SEND Command When MEWTOCOL COM is Useq 5 9 MODBUS RTU Master Slave Communication 6 1 6 1 Configuratio eea a ic dut oaa a E 6 2 6 1 1 Setting Communication Conditions esee 6 2 6 2 List of MODBUS RTU Supported 6 3 6 2 1 List of MODBUS Function Codes sssssssssssseeeeen 6 3 6 3 MODBUS RTU Master Communication 6 4 6 3 1 Read Data from an External 6 4 6 3 2 RECV Command MODBUS Function Code Specified Type 6 6 6 3 3 Command MODBUS Function Code Unspecified Type 6 7 6 4 MODBUS RTU Master Communication 6 8 6 4 1 Write Data into an External Device 6 8 6 4 SEND Command MODBUS Function Code Specified Type 6 10 6 4 3 SEND Command MODBUS Fun
4. 7 14 7 5 1 No Header Start Code Terminator End Code CR nasses 7 14 7 5 2 Start Code STX End Code 7 15 SPECHICAUONS re 8 1 8 1 Communication Function 8 2 8 1 1 CPU Unit Communication 8 2 8 1 2 Extension Cassette Communication Specifications 8 4 8 2 MEWTOCOL COM Format sss 8 5 8 21 MEWTOCOL COM Command 8 5 8 22 MEWTOCOL COM Response 8 7 Table of Contents 8 3 MEWTOCOL7 COM Format sess 8 9 8 3 1 MEWTOCOL7 COM Command 8 9 8 3 2 MEWTOCOL7 Response 8 11 8 4 MODBUS Format sse nemen 8 13 8 4 1 MODBUS RTU Command Format seen 8 13 8 4 MODBUS RTU Response 8 14 vi 1 Communication Functions of CPU Unit Communication Functions of CPU Unit 1 1 Communication Ports of CPU Unit 1 1 1 Types and Purposes of Communication Ports B Communication Ports of CPU Unit 1 2 1 Functions of
5. 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 Reset MC Registers the contact to be monitored contacts monitored Register or Reset MD data monitored Registers the data to be monitored Monitoring start MG Monitors a registered contact or data using MC and MD Preset contact area fill command SC Embeds the area of a specified range in a 16 point on off pattern Preset data area SD Writes the same contents to the data area of a specified range fill command Reads the specifications of the programmable controller and error Read the status of PLC RT f 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 2 2 List of MEWTOCOL7 Commands 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
6. 8 3 Specifications 8 1 2 Extension Cassette Communication Specifications B Port COM2 Port Description Items AFP7CCS1 AFP7CCS2 AFP7CCM1 AFP7CCM2 AFP7CCS1M1 3 wire 1 channel 3 wire RS 232C Interface p E 2 channel 1 channel 2 channel RS 232C RS 232C RS 422 RS485 RS 422 RS485 1 channel Note 1 Note 2 Note 3 Note 2 Note 3 RS 422 RS 485 Note 2 Note 3 RS 232C When RS 422 is used Max 400 m Max 15 m Transmission distance Max 15 m Note 4 When RS 485 is used Max 1200 m RS 485 Note 5 Note 6 Max 1200 m Note 5 Note 6 300 600 1200 2400 4800 9600 19200 38400 57600 115200 230400 bit s Communication method Half duplex transmission Note 7 Synchronous method Start stop synchronous system Data length 7 bits 8 bits stop bit 1 bit 2 bits parity Yes No Odd Even Start code Without STX With STX end code CR CR LF None ETX Data transmission order Transmits from bit 0 character by character PLC link Max 16 units ball sie MEWTOCOL COM master slave MEWTOCOL7 COM slave Max 99 units an MODBUS RTU master slave Max 99 units No of units that can be connected General purpose communication Max 99 units Modem initialization Communication format Note 1 By switching on the dip switch on the cassette you can use the unit as 5 wire 1 channel RS 232C Note 2 By switching on the dip switch on the cassette you can
7. E Settings for termination resistance selector switch On the surface of Communication Cassette AFP7CCM2 is located a termination resistance selector switch e When RS 422 is used Turn ON the switch e When RS 485 is used Turn ON the switch only when it is the end unit RED ON HEN oF OFF 2 15 Wiring the COM Port B Terminal layout in the setting of RS 485 Eius 1 SD 8 5 2 ign gr 3 oO 5 us 6 as 7 jg p Terminal LED part Terminal Functions that can Signal Ports that can no Symbol part be allocated direction be allocated Symbol in the software 1 CH1 SD S Transmission line 2 RD S Transmission line COM 1 3 485 R Transmission line 4 422 R Transmission line 5 2 6 CH2 SD S Transmission line 7 RD S Transmission line COM 2 8 485 R Transmission line 9 422 R Transmission line Note 1 In the setting of RS 485 Terminal No 1 and Terminal No 3 and Terminal No 2 and Terminal No 4 are respectively connected inside They can be used as terminals for crossover wiring for the transmission cable Note 2 In the setting of RS 485 Terminal No 6 and Terminal No 8 and Terminal No 7 and Terminal No 9 are respectively connected inside They can be used as terminals for crossover wiring for the transmission cable Note 3 Do not connect anything to Terminal
8. reset an error Y10 reset done reset CH1 Request to reset CH1 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 X1 X2 3 Specify a port to receive data based on the UNITSEL command 4 Execute the GPRECV command and read the received data from the reception buffer 7 11 General Purpose Communication 7 4 4 Operations of the Reception done copy flag and multiplex reception B Operation and function of the reception done copy flag X4 X5 X6 eThe reception done copy flag X4 X5 X6 turns ON when the GPRECV command is executed and data are copied from the reception buffer to the specified operation memory and turns OFF when the END command is executed B Processing in the case of multiplex reception f the time from the reception of data in the reception buffer to the subsequent data reception is shorter than the PLC scan time and the receiving frequency is high it is possible that the reception done flag X0 X1 X2 remains ON and cannot detect sequential receptions In cases where it is necessary to process sequentially received data constantly execute the GPRECV command in combination with the reception done copy flag X4 X5 X6 e Referring to the reception done copy flag X4 X5 X6 you can confirm whether there are
9. 8 3 1 MEWTOCOL7 COM Command Format B Command message 1 Header start code 3 Frame No 2 Station no of the receiver 4 Text to be specified in accordance with the type of command aAa mamam Command code value Command ID code 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Edid 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 00MMRDDO01GO0DT0000000001000 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 upp
10. 10 Lower Two hexadecimal digits that indicate the station HO HF7 0 247 byte no D2 Specify the header of the MODBUS address in the receiver data area in HO HFFFF 0 65535 the partner node D3 Specify the device area in the source node to save the execution result code one word Note 5 Note 1 Based on the types of device specified in operand S and the No of sent data specified in n the transmission methods and MODBUS function codes that can be used vary Types of device Transmission No of sent CEU oe Ups Values that can be specified in to be specified in S method E higher bytes of D1 H6 Preset Single Register 06 16 bit device 1 HF Force Multiple Coils 15 WX WY WR WL DT Register H10 Preset Multiple Registers 16 transmission LD dcum HF Force Multiple Coils 15 H10 Preset Multiple Registers 16 ian 4 H5 Force Single Coil 05 it device Bit i i X Y R L DT n LD n transmission Force Multiple 15 2 2040 HF Force Multiple Coils 15 Note 2 The No of sent data n is on a word basis for register transmission and on a bit basis for bit transmission Note 3 Operand D1 is specified by combining two hexadecimal digits of MODBUS function code with two hexadecimal digits of partner station no E g Specify HOFOA when MODBUS function code is 10 Preset Multiple Registers and station no is 10 Note 4 When 0
11. e FP Using Communication cassette RS 485 type e FP X Using Communication cassette RS 485 type e FP2 Multi Communication Unit Using Communication cassette RS 485 type 1 3 Overview of Communication Functions 1 3 2 MEWTOCOL Master Slave Communication Overview of function e Execute communication using MEWTOCOL COM a communication protocol used by our PLC e n master communication PLC executes communication by sending commands to devices that support MEWTOCOL and receiving responses Messages in accordance with the protocol are automatically generated by PLC In the user program reading and writing can be done simply by specifying the station no and memory address and executing SEND RECV commands 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 Master function Master Slave function Slave Slave Slave supporting device PLC PLC Examples of applications of MEWTOCOL master communication This is used for connection with a device that supports our PLC s protocol MEWTOCOL Programmable controller
12. T Max Ts TIt Tso 11 82 16 4 32 5 198 44ms 16 units connected to the link 1 station yet to be added Where Max station no 16 3 Relays registers are equally allocated and Scan time for each PLC is set at 5 ms Ttx 0 096 Each Ts 5 6 82 11 82 ms Tit 0 096 x 13 2 x 15 4 13 ms 0 96 400 0 67 5 407 ms Note Default value for the addition waiting time 400 ms T Max Ts Tit Tso 11 82 15 4 13 5 407 593 43 8 units connected to the link no station yet to be added Where Max station no 8 4 Relays registers are equally allocated and Scan time for each PLC is set at 5 ms Ttx 0 096 Each Pem 23 8 16 x 4 119 bytes Tpc Ttx x Pem 0 096 x 119 11 43 ms Each Ts 5 11 43 16 43 ms Tit 0 096 13 2 x 8 2 79 ms T Max Ts Tit Tso 16 438 2 79 5 139 23 ms 2 units connected to the link station yet to be added Where Max station no 2 5 Relays registers are equally allocated and Scan time for each PLC is set at 5 ms Ttx 0 096 Each Pcm 23 32 64 x 4 407 bytes Tpc Ttx x Pom 0 096 x 407 39 072 ms Each Ts 5 39 072 44 072 ms Tit 0 096 x 13 2 x 2 1 632 ms T Max Ts Tit Tso 44 072 x 2 1 632 5 94 776 ms 2 units connected to the link station yet to be added Where Max station no 2 6 Where 32 relay points and 2W
13. direction allocated Symbol in the software 1 CH1 SD Transmission line 2 RD Transmission line COM 1 3 Transmission line 4 Transmission line 5 6 7 CH2 SD SD Sent data 8 RD RD Received data COM 2 9 SG SG Signal ground Note 1 Terminal No 1 and Terminal No 3 and Terminal No 2 and Terminal No 4 are respectively connected inside Note 2 Do not connect anything to Terminals No 5 and No 6 Example of wiring AFP7CCS1M1 Terminal part symbol Signal name Functions S Transmission line Transmission line Transmission line Transmission line NC NC Sent Data Received Data o 9 o o l olo 23 o D Signal Ground RS 485 Partner 1 Terminal Signal name Transmission line Transmission line S 485 Partner 2 Signal name Terminal Transmission line Transmission line RS 232C partner Terminal Signal name Received Data Sent Data Signal Ground 2 19 Wiring the COM Port 2 20 3 Setting and Confirming Communication Conditions Setting and Confirming Communication Conditions 3 1 Setting Applications and Communication Conditions 3 1 1 Applications to be Set for Each Port B Unit Type MEWTOCOL7 COM Communication pic jink MEWTOCOL COM MODBUS RTU Gener
14. DT204 If the received No of bytes is smaller than the area specified by the GPRECV command the data are not overwritten 7 10 7 4 Receiving Operation 7 4 2 Contents of Received Data When data are copied into a given data register based on GPRECV command the data are saved in the following manner Example The data 12345 CR is transmitted from a device with RS 232C device e At the beginning of the data register the No of received bytes is saved eThe received data are saved in ascending order from lower bytes to higher bytes starting with DT201 DT203 DT202 DT201 DT200 Higher Lower Higher Lower Higher Lower Higher Lower byte byte byte byte byte byte byte byte CR 5 4 3 2 1 p KEY POINTS e The received data that are copied based on the GPRECV command do not include a start code or end code e It is also possible to receive binary data based on the GPRECV command In this case the terminator should be specified using Time Received No of bytes 7 4 3 Precautions on Receiving Data B Reset communication ports elf a communication abnormality has occurred communication ports can be reset by turning on the Request to reset signal Y10 Y11 Y12 by the user program e Once reset is completed X10 X11 X12 turns ON Subsequently turn OFF the Request to reset Y10 Y11 Y12 R100 Ser I Rese iof COM port equest to CH1 error Requestios Senet
15. R Received Data PLC External device 5 i P 6 CH2 SD S Sent Data PLC External device 7 RD S Sent Data PLC External device 8 485 R Received Data PLC External device 9 422 R Received Data PLC External device Note 1 Do not connect anything to Terminal No 5 Note 2 Route between CH1 and CH2 are insulated inside W Example of wiring in the setting of RS 422 AFP7CCM2 Partner 1 Terminal No Terminal part symbol Signal name Functions S Sent Data 1 Sent Data 1 SD Received Data 1 Received Data 1 Sent Data 2 Sent Data 2 Received Data 2 1 2 3 4 5 6 7 8 9 Received Data 2 Terminal Signal name RD Received Data RD Received Data SD Sent Data Partner 2 Terminal Signal name RD Received Data RD Received Data SD Sent Data SD Sent Data 2 4 Wiring for Communication Cassettes COM1 and COM2 ports 2 4 5 Communication Cassette AFP7CCS1M1 RS 232C 1 Channel RS 485 1 Channel Insulated Type B Terminal layout qn g 8 1 2 3 i 4 m 5 a 6 em OSD 7 SD C RD 8 RD A 56 9 Terminal LED part Terminal Functions that Signal Ports that can be no Symbol part can be allocated
16. Rand rate Rfifhne E Communication mode Select the communication mode MEWTOCOL COM MEWTOCOL 7 MODBUS general purpose communication PLG link 18 4 4 Specify conditions to be allocated to each setting item for Station no and PLC link settings under COM1 settings and press OK button The settings are registered in the project 4 2 Configuration Required for PLC Link 4 2 2 List of Setting Items List of setting items COM1 settings Setting items ene uen b RES tink Remark Communication mode PLC link Station no pete Baud rate 115200 bps Data length 8 bit Parity Odd Stop bit 1 bit RS CS Invalid Regardless of settings in FPWIN GR7 Send waiting time 0 the FP7 CPU unit itself performs automatic Start code STX Invalid settings Terminator setting CR Terminator judgment time 0 Modem initialization Do not initialize List of setting items PLC link settings Setting items Setting range Setting method Memory block numbers for link relays and link registers to be used Oor1 Specify the device No range for link relays and link registers to be used in a block Maximum station no to be used for PLC link 0 to 16 Set the Max station no for PLC to be connected to the PLC link Range of link relays used 0 to 64 words Range of link registers used 0 to 128 words Sta
17. Send area Receive area Send area Send and receive areas are split into multiple segments Send area Receive area Receive area Send area Send area Receive area Receive area Send area 4 10 4 4 PLC Link Response Time 4 4 PLC Link Response Time 4 4 4 Response Time of 1 Transmission Cycle The maximum value for the transmission time T of one cycle can be calculated using the following formula B Calculation formula T max Tsi Ts2 Tsn Tlit Tso TIk link addition processing time Tso master station scan time TIt link table sending time OTs transmission time per station 1 Ts transmission time per station Calculation formula Ts Scan time Tpc PLC link sending time Tpc Ttx sending time per byte x Pem PLC link sending byte size Ttx 1 transmission speed kbps x 1000 x 11ms Approx 0 096 ms at 115 2 kbps Pcm 23 number of relay words number of register words x 4 4 times based on ASCII code 2 TIt link table sending time Calculation formula Tit Ttx sending time per byte x Ltm link table sending size Ttx 1 transmission speed kbps x 1000 x 11 ms Approx 0 096 ms at 115 2 kbps Ltm 13 2 x n n No of added stations 3 Tso Master station scan time This should be confirmed using the programming tool 4 TIk link addition processing time When there is no station tha
18. data in the reception buffer can be copied into a given operation memory PLC External device Reception buffer eight for each COM port Receive message data 00001 21 Vries H 31 32 33 34 35 EEE 00008 13 Operation 7 777 123488 coon 6 memory ns DT200 U5 DT201 H 32 31 DT202 34 33 m Transfer the strings received based on GPRECV command to a given data register DT203 H 35 Sample program e When the reception done flag X0 turns ON the reception program is started up by the GPRECV command In the UNITSEL command specify the slot No UO and the COM port No U1 e In the GPRECV command specify and execute the header of the data table where the received message is saved DT200 and the final address DT209 DF R100 PRECV execution conditions eception done flag ON Settings for communication port E S1 Slot 0 Built in CPU UO 52 COMI U1 i GPRECV processing 1 S1 Header of Li Received Data DT200 S2 Terminator of GPRECV US DT200 DT209 S1 S2 d Received Data DT209 H B allocation COM port no Explanation 1 2 0 General purpose ea i Turns ON when the receiving process is completed in x9 2 reception the general purpose communication mode General purpose Turns ON when the GPRECV command is executed XA X5 X6 pisei reception and the received data have been copied into the copy done fla
19. e e bel Transmission pointer GPSEND instruction ON i OFF execution ON Transmission done flag X8 X9 XA OFF 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 command 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 in the system monitor area SM e After GPSEND command is executed dual sending to the same port is not possible until the sending general purpose communication flag Y8 Y9 YA turns OFF e The sending general purpose communication flag Y8 Y9 YA turns OFF in GPSEND command execution in the next scan or later following completion of data sending to an external device The sending general purpose communication flag Y8 Y9 YA always remains on for at least 1 scan time 7 16 8 Specifications Specifications 8 1 Communication Function Specifications 8 1 1 CPU Unit Communication Specifications B USB port for tool software Description Standard USB2 0 FULL SPEED Communication function MEWTOCOL COM slave MEWTOCOL7 COM slave B COMO Port Wm Bein Syrerronous method Sarspsywwonwssum SSCS SS Data l
20. industrial panasonic com ac e dl_center manual Unit name or purpose of use Manual name Manual code FP7 Power Supply Unit FP7 CPU Unit FP7 CPU Unit Users Manual Hardware WUME FP7CPUH Instructions for Built in COM Port FP7 Extension Communication Cassette FP7 CPU Unit Users Manual COM Port Communication WUME FP7COM Instructions for Built in LAN Port FP7 CPU Unit Users Manual LAN Port Communication WUME FP7LAN FP7 Digital Input Output Unit FP7 Digital Input Output Unit Users Manual WUME FP7DIO FP7 Analog Input Unit FP7 Analog Input Unit Users Manual WUME FP7AIH FP7 Analog Output Unit FP7 Analog Output Unit Users Manual WUME FP7AOH FP7 Positioning Unit PHLS System FP7 Positioning Unit Users Manual PHLS System Users Manual WUME FP7POSP WUME PHLS Programming Software FPWIN GR7 FPWIN GR7 Introduction Guidance WUME FPWINGR7 Table of Contents Table of Contents 1 Communication Functions of CPU 1 1 1 4 Communication Ports of CPU Unit 1 2 1 1 1 Types and Purposes of Communication 1 2 1 2 Communication Functions Supported by Each 1 3 1 2 1 Applications that can be Used in Each 1 3 1 2 2 Types of Communication Cassette
21. ral R100 i Data conversion S1 Sent Data R100 1 S2 Save Sent Data d 7 i DT100 No of Sent Characters i me DF SSET ABCDE DT100 DT101 onward Sent Data S1 S2 R100 d Settings for communication port UNITSEL 1 91 Slot 0 U0 1 S2 1 U1 E S Header of Sent Data 07101 n No of Sent Characters DT100 D Execution Result Code t Confirm sending completion i Reset GPSEND execution conditions 7 3 Sending Operation B Timing chart e Data in the table S specified by GPSEND command are sent in ascending order from lower bytes e During the sending process the sending general purpose communication flag Y8 Y9 YA turns ON The flag is turned OFF when sending is completed The flag does not turn off right after the execution of the instruction 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 Y1 Y2 H Clear to send general i Conditions to enable execution of purpose communication GPSEND command flag X8 X9 XA Confirm ON Clear to send flag X8 oe XA ON i Sending flag Y9 YA OFF Sending general purpose Confirm OFF communication flag Y8 Y9 YA Sending flag Y8 Y9 YA i Sending data ON Sending done OFF P E EARE E AE EEE E E E PE EET E Execute GPSEND
22. 3 5 Starting No for Link Relay Send Area and Sending Size e The memory areas for link relays are divided into send areas and receive areas e The link relays are transmitted from the send area to the receive area of a different PLC Link relays with the same numbers as those on the sending side must exist in the receive area on the receiving side E g Example of setting the starting No for link relay send area and the sending size in the case of memory block No 0 Station no 1 Station no 2 sexus mane Receive area E List of setting items PLC link settings Station no 3 Station no 4 Receive area i Station no and setting method Setting items sanie range No 1 No 2 No 3 No 4 Memory block numbers for link relays and link registers to be 0 or 1 0 0 0 0 used Maximum station no to be used for PLC link d 4 i i 4 Range of link relays used 64 64 64 64 words Starting no for link relay send 0 to 63 0 20 40 0 area Size of link relay send area 64 20 20 24 0 words 4 8 4 3 Setting Items for PLC Link 4 3 6 Starting No for Link Register Send Area and Sending Size e The memory areas for link registers are divided into send areas and receive areas e The link registers are sent from the send area to the receive area of a different PLC Link registers with the same numbers as those on the sending side must exist in the receive area on the
23. ASCII code HOD Specifications NOTES e The method for writing text segments in the message varies depending on the type of command e When the message to be sent 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 Anexpansion header lt is supported to send and receivesingle frames of up to 2048 characters as well as general 96 Type of No of characters that can be header sent in 1 frame 96 Max 118 characters lt Max 2048 characters 8 6 8 2 MEWTOCOL COM Format 8 2 2 MEWTOCOL COM Response Format m Response message After PLC receives a command it returns the processing result 1 Header 2 Station no of source PLC that processed the command decimal 3 Text Processing results and communication error codes are stored here s Check code BCC Hexadecimal a oF co x lt Two One digi digit Read value Processing results for contact area read contact is off Command name e g read contact area Response code indicates a normal processing result indicates that an error occurred 1 Header start code eA 96 ASCII code H25 or lt ASCII code must be at the beginning of a message eThe response must start with the same header that was at the b
24. No 5 Note 4 Route between CH1 and CH2 are insulated inside 2 4 Wiring for Communication Cassettes COM1 and COM2 ports Example of wiring in the setting of RS 485 AFP7CCM2 Transmission line 1 Partner 1 Terminal Terminal No part symbol Signal name Functions Terminal Signal name 5 Transmission line 1 Transmission line S Transmission line 1 Transmission line R Transmission line 1 Transmission line 1 Partner 2 R Transmission line 1 Terminal Signal name NC MEENET Transmission line Transmission line 2 Transmission line 2 Transmission line Transmission line 2 cojoj jojo s2 o Nm Transmission line 2 Terminal Signal name Transmission line Transmission line Transmission line 2 Partner 2 Terminal Signal name Transmission line Transmission line 2 17 Wiring the COM Port B Terminal layout in the setting of RS 422 ioo Terminal LED part Terminal Functions that Signal direction Ports that can be no Symbol part can be allocated allocated Symbol in the software 1 CH1 SD S Sent Data PLC External device 2 RD S Sent Data PLC External device 3 485 R Received Data PLC External device 4 422
25. Ports 1 COM1 and COM2 Ports Attach a separately sold communication cassette to use these ports You can select from five types of communication cassettes 2 COMO Port 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 It is used for connection to Ethernet 4 USB Port This is equipped to a standard model of CPU unit This is used when connecting tool software REFERENCE e For details of communication methods using the LAN port please see the FP7 CPU Unit LAN Port Communication 1 2 1 2 Communication Functions Supported by Each Port 1 2 Communication Functions Supported by Each Port 1 2 1 Applications that can be Used in Each Port B Unit type MEWTOCOL7 COM Communication sic link MEWTOCOL COM MODBUS RTU General purpose port communication Master Slave Master Slave COMO o Note 1 e e COM1 e o Note 1 e e COM2 o Note 1 e e Note 1 In MEWTOCOL7 COM there is no master communication function 1 2 2 Types of Communication Cassette B Types of communication cassette Communication ports that Model no Communication interface can be allocated COM 1 COM 2 AFP7CCS1 1 channel RS 232C 3 wir
26. code in the sending process use a negative value for specifying the No of sent bytes GPSEND execution conditions i Clear to send flag ON i Sending flag OFF R101 RO x8 Y8 DF Clear to send Sending gen general purpose purpose communication flag communicatiqn flag ral R100 i Data conversion i S1 Sent Data R100 i No of Sent Characters DF SSET ABCDE DT100 DT101 onward Sent Data S1 S2 R100 i Because no end code is added DF NEG SS DT100 DT100 Hi use a negative value for 1 D specifying the No of sent bytes R100 Settings for communication port UNITSEL Uo T Ui 4 St sto uo i S2 COMI U1 SEND processing GPSEND SS DT101 DT100 i S Header of Sent Data 07101 S i n No of Sent Characters 07100 Execution Result Code R101 f Confirm sending completion 1 Reset GPSEND execution conditions Y8 DF 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 command Select SS for operation unit 7 8 7 4 Receiving Operation 7 4 Receiving Operation 7 4 4 Overview of Receiving Operation B Instructions In the general purpose communication mode data received from the partner device are saved in eight reception buffers for each COM port When the GPRECV command is executed in a user program
27. commands that can be used simultaneously has been exceeded Sending timeout Response reception timeout Received data error OnahWN 5 4 MEWTOCOL COM Master Communication SEND 5 4 MEWTOCOL COM Master Communication SEND 5 41 Write Data into an External Device B 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 commands PLC External device supporting MEWTOCOL COM Command message 01 WDD004000040164000000 BCC CR DT00400 100 aren 15 pr00401 0 E 01 WD BCC C ETE Response message Specify and write station and address based on SEND command 7 i 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 command In the UNITSEL command specify the slot No UO and the COM port No U1 e In the SEND command specify and execute the sen
28. data area REFERENCE e For details of MEWTOCOL commands please see 8 2 MEWTOCOL COM Format8 3 MEWTOCOL7 COM Format MEWTOCOL Master Slave Communication 5 3 MEWTOCOL COM Master Communication RECV 5 3 1 Read Data from an External Device B 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 commands External device supporting PLC MEWTOCOL COM Command message DT100 100 01 RD0040000401 BCC C DT00400 100 DT101 0 DT00401 0 EE SENE essences 01 RD64000000 BCC Cr nana es sacros Response message X Specify and read station no and address based on RECV command B 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 command In the UNITSEL command specify the slot No UO and the COM
29. 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 40001 40002 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 command In the UNITSEL command specify the slot No UO and the COM port No U1 e In the SEND command specify and execute the PLC initial address DT100 No of data U2 MODBUS function code to be used 16 H10 partner device station no H01 and initial address HO For the address of the partner device please check operating instructions etc of the relevant device RO XC YC I pF H Clear to send Sending master Execute master communication flag SEND R100 communication flag UNITSEL i SEND execution conditions i Clear to send flag ON i Sending flag OFF i Settings for communication port i i S1 Slot 0 UO i 2 COM1 U1 SEND process 1 S Data saving area 07100 i n No of sent data U2 i D1 MODBUS code H10 and partner device station no H01 i i D2 Transmit to address E D3 Execution result code DTO Note 1 Operand S1 of SEND command is specified by combining two hexadecimal digits of MODBUS function code with two hexadecimal digits of partner device station no When the MODBUS function code is 16 specify H10 for D1 Note 2 When th
30. i Sending done result flag YO Y1 Y2 Normal completion OFF 1 Abnormal completion ON Sending done result flag YO Y1 Y2 Sending data O allocation COM port no Explanation 1 2 0 Clear to send general It turns ON when the unit is set to the general purpose X8 X9 XA SA purpose sending flag communication mode Sending general Turns ON during sending data based on general purpose Y8 Y9 YA purpose communication GPSEND communication flag Turns OFF when the sending process is completed Reports completion result of sending data in general purpose YO Y1 Y2 sending done result communication or master communication Normal flag TM 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 sending general purpose communication flag Y8 Y9 YA turns OFF when the GPSEND command 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 command immediately before GPSEND command e Maintain the ON conditions for GPSEND command until sending is completed and the sending general purpose communication flag Y8 Y9 YA turns OFF 7 5 General Purpose Commun
31. master communication flag YC YD YE Execute RECV Master communication Sending done result flag YO Y1 Y2 Confirm ON Confirm OFF Conditions to enable execution of RECV i i command Clear to send flag XC XD XE ON Sending flag YC YD YE OFF i Sending flag YC YD YE i Sending data ON Sending done OFF i Sending done result flag YO Y1 Y2 1 Normal completion OFF Sending data Abnormal completion ON Response reception processing O allocation COM port no Explanation 1 2 0 Clear to send Turns ON when MEWTOCOL COM MEWTOCOLT or XC XD XE master MODBUS RTU is set for the communication mode and the unit is communication flag in the RUN mode Sending master Turns ON during sending data based on SEND RECV command YG YD YE communication flag Turns OFF when the sending process is completed S ndingdon Reports completion result of sending data in general purpose YO Y1 Y2 9 communication or master communication Normal completion 0 result flag Abnormal completion 1 Note 1 Each contact is used for reading the operation status Do not write over it with a user program KEY POINTS Specify the port targeted for communication using UNITSEL command immediately before SEND RECV command Master communication is only valid when MEWTOCOL or MODBUS is selected Confirm that
32. port No U1 e In the RECV command specify and execute the partner station no U1 initial address DT400 No of data U2 and initial address on the PLC side to save data DT 100 RO k DF 1 1 Clear to send Sending master Execute master communication flag RECV R100 communication flag UNITSEL Starting conditions for execution i Clear to send flag ON Sending flag i Se S1 Slot 0 S2 COM1 i processing 1 S1 Partner station no U1 1 S2 Data address 07400 n No of data U2 01 Data saving area 07100 D2 Execution result code S1 S2 n D1 D2 5 4 5 3 MEWTOCOL COM Master Communication RECV B Timing chart Clear to send master communication flag XC XD XE Sending master communication flag YC YD YE Execute RECV Master communication Sending done result flag YO Y1 Y2 Confirm ON Confirm OFF Conditions to enable execution of RECV i i command Clear to send flag XC XD XE ON Sending flag YC YD YE OFF i Sending flag YC YD YE i Sending data ON Sending done OFF i Sending done result flag YO Y1 Y2 i Normal completion OFF Abnormal completion ON Sending data Response reception processing allocation COM port no Name Explanation 1 2 0 Gicar te send master Turns ON when MEWTOCOL COM MEWTOC
33. receiving side E g Example of setting the starting No for link register send area and the sending size in the case of memory block No 0 Station no 1 Station no 2 Station no 3 Station no 4 LDO Send area 39 40 Receive area Receive area Receive area Receive area Send area 127 B List of setting items PLC link settings nM Setting Station no and setting method Setting items range No 1 No 2 No 3 No 4 Memory block numbers for link oori 0 0 0 0 relays and link registers to be used Maximum station no to be used for PLC link 0 to 16 4 4 4 4 Range of link registers used for 0 to 128 PLC link words 128 128 128 128 Starting No for link register send 0 to 127 0 40 80 0 area Size of link register send area O to tar 40 40 48 0 words NOTES e mistake is made when allocating a link area be aware that an error will result and communication will be disabled e Avoid overlapping send areas 4 9 PLC Link In the example shown below there is an area between No 2 and No 3 link relays which is overlapped and this will cause an error so that communication cannot be carried out Station no 1 Station no 2 Station no 3 WLO Send area 19 50 Receive area s 30 Receive area ATEM Send area 63 e allocations shown below are not possible neither for link relays nor for link registers Send area is split on a single PLC
34. switch between RS 422 and RS 485 Nore 3 When connecting a commercially available device that has an RS485 RS 422 interface please confirm operation using the actual device In some cases the number of units transmission distance and baud rate vary depending on the connected device Note 4 When communication is performed at a baud rate of 38400 bps or higher use the cable not longer than 3 m For wiring the RS 232C a shielded wire must be used to increase noise suppression Note 5 The transmission distance is limited by the specified baud rate and No of connected units in the RS 485 setting When using a baud rate of 38400 bps or less the allowable settings are a maximum of 1200 m and 99 units When a C NET adapter is mixed the maximum number of connected units is 32 and the baud rate is limited to 19200 bps or less For baud rate 230 4 kbps J f For baud rate 115 2 kbps 99 For baud rate 57 6 kbps f Number of units 20 0 200 700 1000 1200 Transmission distance m Note 6 The converter SI 35 manufactured by Lineeye Co Ltd is recommendable for the RS485 at the computer side Note 7 In general purpose communication RS 232C and RS 422 use full duplex transmission 8 2 MEWTOCOL COM Format 8 2 MEWTOCOL COM Format 8 21 MEWTOCOL COM Command Format B Command message 1 Header 2 Station no of destination 01 to 99 decimal 3 Text Content depends on type of command EE NNI Check c
35. 1 X3 Not used Do not use this X4 For COM 1 Port Reception general X5 For COM 2 Port purpose It turns on 1 if there are copied data when GPRECV command is executed It turns off 0 General Sa ea perdu ces X6 For COM 0 Port done copy flag No data to be read 0 X7 Not used Do not use this X8 For COM 1 Port Clear to send X9 For COM 2 Port 9eNeral purpose communication It turns on 1 when the unit is set to the general General purpose communication mode It turns off 0 purpose XA ForCOMO Por flag other modes communication XB Not used Do not use this XC For COM 1 Port Clear to send It turns on 1 when the unit is set to modes other master than the PLC link mode or general purpose MEWTOCOL For communication communication mode It turns off 0 in other MODBUS RTU XE For COM 0 Port flag modes XF Not used Do not use this X10 For COM 1 Port When the communication channel is reset under the output Y10 Y12 the flag is turned on 1 General X11 For COM 2 Port Reset done once the resetting operation is completed purpose Resetting done 1 communication X12 For COM 0 Port Y10 Y12 is OFF 0 X13 Not used Do not use this Status of the CTS signal sent from the device f communicating with When RS CS is X14 For COM 1 Port CTS signal Clear to Send from COM1 Port 0 Cannot Send from CO
36. 3 Wiring the COM Port B Terminal layout in the setting of RS 422 S 1 SD Rs 2 5 Ik 4 22 ri j 5 n 6 Ma 7 o 8 c J 9 Terminal LED part Terminal Functions that Signal Ports that can be no Symbol part can be direction allocated Symbol allocated in the software 1 CH1 SD S Sent Data dee PLC 2 acd Rs Sent External device COM 1 3 485 R Received Data External device 4 422 IR Received Data PEG idevice 5 9 Note Do not connect anything to Terminals No 5 through No 9 Example of wiring in the setting of RS 422 AFP7CCM1 Partner Signal name Functions Terminal Terminal part No 1 Terminal Signal name Sent Data SD RD Received Data R Received Data RD SD Sent Data Received Data RD rs SD Sent Data 2 14 2 4 Wiring for Communication Cassettes COM1 and COM2 ports 2 4 4 Communication Cassette AFP7CCM2 RS 422 RS 485 2 Channel Insulated Type B Setting of application switch Applications for use can be switched using a switch on the backplane for Communication Cassette AFP7CCM2 Settings can be confirmed with LED lamps at the front of the cassette s B RS 422 x TTE a _ j i RS 485 IZO
37. 318384 07D0 47CF LDO LD16383 Note 1 The table above indicates correspondence between the MODBUS reference numbers for accessing from a higher device to FP7 using the MODBUS protocol and the operation device numbers of FP7 MODBUS RTU Master Slave Communication 6 3 MODBUS RTU Master Communication RECV 6 3 1 Read Data from an External Device B Instructions In master communication PLC has the sending right and executes communication by sending commands to devices that support MODBUS RTU and receiving responses Messages in accordance with the protocol are automatically generated by PLC In the user program reading and writing can be done simply by specifying the station no and memory address and executing SEND RECV commands External device PLC supporting Modbus RTU Command message DT100 100 Hex 01 03 00 00 00 02 CRC 40001 100 DT101 0 40002 0 eran EET ee SUV NE CENE Dome Hex 01 03 04 00 64 00 00 CRC ECCE UNE Response message Specify and read station no and address based command B 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 40001 40002 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 co
38. Command When MEWTOCOL COM is Used Command format RO i S n D1 D2 D3 Setting 3 fame 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 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 Transmission method Register 16 bit device WX WY WR WL DT LD AAT 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 Communication port is being used for mas
39. Cs connected to the same PLC link 4 6 4 3 Setting Items for PLC Link 4 3 3 Memory Block Numbers for Link Relays and Link Registers to be Used e The memory area of link relays and link registers are divided into the area for PLC link 0 and the area for PLC link 1 which can respectively use up to 1024 link relay points 64 words and up to 128 link register words e Specify 0 when the former memory block is used and specify 1 when the latter memory block is used Configuration of link area For PLC link 0 For PLC LD for 128 words link 0 For PLC L for 1024 points For PLC LD for 128 words link 1 link 1 For link relay For link register 4 3 4 Range of Use of Link Relays and Range of Use of Link Registers e Specify the memory area range for link relays and link registers to be used e Link relays and link registers that do not use the link function can be used in place of internal relays and data registers E g Examples of setting the range of use in the case of PLC link 0 eThe figure below indicates a case where the link relay range of use is set to 50 50 words WLO WL49 and the link register range of use is set to 100 100 words LDO LD99 Receive area Receive area Used Not used e f all the link relays are used in the PLC link 0 area set the link relay range of use to 64 64 words and all the link register range of use to 128 128 words PLC Link 4
40. F execution Y Receive bu ffer 2 No of bytes received specified using GPRECV instruction D E e When the start code is set to STX the data are saved in the reception buffer When the start code is received the receive pointer is initialized If there are two headers data following the second header overwrites the data in the reception buffer e The built in SCU of the CPU unit has eight reception buffers The reception process is continued after the reception done flag X0 X1 X2 turns ON The reception done flag XO X1 X2 does not turn OFF immediately following the execution of GPRECV command 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 command the reception done copy flag X4 X5 X6 turns OFF 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 7 15 General Purpose Communication 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 command are related as follows Ea p itted ST b Er ETY c d e ETX STX STX STX STX STX STX STX STX SCU STX send buffer a a a a c c c c c b b te b b d d d d d ETX ETX ETX lt
41. FP series e Displacement sensor HL series e Eco power meter KW series Examples of applications of MEWTOCOL slave communication This is used for connection with a device that supports our PLC s protocol MEWTOCOL COM master communication e Programmable displays made by various manufacturers Communication Functions of CPU Unit 1 3 3 MODBUS RTU Master Slave Communication Overview of function eThis is used for communicating with other devices that support the MODBUS RTU protocol e n master communication communication is performed when the master unit sends instructions command messages to slave units and the slave unit returns responses response messages according to the instructions Messages in accordance with the protocol are automatically generated by PLC In the user program reading and writing can be done simply by specifying the station no and memory address and executing SEND RECV commands e Slave communication is performed when the higher device connected to PLC has the sending right and sends commands and PLC returns responses In slave communication PLC responds automatically so no program concerning communication is necessary on the PLC side e The data size that can be sent or received a single communication is up to 127 words for register transmission and 2 040 bit for bit transmission Master function Master Slave Slave Slave PLC RS485 Modbus RTU Modbus RTU Modbus RTU slave sl
42. For time before transmission is started please refer to the communication cycle time in the system monitor area 7 14 7 5 Sending Receiving Flag Operation e After GPSEND command is executed dual sending to the same port is not possible until the sending general purpose communication flag Y8 Y9 YA turns OFF The sending general purpose communication flag Y8 Y9 YA turns OFF in command execution in the next scan or later following completion of data sending 7 5 2 Start Code STX End Code ETX Receiving process Reception done flag and GPRECV command are related as follows Data received from external A N C ST 7d D E ED G 1x H N ED device Stored SCU A A A 10 D D F F F H receive bu ffer le B B B B e E E Lew G G G e G Even ina 2 c reception done status received o data is continued t into another z buffer because there are 4 096 x No of bytes 1 2 3 0 1 2 2 1 8 reception lt 2 gt 0 1 1 received i buffers Upon reception of the Upon reception of the start code the reception start code the reception pointer is initialized pointer is initialized ON Reception done flag 4 X1 X2 OFF ON GPSEND instruction OF
43. M1 Port 1 Block COM1 The RTS signal can be controlled with Y 14 ae F Not used Do not use this Note1 The general purpose communication reception done copy flag is effective after the execution of the RECV command until one of the following command is executed This flag does not remain ON across several scans Execute 1 END command scan header and 2 RECV command 3 2 Input Output Signals Used for Communication B Output signal Output Communication Name Description Valid signal port communication mode YO For COM 1 Port Reports the result of sending in master MEWTOCOL Y1 For COM 2 Port Sending done communication or general purpose MODBUS RTU result communication General purpose Y2 For COM 0 Port Normal completion 0 Abnormal completion 1 communication i Undefined Do not turn on undefined Default setting is O Y8 For COM 1 Port Sending general It turns on 1 during sending in the general Y9 For COM 2 Port Purpose purpose communication mode General purpose communication Note 1 communication YA For COM 0 Port flag Sending done 0 Sending 1 YB Undefined Do not turn on undefined Default setting is 0 1 Sending master It turns on 1 during sending in the master MEWTOCOL YD For COM 2 Port communication communication mode flag Sending done 0 Sending 1 MODBUSRTU YE For COM 0 Port 9 n 9 YF U
44. 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 command immediately before GPSEND command e Maintain the ON conditions for GPSEND command until sending is completed and the sending general purpose communication flag Y8 Y9 YA turns OFF e Confirm that the clear to send general purpose communication flag for the targeted COM port has turned ON and execute GPSEND command e When GPSEND command is executed for a communication port in the sending process the sending flag and the sending result are updated e GPSEND command cannot be used in an interrupt program 7 7 General Purpose Communication 7 3 4 Precautions on Sending Data B Procedures when the end code is not added in the sending process When you do not wish to add the terminator end
45. OLT or XC XD XE MODBUS RTU is set for the communication mode and the unit communication flag is in the RUN mode Turns ON during sending data based on SEND RECV YE Sending master Xe XB communication fla command 9 Turns OFF when the sending process is completed Sending done result Reports completion result of sending data in general purpose YO Y1 Y2 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 KEY POINTS Specify the port targeted for communication using UNITSEL command immediately before SEND RECV command Master communication is only valid when MEWTOCOL or MODBUS is selected Confirm that the clear to send master communication flag XC XE for the targeted channel is ON and execute SEND RECV command You cannot execute other SEND RECV command for a communication port in master communication Confirm that the sending master communication flag YC YE is OFF and execute command You cannot execute SEND RECV command for a port in slave communication If no response is received the sending master communication flag YC YE remains ON throughout the timeout setting time specified in CPU configuration Up to 16 SEND RECV commands can be executed simultaneously for different COM ports 5 5 MEWTOCOL Master Slave Communic
46. Operation 7 5 1 No Header Start Code Terminator End Code CR The reception done flag the sending flag the GPSEND command and the GPRECV command are related as follows Data received from external A B CR D E G device Stored scu A A A D D D D receive bu ffer j B B Ewe E E C Data can be received until eight F F 2 receive bu ffers are all filled up even G le pai if the reception done flag is turned on g E No of bytes pm 2 3 2 3 4 recived After GPRECV instruction is on executed reception done Reception flag turns off at the beginning done flag of next scan or later SEE XO X1 X2 4 ON GPRECV instruction OFF execution ON GPSEND instruction OF execution ON Transmission done flag OFF X8 X9 XA ce 1 2 3 CR Y Receive bu ffer 3 No of bytes received specified using A GPREOV instruction B C eThe built in SCU of the CPU unit has eight reception buffers The reception process is continued after the reception done flag X1 X2 turns ON The reception done flag X1 X2 does not turn OFF immediately following the execution of GPRECV command It will be turned off at the beginning of the next scan or later e After GPSEND command is executed data transmission is started in several us to several tens of ms
47. Panasonic PROGRAMMABLE CONTROLLER FP7 CPU Unit User s Manual COM port communication WUME FP7COM 01 2013 3 panasonic net id pidsx global Safety Precautions Observe the following notices to ensure personal safety or to prevent accidents To ensure that you use this product correctly read this User s Manual thoroughly before use Make sure that you fully understand the product and information on safety This manual uses two safety flags to indicate different levels of danger WARNING If critical situations that could lead to user s death or serious injury is assumed by mishandling of the product Always take precautions to ensure the overall safety of your system so that the whole system remains safe in the event of failure of this product or other external factor Do not use this product in areas with inflammable gas It could lead to an explosion Exposing this product to excessive heat or open flames could cause damage to the lithium battery or other electronic parts CAUTION If critical situations that could lead to user s injury or only property damage is assumed by mishandling of the product To prevent excessive exothermic heat or smoke generation use this product at the values less than the maximum of the characteristics and performance that are assured in these specifications Do not dismantle or remodel the product It could cause excessive exothermic heat or smoke generation Do not touch th
48. S 485 is used Turn ON the switch only when it is the end unit as and 7 ON Bi Ee E Nee a m n 5 UU OFF a io a a 2 12 2 4 Wiring for Communication Cassettes COM1 and COM2 ports B Terminal layout in the setting of RS 485 Ls 1 50 g 112 ig R 4 422 Oo 5 a 6 a 117 8 L 9 Terminal LED part Terminal Functions that can Signal Ports that can be no Symbol part be allocated direction allocated Symbol in the software 1 CH1 SD 5 Transmission line 2 RD S Transmission line COM 1 3 485 R Transmission line 4 422 IR Transmission line 5 9 Note 1 In the setting of RS 485 Terminal No 1 and Terminal No 3 and Terminal No 2 and Terminal No 4 are respectively connected inside They can be used as terminals for crossover wiring for the transmission cable Note 2 Do not connect anything to Terminals No 5 through No 9 W Example of wiring in the setting of RS 485 AFP7CCM1 Partner 1 Terminal Terminal part Signal name Functions Terminal Signal name No symbol n Transmission line HS eme t 2 S Transmission line Transmission inei 3 R Transmission line Partner 2 4 R Transmission line Terminal Signal name Transmission line Transmission line 2 1
49. S function codes to be specified in S method to be used for command execution 16 bit device kddisteriransmission Force Multiple Coils 15 WX WY WR WL DT LD 3 Preset Multiple Registers 16 1 bit device X Y R L DT n LD n Bit transmission Force Multiple Coils 15 Note 2 The No of sent data n is on a word basis for register transmission and on a bit basis for bit transmission Note 3 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 16 bit device WX WL and LD and 1 bit device X L DT n and LD n cannot be specified for the header of the receiver data in the partner node Note 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 Communication port is being used for master communication Communication port is being used for slave communication No of master communication commands that can be used simultaneously has been exceeded Sending timeout Response reception timeout Received data error MODBUS RTU Master Slave Communication 6 12 General Purpose Communication General Purpose Communication 7 1 Operation of General Purpose Communication 7 1 1 Read Data from an External Device Read data from a partner device In general purpose co
50. Terminal Functions Signal Ports that can be no Symbol part that can be direction allocated Symbol allocated in the software 1 CH1 SD SD SD Sent Data PLO gt External device RD Received PLC 2 RD RD Data External device com SG Signal 3 SG Ground 4 CH2 SD R SD SD Sent Data External device RD Received PLC 5 d RE Data External device come SG Signal 7 SG Ground 7 8 3 Wire 9 5 Wire Note 1 Route between CH1 and CH2 are insulated inside Note 2 Do not connect anything to Terminals No 7 through No 9 B Example of wiring in the setting of 3 wire 2 channel RS 232C AFP7CCS2 Partner 1 Terminal Terminal No part symbol SD Sent Data 1 SD RD Received Data 1 RD SG Signal Ground SG SD Sent Data 2 SD RD Received Data 2 RD SG Signal Ground SG Functions Signal name Signal name Received Data Signal Ground Sent Data Partner 2 Signal name Received Data Sent Data Signal Ground 2 4 Wiring for Communication Cassettes COM1 and COM2 ports B Terminal layout in the setting of 5 wire 1 channel RS 232C RS CS controlled CHI L1 SD 1 SD E RD z i SD 4 L RD 5 RD C Os 6 g 117 MODE We E sWe u 9 Terminal LED part Terminal Functions Signal Ports that can be no Symbol part that can be direction allocated Symbol allocated
51. a specific station no for PLC to Station no 1 MEWTOCOL COM 0 99 be connected to the PLC link Seta MEWTOCOL7 COM 0 999 value that does not overlap with other devices 300 600 1200 2400 4800 Baud rate 9600 bps 9600 19200 38400 57600 Set the paud rate to match that of 115200 230400 Data length 8 bits 8 bits The setting must be done according Parity Odd Odd to the devices connected In general the default values 8 bit Stop bit 1 bit 1 bit length odd parity and 1 stop bit RS CS Invalid Invalid Valid should be used Send waiting time 0 10000 Set this when it is necessary to set value x 0 01 0 0 100 delay response to the partner ms 0 ms device in slave communication Start code STX Invalid Terminator setting CR Terminator No need to specify judgment time 0 _ set value x 0 01 ms Do not initialize Initialize while Perform settings only when a RETE Do not performing settings Re modem is to be connected Perform Modem initialization sD Henne initialize initialize while performing settings for start up modem settings initialization Note 1 In MEWTOCOL communication the following setting items need not to be specified Start code terminator setting terminator judgment time PLC link setting 5 2 List of MEWTOCOL MEWTOCOL7 Supporting Commands 5 2 List of MEWTOCOL MEWTOCOL7 Supporting Commands 5 2 1 List of MEWTOCOL Commands B Commands to be used
52. abnormal status Data normal status read data abnormal te status error code 5 Check code Terminator 16bit CRC CCITT code 1 Header start code eA gt ASCII code H3E must be at the beginning of a message eThe 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 8 11 Specifications 5 Check code e This is a CRC Cyclic Redundancy Check to detect errors using a generating polynomial of hamming codes e 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 NOTES If no response is returned the communication format may not be correct or the command may not have arrived at the PLC or the PLC may not be functioning Check to make sure all of the communication specifications e g baud rate data length and parity m
53. al purpose port communication Master Slave Master Slave COMO o Note 1 e e COM1 e Note 1 2 Note 1 Note 1 In MEWTOCOL7 COM there is no master communication function 3 1 2 Conditions to be Set for Each Port Communication condition Communication port Setting range 1 99 MEWTOCOL COM Default Station no 1 999 MEWTOCOL7 COM 1 1 247 MODBUS RTU Baud rate 300 600 1200 2400 4800 9600 19200 38400 57600 115200 230400 9600 Data length 7 bits 8 bits 8 bits Parity None Odd Even Odd Communica Stop bit 1 bit 2 bits 1 bit tion format End code CR CR LF ETX or time 0 01 ms 100 ms by the unit of 0 01 ms CR Startcode With STX Without STX STX RS CS controlled No Yes Invalid Send Waiting 0 to 100 ms 0 ms Modem initialization Invalid Valid Re initialization Invalid Note Communication conditions that can be set vary by the mode to be used PLC link MEWTOCOL communication MODBUS RTU general purpose communication 3 1 Setting Applications and Communication Conditions 3 1 3 Settings Using Tool Software FPWIN GR7 Applications and communication conditions for each communication port should be set using the tool software FPWIN GR7 PROCEDURE 1 From the menu bar select Option gt 7 Configuration The FP7 Configuration dialog box opens 2 Select Buil
54. also changed to the constant 100 PLC Link 4 2 Configuration Required for PLC Link 4 2 1 Setup Procedure n order to use the PLC link function setting of communication conditions and allocation of memories are required e Settings should be performed by the programming tool FPWIN GR7 PROCEDURE 1 From the menu bar select Option gt 7 Configuration The FP7 Configuration dialog box is displayed 2 From the left pane of the dialog box select Built in SCU Settings Setting items for each COM port are displayed 3 Select PLC link from Communication mode in setting items under COM1 1 settings Setting items for PLC link become valid r m FP7 configuration Memory conf i gurat in CPU conf igurat ion Setting item Setting description Built in ET LAN Communication mode PLC link Unit number 1 Baud rate 9600bps Data length 8 bits Parity Odd Stop bit 1 bit RS OS Disable Receive wait time 0 Header STX Disable Terminator setting OR Terminator judgement time 0 Modem initialization Not initialize m Link relay link register memory block numbe 0 Maximum unit number to use for PLC link 0 Range of link relays used 0 Rnage of link registers used 0 Link relay transmission start number 0 Link relay transmission size 0 Link register transmission start number 0 Link register transmission size 0 Communication mode MEWTOCOL COM Unit number 1
55. anufacturer sectional Size With insulating Without insulating area sleeve sleeve 0 25 mm AWG 24 Al 0 25 6 BU A 0 25 7 0 34 mm AWG 22 Al 0 34 6 TQ A 0 34 7 Phoenix Contact 0 50 mm AWG 20 Al 0 5 6 WH A0 5 6 0 75 mm AWG 18 Al 0 75 6 GY 0 75 6 1 00 18 1 6 B Pressure welding tool for pole terminals Model no Manufacturer Part no Product no Phoenix Contact CRIMPFOX 6 1212034 Screwdriver for terminal block To tighten the terminals use a screwdriver by Phoenix Contact model No SZS 0 4 x 2 5 product No 1205037 blade size 0 4 x 2 5 or our screwdriver part No AFP0806 The tightening torque should be 0 22 to 0 25 N m 2 3 Wiring the COM Port 2 2 2 Applicable Cable Use a cable as prescribed below Suitable wires strand wire For RS 232C RS 422 communication Conductor Insulator S i Classifi Cross sectional Resistance Cable i Thick gi appropriate cation view Size value Material 912 able at 20 C Shielded Shield coverid 3 mm fa AOR Max Vinyl Max Onamba Co Ltd multi core con A nsu AWG22 chloride 0 3 mm 6 6mm ONB D6 x 0 3 mm cable ductor OY or larger Suitable wires strand wire For RS 485 communication Conductor Insulator Classifi Sample assifi0c Cross sectional Size Resistance Mat
56. atch between the computer and the PLC e f 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 8 12 8 4 MODBUS RTU Format 8 4 MODBUS RTU Format 8 4 1 MODBUS RTU Command Format MODBUS RTU command format START ADDRESS FUNCTION DATA CRC CHECK END 3 5 character 8 bits 8 bits n 8 bits 16 bits 3 5 character time time ADDRESS 8 bits 0 to 247 decimal station no Note 0 Broadcast address FUNCTION 8 bits DATA Varies depending on commands CRC 16 bits END 3 5 character time Differs depending on baud rate Refer to the reception judgment time section B Reception judgment time The process for receiving a message completes when the time that is exceeding the time mentioned below has passed after the final data was received Reception done judgment time is set at approx 32 bits of time Baud rate Reception done judgment time 300 Approx 106 7 ms 600 Approx 53 3 ms 1200 Approx 26 7 ms 2400 Approx 13 3 ms 4800 Approx 6 7 ms 9600 Approx 3 3 ms 19200 Approx 1 7 ms 38400 Approx 0 8
57. ation 5 3 2 RECV Command When MEWTOCOL COM is Used Command format RO i 1 2 n D1 D2 Items Settings Setting range i Specify the operation unit US SS 51 Specify the partner station no 1 99 Specify the device initial address of the source node data area in the partner 52 node Note 1 Note 2 0 99999 n Specify the No of sent data Note 3 M 203 words or 1 bit Specify the device initial address of the receiver node data area in the source D1 Note1 node Note1 Specify the device area in the source node to save the execution result code D2 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 Transmission method 16 bit device WX WY WR WL DT LD transmission 1 bit device X Y R L DT n LD Bit transmission Note 2 Bit device DT n and LD n cannot be specified for the header of the sender data in the partner node Note 3 The No of sent data is on a word basis for register transmission and on a bit basis for bit transmission Note 4 Device that can be specified for D2 are WX WY WR WL DT LD Saved as one word in the specified area 0 Normal completion Communication port is being used for master communication Communication port is being used for slave communication No of master communication
58. ave slave function function function supporting supporting supporting device device device Slave function Master Modbus RTU master Slave Slave Slave function supporting RS485 device PLC PLC PLC Examples of applications of MODBUS RTU master communication This is used for connection with a device that supports the MODBUS RTU protocol e Thermoregulator KT series e Devices from other manufacturers that support MODBUS RTU W Examples of applications of MODBUS RTU slave communication This is used when access is made from the higher device using MODBUS RTU commands 1 6 1 3 Overview of Communication Functions 1 3 4 General Purpose Communication B Overview of function e General purpose communication is used when PLC executes communication in accordance with the protocol of the partner device e Formulation and sending of command messages to the partner device and reception processing of responses from the partner device are performed by the user program Sending receiving of data with an external device is executed via given operation memory e g data register e Data are sent by converting commands in accordance with the partner device as strings into ASCII text setting them into a given data register and executing GPSEND command e Response received from the partner device is temporarily saved in the buffer Based on the reception done flag GPRECV command is executed The ASCII strings can be converted i
59. ct them Do not solder the wires to connect them The solder may break due to vibration e After wiring make sure stress is not applied to the wire e In the terminal block socket construction if the wire is fastened upon counter clockwise rotation of the screw the connection is faulty Disconnect the wire check the terminal hole and then re connect the wire FI X Clockwise Counter clockwise Wiring the COM Port 2 3 Wiring for CPU Unit GT Power Supply and COMO Port 2 31 Handling of GT Power Supply Terminals e GT power supply terminals can be used as power supply terminals for the GT series of our programmable displays e n accordance with the model to be used use either 5V DC or 24V DC NOTES e GT power supply terminals 5V DC 24V DC are design exclusively for the GT series of our programmable displays Do not use the terminals for other devices e GT power supply terminals and COMO port RS 232C are insulated inside 2 3 2 Terminal Layouts and Examples of Wiring B Layout for GT power supply terminals and COMO port terminals 1 2 3 4 5 6 Terminal Terminal part Functions Signal direction Ports that can be no Symbol that can be allocated allocated in the software 1 COM 0 sD Sent data ponit re 2 RD Received data COM 3 SG Signal Ground 4 OUTPUT 24V 24V 5 5V 5V 6 ov ov 2 6 2 3 Wiring for CPU Un
60. ction Code Unspecified Type 6 11 Table of Contents General Purpose Communication 7 1 7 1 Operation of General Purpose 7 2 7 1 1 Read Data from an External Device 7 2 7 1 2 Write Data into an External Device 7 2 FZ KSOMMGUPAUON pm 7 3 7 2 1 Setting Communication 7 3 TS Sending QP STAUOM 7 4 7 3 1 Overview of Sending 7 4 1 3 2 Gontents of Sent Data o E be M a RE bed 7 6 7 3 8 GPSEND General Purpose Communication Sending Command 7 7 7 3 4 Precautions on Sending Data sssssssee eee 7 8 74 Receiving oe iden deer dea igen eee ee eg de dida oce y dens 7 9 7 4 1 Overview of Receiving 7 9 7 4 2 Contents of Received Data 7 11 7 4 3 Precautions on Receiving 7 11 7 4 4 Operations of the Reception done copy flag and multiplex reception 7 12 7 4 5 GPRECV General Purpose Communication Receiving Command 7 13 7 5 Sending Receiving Flag
61. der initial address DT100 No of data U2 Transmit to station no U1 and initial address DT400 XC RO I DF 3 Clear to send Sending master Execute master communication flag SEND R100 communication flag UNITSEL YC R100 i SEND execution condition Clear to send flag ON i Sending flag OFF i Settings for communication port i S1 Slot 0 UO 1 52 COMI U1 i SEND process i S Data saving area 07100 i n No of sent data U2 B d D1 Area code of the receiver U1 i D2 Forward to address 07400 i D3 Execution result code 51 n D1 D2 D3 MEWTOCOL Master Slave Communication B Timing chart Clear to send master communication flag XC XD XE Sending master communication flag YC YD YE Execute SEND Master communication Sending done result flag YO Y1 Y2 Sending data Response reception processing B O allocation Confirm ON Confirm OFF Conditions to enable execution of SEND i command Clear to send flag Sendi XC XD ON YD OFF i Sending flag YC YD YE i Sending data ON Sending done OFF TUM ETE ETT i Sending done result flag YO Y1 Y2 i Normal completion OFF 1 Abnormal completion ON COM port no 1 2 0 Name Explanation XC XD XE Clear to send master communication flag Turns ON when MEWTOCOL COM MEWTOCOLT or MODBUS RTU is
62. e 2 channel RS 232C 7 52 5 wire 1 channel RS 232C 7 1 1 channel RS 422 RS 485 7 2 2 RS 422 RS 485 1 channel RS 485 e AFP7CCS1M1 3 wire 1 channel RS 232C e Note 1 For AFP7CCS2 select and use either 3 wire 2 channel RS 232C or 5 wire 1 channel RS 232C Switching should be performed using a switch on the Communication Cassette Note 2 For AFP7CCM1 and AFP7CCMz2 select and use either RS 422 or RS 485 Switching should be performed using a switch on the Communication Cassette Note 3 For AFP7CCS1M1 both 1 channel RS 485 and 3 wire 1 channel RS 232C can be used Communication Functions of CPU Unit 1 3 Overview of Communication Functions 1 3 1 PLC Link Functions MEWNET WO Overview of function eA system can be configured for the PLC link MEWNET W0 e Exclusive internal relays link relays L and data registers link registers LD are shared between the connected PLCs Among to 16 PLCs data can be exchanged with 1 008 link relay points and 128 link register words Station no 1 Send area Station no 3 Station no 4 No 1 No2 Receive area an RS485 W Applications of PLC Link Functions MEWNET WO Among our FP series PLC it can be used for link functions with the following models It is also capable of 1 1 communication via RS 232C port e FP X0 L40MR L60MR e FPOR RS485 type
63. e ebbe te p b ben delen ne p 2 8 2 4 Communication Cassette AFP7CCS2 RS 232C 2 channel insulated oer etd tede ab te vite inne 2 9 Table of Contents 2 4 3 Communication Cassette AFP7CCM1 RS 422 RS 485 1 Channel Insulated ici er o eda reed 2 12 2 4 8 Communication Cassette AFP7CCM2 RS 422 RS 485 2 Channel Insulated iiic hne RE eri i O ata 2 15 2 4 5 Communication Cassette AFP7CCS1M1 RS 232C 1 Channel RS 485 1 Channel Insulated 2 19 Setting and Confirming Communication Conditions 3 1 3 1 Setting Applications and Communication Conditions 3 2 3 1 1 Applications to be Set for Each 3 2 3 1 2 Conditions to be Set for Each 3 2 3 1 3 Settings Using Tool Software FPWIN 3 3 3 2 Input Output Signals Used for 3 4 3 2 lO Allocation ee eerte banus 3 4 13938 cote EE 4 1 4 1 Operation of PLC link MEWNET WO ssssssm HH 4 2 4 1 1 Overview of PLC Link 4 2 4 1 2 Operation of Link Relays and Link 4 3 4 2 Configuration Required for PLC
64. e partner device is FP series PLC Operand S2 of SEND command can be specified using the Device No 6 8 6 4 MODBUS RTU Master Communication SEND B Timing chart Clear to send master communication flag XC XD XE Sending master communication flag YC YD YE Execute SEND Master communication Sending done result flag YO Y1 Y2 Confirm ON Confirm OFF Conditions to enable execution of SEND i command Clear to send flag XC XD ON Sending flag YD YE OFF i Sending flag YC YD YE i Sending data ON Sending done OFF Asics TR ER DR EARS DADA SNR ERA i Sending done result flag YO Y1 Y2 i Normal completion OFF Response reception processing Sending data 1 Abnormal completion ON allocation COM port no Explanation 1 2 0 master Turns ON when MEWTOCOL COM MEWTOCOLT or XC XD XE MODBUS RTU is set for the communication mode and the unit communication flag is in the RUN mode Turns ON during sending data based on SEND RECV Sending master Te XD YE communication fla command 9 Turns OFF when the sending process is completed Reports completion result of sending data in general purpose YO Y1 Y2 Sending done result communication or master communication Normal completion flag 0 Abnormal completion 1 Note 1 Each contact is used for readi
65. e terminal while turning on electricity It could lead to an electric shock Use the external devices to function the emergency stop and interlock circuit Connect the wires or connectors securely The loose connection could cause excessive exothermic heat or smoke generation Do not allow foreign matters such as liquid flammable materials metals to go into the inside of the product It could cause excessive exothermic heat or smoke generation Do not undertake construction such as connection and disconnection while the power supply is on It could lead to an electric shock Copyright Trademarks This manual and its contents are copyrighted You may not copy this manual in whole or part without written consent of Panasonic Industrial Devices SUNX Co Ltd Windows is a registered trademark of Microsoft Corporation in the United States and other countries All other company names and product names are trademarks or registered trademarks of their respective owners PLC_ORG 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 e The manuals can be downloaded on our website http
66. e to save the execution result Note 3 code one word Note 1 Operand S1 is specified by combining two hexadecimal digits of MODBUS function code with two hexadecimal digits of partner station no E g Specify H030F when MODBUS function code is 03 Read Holding Registers and station no is 15 Note 2 Based on the types of device specified in operand D1 the transmission methods and MODBUS function codes that can be used vary Device to be specified Transmission Values that can be specified in higher H4 for D1 method bytes of S1 H1 Read Coil Status 01 16 bit device Register H2 Read Input Status 02 WX WY WR WL DT LD transmission H3 Read Holding Registers 03 Read Input Registers 04 1 bit device X Y R L DT n LD n Bit transmission H1 H2 Read Coil Status 01 Read Input Status 02 Note 3 The No of sent data is on a word basis for register transmission and on a bit basis for bit transmission Note 4 Device that can be specified for D2 are WX WY WR WL DT LD Saved as one word in the specified area 0 Normal completion Sending timeout Response reception timeout Received data error OJAN Communication port is being used for master communication Communication port is being used for slave communication No of master communication commands that can be used simultaneously has been exceeded 6 3 MODBUS RTU Ma
67. eginning 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 eThis is a BCC block check code for error detection using horizontal parity eThe 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 Specifications NOTES e If no response is returned the communication format may not be correct or the command may not have arrived at the PLC or the PLC may not be functioning Check 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 command and its corresponding response see below This makes the correspondence between a command and a response clear command o ifere _ mee o o s s m c 4 8 8 8 3 MEWTOCOL7 COM Format 8 3 MEWTOCOL7 COM Format
68. ength 7 bits 8 bits stop bit 1 bit 2 bits parity Yes No Odd Even Communication format Start code Without STX With STX end code CR CR LF None ETX Data transmission order Transmits from bit O character by character MEWTOCOL COM master slave MEWTOCOL7 COM slave MODBUS RTU master slave general purpose communication modem initialization Note 1 When communication is performed at a baud rate of 38400 bps or higher use the cable not longer than 3 m For wiring the RS 232C a shielded wire must be used to increase noise suppression Communication function 8 1 Communication Function Specifications M LAN port Interface 100BASE TX 10BASE T Baud rate 100 Mbps 10 Mbps auto negotiation Note 1 No of nodes 254 units DHCP Automatic getting of IP address Tmesmhmdo SSCS MEWTOCOL DAT master slave MEWTOCOL COM master slave Communication function MEWTOCOL7 COM slave MODBUS TCP master slave General purpose communication 16 kB 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
69. er case characters following the fixed formula for the particular command Specifications 5 Check code e This is a CRC Cyclic Redundancy Check to detect errors using a generating polynomial of hamming codes e This should be created so that it targets all of the text data from the header to the last text character e CRC is a value given by replacing the result of calculation by CRC 16 CCITT with ASCII code It is normally part of the calculation program and is created automatically 6 Terminator end code Messages must always end with a CR ASCII code HOD 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 header No of characters that can be sent in 1 frame gt Max 4096 characters 8 10 8 3 MEWTOCOL7 COM Format 8 3 2 MEWTOCOL7 Response Format B Response message Header oe code bbs 2 Station no p the receiver 3 Frame No 4 Text to be specified in accordance with the type of command ww Command name data area read Command code value Response code normal status
70. erial Thick Cable appropriate ation view value ness diam cable at 20 C 1 25 mm Hitachi Cable Ltd AWG16 Max Poly Max Approx KPEV S1 25 mm x Shield Cover or larger 16 8 O km ethylene 0 5 mm 8 5 mm 1P shielded 9 Belden Inc 9860 twisted con an Hitachi Cable Ltd pair ductor lator Q 5 mm Itachi Cable y AWG20 Max Poly Max Approx KPEV S0 5 mm x pit 620 133 4 ethylene 0 5 7 8mm 9 Belden Inc 9207 Cover 2 0 75 mm Poly 2 Max Max Approx VCTF0 75 mm x 2C Con insu AWG18 25 chlorinated 6 6 mm JIS ductor lator or larger biphenyl NOTES Use shielded twisted pair cables Use only one type of transmission cable Do not mix more than 1 type Twisted pair cables are recommended in noisy environments When using shielded cable with crossover wiring for the RS 485 transmission line grounded one end 2 2 Wiring of COM Port Terminal Block 2 2 3 Wiring Method B Wiring method 1 Remove a portion of the wire s insulation 2 Insert wire into terminal hole until it stops Tighten screw clockwise to fix wire in place The tightening torque 0 22 to 0 25 N m 2 3 to 2 5 kgf cm B Precautions on wiring The following precautions should be observed to avoid broken or disconnected wires e When removing the wire s insulation be careful not to scratch the core wire Do not twist the wires to conne
71. ettings Note 1 In general purpose communication the following setting items need not to be specified Station no PLC link General Purpose Communication 7 3 Sending Operation 7 3 4 Overview of Sending Operation B instructions Sending in the general purpose communication is performed by formulating a data table for sending on the given operation memory and subsequently executing GPSEND command PLC External device Send message data DT100 05 ABCDE CR 00004 DT101 BA 00002 DT102 DC Send data based on GPSEND DT103 E command m 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 command convert a given message into an ASCII text string and specify the number of strings to be sent in the data register DT100 and the message to be sent from the data register DT101 In the UNITSEL command specify the slot No UO and the COM port No U1 e In the GPSEND command specify and execute the header of the table where the message to be sent is saved DT101 and the No of characters DT100 RO X8 PE Clear to send Sending gen general purpose purpose communication flag communicatiqn flag i GPSEND execution conditions Clear to send flag ON i Sending flag OFF Y8 R101 R100
72. ication 7 3 2 Contents of Sent Data Strings data sent by the GPSEND command are converted into ASCII text and saved in a given data register Sent data table e Once the sent data are converted into strings data using the SSET command the No of characters is saved in the header area The sent data are saved starting with lower bytes of the subsequent address DT100 After executing SSET command the No of characters is set DT101 Strings of the No of bytes specified by GPSEND command DT102 are sent in ascending order from lower bytes DT103 DT104 p KEY POINTS e The start code and the end code specified 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 7 6 7 3 Sending Operation 7 3 33 GPSEND General Purpose Communication Sending Command Command format RO i S n D Items Settings Setting range i Specify the operation unit US SS Note 1 S Specify the header of the source node data area Note 2 1 to 4094 1 to 4096 n Specify the No of sent bytes Note 1 Note 3 Specify the device area in the source node to save the execution 2 result one word
73. in the software 1 CH1 SD SD SD Sent Data External device RD Received PLC RD RD Data External device 3 SG SG Signal _ COMA Ground RS Request to PLC 4 CH2 SDR SD Send External device CS Clear to PLC 5 RD C EU Send External device 6 SG 7 MODE 8 3 Wire 9 5 Wire Note Do not connect anything to Terminals No 6 through No 9 B Example of wiring in the setting of 5 wire 1 channel RS 232C RS CS controlled AFP7CCS2 Terminal part symbol Signal name Functions SD Sent Data SD RD Received Data Signal Ground RD Request to Send Clear to Send Partner Signal name Received Data Sent Data Signal Ground Request to Send Clear to Send Wiring the COM Port 2 4 3 Communication Cassette AFP7CCM1 RS 422 RS 485 1 Channel Insulated Type B Setting of application switch Applications for use can be switched using a switch on the backplane for Communication Cassette AFP7CCM1 Settings can be confirmed with LED lamps at the front of the cassette fares RS 422 VB SIME 4 E sell M RS 485 29 Settings for termination resistance selector switch On the surface of Communication Cassette AFP7CCM2 is located a termination resistance selector switch e When RS 422 is used Turn ON the switch e When R
74. is specified for partner station no global transmission is applied In this case no response message is received from the partner side 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 Communication port is being used for master communication Communication port is being used for slave communication No of master communication commands that can be used simultaneously has been exceeded Sending timeout Response reception timeout Received data error 6 4 MODBUS RTU Master Communication SEND 6 4 3 SEND Command MODBUS Function Code Unspecified Type Command format RO i S n D1 D2 D3 B Operand Items Settings Setting range i Specify the operation unit US SS S Specify the header of the source node data area Note 1 Specify the No of sent data 1 127 words 1 2040 bits Note 2 D1 Specify the partner station no HO HF7 0 247 Note 3 Specify the initial address of the receiver node data area the partner node HO HFFFF 0 65535 Note 4 Specify the device area in the source node to save the D3 execution result code one word Note 5 Note 1 Types of devices and transmission methods to be specified for operands S and D2 and MODBUS function codes to be used for command execution vary Types of device Transmission MODBU
75. it GT Power Supply and COMO Port Example of wiring in the case of GTO2 5V DC type FP7 CPU unit COM 0 port terminal GT power supply terminal Terminal No Signal name Terminal part symbol o 1 Sent Data COM 0 SD 2 Received Data RD SG Signal Ground GT power supply OUTPUT to GT terminal to GT terminal From 5 V terminal From 0 V terminal Example of wiring in the case of GT series 24V DC type COM O0 port terminal GT power supply terminal Terminal No FP7 CPU unit Signal name Terminal part symbol Sent Data COM 0O SD Received Data RD 1 2 3 4 5 6 NOTE Signal Ground OUTPUT ov to GT terminal to GT terminal From 24V terminal From OV terminal GT02 GTO2L series 5V DC type Terminal part symbol Signal name 5V 0v Functional Ground Sent Data Received Data NC NC Signal Ground GT series 24V DC type Terminal part symbol 24V ov Signal name Functional Ground SD Sent Data RD Received Data cs NC series The terminal layout on the display side differs for the existing models GT01 2 7 Wiring the COM Port 2 4 Wiring for Communication Cassettes COM1 and COM2 ports 2 4 1 Communication Cassette AFP7CCS1 RS 232C 1 Channel Insulated Type B Ter
76. lately received data Reception buffer data Reception done flag X0 X1 X2 Execute GPRECV command Reception done copy flag X4 X5 X6 1 scan time After always executing GPRECV command confirm whether there are lately received data referring to the i reception done copy flag X4 X5 X6 7 12 7 4 Receiving Operation 7 4 5 GPRECV General Purpose Communication Receiving Command Command format RO GPRECV US DT200 DT209 Pome 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 command immediately before GPRECV command 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 X1 X2 remains ON after the received data are copied based on GPRECV command Therefore the received data cannot be copied by when the reception done signal rises 7 13 General Purpose Communication 7 5 Sending Receiving Flag
77. minal layout T SD 1 SD lt RD 2 3 56 3 ea 4 o 115 a 6 a 7 Ma 8 oO l 9 Terminal LED part Terminal Functions Signal Ports that can be no Symbol part that can be direction allocated Symbol allocated in the software 1 CH1 SD SD SD Sent Data pe External device RD Received PLC 2 BD RD Data External device GOME SG Signal 3 E SG Ground E 4 9 2 Note Do not connect anything to Terminals No 4 through No 9 B Example of wiring AFP7CCS1 Partner Terminal Terminal No part symbol SD Sent Data 1 SD RD Received Data 1 SG Signal Ground SG Functions Signal name Signal name Received Data Sent Data Signal Ground 2 8 2 4 Wiring for Communication Cassettes COM1 and COM2 ports 2 4 2 Communication Cassette AFP7CCS2 RS 232C 2 channel insulated type B Setting of Application Switch Applications for use can be switched using a switch on the backplane for Communication Cassette AFP7CCS2 Settings can be confirmed with LED lamps at the front of the cassette 3 wire 2 channel RS 232C 5 wire 1 channel RS 232C RS CS controlled Wiring the COM Port B Terminal layout in the setting of 3 wire 2 channel RS 232C CHI E SD 1 SD L1 RD 2 RD 3 56 3 o2 SR 4 RD 5 RDC OSG 6 g E MODE g 8 Wire Wie 9 Terminal LED part
78. mmand In the UNITSEL command specify the slot No UO and the COM port No U1 e In the RECV command specify and execute the partner device station no U1 MODBUS command and partner device station no to be used H0301 initial address 40001 No of data U2 and initial address on the PLC side to save data DT100 For the address of the partner device please check operating instructions etc of the relevant device XC RO DF H Clear to send Sending master Execute master communication flag RECV R100 communication flag UNITSEL Starting conditions for RECV 1 execution i Clear to send flag ON i Sending flag OFF i Settings for communication port i S1 Slot 0 UO 2 COM1 U1 processing S1 MODBUS code i partner device station no HO1 i i S2 Partner device address corresponds to 40001 E n No of data U2 D1 Data saving area 07100 i D2 Execution result code i 1 S2 n D1 D2 Note 1 Operand S1 of RECV command is specified by combining two hexadecimal digits of MODBUS function code with two hexadecimal digits of partner device station no Note 2 When the partner device is FP series PLC Operand S2 of RECV command can be specified using the Device No 6 3 MODBUS RTU Master Communication RECV B Timing chart Clear to send master communication flag XC XD XE Sending
79. mmunication communication is executed by sending commands that suit the partner device and receiving responses Command messages are sent by formulating a data table for message in accordance with the protocol on the given data register and subsequently executing GPSEND command PLC External device Send command message ABCD CR DT100 U4 400001 21 o DT101 H4241 40002 43 DT102 H4443 M E eee e aese 1234 CR SUE Receive response message Send command based on GPSEND command Receive response based on GPRECV command 71 2 Write Data into an External Device B Write data into a partner device In general purpose communication communication is executed by sending commands that suit the partner device and receiving responses Command messages are sent by formulating a data table for message in accordance with the protocol on the given data register and subsequently executing GPSEND command PLC External device Send command message ABCD 1 2 CR DT100 400001 21 DT101 H4241 nl Ei pere mua DT102 H4443 S 5 ssec esee DT103 H3231 XYZ CR Receive response message Send command based on GPSEND command Receive response based on GPRECV command p KEY POINTS e There is no relevance between the operation of transmission by GPSEND command and the operation of reception by GPRECV command The built in SCU of the CPU unit is alway
80. ms 57600 Approx 0 6 ms 115200 Approx 0 3 ms 230400 Approx 0 14 ms Specifications 8 4 2 MODBUS RTU Response Format B Response in normal status eThe same message as a command is returned and for a loop back test eA part of a command message 6 bytes from the beginning is returned for multiple write command B Response in abnormal status In case a parameter disabled to be processed is found in a command except transmission error Slave address station no Either 1 2 or 3 Function code 80H Error code CRC B Error code contents 1 Function code abnormality 2 Device No abnormality out of range 3 No of devices abnormality out of range 8 14 Record of changes Manual No Date Record of Changes WUME FP7COM 01 Mar 2013 First Edition Please contact Panasonic Industrial Devices SUNX Co Ltd ll Overseas Sales Division Head Office 2431 1 Ushiyama cho Kasugai shi Aichi 486 0901 Japan Wi Telephone 81 568 33 7861 Facsimile 81 568 33 8591 panasonic net id pidsx global About our sale network please visit our website Panasonic Industrial Devices SUNX Co Ltd 2013 arch 2013 PRINTED IN JAPAN WUME FP7COM 01
81. ndefined Do not turn on undefined Default setting is 0 Y10 For COM 1 Port By turning on 1 Y10 Y12 the communication Y11 For COM 2 Port 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 X12 return to OFF 0 The reset is performed only once when this Request to reset signal rises General purpose CH This function can be used to delete communication Y12 For COM 0 Port 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 Y13 Undefined Do not turn on undefined Default setting is O By turning on 1 this output RTS is controlled Transmission from the communication partner is When RSICS is Output permitted 0 tt lidi Y14 For COM 1 Port utput Transmission from the communication partner is setae n RTS signal rohibited 1 Communication p Cassette COM1 Monitor the CTS signal from the communication partner with X14 Y15 nad Undefined Do not turn on undefined Default setting is 0 Note 1 When transmission is completed within one scan it turns off when the GPSEND command is executed in the subsequent scan NOTE Each contact in the table above is used for reading the operation status Do not write over it wi
82. ng the operation status Do not write over it with a user program KEY POINTS Specify the port targeted for communication using UNITSEL command immediately before SEND RECV command Master communication is only valid when MEWTOCOL or MODBUS is selected Confirm that the clear to send master communication flag XC XE for the targeted channel is ON and execute SEND RECV command You cannot execute other SEND RECV command for a communication port in master communication Confirm that the sending master communication flag YC YE is OFF and execute command If no response is received the sending master communication flag YC YE remains ON throughout the timeout setting time specified in CPU configuration You cannot execute SEND RECV command for a port in slave communication Up to 16 SEND RECV commands can be executed simultaneously for different COM ports 6 9 MODBUS RTU Master Slave Communication 6 4 2 SEND Command MODBUS Function Code Specified Type Command format RO i S n D1 D2 D3 B Operand Items Settings Setting range i Specify the operation unit US SS S Specify the header of the source node data area Note 1 n Specify the No of sent data Note 1 Note 2 Specify the MODBUS command and partner station no to be used Note 3 Note 4 Higher Two hexadecimal digits that indicate the D1 byte MODBUS function code Hoe
83. nto numerical data etc as necessary by the user program eThe data size that can be sent or received in a single communication is up to 4 096 bytes including control codes Data register DT Receive command in accordance aci with the extemal device ae Receive response from the device extemal Received data W Applications of general purpose communication This is used for connection with devices made by differing manufacturers that have dedicated communication protocols Communication Functions of CPU Unit 1 8 2 Wiring the COM Port Wiring the COM Port 2 1 Attaching a Communication Cassette 2 1 4 Attachment Instructions When an optional Communication Cassette is to be used attach it in the following procedures PROCEDURE 1 Using a flathead screwdriver remove the cover on the side of the CPU unit You will find four toggles 2 2 2 2 Wiring of COM Port Terminal Block 2 2 Wiring of COM Port Terminal Block 2 2 1 Suitable Wires and Tools A screw down connection type for terminal block is used for the communication port Use the following items for wiring B Suitable wires strand wire Size Nominal cross sectional area AWG 28 to 16 0 08 mm to 1 25 mm B Pole terminal with a compatible insulation sleeve If a pole terminal is being used the following models should be used Cross Part no M
84. ode BCC hexadecimal 73 9 Terminator be m Two One digi digit e that reads the value intemal relay R1 a oem 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 96 ASCII code H25 lt ASCII code at the beginning of a message 2 Station no e The station no of the PLC to which you want to send the command must be specified The station no of the PLC is specified by the system register In the case of the FP7 CPU unit the station no is specified in the FPWIN GR7 configuration menu eIn 1 1 communication specify 01 ASCII code H3031 or EE ASCII code H4545 3 Text The content of this varies depending on the type of command The content should be noted in all upper case characters following the fixed formula 4 Check code e This is a BCC block check code for error detection using horizontal parity The BCC should be created so that it targets all of the text data from the header to the last text character eThe 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
85. registers are equally allocated and scan time for each PLC is set at 1 ms Ttx 0 096 Each Pcm 23 1 1 x 4 31 bytes Tpc Ttx x Pem 0 096 x 31 2 976 ms Each Ts 1 2 976 3 976 ms Tit 0 096 x 13 2 x 2 1 632 ms T Max Ts Tit Tso 3 976 x 2 1 632 1 10 584 ms 4 4 PLC Link Response Time 44 2 Response Time When There is a Station Yet to be Added elf there are stations that have not been added to the link the time link addition processing time icreases and with this the transmission cycle time will be longer max Ts1 Ts2 Tsn Tit Tso Tik TIK Tic link addition command sending time Twt addition waiting time Tis link error stop command sending time Tso master station scan time NOTE e Stations that have not been added stations yet to be added refers to stations between No 1 and the Max station no that are not connected or those that are connected but whose power supply has yet to be turned on 4 13 PLC Link 4 14 MEWTOCOL Master Slave Communication MEWTOCOL Master Slave Communication 5 1 Configuration 5 1 1 Setting Communication Conditions B Configuration Setting items Default Specification range Remark Communication MEWTOCOL MEWTOCOL COM Master communication is not mode COM MEWTOCOL7 COM possible using MEWTOCOL7 Set
86. rting no for link relay send area 0 to 63 Size of link relay send area 0 to 64 words Starting No for link register send area 0 to 127 Size of link register send area 0 to 127 words Specify the device No range for link relays and link registers to be used Lv REFERENCE For details of station no and PLC link settings please see explanation on the next page onward NOTE e When you want to change the communication mode set in the PLC link to another mode download the changed project to the CPU unit in FPWIN GR7 and turn on power to the FP7 CPU unit again 4 5 PLC Link 4 3 Setting Items for PLC Link 4 3 1 Station No Setting e In the PLC link where multiple PLCs are connected to the transmission line station no should be set to identify each PLC e Station nos are the numbers to identify the different PLCs on the same network The same number must not be used for more than one PLC on the same network Station Ep no Max 16 units 4 3 2 Max Station No Setting e Set the Max station no for PLC to be connected to the PLC link e The smaller the Max station no is the shorter the relative transmission time becomes NOTES e Station nos should be set sequentially and consecutively starting from 1 with no breaks between them If there is a missing station no the transmission time will be longer e Set the same value for the Max station no for all PL
87. s clear to receive data 7 2 Configuration 7 2 Configuration 7 2 1 Setting Communication Conditions Configuration Setting items Default Specification range Remark Communication MEWTOCOL COM General purpose Specify general purpose mode communication communication Station no 1 1 999 Settings are not necessary 300 600 1200 2400 4800 9600 19200 Baud talte wee 38400 57600 115200 1230400 The setting must be done according to Data length 8 bits 7 bit 8 bits the devices connected Parity Odd None Odd Even Stop bit 1 bit 1 bit 2 bits Set to Valid only when Communication RS CS Invalid Invalid Valid Cassette AFP7CCS2 is used in a 5 wire mode Send waiting a Set this when it is necessary to delay d response to the partner device unit 0 01 ms P P i Start code STX Invalid Invalid Valid 7 The setting must be done according to Terminator CR CR CR LF Time the devices connected setting ETX Terminator 0 10000 In cases where Time is specified in the judgment time 0 terminator setting set the time for judging unit 0 01 ms 0 100 ms the terminator Do not initialize Modem Initialize while Perform settings only when a modem is ji m d Do not initialize performing settings to be connected Perform settings for initialization P Sra TH NE Re initialize while start up modem initialization performing s
88. set for the communication mode and the unit is in the RUN mode YC YD YE Sending master communication flag Turns ON during sending data based on SEND RECV command Turns OFF when the sending process is completed YO Y1 Y2 Sending done result flag Reports completion result of sending data in general 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 p KEY POINTS e Specify the port targeted for communication using UNITSEL command immediately before SEND RECV command e Master communication is only valid when MEWTOCOL or MODBUS is selected Confirm that the clear to send master communication flag XC XE for the targeted channel is ON and execute SEND RECV command e You cannot execute other SEND RECV command for a communication port in master communication Confirm that the sending master communication flag YC YE is OFF and execute command e You cannot execute SEND RECV command for a port in slave communication e If no response is received the sending master communication flag YC YE remains ON throughout the timeout setting time specified in CPU configuration e Up to 16 SEND RECV commands can be executed simultaneously for different COM ports 5 8 5 4 MEWTOCOL COM Master Communication SEND 5 4 SEND
89. set value x 0 01 ms Modem initialization Do not initialize Note 1 In MODBUS communication the following setting items need not to be specified Start code terminator setting terminator judgment time modem initialization PLC link setting 6 2 List of MODBUS RTU Supported Commands 6 2 List of MODBUS RTU Supported Commands 6 21 List of MODBUS Function Codes Table of supported commands r 01 Read Coil Status Read Y and R Coils 0X 02 Read Input Status Read X Contact 1X 03 Read Holding Registers Read DT 4X 04 Read Input Registers Read WL and LD 3X 05 Force Single Coil Write Single Y and 0X 06 Preset Single Register Write DT 1 Word 4X e 08 Diagnostics Loopback Test 15 Force Multiple Coils Write Multiple Y s and R s Ox 16 Preset Multiple Registers Write DT Multiple Words 4X 22 Mask Write 4X Register Write DT Mask 4X 23 Read Write 4X Registers Read Write DT 4X Note 1 Types of MODBUS function codes vary by commands to be used B Correspondence table for MODBUS reference No and device No MODBUS reference No Data on BUS PLC device number hexadecimal Coil 000001 002048 0000 07FF YO Y127F 002049 034816 0800 87FF RO R2047F Input 100001 108192 0000 1FFF X0 X511F Holding register 400001 465536 0000 FFFF DTO DT65535 Input register 300001 301024 0000 03FF WLO WL 1023 302001
90. specified operation memory Turns OFF when there are Py 9 no applicable data 7 9 General Purpose Communication B 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 X1 X2 turns on Subsequently the following data are saved in the buffer upon reception 8 data can be received consecutively Start receiving Received data 1 2 5 PR A B Reception ON done flag OFF GPRECV execution OFF condition R100 Execute GPRECV command e When the GPRECV command is executed data are copied into the specified area and the reception done flag X1 X2 turns OFF The reception done flag X1 X2 turns OFF when the I O refresh is executed at the beginning of the subsequent scans Reception buffer cr Received data i Reception done flag X0 X1 X2 When reception has been done ON R tion d i When copying of received data has ps ON EONS M X i been done based on GPRECV flag XO X1 X2 2 x i i i command OFF Execute GPRECV Saving method for received data When data are saved in a given data register from the reception buffer based on GPRECV command the data are saved in the following manner DT200 Saves the received No of bytes DT201 The received data are saved in ascending order from DT202 lower bytes DT203
91. ster Communication RECV 6 3 3 RECV Command MODBUS Function Code Unspecified Type Command format B 51 52 D1 D2 Items Settings Setting range Specify the operation unit US SS 51 Specify the partner station no H1 HF7 1 247 52 Specify the device initial address of the source node data area in the HO HFFFF 0 65535 partner node Note 1 Note 2 1 127 words n Specify the No of sent data 1 2040 bits Note 3 D1 Specify the device initial address of the receiver node data area in the Note 1 Note 4 source node D2 Specify the device area in the source node to save the execution result Note 5 code one word Note 1 Types of devices and transmission methods to be specified for operands S2 and D1 and MODBUS function codes to be used for command execution vary Note 2 Note 3 Note 4 Note 5 0 Device to be specified Transmission MODBUS function codes for S2 and D1 method to be used for command execution Read Coil Status 01 16 bit device Register Read Input Status 02 WX WY WR WL DT LD transmission Read Holding Registers 03 Read Input Registers 04 1 bit device TRES Read Coil Status 01 X Y R L DT n LD n Bit transmission Read Input Status 02 Bit device L and LD cannot be specified for the header of the sender da
92. t in SCU Setting items for Built in SCU appear FP7 configuration rx Memory configuration Setting item Setting description Built in Communication mode MEWTOCOL COM Station No 1 Baud rate 9600bps Data leneth 8 bits Parity Odd Stop bit 1 bit RS CS Disable a Send waiting time 0 Header STX Disable Terminator setting OR Terminator judgement time 0 Modem initialization Not initialize Communication mode MEWTOCOL COM Station No 1 Baud rate 9600bps Data leneth 8 bits Parity Odd Stop bit 1 bit RS CS Disable Send waiting time 0 Header STX Disable Terminator setting OR Terminator judgement time 0 Modem initialization Not initialize Link relay link register memory block numbe 0 Y Cancel Read PLC Mount Initialize 3 Specify communication conditions and press OK button Set conditions are incorporated into the project that is being edited 3 3 Setting and Confirming Communication Conditions 3 2 Input Output Signals Used for Communication 3 2 1 I O Allocation B Input signal Input Communication Description Operation signal port mode For COM 1 Port Reception general When the unit completes the data reception it G purpose turns on 1 x1 For COM 2 Port MET purpose communication Waiting for data reception 0 Reception communication X2 For COM 0 Port done flag completed
93. t is yet to be added to the link 0 Calculation Tik Tic link addition command sending time Twt addition waiting time formula Tls sending time for command to stop transmission if link error occurs Tso master station scan time Tlc 10 x Ttx sending time per byte Ttx 1 transmission speed kbps x 1000 x 11ms Approx 0 096 ms at 115 2 kbps Twt Default value 400 ms Tis 7 x Ttx sending time per byte Ttx 1 transmission speed kbps x 1000 x 11ms Approx 0 096 ms at 115 2 kbps Tso Master station scan time PLC Link Example of calculation Condition Calculation process Response time of 1 transmission cycle T 16 units connected to the link no station yet to be added Where Max station no 16 1 Relays registers are equally allocated and Scan time for each PLC is set at 1 ms Ttx 0 096 Each Pem 23 4 8 x 4 71 bytes Tpc Ttx x Pem 0 096 x 71 6 82 ms Each Ts 1 6 82 7 82 ms Tit 0 096 x 13 2 x 16 4 32 ms T Max Ts Tit Tso 7 82 x 16 4 32 1 130 44 ms 16 units connected to the link no station yet to be added Where Max station no 16 2 Relays registers are equally allocated and Scan time for each PLC is set at 5 ms Ttx 0 096 Each Pem 23 4 8 x 4 71 bytes Tpc Ttx x Pem 0 096 x 71 6 82 ms Each Ts 5 6 82 11 82 ms Tit 0 096 x 13 2 x 16 4 32 ms
94. ta in the partner node The No of sent data is on a word basis for register transmission and on a bit basis for bit transmission Device that can be specified for D1 are WX WY WR WL DT LD 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 commands that can be used simultaneously has been exceeded Sending timeout Response reception timeout Received data error 6 7 MODBUS RTU Master Slave Communication 6 4 MODBUS RTU Master Communication SEND 6 4 4 Write Data into an External Device B instructions In master communication PLC has the sending right and executes communication by sending commands to devices that support MODBUS RTU and receiving responses Messages in accordance with the protocol are automatically generated by PLC In the user program reading and writing can be done simply by specifying the station no and memory address and executing SEND RECV commands External device PLC supporting Modbus RTU Command message DT100 100 Hex 01 10 00 00 00 02 04 00 64 00 00 40001 100 DT101 0 A 40002 0 Hex 01 10 00 00 00 02 CRC Response message Specify and write station no and address based on SEND command B Sample program e Send commands
95. ter communication Communication port is being used for slave communication No of master communication commands that can be used simultaneously has been exceeded Sending timeout Response reception timeout Received data error 5 9 MEWTOCOL Master Slave Communication 5 10 6 MODBUS RTU Master Slave Communication MODBUS RTU Master Slave Communication 6 1 Configuration 6 1 1 Setting Communication Conditions B Configuration Setting items Default Specification range Remark Communication mode MODBUS RTU Specify MODBUS RTU Set a specific station no for PLC to Station no 1 0 247 be connected to the PLC link Seta value that does not overlap with other devices 300 600 1200 2400 The setting must be done Baud rate 9600 4800 9600 19200 according to the devices 38400 57600 115200 connected Data length 8 bits 8 bits The setting must be done Parity Odd Even according to the devices Stop bit 1 bit 1 bit connected In general 8 bit length even parity and 1 stop bit is used RS CS Invalid Invalid Valid Send waiting time Set this when it is necessary to 9 0 0 10000 delay response to the partner set value x 0 01 ms e SEN device in slave communication Start code STX Invalid Terminator setting CR Terminator judgment Use the unit in the default setting time 0 as indicated on the left
96. th a user program excluding Y10 Y12 and Y14 3 5 Setting and Confirming Communication Conditions 3 6 4 PLC Link PLC Link 4 1 Operation of PLC link MEWNET WO 4 1 1 Overview of PLC Link Operation Link relays L and data registers link registers LD are shared between the connected PLCs e f the link relay contact for one PLC goes on the same link relay also goes on in each of the other PLCs connected to the network e Likewise if the contents of a link register are rewritten in one PLC the change is made in the same link register of each of the other PLCs connected to the network Station no 1 Station no 2 Station no 3 Station no 4 No 1 No 1 No 2 No 2 Receive area i lt Receive area Receive area No 3 No 3 E od zd soroaren Sondarea area 7 7 85485 4 2 4 1 Operation of PLC link MEWNET WO 4 1 2 Operation of Link Relays and Link Registers B Link relay If the link relay LO of the source station No 1 goes on it is reflected into the ladder programs of the other station and YO is output on it No 2 Link register No 3 Link register 5 fu No 4 Link register 100 RO Hro MV K100 Loo No 1 Link register E LDO 100 Link register If the constant 100 is written into LDO of the source station no 1 LDO of the other station no 2 is
97. the clear to send master communication flag XC XE for the targeted channel is ON and execute SEND RECV command You cannot execute other SEND RECV command for a communication port in master communication Confirm that the sending master communication flag YC YE is OFF and execute command You cannot execute SEND RECV command for a port in slave communication If no response is received the sending master communication flag YC YE remains ON throughout the timeout setting time specified in CPU configuration Up to 16 SEND RECV commands can be executed simultaneously for different COM ports 6 5 MODBUS RTU Master Slave Communication 6 3 2 RECV Command MODBUS Function Code Specified Type Command format 51 52 D1 D2 Operand Items Settings Setting range i Specify the operation unit US SS Specify the MODBUS function codes and partner station no to be used Note 1 Note 2 Higher Two hexadecimal digits that indicate the MODBUS 1 4 51 byte function code Lower p EM byte Two hexadecimal digits that indicate the station no H1 HF7 1 247 S2 Specify the source MODBUS address in the partner node HO HFFFF 0 65535 1 127 words n Specify the No of sent data Note 3 1 2040 bits D1 Specify the device initial address of the receiver node data area in the 3 source node Note 2 D2 Specify the device area in the source nod
Download Pdf Manuals
Related Search
Related Contents
Hygiène des mains et allergie au latex ActiveJet AB-1240CR Manual - Habo Hobby & Tågspecialisten 6" Self-Vacuuming Air DA Sander Troy-Bilt 4-Cycle User's Manual Samsung Delbar varmluftsovn 65 liter BT62TDBW Bruksanvisning Toshiba MV13Q41 TV VCR Combo User Manual Andis ACM-1 Samsung VC-BM601 User Manual Brochure SAMT Copyright © All rights reserved.
Failed to retrieve file