Home

FP2 Multi Communication Unit Technical Manual, ARCT1F396E6

image

Contents

1. 3 nc 5 RD NC NC D 6 NC 7 nc g SG lt Using RS422 communication block FP2 CB422 AIGT0032 MCU side To power supply GTO1 side Product No AIGTO032 Pin No signal Name 41 OS5V or 24V GND NC 4 SD 5 5D 6 RD RD e Terminal station setting 1202 resistance is built in lt Using RS485 communication block FP2 CB485 1 1 connection AlIGT0032 MCU side To power supply GTO1 side Product No AIGTO032 A Pin No Signal Name Short 1 5V or 24V Termination GND O NC 4 sp SD 6 RD Short POL 7 RD 8 Terminal station setting 1200 resistance is built in Note e A shielded cable must be used as the communication cable In a noisy environment measures against noise should be taken such as using a ferrite core Take care for the shielded part not to be bare to avoid noises such as static electricity e Unit numbers transmission distance and baud rate vary depending on connected devices Check them in an actual operation Reference For the details on transmission distance refer to lt 2 3 2 Communication Specifications gt 7 3 1 Communication Conditions and Restrictions Relating to Functions Precautions when Using the FP2 CPU Unit lt 1 gt If the processing of commands and responses sent from a host computer or display panel extends over multiple frames a busy error error code 53 will be retur
2. Contents to check Check the special relays R9050 to R9054 transmission error flag Check the special registers DT90161 DT90163 and DT90165 error content Check the special registers DT90170 DT90200 and DT90230 Check the special registers DT90160 to DT90247 Check the system register Read out setting contents using F161 MRCV instruction and check the contents ALARM lights Please contact your dealer Note The status can be monitored using the PC PLC link monitor of the MCU setting in abnormal conditions 5 18 Chapter 6 Communication Function General purpose Serial communication 6 1 Overview of Funcation 6 1 1 What is General purpose Serial Communication e In general purpose serial communication data is sent and received over the COM ports to and from an external device such as an image processing device or a bar code reader e Data is read from and written to an external device connected to the COM port by means of a ladder program of the CPU unit Register Image processing device Sending data using F159 MTRN Data is sent by setting data in registers and executing F159 MTRN instruction Oo Hee Receiving data using F161 MRCV Data is received by copyng the data received in COM port to the register specified using the instruction FP2 MCU Printer sending and receiving data witht the external devices is camed out z via the register of the CPU unit _
3. AE rer L Outline of operation To send data to and receive it from an external device using the general purpose serial communication function the data transmission and data reception functions described below are used The F159 MTRN instruction and the F161 MRCV instruction are used in these operations to transfer data between the FP and an external device Sending data Data to be transmitted is stored in the register used as the send buffer When F159 MTRN is executed the data is output from the COM port e The start and end code specified for the memory switch in the communication setting is automatically added to the data that has been sent FiSe MTRN MCU send buffer Data e The maximum volume of data that can be ping sent by MCU is 2048 bytes including the start and end code FP2 MCU Receiving data Data received in the COM port is stored in the receive buffer of MCU and the reception done flag goes on When the reception done flag goes on the data is copied in the operation memory in the CPU using F161 MRCV instruction MCU send buffer e Data can be always received in MCU e When detecting the completion of data _ reception the reception done flag XO X2 of i MCU turns on i 1 e When the data reception completes the data a An can be copied in the operation memory of the F161 MRCV data is copied CPU using the F161 MRCV instruction FP2 MCU e No
4. Selectable from 3 types of communication block Can be used with only one channel RS232C Three kinds of communication mode There are three modes general serial computer link and PC PLC link are available Depending on the combination with the communication block it can be connected with many serial communication devices EEFE Micro PC PLC link Computer link t ET i Display panel General purpose serial communication High speed and large capacity communication MCU corresponds to 230 kbps high speed communication Also 2048 characters data per frame can be transmitted 230Kbps Note When setting to 230400 bps use USB ports at computers If connecting to RS232C ports a device open error occurs and communication is not available Stable communication by double insulation As the areas between the internal circuits and between channels are electrically insulated it is irrefrangible and has less effect on connecting devices The communication is stable Isolated part Internal circuit Program Ladder programs for the general serial communication can be easily created by the special instruction Programming is not necessary for the PC PLC link and the computer link 1 2 Unit Types 1 2 1 Multi Communication Unit Name Specifications PartNo Product No FP2 Multi Communication Unit Serial port 2 channels FP2 MCU AFP2465 be Key Poin
5. No Name Set Value No 412 COM port 1 selection of communication mode Computer link Communication format for COM port Character bit 8 bits Parity check Stop bit Terminator Header STX not exist No 414 Baud rate for COM port 19200 bps These settings should be the same as the settings of the connected MCU Connection to FP series PLCs FPO FP1 lt Using AFP2803 gt RS232C e Connection with FPO COM port FPO COM port side MCU side D sub 9pin 3 pin terminal _1 NC Not connected e RD Received Data re Se unavalapie AL 6 23 Connection with FP1 COM port FP1 COM port side MCU side D sub Spin D sub 9 pin PinNo Pinname Signal name i NO ot connected RD Received Data _ CS Clear to Send Clear to Send O Seanseise 8 2 ganhe Procedure of communication In this example an FP series PLC is connected to the COM 1 port of MCU in the slot 3 K100 and K200 are respectively being stored in DTO and DT1 of the PLC on the other end Le Q Q O or After transmitting from MCU to buffers in registers XO turns off FP2 FP2SH MCU FP series PLC ae gt Tiis ASC M ABC1Z30EF4S D70 Crow no o 7 Bi i TEL rsssnrnn OT KB K1 7 a Hf gt Ladder program Data register na Data area read a command is set in send buffer 1 oe Data t
6. Precautions when Using the FP2 CPU Unit lt 2 gt Of the commands sent from a host computer or display panel if the monitor commands the MC MD and MG codes are used they cannot be read accurately if two or more devices within the same group are connected For example if two or more display panels in the same group are connected and the command sent from the display panel side is a monitor command it cannot be read accurately Power supply Group A CPU unit tool port Group B CPU unit COM port Group C COM 1 port group of Multi Communication Unit MCU Group D COM 2 port group of Multi Communication Unit MCU A similar restriction also applies if access is being made from another station connected with the link unit Unit No 1 Local station Unit No 2 Other station Power supply Power supply If remote programming is used to change the monitoring destination from another station connected with the Multi wire Link Unit MVV the monitoring destination of the Computer Communication Unit COM 1 port of the source station side will end up being changed RE Note If a monitor command is used for a port in the same group registered data will be rewritten in sequential order starting from the most recent data and different data will end up being monitored pa Key Point Monitoring commands are commands used to implement monitoring after the contact or data to be m
7. 13 7 93 80 4 100 0 a Ss When one AFP2805 is installed Installation space in the panel 165 el Le 20 13 10 1 2 Communication Blocks FP2 CB232 AFP2803 FP2 CB422 AFP2804 M2 6 depth 4mm 54321 FP2 CB485 AFP2805 M2 6 depth 4mm 5 4 3 2 1 10 3 10 2 ASCII Codes 10 4 Record of changes ARCT1F396E SEP 2004 First edition ARCT1F396E 1 SEP 2004 2 edition ARCT1F396E 2 NOV 2006 3 edition ARCT1F396E 3 JAN 2007 4 edition ARCT1F396E 4 NOV 2008 5 edition Change in Corporate name ARCT1F396E 5 AUG 2011 6 edition Change in Corporate name Fixed Errors ARCT1F396E 6 JUL 2013 7 edition Change in Corporate name Please contact Panasonic Industrial Devices SUNX Co Ltd E Overseas Sales Division Head Office 2431 1 Ushiyama cho Kasugai shi Aichi 486 0901 Japan E Telephone 81 568 33 7861 W Facsimile 81 568 33 8591 panasonic net id pidsx global About our sale network please visit our website Panasonic Industrial Devices SUNX Co Ltd 2013 July 2013 PRINTED IN JAPAN ARCT1F396E 6
8. e PC PLC link is not the default setting Therefore the mode setting switch must be set to PLC Link in order to use this function PC PLC link is only available for the COM 1 port e Unit numbers and l ink areas are allocated using the unit No setting switch or setting tool FPE FP2 FP2SH FPE Unit No 1 Unit No 2 Unit No 3 Unit No 4 Send area Receive area No 1 nie CRE Receive area RARE Se RS485 The link relays and link registers of the PLCs contain areas for sending and areas for receiving data Theses areas used to share data among the PLCs R Note e Different hardwares are used for MEWNET W0 and MEWNET W MEWNET W2 They cannot be mixed in the same network Ne Reference For the details on the PC PLC link of FPY refer to lt Chapter 7 in FP2 Users Manual ARCT1F333 gt 5 1 2 Operation of PC PLC link e Turning on a link relay contact in one PLC turns on the same link relay in all other PLCs on the same network e Likewise if the contents of a link register in one PLC are changed the values of the same link register are changed in all PLCs on the same network Link Relay When link relay LO of the master unit No 1 turns on this signal is converted by the ladder programs of the other units and YO of the other units is activated No 3 Link register No 4 Link register COMME DO 10 No 1 Link register Link register If a constant of 100 is wr
9. OFF __ OFF OFF ae t8200bps on for o OFF 9600bps OFF ON OFF ON Memoryswith ON ON _ ON ON Note If selecting the setting in any shaded column the setting error occurs RE Note When COM2 port is not used use the factory default setting initial condition 4 7 4 4 3 Memory Switch Memory switch is a MCU internal memory for communication settings There are two methods for setting such as MCU setting and F159 MTRN instruction What is MCU setting This is a setting display by the programming tool that is exclusive for FP2 Multi Communication Unit The detailed settings for various communication conditions and unit No etc are available however the mode setting is not available Setting procedure using FPWIN GR Ver 2 4 or later version is necessary The MCU setting is not possible online Go offline and download after specifying the MCU setting Note When using FP2 CPU unit the system register No 2 Configuration capacity setting should be set to 2k word in advance When using FP2SH this setting is not necessary 1 Start up MCU setting on the Option menu 2 MCU select the Slot No dialog box is shown MCU Setting MCU Select the Slot No 3 3 xX Slot Mo OK Cancel ss Change slot ho Delete 3 Specify the communication conditions correctly in the display below x con cove Available mode
10. Up to eight units of FP2 MCU can be installed FP2 MCU Other units t MCU FP2 MCU 5E 8 j5 a E w io FP2 MCU FP2 MCU FP2 MCU Oo a z o FP2 MCU FP2 MCU FP2 MCU g Sth 6th 7th 8th 9th unit unit unit unit unit The Sth unit counting only MCU can not be used as computer link Note The restrictions are not related to the number of channels for each unit Either COM 1 port and COM 2 port is counted as one unit in case of the CCU setting 1 6 Chapter 2 Specifications and Functions 2 1 FP2 Multi Communication Unit 2 1 1 Parts and Functions SD RDERA SO RD ER ALARM SD ADERR SO RER ALARM A WOGPMC GPCI 2 WOGPMC GPMCI 2 a 27 com OMM SERR LOOM 12 LCOM24 SERR COMI L a ANDAS COS lt LEGIY LT lt REL J This label will be in case COM 2 is used N COM 2 COM2 7 I T7 Front Front Back _ when the label was removed 1 Operation indicator LEDs Status indicator LED spa Operation sD Green Send Data Flashes while data is pang TA monitor Goes out when no data is being sent RD Green Receive Data Flashes while data is being received monitor Goes out when no data is being received In PC PLC link mode Lights if PC PLC link error occurs Ce In other modes Lights if communication error occurs In PC PLC link mode Goes out if PC PLC link is liked up error is In other modes Goes out if no communication error occurs Lights if setting
11. of occurrences of reception errors occurrences of overrun framing error parity error reception error Note2 Setting error Lower byte code Bit 0 Setting error of mode Becomes 1 when the mode setting of the mode speed setting switch speed setting switch is not acceptable 1 When setting to OFF OFF 2 When setting COM 2 port to PC link mode Bit 1 this is the operation Becomes 1 when the setting exceeds the mode setting exceeding the restrictions on the installation of the unit usage restrictions for the unit 4 word Reception Lower byte error code Bit 0 Receive buffer overrun Occurs only when an error occurs in the hardware Notes Higher byte Bit 8 Error in communication Becomes 1 when the setting value of the condition setting values communication condition specified by F159 MTRN instruction is out of the specification Bit 9 Error in transmission Becomes 1 when the data length of the message data length transmitted by F159 MTRN instruction exceeds 2048 bytes 8 8 Address eset Setting content and value Description Error K1 Unit No setting error The bit 8 of the setting error code communication parameter No K2 Baud rate setting error condition setting value error becomes 1 when the are K3 Character bit setting error values that are out of range were specified This K4 Parity setting error area is the area to discriminate which setting value K5 Sto
12. the received data has been copied from the MCU to the CPU however note that the reception done flag X0 X2 has been left to be on even in the next scan It is recommended to execute the MRCV instruction as soon as the reception done flag X0 X2 turned on as mentioned below If the moment that the reception done flag X0 X2 turns on is not used as the execution condition the PLC data reception done flag X1 X3 after the execution of the MRCV instruction can be used to tell whether there are any received data or not XO X2 H P161 MRCV HC1 DTO DT100 Data i i i i I MCU reception 7 i i i recption done i flag Reception done flag XO X2 MRCV instruction PLC data reception done flag X1 X3 PLC one scan 9 9 9 2 2 Time Chart of Multiplex Reception Data Data reception 2 MCU reception 1 7 recption done 1 _ flag i Reception done 2 flag XO X2 AE 8 MRCV Le _ instruction i i i i i i i l b 5 i i PLC data 4 GEE 12 reception done st Es y oi flag X1 X3 i i i l i i Explanation of operation The operation if multiplexed data are received when executing the MRCV instruction D MCU detects the completion of data reception 2 The reception done flag X0 X2 is taken in the CPU by the I O refresh operation however new data is received with MCU by then 3 Makes the reception done flag X0 X2 be the exec
13. 2 8 operation using the actual device In some cases the number of units transmission distance and baud rate vary depending on the connected device Note3 The values for the transmission distance baud rate and number of units should be within the values noted in the graph below For baud rate 230 4 kbps For baud rate 115 2 kbps For baud rate 57 6 kbps 70 Number of units 20 0 200 700 1000 1200 Transmission distance m When using a baud rate of 2400 bps to 38400 bps you can set up to a maximum of 99 units stations and maximum transmission distance of 1200 m Note4 The number of units of the PLC link with RS232C RS422 is two Note5 When setting to 230400 bps use USB ports at computers If connecting to RS232C ports a device open error occurs and communication is not available 2 9 Precaution when using RS485 port RS485 communication is a communication method to perform sending and receiving by two wire system Therefore only one device enables to send data in the communication line at the same time MCU Other device Other device Multi Communication Unit MCU can send back responses send data instantaneously 2 for the transmitted data from other devices 1 However depending on other devices connected it may need a time to open the communication line In this case data cannot be sent correctly as the transmitted data from MCU and the transmitted line of the other devices clash The above figure s
14. A200 A100 lt Using AFP2803 gt RS232C is connected Micro Imagechecker side MCU side D sub 9pin ANM81303 ANS 1808 sue Pin name Signal name cas 1 Cable color eT Red SD oa 3 verw os 4 CS Glearto Send J Bue OR 5 TER ioe 5 Green se 5 TEE p crey er e ER Data terminal ready enea Cover Connection example with other RS422 device lt Using AFP2804 gt MCU side D sub 9pin Connected device RS422 Pino D No 2 3 RD Received Data 5 RD Received Data _6 masabe 7 of onnection Eu Ex unavailable oo gt Reference For the details on the connection with RS485 devices refer to lt 6 8 Connection with 1 N Communication General purpose Serial Communication gt 6 20 Procedure of communication In the following example the Micro Image checker is connected to COM 1 port of the MCU in slot 0 Transmission E 2 hl o D oO D g FP2 FP2SH FP series PLC Ts ABC SBCIENDERSE DD m iw no oTF TF wran r a Ki Ladder program Data area read D command is set in send buffer ch o ___ 0 Data transmission with F159 a a_ ooo Transmission done flag X4 OFF Cts Data area read command 01 RDD00000 00001 CR transmission O Transmission done flag X4 ON 5 oq _______________ Data register value of PLC on other end is received a
15. Default mc W0 Unit No nie Cancel MC GP BR Baudrate 3600 bps MC GP Char bit 8 bits rl MC GP Parity check Odd 7 mC GP Stopbit 1 bit 4 MC GP RS CS Only RS2320 Invalid 4 IMC GP Send Waiting Time 0 00 ms 0 100 00 GP Header STx Not Exist r GP Terminator CR v Timeout 0 Auto 0 00 ms 0 100 00 MC GP Initialize Modem No i MC Computer Link GP General Communication WO PC Link MEWNET WO Setting using F159 MTRN instruction The communication conditions for each COM port can be specified or changed by using F159 MTRN instruction during the ladder program sar Reference lt 8 2 Setting Communication Conditions and Monitoring gt 4 8 4 4 4 Flow Chart E Mode setting Starts setting Set with the mode speed setting switch according to the used mode Note1 Note Can be set by F159 MTRWN instruction E it Reference lt 8 1 Changing Application of COM Port gt Unit No setting COM 1 Starts setting General purpose senal PC PLC link communication mode mode Specify the unit Mo by the unit No setting switch Notez HCommunication condition settings Do you specify the Baud rate with the mode speed setting swatch Yes ich baud rate do you want to specify 96k 192k or ree Set the speed setting of the mode speed setting seich to Memory sattch l it OF that othe conditions a
16. Multi Communication Units MCU have been installed they are labeled Root No 1 Root No 2 and Root No 3 in sequential order starting from the unit closest to the CPU unit Root numbers are not used directly in the handling of the Multi Communication Unit but if a Multi wire Link Unit when setting MEWNET W mode or MEWNET W2 mode an ET LAN unit or a computer communication unit is being used at the same time these numbers are sometimes specified on the Multi wire Link Unit or the ET LAN unit side Computer a Multi Communication Unit Communication Multi wire Unit Link Unit MEWNET W mode MEWNET W2 mode ET LAN unit be Key Point When the Multi Communication Unit is being used in the MEWNET F mode it is not counted as a Root No Also when the MCU is being used in the general purpose serial communication mode it is not counted as a Root No 2 14 Chapter 3 Installation and Wiring of Communication Blocks 3 1 Installation of Communication Blocks 1 Insert a communication block to the COM port of the main unit 2 Push the communication block into the main unit until it stops and tighten mounting screws Tightening torque 0 4 N m or less 3 2 3 2 Wiring of Communication Blocks 3 2 1 FP2 CB232 AFP2803 FP2 CB422 AFP2804 D sub connector and connector cover set comes with MCU Use the attached set or equivalent Accessories Manufacturer Product No J S T Mfg
17. On state is effective until the next scan 9 12 29 CPU receives the fifth buffer 21 As no error is detected during the reception of the fifth buffer the reception error flag remains OFF 22 CPU receives the sixth buffer 23 As an error was detected during the reception of the sixth buffer the reception error flag turns on _ On state is effective until the next scan 24 CPU receives the seventh buffer 2 As no error is detected during the reception of the seventh buffer the reception error flag remains OFF 28 CPU receives the eighth buffer 27 As an error was detected during the reception of the eighth buffer the reception error flag turns on _ On state is effective until the next scan 28 As there is no received data in MCU the reception done flag of MCU turns off 29 As no error exists in the received data in MCU the reception error flag turns off 60 CPU reads the reception done flag of MCU and turns the reception done flag X0 X2 off 61 CPU reads the reception error flag of MCU and turns the reception error flag XA XC off 82 The reception error flag X7 X8 which was set using the MRCV instruction when the data was received turns off 9 13 9 14 Chapter 10 Dimensions and Sample Programs 10 1 Dimensions 10 1 1 FP2 Multi Communication Unit 6 93 100 0 HAMEN O34 leer LELES This label will be removed in case TOM is used When one AFP2803 or AFP2804 is installed
18. PROG to RUN in case that the MCU setting has been done using the tool However the reset done signal of XE YF does not turn on in the above case 9 8 9 2 Appendix 9 2 1 Detailed Time Chart of Data Transmission and Reception MCU recption done flag Reception done flag X0 X2 G MRCV T1 i Il i instruction L I i i gt PLC data A reception done i i i i flag X1 X3 E i i i i i i PLC one scan i i Explanation of operation 1 MCU detects the completion of data reception 2 The reception done flag X0 X2 is taken in the CPU by the I O refresh operation 3 Makes the reception done flag X0 X2 be the execution condition and the received data is copied in _ the operation memory using F161 MRCV 4 Once copying data completes the PLC data reception done flag X1 X3 turns on After completing the execution of the MRCV instruction the MCU reception done flag turns off 6 As the MCU reception done flag is taken in by the I O refresh operation of the CPU X0 X2 turns off Also the PLC data reception done flag X1 X3 turns off by the I O refresh operation Precautions _ The MCU reception done flag above mentioned turns off within a maximum of 100 us after the MRCV instruction is executed so that it may not turn off in the next scan after the execution of the MRCV instruction depending on PLC scan time and the timing to execute the MRCV instruction In that case
19. The details can be checked by monitoring the MCU status using F161 MRCV instruction Troubleshooting Contents to check possible block is installed firmly ERR LED lights environments such as noise S ERR lights Is the operation mode setting Read out and check the status correct using F161 MRCV instruction Isn t it used excessively ignoring the usage restrictions Transmission is not Review the program possible redundantly during transmission In case of RS232C communication block isn t transmission forbidden by CTS signal executing MTRN instruction Is the setting for the communication Check the setting reading the conditions the same as the one for the status using F161 MRCV device communicated instruction Is the setting of the method for detecting reception done the same as the one for the device communicated Reception is not possible Check the setting reading the Isn t the reception buffer FULL error status using F161 MRCV occurring instruction If the error occurs the operation cannot be restarted without performing CH reset Is the operation mode general purpose communication Has the operation mode been changed using MTRN instruction When data is not received properly Review the program Isn t it multiplex reception Isn t there Check the setting reading the garbage in the buffer caused by noise status using F161 MRCV or something instruction AL
20. Transmission process When the execution condition of the F159 MTRN instruction turns on and the transmission done flag X4 X5 is on operation is as follows 1 The set data is transmitted in order from the lower order byte in S 1 of the table e During transmission the transmission done flag X4 X5 turns off The flag does not turn off right after the execution of the instruction It turns on when starting 2 scans e f the header is set to STX Exist the header is automatically added to the beginning of the data e The terminator is automatically added to the end of the data OTIO DT102 DT 10s DT 104 B C D E F G H Er Transmission data A x4 ON x5 l OFF Execution condition ON RO OFF F159 MTRN execution During transmission During this interval the F159 MTRN instruction cannot be executed for the same COM port 2 When all of the specified quantity of data has been transmitted the transmission done flag X4 X5 turns on Note If The transmission time is shorter than the scan time X4 X5 may not turn on When you do not wish to add the terminator end code during transmissions e Specify the number of bytes to be transmitted using a negative number e If you also do not wish to add a terminator to received data set the memory switch to Terminator None Programming example The following program transmits 8 bytes of data without adding the t
21. When a transmission error has occurred in the PC PLC link or when there is an error for on off in the setting for the PC PLC link area OFF When no transmission error occurs gy Key Point Monitoring the PLC link status In FPWIN GR the PLC link status items such as the transmission cycle time and the number of times that errors have occurred can be monitored by selecting the PLC link switch on the FPWIN GR Status Monitor screen CA note Remote programming of the linked PLCs is not possible 5 12 5 4 Connection Example of PLC Link 5 4 1 When using three PLCs The following example demonstrates how the PLC can be connected to two other FP PLCs using a PLC link connection In the example shown here link relays are use When X1 of control unit no 1 turns on YO of unit no 2 turns on When X2 of unit no 1 turns on YO of unit no 3 turns on Link relay LO turns on FPE RS485 FP2 FP2SH Unit no 1 Unit no 2 Unit no 3 System register settings When using a PC PLC link the settings are fixed as below The settings using the memory switch are ignored Setting Setting value 115200 bps Character bit Parity Odd Stop bit sd bi Unit no and communication mode settings Setting for FP of unit no 1 Po Name Stale PC PLC link system register No 412 Setting for FP2 of unit no 2 pC Name Set value y PC PLC link using the mode speed setting switch Setting for FP2SH of unit no
22. error occurs SERR Rea sete eror The numbers at the top 1 and 2 mean COM port No Goes out in normal status Lights if unit error occurs Lights if watch dog timer error sun en Goes out if no error occurs Key Point The communication error LED lights when the receive error occurs Receive error Parity framing overrun buffer capacity overflow receive buffer FULL AGP a Reference lt 8 3 MCU Status Monitor gt Operation mode LED WO Green PC PLC link mode Lights in PC PLC ink mode Green General purpose serial Lights in General purpose serial communication communication mode mode Computer link mode Lights in computer link mode Note WO PC PLC link mode is not available for COM 2 2 2 2 Installation position for communication block The communication blocks are installed in COM 1 and COM 2 3 Unit No setting switch Unit No for the COM 1 is set when the PC PLC link and computer link is selected for the operation mode Unit No can be selected in a range of 1 to 15 e Factory default setting 0 memory switch selection 4 Mode speed setting switch Used to set the operation mode and communication speed OFF COM 1 COM 2 Suter _ _F 254 3 et OFS DE OP OP Operation PC PLO link FON _OFF __ ON Gee e ae era T Jea T communication Computerlink_ ON ON ON ON 115200 bps OFF OFF OFF OFF Baud rate E ON 19200b
23. in the data table starting with the area specified by S through the COM port specified by D Data can be sent with the start code and end code automatically attached A maximum of 2048 bytes can be sent When the program below is run the eight bytes of data contained in DT101 to DT104 and stored in the send buffer starting from DT100 are sent from COM port 1 MCU starts the transmission within 10 us normally within a maximum of 500 us approx in the PC PLC link mode right after the execution of the instruction RO 5 n D HH F159MTRN DT100 K8 Ki _ Serial data transmission J Starting from DT100 the contents of 8 bytes are sent from the COM 1 port of MCU in the slot 2 Reception of data The data received in the communication port of MCU in the slot No specified by S is read and stored in the data table saved by the specifications from D1 to D2 A maximum of 2048 bytes can be received In the program below when X30 reception done flag including the terminator data turns on the received data in the COM 1 port of the MCU located in the slot 3 is stored from DT1 specified for the receive buffer The number of received bytes is stored in DTO Reception done flag X30 S D1 D2 F161 MRCV H3C1 DTO DT50 r_ Serial data reception _ The data in COM 1 port of MCU in the slot 3 is specified starting from DTO The area ending with DT50 is cordoned as receive bu
24. next data received are stored in the MCU internal buffer 8 data of 2048 bytes can be received consecutively 3 Data is copied in the area specified using the operand when F161 MRCV instruction is executed and the reception done flag XO X2 turns off However note that the reception done flag XO X2 actually turns off at the beginning of the next scan or later when the I O is refreshed When multiplex reception is carried out the reception done status status which XO X1 is on remains after the received data are copied using MRC instruction therefore the received data cannot be copied by rising the reception done signal For repeated reception of data perform the following steps 1 to 3 1 Receive data 2 Reception done XO X2 on 3 Execute F161 MRCV instruction to read the received data from MCU Prepare for reception Any special preparation is not necessary to receive data however if you want to clear the receive buffer when the first data is received Y1E Y1F must be turned on and the communication channel must be reset After the completion of the resetting XE XF turns on Then turn off the request to reset Y1E Y1F In this case the area specified using F161 MRCV instruction is not cleared pa Key Point The contact numbers in parentheses refer to COM port 2 amp Reference lt 9 2 Appendix Time Chart gt ACS Note Followings can be set using F159 MTRN as well as the data re
25. on X Y Z axes Noise immunity 1000 Vp p with pulse widths 50 ns and 14us by noise simulator Operation condition Consumption current Approx 480 mA Weight main unit Approx 130 g Weight communication block Approx 35 g 9 2 9 1 2 Communication Specifications General purpose Lape Computer link Serial communication PC PLC link 1 1 communi 1 N communi 1 1 communi EG Note1 communi Note1 Note1 Note1 cation cation cation i cation AFP AFP AFP AFP AFP2803 2803 2804 Rees 2803 2804 AE REBO AFP2805 Two wire half Half dublex Two wire Token bus duplex p half duplex Floating soto transmission wae transmission transmission master Synchronous h Start stop synchronous system Transmission Multicore shield Twisted pair Multicore shield Twisted pair Twisted pair line wire shield cable wire shield cable shield cable 15m 15m 1200m 3 m for 3 m for Max 1200 m Max 1200m RS485 115200 Note2 Note3 115200 Note2 Note3 2 bps or bps or RS232C more more Communication Half duplex method transmission Transmission distance 300 to 300 to 230400 Note2 Note3 230400 bps bps Note2 Note3 Baud rate 19200 bps to be set by 300 to 230400 bps when C NET 300 to 230400 bps 19200 bps 115200 bps memory switch when C NET adapter is Adapter ie connected connected ASCII JIS7 JIS8 Binary ASCII JIS7 JIS8 a Character bit 7 bit 8 bit Communication Parity 0 None Even Odd forma
26. set to the memory K6 19200 bps switch setting K7 38400 bps 2 The setting for the COM port K8 57600 bps which was set to PC PLC link mode K9 115200 bps is not available K10 230400 bps 4 word Character KO 7 bit length e General purpose bit K1 8 bit length serial communication e Computer link 5 word Parity KO No parity e General purpose K1 Parity O serial communication K2 Parity odd e Computer link K3 Parity even 7 word RS CS KO Invalid e General purpose Valid Invalid K1 Valid serial communication e Computer link e PC PLC link 8 word Send KO to K10000 e General purpose Effective time knx0 01 ms 0 to 100 waiting time KO Immediate serial communication ms e Computer link 9 word Header KO STX invalid e General purpose STX K1 STX valid serial communication 10 word Terminator KO cR e General purpose For the time K2 refer to K1 CR LF serial communication terminator judgement time K2 Time K3 ETX th th 6 word Stop bit KO 1 bit e General purpose length K1 2 bits serial communication e Computer link h h h t t K2 12 word Initialize KO Initialize K1 e General purpose Timing for execution of modem modem Not initialize serial communication initialization e Computer link h 11 word Terminator KO to K10000 e General purpose Effective time knx0 01 ms judgement serial communication However it is effective only when time the terminator setting
27. setting Specify 1 for this flag when using the second half of link relay and register 1st unit 1st unit 5 3 Monitoring When using a PC PLC link the operation status of the links can be monitored using the following relays Transmission assurance relays For PC PLC link 0 R9060 to R906F correspond to unit no 1 to 16 For PC PLC link 1 R9080 to R908F correspond to unit no 1 to 16 If the transmission data from a different unit is being used with the various PLCs check to make sure the transmission assurance relay for the target unit is on before using the data ROIS ETES ES ETES CEE En Wto 1 2 3 4ls 6 7 8 9 10 12131415 16 Conditions ON When the PC PLC link is normal for on off OFF If transmission is stopped a problem has occurred or a PC PLC link is not being used Operation mode relays For PC PLC link 0 R9070 to R907F correspond to unit no 1 to 16 For PC PLC link 1 R9090 to R909F correspond to unit no 1 to 16 The operation modes RUN PROG can be checked for any given PLC Relay no ar EI EE EU ED ROT TROT RTS En Er Er RTE oT Wto 1 2 3 4ls 6e 7 8 9 ol 2 3 le Conditions ON When the unit is in the RUN mode for on off OFF When the unit is inthe PROG mode PLC link transmission error relay R9050 link 1 to R9054 link 5 This relay goes on if a problem is detected during transmission Unitno 1 21314 5 6 7 8 9 10 11 12 13 14 15 16 Conditions ON
28. switch is valid and the unit number setting of the MCU setting is ignored REF Note The unit number should be set to 1 in the 1 1 communication mode Reference For the details on the PC PLC link of FP refer to lt FP User s Manual ARCT1F333 gt 7 7 Setting unit numbers with the setting switch The unit number setting switch is located at the back of the unit The rotary switch can be used to set a unit number between 1 and 15 Table of switch settings and related unit numbers PP ES setting switch setting switch RSS RES Notei Ooo i S a 9 Note1 Sets by the MCU setting and F159 MTRN instruction and sets more than 15 unit numbers The default setting of the memory switch is 1 Note2 Only COM 1 port can be specified COM 2 port is specified using the memory switch Setting using F159 MTRN instruction Baud rate and communication format can be specified with this instruction Reference lt 8 2 Setting Communication Conditions and Monitoring gt Setting using MCU setting The detailed settings are specified on the exclusive screen for FP2 Multi Communication Unit using the programming tool A Reference lt 4 4 3 Memory Switch MCU Setting gt 7 8 7 3 Connection with Serial Devices Example of the connection with our operation display panel lt Using RS232C communication block FP2 CB232 AIGT0030 MCU side To power supply GTO1 side Product No AIGTO030 Pin No
29. the data for 8 buffer LSI can be received consecutively It is not necessary to execute F159 MTRN instruction again to start the reception The number of data which MCU can receive is 2048 bytes for 1 buffer including the terminator Data table for reception receive buffer The data table is specified using F161 MRCV instruction OR o The number of received data _ byte number is H42 B H41 A H46 F H45 E H48 H H47 G Receive buffer when reception is completed DT200 DT201 DT202 Received data is stored in order from the lower order DT203 byte DT204 Sample program for receiving data 10 byte data received in MCU through COM 1 port of the MCU in the slot 1 are copied to DT200 X10 Data is copied in DT200 to DT209 from the COM 1 port of MCU when the From the COM 1 port of MCU in slot 1 reception done signal X10 rises and i The program described above is executed in the following sequence 1 Data is received through COM 1 port and the completion of the data reception is detected 2 The reception done contact turns on The input of X10 turns on 3 The received data is sent from the receive buffer to the area starting with data register DT200 Explanation of data table Data sent from an external device connected to the COM port is received in MCU and the data reception is completed the reception done signal X0 X2 turns on When F161 MRCV ins
30. the transmission Read out and check the status possible when RD of MCU conditions correct using F161 MRCV instruction is flashing Is the setting for unit numbers correct Does the destination of MEWTOCOL COM match with the unit no of MCU setting Is the mode set to the computer link Check the setting reading the mode status using F161 MRCV instruction In case of header isn t the Check the programs of command length over 118 bytes connected devices command length over 2048 bytes Isn t FF specified for the unit No of the destination ALARM lights Please contact your dealer 7 13 7 14 Chapter 8 Applications 8 2 8 1 Changing Application of COM Port An F159 MTRN instruction can be executed to change between general purpose serial communication mode and computer link mode To do so specify H8000 for n the number of transmission bytes and execute the instruction Changing from general purpose to computer link RO Ho Ji 1 gt F159 MTRN DT100 H8000 HO3C2 Set to H8000 specify the port to be changed When specifying COM2 port of MCU in slot 3 Changing from computer link to general purpose RO HDF _ __ _ _ _ ___ i 1 gt F159 MTRN DT100 H8000 H03C2 Set to H8000 specify the port to be changed Whenever the above instruction is carried out the mode changes to the other Note Current mode can be confirmed by MCU status
31. the upper and the lower byte DT103 DT102 DT101 DT100 Beginning of Upper byte Lowerbyte Upperbyte Lowerbyte Upperbyte Lowerbyte Transmission buffer H32 H31 5 4 2 1 Nothing is set here Receiving data Data received using F161 MRCV instruction will be copied as it is and stored in specified data registers Example The data 12345 is transmitted from a device with RS232C port e If DT200 is being used as the beginning of the receive buffer received data will be stored in the registers starting from DT201 in sequential order of first the lower byte and then the upper byte DT203 DT202 DT201 DT200 Upper byte Lower byte Upperbyte Lowerbyte Upperbyte Lowerbyte Upperbyte Lower byte 4 3 31 HO H5 5 2 0 Number of received bytes 6 14 6 6 2 Flag Operation in Serial Communication Header No STX Terminator CR Receiving data The reception done flag the transmission done flag the MTRN instruction and MRCV instruction are related as follows Data received from external device MCU internal receive buffer E Data can be received until eight receive buffers are all filled up even es oe of ca lt 1 lt 1 gt zi gt lt 3 gt ecelve After MRCV instructionis ON executed reception done r flag tums off at the beginning Reception of next scan or later OFF done flag AO 42 ON MRCV OFF
32. transmission be shorted between the transmission line and the E terminal line and the E terminal Reference For the details on PC PLC link of FP refer to lt FP User s Manual ARCT1F333 gt 5 14 5 4 2 Sample program Control unit no 1 When X1 is input LO of the link relay goes on and when X2 is input L1 of the link relay goes on Pt Control unit no 2 begins operation hee ee ee yee ee J Control unit no 2 When LO of the link relay goes on YO is output LO Y f YO output J Control unit no 3 When L1 of the link relay goes on Y1 is output L1 WE f a mms pt vo output j 5 15 5 5 PC PLC Link Response Time The maximum value for the transmission time T of one cycle can be calculated using the following formula Tmax Ts1 Is2 sn Tlt Iso Tik L TIK link addition processing time Tso master station scan time TIt link table sending time D Ts transmission time per station The various items in the formula are calculated as described below Ts transmission time per station Ts scan time Tpc PLC link sending time Tpc Ttx Sending time per byte x Pem PC PLC link sending size Ttx 1 baud rate x 1000 x 11 ms Approx 0 096 ms at 115 2 kbps Pem 23 number of relay words number of register words x 4 Tit link table sending time Tit Ttx Sending time per byte x Lim link table
33. unit link the largest station number is 2 relays and registers have been evenly allocated and the scan time for each PLC is 5 ms Ttx 0 096 Each Pem 23 32 64 x 4 407 bytes Tpc Tix x Pem 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 Given the above conditions the maximum value for the transmission time T of one cycle will be T max 44 072 x 2 1 632 5 94 776 ms Calculation example 6 When all stations have been added to a 2 unit link the largest station number is 2 32 relays and 2 register words have been evenly allocated and the scan time for each PLC is 1 ms Ttx 0 096 Each Pem 23 1 1 x 4 31 bytes Tpc Tix 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 Given the above conditions the maximum value for the transmission time T of one cycle will be T max 3 976 x 2 1 632 1 10 584 ms Note e In the description stations that have been added refers to stations which are connected between station no 1 and the largest station number and for which the power supply has been turned on e Comparing examples 2 and 3 the transmission cycle time is longer if there is one station that has not been added to the link As a result the PC PLC link response time is longer 5 17 5 6 Troubleshooting PC PLC Link Status indicator LEDs ERR Red Communication error Light on when
34. using dedicated internal relays called link relays L and data registers called link registers LD 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 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 e The status of the link relays and link registers in any one PLC is fed back to all of the other PLCs connected to the network so control of data that needs to be consistent throughout the network such as target production values and type codes can easily be implemented to coordinate the data and the data of all units are updated at the same time Link Relay When link relay LO of the master unit No 1 turns on this signal is converted by the ladder programs of the other units and YO of the other units is activated No 2 Link register 7 RO Fo mv K100 Loo bof 100 No 1 Link register Link register If a constant of 100 is written to LDO of the master unit No 1 the contents of LDO in the other units are also changed to a constant of 100 Applicable communication block RS232C FP2 CB232 Product No AFP2803 RS485 FP2 CB485 Product No AFP2805 Note The number of units for the PC PLC link with RS232C is up to 2 units RE Note e Different hardwares are used for MEWNET W0 and MEWNET W MEWNET W2 Th
35. 2803 RS232C type General purpose serial communication Reception All operation modes General purpose serial communication Note1 This flag is effective after the execution of the F161 MRCV instruction until one of the following instructions is executed 1 END instruction Beginning of scan 2 F161 MRCV instruction 3 Partial input instruction F143 IORF Note2 When the transmission is completed within one scan it may not be 0 6 6 Output signal Name COM 1 COM 2 Y10 to Y10 to Undefined Y17 Y17 Y18 Y19 RTS signal output Y1A to Y1A to Undefined Y1D Y1D Y1E Y1F Request to reset CH 0 OFF 1 ON Description Effective i communication Do not turn on undefined Default setting is 0 the transmission from the devices Effective only communicating with can be controlled by when setting the turning this output on RS CS to be valid Permit the transmission from the devices and using the communicating 0 RS232C Prohibit the transmission from the devices communication communicating 1 cassette The CTS signal sent from the devices communicating can be monitored by X8 and Do not turn on undefined Default setting is 0 Communication channels can be reset by General purpose turning on Y1E or Y1F serial lt No request to reset 0 communication Request to reset 1 After 1 is output and the completion of the reset is confirmed by XE XF return to 0 The reset i
36. 3 po Name Set value O 3 COM port 1 unit no setting using the unit no setting switch COM port 1 communication mode PC PLC link using the mode speed setting switch 3 Key Point Make sure the same unit number is not used for more than one of the PLCs connected through the PC PLC link function The method of some settings for FP2 FP2SH is different from the method for FP sar A Reference For the details on PC PLC link of FP refer to lt FP User s Manual ARCT1F333 gt 5 13 Link area allocation Link relay allocation FP gt FP 2 FP2SH Unit no 1 Unit no 2 Unit no 3 WLoO wa Mi Receive area 0 x Receive area Send area Receive area i Range of link relays used Starting no of link relay send area Size of link relay send area Link register allocation FP FP2 FP2SH Unit no 1 Unit no 2 Unit no 3 Set value of various control units Range of link registers used Starting no of link register send area Size of link register send area Setting the largest unit number Largest unit number setting for PC PLC link Connection diagram MCU FP2SH NN T t 7 TT x UE L INi p lll Hl er LL poged eegee e TEN J I J l oa sd g Transmission line Transmission line sy A gt O gt The final unit terminal station should The final unit terminal station should be shorted between the
37. 8 7 Baud rate CUUQUUU 2 3 4 5 6 Computer Memory Computer Memory Ink switch ink switch Setting using F159 MTRN instruction Baud rate and communication format can be specified with this instruction Reference lt 8 2 Setting Communication Conditions and Monitoring gt Setting using MCU setting The detailed settings are specified on the exclusive screen for FP2 Multi Communication Unit using the programming tool aa Reference lt 4 3 Settings gt and lt 4 4 How to set gt 7 6 7 2 3 Setting of Unit Numbers C NET 1 N Communication In the C NET link that connects multiple PLCs on the same transmission line the unit number must be set in order to identify the different PLCs The unit number is specified either by using the unit number setting switch or the memory switch F159 MTRN MCU setting g Key Point The priority order for unit number settings is as follows 1 Unit number settings switch 2 F159 MTRN 3 MCU setting FP2SH J 5 a masr Maximum of 99 units f R5485 The maximum unit number is 32 when using our C NET adapter dst Unit numbers 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 If unit number setting switch is 0 the memory switch F159 MTRN MCU setting is valid Default setting 1 If unit number setting switch is a number other than 0 the unit number setting
38. ARCT1F396E 6 Panasonic PROGRAMMABLE CONTROLLER FP2 Multi Communication Unit Technical Manual 2013 7 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 the t
39. ARM lights Please contact your dealer 6 29 6 30 Chapter 7 Communication Function Computer link 7 1 Overview of Function 7 1 1 What is Computer Link The computer link mode is used as a communication interface that allows data to be read and written between an device such as a personal computer or display panel and a CPU unit Host computer Personal computer Operation display panel Can be connected to a display panel and computer Enables a 1 1 connection to a display panel and computer No software program is needed for communication Economic peer to peer communication with a personal computer is possible This unit can be directly connected with a personal computer through RS232C to collect and write data from it without building up a large scale network No communication program is needed on the PLC The PLC automatically returns responses using the FP series MEWTOCOL COM communication protocol so that there is no need to prepare a communication program at the side of the PLC Connection with Modem It is possible to receive data over telephone lines from another PLC by connection modem with your PLC Receiving only gy Key Point C NET link is a communication function with 1 N communication maximum of 99 units can be connected When setting to 230400 bps a USB port should be used at a computer side When connecting with a RS232C port the communication is not carried out du
40. Co Ltd Equivalent to JEZ 9P J S T Mfg Co Ltd Equivalent to J C9 2C Note1 When using any cover set other than the attached one the cover set should be the one of which width is 35 mm or less in order to avoid the interference with the connector cover of the COM 1 and COM 2 Note2 When using the attached cover set the cable diameter should be 7 mm or less Reference For the details of the connection examples with external devices lt Chapter 6 Chapter 7 Communication Functions gt For the details of the pin names of connectors lt 2 2 1 Type of Communication Blocks gt 3 3 3 2 2 FP2 CB485 AFP2805 Accessory communication connector Suitable wire The communication block AFP2805 has a screw type terminal block Use the following items for wiring Accessory communication connector If additional connectors are needed use the communication connector manufactured by Phoenix Contact Nero cine Phoenix Contact Co product ID p Model No Product No MC1 5 5 ST 3 5 1840395 Reference For the details of the connection examples with external devices lt Chapter 6 Chapter 7 Communication Functions gt For the details of the pin names of connectors lt 2 2 1 Type of Communication Blocks gt Suitable wire twisted wire _Numberofwires Size Cross sectional area AWG 28 to 16 0 08mm to 1 25 mm Use the above wires shielded It is recommended to ground the shielded part Pole terminals If you wish to
41. I l l l l l l I l l I I L L i l L i ee a a l L l L l l L l l l l l l l l l l l l l l l l l y MRCV instruction Reception error flag X7 X8 if PLC one scan D MCU completes to receive the data 1 and turns the reception done flag on 2 An error occurs while MCU is receiving the data 2 MCU detects the reception error and turns the reception error flag on 4 CPU loads the MCU reception done flag and MCU reception error flag which were turned on at D and by the I O refresh CPU turns XO X2 and XA XC o 6 MCU receives the data 3 An error occurs while MCU is receiving the data 4 8 MCU receives the data 5 2 An error occurs while MCU is receiving the data 6 D MCU receives the data 7 1 An error occurs while MCU is receiving the data 8 2 CPU receives the first buffer 13 As no error is detected during the reception of the first buffer the reception error flag remains OFF 4 CPU receives the second buffer 5 As an error was detected during the reception of the second buffer the reception error flag turns on On state is effective until the next scan 6 CPU receives the third buffer 7 As no error is detected during the reception of the third buffer the reception error flag remains OFF D CPU receives the forth buffer 19 As an error was detected during the reception of the forth buffer the reception error flag turns on
42. No 3 but cannot transmit it to other stations 5 7 For PC PLC link 1 Link relay allocation FP FP2 FP2SH FP Z Unit No 1 Unit No 2 Unit No 3 Unit No 4 No swe Ee Receive area No 2 a Receive area en Send area System registers Setting for various units No 1 No 2 No 3 No 4 Range of link relays used Starting No of word for link relay o 84 104 64 Link relay transmission size 20 l20 l2 lo Note No 50 range of link relays used must be set to the same range for all the units Link register allocation FPE FP2 FP2SH FPE Unit No 1 Unit No 2 Unit No 3 Unit No 4 Receive area No 1 No 2 No 3 Range of link registers used Starting No for link register transmission o 168 208 lo Link register transmission size 40 48 lo Note No 41 range of link registers used must be set to the same range for all the units System registers When link areas are allocated as shown above the No 1 send area can be sent to the No 2 No 3 and No 4 receive areas Also the No 1 receive area can receive data from the No 2 and No 3 send areas No 4 is allocated as a receive area only and can receive data from No 1 No 2 and No 3 but cannot transmit it to other stations Note There is no area for PC PLC link 1 with FPY Even when using the PC PLC link1 at MCU side the link relays and link registers No to be used at FP side are WLO to WL63 and LDO to LD127 F
43. No 3 which is overlapped and this will cause an error so that communication cannot be carried out Example of link relay allocations FP gt FP2 FP2SH Unit No 1 Unit No 2 Unit No 3 Receive area Receive area send area System registers No Name a Range of link relays used Starting word no of link relay send area 0 20 3 Size of link relay send area Invalid allocations The allocations shown below are not possible neither for link relays nor for link registers Send area is split Send area Receive area Send and receive areas are split into multiple segments Send area Receive area Recelve area Send area Send area Receive area Recelve area Send area 5 10 Setting the largest unit number for a PC PLC link The largest unit number can be set using system register no 47 using system register no 57 for PC PLC link 1 Sample setting No of units linked Setting contents 1st unit Unit no 1 is set 2nd unit Unit no 2 is set A largest unit no of 2 is set for each 1st unit Unit no 1 is set 2nd unit Unit no 2 is set 3rd unit Unit no 3 is set Ath unit Unit no 4 is set A largest unit no of 4 is set for each Nth unit Unit no n is set A largest unit no of n is set for each Note e Unit numbers should be set sequentially and consecutively starting from 1 with no breaks between them If there is a missing unit number the transmission time will be lon
44. ON ccceeeeeeeeceeeeenseeneeeeneeenseeeeeonseoeneseneeoees 4 1 41 COMMUNICATION Modes iiot ninaa te tentent etstienus 4 2 Ar Th PG PEG EIRE MOGO ES RSR DR AR NS nets etaient 4 2 4 1 2 General purpose Serial Communciation Mode 4 3 Adio COMPUTE MINK MO Mme rer noue 4 3 4 2 Remote Control using Modem NN ni 4 4 MOINS Ai anses a see nant te de nee n on item un 4 5 43 1 Operation Mode Sen temietete tions no eseetistete nine nes 4 5 4 3 2 Communication Condition Settings 4 5 4 So Unie NO SRI NRC ne te A dites 4 6 AA IOW 10 Sein rs N a dau ta ane hace ce 4 7 AA Witt NO Seting SMIC sn Res dire aride 4 7 4 4 2 Mode Speed Setting Switch ire 4 7 AS MEMON SWIC cca D a A S 4 8 AAA ROW OCHA erana a Ree ice ee ee Nue 4 9 4 5 Timing for Transmission of Communication Setting Data 4 10 5 Communication Function PC PLC Link ss 5 1 5 1 Overview OF FUNCANON Sen aaa eaaa aaaea Ea neste 5 2 Baal Whats G PLG EINK carena a etal teeta hes ee hat ees 5 2 Slee Operation ol FG PLG INR ER Re orne 5 3 5 2 Setting the Operation Mode and Baud Rate nn nnnnnrrrrrrsseeeemmmnnnnnnnnnnnns 5 4 5 2 1 Setting using Mode Speed Setting Switch ss 5 4 9 22 eN OU WIT NUMPES erosa detente hearts tienne ent te 5 4 5 2 3 Link Relay and Link Register Allocations 5 6 5 3 NONRODINO saariin nn daca cise sire naesenee diese ati etes en en 5 12 5 4 Connection Example of PLC Link 0 ccceceeesessseeseesseseeeeseeeeeeeseeseeeeeeeeeeesses
45. P2 WL65 lt WL1 FP2 LD200 lt LD136 5 8 Partial use of link areas In the link areas available for PC PLC link link relays with a total of 1024 points 64 words and link registers with a total of 128 words can be used This does not mean however that it is necessary to reserve the entire area Parts of the area which have not been reserved can be used as internal relays and internal registers Link relay allocation Range of link relays used for PLC link Start address of link relay send area Size of link relay send area Used With the above settings the 14 words 224 points consisting of WL50 to WL63 can be used as internal relays Not y used Range of link registers used for PLC link Start address of link register send area Size of link register send area Used With the above settings the 28 words consisting of LD100 to LD127 can be used as internal registers IEF er Note The above example shows the case for PC PLC link O 5 9 O C2 Note Precautions When Allocating Link Areas If a mistake is made when allocating a link area be aware that an error will result and communication will be disabled Avoid overlapping send areas When sending data from a send area to the receive area of another FP2 FP2SH FPS there must be a link relay and link register with the same number in the receive area on the receiving side In the example shown below there is an area between No 2 and
46. PC PLC link error occurs Off when PC PLC link is established Light on when setting error occurs S ERR Red Setting error Bit Nowa Note When the ERR LED lights out and the SD RD LED is flashing the PC link is operating properly Troubleshooting Trouble Transmission error Link stops ERR LED lights Unit no overlaps ERR LED lights PC link area overlaps ERR LED lights PC link error ERR LED lights Disagreement of max unit no ERR LED lights S ERR LED is on ls acommunication block installed Is the wiring correct Isn t there any problem in environments such as noise Check unit Nos for each unit Is the unit no setting correct Are the unit Nos set sequentially and consecutively from 1 Isn t there any overlapping unit no Isn t any number over 16 used for unit no Check if there are overlapping send areas of each unit Is the setting of the send receive areas of PC link correct Isn t it set to send redundantly ls acommunication block installed Is the wiring correct Isn t there any problem in environments such as noise Check if the same value is set for system register no 47 or no 57 for each unit Is the maximum unit no correct Is the same unit no specified for all connected MCUs Isn t any no over the maximum unit no used Is the operation mode setting correct Isn t it used excessively ignoring the usage restrictions
47. Setting nit 0 to 15 can be set for COM 1 port only ee Peng 1 to 99 Memory switch 9600 19200 115200 bps meds Spee setting switch Baud rate 300 to 230400 bps 9600 Only available when selecting memory Memory switch switch Character bit 7 bits 8 bits 8 Memory switch Odd Even ParityO None Parity Odd Memory switch Stop bit length 1 bit 2 bits Memory switch Send Waiting time 0 to 100 ms 0 01 ms unit pra Pope Memory switch pl tet Not exist Exist Memory switch switch general aae i cR cR Lf ETX l Timeout 0 01 to 100 ms Memory switch communi i In 0 01 unit cation Initialize modem No Yes No Memory switch Note3 Note1 When setting the RS CS to be invalid the RS signals from MCU can be always received and the CS signals are always ignored Note2 If the terminator is set to Timeout 0 the data reception will complete when the time for more than approx 3 characters has passed from the time that last data was received 4 5 Note3 The setting for modem initialization becomes effective whenever the power supply turns on after it was specified by the MCU setting and ATcr and ATSO 1cr is transmitted If it failed it is retried for 5 times The communication format and baud rate is set to the allowable values for modem communication Once the modem initialization succeed or failed it is executed using the Timing for modem initialization command issue Note4 Use a USB port at computer side wh
48. amp ey Terminal station setting E 54321 4 Transmission line Note1 The mounting screws are connected to the ground terminals of the power supply unit Note2 As for the setting of the terminal unit short circuit the terminals E and The terminating resistor 120 Q is built in 2 5 2 2 2 Names and Major Applications of Port Two communication ports are equipped with FP2 Multi Communication Unit MCU By mounting either communication blocks RS232C RS422 or RS485 the communication becomes available with external devices MCU The upper communication port is called COM 1 port and the SD RADERA SOD ERR ALARM lower port is called COM 2 port WOGPMG GPNCI 2 Select suitable communication block after determine the LOOM1I LCOM24IS5 ERR c i following applications COM 1 7 COM 1 port COM 2 port COM 2 Port Communication blocks Computer link 1 N Computer link 1 1 Computer link 1 1 General purpose serial COM 1 General purpose serial General purpose serial communication 1 N communication 1 1 N 2 communication 1 1 N 2 PC PLC link MEWNET WO Computer link 1 1 Computer link 1 1 Computer link 1 N General purpose serial General purpose serial General purpose serial communication 1 1 communication 1 1 communication 1 N Note1 MEWTOCOL COM can be used on all ports which support computer link With MEWTOCOL COM the sa
49. ansmission Duplex transmission is disabled for the same COM port while MCU is sending data The transmission done flag X4 X5 must be observed 3 Key Point e The contact numbers in parentheses refer to COM port 2 6 7 Connection with 1 1 Communication General purpose Serial Communication Usable communication blocks It is used with all the communication blocks below e FP2 CB232 AFP2803 RS232C e FP2 CB422 AFP2804 RS422 e FP2 CB485 AFP2805 RS485 Setting communication format Settings for COM port tem Allowable setting value Communication mode General purpose serial communication 300 to 230400 bps Character bit 7 bits 8 bits Send waiting time 0 to 100 ms 0 01 ms unit Only for Header STX STX not exist STX exist general purpose cR cR Lf ETX serial communi Terminator Timeout 0 01 to 100 ms cation In 0 01 ms unit Ini omes modem NONE modem Note The setting must be done according to the devices connected Fr i Reference For the details on the method to set lt 4 4 How to Set gt 6 18 6 7 1 Connection Example with External Device lt 1 1 Communication with Micro Imagechecker Overview The MCU and Micro Image checker A200 A100 are connected using an RS232C cable The results of the scan are stored in the registers of the FP2 FP2SH2 FP2SH Communication mode General purpose serial communication Communication mode Micro Imagechecker j A200 A100
50. at computers If connecting to RS232C ports a device open error occurs and communication is not available 9 1 3 Setting Communication Conditions and Monitoring Setting communication conditions and motoring using instructions The communication conditions for Multi Communication Unit MCU can be changed in ladder programs using F159 MTRN instruction The current communication conditions specified with F159 MTRN instruction or the MCU Setting using the programming tool can be monitored using F161 MRCV instruction Settable items contents and values monitoring values are as below Communi l Address pation Setting content Settable operation and value mode condition Received No of Byte no 24 is stored when bytes monitoring receiving It has no meaning when setting 3 4 byte Unit No K1 to K99 e PC PLC link COM 1 Unit no setting switch 2 word mel e General purpose should be set to 0 serial communication COM 2 Can be always set using e Computer link F159 MTRN instruction 5 6 byte Baud rate KO 300 bps e General purpose There are following conditions to 3 word K1 600 bps serial communication specify using F15 MTRN K2 1200 bps e Computer link instruction K3 2400 bps 1 The speed setting of the mode K4 4800 bps speed setting switch at the back of K5 9600 bps the unit must be set to the memory K6 19200 bps switch setting K7 38400 bps 2 The setting for the COM port K8 57600 bp
51. ation block is necessary for FP2 Multi Communication Unit FP2 Multi Communication Unit cannot be used alone FP2 communication block must be installed for using FP2 Multi Communication Unit Difference from the conventional models e FP2 SDU FP2 SDU and FP2 Multi Communication Unit is not interchangeable as all uses such as settings or commands are different e FP2 CCU FP2 CCU and FP2 Multi Communication Unit is interchangeable however there are following differences Unit number is available There is no unit number on CCU but the unit number is available in the computer link mode of MCU The default setting for the unit number is 1 Command relay function hierarchy function for the network unit such as MEWNET W It is not available for MCU Data transmission by SEND F145 RECV F146 commands It is not available for MCU yi Chapter 1 Functions and Restrictions of the Unit 1 1 Features and Functions of the Unit 1 1 1 Functions Features and functions of Multi Communication Unit Multi Communication Unit is a communication interface to be used with the programmable controller FP2 FP2SH to connect with serial communication devices Multi Communication Unit corresponds to multiple communication modes and standards and has features as below Adopted the removable serial communication block Three kinds of communication standard RS232C RS422 and RS485 are selectable due to the removable serial communication block
52. ception 1 Monitoring of communication conditions 2 Monitoring of MCU status Reference lt Chapter 8 Applications gt lt 9 6 F159 MTRN F161 MRCV instructions gt 6 13 6 6 1 Data to be Sent Received with MCU Remember the followings when accessing data in the MCU send and receive buffers e If a header has been chosen in the communication format settings the code STX H02 will automatically be added at the beginning of the data begin sent e The data without the Code STX at the reception is stored in the receive buffer and the reception done flag turns on when the terminator is received However if the code STX is added in the middle of the data the data is stored from the beginning of the receive buffer e A terminator is automatically added to the end of the data being sent e There is no terminator on the data stored in the receive buffer Sending data Data written to the send buffer will be sent just as it is Example The data 12345 is transmitted as an ASCII code to a device with RS232C port 1 Data sent using the F95 ASC instruction should be converted to ASCII code data Conversion to ASCII code 12345 Data to be transmitted JL Conversion to ASCII code H 31 32 33 34 35 Coded data 1 2 3 4 5 2 If DT100 is being used as the send buffer data will be stored in sequential order in the data registers starting from the next register DT101 in two byte units consisting of
53. e A proprietary MEWNET protocol called MEWTOCOL COM is used to exchange data between the computer and the PLC There are two different communication methods 1 1 and 1 N communication A 1 N network is called a C NET e The PLC answers automatically to the commands received from the computer so no program is necessary on the PLC side in order to carry out communication Computer Command message zm _ S _ ENN reeset E at Response message FP2 MCU Applicable communication block For 1 1 communication RS232C FP2 CB232 Product No AFP2803 RS422 FP2 CB422 Product No AFP2804 For 1 N communication RS485 FP2 CB485 Product No AFP2805 C NET 4 2 Remote Control using Modem Modem initialization When the operation mode is set to the general purpose serial communication computer link mode the modem can be initialized by specifying able for the modem initialization setting in the communication condition settings There are 2 methods to set communication conditions as below Timing for modem initialization command issue Method by MCU setting When the power turns on When the mode is changed from PROG to RUN Method by F159 MTRN instruction When F159 MTRN instruction is executed There are 2 commands for modem initialization as below Firstly command 1 is sent to the modem and then command 2 __ Command Description Status of modem initialization 1 ATcR Initializatio
54. e After the scan start code S has been sent from the FP2 side the scan result is returned from the Micro Imagechecker as the response Communication format settings for Micro Image checker To set the communication mode and communication format settings for the Micro Image checker select 5 communication under 5 ENVIRONMENT on the main menu and the set the following items No Name Set Value Serial settings Baud rate 9600 bps Bit length 8 bits SOD DIU esse 1 bit PAPE ees Odd Flow control None Serial output settings Output digit 5 column Invalid Digit Repl 0 Read End None Process End None Numerical calculation Output Judgment Output be Key Point e f Del is specified for the invalid processing parameter zero suppression processing will be carried out on the output data and the output format will be changed Always make sure Repl 0 is specified e When outputting data to an external device numerical calculation is required so Out should be specified for the Numerical calculation parameter e With the above settings the following data will be output from the Micro Image checker 1012345 r LL Terminator end code Results of numerical calculation No 1 Judgment output No 2 O NG Judgment output No 1 1 OK 6 19 Connection example with Micro Image checker
55. e If normal 01 RD6400C8006FCR 4 MCU Reception done flag X0 ON ferror occurs 40110 000 k Data reception using F161 data reception instruction BES Error code O After transmitting from MCU to buffers in registers XO turns off PLC Reception done flag X1 ON 6 21 Sample program In the following example the Micro Image checker is connected to COM port 1 R10 HH Le gi A a R11 _ Reception Buffer statuses With DT100 as the send buffer Data are received from COM 1 port of MCU in slot O RO X4 R1 RE kL DT101 ai F95 ASC M S an Ten speces inserted F159 MTRN DT100 K2 HC1 the contents consisting of two bytes of it F161 MRCV HC1 DT200 Starting from DT200 as the receive buffer 0 The last address of the receive buffer a s Data transmission command i The intemal relay R10 turns on when re j Data conversion The start command S character is con 1 verted to ASCII code and written to DT101 Data transmission i The data in the send buffer is sent from J Reception done detection i The internal relay R11 tums on when the 1 reception done contact XO turns on J i LE The following shows the statuses of the send and receive buffers when the sample program is run send buffer DT100 DT101 H53 S Unused area H25 Statuses before transmi
56. e the occurrence of a device open error 7 2 7 1 2 Unit Operation Operation overview of computer link mode 1 1 communication The computer link mode is a function to read and write data and contact of the CPU unit by the host computer When an command is sent from a host side a response is returned from the PLC side The formats of commands and responses are determined by the MEWTOCOL COM which is the communication protocol for the FP series of PLCs Programs for host side devices such as computers and display panels are created in accordance with the protocol MEW TOCOL COM More than 20 types of commands are available including commands for reading and writing the data area and contacts etc No program is necessary on the PLC side in order to carry out communication Example When the contents of the data registers are read to a host computer Se ee HR HR HB HB eH HB ee me Be Se eS Ee ee ee ee EK Host computer Personal computer 01 RDD0000000001 5R O1SRDOSOO0A0062CR gt Response Operation Overview of computer link mode C NET 1 N communication For a 1 N computer link the computer is connected through a commercially available RS232C RS485 conversion adapter and the respective PLCs are wired using an RS485 cable The computer and the PLC communicate via commands and responses The computer sends a command specifying the unit number and the PLC with that unit number sends a response back
57. en it is set to 230400 bps If a RS232C port is used communication is not possible due to a device open error Note5 The default setting of the memory switch is 0 in the PC PLC link mode 4 3 3 Unit No Setting Specify unit No Unit No setting Memory switch sete pat MCU setting F159 MTRN PC PLC link General purpose serial communication o need to specify o need to specify Computer link oe 1 to 15 1 to 99 COM 2 Not available 1 to 99 Note COM 2 port cannot be used in PC PLC link mode 4 6 4 4 How to Set How to set is as follows Unit No setting switch Rotary switch at the back of the unit Mode speed setting switch Dip switch at the back of the unit Memory switch Setting by the internal memory MCU setting F159 MTRN instruction 4 4 1 Unit No Setting Switch No of Unit No No of Unit No switch setting switch RL Memory switch Rotary SW at the back of the unit Note1 Sets by the MCU setting and F159 MTRN instruction and sets more than 15 unit numbers The initial value of the memory switch is 1 For PC PLC link it is 0 Note2 Only COM 1 port can be set COM 2 port is set by the memory switch 4 4 2 Mode Speed Setting Switch 7 Spare OFF OFF LOF LOF PC PLC link ON OFF ON OFF moar Semcon forf on foel ox mode OFF ON OFF ON communication Computerlink ON oN ON ON 115200 bps OFF
58. end code is included in the stored data e The maximum volume of data that can be received in MCU is 2048 bytes 6 3 6 2 Setting the Operation Mode and Baud Rate 6 2 1 Setting using Mode Speed Setting Switch The operation mode is set using the mode speed setting switch Setting general purpose serial communication mode When COM 1 and COM 2 are both set to the general purpose serial communication mode fGOUONNG ONT 2 3 4 e The general purpose serial communication mode can be changed to the computer communication mode using the F159 MTRN instruction a Reference lt 8 2 Setting Communication Conditions and Monitoring gt Setting baud rate Baud rates for COM 1 and COM 2 ports are specified using the mode speed setting switch The allowable baud rates specified with the switch are 9600 bps 19200 bps and 115200 bps The settings for each baud rate are as below Se Ss Se Note The values specified with this switch will be effective when the power turns on Setting communication format The other formats are as below Default settings Setting Setting value Unit No 9600 bps Character bit 8 bits Parity Odd SSS Stop bit 0 00 ms Note The above setting values can be changed using the memory switch ACS Note The mode speed setting switch is at the back of Multi Communication Unit 6 4 6 2 2 Setting using Memory Switch There are 2 kinds of settings available for the memor
59. erminal 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 Table of Contents Before You Start 1 Functions and Restrictions of the Unit rssssrsrsrnsenns 1 1 1 1 Features and Functions of the VAIT en denis sense 1 2 Weal ai DA 6 110 Ne 1 2 M2 AIL VOCS PER eee eee 1 4 12 MULT GOMIMUICATOR CANE 3 SRE RS N tes 1 4 t22 Communicanon BIOCKS ss Rd A eeri 1 4 1 3 Restrictions on Units Combination cccccesssesseeeeseeeensseeeeeseeeeeesneeeeeeeeeeenneeeeeeeseoes 1 5 1 3 1 Restrictions on Installatio
60. erminator RO HDF j il 4 gt F159 MTRN DT100 K 8 H2C1 ER L Specify K 8 6 10 3 Key Point e Do not include the terminator in the transmission data The terminator is added automatically e When STX exist is specified for the header do not add the header to the transmission data The header is added automatically e When using the communication block AFP2803 RS232C type and setting the RS CS to be valid transmission does not take place until CS Clear to Send turns on If you are not going to connect to the other device set the RS CS to be invalid e The maximum number of transmission bytes n is 2048 However the header and terminator are included When using the header and terminator subtract the byte numbers for them e The contact numbers in parentheses refer to COM port 2 Reference lt 9 2 Appendix Time Chart gt ACS Note Followings can be set using F159 MTRN as well as the data transmission 1 Switching the applications of COM port 2 Communication conditions Reference lt Chapter 8 Applications gt lt 9 6 F159 MTRN F161 MRCV instructions gt 6 6 Data Reception F161 MRCV Instruction The reception done flag XO X2 turns on when MCU receives data The received data is read from MCU to the PLC XO reception done Using F161 MRCV instruction MCU supports full duplex es ll communication a et Datareception Even if the data reception is completed
61. ers have been evenly allocated and the scan time for each PLC is 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 82ms_ Tit 0 096 x 13 2 x 16 4 32 ms Given the above conditions the maximum value for the transmission time T of one cycle will be T max 11 82 x 16 4 32 5 198 44 ms 5 16 Calculation example 3 When all but one station have been added to a 16 unit link the largest station number is 16 relays and registers have been allocated evenly and the scan time for each PLC is 5 ms Ttx 0 096 Each Ts 5 6 82 11 82 ms Tit 0 096 x 13 2 x 15 4 13 ms TIK 0 96 400 0 67 5 407 ms Note The default value for the addition waiting time is 400 ms Given the above conditions the maximum value for the transmission time T of one cycle will be T max 11 82 x 15 4 13 5 407 593 43 ms Calculation example 4 When all stations have been added to an 8 unit link the largest station number is 8 relays and register have been evenly allocated and the scan time for each PLC is 5 ms Ttx 0 096 Each Pem 23 8 16 x 4 119 bytes Tpc Tix x Pem 0 096 x 119 11 43 ms Each Ts 5 11 48 16 43ms_ Tit 0 096 x 13 2 x 8 2 79 ms Given the above conditions the maximum value for the transmission time T of one cycle will be T max 16 43 x 8 2 79 5 139 23 ms Calculation example 5 When all stations have been added to a 2
62. ey cannot be mixed in the same network e Used link relays L and link registers LD are shared areas with MEWNET W Therefore up to 2 units of MEWNET WO and MEWNET W specified in the PLC link mode can be used for one CPU system 4 1 2 General purpose Serial Communciation Mode e In general purpose serial communication data is sent and received over the COM ports to and from an external device such as an image processing device or a bar code reader e Data is read from and written to an external device connected to the COM port by means of an FP2 FP2SH ladder program Register Sending data using F159 MTRN Image processing device Data is sent by transferring the data to a register and then transmitting it using the F159 MTRN instruction Receiving data using F161 MRCV The data received in the COM port is copied ina specified register using the instruction sending and receiving data with the external devices is carried out via the register in the CPU unit Applicable communication block For 1 1 communication RS232C FP2 CB232 Product No AFP2803 RS422 FP2 CB422 Product No AFP2804 For 1 N communication RS485 FP2 CB485 Product No AFP2805 C NET 4 1 3 Computer Link Mode e Computer link is used for communication with a computer connected to the PLC Instructions command messages are transmitted to the PLC and the PLC responds sends response messages based on the instructions received
63. ffer 6 8 6 5 Data Transmission F159 MTRN Instruction Communication with external devices is handled through the data registers located in the CPU unit CPU MCU Data to be output is stored in the register used as the send buffer DT and when the F159 MTRN instruction is executed the data is output from the COM port specified by the MCU installed in the specified slot The MCU starts the data transmission within 10 us right after the F159 MTRN instruction is executed when PC PLC link is performed within approx 500 us at maximum FiSo MTRN Request to send Data transmission Sample program for sending data The following program transmits the characters ABCDEFGH Hex to an external device using COM port 1 in the slot 2 RO R10 eh ee DF Data transmission command The internal relay R10 is tumed on when the transmission condition RO tums on R10 E a RE ne F95 ASC M ABCDEFGH uuuu DTI01 Data conversion The characters ABCDEFGH are converted to 1 i an ASCII code and written to DT101 to DT104 HA F159 MTRN DT100 K8 Kit Datatransmission The data in the send buffer is sent from 1 Starting from DT100 _the COM 1 port intheslot2 the contents of 8 bytes are sent from COM 1 port in slot 2 Data table for transmission send buffer The data table is specified using F159 MTRN instruction Setting is not necessary DT100 No
64. frame or as the command during processing is busy Specified parameter does not exist or cannot be used Data error There is an error in the contact data area data number size range or format specification Registration over error Number of registration exceeded the restriction or operation is performed without registration Invalid command was executed in RUN mode Protect error Write operation was performed to the program area or system register in the protect such as password setting or dip SW mode or ROM operation mode There is an error in the specified address data 67 Missing program Program cannot be read as there is no program in program area error Missing data error or an error in memory contents Or unregistered program was read 7 12 7 5 Troubleshooting Computer Link Status indicator LEDs ee Light on when reception error occurs Communication error Off when received data was retrieved Light on when setting error occurs S ERR Red Setting error Off Normal Note The details can be checked by monitoring the MCU status using F161 MRCV instruction Troubleshooting Contents to check possible block is installed firmly ERR LED lights environments such as noise S ERR lights Is the operation mode setting Read out and check the status correct using F161 MRCV instruction Isn t it used excessively ignoring the usage restrictions Transmission is not Is the setting for
65. ger e f fewer than 16 units are linked the transmission time can be shortened by setting the largest unit number in system register no 47 in system register no 57 for PC PLC link 1 e For all PLCs which are linked the same value should be set for the largest unit number e f there are fewer than 16 units linked and the largest unit number has not been set default 16 or the largest unit number has been set but the unit number settings are not consecutive or the unit number settings are consecutive but there is a unit for which the power supply has not been turned on the response time for the PLC link the link transmission cycle will be long es Reference lt 5 5 PC PLC Link Response Time gt Setting PC PLC link switching flag PC PLC link switching flag can be set using system register no 46 If it is set to O default value the first half of the link relay WLO to WL63 and register LDO to LD127 is used for the first PC PLC link unit PC link WO or PC link W and the second half of the link relay WL64 to WL127 and register LD128 to LD255 is used for the second PC PLC link unit However if it is set to 1 the second half of the link relay and register is used for the first PC PLC link unit PC link WO or PC link W First half VVLO to WL63 LDO to LD127 is used Second half WL64 to WL127 LD128 to LD255 is used The first half of link relay and register is used for the first unit in the default
66. he other end as the response when the program is executed The received data is stored in the data registers as shown below DT5 DT4 DT3 DT2 DT1 Upper byte Lower byte Upperbyte Lowerbyte Upperbyte Lower byte Upper byte Lowerbyte Upper byte Lower byte H30 H30 H34 H36 H44 H52 H24 H31 H30 H25 0 0 4 6 D R 1 0 Se Value of DTO in the PLC on the other end DT8 DT7 DT6 Upper byte Lowerbyte Upper byte Lower byte Upper byte Lower byte H 0 0O aa BCC Value of DT1 in the PLC on the other end Extracting the data register values from the PLC on the other end In the program the data segment of the response from the PLC on the other end is converted to hexadecimal data using the F72 AHEX hexadecimal ASCII hexadecimal data conversion instruction and stored in DT50 and DT51 only if the character string 1 stored in DT1 is detected as a comparison instruction Dir DT6 DTS DT4 Upper byte Lower byte Upper byte Lower byte Upper byte Lowerbyte Upperbyte Lower byte H30 H30 H38 H43 H30 H30 H34 H36 8 0 0 C 0 0 4 6 Value of DT1 in the PLC on the other end Value of DTO in the PLC on the other end JL Hexadecimal ASCII HEX conversion instruction F72 DT51 DT50 Upper byte Lower byte Upper byte Lower byte K200 K100 Value of DT1 in the Value of DTO in the PLC on the other end PLC on the other end If an error occurs 01 OOLILIS is re
67. hows an example that the transmission a and b clash In this case it is necessary to adjust the time until starting sending at MCU side to enable the normal transmission The time taken until starting the transmission is called send waiting time and specified with the memory switch 1 MCU setting 2 F159 MTRN instruction Specify the necessary waiting time for the send waiting time area Example With the RS232C RS485 converter S135 manufactured by Lineeye Co Ltd adjust the response time by this instruction if necessary oa Reference lt 9 2 Communication Condition settings and Monitors gt lt 4 4 3 Memory Switch MCU settings gt 2 10 2 4 Confirming the I O Contacts and Slot Number 2 4 1 The Role of Input Output Contacts Multi Communication Unit MCU has input output contacts which enable communication with the CPU unit They are mainly used in the general purpose serial communication These contacts play various roles such as alerting the CPU unit when sending and reception have been completed alerting when an error has occurred or resetting the port of MCU The contacts are turned on and off from the CPU unit which also controls the timing of serial communication being carried out by the MCU CPU unit Multi Communication Unit Tu contact Informs the status of Multi Communication Unit to CPU unit Transmission done flag reception done flag reception error settign erro
68. ice lt 1 1 Communication with FP Series PLC gt An a vse ad A te easement da stags noel aan naa CR en ce A Ou 6 23 6 8 1 N Communication General purpose Serial Communication 6 28 6 9 Troubleshooting General purpose Serial Communication 6 29 7 Communication Function Computer link ns 7 1 TW OVERVIEW OF PUACTHIOMN ste eaa araea noue tenus cie 7 2 AA WW NaS COMPLET ELINK cci in sen teste element 7 2 F2 Unit OB rATONS RS Rite ennemi etes eine des amine 7 3 7 2 Setting the Operation Mode and Baud Rate sis 7 5 7 2 1 Setting using Mode Speed Setting Switch 7 5 1 2 2 Seting USING M MOr SWING sac tess ae dd 2e dettes 7 6 7 2 3 Setting of Unit Numbers C NET 1 N Communication 7 7 7 3 Connection with Serial Devices ccccssessssseeeeeeeeeeeeneeeeeeeeeeeessnseeeeeeeeessseeeeeesseooenens 7 9 7 3 1 Communication Conditions and Restrictions Relating to Functions 0000000000 7 10 7 4 Table of MEWTOCOL Command esceeeececessnnsseeeeeeeeeccnnnsseeeeeeecoonsseseeeeeeeoaness 7 12 TAT MEWTOCOL COM COMMANAS sites SR Re Re a nr 7 12 7 4 2 Table of MEWTOCOL COM Error code esse 7 12 7 5 Troubleshooting Computer Link cceeeeeeesecsssneeeeeeeeceeeseeeeeseeeeeensseeeeeseoeanees 7 13 8 Applications seems annee esse users cases es ci sur us 8 1 8 1 Changing Application of COM Port ccccccccesscsssssneeeeeeeeeceesseeeeeeeeeeesnseeeeessseoeennnes 8 3 8 2 Setting Communication Condit
69. ing Switch The operation mode is set using the mode speed setting switch Setting general purpose serial communication mode When COM 1 and COM 2 are both set to the general purpose serial communication mode COMI coma eeeeeiae ON1 2 ON e The computer link mode can be changed to the general purpose serial communication mode using the F159 MTRN instruction Reference lt 8 2 Setting Communication Conditions and Monitoring gt Setting baud rate Baud rates for COM 1 and COM 2 ports are specified using the mode speed setting switch The allowable baud rates specified with the switch are 9600 bps 19200 bps and 115200 bps The settings for each baud rate are as below cow cou mae ne E Note The values specified with this switch will be effective when the power turns on QDUUQNE Setting communication format The other formats are as below Default settings Setting Setting value Unit No Party Odd Stop bit bit Note The above setting values can be changed using the memory switch LCR Note The mode speed setting switch is at the back of Multi Communication Unit 7 5 7 2 2 Setting using Memory Switch There are 2 kinds of settings available for the memory switch which are the MCU setting using the programming tool and the setting using the F159 MTRN instruction The mode speed setting switch should be set as below to enable the memory switch setting COM COM2 3 4 7
70. ing number for link relay transmission No of first word 64 to 127 Link relay transmission size 0 0to 64 words 54 Starting number for link register transmission 128 to 255 first number 55 Link register transmission size Ot 127 words 57 Setting of max unit No for MEWNET WO PC PLC link 0 Oto16 Note The same number must be specified as the maximum unit No for all the PLCs with PC PLC link The maximum link register transmission size is 127 words It is not possible to set all the 128 words Link area configuration word word For PC link 0 L for 1024 points For PC link 0 LD for 128 words For PC link 1 L for 1024 points For PC link 1 LD for 128 words For link relay For link register e Link areas consist of link relays and link registers and are divided into areas for PC PLC link 0 and PC PLC link 1 and used with those units e The link relay which can be used in an area for either PC PLC link 0 or PC PLC link 1 is maximum 1024 points 64 words and the link register is maximum 128 words Note Link areas are the shared areas for MEWNET WO supported by MCU and MEWNET W supported by Multi wire Link Unit Therefore the PC PLC link modes with MEWNET W0O and MEWNET W are limited up to 2 systems in the combination of PC PLC link 0 and 1 Fr Reference For the details on MEWNET W refer to lt FP2 Multi wire Link Unit Manual ARCT1F284 gt 5 6 Example of all
71. ing this output on RS CS to be valid Permit the transmission from the devices and using the communicating 0 RS232C Prohibit the transmission from the devices communication communicating 1 cassette The CTS signal sent from the devices communicating can be monitored by X8 and X9 Do not turn on undefined Y1D Y1D Default setting is 0 VIE Y1F Request to Communication channels can be reset by General purpose reset CH turning on Y1E or Y1F serial lt No request to reset 0 CORNANIESHON Request to reset 1 After 1 is output and the completion of the reset is confirmed by XE XF return to O The reset is performed only once when this signal rises Details on the channel reset operation The following operations are performed 1 Discontinues transmission 2 Discontinues reception 3 Clears receive buffer 4 Resets communication parameters 5 Clears error information However only errors which can be cleared This function can be used to delete unnecessary received data or to clear errors before starting normal reception Note The operation to reset channels can be automatically performed by executing the following processes as well as Y1E Y1F 1 When setting changing communication parameters using MTRN instruction 2 When changing operation modes switching between the general purpose communication and the computer link using MTRN instruction 3 When turning the PLC power supply on or when changing the mode from
72. instruction a Du zE plex transmission execution disalbed for the same COM port ON while MCU is sending data instruction or execution After MTRN instruction is sid Transmission done flag AA A5 clear to send flag executed transmission done 5 off at the beginning nor later flagt of he Transmitted data Receive buffer specified using MRCY instruction e For general purpose serial communication full duplex transmission must be used e Receiving data still continues after the reception done flag turned on There are 8 receive buffers of 2048 bytes each internally therefore data for the amount of these 8 sets can be received e Data for the specified byte numbers is transmitted to MCU and the request to send is given when executing F159 MTRN instruction Transmission starts right after the execution of MTRN instruction within 10 us normally within 500 us when using PC PLC link e Duplex transmission is disabled for the same COM port after F159 MTRN is being executed until transmission is completed The transmission done flag X4 X5 must be observed The transmission done flag does not turn off right after the execution of MTRN instruction It will be turned off at the beginning of the next scan or later e When an error is detected in the received data the error flag XA XC turns on Note Be aware that although the reception done flag XO X2 n
73. ions and Monitoring seeeeesesssssseeeeeeeeeeeeees 8 4 8 2 1 Example of Communication Condition Setting using F159 MTRN Instruction 8 6 8 2 2 Example of Monitoring Communication Condition using F161 MRCV Instruction 8 7 8 3 MCU Status MONOT efecto tes Toia aaeain ennemi ee 8 8 DST 0 121 0 105 LIT 0j LR 9 1 9 1 Table OF SPDECITICAUNONS urieni kiea eaaa i aaea i aa aai aa ENE 9 2 JAAGeN rTALSD CIIGALIONS EE Le see orne a eer enr et 9 2 912 COMMUNICATION SpHeCIICAIONS anni E Mne 9 3 9 1 3 Setting Communication Conditions and Monitoring 9 5 9 1 4 I O Allocation General purpose Serial Communication 9 7 9 2 APPENGIK aisia a a eee A E E 9 9 9 2 1 Detailed Time Chart of Data Transmission and Reception 9 9 9 2 2 Time Chart of Multiplex Reception 9 10 10 Dimensions and Sample Programs ccsscccseeseeeseneeeeeneeeeeneeeenneeees 10 1 10 1 DIMENSIONS sssi aaa aa aeaa Aa ESONI 10 2 tO Tt FP Multi Communication Unt osere N 10 2 1012 GOMMUNICATION BlOCKS aina E N 10 3 102 ASCUU COGS ni a a R R nine 10 4 Before You Start CPU units The CPUs as below are necessary to use this unit FP2 Ver 1 50 or later FP2SH Ver 1 50 or later Note The unit does not work due to the CPU error when using the older version than Ver 1 40 Programming tools The programming tools as below are necessary to use this unit FPWIN GR Ver 2 40 or later FPWIN Pro Ver 5 02 or later FP2 communic
74. is Time h 8 4 Note1 The underlined values are default settings Note2 When the unit No setting switch was set to 0 the default setting of the memory switch is 1 for the computer link mode and 0 for the PC PLC link mode Note3 Supplementary explanation of terminator judgement time 1 When 0 is set the time taken from the reception of one byte until the reception of the next one byte is the time for 32 bits of the specified baud rate Received data 1 byte Received data If next data is not received within the time for 32 bits the reception will be deemed to have been completed lt Example gt In case of 9600 bps 1 9600x32 3 33 ms 2 When n nz0 is set Received data Received data 1 byte 1 byte If next data is not received within the time for nx10 us the reception will be deemed to have been completed Note4 The timing for executing modem initialization is 1 In case of MCU setting 1 when the power turns on 2 when switching the mode from PROG to RUN 2 When executing F159 MTRN instruction D Reference For the details on the modem initialization refer to lt 4 2 Remote Control using Modem gt Regarding address There is a memory space for the communication condition setting and monitoring within Multi Communication Unit MCU n th byte n th word of the address term indicates the setting read and written using F159 MTRN or F161 MRCV instruction or the stored address of the regi
75. itten to LDO of the master unit No 1 the contents of LDO in the other units are also changed to a constant of 100 5 3 5 2 Setting the Operation Mode and Baud Rate 5 2 1 Setting using Mode Speed Setting Switch PC PLC link MEWNET WO are set using the mode speed setting switch Setting PC PLC link mode OFF ONOHO ONT 2 3 45 6 7 B Setting communication format The setting for PC PLC link is fixed as below The setting made using the memory switch is ignored Setting Setting value Party Odd O Stopbit bt IEF 1 2 Note COM 2 port cannot be used for PC PLC link mode ON Note The mode speed setting switch is at the back of Multi Communication Unit 5 2 2 Setting of Unti Numbers For the PC PLC link which connects multiple PLCs to the transmission line the unit number must be specified so that each PLC can be identified The unit number is specified either by using the unit number setting switch or the memory switch F159 MTRN MCU setting Note1 Unit numbers should be set sequentially and consecutively starting from 1 with no breaks between them If there is a missing unit number in the link system the transmission time will be longer Note2 If fewer than 16 units are linked the transmission time can be shortened by setting the largest unit number in system register no 47 LCR Note In case of PC PLC link the default setting for the memory switch is 0 Change
76. ld Twisted pair Twisted pair line wire shield cable wire shield cable shield cable 15m 15m 1200m PA 3 m for 3 m for Transmission 115200 Max Max 1200 m 115200 Max Max 1200m RS485 distance i eee 400 m Note2 Note3 ae 400 m Note2 Note3 3m P P RS232C more more 300 to 230400 bps Note2 Note3 19200 bps 115200 bps when C NET adapter is connected ASCII JIS7 JIS8 Binary ASCII JIS7 JIS8 Data length 7 bit 8 bit Communication Parity 0 None Even Odd format Stop bit 1 bit 2 bit to be set by Start code STX No STX memory switch End code CR CR LF Time setting ETX Max 99 units 32 units max when 300 to 230400 bps Note2 Notez 19200 bps when C NET adapter is connected Baud rate to be set by 300 to 230400 bps memory switch 300 to 230400 bps Max 99 units 32 units max when C NET Max 16 units Note4 Number of units C NET adapter is connected Note2 adapter is connected Note2 Link relay 1024 points PLC link capacity Link register 128 words Note1 Although it has adequate noise resistance lt is recommendable to make the user program to execute re transmission in order to improve reliability of the communication in case of communication errors occurred by excessive noises or when a receiver equipment cannot receive temporarily Nore2 When connecting a commercially available device that has an RS485 interface please confirm
77. ll communication conditions for registers should be specified all at once in advance in order to set the communication conditions e The head of register DT10 in the example specified using F159 MTRN instruction is used by the system Valid data should be specified from the next address DT11 in the example e Use the default settings for the conditions which is not needed to be set e Specify the settings for COM 1 port and COM 2 port separately e Some conditions cannot be changed depending on operating modes A xa Reference lt Column of Settable operation mode in 8 2 Setting Communication Conditions and Monitoring gt 8 6 8 2 2 Example of Monitoring Communication Condition using F161 MRCV Instruction RO K F161 MRCV H 4D2 DT100 DT111 ATI Reception start are Reception end area When RO turns on the communication condition of COM 2 port will be stored in the next address DT101 of the receive buffer starting with DT100 to DT111 An example of data read after the above program was executed is shown below Number of bytes K22 11 words of the received communication condition data is SON stored DT101 lt Unit No 3 DT102 Baud rate 38400 bps DT103 Character bit 8 bits DT104 Parity Odd DT105 lt Stop bit length 1 bit DT106 lt RS CS control Valid DT107 Send waiting time Immediate DT108 Header STX STX not exist DT109 lt Terminator cR DT110 lt Termina
78. me commands are supported on both two channels and frames of up to 2048 bytes header lt are supported Note2 The PC PLC link with two units is available 2 6 2 3 Table of Specifications 2 3 1 General Specifications po tem Description O Ambient temperature 0 to 55 C Storage temperature 20 to 70 C Ambient humidity 30 to 85 RH at 25 C non condensing Storage temperature 30 to 85 RH at 25 C non condensing Vibration resistance 10 to 55 Hz 1 cycle min double amplitude of 0 75 mm 10 min on X Y Z axes Shock resistance Shock of 98 m s 4 times on X Y Z axes Noise immunity 1000 Vp p with pulse widths 50 ns and 1us by noise simulator Operation condition Consumption current Approx 480 mA Weight main unit Approx 130 g Weight communication block Approx 35 g 2 2 3 2 Communication Specifications General purpose roa Computer link Serial communication PC PLC link 1 1 communi 1 N communi 1 1 communi E cation cation cation ane cation AFP AFP AFP AFP AFP2803 2803 2804 te 2803 2804 nn AFP2805 Interface RS232C RS422 RS485 RS232C RS422 RS485 soe a tee Two wire half Two wire Token bus Communication Full duplex Half duplex l o duplex ee half duplex Floating method transmission Rea transmission ue transmission transmission master Synchronous thod Start stop synchronous system Transmission Multicore shield Twisted pair Multicore shie
79. monitor fy Reference lt 8 3 MCU Status Monitor gt ner note e When the power is turned on the operating mode specified using the mode speed setting switch takes effect This is not available for the COM port set to PC PLC link mode 8 2 Setting Communication Conditions and Monitoring Setting communication conditions and motoring using instructions The communication conditions for Multi Communication Unit MCU can be changed in ladder programs using F159 MTRN instruction The current communication conditions specified with F159 MTRN instruction or the MCU Setting using the programming tool can be monitored using F161 MRCV instruction Settable items contents and values monitoring values are as below Addr Communi Setting content Settable operation caz ganon and value mode condition Er Received No of Byte no 24 is stored when bytes monitoring receiving It has no meaning when setting 2 word Unit No K1 to K99 e PC PLC link COM 1 Unit no setting switch nee e General purpose should be set to 0 serial communication COM 2 Can be always set using e Computer link F159 MTRN instruction 3 word Baud rate KO 300 bps e General purpose There are following conditions to K1 600 bps serial communication specify using F15 MTRN K2 1200 bps e Computer link instruction K3 2400 bps 1 The speed setting of the mode K4 4800 bps speed setting switch at the back of K5 9600 bps the unit must be
80. n command HO Not processed H0100 Initializing now H0200 Initialization completed ATSO 1cR_ Respond at the sound of a beep H20FF Initialization failed a Reference The status can be confirmed by using F161 MRCV instruction lt 8 3 MCU Status Monitor gt Operation flow of modem initialization Mode initialization starts Sends ATcR No No of retry No of retry 1 No No or retry gt 6 Yes Sends ATSO 1cR Yes Modem initialization failed Modem initialization succeeded Note The initialization can be executed again if the above modem initialization command is issued even if the initialization has been completed once In case any commands other than the above 2 commands are issued any AT command can be issued in the general purpose serial communication mode 4 4 4 3 Settings Specify modes communication conditions and unit numbers 4 3 1 Operation Mode Setting Specify the mode for each COM port Mode speed Memory switch M ecelsetting setting switch MCU setting F159 MTRN PC PLC link N A N A General purpose serial communication N A Computer link N A A Available N A Not available gt ia Reference lt 4 4 3 Memory Switch gt 4 3 2 Communication Condition Setting Specify the communication condition for each COM port The memory switch setting is made by the MCU setting or F159 MTRN instruction tem O Allowable setting value Initial value
81. n position and Number of Units 1 5 2 Specifications and FUNCTIONS cccsceeeseceeseeeneeeeseeeeeeeeeneeeeseeeeneeeenees 2 1 2 1 FP2 Multi Communication UNIT sissien aaaea aiaa aiaa 2 2 2 Alto and FUNCIONS serana e E a Tent eae Olav seb 2 2 2 2 FP2 COMMUNICATION BIOCKS 2 ne ne Aiea eee leads aie 2 4 2 2 1 Types of Communication Blocks Re 2 4 2 2 2 Names and Major Applications Of Port 2 6 2 3 Table Of SpecHICaUONS rion a a a aaa a aA 2 7 29 MGCL lo DECIICATIONS Sarre ed VE L au 2 7 2 3 2 GOMMUNICATION SPeECIICATOMNS ir E E 2 8 2 4 Confirming the I O Contacts and Slot Number 2 11 2 4 1 The Role of Input Output Contacts 2 11 2 4 2 Confirming the I O Number Allocation 2 12 2 4 9 GOMMINMING SIOLNUMOEE tea soostes saci sanded ere stusarcosidadeh aauaaaroeees 2 13 2 4 AS GONIN ROON O esien ned a E toned netuaeainay tes 2 14 3 Installation and Wiring of Communication BIOCKS csseeeeeees 3 1 3 1 Installation of Communication BIOCKS ccccssessssseeeeeeeeeeceneneeeeeeeeeeeesneseeeseeeeennes 3 2 3 2 Wiring of Communication BIOCKS cssscceeeeeeeeeeeenseeeeeeeeeeeesneeeeeeeeeoeessseeeeeseoeensnes 3 3 3 2 1 FP2 CB232 AFP2803 FP2 CB422 AFP2804 c csssssssseeeeeeeeeeeeeeeesseeeeaassseees 3 3 32 2 PP 2 CB48d APP 200 5 nn agian ue Nan 3 4 352 09 OCIECIION OF GaBe S ss sn te ee ne eedtaeean 3 6 4 Communication FUNCTI
82. ned to other ports if communication is currently being carried out on one port and communication will be inhibited on those other ports Combinations to which this restriction applies are shown in the diagram below For Example during the time that a program is being read at the tool port of the CPU unit a communication error will occur at the display panel connected to the COM 1 port of the Mult Group Group comprising the tool port of the CPU unit and the COM 1 port of Multi Communication Unit MCU Group B Group comprising the COM port of the CPU unit and the COM 2 port of Multi Communication Unit MCU similar restriction also applies if access is being made from another station connected with the link unit Unit No 1 Local station Unit No 2 Other station Power supply Power supply When remote programming is being carried out from another station connected with a Multi wire Link Unit MW a communication error will occur at the Group A ports on the local station side yg Key Point Multiple frames means that if a command or response exceeds 118 bytes the command or response is divided into multiple segments and transmitted or received For example this applies in cases such as when a program is read from a tool port when command s which continuously read multiple data are transmitted from a host side If using the FP2SH CPU unit the above restriction does not apply
83. nload 2 The MCU communication setting data which is stored in the CPU unit is automatically set in the MCU 2 when the power turns on or 2 when changing the mode PROG gt RUN 3 4 When a communication parameter is specified during the execution of F159 MTRN instruction it is set in the MCU gy Key Point When setting the communication parameter in the MCU the communication channel will be reset It takes about 1 second to complete the COM port setting However this operation is not applied in case of the PC PLC link mode In the PC PLC link communication only unit No can be changed and if the parameter is changed by F159 MTRN instruction the communication will not be reset Reset means Abort sending and Clear receiving and error However some errors cannot be cleared Therefore when the MCU setting is carried out by the tool the data which is received in the PROG mode will be all cleared when the mode is switched to the RUN mode 4 10 Chapter 5 Communication Function PC PLC Link 5 1 Overview of Funcation 5 1 1 What is PC PLC Link e The PLC link is an economic way of linking the maximum of 16 PLCs which are corresponding to MEW NET WO using a twisted pair cable e Data is shared between FP2 FP2SH and FP using link relays L and link registers LD e The statuses of the link relays and link registers of one PLC are automatically fed back to the other PLCs on the same network
84. nneeeeeeeees 5 13 5 4 1 When using three PLCS 2 0 cceeccccceccceeeesseeeeeeeseaeesseeeeeeeeseeeaseeeeeesessaaaseeeeeeeesseaeees 5 13 542 SAMPIS Dogra ene a Duos a e e a a incite leo 5 15 5 5 PC PEC Link RESPONSE TIME 288 5885 nets rite in 5 16 5 6 Troubleshooting PC PLC LINK enchant aie ede 5 18 6 Communication Function General purpose Serial communication 6 1 6 1 Overview OF FURCATION SAME A ES ne ne RS eee tioned 6 2 6 1 1 What is General purpose Serial Communication 6 2 6 2 Setting the Operation Mode and Baud Rate ner 6 4 6 2 1 Setting using Mode Speed Setting Switch 6 4 6 2 2 Setting using Memory Switch iii 6 5 6 3 lOAIOCATION asri aa aa a aani aaa a a 6 6 6 4 Communication with External Devices ssccseeeeesseceeeenseeeeeeeeeeennnseeeeeeeeeenneeeeees 6 8 6 4 1 Programming Example of General purpose Serial Communication 6 8 6 5 Data Transmission F159 MTRN Instruction sssssnennreennnnne 6 9 6 6 Data Reception F161 MRCV Instruction us nnnssrrenserrrernnsnrrennnnne 6 12 6 6 1 Data to be Sent Received with MCU 1 0 cccecccccccsceseeesseeeeeeeeeseeeeseeeeeesssseaeeeeeeess 6 14 6 6 2 Flag Operation in Serial Communication 6 15 6 7 Connection with 1 1 Communication General purpose Serial Communication 6 18 6 7 1 Connection Example with External Device lt 1 1 Communication with Micro Mage CIN GY Cac aici cc name da dante ete ne a is tu 6 19 6 7 2 Connection Example with External Dev
85. nnel to clear the error Note2 No of counts is a ring counter without code Note3 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 Normal O Normal 1 Transmitted data length error 1 Setting error of mode speed setting switch 0 Normal Normal 1 Communication condition setting error 1 Qccurrence of restrictions on installation Fixed with 0O Note4 It is KO when no parameter error occurs A Note5 Reference lt 1 3 Restriction on Units Combination gt A Note6 Reference lt 8 2 Setting Communication Conditions and Monitoring gt Example of monitor program When monitoring the status of the COM 2 port in the slot 3 RO c F161 MRCV H SEZ DTO DT slot 3 COM 2 port When RO turns on the status of the COM 2 port in the slot 3 is stored in DT1 to DT7 of the receive buffer starting from DTO IEF Note e The No of bytes K14 for valid received data is stored in the first address of receive buffer e Receive buffer should be assured for 8 words Chapter 9 Specifications 9 1 Table of Specifications 9 1 1 General Specifications tem Description y O Ambient temperature 0 to 55 C Storage temperature 20 to 70 C Ambient humidity 30 to 85 RH at 25 C non condensing Storage temperature 30 to 85 RH at 25 C non condensing Vibration resistance 10 Hz to 55 Hz 1 cycle min double amplitude of 0 75 mm 10 min on X Y Z axes Shock resistance Shock of 98 m s 4 times
86. ocation The areas for PC PLC link are divided into send areas and receive areas The link relays and link registers are sent from the send area to the receive area of a different FP2 FP2SH FP Link relays and link registers with the same numbers as those on the transmission side must exist in the receive area on the receiving side For PC PLC link 0 Link it he allocation FP2 FP2SH FPE m Ya 1 Unit No 2 Unit No 3 Unit No 4 Receive area System registers Setting for various units No 1 No 2 No 3 No 4 Range of link relays used Starting No of word for link relay transmission o l2 l4 lo Link relay transmission size 20 20 24 lo Note No 40 range of link relays used must be set to the same range for all the units Link register allocation FP ee FP2 FP2SH FP Unit No 1 Unit No 2 Unit No 3 Unit No 4 Receive ar a System registers No 1 No 2 No 3 No 4 Range of link registers used o 40 80 jo Starting No for link register transmission 40 Link register transmission size 40o 40 J48 Jlo Note No 41 range of link registers used must be set to the same range for all the units When link areas are allocated as shown above the No 1 send area can be sent to the No 2 No 3 and No 4 receive areas Also the No 1 receive area can receive data from the No 2 and No 3 send areas No 4 is allocated as a receive area only and can receive data from No 1 No 2 and
87. on are being carried out 16 points for each type of allocation will automatically be assigned to empty slots e If the CPU unit being used is a 2 module type also check any I O areas occupying the units incorporated in the CPU unit Me Reference For information on how I O allocations are made refer to lt FP2 FP2SH Hardware Manual gt 2 12 2 4 3 Confirming Slot Number When mounted on the CPU backplane Slots are numbered in sequential order with the slot to the right of the CPU unit being No 0 Slot No sp T 1 2 3 i Multi Communication Unit Note If the CPU unit being used is a 2 module type the slot number of the units incorporated in the CPU unit should be counted as 0 Slot No sg 0 2 3 4 2 module type CPU unit Multi Communication Unit If the CPU unit being used is a CPU unit with S LINK the slot number of the unit incorporated in the CPU unit should be counted as 0 and 1 Slot No 0 1 1 2 3 4 CPU unit with S LINK Multi Communication Unit When mounted on an expansion backplane The slot number of the slot to the right of the power supply unit on the expansion backplane should be counted as 16 Backplane at CPU _Backplane at expansion side Slot No fe 16 1f 18 19 20 21 l l EE es LOL DER a Pome Se Multi Communication Unit 2 13 2 4 4 Confirming Root No If multiple
88. onitored has been registered on the PLC side The above restriction does not apply if the FP2SH CPU unit is being used 7 4 Table of MEWTOCOL Command The following is a table of MEWTOCOL commands that can be used with the FP2 Multi Communication Unit MCU 7 4 1 MEWTOCOL COM Commands Read single point of contact information WCS Write single point of contact information RCP Read plural points of contact information WCP Write plural points of contact information RCC Read word unit of contact information WCC Write word unit of contact information SC Preset word unit in contact area Read data area WD Write data area Preset of data area Read timer and counter set value area Write timer and counter set value area Read timer and counter elapsed value area Write timer and counter elapsed value area Registration and reset of monitor contact Registration and rest of monitor data Monitor execution Read system register WR Write system register Read PLC status Remote control RUN PROGRAM mode switching AB Transmission abort command __ o o 7 4 2 Table of MEWTOCOL COM Error code 40 BCCerror Transmission error occurred in received data Command that does not match the format was received NOT support error An unsupported command was received Multi frame process error Another command was received during the processing of multi frame Busy error Command process cannot be received due to the processing of multi
89. ormally changes at the beginning of a scan it changes even while a scan is in progress if an instruction to refresh partially for MCU is executed Key Point The contact numbers in parentheses refer to COM port 2 The input contact numbers of MCU such as the transmission done flag X4 X5 or the transmission done flag XO X2 indicate 0 when the MCU is installed in the slot 0 If the MCU is installed any other slots specify the slot number where it is installed 6 15 Header STX Terminator ETX Receiving data The reception done flag the transmission done flag and the MTRN instruction are related as follows Data received from external device MCU internal receive buffer No of bytes even in lt 1 gt lt 0 gt received f 2 done TR Receive pointer Receive pointer initialized by initialized by receiving start code receiving start code ON Reception OFF done flag 4 XO X2 J ON MRCV instruction OFF execution Receive buffer No of bytes received specified using MRCV instruction e The data is stored in the receive buffer within MCU in sequential order When the header is received the receive pointer is initialized e Receiving data still continues after the reception done flag turned on There are 8 receive buffers of 2048 bytes each internally therefore data for the amount of these 8 sets can be received e f there are two headers data following the
90. p bit length setting is abnormal error K6 RS CS valid invalid setting error K7 Send waiting time setting error K8 Header STX setting error K9 Terminator setting error K10 Terminator judgement time setting error K11 Initialize modem setting error Modem Shows the status of the initialization modem initialization process status HO Not processed_ mode automatically returns to the previous mode H2FF Initialization failed Modem initialization failed The operation mode automatically returns to the previous mode Each action of each operation mode when detecting reception Errorcode ER LED XA C X6 7 Computer link Setting Lights Invalid General purpose Setting Lights Valid Off to On Valid takes serial affect right after communication execution of mter MRCV PC PLC link _ Setting Note The error LED in the PC PLC link ae goes off when 7 link was AE and lights when an error occurs in the PC PLC link Operation when detecting setting error Sets the setting error code XB D turns on 8 9 Note1 1514131211109 87 6543 210 i Et Ge a et es Et es 1 Receive buffer full error 1 Buffer overrun 1 Receive buffer overflow 1 Framing error Fixed with O Note1 1 Errors may not be detected depending on received data organization Example only when stop bit differs Note1 2 When a buffer error occurs MCU stops receiving data Turn on YE F and reset the cha
91. ps ON OFF ON 0 9600 bps S OFF ON OFF ON ____ Memory switch ON ON Note If selecting the setting marked with diagonal lines the setting error occurs e Factory default setting Operation mode Computer link Communication unit No 1 Memory switch and computer link are selected Baud rate 9600 Memory switch selection Character bit 8 Parity Odd Stop bit length 1 RS CS Disable Note The factory default settings for the mode speed setting switch dip SW are all ON La Reference For the detail on the communication settings unit No memory switch setting etc refer to lt 4 3 3 Unit No Settings gt and lt 4 4 3 Memory Switch gt 2 3 2 2 FP2 Communication Blocks 2 2 1 Types of Communication Blocks There are three types of communication cassettes each having a particular field of application FP2 communication block RS232C FP2 CB232 AFP2803 This communication block is a 1 channel unit with a five wire RS232C port It supports 1 1 computer links general purpose serial communication and PC PLC link between two units RS CS control is possible in general purpose serial communication mode Pin No Name Abbr _ Signal direction 1 Notconnected NC HE 7 Hs unavailable Signal Ground SG ce lees unavailable Note1 RS Request to Send is nu at Y contact Note2 When setting the RS CS control to Able da
92. puter link 9 5 Note1 The underlined values are default settings Note2 When the unit No setting switch was set to 0 the default setting of the memory switch is 1 for the computer link mode and 0 for the PC PLC link mode Note3 Supplementary explanation of terminator judgement time 1 When 0 is set the time taken from the reception of one byte until the reception of the next one byte is the time for 32 bits of the specified baud rate Received data 1 byte Received data If next data is not received within the time for 32 bits the reception will be deemed to have been completed lt Example gt In case of 9600 bps 1 9600x32 3 33 ms 2 When n nz0 is set Received data Received data 1 byte 1 byte If next data is not received within the time for nx10 us the reception will be deemed to have been completed Note4 The timing for executing modem initialization is 1 In case of MCU setting 1 when the power turns on 2 when switching the mode from PROG to RUN 2 When executing F159 MTRN instruction la Reference For the details on the modem initialization refer to lt 4 2 Remote Control using Modem gt Regarding address There is a memory space for the communication condition setting and monitoring within Multi Communication Unit MCU n th byte n th word of the address term indicates the setting read and written using F159 MTRN or F161 MRCV instruction or the stored addres
93. r CTS monitor CH reset done Y contact Instructs Multi Communication Unit for the operation from CPU unit Request for soft reset RTS output 2 4 2 Confirming the I O Number Allocation Like other units the Multi Communication Unit MCU also allocates inputs X and outputs Y Each MCU has 16 inputs and 16 outputs for a total of 32 contacts The I O numbers and slot numbers are always necessary when creating a program These vary depending on the position at which the unit is installed in the backplane Always check to see if the numbers match the design Confirming the 1 0 Number Allocations The occupied I O areas for all of the units mounted between the CPU unit and the MCU should be confirmed The next number is allocated as I O areas for the MCU Example The following is an example of MCU being mounted in succession following three 16 point I O units Multi Communication Unit X50 X5F WX5 CPU unit X30 X3F WX3 Y40 Y4F WY4 XF Y1F Y2F WXO WY1 WY2 IEF per vo e Regardless of the mode settings for the COM ports the allocations of 16SX 16SY are necessary however when using the PC link computer link only it can be changed to 0 point OSE using the tool software e f there are any empty slots between the CPU and the Multi Communication Unit MCU check to see whether an I O area has been allocated to the empty slot e f 1 0 mount allocation and automatic allocati
94. ransmission with F159 S pe Transmission done flag X4 OFF E lees SL Data area read command 401 RDD00000 00001 CR transmission c Transmission done flag X4 ON O ot 0 Data register value of PLC on O other end is received If normal 01 RD6400C8006FCR T MCU Reception done flag X0 ON If error occurs 0110000 R o lt TL Data reception using F161 data reception instruction on O Error code D 6 24 Sample program In the following example the FP series PLC is connected to COM port 1 in the slot 3 The contact of MCU is WX3 XY4 RO R10 Hi DF R10 c un At E T 2 Five speces inserted F159 MTRN DT 100 K19 With DT100 as the send buffer the contents consisting of 19 bytes of it R11 F161 MRCV H3 Ci MCU in slot 3 Reception K8 Buffer statuses _F95 asc M 01 RDD00000 DT101 F95 ASC M 00001 ___ DT107 H3c1 Sz are sent from COM 1 port K1 of MCU in slot 3 Data transmission command l The internal relay R10 turns on when the transmission condition RO turns on YO1 RDDO00000 is converted to ASCII code and written to DT101 to DT106 l 00001 is converted to ASCII code The data in the send buffer is sent from a COM 1 port of the MCU in the slot 3 J The intemal relay R11 turns on when the reception done contact R9038 tu
95. re initia Set each conditions by the memory values switch MCU setting or F1S9 MTRN instruction specify the baud rate by the mode speed setting switch Complete la Reference For the details on initial Values refer to lt 4 3 2 Communication Condition Settings gt E Unit No setting COM 1 Starts setting S General purpose senal Which ts the communication mode mode conputer link or neral purpose seral commu nication mode Yes Computer link mode Set the unit No setting switch to 1 Specify the unit No by the unit No setting switch Note Note2 A number in a range of 1 to 15 can be set by the unit No setting switch The unit No can be set by the memory switch When using the memory switch set the unit No setting switch to 0 The unit No in a range of 1 to 99 can be specified by the memory switch PC PLC link mode is 1 to 16 4 5 Timing for Transmission of Communication Setting Data MCU setting Jo When a program was downloaded 2 MCU communication setting data is automatically set when the power turned on MCU communication setting data is automatically set when the mode was switched from PROG to RUN mode 4 Communication parameter is set when F159 MTRN instruction was executed CPU unit Multi Communication Unit MCU 1 The MCU communication setting data by the tool is stored in the CPU Q during the program dow
96. rence lt 8 2 Communication Conditions Settings and Monitor gt Setting using MCU setting Setting the unit number setting switch to 0 makes the MCU setting in the programming tool valid a neon w4 Reference lt 4 4 3 Memory Switch MCU Settings gt fy Reference For the details on the PC PLC link of FP refer to lt FPX User s Manual ARCT1F333 gt 9 5 5 2 3 Link Relay and Link Register Allocations Link relays and link registers used with the PC PLC link function are allocated to the link area of CPU The link area is allocated by specifying the system register for the CPU System registers Default Specification of range of link relays used for 0 Oto 64words 0 t0 64 words Specification of range of link registers used for o Oto 128 words Starting number for link relay transmission owes oo For PC No of first word EA OS Link relay transmission size 0 0 to 64 words Starting number for link register transmission frst number 0 oto 127 Link register transmission size 0 Oto 127 words gt Stan Standard 1 unit 6 PC PLC link switching flag Reverse 2 unit Setting of max unit No for MEWNET WO PC PLC link 0 0to16 Stan Standard 2 unit 46 PC PLC link switching flag Povere d uni 50 Specification of range of link relays used for o D GA words communication Specification of range of link registers used for 0 0t0 128 words ror Pc 51 communication o 0t0 128 words Start
97. rns pn em i The received data is stored in DT1 to DT8 To determine whether the received data is a normal response the comparison in j struction is used to check whether the y__ character string 13 is stored in DT2 The eight character ASCII code beginning l with DT4 is converted to a hexadecimal Value and stored in DTS0 and DT451 CS OS OS OS i OS OS The tables below show the statuses of the send and receive buffers when the sample program is run Send buffer Receive buffer Number of T0 CO TEE DT101 H30 0 H25 x transmitted DTI H30 0 H25 DT102 H23 H31 1 Set Re DT2 H24 H31 1 o7103 H44 D H52 R when theinstu ora Haso H52 R ction is executed DT104 H30 0 H44 D DT4 H34 4 H36 6 DT105 H30 0 H30 0 DTS H30 0 H30 0 DT106 H30 0 H30 0 DT6 H38 8 H43 C oTio7 H30 0 H30 oT DT108 H30 0 H30 0 DTS H46 F H36 6 DT 108 H2A H31 1 H2A Statuses before transmission DT110 Number of bytes received Received data is stored in order from the lower order byte Statuses when reception is completed 6 25 g Key Point Contents of the response If K100 is stored in DTO and K200 is stored in DT1 of the FP series PLC on the other end 01 RD6400C8006F C is returned from the FP series PLC on t
98. rom the MCU to the CPU however note that the reception done flag X0 X2 has been left to be on even in the next scan For only one received data it is recommended to execute the MRCV instruction as soon as the reception done flag X0 X2 turned on However for multiplex reception as the rise of the reception done flag cannot be detected use F type instruction to execute the MRCV instruction for every scan In that case the PLC data reception done flag X1 X3 after the execution of the MRCV instruction can be used to tell if there are any received data The following is the time chart if the F161 MRCV instruction is executed twice in one scan Data Data reception 2 MCU reception 1 5 T meme eC i N 2 Reception done flag XO X2 i MRCV mM m i instruction PLC data 4 E reception done flag X1 X3 PLC one scan Error occurs Error occurs Error occurs Error occurs t oe to lo 0 z D Data 1 Data Data Data Data Data Data Data ur reception reception dau iii ai recep ier reception 1 3 La reception D RE ae MCU reception done flag ee ee me nee de ce me ce dou on cu CLLLILILTL CELL LS Reception done flag XO X2 MCU reception erro flag PLC reception error XA AC De ee ee ee TTT MCU reception done flag Reception done flag XO X2 MCU reception erro flag PLC reception error XA XC l l l l l l l l I l l
99. s of the register for monitor data 9 1 4 I O Allocation General purpose Serial Communication The flag information between MCU and the CPU unit is transmitted using X and Y For this unit 16 I O each for X and Y totally 32 I O are allocated I O numbers are determined depending on the installation location and the I O allocations of the other units I O numbers when the unit is installed in the slot 0 recom comz Neme COM 1 COM 2 _ X1 X3 done flag PLC data reception done flag Transmission done flag pct X6 X7 Reception error CTS signal monitor Latest reception error k CH reset done Description When MCU completes the data reception it turns on When waiting for data reception 0 When completing data reception 1 When MRCV is completed it is set reset Reading completes 1 No reading data 0 When transmission is available 1 During transmission 0 When transmission is completed 1 When MRCV is completed it is set reset Errors exist in the data read 1 No error exists in the data read 0 Status of the CTS signal sent from the device communicating with Transmission is possible from MCU 0 Transmission is not possible from MCU 1 Note1 Note The RTS signal from MCU is controllable by Y18 and Y19 Set when an error occurs during the reception of data by MCU No reception error 0 Reception error 1 The details of the reception error can be confirmed by reading out them
100. s performed only once when this signal rises Details on the channel reset operation The following operations are performed 1 Discontinues transmission 2 Discontinues reception 3 Clears receive buffer 4 Resets communication parameters 5 Clears error information However only errors which can be cleared This function can be used to delete unnecessary received data or to clear errors before starting normal reception Note The operation to reset channels can be automatically performed by executing the following processes as well as Y1E Y1F 1 When setting changing communication parameters using MTRN instruction 2 When changing operation modes switching between the general purpose communication and the computer link using MTRN instruction 3 When turning the PLC power supply on or when changing the mode from PROG to RUN in case that the MCU setting has been done using the tool However the reset done signal of XE YF does not turn on in the above case 6 6 4 Communication with External Devices 6 4 1 Programming Example of General purpose Serial Communication The F159 MTRN and F161 MRCV instructions are used to send and receive data via the specified COM port F150 READ nor F151 WRT instruction which is effective with the serial data unit AFP2460 is not available with MCU Transmission of data The amount of data specified by n is sent to the external device from among the data stored
101. s which was set to PC PLC link K9 115200 bps mode is not available K10 230400 bps 7 8 byte Character KO 7 bit length e General purpose 4 word bit K1 8 bit length serial communication e Computer link 9 10 byte Parity KO No parity e General purpose 5 word K1 Parity 0 serial communication K2 Parity odd e Computer link K3 Parity even 11 12 byte Stop bit KO 1 bit e General purpose 6 word length K1 2 bits serial communication e Computer link 13 14 byte RS CS KO Invalid e General purpose 7 word Valid Invalid K1 Valid serial communication e Computer link 15 16 byte Send KO to K10000 e General purpose Effective time knx0 01 ms 0 to 100 8 word waiting time KO Immediate serial communication ms e Computer link 17 18 byte Header STX KO STX not exist e General purpose 9 word K1 STX exist serial communication a 20 byte Terminator KO cR e General purpose For the time K2 refer to 1 o word K1 cR LF serial communication terminator os time K2 Time 24 bits K3 ETX DTA Terminator KO to K10000 e General purpose Effective time knx0 01 ms byte judgement KO 32 bits serial communication However it is effective only when 11 word time N the terminator setting is Time K2 23 24 byte Initialize KO Initialize e General purpose Timing for execution of modem 12 word modem K1 Not initialize serial communication initialization e Com
102. second header overwrites the data in the receive buffer e The reception done flag X4 X5 is turned off when no data is received after executing F159 MTRN instruction It does not turn off right after the execution of MTRN instruction It will be turned off at the beginning of the next scan or later gy Key Point There is no relevance between the operation of transmission by F159 MTRN instruction and the operation of reception by F161 MRCV instruction MCU can always receive data e In case of transmission a request to send is given to MCU using F159 MTRN instruction e In case of reception received data are copied from MCU using F161 MRCV instruction Sending data The reception done flag the transmission done flag and MTRN instruction are related as follows Transmitted data MCU internal send buffer ON Transmission done flag mee XO X2 Duplex transmission Duplex transmission disalbed for the same COM port disalbed for the same COM port while MCU is sending data while MCU is sending data ON MTRN instruction OFF execution Send buffer e Header STX and terminator ETX are automatically added to the data being transmitted The data is transmitted to an external device e When the F159 MTRN instruction is executed the transmission done flag X4 X5 goes off e F159 MTRN instruction is used to copy the transmitted data to MCU and request tr
103. sending size Ttx 1 baud rate x 1000 x 11 ms Approx 0 096 ms at 115 2 kbps Ltm 13 2 x n n number of stations being added Tso master station scan time This should be confirmed using the programming tool Tik link addition processing time If no stations are being added Tlk 0 Tik Tic link addition command sending time Twt addition waiting time Tis Sending time for command to stop transmission if link error occurs Tso master station scan time Tic 10 x Ttx Sending time per byte Ttx 1 baud rate x 1000 x 11 ms Approx 0 096 ms at 115 2 kbps Twt Initial value 400 ms can be changed using SYS1 system register instruction Tis 7 x Ttx Sending time per byte Ttx 1 baud rate x 1000 x 11 ms Approx 0 096 ms at 115 2 kbps Tso Master station scan time Calculation example 1 When all stations have been added to a 16 unit link the largest station number is 16 relays and registers have been evenly allocated and the scan time for each PLCs is 1 ms Ttx 0 096 Each Pem 23 4 8 x 4 71 bytes Tpc Itx x Pem 0 096 x 71 6 82 ms Each Ts 1 6 82 7 82ms_ Tit 0 096 x 13 2 x 16 4 32 ms Given the above conditions the maximum value for the transmission time T of one cycle will be T max 7 82 x 16 4 32 1 130 44 ms Calculation example 2 When all stations have been added to a 16 unit link the largest station number is 16 relays and regist
104. ssion 6 22 Receive buffer bytes DT201 H30 0 H31 1 received DT202 H32 2 H31 1 Received data is stored in order DT203 H34 4 H33 3 from the lower order byte DT204 0 Statuses when reception is completed 6 7 2 Connection Example with External Device lt 1 1 Communication with FP Series PLC gt Overview Connect the FP2 FP2SH and another FP series PLC using the RS232C interface and the MEW TOCOL COM communication protocol Communication mode General purpose serial communication Communication mode Computer FP series PLC Data area read command gt e When the data area read command 01 RDD00000 00001 is sent from the FP side the values of the data register of the PLC connected to the system are sent as a response For example if the value K100 is stored in DTO and the value K200 is stored in DT1 of the PLC 01 RD6400C8006F is sent as a response to the command If there is an error 01 OO is returned OO is the error code e In addition to data area read and write commands MEWTOCOL COM also provides contact area read and write as well as many other commands System register settings of FP series PLCs FP1 FP1 side In the default settings the COM port is set not to be used For 1 1 general purpose serial communication the system registers should be set as shown below Communication format settings for FP series PLC FPO FP1
105. ster for monitor data 8 2 1 Example of Communication Condition Setting using F159 MTRN Instruction When the following conditions are specified for the COM 1 port in the slot 0 Unit No K3 3 Baud rate K9 115200 bps Character bit K1 8 bits Parity K3 Even Stop bit length KO 1 bit RS CS KO Invalid Send waiting K100 1 ms Header STX KO not exist Terminator K3 ETX Terminator setting time KO Unnecessary Initialize modem KO No Explanation of program operation If RO is turned on when MCU is in the waiting status for transmission the above communication conditions are specified for the COM 1 port in the slot 0 RO X4 0 HY k DF Iaa Tirping for Transmission communication Gone available conditions flag 1 FO MV K3 BOTH Unit No 3 FO MV K9 DT 12 Baud rate 11520bps FO MV K1 DT13 Character bit 8 bits FO MV K3 DT14 Parity Even LFO MV KO DT15 Stop bit length 1 bit FO MV KO DT16 RS CS Invalid FO MV K100 DT17 Send waiting time 1ms FO MV KO DT18 Header Invalid FO MV K3 DT19 Terminator E TX FO MV KO DT20 Terminator setting time Unnecessary FO MV KO DT21 Initialize modem No CF159 MTRN DT10 K22 H D1 Slot 0 ff L com port 3 Key Point When setting for COM 2 port it should be D2 e Specify 22 bytes for the number of bytes of setting data when specifying the communication conditions e A
106. t Multi Communication Unit is occasionally abbreviated as MCU in this manual 1 2 2 Communication Blocks Specifications PartNo Product No FP2 communication block RS232C RS232C FP2 CB232 AFP2803 FP2 communication block RS422 RS422 FP2 CB422 AFP2804 FP2 communication block RS485 RS485 FP2 CB485 AFP2805 aor Note FP2 communication block is necessary for FP2 Multi Communication Unit FP2 Multi Communication Unit cannot be used alone Use it with FP2 communication block 1 4 1 3 Restrictions on Units Combination 1 3 1 Restrictions on Installation position and Number of Units When using PC PLC link function 1 Up to two units including FP2 MW Multi wire link unit used in W mode can be used FP2 MW FP2 MCU L N PC link function cannot be used on this MCU Can be used total 2 units 2 When CPU is FP2SH install two units within five units in combination with FP2 MW FP CCU and FP2 MCU FP2 CCU FP2 MW FP2 MCU 7N h POWER ist end ath 6th For FP2SH The 6th unit counting W link CCU and MCU can not be used 3 When CPU is FP2 install two units within three units in combination with FP2 MW FP CCU and FP2 MCU FP2 CCU FP2 MW a FP2 MCU ist 2nd rd For FP2 The 4th unit counting W link CCU and MCU can not be used unit unit unit When using General purpose serial communication Can be installed in any position When using Computer link function
107. t Stop bit 1 bit 2 bit to be set by Header STX No STX ee memory switch Terminator CR CR LF Time setting ETX Max 99 units Max 99 units 32 units 32 units max Nude otre max when when C NET ae 16 units C NET adapter is oiee adapter is connected connected A Note2 Link relay 1024 points Link register 128 words PLC link capacity 9 3 Note1 Although it has adequate noise resistance lt is recommendable to make the user program to execute re transmission in order to improve reliability of the communication in case of communication errors occurred by excessive noises or when a receiver equipment cannot receive temporarily Nore2 When connecting a commercially available device that has an RS485 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 Note3 The values for the transmission distance baud rate and number of units should be within the values noted in the graph below For baud rate 230 4 kbps For baud rate 115 2 kbps For baud rate 57 6 kbps 70 Number of units 20 0 200 700 1000 1200 Transmission distance m When using a baud rate of 2400 bps to 38400 bps you can set up to a maximum of 99 units stations and maximum transmission distance of 1200 m Note4 The number of units of the PLC link with RS232C RS422 is two Note5 When setting to 230400 bps use USB ports
108. ta cannot be sent without the pin CS Clear to Send When using with a three wire port short circuit the pin RS and CS or disable them Note3 The ER signal is shorted in the RS signal and the communication block Note4 Do not connect to the pin connection unavailable Note5 The shell part and the mounting screw part of the connector is connected to the ground terminals of the power supply unit FP2 communication block RS422 FP2 CB422 AFP2804 This communication block is a 1 channel unit with a four wire RS422 port It supports 1 1 computer link general purpose communication and PC PLC link MEWNET W0 between two units Pin No Name Abbr Signal direction 1 Notconnected NC 5 Receive Data RD External devices to Unit a ES LSJ Connection unavailable Connection 7 unavailable Connection unavailable Connection l Unit to external devices unavailable Note1 The shell part and the mounting screw part of the connector is connected to the ground terminals of the power supply unit Note2 The terminating resistor 120 Q is built in between the RD and RD 54921 9876 2 4 FP2 communication block RS485 FP2 CB485 AFP2805 This communication block is a 1 channel unit with a two wire RS485 port It supports 1 N computer link general purpose serial communication and the PC PLC link rs o e ry a D r E fos a g i i ty
109. ta reception it turns on When waiting for data reception 0 When completing data reception 1 When MRCV is completed it is set reset Reading completes 1 No reading data 0 When transmission is available 1 During transmission 0 veer When transmission is completed 1 When MRCV is completed it is set reset Errors exist in the data read 1 No error exists in the data read 0 Status of the CTS signal sent from the device communicating with Transmission is possible from MCU 0 Transmission is not possible from MCU 1 Note1 Note1 The RTS signal from MCU is controllable by Y18 and Y19 Set when an error occurs during the reception of data by MCU No reception error 0 Reception error 1 The details of the reception error can be confirmed by reading out them to the PLC using MRCV instruction Check X6 X7 to see whether there are errors in each receive buffer or not during multiple reception Operation mode switch setting error Usage restrictions for the unit For the details on the errors which the settings exceed the limited values of PC link mode computer link mode refer to the exhibit Communication channels can be reset by turning on Y1E or Y1F This flag is the signal of its completion At completion 1 When Y1E Y1F is off 0 0 OFF 1 ON Effective operation mode General purpose serial communication Effective only when setting the RS CS to be valid and using the communication block AFP
110. tem using AFP2803 AFP2804 Appropriate electrical cables twisted cables Conductor Insulator Cable diam Cross sectional Resist Thick ance at 20 C Sample appropriate cable ences Shield eae Onamba Co multi inyl l Ltd if NE AWG22 T 7 core ir a aiT chloride ONB cable 7 lator J D6x0 3Mm System using AFP2805 Appropriate electrical cables twisted cables ue Cross sectional Resist f Cable P gt Thick appropriate view ance ie diam DE at 20 C Belden 9860 1 25 mm M Hitachi Cable Polye Max Approx a ee thylene 0 5 mm 8 5 mm Seen ey Shielded Shield _ Cover or greater y S1 25 mm x sn 1P M ax Q km twisted Con nsu pair ductor 3 lator Belden 9207 0 5 mm Max Hitachi Cable Polye ax Approx AWG20 33 4 lo zemny LAKE or greater Q km l l S0 5 mm x 1P Note e Use shielded twisted pair cables e Use only one type of transmission cable Do not mix more than 1 type e Twisted pair cables are recommended in noisy environments e When using shielded cable with crossover wiring for the RS485 transmission line grounded one end 3 6 Chapter 4 Communication Function 4 1 Communication Mode The following three types of communication function are available with FP2 Multi Communication Unit MCU 4 1 1 PC PLC Link Mode e MCU supports the PC PLC link of MEWNET WO mode e In a PLC link data is shared with all PLCs connected via MEWNET
111. the setting to use it Key Point The priority order for station number settings is as follows 1 Unit number settings switch 2 SYS1 instruction 3 System registers 5 4 FP2SH RS485 Unit numbers 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 If unit number setting switch is 0 the memory switch F159 MTRN MCU setting is valid If unit number setting switch is a number other than 0 the unit number setting switch is valid and the unit number setting with the memory switch is ignored Ea Note When using the PC PLC link with FP2 CB232 AFP2803 the number of units is up to two Setting unit numbers with the setting switch The unit number setting switch is located at the back of the unit The rotary switch can be used to set a unit number between 1 and 15 With FP2 CB232 AFP2803 a maximum of 2 unit number can be set Table of switch settings and related unit numbers Unit No Unit No setting switch setting switch Memory switch Note Note Sets by the MCU setting and F159 MTRN instruction and sets more than 15 unit numbers The default setting of PC PLC link is 1 therefore the unit No will be O without the setting with the memory switch and PC PLC link will be unavailable Setting using F159 MTRN Setting the unit number setting switch to 0 makes F159 MTRN setting valid fy Refe
112. thing is specified by executing MTRN instruction DT102 H44 D H43 C Data is transmitted in order DT103 H46 F H45 E from the low order byte DT104 H4g H H47 G Data table before transmission The program described above is executed in the following sequence 1 ABCDEFGH is converted to an ASCII code and stored in a data register 2 The data is sent from COM port 1 using the F159 MTRN instruction Explanatory diagram 1 The characters are converted to ASCII code Data register DT and the data is stored in the send buffer SSeS eee eee 2 Data transmission using F159 MTRN en ee ee See ee eee ee eee ey FP2 MCuU gy Key Point F95 ASC instruction The specified character string 12 characters is converted to an ASCII code and stored in the area of 6 words starting from the specified address Terminator When the terminator is not necessary the setting should be set to None on the MCU setting screen Explanation of data table The data table for transmission starts at the data register specified in S Setting is not necessary Nothing is specified by executing MTRN instruction for MCU unit Note that it is different from the transmission for the COM port of CPU Transmitted data Use an FO MV or F95 ASC instruction to storage area write the data to be transmitted to the The ccad nambas dc ihe transmission data storage area specified in order of transmission
113. to the computer FPE FP2 FP2SH FPE Unit No 1 Unit No 2 Unit No 3 Unit No 4 2 gt amp ae gt Computer Commercially available conversion adapter j RS232C Zz ee eee RS485 The unit number for the PLC to which the command is being sent is included in the command message wn Ci AL a The unit number of the PLC sending a response is included in the response message Note Lineeye SI 35 is recommended to be used as a conversion adapter gy Key Point The display panel for the FP series was designed ahead of time in conformance with the MEWTOCOL COM communication protocol so there is no need to take the contents of commands into consideration MEWTOCOL COM communication protocol for FP series are generally configured as shown below Command format Example showing command for reading data R D DO000000007T CR ae Ls Terminator Destination BCC Block Check Code Indicates command Data specification DO000000001 indicates Type of command data registers DTO to DT1 RD stands for Read Data Response format Example of response to data reading command Tr TS AO 0 6 2 CR nn ret ae M igre pie Terminator Source BCC Block Check Code Indicates response Content of data that was read Type of command Content of data that was read T 7 4 7 2 Setting the Operation Mode and Baud Rate 7 2 1 Setting using Mode Speed Sett
114. to the PLC using MRCV instruction Check X6 X7 to see whether there are errors in each receive buffer or not during multiple reception Operation mode switch setting error Usage restrictions for the unit For the details on the errors which the settings exceed the limited values of PC link mode computer link mode refer to the exhibit Communication channels can be reset by turning on Y1E or Y1F This flag is the signal of its completion At completion 1 When Y1E Y1F is off 0 0 OFF 1 ON Effective operation mode General purpose serial communication Effective only when setting the RS CS to be valid and using the communication block AFP2803 RS232C type General purpose serial communication Reception All operation modes General purpose serial communication Note1 This flag is effective after the execution of the F161 MRCV instruction until one of the following instructions is executed 1 END instruction Beginning of scan 2 F161 MRCV instruction 3 Partial input instruction F143 IORF Note2 When the transmission is completed within one scan it may not be 0 9 7 0 OFF 1 ON Output signal Effective COM 1 COM 2 Description communication Y10 to Y10 to Undefined Do not turn on undefined None Y17 Y17 Default setting is 0 Y18 Y19 RTS signal the transmission from the devices Effective only output communicating with can be controlled by when setting the turn
115. tor judgement time Invalid Valid only when the end code is set to K2 Time DT111 Initialize modem No 3 Key Point e 12 words should be assured for the receive buffer e COM 1 port and COM 2 port should be read separately 8 3 MCU Status Monitor The operation mode the error of the installed communication blocks or operation status of Multi Communication Unit MCU can be checked using F161 MRCV instruction The statuses that can be checked are shown below The status for each port COM 1 port COM 2 port can be read Address ee Setting content and value Description pt word T The system assures t 2 word Operation KO Computer link mode The operation modes specified for the COM ports mode K1 General purpose serial can be confirmed communication mode K2 PC PLC link mode K7 In initializing modem 3 word Discrimination KO Communication block is The installed communication blocks can be of not installed confirmed communication K232 AFP2803 RS232C blocks K422 AFP2804 RS422 K485 AFP2805 RS485 seo Becomes 1 when the character bit and the stop bit differ from the setting Becomes 1 when the parity of the received data differs from the setting RE Higher byte Becomes 1 when the received message length exceeds 2048 bytes Becomes 1 when the messages that CPU has not ae completed to receive exceeds 8 messages 5 word No of HO to HFFFF Counts the No
116. truction is executed using the reception done signal the data is stored in the receive buffer specified by MRCV instruction e Registers are used as the receive buffer They are specified ath e aa 5 using the second and third operand of F161 MRCV Die ales instruction e Specify the data registers in system register 416 to 419 e The number of bytes of data received is stored in the starting Reception data storage area address of the receive buffer The initial value is not The circled numbers indicate the order of necessary storage e Received data is stored in the received data storage area in order from the lower order byte e The receive buffer should be specified to be larger than the supposed data to be received e f the number of received data cannot be stored in the specified area the data is copied within that range only and an operation error occurs When the received byte numbers are odd number the higher byte of the last word is always cleared 6 12 Reception process When data is sent from an external device the data is stored in the buffer in MCU as below 1 Header and terminator is not stored Beginning of reception Received data A Sie it CR U V Reception ON done flag XO OFF i 4 F161 MRCV execution 7 condition X0 Execution of F161 MRCV instruction 2 When the terminator is received the reception done flag XO X2 turns on and subsequently the
117. turned as the response OO is the error code and OLI is the BCC 6 26 The values of DT50 and DT51 are written in DTO and DT1 of the PLC connected to the COM 2 port in the slot 0 R1 R20 DE R20 k oF F95 ASC M XXO0I NDDO000 DT 151 F95 ASC M OQQOOIXXXXXX DT 157 D F95 ASC M X DT 163 8 spaces F71 HEXA DT50 K4 DT 160 F112 WBSR DT151 DT 164 Je F112 WBSR DT151 DT164 F159 MTRN DT150 K27 H00 C2 MCU in slot 3 MCU reception done XO R21 RO R21 a ane ef es __ F161 MROV HC2 DT200 DT205 J The received data is stored in DT201 to DT205 of the receive buffer beginning with DT200 R21 R22 atl amen eat ia toe Seem ve DT202 H2431 H or LE Js L_ Check comparing with the character string D Shifted for 1 byte to execute the HEX ASCII conversion instruction F71 easily DT151 DT151 DT152 DT152 DT153 DT153 3 DT154 F112 instruction PT154 Shift to right for DT155 2 digits DT155 DT156 gt DT156 DT157 DT157 DT158 DT158 DT159 DT159 DT160 ASCII code is DT160 inserted for the DT161 value of DT50 O61 or162 ASCII code is DTI62 1 inserted for the DT163 gts value of DT51 DT164 DT164 Note When K100 H0064 a ser c is in DT50 and K200 suena selene SOLE es HOOC8 is in DT51 Abnormal response 01 OOO00 rR LC pec Error code 6 27 6 8 1 N Communication General purpose Serial Comm
118. unication Overview Multi Communication Unit MCU and the external units having unit numbers are connected using an RS485 cable Using the protocol that matches the external units the F159 MTRN and F161 MRCV instructions are used to send and receive data Register Data transmission using F159 MTRN instruction FP2 MCU Data is received into receive buffer using F161 MRCV instruction Data is sent and received through the registers Usable communication blocks e FP2 CB485 AFP2805 RS485 Setting communication format Settings for COM port tem Allowable setting value General purpose serial communication 2400 to 230400 bps Character bit 7 Stop bit length 1 bit 2 bits o Only for general purpose cR cR Lf ETX serial communi Terminator Timeout 0 01 to 100 ms cation In 0 01 ms unit Initiali modem Note1 The setting must be done according to the devices connected Note2 Connect the terminal and the E terminal with a lead wire to make the termination resistance of the AFP2805 effective bits 8 bits 1 bit 2 bits Reference For the details on the method to set lt 4 4 How to Set gt 6 28 6 9 Troubleshooting General purpose Serial Communication a indicator LEDs Mdeon on when reception error occurs Communication error Off when received data was retrieved Setting error Light on when setting error occurs 3 Off Normal Note
119. use pole terminals Phoenix Contact offers the following models sleeve sleeve ST AWG 22 ae Pressure welding tool for pole terminals Phoenix Contact product ID Cross sectional area Model No Product No Phoenix Contact Co CRIMPFOX UD6 1204436 3 4 Screwdriver for terminal block To tighten the terminals of the communication connector use a screwdriver by Phoenix Contact Co product no 1205037 blade size 0 4 x 2 5 model no SZS 0 4 x 2 5 or Manufactured by us part no AFP0806 The tightening torque should be 0 22 to 0 25 Nm 2 3 kgfcm to 2 5 kgfcm Wiring method 1 Remove 7 mm of the wire s insulation 2 Insert wire into terminal hole until it stops Tighten screw clockwise to fix wire in place Tightening torque 0 22 Nm to 0 25 Nm 2 3 kgfcm to 2 5 kgfcm Notes for wiring e When removing the wire s insulation be careful not to scratch the core wire e Do not twist the wires to connect them e 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 Clockwise Counter clockwise 3 5 3 2 3 Selection of Cables The communication blocks to be selected vary depending on communication blocks Sys
120. ution condition and the received data is copied in the operation memory using F161 MRCV 4 Once copying data completes the PLC data reception done flag X1 X3 turns on After completing the execution of the MRCV instruction the reception done flag remains to be on as _ the data that has been completed to be received is left in MCU 6 As the MCU reception done flag is taken in by the I O refresh operation of the CPU X0 X2 remains _ to be on Also the PLC data reception done flag X1 X3 turns off by the I O refresh operation 8 Makes the reception done flag X0 X2 be the execution condition and the received data is copied in _ the operation memory using F161 MRCV 9 Once copying data completes the PLC data reception done flag X1 X3 turns on 10 After completing the execution of the MRCV instruction the MCU reception done flag turns off as the reception done data disappears 1 As the MCU reception done flag is taken in by the I O refresh operation of the CPU X0 X2 turns off 2 Also the PLC data reception done flag X1 X3 turns off by the I O refresh operation 9 10 Precautions _ The MCU reception done flag above mentioned 5 turns off within a maximum of 100 us after MRCV instruction is executed so that it may not turn off in the next scan after the execution of the MRCV instruction depending on PLC scan time and the timing to execute the MRCV instruction In that case the received data has been copied f
121. y switch which are the MCU setting using the programming tool and the setting using the F159 MTRN instruction The mode speed setting switch should be set as below to enable the memory switch setting COM1 COM2 OFF S 7 Baud rate HYO 3 4 2 3 4 ON ee eer er General Memory General Memory purpose swiich purpose switch communication communication Setting using F159 MTRN instruction Baud rate and communication format can be specified with this instruction Reference lt 8 2 Setting Communication Conditions and Monitoring gt Setting using MCU setting The detailed settings are specified on the exclusive screen for FP2 Multi Communication Unit using the programming tool Reference lt 4 3 Settings and 4 4 How to set gt Note The unit No setting is not available for the general purpose serial communication mode 6 5 6 3 I O Allocation The flag information between MCU and the CPU unit is transmitted using X and Y For this unit 16 I O each for X and Y totally 32 I O are allocated I O numbers are determined depending on the installation location and the I O allocations of the other units I O numbers Baa Sas mae unit is installed in the slot 0 pope signa 1 COM 2 XO X2 NS done flag Le data PS receptor done flag Transmission done flag X6 X7 Reception error CTS signal monitor Latest reception error k CH reset done Description When MCU completes the da

Download Pdf Manuals

image

Related Search

Related Contents

Samsung P2270HN manual do usuário  User Manual - WebstaurantStore.com  MultiPhone 4040 DUO    mod. FIRENZE art. 660 - 660/3 INSTRUZIONI  TAFCO WINDOWS NU2-238S-I Installation Guide  the PhotoKit User Guide  取扱説明書 Windows Vista Business 入門ガイド    2. MANUTENÇÃO  

Copyright © All rights reserved.
Failed to retrieve file