Home

User`s Manual

image

Contents

1. A 12 CHAPTER 1 OVERVIEW CHAPTER 1 OVERVIEW 1 1 How to Use the User s Manual This user s manual describes the technical details for the Fast Ethernet module referred hereinafter as the FEnet I F module among GLOFA MASTER K PLC system network modules The user s manual is separated into the following chapters CHAP 1 Overview Describes the configuration of this user s manual the product features and terminologies CHAP 2 Product Specifications Describes the general specifications structure and the cable use conditions for FEnet I F module CHAP 3 Installation and Startup Describes the product installation the wiring method and warnings to ensure the reliability of the PLC system CHAP 4 System Configurations Describes available models to be used in the FEnet I F module the system configuration method etc CHAP 5 Communication Program Describes the common communication program type and software operation to run the communication module CHAP 6 High Speed Link Describes the basic program and communication method for High Speed Link communications CHAP 7 GMWIN Function Block Describes the basic program and communication method for function block communications CHAP 8 MASTER K Command Describes the program and communication method of the MASTER K module by using the command CHAP 9 Remote Communication Control Describes the communica
2. 7 1 7 2 How to Use Function BloCkS 7 2 7 3 Types of Function BloCkS 7 6 7 3 4 E_CONN 7 6 7 3 2 TCP_SEND 7 10 7 3 3 TCP_RCV 7 12 794 UDP SEND ccs siete en esa he eeaeee EE 7 14 7 3 5 UDP_RCV 7 16 TA Frame Setting reaa aae aaea enaA sna 7 18 7 4 1 Group NaMe 7 18 7 4 2 Frame list la aa aa 7 19 7 5 Function Block Service of the Redundant System 7 24 7 5 1 OvervieW eee eee 7 24 7 5 2 Characteristics of redundant Function BlockS 7 25 7 5 3 Types of redundant Function BlockS 7 26 7 5 4 Action of the redundant Function Blocks 7 27 CHAPTER 8 MASTER K COMMA
3. 13 4 13 3 1 Abnormal operation 13 4 13 3 2 Troubleshooting 13 6 13 4 Error Code 13 19 13 4 1 Errors received from the communication module 13 19 13 4 2 STATUS displayed on the CPU 13 20 APPENDIX A 1 LED Indication Specification A 1 A 1 1 G3 4L EUTB EUFB EU5B LED marking A 1 A 1 2 G6L EUTB EUFB LED marking A 2 A 2 Flag List A 3 A 2 1 Special relay A 3 A 2 2 Special data register High Speed Link A 6 A 3 ASCII Code Table A 8 A 4 Ethernet Technology Comparison Table A 11 A 5 External Dimension
4. 4 1 4 1 1 Single Ethernet system 4 1 4 1 2 Ethernet system configuration through dedicated network 4 2 4 1 3 Mixing of dedicated network and other manufacturer s Ethernet system 4 2 4 1 4 Ethernet system of public network and dedicated network 4 3 4 1 5 Mixing of public network dedicated network amp other manufacturer s Ethernet system 4 4 4 2 GLOFA PLC Ethernet Redundancy System 4 5 CHAPTER 5 COMMUNICATION PROGRAM 5 1 Communication Program 5 1 5 1 1 Communication program type 5 1 5 1 2 Comparison of High Speed Link and the Function Block 5 2 5 2 Frame Editor 5 3 5 2 1 OvervieW 5 3 5 2 2 Basic parameter 5 3 5 2 3 Connection amp download for communication module 5 7 CHAPTER 6 HIGH SPEED LINK
5. DESCRIPTION CH_NO The channel no established in ECON command SLOT_NO The slot no that the communication module is installed PORT_NO The port no of the destination station IP_ADDR The IP address of the destination station FRAME Frame desired to send Area that the sending data is saved Data number desired to send NDR ON when establishing the channel normally ERR ON when an error occurs after command execution STATUS Detailed code value for the error This is used to send the data from the local station to the destination station by using UDP IP If you establish the channel with UDP_ACTIVE or UDP_PASSIVE by ECON command this does not mean that the channel is established by communication It is only connected by opening the Socket Accordingly UDP IP sending needs to designate an IP address and a port No of the destination station when sending the data other than TCP IP The data is sent to the port of the destination station D_PORT with the defined IP address in IP_ADDR through the communication module of the local station installed in the CH_NO slot of the base The frame name used in FRAME shall be designated by the frame name that is downloaded in the Ethernet communication module from frame editor 8 7 CHAPTER 8 MASTER K COMMAND 8 3 5 URCV Model _ Application e AVAILABLE DEVICE OPERLAN D
6. the specifications Is the installation environment suitable for the specifications Its a hardware error of the communication module Contact the A S center End 13 9 CHAPTER 13 TROUBLE SHOOTING 5 Error code E03 01 HS Link Parameter Error High speed link parameter error Is the backup battery of the CPU normal Is the network type slot local station no of the link etting correct Is the setting method o station no of each registration item correct Are there a double registered block no for the same station Is the number of sent registration items more than 32 Is the sending receiving area among registration items suitable Download the parameters again v Check ON to enable the link Replace a new battery Download a program and parameters Modify the link setting to be suitable for the network type station no slot no of the relevant slot Modify the station no by referring to section 6 1 4 Yes Modify the double registered block no Reduce the number of items sent to less than 32 Modify the sending receiving area by referring to the CPU and basic parameter used gt 13 10 CHAPTER 13 TROUBLE SHOOTING High speed link operation error
7. ee OP1 OP2 OP3 OP4 OP5 OPERLAND O CH_NO The channel no established in ECON Device 0 CH_NO high byte command SLOT_NO low byte SLOT_NO The slot no that the communication module is installed Device 0 7 FRAME FRAME Frame desired to receive Device 0 RCV_AREA Area that receiving data is saved NDR ON when normal service starts Device 0 STATUS high byte ERR ON when an error occurs after command ERR 1 bit NDR O bit execution Device 1 PORT STATUS Detailed code value for an error Device 2 RCV_LEN PORT The port of the data sending station Device 3 6 IP_ADDR RCV_LEN Receiving data size IP_ADDR The IP address of the data sending station Ea LENTH Data number desired to receive This is used to receive the data of the destination station by using UDP IP As UDP IP communication does not establish the channel It is available to receive all data which is sending to the port no open to the local station Accordingly URCV command can determined which station SIP_ADDR sent the data to which port no S_PORT other than TRCV 8 8 CHAPTER 9 REMOTE COMMUNICATION CONTROL CHAPTER 9 REMOTE COMMUNICATION CONTROL 9 1 Overview This is the function to control remote the program preparation the user program download program debugging monitor etc in the network system that PLC is connected each other by Ethernet without moving the physical connection of GMWIN KGLWIN Especially in c
8. Did you check ON for the Link Enable setting network type slot no local station no match the relevant slot of the link settings Yes Is the station no setting method of each registration item correct Is the sending receiving area of the registration items suitable No Is there any problem in the network configuration Is there an error in the remote station among the registration items Yes Download the parameter again v Check ON in the Link Enable setting 6 Error code E03 02 HS Link Operation Error Check ON the relevant Link Enable from the Link Enable Setting Modify the link setting suitable for the network type station no slot no for the relevant slot Modify the station no setting by referring to section 6 1 4 Modify the range of the sending receiving area referring to the CPU type and section 6 1 4 gt Check it accoding to the error code E01 01 flow and modify it Perform trouble shooting for the remote station 13 11 CHAPTER 13 TROUBLE SHOOTING RUN link of the high speed link is nob 7 Error code E03 03 Run Link Error of HS Link Is the high speed link of each station good Perform trouble shooting for error E03 02 of each
9. IP_ADDR D_PORT S_ PORT CH_NO If the Function Block is input for one of two FEnet modules both modules are applied at the same time Output The output shows the result for one of the two modules in which its service is normally performed ahead If both are acting abnormally it shows its result in ERR STATUS Basic operation is identical to the content in chapter 7 2 7 27 CHAPTER 8 MASTER K COMMAND CHAPTER 8 MASTER K COMMAND 8 1 Overview MASTER K communication command can be used for the user to write the data of a local station to a certain area of a destination station or to read the data in a certain area of a destination station It is also used when installing the logical communication channel necessary to verify the PLC status of the destination station or communicate with another manufacturer s PLC and when accessing the special module It is possible to use the communication command of K200S 300S 1000S but not support the redundancy system The following shows the program preparation procedure by the command Parameter frame preparation i Write after frame editor preparation To prepare the IP address high speed link station no subnet mask gateway address frame etc By using frame editor and download to the FEnet module STOP mode for CPU when using the frame Re input the Power after writing 4 r Program create or open 4 Program preparation Program preparation
10. 10 7 10 3 Command Execution 10 9 10 3 1 Individual reading of Direct Variable 10 9 10 3 2 Continuous reading of Direct variable 10 14 10 3 3 Reading of NAMED Variable 10 16 10 3 4 Individual writing of Direct Variable 10 18 10 3 5 Continuous writing of Direct Variable 10 21 10 3 6 Writing of NAMED Variable 10 23 10 3 7 Request of STATUS Rea HMI gt PLC 10 25 CHAPTER 11 RESET OF RUNNING COMMUNICATION MODULE 11 1 OVI GW S582 eee ar eee ee a eee 11 1 11 2 Flag List 11 2 11 2 1 Flag for communication module reset 11 2 143 Reset Program kreere e E A E E rege AE sa 11 4 11 3 1 Forced reset of flag through monitoring 11 4 11 3 2 Reset of communication module through program 11 6 CHAPTER 12 EXAMPLE PROGRAMS
11. P_ScanB 5 CScan 6 9 J 16 9 The sending receiving period should be set to at least 17 12 7 CHAPTER 12 PROGRAM EXAMPLES 12 1 2 High Speed Link service of redundant CPU and GM3 The following system configuration shows an example to perform the High Speed Link by communication duplication of a redundancy CPU and GM3 PLC Ethernet Dedicated network1 J H Ethernet Dedicated network2 J H 165 244 159 109 Of 165 244 149 109 jon 1 165 244 149 109 Statio Station 0 Station 0 Station 1 a lo o e le O v o IO Iolo S IP _ Oo J I II Slo l2 Selale 2 lss T Se BEMER Ea EMS f mi ISIS gt DIC 5 5 S z a us Ww 165 244 149 108 165 244 159 108 or 165 244 149 108 ae Redundancy CPU system GMR CPUA Single CPU system GM1 2 3 4 Figure 12 1 7 Network of a redundancy CPU and GM3 PLC The following table defines the sending receiving data as follows Sending receiving structure Redundancy CPU Sending 10 words MWO ree a o OE Station 0 Receiving 59 words Mmw100 Sendnargiward A axis MWO i nding 60 wor 9 B axis MWO GM3 CPU 1station Receivingidt words A axis MW100 disaki B axis MW200 Table 12 1 2 Sending receiving memory map 1 Working procedure 1 Set the station no of the communication module using Frame Editor and connect the communication cable 2 Prepare the user prog
12. The difference between the redundant system and single system is as follows 1 Communication length Communication point to be set in a block of redundant CPU GMR CPUA is fixed at a maximum 59 words in all networks of GLOFA Comparision of P ene CPU with Redundant CPU GM1 2 3 fe In the case of single redundant GMR CPUA B GMx CPUA x 1 2 3 system configuration Maximum number of words to be set per block 59 words 200 words 200 words Table 6 3 1 A Communication length of a redundancy system per Block 6 35 CHAPTER 6 HIGH SPEED LINK 2 Communication data format If the TX RX area is set in the High Speed Link parameter and the block is used in the redundant system the serial number for the redundant process should be placed before the first word of the data area A Single system Existing system GM1 2 3 4 Word number set per block maximum 60 words S Start point address of reading area when sending or saving area when receiving B Redundant system of the CPU In the case of GMR CPUA Word number set per block maximum 59 words Serial Number 1Word Start point address of reading area when sending or saving area when receiving S Automatically inserted when sending and automatically removed when receiving in the redundant CPU Data format really sent and received word number set per block 1 C Communication with GMR CPUA in GM1 2 3 CPU with network redundancy Word number set per bloc
13. 6 1 Introduction 6 1 6 2 High Speed Link 6 2 6 2 1 TX RX data processing using the High Speed Link 6 2 6 2 2 Operation order of the High Speed Link 6 7 6 2 3 Setting the High Speed Link parameter 6 9 6 2 4 Operation of the High Speed Link 6 18 6 2 5 High Speed Link information 6 20 6 2 6 Calculating the speed of the High Speed Link 6 26 6 2 7 Example of the High Speed Link between PLCs of FEnet 6 30 6 3 The Redundancy System of the High Speed Link 6 35 6 3 1 INtroduUCtiON 6 35 6 3 2 Using HS_LINK 6 38 6 3 3 Example between redundant CPUs and GM3 for HS_LINK 6 43 CHAPTER 7 GMWIN FUNCTION BLOCK 7 1 OVvervieW
14. Send 01 SEND_FRAME Add Frame Information 00 RC _FRAME Receive 110byte ASCII GLOFA HEAD ARRAY 100 byte LINK FENET Figure 7 4 1 Frame Editor 7 18 CHAPTER 7 GMWIN FUNCTION BLOCK If you select ASCII conversion communication the user can convert the data set to a Function Block by ASCII Thus the data transmitted to the remote station shall be transmitted by an ASCII value Edit Group x Group GLOFA M ASCII Conversion Cancel Select binary or ASCII when doing RX TX of data Figure 7 4 2 Group name editor 7 4 2 Frame list The following describes the way how to define the frame 1 For TX Frame TX Frame GLOFA HEAD h ff030200 DATA 100 bytes If the communication frame to send between GLOFA FEnet communication modules is like the one above select double click the Frame List on the screen of the Figure 7 4 1 and then define the frame on the screen of the Figure 7 4 4 1 After setting a frame name in the Figure 7 4 3 set it as Send in TX RX 2 Set segment The segment can be set up to 8 maximum Each segment can be set separately as CONSTANT ARRAY and SKIP respectively a For CONSTANT you can set up to 30 bytes maximum using hexadecimal number and specify it as ASCII Conversion If ASCII Conversion is not set the data is used as HEX data b SKIP is used when a
15. by LD IL 1 4 Download Parameter and program 4 5 Operation mode to RUN 4 Above 1 5 setting for destination station To make the project or program in KGLWIN screen or open the previous project or program To verify the I P address high speed link station no slot position of the communication module of the local and remote stations and prepare the program by using the proper flag for the an emergency 8 1 CHAPTER 8 MASTER K COMMAND 8 2 How to Use the Command 1 Types of command The command used when the user prepares the program is classified by 5 types depending on the purpose Type Purpose ECON When establishing the logical communication channel with a destination station TSND To send the data from a local station to a destination station by using TCP IP TRCV To receive the data sent by a destination station using TCP IP USND To send the data from a local station to a destination station by using UDP IP URCV To receive the data sent by a destination station using UDP IP Table 8 2 1 Types of command 2 Command structure The following figure shows the structure of the command eEE TSND OP1 OP2 OP3 OP4 OP5 The above figure shows the condition of the command input The input condition for command execution is required refer to section 7 1 and for input method of operand according to command please refer to the command description respec
16. 12 1 GMWIN Program 12 1 12 1 1 High Speed Link service between PLCs 12 1 12 1 2 High Speed Link service of replication CPU and GM3 12 8 12 1 3 Function Block service between Fenet PLCs 12 21 12 1 4 Function Block service among another manufacturer s module PC LGIS FEnet I F module 12 31 12 1 5 Redundant CPUs and GM3 Function Block service 12 38 12 1 6 Redundant CPUs and GM1 Block service 12 46 12 2 KGLWIN Program 12 53 12 2 1 Fenet High Speed Link service between PLCs 12 53 12 2 2 Fenet command service between PLCs 12 57 CHAPTER 13 TROUBLE SHOOTING 13 1 Verification through the Communication Module LED 13 1 13 1 1 Error indication 13 1 13 2 Determining Communication Module Error through GMWIN KGLWIN 13 3 13 3 Determining Module Error by Error Code
17. 5 6 7 Dawe wra owe ow The High Speed Link parameter for the example system is set by the following method Select the modify button in the link setting from the High Speed Link setting screen in Figure12 1 5 to set the basic items In this case set the module type as GLOFA FEnet and also set the FEnet module installation position and the High Speed Link station no Select verify to complete the High Speed Link settings After completing the High Speed Link settings set the sending receiving parameters from item 0 in the order of the Figure12 1 5 registration list screen For the GM2 Station 1 in the example station type is local Since it is composed of a sending 0 block and a receiving 0 block the parameter is configured for each sending receiving area The sending receiving area is set by the sending receiving data map and the sending receiving time is calculated by section 6 6 High Speed Link speed calculation In this example it is set as the basic value of 200 Figure12 1 5 a b c shows the results of the setting parameter in GM2 GM3 GM6 12 4 CHAPTER 12 PROGRAM EXAMPLES Hish Speed Link ALOFA FEnmt Sof alatonHo Tipu Sonda pron Feadanes Stora iroa onma M70 Local Recenet Ey2b0ms ee eo a r E a GM2 Station 1 High Speed Link parameter Hiph Speed Linkt SLOPFA F Enet Eef stator hic Erir iisi Ho Typa ie Roadanea Gore Mua 0 L
18. 6 23 CHAPTER 6 HIGH SPEED LINK Figure 6 2 5 C shows the monitoring results by monitoring the first parameter of the High Speed Link 1 Variable Resource Instance Variable name Variable value Configuration global variable Flag _HS1ERR 0 a Resource global variable Flag _HS1LTRBL 0 Instance variable Flag _HS1MOD 0 1 Direct variable Flag HSIRLINK 0 Flag Flag _HS1STATE 0 1 Flag _HS1TRX O 1 Figure 6 2 5 C Monitoring screen for the High Speed Link information variable registration B Monitoring link parameter If the link parameter item is selected from the monitoring menu of the on line connection of GMWIN a screen for selecting the link parameter Figure 6 2 5 D appears If the user clicks OK after selecting the parameters a screen for monitoring the high speed parameters Figure 6 2 5 E is open The set registration list is shown when it is monitored view Compile Online Debug To Toolbar yY Status bar Full Screen E Project Output Fal Variable Monitor ID T O Monitor Link Parameter Properties Ctrl Figure 6 2 5 D Screen for selecting the Link Parameter For link parameter monitoring the total information of RUN Link and Link Trouble is displayed at the top of the screen in Figure 6 2 5 E Mode operating mode communication RX TX status individual information of error are displayed with registration numbers as many as set nu
19. 6 51 She Ara Shao CHAPTER 6 HIGH SPEED LINK G The following is for editing the user program One program is to fix the serial number at the first word when sending The other is to save only one data set after comparing the serial numbers of the two communication modules in the HS_LINK parameter How to fix the serial number at TX Increment of serial number must be equal to the TX period of the TX parameter Variable SERIAL is INT type Program editing at RX How to get RX data HS_KLY ry HS_FB EN _HS1 or HS2MOD 1 M RX_SRI_A RX_S RIA RCV_A RCY_ Al RX_SRI_B RX_S RI_B RCV_B RCV_ BI T200MS MOD_ HS_RDATA Save in MWO with serial number edited TAMS A MOVE PN A ___ amp Ail SERIAL INI OUT SERIAL SERIAL IND OWT IO 1 IN _T200MS must be identical to the RX period of the RX parameter _HS1MOD 1 _HS2MOD 1 receives data when the destination station s mode is 1 RX_SRI_A B variable showing the serial number from thef data received in each Enet module MW100 Variable of the UINT type RCV_A B shows the data area received in each Enet module Variable of the UINT Array type Set more than the volume of the RX data HS_RDATA area MW1 of data saved to be finally received out of each Enet module Variable of the UINT Array type Set more than the volume of the RX data Volume of RCV_A B is identically set Assig
20. BIT 7 E _DOMAIN_ST 1Byte High speed link hee Sek BIT 4 Flag indicating the error after checking the high speed link parameter parameter error BIT 5 Reserved area BIT 7 m _CNF_ER 2Byte Error flag that occurs when normal operation is not possible because of a self diagnosed error of the CPU module base CPU installation error multi CPU configuration error etc for further information refer to SYS ERR Representative flag indicating an error in the case that the I O CPU configuration error L CPU_ER Module type mismatch configuration parameter of each slot is different from the currently error _lO_TYER installed module or that the special module is installed in an unusable slot refer to IO TYER_N IOTYER n BIT 2 module delete error Representative flag indicating an error when the module configuration of _lIO_DEER each slot is changed during operation refer to _IO DEER_N 10 27 CHAPTER 10 DEDICATED COMMUNICATION BIT 3 FUSE cutoff error Representative flag indicating an error when the fuse of the module the FUSE_ER in the slot is cutoff refer to FUSE _ER_N FUSE _ER n I O module Representative flag indicating an error that occurs when it is not possible BIT 4 read write error to read write the I O module with the modules of each slot normally refer failure IO RWER to_IP_RWER_N IO RWERJn Special communication Representative flag indicating an error that occurs when a norma
21. CH_NO 1 If the CON contact turns ON as Function Block condition it demands connection with the number 1 channel among the 16 channels of the local station and the port number 5000 of the destination station In this case it is performed through the TCPACT method METHOD which sends the data from the destination station to the local station on the demond If the destination station responds to the connection demand of the local station the connection is completed between the two stations In this case it shows the results through the CH_EN output The user can use this bit to communicate using TCP_SEND TCP_RCV UDP_SEND UDP_RCV Enable Condition 7 9 CHAPTER 7 GMWIN FUNCTION BLOCK 7 3 2 TCP_SEND Input REQ Function Block is executed when it is at rising edge 0 gt 1 NET_NO The slot number 0 to 7 where the communication module of the local station is installed BOOL _USINT This is where the Function Block is transferred CH_NO Channel Number edited in the E_CONN Function Block FRAME Frame to be sent distinguished with capital small _USINT STRING letter It uses the same name used in Frame Editor DATA_LEN Number of data to be sent Number of data types equivalent to DATA UINT ARR ANY DATA DATA An area saving TX data Uses ARRAY Output NDR It turns ON at normal service ERR It turns ON at error occurrence aft
22. QB 2 Data number This means the byte Hex number 4 Response format in the case of a PLC NAK response Format Data Reserved Error code Header Command Error state name type area Hex 1 Byte Code Ex h 0059 h 0014 h 0000 h FFFF h 21 1 Error code Error code is HEX and indicates the error type by 1byte For further information please refer to the Appendix error code 5 Ethernet data protocol example 1 Direct Variable continuous writing request frame data type Byte data 0x112233445566778899aa 0x000a gt variable name MBO 10 22 CHAPTER 10 DEDICATED COMMUNICATION Length of variable Data SIze e0 91 08 01 02 00 50 da 92 3a e9 08 00 45 00 eens oe 40 00 80 06 c6 43 d2 ce 5b bS d2 ce W n Le 07 d4 02 97 b6j 8c 04 7c 00 01 50 18 0 00 U0 4c 47 49 53 2d 47 c 4f 46 41 i b TGIS GIOFA aal hey Lakes e oe ae aa 0 e a ae aatan aan 33_44 55 66 MBO api 00000000 00000060 2 Direct Variable continuous writing response frame data type Byte 00000000 00 50 da 92 3a e9 00 e0 91 08 01 02 08 00 45 00 P 00000010 00 46 00 02 00 00 32 06 2b a2 d2 ce Sb be d2 ce F 2 tL 5b b5 07 d4 08 a0 04 7c 00 01 02 97 b6 ba 50 18 0 0 3e 80 74 6f 00 00 semazen gt to Derse GLOFA 4 01 11 00 00 Oa 00 00 66 59 00 14 00 01 00 f 00000050 Bye Number of variables 10 3 6 Writing of Name
23. screen You can modify parameters by selecting the appropriate registration number on the screen in Figure 6 2 3 E High Speed Link 1 Item O Edit Station type Station No Mode Block No Local Send o C Receive Send period CMM C gw e waw 0 0 0 D 200ms SizehVord Fh ON l a Item Edit screen for the High Speed Link 6 13 CHAPTER 6 HIGH SPEED LINK High Speed Linki gt Link set Network type GLOFA FEnet Self station No oO Data length of Mounted No of the sending receiving Comm module data Area to send Area in the CPU the data for saving the received data Local Station Sending Block Period of SendingReceiving o No of separate parameters 0 63 b Example of the setting the TX parameter Figure 6 2 3 E Screens of the High Speed Link parameter settings The function of each registration items in a in the Figure 6 2 3 E is as follows Registration Number It means 0 in Modify 0 in High Speed Link item 1 It is also a serial number showing the registered order The user can set 64 numbers from 0 to 63 It has nothing to do with the TX RX order Station Type The station type the user wants to perform TX RX with the Local is set in the FEnet system Station Number When sending data of the setting item the user sets the station number When receiving the data the user should set the destination station number When sen
24. xxx is ACT or PAS 7 10 CHAPTER 7 GMWIN FUNCTION BLOCK E A Program Example When sending data to the destination station using TCP IP In this case the FEnet I F module of the local station is installed in slot number 0 and the user sends data to the destination station using channel number 1 It is assumed that channel number 1 is established using E_CONN Function Block CH_EN TCP_SEND FRAME SEND_FRAME ARR_CNT DATAS S_DATA In this program CH_EN is a result of channel establishment in the E_CONN Function Block It is used as a contact to send data if the channel is established SEND_FRAME is a frame to be sent It must be downloaded in the FEnet module using Frame Editor 10 ARR_CNT is the number of data to be sent and it is also the number of S_DATA types S_DATA is an ARRAY variable where sent data is saved 7 11 CHAPTER 7 GMWIN FUNCTION BLOCK 7 3 3 TCP_RCV Funtion Block Input REQ When it is at the rising edge 0 gt 1 the Function Block is executed BOOL NET_NO Slot number 0 to 7 where the communication module of the local station is installed and where _USINT the Function Block is transferred CH_NO Channel edited in the E_CONN Function Block USINT 0 t FRAME Frame to be received distinguished with capital small letters It must be downloaded in the STRING FEnet module after editing in Frame Editor DATA LEN Number of data to b
25. 1 Since the optic cable is subject to impact pressure bending stretching etc caution should be used when handling If the contact side of the connector and the optic cable of the cable end is polluted it may cause an block in communication or a communication failure In the case of outdoor installation additional cable protection measures suitable for the installation environment are needed 3 7 CHAPTER 3 INSTALLATION AND STARTUP 3 3 3 10BASE 5 installation G4L 8USe yt an Fey Cale Ki Tab MAU DC 12V POWER SUPPLY 8 e 15pin AUI oA connector N Coaxial cable i max 500m D TR AUI cable a max 50m Figure 3 3 3 10BASE 5 installation method When using 10Base 5 an external power 12V DC consumption power more than 300mA should be supplied The polarity and voltage of the external power supply should be checked An FG connection is a 3 class ground which is connected to the ground inside the panel If the communication is abnormal by the FG connection inside the panel this means that noise is flowing in the FG line In this case remove the cause of the noise or do not connect the FG to this communication module 1 When installing the cable it should be separated by more than a minimum
26. 13 4 Error Code 13 4 1 Errors received from the communication module Error No Description Decimal j oo ooo Normal no error Link s physical layer error TX RX unavailable Self station error and other station s power Off other station No Write error trouble FB distinguisher to receive not found in communication channel 3 Not used in LG ee 5 Not used in LG a Not used in LG EE beet f Not used in LG Object user wants is not possible to access 8 E Not used in LG ow Response stand by time exceeded Time out X Response not received from the other station for a specific period of time Structure error S O Structure error Abort only for Mnet Disconnected by serious error Reject Local Remote Error by disagreeable type to MMS or noise Communication channel setting error Connect Disconnect Error related with PI DOMAIN GEN service and logical communication channel 1 setting necessary for communication with other company s communication module only for Mini MAP Error on HS communication and connection service Parameter distinguisher not found Not defined within access parameter area 13 19 CHAPTER 13 TROUBLE SHOOTING Decimal Wrong address Error on structure assigned in the spec of communication module Out of range 3 Wrong response 4 ii Requested response is not received or error occurred on the other station CPU Object access un
27. 20 Disconnection Waiting Time Out fo Rx Waiting Time Out Bo Media AUTO xl alles Figure 12 2 2 Basic setting of Frame Editor K1000S Station 1 After completing the basic setting download the relevant frame using the PLC If the download is complete reset the PLC CPU 12 54 CHAPTER 12 PROGRAM EXAMPLES Sitha E r p i f k i Dion amp Basic Parameters B Frames Wie fe Cancel Figure 12 2 3 Writing the basic parameter 1 Download the basic setting only for High Speed Link communication 2 Preparing user program D3600 00000 f BN D9600 00001 DMOY D0100 D9600 00001 MOY hFFFF Figure12 2 4 Example of the user program POO POO Figure12 2 4 shows that if the High Speed Link is normal RUN_LINK 1 LINK_TRUBLE 0 the receiving data D0100 D0101 is output to the module of slot no 1 If the High Speed Link is abnormal LINK_TRUBLE 1 output the value to emergent data h FFFF For link information RUN_LINK LINK_TROUBLE please refer to section 6 5 High Speed Link Information 12 55 CHAPTER 12 PROGRAM EXAMPLES 3 High Speed Link parameter settings In the system of Figure 12 2 1 for data exchange of Station 1 2 3 like Table 12 2 1 the user should prepare the user program like Figure12 2 4 and then prepare the data sending receiving map like Table 12 2 1 For data sending receiving like Table 12 2 1 prepare the High Speed Link para
28. Device 0 7 FRAME Use the same name as in frame editor LENTH Data number desired to receive NDR ON when establishing the channel normally Device 0 STATUS high byte ERR ON when an error occurs after command ERR 1 bit NDR O bit execution STATUS Detailed code value for an error This is used to receive the data from the destination station by using TCP IP ACTION starts when the flag is at the rising edge and the data shall be received through the communication module of the local station installed the CH_NO slot of the main base CH_NO is the channel set when establishing the channel with the destination station in ECON command The data name entered in FRAME shall be designated by the frame name that is downloaded from frame editor to the communication module Only in the case when the data received from the destination station is the same as the defined frame it is available to receive LENTH saves and shows the data number received from the destination station 8 6 CHAPTER 8 MASTER K COMMAND 8 3 4 USND AVAILABLE DEVICE K2008 kgos k1208 Application o OPERLAN D USND OP1 OP2 OP3 OP4 OP5 OPERLAND Device 0 CH_NO high byte SLOT_NO low byte Device 1 PORT_NO Device 0 3 IP_ADDR ex 192 168 100 100 gt Device0 192 Device1 168 Device 0 7 SND_AREA LENTH Device 0 STATUS high byte ERR 1 bit NDR O bit Device 0 7 FRAME
29. NetworkType GLOFAFEnet P address Base Number Local Remote 1 C Remote 2 Slot fe 0 Figure 9 2 3 GMWIN Remote Connection step 1 3 Network type According to step 1 connection network select GLOFA Fnet Rnet Mnet Enet Fdnet Cnet FEnet or FDEnet In Figure 9 2 3 select GLOFA FEnet as step 1 connection is done by FEnet 4 Base Number This designates the base no where the FEnet I F module is installed for Remote Connection 5 IP address This designates the IP address of the FEnet I F module that is installed in the opposite CHAPTER 9 REMOTE COMMUNICATION CONTROL station PLC where step 1 connection is to be arranged in network 1 Figure 9 2 3 shows the IP address 219 114 62 34 of the PLC B module 6 Slot This shows the position of the communication module that is connected to network 1 in the local PLC connected by RS 232C In Figure 9 2 3 it is required to select 0 because the FEnet installed in PLC A is in the 0 slot From this status select OK and select Connect from the online menu When step 1 connection is completed it has the same connection status as if a local connection is made by moving the RS 232C cable Therefore all functions in the online menu are available except in the case when the PLC does not match the CPU type of the currently open project 1 Notices in Remote Connection For Remote Connection use a program suitable for
30. station Did you check ON in Link No Enable for each station Check ON in Enable Link for the relevant link of each station Is the CPU operation mode of each station in RUN mode Change the mode of each station to RUN mode Is the desired station no setting of each registration item correct No gt Modify the station no by referring to section 6 1 4 Is there any problem in the network Check it according to the error code E01 01 flow and modify it configuration Is there an error in the remote station among the registration items Remove the error of the remote station Download the parameter again v Check ON in the link enable setting 13 12 CHAPTER 13 TROUBLE SHOOTING Link trouble contact is ON Is there any station with the power OFF 8 Error code E03 04 HS Link Trouble Contact ON After taking the necessary actions turn on the power again Is the Link Enable ON for No each station Check ON in Link Enable for the relevant link of each station Is the CPU operation mode of each station in RUN mode Change the operation mode of each station to RUN mode gt Is there any problem in the net
31. 0 CH_NO high byte command SLOT_NO low byte SLOT_NO The slot no where the communication module is installed FRAME Frame desired to send Device 0 7 FRAME Uses the name as it is used in frame editor LENGTH Data size desired to send NDR ON when the channel is established normally Device 0 STATUS high byte ERR ON when an error occurs after a command ERR 1 bit NDR O bit execution STATUS Detailed code value for the error This is used to send the data of the local station to the destination station by using TCP IP ACTION is done by reading the data as much as LENGTH from SND_AREA and sending the data to the destination station established by the CH_NO channel in the designated format in FRAME The entered name in FRAME should be used by the name defined by the sending receiving format in the frame editor If the service runs normally the NDR bit shall be On If an error occurs ERR will be turned on and the code value accordingly shall saved in STATUS 8 5 CHAPTER 8 MASTER K COMMAND 8 3 3 TRCV Model _ Application o o AVAILABLE DEVICE OPERLAN D TRCV OP1 OP2 OP3 OP4 OP5 OPERLAND DESCRIPTION CH_NO The channel no established by ECON Device 0 CH_NO high byte command SLOT_NO low byte SLOT_NO The slot no that the communication module is installed FRAME Frame desired to receive
32. 1 if the KGLWIN acting PC is connected to a PLC by network Remote Connection step 2 by Ethernet is available and the method is the same as remote step 1 and the setting example of the connection option is as follows CHAPTER 9 REMOTE COMMUNICATION CONTROL Editor Option Page Setup Connection Option Method of Connection C RS 232C C Dialup Modem C Cable Modem C GLOFA Fnet for PC C GLOFA Mnet far PC o eansaadan seisin Depth of Connection Remote 1 Cocal Type ALOFA Enet C Remote i Base T afi ij Remote 2 T Slot MAE IP Address 219 114 62 34 Remote 2 Type GLOFA Fnet x Base T a Slot UfT a asl ejl Station No 05 cones eee Figure 9 3 4 Direct Remote Connection step 2 in a PC 1 Notices in remote step 1 step 2 connection 1 Remote Connection is not possible if the currently open project in KGLWIN does not match with the CPU type that is connected by step 1 and step 2 2 In the case of programming KGLWIN by connecting remote step 1 and step 2 open the relevant project of the station to connect and execute the Remote Connection 3 Remote Connection is supported only up to step 2 Remote Connection greater than step 2 is not possible 4 Master K and GLOFA have the same connection method so the settings are the same with GLOFA CHAPTER 10 DEDICATED COMMUNICATION CHAPTER 10 DEDICATED COMMUNICATION 1
33. 1 Daily checklist UN HS X X CHAPTER 3 INSTALLATION AND STARTUP 3 5 2 Regular checklist Check the following items 1 2 times every 6 months and take the required actions Check items How to check Action to take Ambient Adjust as Measure with Geos temperature specified in the l thermometer hygrometer Ambient moisture 5 95 RH general Ambient specifications conditions No corrosive If used in the Ambient pollution Measure corrosive gas gas panel base the allowed ambient criteria inside the panel Move communication Loosening shaking Mount firmly Module module Tighten screws status Should not be Dust foreign matters Check visually attached Terminal screw Should not be Tighten with driver Tighten screws loosened loosened Closed to terminal At a suitable Connection os Check visually Correct wiring tab distance status 3 Tighten connector Should not be Connector loosened Check visually loosened locking screw bower voltade chedk Measure voltage between AC 85 132V Modify power 3 the AC 110 220V terminals AC 170 264V supply Table 3 5 2 Regular checklist 3 5 3 How to add remove the module If the users want to change or remove the relevant module due to a hardware error or a system change please follow the procedure below 1 The procedure to change the communication module 1 Turn the power of the base that the communication Module is installed to OFF 2 Remov
34. 1 shows the initial screen of Frame Editor that appears when the user selects the Frame Editor icon 1 Execution of Frame Editor If the user executes the first Frame Editor the menu as shown in the figure appears If the user selects Ethernet type the initial screen based on the relevant model appears Enet Editor x TYPE ENET x Cancel Figure 5 2 1 First execution of Frame Editor gt ENET 10Mbps communication module for selection of existing G3L EUEA G4L EUEA gt gt FENET 100Mbps Fast Enet communication module 5 3 CHAPTER 5 COMMUNICATION PROGRAM 2 Basic parameter settings The basic parameter is used to set the communication system parameters to control and manage the Ethernet network It also determines the FEnet I F module IP address subnet mask gateway address High Speed Link station no channel open time times of retransmission dedicated connection number receiving standby time TTL time that packet is alive etc Thus for Ethernet communication the user should set the basic parameter in the basic setting screen in the editing button before downloading Figure 5 2 3 shows the setting basic parameter Enet Editor NONAME Jof x File Edit Online Option Help Group Frame List ft mu Delete Edit Frame Information LINK FENET Figure 5 2 2 Frame Editor basic screen 5 4 CHAPTER 5 COMMUNICATION PROGRAM Basic Parameters x PLC Type GM1 2 3
35. 12 1 1 The I O configuration and sending receiving of data Sa structure I O configuration GM2 IW0 2 0 4Word Station 1 RX lt GM3 fatto PENEI a MWO 4 words Slott output 32point GM3 oh aa dee IWO0 2 0 4Word Slot2 input 32point Station 2 RX lt GM6 ae 04 words same configuration of all GM6 IWO0 2 0 4Word 2 station Station 3 RX lt GM2 wo 4 words Table 12 1 1 Sending receiving memory map From the example GM2 3 6 CPU sends an input value of 4 words from slot no 2 and saves the received data from the destination station in MWO It then outputs by using the output module of slot no 1 For the High Speed Link parameter configuration and the program for data exchange it is described in Figure12 1 4 and Figure12 1 5 Figure 12 1 4 shows an example how to move the data saved in MW0 to QW0 1 0 by using the High Speed Link sending receiving monitoring flag 12 1 CHAPTER 12 PROGRAM EXAMPLES 1 Basic setting of Frame Editor In order to carry out the High Speed Link the basic settings of Frame Editor must be edited and download In this example the PLC type and station no are set the High Speed Link communication Enet Editor NONAME EEE Fie Edit Online Option Help Basic Parameters x Group N PLC Type IP Address fi 65 244 149 56 Subnet Mask 255 255 255 0 Add Gateway 0 0 0 0 Delete DNS Server 0 0 0 0 Edit HS Station No fi Retry Limit Conne
36. 16 letters String XXX Shows the name of the group set by Frame Editor YYY The type of channel establishment There are 5 kinds TCPACT TCPPAS TCPSEL UDPACT UDPPAS TTT RX TX latency time for channel release 0 FF seconds It cuts the connection by force if there is no response from the partner within the fixed time In case of TCPPAS gt XXX UNFMT in XXX Used to communicate without using Frame Editor when performing data TX RX It sends and receives data without changing the Function Block data set by a user after an Ethernet communication connection Therefore if you bind the channel in the form of UNFMT_YYY in the METHOD input of E CONN you must specify _UDATA_SEND TX or _UDATA_RCV RX in FRAME within the TCP_SEND UDP_SEND or TCP_RCV UDP_RCV Function Block After this it is ready to be used E A Program Example When demanding a connection with TCP ACTIVE from the destination station In this case the user demands a connection from the destination station GLOFA with 165 244 149 190 as its IP address and 5000 as the port number for the FEnet Fmodule The FEnet module of the local station is installed in the number 0 slot In this case it uses the number 1 channel 7 8 CHAPTER 7 GMWIN FUNCTION BLOCK ERR d H7 CON E_ CONN CON_ACT 0 g EN CON 165 244 NET_NO 0 149 190 DOR IP_ADDR 165 244 149 190 SD_PORT 5000 METHOD GLOFA_TCPACT
37. 22 CHAPTER 12 PROGRAM EXAMPLES Look in E Lib Her E APP 1FB la aPP 1FU E communi ifb a DuAL_FB 1Fb E mKSTDLIB 1fu E Modbus 1fb E PROCESS 1fb rs PROCESS 1fu sf REMOTES 1Fb REMOTES 1fb E REMOTE6 1FB E SPECIAL 1fb ss STDLIB 1fb E STDLIB 1fu a File name Files of type Library File 1f Function H D Standard Function E Function Block H B Standard Function Block COMMUNI Pro Par Yip Figure 12 1 34 Insert Library Figure 12 1 35 Figure 12 1 38 shows the program to send receive the data by using an Ethernet module installed in the GM2 and GM3 main base and TCP IP For communication using UDP IP the method used is the same 12 23 CHAPTER 12 PROGRAM EXAMPLES Figure 12 1 35 Example of the GM2 program From the above program example GM2 and GM3 establish the channel by TCP_ACTIVE If the channel is established CH_EN shall be set using the TCP_SEND Function Block If CH_EN is set send the data to GM3 by using the 200 ms timer Sending is accomplished by transmitting 100bytes of S_DATA in the format defined by Frame Editor If sending is completed the TCP_RCV Function Block uses the flag _ECM1_CH0O_FLAG 0 ON if there is data received by channel no 0 in the FEnet I F module to receive the response from the destination station The received data shall be saved in R_DATA 12 24 CHAPTER 12 PROGRAM EXAMPL
38. 91 190 210 206 90 191 Figure 4 2 3 GLOFA PLC Ethernet redundancy system 3 HMI dedicated network 4 6 CHAPTER 5 COMMUNICATION PROGRAM CHAPTER 5 COMMUNICATION PROGRAM The communication function of the FEnet I F module can be classified into the 3 following types 5 1 Communication Program 5 1 1 Types of communication programs 1 High Speed Link The High Speed Link is the communication method between GLOFA PLC communication modules It is used to switch data or information periodically between stations The user can effectively use it to run the system by referring to the self or the destination station s changing data The user communicates by a simple setup of the parameters That is you can do communications by designating the destination stations and the self area the data volume the speed and the station number at the High Speed Link parameter of GMWIN It is possible to communicate with a data volume using a minimum 1 word 16 bits or up to 12 800 words It is also possible to set up the parameters according to communication contents with a communication period of 20 ms up to 10 sec The user can do an effective job not only by easily communication with the destination station by setting up the simple parameters but also by the ability to easily handle of lots of data at one time because the internal data processing is performed at a high speed 2 Function Block FB It is a service
39. An index showing the extent of pollution of the service environment for a device where the environment is crucial for its performance Pollution level 2 means the status in which only non conductible pollution occurs However conduction pollution due to dewfall also falls under pollution level 2 2 2 CHAPTER 2 PRODUCT SPECIFICATIONS 2 2 Performance Specifications This section describes the specification of system configuration according to the FEnet I F module media When configuring the system please refer to the table below Specifications a Species O O 10BASE 5 100BASE FX 10 100BASE TX 10Mbps 100Mbps 10 100Mbps ee nter node max 2 5km extension distance M t length 500 oe ax segment len m J 9 node hub c v 5 100EA 30EA Hub 4 steps 2 Max node number E O segment segment Accessible S Constant Constant Fo Node interval magnification of magnification of 2 5m 0 5m Max protocol size 1 500 Byte Communication area CSMA CD access mode Fr heck CRC 16 X X aX ere KET metho Less than 600mA G3L EUTB EUFB EU5B 380 377 385 Weight g G4L EUTB EUFB EU5B 212 218 225 G6L EUTB EUFB 121 118 specifications 2 3 CHAPTER 2 PRODUCT SPECIFICATIONS 2 3 Structure and Characteristics 2 3 1 FEnet I F module structure 1 G3L EUTB GSL EUTB lt 4 Model indication EB END LED Module a ar lt LED indication No front mark Besorpian 10 oe refer
40. Defining of the sending receiving data 1 K1000S PLC setting 1 KGLWIN program After creating or opening the project file determine the PLC type and then open the program file After selecting library insert in the project window select the library suitable for the CPU type as shown in the following figure Figure 12 2 7 Figure 12 2 9 shows the program to send receive the data by using an Ethernet module and TCP IP which is installed in the K1000S and K300S main base For the communication using UDP IP the method is same Refer to Chapter 8 Foose IHF wooo FHT 4000 uiraa TED pogin CH OF SLOT O wi WOOO poig PAT oe wiry mami onigi 165 244 145 102 Hin 0065 Diiin Him 4 Cant wary 00143 ah EE wiry mii DONS LA TRACT wih WTC Diza HiT WHSF Un Fa Hm His mise Hir hii Diss wiry Us whiz Him HOO w2 Woy nooo it Faz wo hIw Dole Figure 12 2 7 K1000S basic setting 12 58 CHAPTER 12 PROGRAM EXAMPLES Figure 12 2 8 ECON channel establishment Figure 12 2 9 Sending receiving program From the program example K1000S establishes the channel by K300S and TCP_ACTIVE If the channel is established TSND sends the data to K300S by using the timer flag The data sending is completed by transmitting 6 bytes of D0210 by the frame format defined in the Frame Editor If the sending is completed the TRCV command uses the flag to receive the response from the destination station and the receiving
41. E gt Segment 4 Seyment 4 toe NOW tove none Figure 12 1 52 Redundancy system basic setting screen 12 40 CHAPTER 12 PROGRAM EXAMPLES 2 Prepare the user program CON_S CON_R maintains 1 while connecting CHEN_SEND CHEN_RCV if Connection is complete 1 CON_SEND INSTANCE 1 IP ADDRESS 165 244 149 109 IP address of the destination station 2 SD_PORT 3000 destination station port 3 METHOD GLOFA_TCPACT channel establishment of the client CON_RCV INSTANCE 1 IP ADDRESS 165 244 149 108 local station IP address 2 SD_PORT 5000 self station port 3 METHOD GLOFA_TCPPAS channel establishment by the server 12 41 CHAPTER 12 PROGRAM EXAMPLES S DATA saving area of sending data Current Byte Array type size 100 R_DATA saving area of receiving data current Byte Array type size 200 Insert library COMMUNI RFB before using Figure 12 1 53 Redundancy system basic setting screen 3 After compile make write using the PLC For operation verification in the case of sending the redundancy CPU local station operates against the destination station GM3 by TCP ACTIVE the destination station establishes the connection to the local station and then operates the connection of the local station CON_S 1 In the case of receiving it operates the connection from the local station CON_R 1 That is in the case of connection operate the PASSIVE or SELECT side f
42. ERR io when the module cannot recover from a fatal error by itself a Blinks when sending the data p RX Blinks when receiving the data 10 100 Communication speed of the media 2 7 CHAPTER 2 PRODUCT SPECIFICATIONS 5 G4L EUFB S4L EUFB lt Model indication RIH JF RUM LED Module Ree HANT refer to the table RUN ON when the power supply and the Ped y on the right side initialize of a module are normal av FE tarigi ON when it can normally communicate O00 VF RUN with the CPU module 2 FBecmp ON when g function block lt 4 Station no command service starts indication 3 ON when high speed link service switch starts lt 4 Flash O S ON when GMWIN KGLWIN remote PADT download service starts connector PC MMI ON when dedicated communication lt Media EEN A starts connection connector H W ERR io when the module cannot recover from a fatal error by itself oe Blink when sending the data p RX Blink when receiving the data 10 100 Communication speed of the media 2 8 CHAPTER 2 PRODUCT SPECIFICATIONS 6 G4L EU5B G4L EUSB lt 4 Model indication RUM LiF Pi LED Module feed Pat refer to the table RUN ON when the power supply and the nha 1 on the right side initialize of a module are normal ON when it can normally communicate HA ERS ir Pai VERUN with the CPU module 2 FB CMD ON when ine function block are Station no command service starts tk indication
43. Flag indicating an error when the battery voltage is less than the BAT_ERR specification for the backup of the user program and data memory Light failure detection of Representative flag indicating an error when detecting the light failure of the external device the external device by the user program The error is recovered in _ ANNUN_WR _ANC_WBJn Reserved area High speed link BIT 8 parameter 1 error L HSPMT1_ER High speed link BIT 9 parameter 2 error a ata el HSPMT2 ER Representative flag indicating an error when it is not possible to perform a High speed link high speed link et checking oe ne speed link parameter error BIT 10 parameter 3 error Reset when the high speed link is disabled _HSPMT3_ER High speed link BIT 11 parameter 4 error _HSPMT4_ER BIT 12 ak e 10 29 CHAPTER 11 RESETTING THE COMMUNICATION MODULE IN RUN MODE CHAPTER 11 RESETTING THE COMMUNICATION MODULE IN RUN MODE 11 1 Overview When the communication by Ethernet does not work smoothly due to a certain obstacle FEnet I F module Reset Function clears the relevant communication modules without resetting the whole system The communication module sends receives the data through Common RAM The module is required to run the system again if the data processing is delayed by some reasons ex by packet increase of the system configuration or if the data sent received is not good due to abnormal action by the comm
44. H in front of the figure and change the position of two bytes when the user describes the hexadecimal word data on the above frame Ex H 0054 gt 5400 10 10 CHAPTER 10 DEDICATED COMMUNICATION 3 Response format in the case of an ACK response in the PLC m Response of Individual Variable Read PLC HMI 2 If the Error State is in error the low Byte is the error no Repeat procedure for other variable numbers max 16 Format Data Reserved Error Block Data Header Command Data name type area state number number Code Ex lo h 0055 h 0002 h 0000 h 0000 h 0001 h 0002 h 1234 N YY 1 block max 16 blocks 1 Data number This means HEX type byte number This number shall be fixed according to the memory type X B W D L included in the Direct Variable name of the computer request format 2 Block number This designates how many blocks composed of data number data are there in this request format A max 16 blocks are available for setting Accordingly the value of block number should be h 0001 h 0010 Bool Double Word _ Long Word MX QAX IX MB QB IB SMW LQW IW SMD QD ID ML AL IL Classification Available Direct Variable Data number Byte 1 Bool X MX QX IX P M L K F T X 00l D a Only lowest bit is effective Byte B MB QB IB 10 11 CHAPTER 10 DEDICATED COMMUNICATION Word W SMW QW IW P M
45. K1000S CPU higher than Ver 3 2 e Master K K300S CPU higher than Ver 3 4 e Master K K200S CPU higher than Ver 2 4 e Frame Editor higher than Ver 2 01 1 This user s manual is prepared based on WIN V4 04 KGLWIN V3 51 Frame Editor V2 01 1 3 CHAPTER 1 OVERVIEW 1 2 FEnet I F Module Overview This user s manual describes the FEnet I F module 100Mbps for the GLOFA MASTER K series Ethernet is a Technical Standard designated by IEEE a universal group It controls the communication by using a CSMA CD mode and builds easy networks as well as has the ability to collect data at a high speed The FEnet I F module is an interface module to transmit data between higher systems such as a higher PC device or between PLCs by using the PLC media 10 100BASE TX 100BASE FX 10BASE 5 100Base FX Fiber Optic 0 u 100Base TX The communication methods by the FEnet I F module are numerous For more information please refer to CHAPTER 4 System Configurations 1 Connection between Ethernet and higher PC HMI 2 Data exchange monitoring between Ethernet PLCs 3 Memory management sending receiving control of a lower device through Ethernet CHAPTER 1 OVERVIEW 1 3 FEnet I F Module Features GLOFA Master K FEnet I F module supports TCP IP and UDP IP protocol and has the following features Common RAM et PLC LINK INTERFACE LINK I F High sp
46. L K F T C D S W Double Word D MD QD ID Long Word L ML QL IL Table 10 3 2 Data number according to the variable 1 Data number means that H04 is that there is hexadecimal HEX data of 4 bytes Double Word If the data type is Bool the read data will be indicated by one Byte HEX That is if the BIT value is 0 the data is indicated as h 00 while if it is 1 as h 01 4 Response format in the case of NAK response Format Heade eel Reserve Error code Data type Error state name d area Hex 1 Byte Code h FFFF h 0055 h 0002 h 0000 Ex the value not 0 1 An Error code indicates various types of error by one byte of HEX For further information please refer to the Appendix error code Table 5 Ethernet data protocol example 1 Direct Variable individual read request frame data type Byte variable number 3 variable name MBO MB100 MB500 Numb Length of umber oO data variables Command 00000000 OO e0 91 08 01 02 00 50 da OO Sa 84 4f 40 00 80 06 19 Sb be 08 9b 07 d4 O02 8c dc le b1 09 f3 00 00 deja 49 Length of variable name 92 3ale9 08 00 45 00 Piahana Es 40 d2 ce 5b b5 d2 ce a la dc OS5idb c1 9a 50 18 Bi P 53 2d 47 dcl4f 46 41 LGIS GLOFA 54 00 0 3 T 30 4MB0 MB100 _ MBS00 00000060 Variable name 10 12 CHAPTER 10 DEDICATED COMMUNICATION 2 Direct V
47. Network Enable Link it will be look like the following figure Link Enable Setting lv H SLink1 cancer He Figure 12 1 29 Link Enable setting 10 After changing the PLC mode to RUN select online ink parameter monitor High Speed Link 1 and verify if the communication for the setting parameter is operating normally Run_Link 0 Link_Trouble 0 HS Link1 No ScanType Send Period PLC Area Size Mode Trs Error 0 Local1 Send1 D 200ms So MvVO 10 1 0 1 Local0 Receivel D 200ms OsMyvyOO0 10 2 0 0 0 3 0 0 0 4 0 0 0 5 0 0 0 Figure 12 1 30 High Speed Link monitor screen The above screen shows High Speed Link 1 If the RUN LINK communication is 1 and the link trouble is 0 the communication is normal Verify High Speed Link 2 as well In order to verify the communication value select View Variable monitor window and select the direct variable MW100 200 or variable RX_SRI_A B RCV_A B HS_RDATA for monitoring The following Figure shows the High Speed Link receiving Function Block monitoring screen 12 20 CHAPTER 12 PROGRAM EXAMPLES A HS2MO0 1 I gt tal 5 RX_SRI_A RX_S 9 RI_A RCV_A O RCV_ 5 Al RX_SRI_B RX_S 9 RI_B RC _B O RCV_ HS_RDATAC 0 REY yA IP T E EN HS1MOD 1 MOI Figure 12 1 31 Monitoring the High Speed Link receiving Function Block 12 1 3 Function Block service between FEnet PLCs The following system shows an
48. Pe Cancel Figure 12 1 61 Basic setting screen 12 50 CHAPTER 12 PROGRAM EXAMPLES Preparing sending frame Enamat Eriin x Frama Hama SEND TafAs r D bemediate Aer Serding Seqmen 7 Sajian T Tepe CONST fe ADEN Tepe MONE SEND_GM1 Segment 2 Seqeenl E Tome anna Swe Gog tow WOE Segment J Segment 7 Ty Two NONE Segment 4 Segmen i tree none Preparing receiving frame Emad Editor x Fame Mame ACY Tavis immediate es Meceiving Ase fequent 1 Tye CONST 2 Segment 2 Tepe ARRAY Segment 7 tye NONE z Tangent 4 toe NONE k ASCH See fo tree none Segment 5 Te Segment amp Tame wone Segment T rpe none Fmgmani A Tree none e re Figure 12 1 62 Sending receiving frame setting screen 12 51 CHAPTER 12 PROGRAM EXAMPLES 2 Prepare the user program insert library DUAL_FB 1FB before using Figure 12 1 63 Sending receiving program The difference between the connection Function Block used in a single module and a redundancy Function Block is the output when channel enable has output from two places instead of one This allows channel enable to be processed in two FEnet I F modules If one or both are enabled this is used as the REQ condition for the sending receiving function 3 After compile make write using the PLC For operation verification in the case of sending th
49. The increase of the serial fo T200Ms SERIAL INI OUT SERIAL SERIAL INI OUT IC should match with the sending period ot the sending parameter The Variable iN SERIAL is INT type Program preparation when receiving _T200MS match with the receiving period of the HS_RCY receiving parameter T200KS HS _HS1MOD 1 _HS2MOD 1 receives the data when ip EN EN the destination station mode is 1 i _HS1MOD 1 MO RX_SRI_A B the variable indicating the serial no ot the data received from the FEnet I F module MW100 UINT type variable RCV_A MW101 MW110 10words RX_SRI_B MW200 1word RCV_B MW201 MW210 10words HS_RDATA RCY DATA _HS2HOD 1 RCV_A B data area received from each FEnet I F MOD_ module UINT Array type variable Set larger B than the receiving data size RX_SRI_A RX_S HS_RDATA area to save the data to receive last RI_A among the data received from each REVA RCV FEnet I F module MW1 UINT Array saa i fics type variable Set more than the receiving data size and set as the same RX_SRI_B RS size as RCV_A B RCV_B ACY Memory address designation area for the variable BI RX_SRI_A MW100 1word Figure 12 1 28 Serial sending program and High Speed Link receiving Function Block 12 19 CHAPTER 12 PROGRAM EXAMPLES 8 After Compile Build All of the above program write it in the PLC 9 After selecting Online
50. _RCY_SERY_CNT_M 7 0 Figure11 2 2 Receiving count using the slot of dedicated service 1 In order to use the FEnet Reset function the user must set the relevant flag value in the variable monitoring window To reset it it is required that the relevant flag is set after waiting for at least 5 6 seconds time required to reset FEnet module Otherwise the FEnet module will not work normally which will result in resetting the whole system CHAPTER 11 RESETTING THE COMMUNICATION MODULE IN RUN MODE 11 3 Reset Program 11 3 1 Forced reset of flag through monitoring This is the method for a forced reset of the communication module through the GMWIN program monitor without preparing a separate program It is possible to reset ON OFF by registering only the monitor variables _FENET_RESETx If this value is ON the RESET of the FEnet I F module will be performed If the RESET is performed normally the value will be cleared to 0 If it is not cleared this means that the service has not performed normally Figure 11 3 1 shows the procedure to reset the communication module In order to register the RESET flag click GMWIN View gt variable monitor window view Compile Online Debug Tools Windo Toolbar Y Status bar Full Screen Be Project Output A Variable Monitor ID T O Monitor Link Parameter Show Memory Comment Ctrl M Properties Ctrl Figure 11 3 1
51. address editor Did you set the correct media to be used by using frame editor Download after setting the correct media to be used 10B5 2 10B T gt Did you install the correct cable suitable for the setting media Check the cable installation and connection b gt Is the hub end resistance or 12V power for media correct in case of 10 Check whether the media accessories are used correctly BA8E5 Is the active state of the remote station normal Correct the abnormal state of the remote station Its a hardware error of the communication module Contact the A S center 13 8 End CHAPTER 13 TROUBLE SHOOTING 4 Error code E02 01 Interface Error with the CPU During Operation Interface error during operation heck the CUP error type Is it an interface error of the communication Is it an error of the I O or the special module Perform the troubleshooting Yes for the CPU Install the error module gt correctly ls the communication No Install the communication module installed correctly in Hodal rieti po the main base Ogle COMSCUY Is the applied power Verify the applied power normal voltage Change the installation environment suitable for
52. all the received data shall be saved in the receiving buffer of FB Thus the user should set the data size to be received as the same or larger ECMx_CHy_FLAG z explanation x slot position of the module where the communication module is installed 0 7 8 slot rack y channel no set in E CONN FB 0 15 z receiving frame no of each group set in the Frame Editor 0 7 The user should add the program to verify if the actual communication is going well Since this type of program is useful for communication error and actions it is needed to add when preparing the program After saving the file compile After the completion of compiling select connect from the online menu and download the program After downloading the program operate the program and verify the results by monitoring it If an error occurs verify the type of error and change the PLC mode to STOP Delete the cause of the error and rerun from the above 10 item i N l _ 12 30 CHAPTER 12 PROGRAM EXAMPLES 12 1 4 Function Block service among another manufacturer s module PC LGIS FEnet I F module The system configured like the one below makes the network in two ways 1 HMI GLOFA FEnet DRIVER Client gt GLOFA GM2 dedicated service server GLOFA GM2 Function Block Client gt another manufacturer s PLC server 2 HMI Client gt GLOFA GM2 Function Block service server GLOFA GM2 Function Block Client gt another manufa
53. and MK series refer to the relevant technical manuals 3 If the data type is Bool the data is HEX and is indicated by one byte That is if the BIT value is 0 it is indicated by h 00 If the BIT value is 1 it is indicated by h 01 3 Response format in the case of an ACK response in the PLC Format Reserved Error Block Header Command Data type name area state number Code Ex rro059 h 0002 h 0000 h 0000 h 0001 1 Block number This is the block number normally written 10 19 CHAPTER 10 DEDICATED COMMUNICATION 4 Response format in the case of a NAK response ae Format Data Error code Header Command Error state name type A Hex 1 Byte h FFFF code Ex Ex h 0059 h 0002 h 0000 the value not 0 1 The error code is HEX and indicates the error type by one byte content For further information please refer to the APPENDIX error code 5 Ethernet data protocol example 1 Direct Variable individual writing request frame data type Byte variable number 3 data 0x1122 0x3344 0x5566 variable name MBO MB100 MB500 From the following protocol the data type is 0x0002 and set by word type Accordingly it may receive the error but it is required to change the data type to byte 0x0001 to receive the data Length of Number JE Variable Length Word type Byte type 00000000 00 rs 91 08 01 02 00 50 daj92 3a e9
54. between two FEnet I F modules composed of communication redundancy The system Figure 12 1 50 configuration shows an example of a network redundancy by using two FEnet I F modules in a redundancy CPU and GM3 CPU H gh Level IP1 165 244 149 108 IP 165 244 149 110 IP2 165 244 149 108 E 07 IBM Cofnpatible 1 SLOT 165 244 149 109 1 SLOT 165 244 149 110 2 SLOT 165 244 149 109 2 SLOT 165 244 149 110 Figure 12 1 50 Example of a redundancy system The program method for a redundancy CPU is the same as the existing method but the single CPU makes the program by using the redundancy Function Block The table below describes the example to send the data by using TCP IP and the data contents for communication Reading Saving Size Channel Sending receiving structure area EE a Redundancy CPU Sending fraame SEND_100 S DATA 400 165 244 149 108 Receiving frame RCV_200 S047 R_DATA el saves lasts san loa 165 244 149 109 Receivingtamencv rpata 10 1 12 38 CHAPTER 12 PROGRAM EXAMPLES Path Connection method Sending frame Receiving frame Redundancy gt GM3 TCP_ACTIVE redundancy SEND_100 based Redundancy lt GM3 TCP_PASSIVE redundancy RCV_200 based GM3 gt redundancy TCP_ACTIVE GM3 based GM3 gt redundancy TCP_PASSIVE GM3 based Table 12 1 6 Defining of the sending receiving data 1 Preparing the Red
55. date hr Clock data Date hour F0550 F055F Clock data min sec Clock data min sec F0560 F056F Clock data 100yr day Clock data 100yr day F0570 F058F No use F0590 F059F Error step save Save the error step of the program F0600 F060F FMM detail error Information save Save the FMM related error information F0610 F063F No use 2 M area relay list Contact Function Description M1904 Clock setting bit ON when writing the setting in the RTC area For further information refer to the clock function M1910 Forced I O setting bit Forced I O setting enable bit For further information refer to the forced I O function 1 F area contact is a Read only relay which is used as an input contact in the program but not used as output M area contact is available to read and write and is used as an I O contact in the program A 5 APPENDIX A 2 2 Special data register High Speed Link 1 Detail of the High speed link flags x K1000S 9 K300S K200S 4 m high speed link type no This indicates that all station is acting normally by the parameter set in high speed link and is ON under the following condition When all station set in the parameter is RUN RUN_LINK mode and no error Dx600 0 HSmRLINK information of When all data block set in the parameter high speed link communicates normally When parameter s
56. fiber optic cables if a finger print or polluted material is attached to the cable end the attenuation occurs which may cause an obstacle in communication 2 16 CHAPTER 3 INSTALLATION AND STARTUP CHAPTER 3 INSTALLATION AND STARTUP 3 1 Notices in Handling 3 1 1 1 Notices in handling For the system configuration of the FEnet I F module it is required to verify the following items before installing Check basic factors required for the system configuration and select the correct communication module for the unit Select the cable to be used for the communication module only one from 10 100BASE TX 100BASE FX and 10BASE 5 is available Check for any foreign substance on the base connector where the module is to be mounted prior to installation of the communication module Verify if any connector pins of the module are damaged All communication modules cannot be mounted on the extended base Some may be securely mounted to the main base at the slot positioned nearest the CPU While the module installation the unconnected communication cables might have some interface errors The cables to be used for this communication module are 10 100BASE TX 100BASE FX 10BASE 5 Only one should be used for the installation 7 Select the ensured product for the switch hub and cable necessary for FEnet I F module communication 3 1 CHAPTER 3 INSTALLATION AND STARTUP 3 1 2 Materials requ
57. is downloaded in either CPU A or CPU B both CPUs will share the contents Basic Parameters IP address HS station no media Basic Parameters x PLC Type GMR IP Address 165 244 148 311 Subnet Mask 255 255 2550 Gateway o000 DNS Server o000 HS Station No 0 Retry Limit 2 Connection No 2o TTL 5o Connection Waiting Time Out jo Disconnection Waiting Time Out ho B Rx Waiting Time Out Media AUTO x u i Zi Cancel Figure 12 1 58 Basic setting screen 12 47 CHAPTER 12 PROGRAM EXAMPLES Preparing sending frame Frome Hame SEND 100 TAa fei q ltmdiale Rea Sending Smgnini 1 Segment 9 te Basi Twe NONE SEND OMM Segment 2 Segment hh tme AY see Fa ve ROWE Segnent J Segnent 7 tree xan tree a Segment d Segment amp Tepe Tepe HOME C canal Preparing receiving frame Enel dag x Hame Hant Cw _ an0 EUSE littemthate Aa Hereby Ainai Segment 1 Sequim Typa ASE Type PEND GWT Segment 2 egma b tye ARRAY ice ag owe a Segmiznl 3 Snyimend T Type NONE Tipa NOHE Segment ege ye noe Tyee Nowe Lm _ im Figure 12 1 59 Sending receiving frame setting screen 12 48 CHAPTER 12 PROGRAM EXAMPLES 2 Prepare the user program insert library COMMUNI RFB before using Figure 12 1 60 Sending receiving program 3 After Compile gt Build All write to the PLC For oper
58. min e Plenum Cable Vertical installation 3 6 i UL 1666 Riser Test CM e General type e Unrestricted Non Plenum Cable e UL 1581 VTFT Test e limited use CMX 1 kW apes Unrestricted Non Plenum Cable e UL 1581 VW 1 Test Point 1 There is CMG between the CM and CMR classes but generally UTP Cable is not used for LAN Cable Ex CMG CAS FT4 VTFT Test similar to CM of UL 1581 gt Burner angle horizontal gt 45 upward and sample condition 1 2 interval arrangement gt bundle of 6 x 6EA is different kW Less than CMR 150 kW Unrestricted Non Plenum Cable kW 4 Category 5 twisted pair cable UTP example CTP LAN5 max Insulation resistance MQ km min Voltage resistant Sharacterishie Q 1 100MHz impedance Attenuation Less than dB 100m Near end crosstalk Less than attenuation dB 100m 2 15 CHAPTER 2 PRODUCT SPECIFICATIONS 2 4 3 Fiber optic cable Items Value Twin strands Multimode fiber optic cable Cable T TIRS Twin strands of Multimode fiber MMF Connector SC Type Connector Diameter of fiber optic 62 5 125um 62 5um fiber optic core and 125um outer cladding Use wave length 1350 nm Attenuation Less than 2dB 1000m Nearend crosstalk Less than 11dB attenuation 1 Since the communication module connection cable type depends on the system configuration and it s environment consult with experts before installing 2 For
59. more information please refer to section 6 2 Frame Editor The following figure shows the initial screen of frame editor CHAPTER 1 OVERVIEW Enet Editor NONAME Jof x File Edit Online Option Help Group Frame List Ea Send Delete Edit Frame Information LINK FENET 1 5 3 FEnet I F Module Version Verification Before using the FEnet I F module verify the version of the corresponding module The function can be limited partially according to the version used so please refer to version compatibility table of the CPU and communication module before configuring the system The following shows 2 possible ways to verify the product version 1 Verification through GMWIN KGLWIN software This is a method to connect via online directly to the communication module and read the information from it If it is normally interfaced with the CPU the information will be displayed like the following figure CHAPTER 1 OVERVIEW Base OSlot 1pecial Module Informati R Special Link module additional information FEnet03 1 50 First connect to GMWIN and click the menu Online gt I O Modules gt I O Info If you click the slot where the corresponding module is installed the version information of the module will be displayed 2 Verification using the product case label Each communication module has an external case with the module information attached In the case when online verification is
60. not possible it can be used to verify the version after removing the module Bru G3SL EUTB V1 can WO E0000 4 86212172895 On the back side of the product the label is attached and displays the product model name and version CHAPTER 1 OVERVIEW 1 6 Notices in Using When you install this equipment please give special attention to the following for reliability and safety of the system Item Classification Contents Temperature Conditions When installing the equipment the ambient temperature must be maintained between 0 and 550C due to the use of degauss The equipment should not be exposed to direct sun light Solutions If the temperature is too high a fan or air conditioner should be installed If it is too low the temperature should be raised Dew Formation Conditions Dew should not form due to a sudden temperature change Install it in the water proof and dust proof control board Solutions Frequently switching the power On Off can cause the formation of dew caused by a sudden temperature change In this case the switch should stay ON at all times Shock Conditions Do not install the equipment in a place where a shock or vibration is applied Solutions In the case of a lot of shocks and or vibrations a protective rubber should be installed to remove these shocks and or vibrations Gas Conditions Install it in a place
61. of 50mm from the line path when carrying a large volume of power such as a power line 2 For cable end treatment or manufacturing consult with the appropriate experts before installing As the fiber optic cable is subject to impact pressure bending stretching etc caution should be used when handling 3 8 CHAPTER 3 INSTALLATION AND STARTUP 3 4 Startup The end of the 10BASE 5 cable should be connected by end resistance If there is no end resistance there may be an error in communication After connecting the communication cable apply the power and check if the LED is active normally If normal download the relevant program by GMWIN KGLWIN to the PLC and execute the program 3 4 1 Notices for the system configuration 1 IP addresses should be different from each other including this module If the same addresses are connected a communication error may occur leading to communication problems The HS_Link station no of all stations will also be different from each other in order to use the HS _Link service 2 Use the communication cable as specified If not a serious error may occur to communications 3 Check the communication cable if disconnected or shorted prior to installation 4 Tighten the communication cable connector until firmly connected If the cable connection is unstable a serious error may occur to communications 5 If a remote communication cable is connected keep the cable far
62. sent from the destination station in DATA after reading the data as ara as DATA_LEN If the user wants to use the frame name _UDATA_RCV a channel using a string value named UNFMT_TCPxxx in METHOD in the E_CONN Function Block xxx is ACT or PAS should be set 7 12 CHAPTER 7 GMWIN FUNCTION BLOCK E A Program Example When receiving data from destination station using TCP IP This is the case in which FEnet module of the local station is installed in the slot number 0 and you receive data from destination station using channel number 1 It is assumed that channel number 1 is established using E_CONN Function Block LD CH_EN CALC TCP_RCV TCP_RCV REQ NET_NO 0 CH 1 FRAME RCV_FRAME ARR_CNT 10 DATA R_DATA In this program CH_EN is a result of establishing a channel in the E_CONN Function Block It is used as a contact to receive data even when the channel is established with the destination station RCV_FRAME is a frame to be received and it must be downloaded in FEnet module using Frame Editor 10 DATA_LEN is the number of data received and it is also the number of S_DATA types R_DATA is an ARRAY variable where data to be received is saved CHAPTER 7 GMWIN FUNCTION BLOCK 7 3 4 UDP_SEND Function Block Input REQ When it is at rising edge 0 gt 1 the Function Block is BOOL REQ ND executed NET_NO The slot number 0 to 7 in w
63. single CPU makes the program by using the redundancy Function Block The table below describes the example to send the data by using TCP IP and the data contents for communication Reading Saving Size Channel Sending receiving structure E a Es EN Redundancy CPU Sending frame SEND_100 S_DATA DATA 100 165 244 149 31 165 244 148 31 Receiving frame RCV_200 Pe R_DATA s GM1 CPU 1 Sendingtrame SEND__ s_baTa 2 o 165 244 149 32 Receiving frame RCV RDATA 100 o GM1 CPU 2 Sending frame SEND__ S_DATA 2 o 165 244 148 32 Receiving trame RCV_ RDATA 10 o 12 46 CHAPTER 12 PROGRAM EXAMPLES Sending Receiving frame frame Redundancy gt GM1 1 TCP_ACTIVE redundancy SEND_100 RCV_200 Path Connection method based Redundancy lt GM1 2 TCP_ACTIVE redundancy SEND_100 RCV_200 based GM1 1 gt redundancy TCP_PASSIVE GM1 based SEND RCV GM1 2 gt redundancy TCP_PASSIVE GM1 based SEND RCV Table 12 1 7 Defining of the sending receiving data 1 Preparing redundant CPU GMR CPUA program 1 Prepare the parameter and frame by using the Frame Editor and write it to each of the FEnet I F modules When writing convert the CPU mode to STOP and after the completion of writing change the power to ON in the case of using a public network the gateway address should be set The GMR redundancy CPU has CPU A CPU B on both sides If the parameter
64. sus sa o0 z oa isa s pa ors o oe esc oo 55 gt oe ao o A 8 APPENDIX Ascii code _ code e code Ascii code _ code NW Ascilicade code Hexad Decim Value Decim Value Hexad Decim Value Hexad Decim Value ecimal cima ecimal ecimal po 1 oa as so os 1 o 157 ov a v E poo f as_ se oo f s oe ise 2 iF os us s os _ 9 20 032 Space 60 096 21 61 097 22 098 ea Co aaaea 25 oz e5 e as 165 x es 29 a ee ee eee ers ae ea el ef fa e i Pan fom Te Pou a A 9 APPENDIX sa oss al ize z ea tes gt ro a0 a ecco ASCII code EEA eoe Hexad Decim Value Decim Value Hexad Decim Value Hexad Decim Value ecimal cima ecimal ecimal 123 za 187 POIRA 124 Pei eree 1 3 e i a e oss y 6 we 1900 a E 254 se ose gt ve oes gt a n e A oe oss APPENDIX A 4 Ethernet Technology Comparison Table Ethernet 10Base F Single Mode 10 Optic cable Max 2 5km 10Base 5 N 412m Half Duplex Ethernet 100Base Fx Multi Mode 100 Optic cable Bey 2km Full Duplex Gigabit Ethernet 100Base T 1000 Coaxial cable 25m 100VG AnyLAN UTP ATM 155 622 UTP optic cable LOO a o L FDDI Single Mode Optic cable 40 60km FDDI Multi Mode Optic cable APPENDIX A 5 Ex
65. table shows the relationship between the device Client requires the connection of the RS 232C cable connected to the GMWIN communication service of the GLOFA PLC network and the device Server connection according to the connection request Table 9 2 1 GMWIN Client and Server relationship 3 Direct Remote Connection step 2 in the PLC connected to Ethernet In Figure 9 2 1 if the GMWIN acting PC is connected to a PLC by network Remote Connection step 2 by Ethernet is available and the method is the same as remote step 1 An example of setting the connection option is shown below Olplinn aie Opie MoniovTehug Dolio Sei Foie Cimet O pion tener Opi Bumbar of retry a delhod oF Conna pon PS Hodari T OLOF AFELE FE OLOFA Mnat tor PE 7 Elhenel VER KDG Depth of Cormec igon Seting R emme 1 Matecck Type x P addosa Remotes 1 Ha118 02 74 Ramile Seating of Rance 2 bation Ma Hetevcrk Typs GLOFA FoetAr Signe Number o Hict 0 i a4 Figure 9 2 7 Direct Remote Connection step 2 in the PC 9 9 CHAPTER 9 REMOTE COMMUNICATION CONTROL 1 Notices in the remote step 1 step 2 connection 1 If the currently open project in GMWIN does not match with the CPU type that is connected by step 1 and step 2 it is not allowed to use the following menu items A Program and write each parameter B Program and read each parameter C Monitor D Flash memory E Link Enable setting F I O inf
66. the Common RAM Check after the power supply FB CMD ON during function block command service ON during high speed link service ON during GMWIN KGLWIN remote connection EIR a ON during dedicated service use ie a H W ERR ON when a fatal error occurs and the module cannot recover by itself poe fw o o poo fw poo fw a ny e o m ON in the case of 100Mbps communication 15 10 100 OFF in the case of 10Mbps communication or the cable is disconnected A 1 APPENDIX A 1 2 G6L EUTB EUFB LED marking LED No Module marking BUN ON when the power supply is normal and the initialization of the communication module is normal Blinks when the communication with the CPU module is normal ON or I F RUN OFF if an error occurs during the Common RAM Check after the power uppl FB CMD ON during function block command service ON during high speed link service PADT PC ON during GMWIN KGLWIN remote connection dedicated service TX Blinks when sending RX Blinks when receiving ON in the case of 100Mbps communication 10 100 OFF in the case of 10Mbps communication or the cable is disconnected A 2 APPENDIX A 2 Flag List A 2 1 Special relay 1 F area relay list Contact Function Description F0000 RUN mode ON when the CPU is in RUN mode F0001 Program mode ON when the CPU is in Program mode F0002 Pause mode ON when the CPU is in Pause mode F0003 Debug m
67. the case of an individual type Format Data Reserved Error Block Data Header Command Data name type area state number number Code h 000 Ex h 0055 5 h 0000 h 0000 h OOO1 h 0002 h 1234 Ye 1 block max 16 block E inthe case of an array type Format Data Reserved Error Block Data Header Command Data name type area state number number Code h 0055 h 0042 h 0000 h 0000 h 0001 h OO02 h 1234 1 Data number the byte number of data 2 If the data type is Bool the read data shall be indicated by one byte HEX That is if the bit value is 0 it is indicated by h 00 If the bit value is 1 it is indicated as h 01 10 17 CHAPTER 10 DEDICATED COMMUNICATION 4 Response format in case of a NAK response in PLC E individual array type common Format Data Reserved Error Header Command Error state type area code Code h FFFF h 0055 h 0002 h 0000 Ex value not 0 10 3 4 Individual writing of Direct Variable 1 Overview This function designates the PLC device memory directly and writes according to the memory data type It is possible to write the data in 16 independent device memories 2 Request format PC gt PLC individual variable writing request HMI gt PLC Size byte Command 2 0x0058 Write Request Refer to Data Type Table 2 2 Reserved area 2 0x0000 Don t Care Variable number Var
68. the installation environment Install the communication module correctly r Rerun the power J Does the same error occur Yes Is it acting normally lts an error of the communication module or a CPU hardware Contact the A S center Perform the troubleshooting for the relevant error 13 6 CHAPTER 13 TROUBLE SHOOTING 2 Error code E00 02 Interface Error Interface error Is the applied Power normal Check the power voltage Is the installation environment suitable for the spec No Change or supplement the condition of the surrounding environment according to the general specifications gt Is the communication module installed in the main base correctly Install the communication module in the main base correctly there an error on tt connector pin of the communication module Correct the connector pin lts an error of the communication module or a CPU hardware Contact the A S center 13 7 End CHAPTER 13 TROUBLE SHOOTING 3 Error code E01 01 Network Error Did you set the IP address by using frame editor Download after setting the IP address Did you set the subnet mask value by using frame Download after setting the IP
69. the prepared program in Figure 12 1 4 12 6 CHAPTER 12 PROGRAM EXAMPLES Figure 12 1 6 shows the High Speed Link information flag monitor View Link parameter wi Link Ork Trou 0 HS Link No Scan Tye Send Penod PLO Awa Size Mode Tre Error Cal Lical fend Diit Sah 2 0 1 Locall Recon Bit m TA a p i 0 fi i 0 0 i i i 0 g i u L Doe i D C m fi i 0 0 LE o i C a U U L s D S r mT T UR e i A ol Figure 12 1 6 GM6 High Speed Link 1 monitoring screen 5 Method to determine the speed of the High Speed Link The example system is a simple system with the communication module of 3 stations sending receiving data of 4 words per station Thus the sending receiving period setting of the link parameter can be calculated by the speed formula in section 6 6 High Speed Link speed calculation St P_ScanA C_Scan P_ScanB St High Speed Link max transmission time P_ScanA PLC A max program scan time P_ScanB PLC B max program scan time C_Scan max communication scan time P_ScanA P_ScanB is the scan time of GM2 GM3 PLC Assume it is assumes by 5ms each Select GMWIN online PLC information system system CScan Th x Sn Th data sending time per one station in the media IEEE 802 3 standard Sn Total Station Number total communication station number Assuming Sn 3 Th is 2 3 ms in FEnet CScan 6 9 Accordingly St P_ScanA 5
70. the station set in k data block of parameter Dx613 0 Dx616 15 A 6 APPENDIX 1 k is a block no and indicates the information of the 64 blocks 0 63 by 4 Words 16 blocks per 1 Word For example mode information _HSOMOD indicates the information of block 0 15 for Dx605 block 16 31for Dx606 block 32 47 for Dx607 block 48 63 for Dx608 Thus the mode information for block no 55 is indicated in Dx608 7 2 High speed link detail flag when m 1 3 High speed link type High Speed Link2 m 1 Dx620 Dx633 When m 1 3 comparing m 0 by simple calculation igh Speed ans MEA OTA formula the D area address is as follows Formula D area address when m 1 3 address High Speed Link4 m 3 Dx660 Dx673 of Table 3 20xm 3 Data link relay L area list x slotno n channel 0 15 L00000 L0007 Frame no received by channel 0 of slot no 0 LOOOO LOOOF Frame no received by channel 1 of slot no 0 L0010 L0017 Frame no received by channel 2 of slot no 0 _RCVO_ECM n L0070 LOO77 Frame no received by channel 14 of slot no 0 L0070 LOO7F Frame no received by channel 15 of slot no 0 _RCV1_ECM n LO080 LO5F Frame no received by channel 0 15 of slot no 1 _RCV7_ECM n LO560 L63F Frame no received by channel 0 15 of slot no 7 Slot no 0 is the communication module which is mounted on the no 0 place on the base not the slot no A 7 APPENDIX A 3 ASCII Code
71. to the table Run ON when the power supply and the on the right side initialize of a module are normal CPU I F ON when it can normally communicate RUN with the CPU module 2 FB CMD ON when the function block command service starts 3 HS ON when high speed link service starts 4 PADT ON when GMWIN KGLWIN remote service starts 5 PC MMI ON when dedicated communication STATION lt Station no service starts Rx 107100 ich 6e INA H W ERR ON when the module cannot recover from a fatal error by itself com arenos Fep wa Pio fo INA ae e o a OED 2 4 CHAPTER 2 PRODUCT SPECIFICATIONS 2 G3L EUFB ee lt 4 Model indication VF RUN ee LED Module front Petula lt LED indication mark Description HAW EFR refer to the table PICA ON when the power supply and the on the right side o RUN O initialize of a module are normal ON when it can normally communicate VF RUN with the CPU module 2 FB CMD ON when the function block command service starts 3 ON when high speed link service starts ON when GMWIN KGLWIN remote service starts PADT C MMI ON when dedicated communication Station no Ceo o starts indication switch Flash O S download connector Media aN EOR AE Blinks when sending the data p RX O Blinks when receiving the data 10 100 Communication speed of the media 2 5 CHAPTER 2 PRODUCT SPECIFICATIONS 3 G3L EU5B lt Model indicatio
72. trouble shooting related to error code E01 01 Is there any error in the network Change the CPU mode from STOP to RUN 13 16 CHAPTER 13 TROUBLE SHOOTING 12 Error code E05 01 GMWIN KGLWIN Communication Time out GMWIN KGLWIN communication time out Yes Check the cable cutoff or the Is there an error for RS 232C B connection cable connection No Reset the port to be used gt for GMWIN KGLWIN communication Was the communication port set correctly pe Is the contents set for the connection mode of project option correct ie Is the active state of CPU normal the connection mode Carry out the trouble shooting for the CPU Modify the setting contents of Da 13 17 CHAPTER 13 TROUBLE SHOOTING 13 Error code E05 02 GMWIN KGLWIN Internal Communication Error GMWIN KGLWIN internal communication error Check the cable cutoff and connection Is there an error for RS 232C cable connection Reset the port to be used for GMWIN KGLWIN communication Was the communication port set correctly Remove the CPU error by Referring to the CPU user s manual Is there a serious error in the CPU After disconnection shutdown GMWIN KGLWIN and connect again 13 18 CHAPTER 13 TROUBLE SHOOTING
73. used to communicate only with the appropriate destination station for a certain event In other words the Function Block can use a command frame that is compatible to communicate with another company s PLC The Function Block is especially useful when the user needs to send information to another station due to an error in the destination station It is also useful when the user wants to communicate the status of a specific contact input To use this type of communication the user can use TCP IP and UDP IP and 5 different types of Function Blocks The data volume used for the High Speed Link uses words 16 bits but the Function Block has Bit Byte and Words as its data volume Therefore the user can perform communication with each destination station according to the various data types used 3 Command Like Function Block the command is used when using MASTER K series To carry out the communication service dedicated sending receiving command is made 4 Dedicated Communication This service is a built in protocol in the GLOFA FEnet module The user is able to read and write information and data in the PLC by using HMI as a commercial program or a PC 5 1 CHAPTER 5 COMMUNICATION PROGRAM program written by user It is also a service used to download and upload PLC programs and to control the PLC with regards to running stopping pausing The user can use this service by means of TCP port 2004 It is influenced by the basic parame
74. user wants to skip data of RX frame without checking them only for RX c ARRAY displays the data that a user wants to send in Function Block If you select h FFFF as size Unit Byte in ARRAY it means that data are sent to destination station as much as they are given in Function Block But if other value than h FFFF is selected it compares data number given from Function Block and size defined in frame At this time if it is smaller than that used in the Function Block an error occurs Therefore you should set it the same or larger than that See the figure 8 2 1 C If you select OK after setting according to the order above frame name is registered in the frame list with the screen closed The Figure7 4 4 shows the relation of use between the Function Block and Frame Editor 7 19 CHAPTER 7 GMWIN FUNCTION BLOCK Enet Editor x Frame Name SEND_FRAME Tx Rx l Immediate Res Sending Segment 1 Segment 5 Type CONST jv ASCII Type NONE v GLOFA HEAD Segment 2 Segment 6 Type CONST v M ASCII Type NONE v FFD03020 Segment 3 Segment 7 Type ARRAY v Siz fog Type NONE v Segment 4 Segment 8 Type NONE Type NONE Emai Figure 7 4 3 Sending frame definition screen Enet Editor PPP ENT iofx File Edit Online Option Help Group Frame List ow ONT Tein REQ NDR NOR ASCII Conversion none se fide el 1 WET_ ER AR Add aa Send i ST Delete Main 00 SD 27H
75. 0 1 System Configurations GLOFA PLC A GLOFA PLC B GLOFA PLC C 210 206 91 188 210 206 91 189 210 206 91 190 Ethernet Network Desktop System Desktop System Figure 10 1 1 Ethernet system configuration diagram 1 High Level IP1 210 206 91 189 High Level IP2 210 206 90 189 Desktop System 000000 ReEoundalt D IP 210 206 91 188 ___ 3 SIDE P 210 206 90 1 8 210 206 91 190 ii 2101206 91 191 210 204 90 190 i Figure 10 1 2 Ethernet system configuration diagram 2 10 1 CHAPTER 10 DEDICATED COMMUNICATION Nigh leva td ien IP1 210 206 91 197 IF iziu zia 164 a gi IP2 710 706 90 188 i P2 2710 206 90 192 Figure 10 1 3 Ethernet system configuration diagram 3 High Level IP1 210 206 91 192 IP2 210 206 90 192 High Level IP1 210 206 91 189 IP2 210 206 90 189 eooo oo TT n 210 20 Figure 10 1 4 Ethernet system configuration diagram 4 10 2 CHAPTER 10 DEDICATED COMMUNICATION 210 206 91 194 210 206 91 195 210 206 91 196 210 206 91 197 C Li IBM Compatible IBM Compatible Desktop System IBM Compatible 000000 Figure 10 1 5 Ethernet syst
76. 0 in the registration list For TX Parameter High Speed Link 1 Item O Edit heer ba Station No Mode _ Block No i Send 1 C Remote C Receive Area Send period From eM I C waw fo D 200ms gt Size Vvord To CX WW a A eo 60 maj For RX Parameter Selecting 1 in the registration list High Speed Link 1 Item 1 Edit mStation type Station No Mode _ Block No Local Oo C Send 0 C Remote Receive Area Send period From Cerny WN TE WON D 200ms z To Sizevord E SMW O SW O KAN 7 11 cant ten 6 50 CHAPTER 6 HIGH SPEED LINK E The following is set if operation 1 to 2 is executed High Spanii Lita Link pet Hetenk pE GLOFAFEnal ma Dail alalar Hki Entry bed Mo Tae SendGecete Feni Ansa i Lora Seared Aimy iA 1 Larai Repere Dms l A ED ee Le Tom Area Serio E Select Close after the HS_LINK parameter setting of the first FEnet communication module For the second communication module set the HS_LINK via the process from A to E At this time select HS_LINK 2 and slot number 1 and save the saving area of the RX data MW200 It is not to be the same as the saving area received in the first module After setting the following screen appears High Spard Link Bii Type Dandi tecisk Maad am D Lets Fany ommmma TAYO 1 Ler Arrera Omme Ei F
77. 08 00 45 00 00000010 00 66 eb 4f 40 00 80 06 b2 33 d2 ce 5b bs d2 ce oe 00000020 Sbibe 08 a0 07 d4 02 97 b 7 d0 04 7c 00 b5 5018 0x 21 30 3d d0 00 00 46 47 doS 2a 47 e e 46 41 l0 LGIS GLOFA 00 00 00 33 00 00 00 22 58 00 02 A 2 Direct Variable individual writing response frame error Error status Error code anmannan 10 20 CHAPTER 10 DEDICATED COMMUNICATION 3 Direct Variable individual writing request frame data type Bool Bit 00 50 da 92 Sg dale 00000010 00 4d fd 4f 40 00 80 06 a0 4c d2 ce 5b b5 d2 ce MI A 0 00000020 5b be 08 a2 07 d4 02 9c 4d ea Ob d3 a0 5b 50 18 E R 00000030 21 8a ef b 00 00 We 47 49 53 2d 47 4c 4f 46 41 LGIS GLOFA 00000040 O0 00 00 33 00 00 11 00 00 09 58 00 00 00 00 00 3 Enea 00000050 O1 00 04 00 25 4d 58 30 01 00 O1 pn MO eee 4 Direct Variable individual writing response frame data type Bool Bit 00000000 00 50 da 92 3a e9 00 e0 91 08 01 02 08 00 45 00 Pes E 00000010 00 46 00 12 00 00 32 06 2b 92 d2 ce Sb bc d2 ce F 2 00000020 Sb b5 07 d4 08 a2 Ob d3 a0 Sb 02 9c 4e Of 50 18 0 0 N P 00000030 3e 80 46 61 00 00 4c 4 49 53 2d 47 4c 4f 46 41 gt Fa LGIS GLOFA 00000040 O1 84 01 11 00 00 Oa 00 00 66 59 00 00 00 04 O1 view 00000050 00 00 O01 00 TER 10 3 5 Continuous writing of Direct Variable 1 Overview This is the function to designate the PLC device memory d
78. 08 165 244 149 108 165 244 149 109 165 244 149 109 Redundant CPU system GMR CPUA Single CPU system GM3 CPUA Figure 6 3 3 A Redundant CPU and network redundancy for the GM3 PLC A user defines the data of RX TX as follows RX TX Structure Reading Area Block Number Redundant CPU TX 10words wmwo o o o Station 0 RX 59words MW100 Aside MWO TX 60word 1 GM3 CPU B side MWO i Station 1 ide RX 11words ons ee B side MW200 Table 6 3 3 A Data Definition Operation Order 1 Assign the station number of the communication module ex G3L EUTB use Frame Editor and connect to the communication cable Edit the user program edit by each PLC Edit the map of data RX TX see table 6 1 10 A Set the parameter in HS_LINK parameter setting of GMWIN 6 43 CHAPTER 6 HIGH SPEED LINK Perform Compile and MAKE in the compile menu Execute the program and parameter writing in the on line menu Seta suitable HS_LINK Enable for selecting number by selection off HS_LINK Enable in on line Change the mode to RUN in the on line menu Check the HS_LINK status through the link parameter monitor Ifan error occurs repeat the procedure from 1 Program editing of the redundant CPU GMR CPUA side A Select the first HS_LINK If the HS_LINK parameter is selected in the project after opening or editing the project for redundancy the follow
79. 1 210 206 91 192 Desktop System i GLOFA PLC D 210 206 91 191 Upper System 210 206 91 193 Figure4 1 2 GLOFA PLC Ethernet system dedicated network GLOFA PLC B 210 206 91 189 ii Ethernet system GLOFA PLC A 210 206 91 188 ii al Elgg aa Desktop System l PLC D of other companies 210 206 91 191 Upper System 210 206 91 193 Figure4 1 3 GLOFA PLC Ethernet system dedicated network another company s 4 2 4 1 3 System configuration via a dedicated network and another company s GLOFA PLC C 210 206 91 190 i j oon oon GLOFA PLC E 210 206 91 192 CHAPTER 4 SYSTEM CONFIGURATIONS 4 1 4 System configuration via a public network and a dedicated network Wideband monitoring system 1 Wideband monitoring system 2 191 100 105 1 191 100 105 2 Public Network Router or Gateway Deskto System 000000 GLOFA PLC A GLOFA PLC B GLOFA PLC C 210 206 91 188 210 206 91 189 210 206 91 190 Router or Gateway 000000 Ethernet Network 1 Desktop System Desktop System Local Monitoring System Local Monitoring System 10 206 91 194 10 206 91 194 Figure4 1 4 GLOFA PLC Ethernet system public network dedicated network 4 3 CHAPTER 4 SYSTEM CONFIGURATIONS 4 1 5 System configuration via a public network dedicated network and another
80. 1 3 1 1 Notices in handling 2 2 2920 2n2nc nnn ne none rence concen nen 3 1 3 1 2 Materials required for installation 3 2 3 2 Procedure for Product Installation up to Operation 3 3 3 3 Installation 7 7 7 7 3 4 3 3 1 10 100BASE TX installation 3 4 3 3 2 100BASE FX installation 3 7 3 3 3 10BASE 5 installation 3 8 3 Sta t pesee ei eee eee eiit eee ae eee aaa 3 9 3 4 1 Notices for system configuration 3 9 3 4 2 Checklist before operation 3 10 3 5 Maintenance amp ChecklistS 3 11 3 5 1 Daily checklist 3 11 3 5 2 Regular checklist 3 12 3 5 3 How to add remove the module 3 12 CHAPTER 4 SYSTEM CONFIGURATIONS 4 1 Network System Configurations
81. 10 CHAPTER 6 HIGH SPEED LINK PES Maximum number of Classification devices to be mounted GMR GMR CPUA B 4EA GM1 2 GM1 2 CPUA 4EA GM2 CPUB 8EA GM3 GM3 CPUA 4EA GM4 CPUA 2EA GM4 GM4 CPUB 4EA GM4 CPUC 8EA GM6 GM6 CPUA B C 2EA Table 6 2 3 A Relationship between the communication module and the CPU 3 Setting link parameter If you select the appropriate parameter on the basic screen for the parameter setting Figure 6 2 3 B the initial screen for the High Speed Link parameter setting appears like Figure 6 2 3 C High Speed Link1 Link set Network type GLOFA Fnet Slot a Self station No 0 Entry list No Type Send Receive Read Area Store Area Size 0 1 2 3 4 a 6 7 8 g 1 CHAPTER 6 HIGH SPEED LINK The initial screen for the Parameter setting is composed of Link Setup and Registration List and the method and function of the setup of each item are as follows A Setting the High Speed Link Setting High Speed Link is used to set up the basic items of the communication module to be set up in the parameter setting Select the Edit button in link setting Figure 6 2 3 C and then set the module type slot number and the local station s number respectively Figure 6 2 3 D High Speed Link 1 Set Network type C GLOFA Fnet GLOFA Mnet Cancel GLOFA Enet Help GLOFA Fdnet Network GLOFA Fdnet Cable GLOFA Dnet GLOFA Pnet Operatin
82. 2345 h 34 0x12 Ox89AB 10 6 CHAPTER 10 DEDICATED COMMUNICATION 10 2 3 Command list The commands used in the dedicated communication service are shown in the Table below Command Data Command Action code type Reads the data according to the data type of the Direct Variables These data types include Bit Byte Word Individual Dword Lword type or Named variables the named Request variables to read should be registered in the Access h 0054 variable area Response Reads byte type Direct Variables by block unit max h 0055 OntNUOU Ss Ao byte Reads the Array Named variables data Array to read the named variables they should be registered in the Access variable area Writes the data according to the data type of the Direct Variables These data types include Bit Byte Word Individual Dword Lword type or Named variables to write the Request named variables they should be registered in the Access h 0058 variable area Response Writes byte type Direct Variables by block unit max f Continuous h 0059 1 400 byte Writes the data of array Named variables Array to write named variables they should be registered in the Access variable area Table 10 2 1 Command list 10 2 4 Data types When reading or writing direct Named variables caution should be taken for the data type of the direct or named variables desired to read 1 Data types for the Direct Variables
83. 5 2 5 Connection completion screen b After connection is completed if you select write by online Figure 5 2 6 screen appears From this screen designate slot position frame and parameter that Ethernet communication module desired to write download is installed SiotNo E fS Option Basic Parameters C Frames Write CAI Cancel Figure 5 2 6 Write screen Classification Description SIAN Shows slot no that communication module of dedicated ot No communication is installed 0 55 setting available Basic Downloads only the contents set in the basic parameter parameters IP address HS station no etc Communicatio Downloads user definition frame Frames n option frame list al Downloads the basic parameter and user definition frame at the same time 5 8 CHAPTER 5 COMMUNICATION PROGRAM c If you select write from b please verify once again before writing the data V Write basic parameters j Cancel Figure 5 2 7 Write verification screen d If all procedure on the above are finished this means that frame file write is finished normally but the parameter value that FEnet I F module is active currently is the value downloaded previously Thus after downloading apply the power again or reset before using Otherwise it continues to run with the past value 2 Read Upload a Connects the CPU of main ba
84. Block 1 The Requirements REQ of the Function Block should be restarted after the previous execution is normally completed after NDR turns ON NDR Le Under communication internal processing time response wait time internal processing time about 50 60ms 7 5 CHAPTER 7 GMWIN FUNCTION BLOCK 7 3 Types of Function Blocks 7 3 1 E_CONN rome fe e tele Function Block Input EN The Function Block is executed when the level is 1 and it must keep 1 to remain in service _BOOL 5 NET_NO Slot number O to 7 where the communication module is installed This is _USINT E where the Function Block is transferred IP_ADDR The IP address of the the destination station STRING E a when establishing a channel as TCP_ACTIVE OOR Establishing a chhannel as TCP_PASSIVE it uses _UINT the module s IP address SD_PORT When establishing a channel it uses port _STRING of destination station with TCP_ACTIVE and it uses port of the local station with USINT TCP_PASSIVE METHOD When establishing a channel It determines system to activate with TCP or UDP Client or Server See the description below CH_NO Channel number to be established 0 15 Output NDR It turns ON at normal channel establishment ERR It turns ON at error occurrence after Function Block is executed STATUS It is a detailed code value of an error CH_EN Results of channel establishment
85. DR sends data to which port number S_PORT The operation of this Function Block is the same with TCP_RCV However the TCP_RCV Function Block displays the information of the destination station in the output Except this difference every operation is the same with each other it is also identical for both to use the frame name such as _ UDATA_RCV without a special specification of RX data form Therefore this Function Block s operation saves the received data in the specified variable in DATA when the received data from the established station is identical to the frame defined as FRAME It should be defined as an appropriate name in Frame Editor and downloaded in the FEnet module 7 16 CHAPTER 7 GMWIN FUNCTION BLOCK E A Program Example When receiving data from the destination station using UDP IP In this case the FEnet module of the local station is installed in slot number 0 and the user receives the data from the destination station using channel number 1 It is assumed that channel number 1 is established using the E_CONN Function Block LD CH_EN CALC UDP_RCV UDP_RCV REQ NET_NO CH FRAME U 0 URCV_FRAME ARR_CNT DATA URCY_FRA ME In the program CH_EN results from channel establishment in the E_CONN Function Block It is used as a contact to receive data even when the channel is established with the destination station URCV_FRAME is a f
86. Data Reserved Error Block Data Command Data name r type area state number number code l h 0123456 h 0055 h 0014 h 0000 h 0000 h 0001 h 0006 Ex 789AB data number means the number of byte of HEX type 4 Response format in the case of a PLC NAK response Format Reserved Error code Header Command Data type Error state name area Hex 1Byte Code E h 0055 h 0014 h 0000 h FFFF h 21 X 1 The error code is HEX and indicates the error type by 1 byte For further information please refer to the Appendix error code Table 5 Ethernet data protocol 1 Direct Variable continuous reading request frame data type Block variable name MBO data size 0x100 256 byte Number of variables always 1 Length of data Data type block OOfe0 91 08 01 02 00 50 da 92 3ale9 08 00 45 00 ear Sb be 08 9d 07 0 P 21 e4 67 9d 00 00 FelaagNSS 2d 17 ic at 4641 0 0 IGIS GIOFA 7 T 00 00 00 33 00 001 00 nf 25 Length of Data size to read variable 256 byte 10 15 CHAPTER 10 DEDICATED COMMUNICATION 2 Direct Variable continuous read response frame data type Block Data size 10 3 3 Reading of NAMED Variable 1 Overview This registers the variable name in the PLC program access variable and reads the data by using the registered name For the variable registration method please refer to the FEnet user s manual 2
87. ES Enet Editor PPP ENT B x File Edit Online Option Help Group Frame List GLOFA Receive 00 RCV_FRAME Add ASCII Conversion none Add Delete Edit Frame Information 02 IM_RESP Send 114byte Send ASCII GLOFA HEAD HEX FF030200 ARRAY 100 byte LINK FENET Figure 12 1 36 Example of the GM2 frame setting Enel Edin Fiame Piat SEM _FPRAHE IENE D lediaie Feed Sendang Segment 1 Sequel fi Tyee asc Tipe parane Segment 2 Segmesd amp type M asc Gia lt lt Sequin 3 Sey T Tye ARRAY See frog Troe NOE Seanent amp Seqmen Twee nome Tre none _ map e ae a GM2 sending frame 12 25 CHAPTER 12 PROGRAM EXAMPLES Fiame Nome RCV_FRAME Taffy Aeee si laminate Faz Hecerving Area Semen 1 Segment 5 Type const F ASDI Type HONE GLOFAHEAD i i SCS Segment 2 Segment 6 Tere ARAAY Sie fion Tere NONE Seqgmerd F Segmerd 7 Type MONE Tyne Sagmemi 4 Segment Type HOKE Tepe HOWE b GM2 receiving frame Figure 12 1 37 Frame Editor setting screens 2 Setting GM3 PLC GM3 establishes the channel by GM2 and TCP_PASSIVE If the channel is established CHOEN shall be set and the local station operates as the server The receiving verification flag under the TCP_RCV Function Block REQ condition _ECM1_CH0_FLAG 0 ON if it is receiving data to the receiving frame by channel
88. EUFB EU5B Higher than V3 2 GM2 CPUB GM3 GM3 CPUA G3L EUTB EUFB EU5B Higher than V2 7 GM4 CPUA Higher than V2 7 GM4 CPUB G4L EUTB EUFB EU5B Higher than V2 7 GM4 CPUC Higher than V2 0 GM6 CPUA B C G6L EUTB EUFB Higher than V2 1 GMWIN All model Higher than V4 02 Frame editor All model Higher than V2 0 2 Inthe case of using MASTER K Classification Available communication module Version K1000S K7P 30AS G3L EUTB EUFB EU5B Higher than V3 2 K300S K4P 15AS G4L EUTB EUFB EU5B Higher than V3 4 K200S K3P 07A B C G6L EUTB EUFB Higher than V2 4 KGLWIN All model Higher than V3 41 Frame editor All model Higher than V2 0 1 If the corresponding version is not matched normal communication it is not possible Before using make sure to verify the applicable CPU type and communication module version 1 8 CHAPTER 1 OVERVIEW 1 4 3 Available installation number of FEnet I F modules per CPU The following table shows the max installation number of FEnet I F modules per CPU type Please refer to the number of communication modules before configuring the system 1 In the case of using GLOFA Classification Max installation number GMR CPUA B 4EA GM1 2 CPUA 4EA GM2 CPUB 8EA GM3 CPUA 4EA GM4 CPUA 2EA GM4 CPUB 4EA GM4 CPUC 8EA POINT GM6 CPUA B C 2EA 2 Inthe case of using MASTER K Classification Available commun
89. Enet Slot 0 Self station No 0 Entry list No Type Send Receive Read Area Store Area 0 Local0 Send0 D 200ms Sowo Locali Receive D 200ms 1 2 3 4 5 6 T 8 9 1 0 F Now select Close after setting the HS_LINK parameter Write the PLC program after editing the user program and executing Compile gt Build All G Confirm whether the communication for the set parameter is normally operating by selecting On line Link parameter and Monitor HS_LINK1 after changing the PLC mode to RUN the appropriate program and HS_LINK parameter in the other station must be normally operating after the download as well 6 47 CHAPTER 6 HIGH SPEED LINK Run _ Link 1 Link_Tr ubie O HS Link 1 No Scan Type Send Period PLC Area Size Mode Tre Error Local0 Send0 O 200ms MWO 10 1 9 0 1 1 1 0 0 0 Locall Recelvel O 200ms W100 59 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 Va 0 0 0 0 0 0 0 0 0 In 1 1 1 the left 1 inside the parenthesis is the 0 0 0 0 0 0 0 0 communication status of the communication 0 0 0 0 9 0 0 0 module installed in the left GMR CPUA The 0 0 0 0 0 0 0 0 right 1 inside the parenthesis is the ono wate communication status of the communication oio DNO D o0 0 module installed in the right GMR CPUA The 0 0 0 0 0 0 0 0 0 T outside the parenthesis is the value which the pip i 0 0 0 0 0 0 operating OR status of the inside parenthesis yy yar q
90. HOM Ea ORT E Poe C META Frame Information 01 SEND_FRAME f 00 Send 214byte GLOFA HEAD HEX FFD03020 ARRAY 200 byte LINK FENET 0 cH 0 7 20 CHAPTER 7 GMWIN FUNCTION BLOCK Enet Editor PPP ENT BE x File Edit Online Option Help Group Frame List GLOFA j Receive ASCII Conversion none TCP_SEND CHOLEN TIS TCP_SEND NDR 00 RCY_FRAME m pi Add 1 NET_ ERR SEND_ERR NO Send Add SEND ST Delete 01 SEND FRAME Edit Add Frame Information 01 SEND_FRAME Send 214byte ASCII GLOFA HEAD HEX FFDO3020 ARRAY 200 byte LINK FENET Figure 7 4 4 Relation between Frame Editor and Function Block when sending 2 For RX Frame RX Frame GLOFA HEAD h ff030200 DATA 100 bytes 1 After you set frame name set it as Send in TX RX 2 Set segment Segment number 1 and 2 are set as Constant and number 3 is set as Array If a user want to save receiving data directly in CPU area without RCV Function Block he can specify CPU area as receiving area Example MB700 it provides only byte as data type See the Figure 7 4 5 3 Specify Response Frame immediately See the Figure 7 4 7 4 Immediate Response does not mean that it sends frame by demand of Function Block within program but means that it can send response frame to destination station as soon as it receives set frame fro
91. It turns ON at normal channel establishment A Function Block is used when you establish a logical communication channel with the destination station There are five ways to establish the logical channel in Ethernet communication The setting method depends on the each system service is as follows IP_LADDR SD_PORT METHOD CHAPTER 7 GMWIN FUNCTION BLOCK 1 TCP_ACTIVE GLOFA Ethernet module GLOFA Ethernet module Self Station Other company Ethernet The destination station s port Dest Port the destination station s IP address Dest IP_ADDR A channel to use TCP IP and it specifies the destination station for communication When communicating with the destination station the local station is acting as the Client for Request Data Destination station Response GLOFA Ethernet module Self Station Other companv Ethernet HM like a PO 2 TCP_PASSIVE The local station Source Port the IP address of the local station Source IP_ADDR A channel to use TCP IP and it is established for the station that demands its establishment the earliest This means that the local station is acting as the Server when communicating with the specified destination station Client Request Data for _ Destination station 1 Response HMI like a PC 2 TCP_SELECT 3 The port of the local station Source Po
92. K Hieh paad Link GLOFA Fred fet gation Ha SendiRecere 0 Local bendo DGam sh 1 Locale Recehed DTAS ri 3 4 5 5 T a a mM Aah Speci Linki GLOFA FErngi Jair staon kho hia Tron SendiReceve Fead Ana ore Aren 0 Lorala Senda Ciotns SDAD Locall Receneo D200 HAT C Parameters of the High Speed Link of GM3 Station 3 Figure 6 2 7 C Examples of parameter settings for the High Speed Link 6 33 CHAPTER 6 HIGH SPEED LINK The user downloads in the on line menu into the appropriate PLC and sets Enable Link after editing the program and parameters and Compile in the compile menu like the Figure 6 1 7 B and Figure 6 2 7 C The High Speed Link begins to perform RX TX according to the set parameters The user can start the system after turning on the PLC mode to Run If the user downloads parameters of the High Speed Link Enable Link automatically becomes Disable It is only possible to set Enable Link only during the stop mode of the PLC the user should download the station number into the FEnet module for each CPU in Frame Editor C How to determine the speed of the High Speed Link This example is for a simple system The communication modules of 3 stations sends and receives data of 4 words each The period setting of RX TX can be easily determined using the formula for speed calculation for a simple system in the Speed Calculation section o
93. LG Programmable Logic Controller Fast Ethernet I F Module Before using please read Safety Precautions thoroughly Please keep this user s manual in the place where the user can find easily LG Industrial Systems SAFETY PRECAUTIONS gt Read this manual thoroughly before using LGIS equipment Also pay careful attention to safety and handle the module properly gt Safety precautions are for using the product safely and correctly in order to prevent the accidents and danger so make sure to follow all directions in safety precautions gt The precautions are divided into 2 sections Warning and Caution Each of the meaning is represented as follows A Warnin Indicates that incorrect handling may cause hazardous g conditions resulting in death or severe injury f Caution Indicates that incorrect handling may cause hazardous conditions resulting in medium or slight personal injury or physical damage gt The symbols which are indicated in the PLC and User s Manual mean as follows A This symbol means paying attention because of danger in specific situations f This symbol means paying attention because of danger of electrical shock gt Store this manual in a safe place so that you can take it out and read it whenever necessary Always forward it to the end user SAFETY PRECAUTIONS Design Precautions gt Install a safety circuit external to the PLC that keeps the entire system sa
94. M11_RESET Remote VO station reset controli _FSM11_8T_NO Station number of correspondin _FSi12_lO_RESET Output reset control of remote Ii _FSM12_RESET Remote I O station reset controli _FSiM12_8T_NO Station number of correspondin _FSM13_lO_RESET Output reset control of remote I _FSM13_RESET Remote VO station reset controli g E Figure 11 3 3 Flag list Al Flee Arrey Varisli w Flag Array Variable Nams _FEMET_RESET_H Mame _FEMET_RESET_E Tre HARATA of LENT Tae ARRAYS G of SINT Comment Reset Fenet madula on the main gommen eset Fenet module on fie etension base slot nase slot Scone Inenut o i Scope npu o jiz Cama Cancel Heip Figure 11 3 4 Flag array variable registration slot designation _FENET_RESET_M lt x is an array type USINT and available to register the variables for slots 0 7 for the main base and 0 47 slots for the extended base CHAPTER 11 RESETTING THE COMMUNICATION MODULE IN RUN MODE Figure 11 3 5 shows the flag monitoring screen of the communication module installed in the main base Resource Instance variable name Variable value Flag _FENET_RESET_M O 0 Flag _FENET_RESET_M 1 0 Flag _FENET_RESET_M 2 0 Flag _FENET_RESET_M 3 0 Flag _FENET_RESET_M 4 0 Flag _FENET_RESET_M 5 QO Flag _FENET_RESET_M 6 0 Flag _FENET_RESET_M 7 0 Figure 11 3 5 flag value of main base communication module In order to reset the FEnet I F module ins
95. MWIN KGLWIN is active and is connected to the same network with PLC the Remote Connection step 1 with PLC through Ethernet available without local connection through RS 232C If the user uses GMWIN KGLWIN remote communication service it is available to connect easily without moving to far apart PLC as well as to solve the difficulty of reprogramming after installation as it enables to connect from other PLC even if PLC is located in the place difficult to access in space 9 1 CHAPTER 9 REMOTE COMMUNICATION CONTROL 9 2 GMWIN Settings and Connections All PLC connected by GLOFA network are available to connect each other by GMWIN communication service GMWIN Remote Connection is composed of connection step 1 and connection step 2 The following describes the connection method for remote step 1 and step 2 GLOFA PLC A GLOFA PLC B GLOFA PLC C 210 206 91 188 210 206 91 189 210 206 91 190 Remote Connection Step 1 RS232C Remote Connection Step 2 Figure 9 2 1 GMWIN Remote Connection Figure 9 2 1 shows the example of step 1 PLC B and step 2 PLC E connection in the system configured by two networks 9 2 CHAPTER 9 REMOTE COMMUNICATION CONTROL 1 Remote Connection step 1 when using RS 232C cable For Remote Connection step 1 GMWIN should be offline In this state select option from project menu the option dialogue box appears as follows Se
96. Mode an error occurs determine the cause of the error using the STATUS value in the Function Block Apply 1 to 7 process to the Destination Station 7 1 CHAPTER 7 GMWIN FUNCTION BLOCK 7 2 How to Use Function Blocks 1 FEnet Function Blocks The Function Block can be divided into 5 types according to its service Function Block Types When you establish a logical communication channel with the E CONN a destination station Sending data from the local station to the destination station using TCP IP TCP_RCV Receiving data sent by the destination station using TCP IP UDP_SEND et data from the local station to the destination station using UDP_RCV Receiving data sent by the destination station using UDP IP Table 7 1 2 Types of Function Block TCP_SEND 2 Structure of a Function Block Following figure displays Function Block Structure Instance name the name given to Name of the S distinguish various Function Blocks or the Function Block Function Blocks with the same function sy Output the results of the Conditions to input the A Function Block execution Function Block execution Output results can be shown on the left according the Function Block 7 2 CHAPTER 7 GMWIN FUNCTION BLOCK Common I O of each Function Block is described below Used for the start condition of the Function Block except for the E_CONN Function Block The Function Block starts at rising e
97. N after waiting for 5 6 seconds 2 When using the input condition by Open Contact I I instead of Positive Transition sensing Contact the communication module repeats the reset command until the contact is reset In this case the separate contact reset program is needed CHAPTER 11 RESETTING THE COMMUNICATION MODULE IN RUN MODE Figure 11 3 7 Shows the programming method using the reset input condition The RESET flag variable was used as the input contact PESEL swo peser s SW peser s sw2 SWS PU Ye ie pee EN E INI OU pes EN MOVE EN EN 4 MOVE EN EN m FENET _RE NI QUT SET_M 1 f MOVE aR FENET_RE SET_M 2 8 MOVE EN E ne FENET_RE INI QUT SET_M 3 Figure 11 3 7 Programming example for RESET If the reset condition is triggered through the input condition RESET_SWx the flag installed in the relevant slot will be set as 1 In this case the flag FENET RESET_M x shall be ON to reset the communication module and then cleared CHAPTER 12 PROGRAM EXAMPLES CHAPTER 12 PROGRAM EXAMPLES 12 1 GMWIN Program 12 1 1 High Speed Link service between FEnet PLCs The following Ethernet system describes the setting method of the High Speed Link parameter for data communication with the I O structure in Table12 1 1 FEnet dedi cated l Station 2 Station 3 Station 1 Figure
98. ND a a a 8 1 2 Mow 10 Us the Command sa se 2 35 55 oe Sacer ace esac gee aster ace ece aa sescce tesa 8 2 8 3 TYPeS Of COMMANA arii innie tec ec ence tae ease eaa a ea 8 3 oe AE Re a IO A PO Oe MR ese Or eS USE Ua 8 3 E3 TSND se eA ae SAA Ae 8 5 8 3 3 TROV Pca nese eae eek eee aes 8 6 33 MUSNO eee eer a tae eer pena een renee eee eee a eee 8 7 8 95 URGV eee eee nore Sante Nene CEO e ROE Re See RRO ASE REN See 8 8 CHAPTER 9 REMOTE COMMUNICATION CONTROL 9 1 OvervieW 9 1 9 2 GMWIN Settings and Connections 9 2 9 3 KGLWIN Settings and Connections 9 11 CHAPTER 10 DEDICATED COMMUNICATION 10 1 System Configuration 10 1 10 2 Dedicated Communication 10 4 10 2 1 OvervieW 10 4 10 2 2 Frame structure 10 5 10 2 3 Command list 10 7 10 2 4 Data types
99. NK 3 Function Block HS_FB RX program for the latest data of HS_LINK It compares data input through two communication modules using HS_FB in the redundant library of the Function Block and it selects the data entered first The description of each function is as follows Function Block Description Input EN Demanding Execution of the Function Block from the rising edge 0 gt 1 HS FB MOD_A Used to confirm if the HS_LINK parameter of Communication module A is in normal RUN BOOL EN END _HSxMOD y BOOL MOD_A MOD_B Used to confirm if the HS_LINK parameter of communication module B is in normal RUN BOOL MOD_B _HSxMOD y UINT RX_SRILA RX_SRI_A Specifies the word area with a serial number in RX data from the HS_LINK of communication module A RCV_AI Specifies the RX area from the HS_LINK of UINT RX_SRI_B communication module A ARRAY RCV_Al ARRAY RCV Bl RX_SRI_B Specifies the word area with a serial number in RX data from the HS_LINK of communication module B ARRAY 4 RCV_ RCV_BI Specifies the RX area of the HS LINK of communication module B Output ENO On if the Function Block is normally operating normally RCV_DATA Specifies the area to save the last data after comparing the HS _LINK input data of communication modules A and B EN It is active at the rising edge as a condition of HS_FB start MOD_A MOD_B It uses the HS_LINK flag _HSxMODJ y to confirm if the HS LINK parame
100. NK 6 2 4 Operation of the High Speed Link After the High Speed Link parameter is set the user can start high speed service by downloading parameters with the PLC CPU parameter If the High Speed Link parameter is changed first execute Compile from the Compile menu of GMWIN and start the High Speed Link after downloading parameters 1 Parameter download Basic Parameter VO Parameter HS Link Parameter Program Iv rameter and Programi V Upload Program canes Heo Figure 6 2 4 A Write screen A user should save the edited high speed parameter in the project file of GMWIN If Write is selected after the user is connected with the PLC the on line to the GMWIN main menu the Write screen of Figure 6 2 4 A appears If the user downloads the parameters by selecting the High Speed Link parameter or parameter and program in the figure the parameter is downloaded using the program or by itself At this time Enable LINK as operation information of the High Speed Link turns off Therefore if the program is downloaded the user must turn on the appropriate parameter again in the setting of Enable Link 6 18 CHAPTER 6 HIGH SPEED LINK 2 Operation of the High Speed Link Link Enable Setting H S Link 2 caner __ Figure 6 2 4 B Setting Link Enable If the parameter download is finished and if Enable Link is set in the on line menu of GMWIN the En
101. PS Fret SiL Sell elation Hii i Entry iist a SendRecere Read Area we Area 2D mi e Wh oo Figure 12 1 22 High Speed Link 1 selection screen 3 After selecting Link Set Edit from the previous screen carry out the link setting and then select verify High spem liak 1 S Pistaarh ts DLOFA Fna Cancel OL Os Brel Help GLOTA Greet O OLOFA Prat w GLORA Fen OLOFA Pema l GLOFA Finej alot Mo ja l 1 Delt cha Mo Figure 12 1 23 High Speed Link network type the slot number and station number settings 12 16 CHAPTER 12 PROGRAM EXAMPLES 4 Select 0 from Entry List and set the sending receiving parameter In the case of the sending parameters High Speed Link 1 Item O Edit Station type 7 Station No Mode _ Block No Local Send z C Remote C Receive rArea Send period From G KM C Aw C waw 0 Deo0ms z SizevVord To EC FN SA Bh C 60 cont eo Figure 12 1 24 Sending parameter setting screen In the case of the receiving parameters select 1 from registration list High Speed Link 1 Item 1_ Edit mStation type q Station No p Mode gt Block No o C Send o C Remote Receive mArea Send period From C 2 rm NA oT OU D 200ms gt To SizevvVord E MW O SON O Kaw 100 E cma n Figure 12 1 25 Receiving parameter set
102. P_SEND FB Operation Error TCP_SEND UDP_SEND function block operation error Is there a compile and link error Modify by referring to the FB command and language instructions Modify by referring to Appendix A 3 error code FB SD data number is smaller than the array data number in the gt setting frame Modify this number Is FB STATUS alue during operatio 84 The setting frame name does not match with the FB frame name Match it Exceeded the max data value during operatio number available to send Perform the trouble shooting related to error code E01 01 Is there any error in the network Change the CPU mode from STOP to RUN P 13 15 CHAPTER 13 TROUBLE SHOOTING 11 Error code E04 03 TCP_RCV UDP_RCV FB Operation Error TCP_RCV UDP_RCV function block operation error Is there compile and link error Modify by referring to the FB command and language instructions Modify by referring to Appendix A 3 error code The frame requested from the function block was not received Is FB STATUS alue during operatio The received data from the Yes remote station does not match with the frame requested from the function block value during operatio Perform the
103. Request format PC PLC incase of the individual type Format Data Reserved Block Variable Variable Header Command type area number length name code oe OUTPUT Ex h 0054 h 0002 h 0000 h 0001 Ea laa 1 block repeated setting up to max 16 blocks 1 Block number This designates how many blocks composed of variable length variable name are there in the request format A max 16 blocks are available for setting Accordingly the value of the block number should be h 0001 h 0010 10 16 CHAPTER 10 DEDICATED COMMUNICATION E incase of array type block number should be 1 Format Data Reserved Block Variable Variable Data Header Command name t we area number length name number code OUTPUT_A h 0054 h 0000 h 0001 h 000A h 0004 Ex 2 RR 2 Variable length This describes the number of letters in the variable name registered in the PLC access variable A max 16 letters are allowed This value converts the HEX to ASCII using a range from h 01 to h 10 3 Variable name The variable name is read and is an ASCII value within 16 letters For the variable name only numbers small capital letters and _ can be used The small capital character are used by distinction but since the PLC access variable name is written in all capitals it is required to use in CAPITAL letters 3 Response format in the case of an ACK response in the PLC Min
104. SEH Segment 2 Tyme ARRAY Soe fio Segnen J Te Segmen 4 Tyee none Figure 12 1 55 Sending receiving frame setting screen Sejai hh Tree wone Seqeent E toe wore Segment 7 Tyee none Segmen troe non _ mma 12 43 D inmediate Flew Sendang CHAPTER 12 PROGRAM EXAMPLES 2 Prepare the user program CON_S CON_R maintains 1 while connecting CHEN_SENDA CHEN_SENDB CHEN_RCVA CHEN_RCVB if connection is done 1 CON_SEND INSTANCE 1 IP ADDRESS 165 244 149 108 destination station IP address 2 SD_PORT 5000 destination station port 3 METHOD GLOFA_TCPACT channel establishment by the client CON_RCV INSTANCE 1 IP ADDRESS 165 244 149 109 local station IP address 12 44 CHAPTER 12 PROGRAM EXAMPLES 2 SD_PORT 5000 local station port 3 METHOD GLOFA_TCPPAS channel establishment by server S_DATA the saving area of the sending data current Byte Array type size 100 R_DATA the saving area of the receiving data current Byte Array type size 200 Insert library DUAL_FB 3FB before using Figure 12 1 56 GM3 sending receiving program The difference between the connection Function Block used in a single module and the redundancy Function Block is that channel enable has outputs from two places instead of one This allows channel enable to be processed in two FEnet I F modules If one or both are enabled this is used as the REQ co
105. Speed ink High Speed Link 3 High Speed Link 4 Figure 12 1 13 High Speed Link selection screen 12 11 CHAPTER 12 PROGRAM EXAMPLES 2 When High Speed Link 1 from the above screen is selected the following screen will be appeared High Spend Link GLOFA Prej Sair Staion Hii 2enURerais Read Area Store AmA Ln die bd bd Eo i Close Figure 12 1 14 High Speed Link1 selection screen 3 After selecting Link Set gt Edit from the previous screen set the link settings as follows High Speed Link 1 Set Network type GLOFA Fret GLOFA Mnet Cancel GLOFA Enet Help GLOFA Fdnet Network GLOFA Fdnet Cable GLOFA Dnet GLOFA Pnet GLOFA FDEnet GLOFA Rnet Slot No o Self sta No o Figure 12 1 15 High Speed Link network type slot no and station no 12 12 CHAPTER 12 PROGRAM EXAMPLES 4 After selecting 0 from the Entry List set the sending receiving parameters In the case of the sending parameters High Speed Link 1 Item O Edit gt Station type 7 Station No p Mode Block No Send 0 C Remote C Receive Send period D 200ms From f yM C Aw O Aaw fo Sizevord To AAAY oy OS IN j fro Cancel Help Figure 12 1 16 Sending parameter setting screen Area In the case of the receiving parameter High Speed Link 1 Item 1 Edit mStation type gt Station No p Mode Bloc
106. Station type gt Station No Mode Local fa C Send C Remote Receive Area Send period From C OG oT TONAL E AON E D 200ms Sizevord To E SMV O Sly O KAN 10 io 10 cont ton Receiving setup for station 0 6 3 CHAPTER 6 HIGH SPEED LINK High Speed Linki Link set Network type GLOFA FEnet Slat 1 Self station No Entry list No Type Send Receive ReadArea Store Area Size 0 Local0 Send6 D 200ms Locali Receive B 200ms So hiv O 1 2 3 4 5 6 T 8 g 1 0 Delete Copy Edit T Setup of sending and receiving for station 0 6 4 CHAPTER 6 HIGH SPEED LINK High Speed Link 1 Item O Edit Station type Local C Remote Block No p Mode C Send Station No Oo Receive Send period Area From r To AMN E N E MW O AN O KAW D 200ms SizewVord ie 100 High Speed Link 1 Item 1 Station type C Remote cae tte Receiving setup for station 1 Edit Block No m Mode Send Station No C Receive Area From To fe OMY E A a vs Wa I Send period D 200ms C Aw O Waw 1110 SizevV ord cae tte Sending setup for station 1 6 5 CHAPTER 6 HIGH SPEED LINK High Speed Linki Link set Network type GLOFA FEnet Slot 1 Self statian No Entr
107. TA types S_ DATA is an ARRAY variable in which the data to be sent is saved CHAPTER 7 GMWIN FUNCTION BLOCK 7 3 5 UDP_RCV Function Block _BOOL BOOL _USINT i USINT 0 U STRING STRING E ADD _UINT _UINT This Function Block is used to receive data Input Output Description REQ When it is at rising edge 0 gt 1 the Function Block is executed NET_NO The slot number 0 to 7 in which the communication module of the local station is installed and where the Function Block is transferred CH_NO Channel edited in E_CONN Function Block FRAME Frame to be received distinguished with capital small letters It must be downloaded in the FEnet module after editing in Frame Editor ARR_CNT The number of data to be received Number of data type equivalent to DATA DATA An area saving RX data Uses ARRAY NDR It turns ON during normal service ERR It turns ON during an error occurrence after the Function Block is executed STATUS It is a detailed code value of an error SIP_ADDR IP address of the station that sent data S_PORT Port of the station that sent data RCV LEN A number of received data of the destination station using UDP IP UDP IP communication does not establish a channel so it can receive any data that has sent from station to an open port Therefore it is possible in UDP_RCV Function Block different from TCV_RCV to know which station SIP_AD
108. Table American National Standard Code for Information Interchange ASCII code je ASCII code ASCII code ASCII code Fla ee eee Pdi ecimal ecimal ecimal ecimal NULL 40 064 128 192 A oar ort emer e a a o2 o2 srx 42 o e s 190 c2 104 os os erx 4s o67 o se ia f ca 195 A os ooa ear 44 os o ss 12 ca 106 A o oos ena 45 oo e as os 197 A Pak eee eee eee we ee o oo ae a om a e 15 s o 19 e os oos es 43 ove n 136 ce 20 o ooo ur ao os 1 197 oo aor oa oo uF sa om s aa toe ca e fon ur fa Lors fu Lae fio af cs ame e Poo Poe Pen Pao far f u Feo irt oofa i oc o so ove n 2 i or os si a om o of s cr aor i 10 o16 oe so o0 P oo 144 00 a8 0 11_ o17 ocr s1 ot a o 14s or 200 n os ocz se os r o i gt ve a 13 o19 vcs 53 oss s os 7 vs an o 14 o0 vce sa ops T o s oa a 15 o1 nak s os u o 9 vs ars o 16 o2 syn se ose v 150 ar 17 023 ere sz o7 w o 151 o ars 1a oe can se oss x 152 os a6 o 19 os em so oo v o sa o a7 ta o
109. Type of memory device for the GLOFA PLC M internal memory Q output input Types of memory device type for the MASTER K PLC P M L K C D T S F The Data type of the Direct Variables is indicated next to the Direct Variable indicated by the symbol Used example Bt MX0 QX0 0 0 IXO 0 0 PXO LXO FXO MB10 QB0 0 0 IB0 0 0 MW10 QW0 0 0 IW0 0 0 PW0 LW0 FW0 DW0 Double Word MD10 QD0 0 0 ID0 0 0 Long Word ML10 QL0 0 0 IL0 0 0 only GM1 2 available Table 10 2 2 List of the data types for the Direct Variable 10 7 CHAPTER 10 DEDICATED COMMUNICATION 1 For the MASTER K memory device only P M L F K have bit area 2 Data types for the Named variables only for GLOFA When reading or writing NAMED variables a data type is designated by the command type Data type ee es Table 10 2 3 List of the data types for the Named variables Array NAMED variable designates the value in command type according to array data type of each element Data type Array tint ag Arayusint ag Array int AP Table 10 2 4 List of data types for the array Named Variable 1 In case of reading writing a NAMED variable register the name in the access variable of the PLC program For the registration method please refer to the GMWIN user s manual 10 8 CHAPTER 10 DEDICATED COMMUNICATION 10 3 Command Execution 10 3 1 Individual reading o
110. Variable monitor window open Select the variable list for monitoring Here select flag and register the desired flag Resource Instance variable name Yariabl Variable Configuration global variable Resource global variable Instance variable Direct variable Flag Figure 11 3 2 Flag variable selection Figure 11 3 3 shows the flag list to reset the communication module CHAPTER 11 RESETTING THE COMMUNICATION MODULE IN RUN MODE In the case where the communication module is installed in the main base register FENET_RESET_Mx x slot no that the communication module is installed Flag List Register _ERCVS_FLAG Bit flag indicating that E mail has _ERR Operation error contact Close _FENET_RESET_E Reset Fenet module on the exte FENET_RESET_M AY Reset Fernet madule on the tai Help _FSMO_HS_RESET Bit flag for FSM high speed reset _FSMO_IO_RESET Output reset control of remote Ii _FSMO_RESET Remote VO station reset controli _FSMO_ST_NO Station number of correspaondin _FSM1_H8S_RESET Bit flag for FSM high speed reset _FSM1_lO_ RESET Output reset control of remote Ii _FSM1_RESET Remote O station reset controli _FSM1_8T_NO Station number of correspondin _FSM10_lO_RESET Output reset control of remote I _FSM10_RESET Remote I O station reset controli _FSM10_8T_NO Station number of correspondin _FSM11_lO_RESET Output reset control of remote II _FS
111. a ON when high speed link service switch starts oe lt 4 Flash O S PADT ON when GMWIN KGLWIN remote download service starts connector N h d di t d x ti Oc H i 5 PC MMI O i en dedicated communication pi lt External power service starts ie re 6 JNa 7 H W ERR ON when the module gamar e365 recover from a fatal error by itself j 8 a N A lt 4 Media connection connector RESE Blinks when sending the data p RX Blinks when receiving the data 10 100 Communication speed of the media 2 9 CHAPTER 2 PRODUCT SPECIFICATIONS 7 G6L EUTB de RUN TEH iF RUH Ti FE H px HS 10 10 GAL ETE STATION 4 COUN PORAST lt LED indication refer to the table on the right side lt 4 Model indication lt 4 Station no indication switch lt 4 Flash O S download connector lt 4 Media connection connector LED No 1 4 7 2 10 Module E RUN ON when the power supply and the initialize of a module are normal ON when it can normally communicate VF RUN with the CPU module FB CMD ON when the function block command service starts HS ON when high speed link service starts PADT PC ON when GMWIN KGLWIN remote service or MMI service starts Blinks when sending the data Blinks when receiving the data 10 100 Communication speed of the media CHAPTER 2 PRODUCT SPECIFICATIONS 8 G6L EUFB lt LED indication refer to the table on the right side lt Mo
112. able Link command is delivered to the PLC It is now ready for operation It is only possible for the user to set Enable Link only during stop mode of the PLC If the High Speed Link is operated by setting Enable Link the High Speed Link can be performed without any relation to the PLC action mode parameter and information of Enable Link that is backed up in the PLC CPU Therefore the data will be kept during the power failure Table 6 2 4 A describes the relationship between the PLC mode and the High Speed Link action EACAN Parameter Link Enable High Speed ET i A a ra Link eo PLCRun Run o iti is acting only at the time of PLCPause xX High Speed PLC Debug xe loi Link Enable Table 6 2 4 A Relationship between the PLC mode and the High Speed Link 6 19 CHAPTER 6 HIGH SPEED LINK 6 2 5 High Speed Link information 1 High Speed Link information function The High Speed Link service performs data exchange between 2 or more communication stations This offers the user the ability to confirm the High Speed Link service status using High Speed Link information It is possible confirm the reliability of data read from the destination station using the High Speed Link That is the communication module offers information by the High Speed Link when the High Speed Link is acting with the parameters set by the user after gethering the data collected until the fixed time Link information consists
113. ach CPU is as follows Each CPU allows the user to save the latest data between two data the data with the larger number of the two RX data received through communication module A and B from the other station In case that the data of only one side is received it compares it with the current serial number If the data is larger than that they will be saved Processing HS_LINK Information HS_LINK information registers the information made in the communication module A and B by OR operation in the flag of HS_LINK information If HS_LINK information monitor is executed the user can see the information of communication module A and B 2 HS_LINK in a single CPU system GM1 2 3 Dedicated Network of Ethernet 1 Dedicated Network of Ethernet 2 g1n3 1 9 g1n3 1 9 Q Q o ao F m m w w Redundant CPU system GMR CPUA Single CPU system GM3 CPUA Figure 6 3 2 B Configuration of a redundant system 6 39 CHAPTER 6 HIGH SPEED LINK The parameters with the same contents are performed in two communication modules of a single CPU system In the above figure two communication modules are installed and the communication parameter with the same contents are processed in both communication modules When setting the parameters in a single CPU system take the following into account 1 The station numbers of the two FEnet communication modules are the same Both networks have the same configuration The IP
114. address can be set the same or with as another Class 2 You should assign HS_LINK in each communication module Example 1 HS_LINK 2 HS_LINKs 3 Setting of each block set in High speed must be the same except for the RX area and slot number 4 The RX area of the blocks set in both parameters should not be duplicated between two parameters 5 The TX block number of the parameter set as a TX block must be at least 2 including the serial number TX of HS_LINK TX of HS_LINK sends data to each communication module after it fixes the serial number added by each TX period in the TX area set from the parameter in a single CPU For the serial number the data added at each TX should be written into the serial number position of the data in the user program RX of HS_LINK RX of HS_LINK reads the received serial number and data from both sides It compares their serial numbers and then edits HS_FB to save the latest data the one with the larger serial number of both data sets Information Processing of the HS_LINK Information processing of HS_LINK manages information of each communication module used in HS_ FB It does not send abnormal data of _HSx MODE HSx_RLINK HSx_TRX between the two communication modules between the two networks Therefore when editing the user program please edit it using the information flag of HS_LINK like the example in Chap 6 3 3 to ensure reliability 6 40 CHAPTER 6 HIGH SPEED LI
115. an HMI device it is possible to use dedicated service or Function Block Reading Sending receiving structure Saving area Channel used area PC_RESP_FRAME GM2 GLOFA_SEND_FRAME 165 244 149 47 Receiving frame PC_RCV_FRAME GLOFA_RCV_FRAME Table 12 1 5 Defining of the sending receiving data Figure 12 1 44 shows the example of channel establishment between another manufacturer s PLC and a general PC For the PC it is required to establish the channel with LGIS port 3000 PASSIVE For the other manufacturer s PLC the other manufacturer s port 4000 is required ACTIVE If this operation is completed normally CH_EN_PLC and CH_EN_PC will be set as 1 4000 0_PCH_ ORT GLOFA_TC PACT METH Oo GLOFA_TC CHILEN PPAS a T CONNECT ON E_CONN a EN NOR NDR CONNECT ONI F_CONN EN NOR NORI 1 NET ERR ERR i 165 244 1 NET ERR ERRI 149 56 IP_ASTAT ST NO oR U 165 244 148 31 IB ASTAT STI 3000 S0_PCHE CHOLEN 0 CHN 0 Operated by the Client for the other manufacturer s PLQ CHN Operated by Server for the PC _ CONNECT INSTANCE 1 IP_ADDR 165 244 149 56 operated by the server for High HMI 2 SD_PORT 3000 local station port no 12 34 CHAPTER 12 PROGRAM EXAMPLES CONNECT1 INSTANCE 1 IP_ADDR 165 244 149 31 operated by the client using another manufacturer s PLC 2 SD_PORT 4000 destination station port no Fi
116. ariable individual read response frame data type Byte 0x 1 GM2 Single type CPU Run Ox 84 CPU status Run slot position 4 Length of data 00 50 da 92 3a e9 00 e0 oooo0000 91 08 01 02 08 00 45 00 P 00000010 00 4 08 57 00 00 32 06 23 44 d2 ce Sbibe d2 ce O W 2 D P 00000020 Sb bS 07 d4 08 9b O5 db cl 9a 02 8c dd 0e 50 18 0 00000030 3e 80 94 1f 00 00 do 4 00000040 00 6f 55 00 f0I Doji02 00 00000050 0 COU 31 2 CS eee 03 m 09 GD 01 00 CD Error No of Data Data Status Block Lenath 3 Direct Variable individual read request frame data type Bool Bit variable number 2 variable name MX0 MX80 BB l 49 53 2d 47 dcl4f 46141 LGIS GLOFA 08 00 45 00 00000010 00 51 07 50 40 00 80 06 96 48 d2 ce 5b b5 d2 ce Q P H 00000020 Sb be 08 a2 07 d4 02 9c 4e al Ob d3 a0 fd 50 18 4 Direct Variable individual read response frame data type Bool Bit E 0 N 00000030 20 e8 2e 73 00 00 4c 47 49 53 2d 47 4c 4f 46 41 s LGIS GLOFA 00000040 00 00 00 33 00 00 15 00 00 Od 54 00 00 00 00 00 3 T 00000050 02 00 04 00 25 4d 58 30 05 00 25 4d 58 38 30 MEO 4Mx80 01 11 00 00 10 00 00 6c 55 O00 00 O00 4c df 46 00 00 09 0 10 13 CHAPTER 10 DEDICATED COMMUNICATION 10 3 2 Continuous reading of the Direct Variable 1 Overview This designates the PLC device memory directly an
117. ase that the devices connected to the network are far apart this is very convenient function to access easily each device from one place without moving the place GMWIN KGLWIN remote communication service function enables to accomplish the purpose by generating the Logical Path as follows GLOFA PLC A GLOFA PLC B GLOFA PLC C 210 206 91 188 210 206 91 189 210 206 91 190 Logical connection via RS 232C lt lt Logical connection via Ethernet communication module Remote Figure 9 1 1 Dedicated network for Ethernet Figure 9 1 1 shows the assumption of the network that in GMWIN KGLWIN RS 232C cable is connected to PLC 1 station and PLC 1 PLC 2 and PLC N are connected each other by Ethernet In order to access the content of PLC station 1 on the above do the local connection from online menu of GMWIN KGLWIN In order to access the content of PLC N station after completion of access disconnect the connection of PLC 1 station by using disconnect menu And then if you select PLC N station no N PLC 1 FEnet slot 2 from Remote Connection of online menu the logical connection by RS 232C and Ethernet will be completed This status is regarded as same as if it is connected by moving RS 232C cable to PLC N station which enables to do all function available in PLC 1 such as program preparation download debugging and monitor etc And if Ethernet module is installed in the PC that G
118. ation and other required information 23 PORT number A number used to distinguish a application on a TCP UDP Example 21 tcp Telnet 24 PPP Point to Point Protocol Telephone communication protocol that allows packet transmissions when accessing the internet It is namely the most popular protocol of the internet PPP allows a computer to be connected to TCP IP by using normal a telephone circuit and modem It is similar to SLIP but it demonstrates a much greater performance than SLIP because it contains modern communication protocol elements such as error detection data compression etc 25 Protocol Standards on the method of data transmission between the computers connected to the network It can also define the low and high level message exchange standards In other words interfaces between machines are described in detail by the low level for example which bit byte must go through the line or defines the high level message exchange standards as it transfers the file through the internet 26 Router A device used when transferring data packets between networks It transfers data packets to the final destination If the network is busy it waits for a moment and then retries It judges which LAN it should connect to where at multiple LAN branch points In other words it is a special computer software that manages more than 2 network connections 27 Server A computer software application that carries out some task on behalf
119. ation module of the local station installed in slot number CH_NO of the main base Since the frame name is specified in FRAME the user must specify the frame name downloaded into the Ethernet communication module from Frame Editor The use of UDATA_SEND that sends data without the TX data form is the same as that of TCP IP Therefore this Function Block first reads the data as far as ARR_CNT from the area saved in DATA Then it sends the data to the module port with the IP address specified in IP_ADDR with the frame form specified in Frame Editor 7 14 CHAPTER 7 GMWIN FUNCTION BLOCK E A Program Example When sending data to the destination station using TCP IP In this case the FEnet module of the local station is installed in slot number 0 and the user sends the data to the destination station using channel number 1 It is assumed that channel number 1 is established using E_CONN Function Block IES dli 4 150 Anim LEEND FF ARE 10 LD CH_EN CALC UDP_SEND UDP_SEND REQ SEND NET_NO 0 CH 1 FRAME USEND_FRAME ARR_CNT DATA In the program CH_EN results from channel establishment in the E_CONN Function Block It is used as a contact to send data even when the channel is established USEND_FRAME is a frame to be sent and it must be downloaded in the FEnet module using Frame Editor 10 ARR_CNT is the number of data to be sent It is also a number of S_DA
120. ation verification in the case of sending the redundancy CPU local station operates against the destination station GM1 by TCP ACTIVE The destination station establishes the connection to the local station and then operates the connection of the local station CON_S 1 In the case of receiving it operates the connection from the local station CON_R 1 That is in the case of connection operate the PASSIVE or SELECT side first and then operate ACTIVE 12 49 CHAPTER 12 PROGRAM EXAMPLES 2 Preparing single CPU GM1 CPUA program The difference from the existing previous program in the single CPU is the use of the redundancy Function Block 1 Prepare the parameter and frame by using the Frame Editor and write to the FEnet I F module When writing convert the CPU mode to STOP and after the completion of writing turn the power ON Prepare the program only for the first FEnet I F module The sending receiving communication of the second module is processed in the Function Block automatically The two FEnet I F module should be installed in the base continuously Basic Parameters IP address HS station no media Basic Parameters x PLC Type GM1 2 3 IP Address 165 244 148 32 Subnet Mask 255 255 255 0 Gateway 0000 DNS Server 0000 HS Station No I Retry Limit 2 Connection No 2 TTL 5o Connection Waiting Time Out jo Disconnection Waiting Time Out ho Rx Waiting Time Out 9 Media AUTO l HS Link HS Lin
121. away from the power line or conductible noise 6 Since the copper cable is not flexible it is to be diverged a minimum of 30cm away from the connector in the communication module If the cable is bent at a right angle this may cause cable disconnection or connector damage to the communication module 7 If LED operation is abnormal refer to Chapter 14 Troubleshooting to determine the cause and actions to solve the problem Contact the service center if the error occurs again 3 9 CHAPTER 3 INSTALLATION AND STARTUP 3 4 2 Checklist before operation 1 Communication module on the PLC Check items Installation and Is the installation and operation of the GMWIN normal inspection of Basic S W Is the installation and operation of the frame editor normal Communication cable Is connection and tab status of the communication cable connection normal If cable is connected Is each cable connected in an open loop type Is the communication module installed correctly on the main Module mounting Waser 2 Pre operation sequence This shows the sequence starting from the completion of the PLC installation to the pre operation Power on 1 Confirm input power 2 Check communication cable connection 3 Power on 4 Check if the power LED of the power module is turned on 5 Check the LED status of the CPU module If abnormal refer to Troubleshooting in the user s manual of each PLC model 6 Check if the LED status o
122. client Actually the channel is not bound 5 UDP_PASSIVE local station port Source Port local station IP address Source IP_ADDR This is the channel to use UDP IP and only a socket is bound For communication with the designated destination station the local station acts as the server Actually the channel is not bound 1 PASSIVE SELECT OPEN should start prior to ACTIVE OPEN UDP_ACTIVE UDP_PASSIVE does not establish the channel by the service and opens the socket only to connect internally As above the user should establish the channel suitable for communication characteristics according to the type of logical channel establishment The request for channel establishment shall be established based on the value of METHOD among operand input METHOD XXX_YYY or XXX_YYY_TTT less than 16digits string XXX group name prepared by frame editor YYY channel establishment type TCPACT TCPPAS TCPSEL UDPACT UDPPAS 5 types TTT sending receiving standby time for channel release O FF sec If there is no response from the opposite side within a certain setting time disconnect the connection by force for TCPPAS 8 4 CHAPTER 8 MASTER K COMMAND 8 3 2 TSND Modei Appication o o AVAILABLE DEVICE OPERLAN D TSND OP1 OP2 OP3 OP4 OP5 OPERLAND CH_NO The channel no established by the ECON Device
123. company s Ethernet system Wideband monitoring system 1 Wideband monitoring system 2 191 100 105 1 191 100 105 2 a Public Network H 4 Router or Gateway Desktog System Desktow System fo 50905 a5 intemet b GLOFA PLC A GLOFA PLC B GLOFA PLC C 210 206 91 188 210 206 91 189 210 206 91 190 Router or Gateway 200900 Etherne t Network 1 Desktop System Desktop System Local monitoring system 1 Local monitoring system 2 PLG Dat ee 210 206 91 194 210 206 91 195 of other companies 210 206 91 191 Figure4 1 5 GLOFA PLC Ethernet system public network dedicated network another company s system 4 4 CHAPTER 4 SYSTEM CONFIGURATIONS 4 2 GLOFA PLC Ethernet Redundancy System Higher level IP1 210 206 91 189 IP2 210 206 90 189 Figure 4 2 1 GLOFA PLC Ethernet redundancy system 1 HMI dedicated network Higher level IP 210 206 90 188 IP1 210 206 90 189 IP 210 206 90 188 IP2 210 206 90 189 O q O of _ os EH E IBM Cofnpatible IBM Cofnpatible Figure 4 2 2 GLOFA PLC Ethernet redundancy system 2 HMI dedicated network 4 5 CHAPTER 4 SYSTEM CONFIGURATIONS OU IP1 210 206 91 192 IP2 210 206 90 192 Desktop System 210 206
124. ction No 2 TTL 0 z l 5o Tera hdi Connection Waiting Time Out 20 fo a zl di Disconnection Waiting Time Out 10 Rx Waiting Time Out Media AUTO HS Lik Concel_ Figure 12 1 2 The basic settings of the Frame Editor screen Example of the GM2 Station 1 1 The High Speed Link setting mode can either select extended mode 200 WORD or the basic mode 60 WORD GM1 2 3 is set by 200 WORD GM4C by 200 WORD or 60 WORD GM4A B and GM6 by 60 WORD This mode describes the max data size of the High Speed Link that each CPU can support 2 For further information for Frame Editor please refer to section 5 2 Frame Editor 12 2 CHAPTER 12 PROGRAM EXAMPLES After completing the basic settings download the relevant frame by the PLC If download is completed reset the PLC CPU Slot No ETN 4 ie Option Basic Parameters C Frames Write All Cancel Figure 12 1 3 Writing the Basic parameter 1 For High Speed Link communication download only the basic settings 2 User program preparation HSIRLINK LHSTLTRBL _ MOVE N END e e AMO 11 OUT 0WO 1 0 Execute when the High Speed Link info is normal in the case that RUN LINK is 1 and LINK TROUBLE is 0 Figure12 1 4 Example of the user program GM1 2 3 common Figure12 1 4 shows an example of a user program If the High Speed Link is normal _HS1RLINK 1 _HS1LTRBL 0 output the rec
125. cturer s PLC server Dedicated service or FB communication FB communication Another manufacturer s GLOFA GM2 Desktop System 165 244 149 47 165 244 149 56 165 244 149 31 Figure 12 1 40 System configuration The following describes the system for case 1 This is the system configuration that establishes the channel by using another manufacturer s PLC and TCP ACTIVE based on GM2 between PC HMI and another manufacturer s PLC for communication and uses the dedicated service for PC communication i Reading Size Sending receiving structure Saving area Use channel area byte Sending frame S_DATA MB100 100 GM2 GLOFA_SEND_FRAME 165 244 149 47 Receiving frame MB3000 R_DATA 100 GLOFA_RCV_FRAME Table 12 1 4 Defining of the sending receiving data If the sending data S_DATA area used in the Function Block is set as MB100 and the data is transmitted from PC HMI to MB100 the PC data shall be sent to the other manufacturer s 12 31 CHAPTER 12 PROGRAM EXAMPLES PLC immediately If the receiving data R_DATA area is set as MB3000 and the data of MB3000 is read from PC HMI it is the same effect as if reading the data of the other manufacturer s PLC directly in by the PC Figure 12 1 41 shows an example of channel establishment using another manufacturer s PLC and a general PC It is required to establish the channel by LGIS port 3000 for th
126. d Figure12 2 5 select Compile gt Build All from the compile menu and download it into the relevant PLC from the online menu Then set Enable Link the High Speed Link starts to send receive according to the setting parameters Set the PLC mode to RUN to start If the High Speed Link parameters are downloaded Link Enable may turn to Disable automatically Set Link Enable again Link Enable is only available to be set when the PLC is in STOP mode From the Frame Editor download the High Speed Link station no to the FEnet I F module per CPU 12 2 2 Command service between FEnet PLCs The following system shows an example of command service between MASTER K FEnet I F modules The following describes the MASTER K KGLWIN program setting method for Ethernet communication RS 232C Ethernet network Port no 3000 KAWN T ACTIVE Port no 3000 Desktop System TCP PASS VE 165 244 149 47 165 244 149 56 165 244 149 102 Figure 12 2 6 System configuration 12 57 CHAPTER 12 PROGRAM EXAMPLES From the system configuration example K1000S is connected to K300S by the TCP_ACTIVE mode and K300S is connected to K1000S by TCP_PASSIVE for the communication shown in Table 12 2 2 Readin K1000S Sending frame SEND D0210 e Ae ee 165 244 149 56 aa frame RCV K3008 Pacer eT a 165 244 149 102 Recoing tamencviic e 6 Table 12 2 2
127. d Variable Command 1 Overview This registers the variable name in the PLC program access variable and writes the data by using the registered name For the variable registration method please refer to the Fnet user s manual 2 Computer request format E inthe case of an individual type Reser Block i Varia Format Hea Comma Data Data ved numb ble Data name der nd type length area er name Code OUTP h 0058 h 0002 h 0000 h 0001 h 0008 h 0002 h 1234 Ex UT_1 1 block repeated setting up to max 16 blocks 1 Block number This designates how many blocks composed of variable length variable name there are in the request format A max 16 blocks are available for setting Accordingly the value of the block number should be h 0001 h 0010 10 23 CHAPTER 10 DEDICATED COMMUNICATION E inthe case of an array type Reserv Block 3 Data Format Hea Comm Data Variable Variable ed numbe numbe Data name der and type ee length name Code OUTPU h 0058 h 0042 h 0000 h 0001 h 000A h 0004 h 12345678 Ex T_ARR 1 Block number Block number used should be h 0001 2 Variable length This describes the number of letters in the variable name registered in the PLC access variable A max 16 letters are allowed This value converts the HEX to ASCII with a range from h 01 to h 10 3 Variable name This is the variable name used to w
128. d continuously reads the data as much as indicated by the designated address But only Direct Variables in byte format can be read 2 Request format PC PLC Format Naser Comma Data Reserved Block Variable Direct Data name nd type area number length variable number code h 0054 h 0014 h 0000 h 0001 h 0006 MB100 h 0006 X 1 Data number means the byte number of data max 1 400 bytes 1 Data type Data type is available only as h 0014 2 Block number Block number is available only as h 0001 3 Variable length This is the number of letters for the Direct Variable name A max of 16 letters are allowed and the range is from h 0001 to h 0010 4 Direct Variable This is the address of the variable to be read It should be ASCII value within 16 letters For the variable name only numbers small capital letters and are allowed The available variable types of the Direct Variable continuous reading are shown in the Table below according to the PLC type Classification Oo om MB QB lB MB QB IB MB QB IB MB QB IB Table 10 3 3 Variable area for continuous reading GM1 MB QB IB 10 14 CHAPTER 10 DEDICATED COMMUNICATION 1 For the area designation method of each device for the GLOFA and Master K series please refer to the relevant technical materials 3 Response format in the case of a PLC ACK response Format Heade
129. d restart is performed This will be reset automatically if the available initialization program is completed Flag indicating an error when exceeding the hot restart time during the recovery of an electric power failure while performing the program or Hot restart impossible y p P P a BIT 2 ae when performing the restart operation warm or cold according to parameter as it is not possible to run the hot restart because of back up H_BCK_ER LH ER operation error necessary for performing the hot restart This will be reset automatically if the available initialization program is completed 10 28 CHAPTER 10 DEDICATED COMMUNICATION Flag in the case where a warm restart is performed when power re input after the program is shutdown in the middle of running due to the power shutdown while performing the program the operation restarts the program from the beginning which may cause the error in operation of the preserved data area This is available in the initialization program Automatic resetting after completion of initialization program Also indicates the error when program is shutdown in the middle of running by ESTOP function Abnormal operation shutdown ABNORMAL SHUTDOWN AB_SD_ER TASK h pcs ears Flag indicating a task crash in the case that a repeated execution of the oe P l same task is required while performing the user program TASK_ERR refer to TC _BMAP n _TC_CNT n Battery error
130. data is saved in P005 12 59 CHAPTER 12 PROGRAM EXAMPLES 2 Frame Editor setting E uA F dita HORAMI Filme Iaa S EMD Send 1 Obes SE Lers fut E iets CPU Singe LIME FENET Figure 12 2 10 Example of frame setting in the K1000S Frame Hame ZEND Tuifin l immedime Aiea Sending Smgmert 1 Seqment tree CONST O vason Te NOE LGN Feqment 2 Segment amp twee aR Sion _ Ye NONE gt Segment 3 Segment 7 Type Twe NONE Feuman 4 Segment tree none z Tye NONE Caneel a Sending frame in K1000S 12 60 CHAPTER 12 PROGRAM EXAMPLES Frame Mame ACY TxA Se Immediate Res Recwiwmgtea Segment Segment tie F asen Te LGS Segment 2 Segment amp tyre BRAY see o Toe NOME Segment J Seqment 7 Type NONE Type NONE Sage 4 Seger g Tepe NONE gt Tyee HONE ok Cancel b Receiving frame in K1000S Figure 12 2 11 Frame Editor setting screen 2 K300S PLC setting 1 KGLWIN program K300S establishes the channel by K1000S and TCP_PASSIVE If the channel is established with the local station operated by the server verify if there is a data request from the destination station and if the data is received normally by using the TRCV command Save the date in the output area Figure 12 2 12 Figure 12 2 14 shows the program to send receive the data by using an Ethernet module installed in the K300S mai
131. del indication lt Station no indication switch lt 4 Flash O S download connector lt 4 Media connection connector LED Module 1 7 RUN ON when the power supply and the initialize of a module are normal On when it can normally communicate VF RUN with the CPU module FB CMD ON when the function block command service starts HS ON when high speed link service starts PADT PC ON when GMWIN KGLWIN remote service or MMI service starts Blinks when sending the data Blinks when receiving the data 10 100 Communication speed of the media CHAPTER 2 PRODUCT SPECIFICATIONS 2 3 2 Settings of FEnet I F module The FEnet I F module can verify the station no of each module set by frame editor by using the switch This module also provides a port to facilitate upgrading through flash memory writing in the future For more information please refer to the following table Mode Description Remarks STATION No Station no of the communication module Hexadecimal mark through LED COMM Modular Jack for O S download BOOT when changing flash O S 2 12 CHAPTER 2 PRODUCT SPECIFICATIONS 2 4 Cable Specifications 2 4 1 Ethernet IEEE 802 3 related cable specifications Classification 10Base 5 coaxial cable AUI cable Characteristic 500 20 780 50 impedance Atenian Less than 8 5dB Less than 3dB at 10MHz 500m at 10MHz 50m Transmission speed C the velocity of l
132. dge of 0 to 1 Once it is started it will not be influenced before it receives response from the destination station The Function Block is not influenced as far as the NDR DONE or ERR bits are not set It restarts in the next scan after the bit of NDR or ERR is set When the level is 1 the Function Block starts When service is underway 1 must be maintained it applies to only to E_CONN Function Block BOOL type After the service is completed 1 must be continuously maintained If the EN bit keeps 1 after the ERR bit is ON the Function Block will ask for service for communication channel establishment in the next scan If the value is changed from 1 to 0 it will ask that the established channel should be normally resolved NET_NO It specifies the communication module to perform for the main Function Block installed in the main base It is the slot position installed by communication at the main base and by the slot position of the main base slot number 0 is next to CPU and increases 1 by 1 Available area 0 7 POWER CPU NET_NO NET_NO NET_NO NET_NO nan 0 1 2 3 7 3 CHAPTER 7 GMWIN FUNCTION BLOCK IP_ADDR The IP address of the communication module of the destination station or the local station It specifies the IP address necessary when communicating or establishing a channel It needs the IP address of the destinatio
133. ding data the local station number is automatically set CHAPTER 6 HIGH SPEED LINK Only when receiving data does the user have to set the destination station number Mode Determine the TX RX possibilities of the data block Maximum 32 for each TX RX can be set if setting is over 32 an error occurs Block Number A parameter set to receive and send a lot of data from various area from and to one station and it also plays a role to distinguish data from a variaty of block The station number and block number set from sending station is transferred with TX data and destination station saves appropriate data in receiving area only when the number of station and block set in receiving parameter of High Speed Link are the same each other you should set the block number with the station number all in RX TX station The block number can be set maximum 32 settings from 0 to 31 for each TX RX toward one station When setting block number the user should not set a variety of the same block numbers toward the same station number Area When sending data you set an area where you read data to be sent when receiving them you set an area where you save the data sent Table 6 2 3 B shows the area to be set Area to be read Area is the CPU memory Area to be saved Table 6 2 3 B Setting Area According to the Station Type Local This means the area Size It means the size of data to perform TX RxX Its uni
134. e Various system configurations by changing the basic parameter 1 6 CHAPTER 1 OVERVIEW 1 4 FEnet I F Module Configuration 1 4 1 Model Types The following table describes the configuration of the GLOFA MASTER K FEnet I F module Classification Model Description Remarks GLOFA amp MASTER K GMR 1 2 3 amp K1000S G3L EUTB 10 100BASE TX Category 5 G3L EUFB 100BASE FX Fiber Optic G3L EU5B 10BASE 5 AUI G4L EUTB 10 100BASE TX Category 5 G4L EUFB 10BASE FX Fiber Optic G4L EU5B 10BASE 5 AUI G6L EUTB 10 100BASE TX Category 5 G6L EUFB 100BASE FX Fiber Optic 1 GM6 K200S does not support AUI 10BASE 5 2 UTP twisted pair shield cable unit uses a 100Mbps switching hub and even if it is available to mix with the existing 10Mbps less than Category 3 the speed of the network should be limited to 10Mbps Caution should be taken when installing the system 1 7 CHAPTER 1 OVERVIEW 1 4 2 FEnet I F module version compatibility table The following table shows the compatible list of various CPU O S versions in order to use the FEnet I F module Before using please refer to the table below for the system configuration 1 In the case of using GLOFA Classification Available communication module Version GMR GMR CPUA B G3L EUTB EUFB EU5B Higher than V2 2 GM1 2 CPUA GM1 2 G3L EUTB
135. e Error warning information If there is a hardware error or a CPU interface error occurs in the module the LED of the communication module may operate abnormally but it is still available to verify the state of the module simply by using this dicated program Figure 13 2 1 shows the error warning information through PLC information from GMWIN online menu Please refer to section 13 4 Error code indication 13 3 CHAPTER 13 TROUBLE SHOOTING 13 3 Determining Module Error by Error Code Check the error code in Table 13 3 1 Abnormal operation Table 13 2 Troubleshooting describes the details of the error and the necessary actions to take 13 3 1 Abnormal operation ECM_12 ECM_15 See F 00 01 Chapter 7 H W self diagnosis error Eo0 02 ECM_13 ECM_18 Interfacing error with the CPU Table 13 3 1 H W related error in the communication module E01 01 ECM_16 ECM_18 Communication defect communication not agreeable ECM 22 ECM 28 Network error Table 13 3 2 Abnormal communication status of the communication module e020 ECM_18 Abnormal interfacing between the Enet module amp CPU Table 13 3 3 Abnormal interfacing with the communication CPU module HS link parameter is set improperly not set or if the HS line patamelerscting parameter is crushed after Online Link Enabled error Setting The communication is not available as desired even HS link not executed though the HS link parameter i
136. e GM1 local station operates against the destination station redundancy CPU by TCP ACTIVE The destination station establishes the connection to the local station and then operates the connection of the local station CON_S 1 In the case of receiving it operates the connection from the local station CON_R 1 and operates the connection of the destination station That is in the case of connection operate PASSIVE or SELECT side first and then operate ACTIVE 12 52 CHAPTER 12 PROGRAM EXAMPLES 12 2 KGLWIN Program 12 2 1 High Speed Link service between FEnet PLCs Table 12 1 1 describes the High Speed Link parameter setting method for data communication using the I O structure in the MASTER K Ethernet system FEnet dedicated network J Stati on 0 Stati on 1 Stati on 2 g1N3 1 9 aina 1e5 K1000S K1000S K1000S Figure 12 2 1 I O configuration for sending receiving data Sending receiving structure I O configuration Sending Receiving all stations are the area area same K1000S Fees TR gt K1000S Station 1 P3 P4 aan Station 0 Receiving lt K10008 Station 2 lt K1000S Station 2 Slot 0 master o D0100 Slot 1 output 32 points PaPa Station 1 Receiving lt K10008 Station 0 lt K1000S Station 0 Slot 2 input 32 points aa papa o Station 2 Receiving lt K1000S Station 1 lt K1000S o gt Ca eee Table 12 2 1 Defining
137. e PC PASSIVE and by port 4000 for the other manufacturers PLC ACTIVE If this operation is completed normally CH_EN_ PLC and CH_EN PC shall be set as 1 IP_ADDR IP address and port no of the other manufacturer s PLC CH_NO channel no is x in ECM1_CHx_FLAG O Figure 12 1 41 channel establishment using another manufacturer s PLC GM2 Figure 12 1 42 Program example for data sending receiving using a PC 12 32 CHAPTER 12 PROGRAM EXAMPLES Figure 12 1 42 shows the program example where normal data is received from the PC The _ECM1_ CHO_FLAG 0 ON when the FEnet I F module is installed in the main base slot no the 0 and 0 receiving frame is received normally by channel no 0 shall be set and if the PC_RCV_FRAME type data is received from the opposite 100 data shall be saved in R_DATA variable and RCV_NDR shall be set the TCP_SEND Function Block uses the RCV_NDR bit which is set if the TCP_RCV Function Block is operating normally with a REQ condition From the above program if communication connection is done communication available every 1 second If this bit is set 100 S_ DATA data will be sent to the destination station by PC_RESP_FRAME type of TCP_SEND Function Block The frame name PC_RCV_FRAM and PC_RESP_FRAME should have been defined in Frame Editor and downloaded in the FEnet I F module If the local station is operating as the server for d
138. e received Number of data types equivalent to DATA DATA An area saving RX data Uses ARRAY _UINT _ARR_ANY Output NDR It turns ON during normal service ERR It turns ON during error occurance after the Function Block is executed STATUS It is a detail code value of an error RCV LEN The number of data received This TCP_RCV Funcrtion Block is used to receive data from the destination station using TCP IP It starts at the rising edge of REQ and the data is received through the communication module of the local station installed number CH_NO of the main base CH_NO is a channel set when establishing a channel with the destination station in the E_CONN Function Block The data name that comes into FRAME specifies the frame name downloaded into the Ethernet communication module It receives only if the data received from the destination station are the same as defined frame RCV_LEN shows data numbers received from destination station after saving them If the user wants to receive data with a certain specified format the frame name set in Frame Editor can be used However if the user receives data directly by the single communication method without frame format set in Frame Editor the frame name UDATA_RCV in the frame must be used That is if the user uses the name UDATA_RCV in Frame of the Function Block it does not receive data with the frame name defined in Frame Editor It saves the data
139. e the network cable and connector 3 Install the module according to the procedure in section 3 2 product setting up to operation 1 In the case of changing the FEnet I F module please reset the opposite device HMI or PC There may be no response from the opposite device because of time out of the relevant module or it may be due to a failure of communication CHAPTER 4 SYSTEM CONFIGURATIONS CHAPTER 4 SYSTEM CONFIGURATIONS 4 1 Network System Configuration 4 1 1 Single system configuration CO Wideband monitoring system 1 Wide band monitoring system 2 191 100 105 1 191 100 105 2 Deskto System Desktog System Router or Gateway fub Public Network GLOFA PLC A GLOFA PLC B GLOFA PLC C 210 206 91 191 210 206 91 192 210 206 91 193 aes nae Router or Gateway l neg a ub vIOTD GLOFA PLC A GLOFA PLC B 210 206 91 189 GLOFA PLC C 210 206 91 190 LECIE Ethernet Network 1 Desktop System Desktop System Local monitoring system 1 Local monitoring system 2 210 206 91 194 210 206 91 195 Figure 4 1 1 GLOFA PLC Ethernet system 4 1 GLOFA PLC C 210 206 91 190 CHAPTER 4 SYSTEM CONFIGURATIONS 210 206 91 189 4 1 2 System configuration via a dedicated network GLOFA PLC B GLOFA PLC A 210 206 91 188 om Ethernet Network
140. eed Dedicated eal link service Sire Information service TCP UDP ARP Media 10 100B T Figure 1 3 1 Software block diagram 1 5 CHAPTER 1 OVERVIEW Fast Ethernet FEnet I F module vvvvvyv vvvvyv Complies with the IEEE 802 3 standard supports Ethernet specifications Supports TCP UDP ARP ICMP IP protocols Data access by public networks is available Supports Dynamic Connection Disconnection by using the function block Supports High Speed Link for high speed data communication between LGIS modules Available to communicate with 16 stations at the same time besides the High Speed Link dedicated communication function block communication Loader service through Ethernet is available dedicated TCP IP PORT 2002 assignment Supports 10 100BASE TX 100BASE FX and 10BASE 5 media Easy connection to other manufacturer s systems by using function block and frame editor Network status monitoring and information collection LGIS communication module TCP port 2004 UDP port 2005 High Speed Link port 2006 channel list port 2007 are opened automatically when the Power is ON 2002 2004 2005 2006 2007 ports are not allowed to be used when the function block is in service Variable READ WRITE service by using a function block is available Dynamic Connection is used The installation of 2 8 Ethernet communication modules for one main base is availabl
141. eived data MW0O using the output module of slot no 1 If used properly when combined with the program using RUN LINK the LINK TROUBLE information shown in Figure 12 1 4 may increase the reliability of work For further information of flag types and their use please refer to section 6 5 High Speed Link information 12 3 CHAPTER 12 PROGRAM EXAMPLES 3 Settings the High Speed Link Parameters For the system in Figure 12 1 1 and for the data exchange between Stations 1 2 3 like Table 12 1 1 the user should prepare the user program like Figure12 1 4 and then prepare the data sending receiving map like Table 12 1 1 For data sending receiving like Table 12 1 1 prepare the High Speed Link parameter and download using the PLC The procedure to start the High Speed Link is as follows 1 Download the station no and parameters by Frame Editor connect the communication cable Prepare the user program for each station Prepare the data sending receiving map Set the parameters for the GMWIN High Speed Link parameter settings Execute compile and make from the compile menu Execute the program and write the parameter from the online menu Select the link enable settings from the online menu and enable the High Speed Link suitable for the setting no 8 Change the mode to RUN from the online menu 9 Check the High Speed Link state using the link parameter monitor 10 If an error occurs retry from 1 2 3 4
142. eiving frame Figure 12 1 39 GM3 PLC frame settings 12 28 CHAPTER 12 PROGRAM EXAMPLES 3 General procedure for Function Block service parameters and the frame for the communication module by using Frame Editor After naming the program and selecting the program language LD open the program When the program is open select the library insert option and select the library for communication Select the Function Block and the start contact to use E_CONN FB setting Set NET_NO the IP address and the port no suitable for the communication state Set METHOD of the communication module to TCPACT or TCPPAS by using the group name of Frame Editor If there is data being sent after channel establishment prepare the program by using SEND FB TCP_SEND FB setting Set NET_NO CH_NO and sending data size In this case the data size should be the same as that set in Frame Editor How ever if the array size in Frame Editor is set as FFFF the data shall be sent as high as the sending data size of FB E A ee 12 29 CHAPTER 12 PROGRAM EXAMPLES If there is data to be received after channel establishment prepare the program by using RCV FB TCP_RCV FB setting Set ECMx_CHy_FLAG z flag NET NO CH_NO and the receiving buffer to save the received data In this case the size of buffer to save the receiving data should be greater than that set in the Frame Editor How ever if the array size of Frame Editor is set as FFFF
143. el Figure 7 4 7 Immediate response frame definition screen 7 23 CHAPTER 7 GMWIN FUNCTION BLOCK 7 5 Function Block Service of the Redundant System 7 5 1 Overview The redundant system of communication using the FEnet module is a Redundancy Network that sends and receives the same data at the same time and configures the two networks like Figure 7 5 1 Fthernet Network Ethernet Network 2 Single CPU System GWB Redundant CPU System Figure 7 5 1 A Example of a redundant system Ethernet Network 1 ca a a a 3 Redundant CPU System Single CPU System GWB Figure 7 5 1 B Example of a redundant system 7 24 CHAPTER 7 GMWIN FUNCTION BLOCK Upper System PC PC Upper System IP 210 206 91 189 Ol O IP 210 206 91 189 IP 210 206 90 189 IP 210 206 90 189 HUB i 20 o HUB Kote B Side P 210 206 91 188 P 210 206 0 188 wor wor P 210 206 91 190 P 210 206 91 191 P 210 206 90 190 P 210 206 90 191 Figure 7 5 2 Example of a redundant system 7 5 2 Characteristics of redundant Function Blocks If the Function Block is used in a redundant system it has the following characteristics compared with the existing Function Block In a redundant Functio
144. em configuration diagram 5 10 3 CHAPTER 10 DEDICATED COMMUNICATION 10 2 Dedicated Communication 10 2 1 Overview Dedicated communication service is an embedded protocol in the FEnet I F module that allows the user to read and write PLC information by PC or other devices It also allows the user to download upload the PLC program and control the PLC Run Stop Pause This is accomplished communication by using the TCP port 2004 and the UDP port 2005 of the FEnet I F module It is especially useful for between LGIS Ethernet modules and between high a system PC program HMI and a LGIS Ethernet module 1 Frame editor basic setting Basic Parameters x PLC Type GM1 2 3 IP Address 165 244 149 53 Subnet Mask 255 255 2550 Gateway o000 DNS Server o000 HS Station No I Retry Limit f2 Connection No 2o TTL 50 Connection Waiting Time Out 20 Disconnection Waiting Time Out fo Rx Waiting Time Out Bo Media AUTO Hole cone Figure 10 2 1 Initial screen for setting the basic parameter For Ethernet communication it is required to set the basic download parameters before using In order to communicate by using the dedicated service it is required to set the basic download parameters The dedicated contact number in the basic parameter of the frame editor means the channel number HMI connection is arranged by using the dedicated port 2004 of LGIS Accordingly it is possible to change the cha
145. en from the master station data Communication i Data Sending Data Receiving Cable Figure 6 2 6 A Data transfer path by the communication module Sending data to other stations using communication similar to Figure 6 2 6 A must go through 3 paths The time spent on each path is crucial for the sending time Table 6 2 6 A shows the major path of data transfer and the crucial factors influencing the time of each path Factor influencing on time PLC CPU A gt Communication Module Program Scan Time of PLC A Station 1 g 1 9 Communication Module Station 1 gt Communication Scan Communication Module Station 2 Time Communication O S Scan Time Communication Module Station 2 gt 3 Program Scan Time of PLC B PLC CPU B Table 6 2 6 A Data Transfer Path and Time Factor 6 26 CHAPTER 6 HIGH SPEED LINK Data transfer from the PLC CPU to the communication module or from the communication module to the PLC CPU is done at the finish time of the PLC user program The scan time of the PLC user program becomes a crucial factor for data transfer If PLC Info is selected from the on line menu of GMWIN the user is able to know the maximum minimum and current time of the program scan Furthermore if the communication module wants to send its data it must perceive that there is free time in the communication cable and it is fixed according to IEEE standards 802 3 Figure 6 2 6 B shows the points of sending t
146. equired to peel as long as the length desired to connect the cable Be careful not to damage the insulation 8 Jumper Wire and Patch cord should be connected a little loose If connected tightly the Category 5 characteristic may be removed In the case of using Tie wrap do not apply stress to the cable 9 When installing UTP cable keep the proper distance between the EMI source and the UTP cable 3 5 CHAPTER 3 INSTALLATION AND STARTUP The proper distances of each case are shown in the table below Minimum distance of division Condition Less than More than 5 KVA 2 0KVA 5 0KVA An unshielded power line or electric equipment is open or is near a non metal pipe An MSMS gSA power line or Beene equipment is near a buried metal pipe A power line inside the buried metal pipe or equivalent shield is near a buried 76mm 152mm metal pipe Transformer electric motor 1016mm Fluorescent lamp 305mm 1 If the voltage is 480V and the power rating is more than 5KVA a separate calculation is required 3 6 CHAPTER 3 INSTALLATION AND STARTUP 3 3 2 100BASE FX installation G4L E UFE no Optic switch OO0O000000 Lol _ SC MULTI Figure 3 3 2 100BASE FX installation method The Max segment length of 100BASE FX is 2000m distance between this module and the optic switch Cross connect Tx of the module and Rx of the optic switch and Rx of the module and Tx of the optic switch
147. er the Function Block is executed STATUS It is a detailed code value of an error TCP_SEND is used to send data of the local station to the destination station using TCP IP It sends the data to the destination station installed with the CH_NO channel in the form specified in FRAME after reading DATA to DATA_LEN The name entered in FRAME must be the same as the one in the TX RX format that was defined in Frame Editor If service is normal the NDR bit turns to Set When an error occurs ERR turns to Set and the code value according to such a result is saved in STATUS for the STATUS code see the section A3 Error Code of the appendix If the user wants to send data defined with a certain specified format the frame name set in Frame Editor can be used However if the user directly sends user data directly by the single communication method without a frame format set in Frame Editor the frame name UDATA_SEND must be used That is if the user uses the name _ UDATA_SEND in Frame of the Function Block it does not send data with the frame name defined in Frame Editor It sends the contents set in DATA of the Function Block directly to the destination station after reading data to ARR_CNT If the user wants to use the frame name _ UDATA_SEND the user should set a channel using a string value named UNFMT_TCPxxx in METHOD in the E_CONN Function Block
148. eriod becomes the same as the scan time of PLC program Figure 6 2 3 F PLC Program Scan Time x Sending Period of Setting y Sending Delay Time z x y gt Sending Start Sending Delay z a Delay time for sending data when the PLC program scan is longer than the sending period Sending Period of Setting y PLC Program Scan Time x Sending Delay time z 0 gt Sending Start b Delay time for sending data when the PLC program scan is shorter than the sending period Figure 6 2 3 F PLC program scan and sending period 6 16 CHAPTER 6 HIGH SPEED LINK In case of data sending when the appropriate block data is received on the set time the appropriate TRX_MODE flag of link information should be on and if not it should be off then it makes run link and link trouble contact Therefore you can check whether data are sent normally even after you set above the sending period of the appropriate block set from destination station TX RX time becomes different from the total amount of number of block for High Speed Link setting and volume of TX RX data per block and the total amount of communications such as communication stations of network let alone the time of PLC program scan Therefore if you set TX RX period you should set them referring to calculating the speed of the High Speed Link in Chapter 6 2 6 6 17 CHAPTER 6 HIGH SPEED LI
149. ero flag ON if an operation result is 0 F0112 Carry flag ON if an operation result is carry F0113 Output Off ON when performing an OUTPUT command F0114 Common RAM P W error ee special module common memory Access F0115 Operation error flag latch ON when an operation error occurs latch F0116 F011F No use APPENDIX Contact Function Description F0120 LT flag ON when the CMP comparison operation result is S4 lt S2 F0121 LTE flag ON when the CMP comparison operation result is S lt S F0122 EQU flag ON when the CMP comparison operation result is S4 S2 F0123 GT flag ON when the CMP comparison operation result is S4 gt S2 F0124 GTE flag ON when the CMP comparison operation result is S4 2S2 F0125 NEQ flag ON when the CMP comparison operation result is S S2 F0126 F012F No use F0130 F013F AC Down Count Save by counting the AC Down times F0140 F014F FALS no Save the error code by FALS command F0150 F015F PUT GET error flag ON for the relevant bit when a special module common RAM Access error occurs F0160 F049F No use F0500 FOSOF Max scan time Max scan time save F0510 F051F Min scan time Min scan time save F0520 F052F current scan time Current scan time save F0530 F053F Clock data Yr Mon Clock data Year Month F0540 F054F Clock data
150. estination station check if the data requested from the destination station is normally received to the local station and then prepare the program to send the local station data TCP_SEND CHO_EN ails TCPSEND lt J i REQ NOR _ECM1_CHO tt ch z CHO_EN _FLAG O ri ry Rea in SEND_NDR RCY_NDR ie SEND_ERR RCY_ERR 0 CHN a SEND_ST h_SE NET ERR LOF M RCY_ST Nt FRAME ERAN i NST Bini Rot ls 100 DATA LEN LEN DATA a DATA LEN DATA Figure 12 1 43 Program example for sending receiving using another manufacturer s PLC Figure 12 1 43 operates using the same method as Figure 12 1 42 It prepares the program by using the local station operate as the client for the destination station It sends the data to the destination station in advance and it receives the destination station sends the data normally Figure 12 1 41 43 shows the Frame Editor setting example that defined the frame to perform the above program This shows the example of the frame necessary for communication with another manufacturer s PLC 12 33 CHAPTER 12 PROGRAM EXAMPLES The following describes the system for case 2 This example establishes the channel by using another manufacturers PLC and TCP ACTIVE Based on GM2 between M1 the other manufacturer s PLC establishes the channel by TCP PASSIVE in order for the computer to send receive the data Table 12 1 5 shows the data used to communicate For communication with
151. et in each station set in the parameter communicates normally Once RUN_LINK is ON it maintains ON unless it stops by LINK DISABLE In the state that HSmRLINK is ON when the communication state of the station and data block set in the parameter is as follows this flag is ON 1 When the station set in the parameter is not Abnormal RUN mode information of 2 When there is an error in the station set in the Dx600 1 HSmLTRBL high speed link parameter LINK_TROUBLE When the communication state of data block set in the parameter is not smooth LINK TROUBLE is ON when the above 1 2 3 condition occurs and OFF if the condition returns to the normal state General Sere ae Indicates the general state of communication communication Dx601 0 HSmSTATE information for each data block of the setting state information z k parameter of k data block set Dx604 15 k 0 63 eres _HSmSTATE k _HSmMODjJk amp _HSmTRX k amp in high speed link _HSmERR k parameter Dx605 0 Mode information ae RUN 1 Dx608 15 0 63 Others 0 info wie _HSmTRX k State mto Indicates if the communication state of k data block z k 0 63 one f ter i th as set i Dx612 15 k Abnormal 0 of parameter is smooth as set in State info _HSmERR k 0000000 Indicates if there is an error in the communication k 0 63 Error 1 state of k data block of parameter normal 0 Indicates operation mode of
152. example for Function Block service between GLOFA PLC FEnet I F modules RS 232C Ethernet network GGA GM2 Desktop System Port no 3000 TO ACTIVE Port no 3000 165 244 149 56 TCP PASSI VE D 165 244 149 33 Figure 12 1 32 Function Block service system configuration 12 21 CHAPTER 12 PROGRAM EXAMPLES In the system configuration example GM2 is connected to GM3 by TCP_ACTIVE mode and GM3 is connected to GM2 by TCP_PASSIVE The communication is done as shown in Table 12 1 3 Reading Saving Size Channel Sending receiving structure area area byte EE GM2 Sending frame SEND_FRAME S Data 100 165 244 149 56 Receiving frame RCV_FRAME potion acer te 165 244 149 338 Receiving frame RCV_FRAME r Data 10 o Table 12 1 3 Defining of the sending receiving data 1 GM2 PLC settings First create or open the project file and determine the PLC type And then open the program file After selecting library insert for the project select the library suitable for the CPU type as shown in the following Figure x a Variable Na Data Type SS Neto FB Instance lt Autd MOD_A BOOL lt Autd G Function H B Standard Functior EE Function jimi EF Add Item gt E addtem X Delete Properties v Allow Docking Hide Float In Main Window Figure 12 1 33 Select Insert Library screen 12
153. f Chapter 6 2 6 St P_ScanA C_Scan P_ScanB St maximum transfer time of High Speed Link P_ScanA maximum program scan time of plc A P_ScanB maximum program scan time of plc B C_Scan maximum communication scan time P_ScanA P_ScanB are the scan times of the GM1 and GM2 PLC Thus supposing that the time is 5 each in the above example it is possible to confirm it by selecting On line PLC Information System Information in GMWIN C_Scan Th X Sn Th Time of data transfer from a media per 1 station IEEE standards 802 3 Sn Total Station Number Total Communication Number In this case Sn 3 This 2 3 in FEnet CScan 6 9 Therefore St P_ScanA 5 P_ScanB 5 CScan 6 9 16 9 This means that the RX TX period should be set above 17 6 34 CHAPTER 6 HIGH SPEED LINK 6 3 The Redundancy System of the High Speed Link 6 3 1 Introduction The redundant system used by the FEnet module is a network redundancy that sends and receives the same data at the same time with 2 networks configured by the FEnet module using communication like Figure 5 3 A High Speed Link Redundancy of the redundant system performs by adding special functions to the existing High Speed Link service For the basic settings of the High Speed Link and its operation see section 6 2 High Speed Link
154. f Direct Variable 1 Overview This function directly designates the PLC device memory and reads it according to the memory data type It is possible to read 16 independent device memories at one time 2 Request format PC gt PLC W request for individual variable reading HMI gt PLC Size byte Command 0x0054 Read Request Data type Refer to Data Type Table 2 Reservedarea 2 0x0000 Don t Care Number of variables Variable name Variable name length max 16 letters length Variable Variable Variable name Direct Variable access variable available name length lo ee ee Repeat the procedure for other variable numbers max 16 Variable name 2 Variable name length max 16 letters length Variable 3 3 Variable Variable name Direct Variable or access variable available name length Reserve 3 Format T Comma Data d Block Variable Direct name nd type nie number length variable code Ex h 0054 h 0002 h 0000 h 0001 h 0006 MW 100 1 block repeated setting available up to a max 16 blocks 2 Max variable number desired to read max 16 Variables 1 Block number This designates how many blocks composed of variable length variable name are there in this request format and how many blocks max 16 are available for setting Accordingly the value of block number should be h 0001 h 0010 2 Variable length Direct Variable name length This describes the number of
155. f the communication module is normal or not If abnormal refer to Chapter 9 Troubleshooting in this user s manual 7 Set the system parameters correctly and download Programming Perform programming in GMWIN and write to the CPU module Sequence check Confirm the operation of the communication module according to program Program modification If an error in the sequence program modify it Program preservation 1 Save the program to a floppy or hard disk 2 Print circuit drawing and list 3 Save the program to the memory module as required CHAPTER 3 INSTALLATION AND STARTUP 3 5 Maintenance amp Checklists 3 5 1 Daily checklist The daily checklist that is carried out every day is as follows Checklist Action to take Should not be Cable connection status Cable loosened Tighten cable loosened Tighten terminal Terminal screw loosened Should not be loosened Terminal screw connection status Compressed terminals l l At a suitable distance Modify adjacent to each other On checked On Off means error I F RUN ON OFF is abnormal Check ON when function FB CMD block command service ON starts Check ON when high speed link service starts Refer to Indication LED O Appendix A1 FF H W ERR Check OFF Seat ON or Blink is abnormal TX Blinks when sending Blinks when receiving 40 100 ON in case of 100Mbs ON 100Mbps communication OFF 10Mbps Table 3 5
156. f the local station and the destination station It can also be used for communications between multiple stations using TCP IP or UDP IP There are two methods to communicate using the Function Block The single communication method uses only the Function Block to communicate independently The user defined communication method uses Frame Editor This chapter describes the kind of Function Blocks provided to the user and their uses The following displays the program editing order when using Function Block Download into the FEnet module after editing the IP Address HS LINK Station Number Subnet Mask Gateway address Frame etc using Frame Parameter Frame Editing Editor when using Frame switch CPU to Stop mode then switch power on again 1 Writing after Frame Editor editing l Write project and program on the GMWIN screen 2 Generating or Opening or opening the existing project and program Program q Writing Program Confirm the I P address of the communication Writ P ith module of the users station and parter station 3 HS_LINK station number slot position etc and write LD IL 1 a program for an emergency using the proper flag Compile Make Compile or Make J On line Connection J On line Writing Parameters and Program J Greline Modalowichecor Confirm the action of the status of the program 7 RUN Operation Mode _ using the monitoring function when it is started If 7 RUN a
157. fe even when there are problems with the external power supply or the PLC module Otherwise serious trouble could result from erroneous output or erroneous operation Outside the PLC construct mechanical damage preventing interlock circuits such as emergency stop protective circuits positioning upper and lower limits switches and interlocking forward reverse operation When the PLC detects the following problems it will stop calculation and turn off all output in the case of watchdog timer error module interface error or other hardware errors However one or more outputs could be turned on when there are problems that the PLC CPU cannot detect such as malfunction of output device relay transistor etc itself or I O controller Build a fail safe circuit exterior to the PLC that will make sure the equipment operates safely at such times Also build an external monitoring circuit that will monitor any single outputs that could cause serious trouble gt Make sure all external load connected to output does NOT exceed the rating of output module Overcurrent exceeding the rating of output module could cause fire damage or erroneous operation Build a circuit that turns on the external power supply when the PLC main module power is turned on If the external power supply is turned on first it could result in erroneous output or erroneous operation SAFETY PRECAUTIONS Design Precautions gt Do not bunch the control wi
158. g high speed link service 1 Check if the high speed link setting is correct 2 Check if link enable in the menu is ON OFF during connection service remote 1 Check if the IP address for the remote PADT connection is correct 2 Check if the remote connection of the PADT program is released OFF during dedicated service 1 Check if the IP address for dedicated connection is correct 2 Check if the connection request for HMI PC device is completed H W ERR ON during normal communication 1 Check if the media selection using frame editor is done well 2 Check if there is an interface error with the CPU ON during data sending 1 Check if the demand frame is receiving from client normally ON during data receiving 1 Check if there is an error in the receiving program 2 Check if there is an error in frame editing 10 100 OFF during normal communication 13 2 1 Check if the media is composed of 100Mbps Auto Negotiation CHAPTER 13 TROUBLE SHOOTING 13 2 Determining Communication Module Error through GMWIN KGLWIN It is possible to monitor the error state of the communication module using a connection program It is possible to know from error warning detail information after the CPU port connection Error Warning Information Resourced Redundancy I O Contact failure More ErrorV arning Information Figure 13 2 1 Monitoring th
159. g mode fre GLOFA FDEnet GLOFA Rnet Slot No 0 z Self sta No 0 Figure 6 2 3 D Setting the High Speed Link Network Type Select the type of communication module FEnet should be selected Slot No Select the position of the communication module Slot 0 7 Self sta No For High Speed Link it has a station number the range of 0 to 6 12 CHAPTER 6 HIGH SPEED LINK 63 The local station number is a proper number It distinguishes the communication modules within the same network system The station number should not be repeated The station must be used after you assign the station number Self station no has to be set up corresponding to the station number for High Speed Link set using Frame Editor If not the station number set using Frame Editor will be set as the station number for the high speed line B Setting the Entry List The Entry List is an area where you register RX TX information of real data The user should set up from registration number 0 in the registration list area after the ink setting The Major setting items are shown on the upper part of the menu in the Entry List If the user selects the appropriate list in Figure 6 2 3 C the user can set up the appropriate items in the Edit window for the High Speed Link Figure 6 2 3 E Screen b of Figure 6 2 3 E displays the registration list when the TX parameter of the local station 0 is set in the a
160. ge mode into Run in on line menu 9 Check for High Speed Link status through link parameter monitor 10 If an error occurs repeat the procedures from the number 1 An example of setting the parameters of the High Speed Link is described below Set the basic items by selecting Edit in the link setting on the screen of High Speed Link setting Figure 6 2 7 C First set the module type to GLOFA FEnet and select OK after setting the installation position of the FEnet module and station number of the High Speed Link After that set the RX TX parameter setting from number 0 on the registration list of Figure 6 2 7 C For example the station type for station 1 is local Since RX TX is composed of 0 block RX TX are configured with one parameter respectively After you set RX TX area according to the RX TX map set the RX TX period by calculating the RX TX time according to 6 2 6 Speed Calculation of the High Speed Link Here 200 is set as a basic value A B C of Figure 6 2 7 C show the results in which the parameters in GM1 GM2 GM3 are set with the above method Hih Spred Linki Link sei Metanrk fe GLOFA Fenel Slot o Sell station ha 1 Entry liti Type Dind P teh Read Area Gloire Area Lora Gerdi Cito Sho Locally Aerop Dizl mgh Thi i l 1 r 4 5 7 B a A Parameters of the High Speed Link of GM1 Station 1 6 32 CHAPTER 6 HIGH SPEED LIN
161. gt IP Address 0 0 00 Subnet Mask 255 255 255 0 Gateway 0000 DNS Server 0000 HS Station No 0 Retry Limit 2 Connection No f2 TTL 50 Connection Waiting Time Out 20 Disconnection Waiting Time Out fo Rx Waiting Time Out Bo Media AUTO HS Link HS Lin gi Figure 5 2 3 Basic settings initial value The description for Figure 5 2 3 is as below From the following descriptions the IP address HS station no media etc are required to be set according to the environment used Classification Description Designates the use of the CPU communication module GM1 2 3 GM1 2 3 selection GM4 6 GM4 6 selection GMR when used in the replication module K1000S MASTER K1000S selection K200S 300S MASTER K200S 300S selection IP Address Sets the IP Address of the FEnet communication module PLC type A value used to distinguish whether the destination station is in the Subnet Mask same network The Gateway module address router address used to receive and Gateway send data through a station which uses a different network or a public network DNS server Specifies the domain server address 5 5 CHAPTER 5 COMMUNICATION PROGRAM Classification Description HS station No Sets the station number when communicating between the GLOFA PLC FEnet module and the High Speed Link Retry Limit Count of re transmission if there is no reply from the destination
162. gure 12 1 44 Channel establishment using another manufacturer s PLC and PC GM2 Figure 12 1 46 program example for data sending receiving using another manufacturer s PLC 12 35 CHAPTER 12 PROGRAM EXAMPLES Figure 12 1 45 shows the program example where normal data is received from the PC The _ECM1_ CHO_FLAGJ 0 shall be set and if the PC_RCV_FRAME type data is received from the opposite 100 data shall be saved in the R_DATA variable and the RCV_NDR shall be set The TCP_SEND Function Block uses the RCV_NDR bit which is set if the TCP_RCV Function Block is operating normally with a REQ condition If this bit is set 100 S_DATA data will be sent to the destination station by PC_RESP_FRAME type TCP_SEND Function Block The frame name PC_RCV_FRAM and PC_RESP_FRAME should have been defined in Frame Editor and downloaded in the FEnet I F module If local station is operating as the server for destination station check if the data requested from the destination station is normally received to the local station and then prepare the program to send the local station data Figure 12 1 46 operates using the same method as Figure 12 1 45 It prepares the program by using the local station to operate as the client for the destination station It sends the data to the destination station in advance and it receives if the destination station sends the data normally Figure 12 1 44 46 shows the Frame Edi
163. gure 9 3 2 shows the Remote Connection screen and the setting method is almost the same as GLOFA CHAPTER 9 REMOTE COMMUNICATION CONTROL Editor Option Page Setup Connection Option Method of Connection RS 232C e bialup Modem Communication Port COMI z C Cable Modem GLOFA Fnet for PC C GLOFA Mnet for PC Ethernet Depth of Connection Remote 1 C Local Type GLOFAFEnet Remote Base Pale C Remote 2 T az Slot fU Aj 2 3 4 E IP Address 219 114 62 34 Cancel Help Figure 9 3 2 Remote Connection screen 1 Type Select either GLOFA Fnet Rnet Mnet Enet Fdnet Cnet FEnet or FDEnet according to step 1 connection network In Figure 9 3 2 since step 1 connection is done through FEnet select GLOFA FEnet 2 Base This is to designate the base no that the FEnet I F module for Remote Connection is installed 3 Slot This shows the position of the communication module that is connected to network 1 of the local PLC connected by RS 232C In Figure 9 3 1 it is required to select 0 because FEnet installed in PLC A is in the 0 slot CHAPTER 9 REMOTE COMMUNICATION CONTROL 4 IP address This designates the IP address of the FEnet I F module that is installed in the opposite station PLC where the step 1 connection is to be arranged in the network 1 Figure 9 3 2 shows the IP address 219 114 62 34 of the PLC B module In this
164. he output module Fuse is cutoff F0036 F0038 No use APPENDIX Contact Function Description F0039 Backup normal ON if data backup is normal F003A Time data error ON when there is a time data Setting error F003B Program replacing ON when program editing occurs during RUN Error during program m F003C replacement ON when an error occurs in program editing during RUN F003D F003F No use ON for the relevant bit when the reserved I O parameter F0040 FOO5F I O error setting is different from the actual I O module or the I O is added removed F0060 FOO6F Error code save Save the system error code refer to 2 9 F0070 F008F Fuse cutoff state save ON for the relevant slot bit in case of an output module Fuse cutoff ON OFF repeat at regular intervals F0090 20ms period Clock F0091 100ms period Clock F0092 200ms period Clock F0093 1s period Clock On Off F0094 2s period Clock Eee F0095 10s period Clock F0096 20s period Clock F0097 60s period Clock F0098 F009F No use F0100 User Clock 0 etc repeat as much as designated by Duty FO101 User Clock 1 Sante Sree ates H HK buTY Fotox N1 N2 H F0103 User Clock 3 F0104 User Clock 4 N2 scan Off F0105 User Clock 5 On Off F0106 User Clock 6 F0107 User Clock 7 N1 scan On F0108 F101F No use F0110 Operation error flag ON if an operation error occurs F0111 Z
165. hich the USINT communication module of the local station is installed NO and where the Function Block is transferred _STRING IP_ADDR The IP address of the destination station ili D_PORT The port number of the destination station CH_NO Channel established in the E_CONN Function Block FRAME Frame to be sent distinguished with capital small _STRING letters It must be downloaded in the FEnet module after _UINT editing in Frame Editor EN AARR CNT The number of data to be sent Number of ARR_ANY data type equivalent to DATA DATA An area saving TX data Uses ARRAY UINT _USINT Output NDR It turns ON during normal service ERR It turns ON during an error occurrence after the Function Block is executed STATUS It is a detailed code value of an error This is used to send data from the local station to the destination station using TCP IP If the user establishes a channel as UDP_ACTIVE or UDP_PASSIVE in the E_CONN Function Block the channel is not actually established through communication but it connects with each other with the Socket open Therefore in UDP IP sending the user should specify the when sending data to the destination station and port The IP address will be different for TCP IP when sending data This Function Block is started when REQ is at the rising edge 0 gt 1 and it sends data to the destination port D_PORT with the IP address defined in IP_ADDR by communic
166. iable number desired to write max 16 Tires Repeated as muct as much as variable number max 16 T EA L zi 10 18 CHAPTER 10 DEDICATED COMMUNICATION block format com data reserved variable direct data header num 7 name mand type area Hee length variable number code h 0058 h 0002 h 0000 h 0001 h 0006 MW100 h 0002 h 1234 Ao 1 block repeated setting available up to max E blocks 1 Block number This designates how many blocks composed of variable length Direct Variable and data length data there are in the request format It is possible to set a max 16 blocks Accordingly the value of the block number should be h 01 h 10 2 Variable length Direct Variable name length This describes the letter number of Direct Variables A max of 16 letters are allowed The range of value is from h 01 to h 10 3 Direct Variable The address of variables desired to write should be entered It should be an ASCII value within 16 letters For the variable name only numbers small capital letters and are allowed For Direct Variable available according to the PLC type please refer to the data number according to Table 10 3 2 1 The device data type of each block should be the same If the data type of the first block is Word and the data type of the second block is Double Word an error may occur 2 For the area designation method of each device of the GLOFA
167. ication module K1000S K7P 30AS 4EA K300S K4P 15AS 2EA K200S K3P 07A B C 2EA 1 For GM4 CPUG it is available to install the communication module up to 8 extended steps For more information please refer to the GM3 4 user s manual 1 9 CHAPTER 1 OVERVIEW 1 5 Software for Product Use The following describes the major programming tool and other manufacturer s software in order to use the FEnet I F module For correct application of the program and communication please refer to the following table 1 5 1 Software Verification 1 Inthe case of the GLOFA MASTER K series aoe Frame Classification Module Programming tool Remarks preparation G3L EUTB G3L EUFB G3L EU5B G4L EUTB Frame editor G4L EUFB common G4L EU5B MASTER K G6L EUTB KGLWIN G6L EUFB For the available version please refer to the Figure 1 4 2 FEnet I F module version compatibility table 1 The above programs are available to be downloaded from our website If it is not possible to use the internet visit our representative near you to get the corresponding CD ROM data and install it Internet website address http www lgis com 1 5 2 Frame Editor Frame editor is a software to define the protocol for the operation of the FEnet I F module and edits the frame for data sending receiving It is needed to define the frame before preparing the communication program For
168. ications The general specifications for the communication module in the GLOFA series is as follow 0 C 455 C 25 C 470 C 5 95 RH dew should not fall es 5 95 RH dew should not fall oses aai _ intemal s7eterson osn xz vibration In oase of continuous vibration Otimes IEC 61131 2 Freauencv es ae ae each wostesmn oomm rection szstsison sonosa Maximum shock acceleration 147 15G Internal Shock Duration time 11 IEC 61131 2 Pulse waveform a sine carrier wave pulse X Y Z 3 times each for i Discharge of static Voltage 4 kV touch discharge IEC 61131 2 Radial computer 27 500 MHZ 10 V m IEC 61131 2 Digital in Digital in 5 7 Internal Noise Fast Power division output output over 24V IEC 61131 2 transient module over 24V Analog in output IEC 1000 4 4 Burst noise There should be no corrosive dust O Below 2000m O Pollution level Below 2 fe a festa system Natural air cooling system Table 3 1 General Standard Square wave Internal test 1 500V impulse noise standard of LG 2 1 CHAPTER 2 PRODUCT SPECIFICATIONS 1 IEC International Electro technical Commission International non governmental organization promoting international cooperation on the standardization of electric and electronic techniques It also sets international standards evaluates and manages their suitability 2 Pollution Level
169. ight More than 0 77C More than 0 65C 3 00 x 10 km s less than 7ns less than ins Phase Jitter at 500m terminal at 50m terminal PVC jacket outside diameter Oike 10 287 0 178mm Conducting wire resistance for power FEP jacket outside diameter Less than 40mQ m 9 525 0 254mm 2 4 2 UTP cable UTP cable is classified by 3 types based on the following criteria Shield Y N 3 types UTP FTP STP use frequency band 7 types Cat 1 7 non flammable class 4 types CMX CM CMR CMP 1 Cable types according to Shield Yes No Classification Max 200MHz UTP or U UTP Non shield high speed signal cable Voice Information Data low grade image signal Max 100MHz l l hiel l ingl ea S Core sie Cec ear by 000 Electronic obstacle EMI or electric FTP UTP ili i Or SUTE Shield material AL Plastic complex Stability considered foil or Copper Braid Voice Information Data low PP grade image Video signal Pair or individually shielded or cable core shielded cable by duplex shield Max 500MHz STP or S STP Pair shield material Voice information Data AL Plastic complex foil image Video signal Core shield material 75Q coaxial cable alternative AL Plastic complex foil or Copper Braid 2 13 CHAPTER 2 PRODUCT SPECIFICATIONS 1 UTP Unshielded Twisted Paired Copper Cable FTP Overall Foiled Twisted Paired Copper Cable STP Overall Shielded and Shielded Individually Pair Twisted Paired Co
170. ime according to the PLC program scan time and communication scan time T1 S ti f penta TscanA TscanA TscanA PLC A PLC Scan time Tdelay_plc1 gt Delayed sending time of Comm T delay_com i T2 Scan time of Tcom T com_scan T com_scan Comm _ scan Delayed Scan time Tdelay_plc2 I t _ gt Scan time of T scan B T scan B T scan B PLC A Figure 6 2 6 B Relationship between the PLC scan time and communication scan time In Figure 6 2 6 B the PLC A station transfers TX data by means of the communication module at T1 and it is the point of time when the program of PLC A is finished Therefore the time is delayed as much as delay_plc1 The Communication module can transfer data after waiting for the communication 6 27 CHAPTER 6 HIGH SPEED LINK scan delay time Tdelay_com after it receives data from the PLC It can be delayed as much as Tcom_Scan1 for the longest time delay In PLC B as well as the communication module transfers the received data to the PLC after waiting for 2 hours Tdelay_plc2 a delay factor as much as a maximum Tscan2 comes into existence Like Figure 6 2 6 A and Figure 6 2 6 B the Communication delay time is fixed according to a variety of factors such as total number of communication stations and program volume OS scan time of the communication module Since it is difficult to calculate the value of
171. ing screen appears Select one of the 4 HS_LINK1 4 HS_LINK1 is selected here High Speed Link Parameter 6 44 CHAPTER 6 HIGH SPEED LINK B If HS_LINK1 on the above screen is selected the following screen appears Hieh Spam inkt GLOFA Fret Sesion hoo D z 3 Sendirhecehe Read Amna Bjore area 12 q Fy 3 4 5 5 7 a a oa Nemeork foe SLOP Ered GLOP A Mial SLOPA Erel GLOFA F det hatak GLOFA Final Cable GLOFA Driel GLOFA Poet MDOFAF ET M GLOFS OL et ro ALOFA Rna Opening mode slot hia Self sta Ho 6 45 CHAPTER 6 HIGH SPEED LINK D Set the RX TX parameter after selecting number 0 in the registration list For the TX parameter High Speed Link 1 Item O Edit mStation type Station No Mode Block No a local p Aiia C Remote C Receive Area Send period From amp nw Cw Caw fo D ooms gt SizeWV ord To e A 2 ws La C Koy 10 10 coma ton For the RX parameter High Speed Link 1 Item 1 Edit Station type Station No Mode BlockNo Local 1 C Send o C Remote Receive Area Send period Fram ON TONAL gt eA De200ms x To SizedVYord E SMW O SW OWW 100 so 59 cme ee 6 46 CHAPTER 6 HIGH SPEED LINK E The following is set if operation 1 to 2 is executed High Speed Linki gt Link set Network type GLOFA F
172. irectly and write continuously the data in the memory as much as indicated by the designated address But only Direct Variable in byte format is available 2 Request format Format Data Reserved Block Variable Data Header Command Variable Data name type area number length number Code h 001 h 123 h 0058 h 0000 h 0001 h 0006 MB100 h 0002 Ex 4 4 1 Data number This means the byte number of data max 1 400 byte 2 Block number The block number is available only as h 0001 3 Variable length This is the number of letters for the Direct Variable name A max 16 letters are allowed and the range is from h 0001 to h 0010 10 21 CHAPTER 10 DEDICATED COMMUNICATION 4 Direct Variable This is the address of variable to write directly It should be ASCII value within 16 letters and for variable name nothing is allowed except numeric small capital letters and The available variable type of Direct Variable continuous writing according to PLC type are shown in the Table 10 3 2 data number according to the variable 1 For the area designation method of each device for the GKOFA and MK series please refer to the relevant technical manuals 3 Response format in the case of a PLC ACK response Format Reserved Block name area number Code zo h 0059 h 0014 h 0000 h 0000 h 0001 Ex 1 Data type The available data type is byte type MB IB
173. ired for installation Required materials 10 100BASE TX 10BASE 5 Coaxial cable AUI exists impedance 500 exists Yellow Cable both ends AUI cable N type connector female Twisted pair cable 4 pairs twisted pair cable impedance 1000 8 pole pup of both ends ie ed of 10BASE 5 needed na O WN N type connector male connector male e NA Huo ooo Using NA 62 5 125u m MMF Multi Mode Fiber Cable SC Type connector Hub Switch Optic Switch needed Fiber optic cable 3 2 CHAPTER 3 INSTALLATION AND STARTUP 3 2 Procedure for Product Installation up to Operation This section describes the procedure from product installation to operation After completing the installation install and set the system so that it can be operated according to the following procedure Operation Procedure v Install the FEnet I F module in the base gt Verify the relevant base slot position in the main base Connect the FEnet I F module with the other network gt Use the proper jig per media for the system configuration After power ON check the LED status of the communication module gt Check if the interface of the communication module with the CPU is normal After setting the station no or the IP address of the communication module turn the power ON gt Check the hardware if the segment is in STANDBY and ready for normal operation without any double registered station no or IP address Dow
174. irst and then operate ACTIVE 2 Single CPU GM3 CPUA program preparation The difference in the program method from the existing method is that the single CPU uses the redundancy Function Block 1 Prepare the parameters and frame by using Frame Editor and write to the FEnet I F module When writing convert the CPU mode to STOP After the completion of writing turn the power ON Prepare the program only for the first FEnet I F module The sending receiving communication by the second module is processed in the Function Block automatically The two FEnet I F module should be installed in the base continuously Basic setting screen IP address HS station no media setting Basic Parmieiers E PLE Type Ges iPAddess 165 244145 108 Bubna Mask 255 255 265 0 Banwa pono DHS Serer pumn HS Station Na O Reipkimi f Connection Ha F TTL a Connection aiterg Time ia za Dieconevectine Wating Tiree Lul i Aa Wmi Toe hut E Figure 12 1 54 GM3 basic setting screen 12 42 CHAPTER 12 PROGRAM EXAMPLES Sending frame preparation Fret Editor Frame Hame ERD Segment 1 te SEMD_GM3 Segment 2 Segment 3 we wane Segment 4 Tye rete Fm a fe ASIC ses fa Receiving frame preparation Erect Editi Gegnern 5 i Segnent 6 Tape Segment 7 i Tegner A Tape none m Frame Mame iw Ta As e T immediate Res OOO Recing Segment Tepe OOMST fe A
175. is as follows When the Link Enable is On in the local station station1 When Local station station 1 is in RUN status When Local station station 1 is not in the error status When the TX parameter data set in the local station station 1 is sent corresponding to the TX period When Data received from station 2 3 are received corresponding to the RX period When the action modes of the destination stations station 2 3 and that are sending data to the local station are in RUN mode and performs communication corresponding to the RX TX period 6 21 CHAPTER 6 HIGH SPEED LINK When the other destination stations station 4 5 action modes are set in the destination station s parameter station 2 3 of the local station station 1 are in RUN mode and are not in error status and performs communication corresponding to the RX TX period If all the conditions meet the qualifications the RUN Link of the local station is On If the RUN Link is operating with PLCs of several stations that connected with each other through the High Speed Link the user can conduct the mutual monitoring of the data sent and received with reliable communication But once the RUN Link contact is On remains On until the Link Enable is Off Therefore if the user monitors an abnormal status such as communication error the user should use the following Informati
176. it is possible to connect to all PLCs by network in GMWIN without using RS 232C In this case local connection is omitted and Remote Connection step 1 is carried out for all the PLCs In order to carry out direct Remote Connection step 1 by Ethernet select project option connection option and change the setting as shown in the dialog box below 9 7 CHAPTER 9 REMOTE COMMUNICATION CONTROL Option Make Option MantoiTebug Option Set Folder Connection Option Garsai Optie Number of retry E Method of Connection C REDS C Madem C GLOFA Fret for PE C GLOFA bingt tor PE f Eternal C USE GMC Cepin at Connection Beling of Rermoie 1 Network Tye acrem address 210 114 62 4 i Ferate 1 Ramo 2 Figure 9 2 6 Direct Remote Connection step 1 in a PC 1 Method of Connection Select the connection method In Figure 9 2 6 select Ethernet because Ethernet is used for a connection without using RS 232C 2 Depth of Connection Determine whether to select remote step 1 or remote step 2 for PLC connection Select remote step 1 here 3 IP address Record the IP address of the FEnet I F module desired to connect Figure 9 2 6 shows the IP address 219 114 62 34 for PLC B connection All of the following procedures are the same as using RS 232C When finished select OK and select Connect from the online menu 9 8 CHAPTER 9 REMOTE COMMUNICATION CONTROL The following
177. itor 1 10 1 5 3 FEnet F module version verification 1 11 1 6 Notices in Using 1 13 1 7 Terminology 1 14 CHAPTER 2 PRODUCT SPECIFICATION 2 1 General SpecificationS 2 1 2 2 Performance SpecificationS 2 3 2 3 Structure and CharacteristiCS 2 4 2 3 1 FEnet I F module structure 2 4 2 3 2 FEnet VF module mode setting 2 12 2 4 Cable SpecificationS 2 13 2 4 1 Ethernet IEEE 802 3 related cable specification 2 13 2 4 2 UTP caplet ain Ae 2 13 2 4 3 Fiber optic cable 2 16 CHAPTER 3 INSTALLATION AND STARTUP 3 1 Notices in Handling 3
178. iven in the format of user s ID domain name machine name For example it is like hjjee microsoft com The symbol is pronounced at and will be shown when pressing shift 2 on the key board The name after is the domain name of the specific company school institute etc connected to the internet The name before is the ID of the user who is registered to the machine The last letter group of the domain name of the top level The following abbreviations are the most frequently used examples in the U S A and around a the world com mostly for companies edu mostly for educational institutes like universities education In Korea ac academy is mainly used for educational institutes gov mostly for government related groups For example NASA is nasa gov government mil for military related site For example U S Air Force is af mil military org for non profit organization au for Australia uk for United Kingdom ca for Canada kr for Korea jp for Japan fr for France tw for Taiwan etc 9 Ethernet The representative LAN access method IEEE 802 3 developed in a joint venture by Xerox Intel DEC in the U S A This network connection system has a transfer capability of 10Mbps and uses packets of 1 5kB Since Ethernet can connect various types of computers to a network its name is now a synonym for LAN Its product range is not limited to a few users anymore but is
179. ize Mode Tm Error O Laced Sane Daima wiii i Local Receive lt i F Oo from 1 1 1 left 1 is communication state of communication module installed in left GMR CPUA and right 1 is communication state ol communication module installed in right 7 GMR CPUA And 1 out of parenthesis i cic oh is the value that make OR for the state Pat Cre inside parenthesis a 200 Co iyi 0h G50 i Coe AO Ce Oy Figure 12 1 20 High Speed Link monitoring From the above screen the RUN LINK communication is 1 and LINK TROUBLE is 0 This means that communication is working normally The above screen shows that the communication with the destination station is normal To verify the communication value select direct variable MW100 from online monitor variable monitor 3 GM3 program preparation 1 Select High Speed Link Open the project for GM3 or make a new one Select the High Speed Link parameter from the project The following screen will appear Select one of the four High Speed Links In this example select High Speed Link 1 and define the first communication module from the two FEnet I F modules High Speed Lisk Parameter ahventa High gesid Unka High Saeed Lnka Figure 12 1 21 High Speed Link selection screen 12 15 CHAPTER 12 PROGRAM EXAMPLES 2 If High Speed Link 1 from the above screen is selected the following screen appears High Spred fk Link set Metevork fae LO
180. k maximum 60 words Serial Number 1Word Data Word number set per block 1 IY S Start point address of the data area for a user to communicate with 6 36 CHAPTER 6 HIGH SPEED LINK In this serial number 1 added value must be written in this place from the user program at every period of RX TX of the appropriate block when sending When receiving the serial number set from the partner station s CPU is recorded D Communication with GM1 2 3 4 CPU in GM1 2 3 CPU with network redundancy Word number set per block maximum 200 words 6g SSS ee J Serial Number 1 Word Data Word number set per block 1 S Start point address of the data area for a user to communicate with In this serial number 1 added value must be written in this place from the user program at every period of RX TX of the appropriate block when sending When receiving the serial number set from the partner station s CPU is recorded 1 When you perform High Speed Link through redundancy in the GM1 2 3 CPU system M area must be used 6 37 CHAPTER 6 HIGH SPEED LINK 6 3 2 Using HS_LINK 1 HS_LINK in a redundant CPU system GMR CPUA Setting and operation of HS_LINK in a redundant CPU system is the same as that for a single system Dedicated Network of Ethernet 1 Dedicated Network of Ethernet 2 O Q m E m jm c C 3 3 w w g1Nn3 1 9 g1n3 1 9 Redundant CPU system GMR CPUA Single CPU sys
181. k No fa C Send 1 C Remote Receive Area Send period Fram COGN OUI Te OW D 200ms SizeWvVord To G C Cc MV OH IV HAW 100 fas oona Heo Figure 12 1 17 Receiving parameter setting screen 5 If the above 1 2 is successfully executed the completed settings should look like the following figure 12 13 CHAPTER 12 PROGRAM EXAMPLES High pead Link Link eel biii ret fae GLOFA FE Slot li Sar piatan Ha Ertir lied ho THe lore Ama 0 Locall bendil Ciim 10 1 Locall Recover Of20thms shee 00 58 00 ee d h Figure 12 1 18 Completion of the High Speed Link 1 settings 6 After finishing the High Speed Link parameter settings select close Next prepare the user program execute Compile gt Build All and then write the program to the PLC 7 After selecting Online gt Link Enable Setting the following window appears Link Emable seitinmg k PAS Lire 1 Figure 12 1 19 High Speed Link Enable Setting and Write 8 After changing the PLC mode to RUN select View Link Parameter HS Link 1 and check if the communication is performing normally for the setting parameters Even the destination station should be running normally by downloading the relevant program and the High Speed Link parameters 12 14 CHAPTER 12 PROGRAM EXAMPLES Rw nk 0 Link Tube 0 H Linki Mo Scan te Send Penod PLE dea B
182. l BIT 5 module interface is not possible due to an initialization failure of the special or interface error communication module in the slot or a module malfunction refer to failure SP_IFER IP_IFER_N _IP_IFER n Serious failure detection Representative flag indicating an error detection after detecting a serious BIT 6 error of external device failure of the external device by the user program The error is recorded L ANNUN_ER in ANC _ERR n BIT7 Resevedarea o OSO BIT 8 SCAN WATCH DOG This error occurs when exceeding the scan watchdog time designated by error WD_ER the parameter of program scan time BIT 9 Program code error This error occurs when encountering an undecipherable command while L CODE_ER performing the user program BIT 10 STACK OVERFLOW This error occurs when the program stack overflows the normal range Error STACK_ER while performing the program This error occurs when the program memory is broken or it is not Program error F BIT 11 possible to perform the program because of a program error refer to _P_BCK_ER DOMAIN_ST BIT 12 R d BIT 15 eserved area E _CNF_WAR 2Byte System warning light BIT O failure RTC data error Flag indicating an error when the RTC data has an error _RTC_ERR Flag indicating an error when it is not possible to perform the normal hot BIT 1 Data BACK_UP error or warm restart program because the data memory is broken due to a D_BCK_ER BACK_UP error Therefore a col
183. lated using the complicated calculation system like formula 6 2 6 C The total number of communication stations is over 10 and the volume of 6 28 CHAPTER 6 HIGH SPEED LINK the sending data is over 512 bytes St Et x To x Ntx Mf Formula 6 2 6 C Et Effective Tx Ratio Effective Transfer Ratio To Octet time Transfer Time of 1 Byte Ntx Total Tx number Mf Margin Factor Each term is determined as follows Et St x Nf e s Formula 6 2 6 D St Total Communication Station Number Nf Constant Value of the Network Factor according to Communication System Characteristics and 1 5 in FEnet System To octet time Spent time when 1 byte of data is transferred through serial data Its value is as follows FEnet 0 8 Ntx The total TX data number It is calculated by including variable service numbers It is calculated as follows FEnet Sum of the numbers of TX bytes of the High Speed Link FB Service data number of local station x 1 024 Mf Margin factor It is namely a margin value for factors not expressed by the above formulas such as the O S scan time of the communication module It is determined as follows FEnet 25 6 29 CHAPTER 6 HIGH SPEED LINK 6 2 7 Example of the High Speed Link between PLCs of FEnet The setting method of the High Speed Link parameter is described to perf
184. le is O Figure 6 2 7 B Example of a user program GM1 2 3 are common Figure 6 2 7 B is a program example 1 It allows the system to output RX data MWO through the output module of slot number 1 when the High Speed Link is normal _HS1RLINK 1 HS1LTRBL 0 Using the program by mixing the information of Run Link and Link Trouble like Figure 6 2 7 B can raise the reliability of your work B Setting parameters for the High Speed Link In the system like Figure 6 2 7 A the user should edit the map for RX TX data like table 6 2 7 A after writing a user program like Figure 6 2 7 B This allows stations 1 2 3 to exchange data like table 6 2 7 A The user also has to edit the parameters of the High Speed Link and then download with the PLC to send and receive data like table 6 2 7 A The user is able to start the High Speed Link according to the following order 1 Download the station number and parameters using Frame Editor Connect the communication cable 2 Edit the user program for each station 3 Editing a map to send and receive data 4 Set parameter in Setting High Speed Link parameter of GMWIN 5 Perform Compile and Make in the compile menu 6 Execute Writing program and parameter in the on line menu 7 Set High Speed Link Enable corresponding to the setting number by selecting Enable Link in the on line menu 6 31 CHAPTER 6 HIGH SPEED LINK 8 Chan
185. lect the connection option tab gmwin c emwin4 05 e isource e6 nonam SCR Project Program Edit Yiew Compile Online Debu 3 New Project e0 open D Upload Project From PLC es Save Save As Close Import Project Bundle Export Project Bundle Add Item gt M Area Edit Preview Print Project E Print Program Ctrl P Printer Setup 1 c gmwint 05fe sourcegm3 qm3 prj 2 c gmwint OSfe source gm6 qm pri 3 c gmwint O5fe source g6 g6 prj Exit Figure 9 2 2 GMWIN Remote Connection option selection 1 Method of Connection This selects the method for local connection Figure 9 2 3 shows the local connection by using RS 232C For the communication port select the port currently used by the PC In the case using Ethernet it is described in the next clause When using another connection mode please refer to the user s manual related to each communication module 2 Depth of Connection This is to determine whether to select local remote step 1 or remote step 2 for PLC connection Select remote step 1 9 3 CHAPTER 9 REMOTE COMMUNICATION CONTROL Option Make Option Monitor Debug Option Set Folder Connection Option General Option Number of retry 3 Method of Connection C Modem Communication port COM3 C GLOFA Fnetfor PC GLOFA Mnet for PC Ethernet r USB GM4C Depth of Connection Setting of Remote 1
186. lected here Sue i irri Oj taninos bln inet ah poar megen pE ye conp Grime Debug poii ynde aie TTET TE T ix d PARAME TEFA E a a T ee a aa a B BASIC PAAANET i LD PARANE TER TEET Li Enreatwaming Gos Ameme A 0 h Capita Oot A Gemmunsaioe f Figure 6 2 3 A Basic screen of the GMWIN project 6 9 CHAPTER 6 HIGH SPEED LINK 2 Selecting the link parameter A Setting method Go into High Speed Link Parameter by selecting the appropriate parameter on the basic screen Figure 6 2 3 B High Speed Link Parameter Figure 6 2 3 B The Basic Screen of the High Speed Link Parameter B Setting function The High Speed Link items of Figure 6 2 3 B mean that the maximum communication modules are equipped according to the CPU type of the PLC For example the GLOFA GMR GM1 GM2 GM3 CPU can have a maximum of 4 communication modules and it can set High Speed Link from 1 to 4 However the GLOFA GM4 CPU can only have a maximum of 2 communication modules The High Speed Link 1 and 2 buttons are marked with a dark deep color and the rest is impossible to set At this time the High Speed Link number has nothing to do with the mounted slot number A user should set the slot number on Setup for each parameter and only one High Speed Link parameter should be set for each communication module Table 6 2 3 A displays the communication device to be mounted and the maximum number of module for each CPU of GLOFA 6
187. leted download the relevant frame to the PLC After completing the download reset the PLC CPU 12 9 CHAPTER 12 PROGRAM EXAMPLES PC COM1 PLC pecvececcesceccsesescseevescessessees C Single Redundancy Basococcesesoseesosococsececseseosto Cancel Figure 12 1 9 Selection of the duplication communication port In order to connect by Duplication and download the frame to the communication module select duplication for the PLC from the communication port menu in Frame Editor as shown in Figure12 1 9 Then connect online and select the CPU type master slave desired to download and download it to the PLC CPU Select CPU x CPU A C CPU B Cancel Figure 12 1 10 Redundant CPU selection screen 1 Connection is completed Figure 12 1 11 Redundant CPU connection completed 12 10 CHAPTER 12 PROGRAM EXAMPLES Sint Hm ST amp E i Opmar amp Basic Parameters Figure 12 1 12 Writing the basic parameters 1 For High Speed Link communication download only the basic settings 3 Preparation of redundant CPU GMR CPUA program preparation 1 Select the High Speed Link Open the project for duplication or make a new one Select the High Speed Link parameters from the project The following screen will be appeared Select one of the four High Speed Links In the example High Speed Link 1 is selected High Speed Link Paremnetar High
188. letters of the Direct Variable A max of 16 letters are allowed The range of this value is from h 01 to h 10 10 9 3 Direct Variable The address of the variable that is desired to be read should be entered It should be an ASCII value within 16 letters For the variable name only numbers small capital letters and can be used CHAPTER 10 DEDICATED COMMUNICATION The following table shows the Direct Variable available to use depending on the PLC type Type GM1 GM2 GM3 GM4 GM6 K1000S Double Word MX QX IX MX QX IX MX QX IX MX QX IX MX QX IX P M L K F T X P M L K F T xX P M L K F T X MB QB IB MB QB IB MB QB IB MB QB IB MB QB SMW QW AIW SMW QW AIW SMW QW AIW SMW QW AIW SMW QW AIW P M L K F T C D S W P M L K F T C D S W P M L K F T MD QD ID MD QD ID MD QD ID MD QD ID MD QD Long Word ML QL l ML QL l IB ID po C D S W po Table 10 3 1 Types of Direct Variables 1 For an area designation method for each device of the GLOFA and Master K series refer to the GLOFA PLC technical manuals 2 The device data type of each block should be the same If the data type of the first block is Word and the data type of second block is Double Word an error may occur 1 When preparing the frame it is required to delete the
189. lly operating by the parameters It is also a kind of contact containing an On status until the Enable Link is turned off It is turned On under the following conditions 6 20 CHAPTER 6 HIGH SPEED LINK When Enable Link is On When the registration list setting of the parameters is normally set When all the data in the registration list of the parameters is sent and received corresponding to the service period When the status of all the destination stations set in parameter is in RUN and there are no errors Station 1 Station 2 Station 3 Station 4 Station 5 EE a PET PET a Configuration of the High Speed Link System Station 1 Station 2 Station 3 Station 4 Station 5 TX 2 Word TX 2 Words TX 2 Words r roS RX 2Words RX 2 Words RX 2 Words f 2 stations erauen uae TX 2Words TX 2Words RX 2 Words RX 2 Words f RX 2 Words 4 stations 5 stations 3 Stations b Example of the parameter setting of the High Speed Link for each station Figure 6 2 5 A Conditions when the Run Link is On Figure 6 2 5 A shows a configuration example of the High Speed Link system to describe the conditions when the Run Link is On If 5 communication modules are connected to the network Figure 6 2 5 A and have the High Speed Link status with parameter contents of Figure 6 2 5 B the condition when the Run Link is On in local station
190. lot For remote step 1 slot no fill in O if the PLC A module is installed for the connection of PLC A gt PLC B For remote step 2 slot no fill in 1 if the PLC B communication module is installed for step 2 connection from PLC B gt PLC 2 Station no This designates the station no which is connected by remote step 1 and the station no which is connected by remote step 2 respectively For Remote Connection step 1 input station no 1 of PLC B For remote step 2 input station no 5 of PLC C After setting the network type station no slot no as the same value as above select OK in the dialog box A message saying connection is completed is displayed on the bottom of KGLWIN screen This means that step 2 connection is completed This is a logical connection state that is the same as if it is connected by moving the RS 232C cable to PLC C All online menus are available to be used Table 9 3 1 shows the possible relationships for the connection between the device Client that requires the connection of the RS 232C cable that is connected to KGLWIN communication service and the device server that connects according to the connection request by Fnet communication PC module K1000S K300S KGLWIN PC module KGLWIN a ee aa tos x o o Poe a a oe E a Or ad Table 9 3 1 KGLWIN Client and Server relationship 3 Direct Remote Connection step 2 to a PC connected by Ethernet In Figure 9 3
191. lso showing the use of flag available when receiving data When there are data sent by channel selected a user CH_NO RCVx_ECM y is set Therefore it is very convenient for you to use RCVx_ECM n flag as start condition of Function Block RCVx_ECM n x is slot number in which FEnet module is instlled 0 7 N is the channel number to be received 0 15 Figure 7 4 7 shows an example of the frame setting as an Immediate Response when setting the RX frame setting 1 If you set Type as SKIP in Frame Editor when setting segment it does not check as much data as appropriate size set but it checks Segment set next to it In SKIP if you set data number as FFFF in HEX it means that it throws away received frame from now on without checking them 2 Immediate Response frame is a function given as receiving confirmation from the local station when destination station asks for special data It is used to confirm whether the data are properly delivered after the destination station has sent data to the local station It is not necessary to set it according to destination station s status Erat Editor Frame Mame IM_RESP Taz Hooves ladie pied Reorg Arnen feMetoo Tagmeni T Segment 5 Type F ASC Type MONE JELOFA HEAD Segmend 2 Segment amp Type CONST ASCH Type HONE jen Tagme 3 Segman T Segment 4 Segment A Type MONE Type HONE HK Canc
192. m the destination station At this time Frame Name specified as Immediate Response must be registered in Frame List and its type is set as Sending In addition in case that ARRAY is used in Segment within Frame you have to specify Sending Area If not an error occurs Therefore you should set it properly without fail See Fi gure 7 4 7 7 21 CHAPTER 7 GMWIN FUNCTION BLOCK Enet Editor x Frame Name RCV_FRAME Tx Rx leceive xl Immediate Res Receiving Area ZMB700 Segment 1 Segment 5 Type M ASCII Type SLOFAHEAD SSS Segment 2 Segment 6 Type F ASCII Type rooz Segment 3 Segment 7 Type Type NONE Segment 4 Segment 8 Type Type NONE v Pea Figure 7 4 5 Receiving frame definition screen in the case when not using TCP_RCV Function Block Frome Mame CY ARAME Tea Pume ol medaio Ree stewing Aiea EMBO Ceyment Temani 5 mh te eons vain te E i Enmane 6 60L0OCOCOCOC SOSN i AERA ri Sequent 2 Segeeant G M Mi has Type cORST a Sil Tepe HOME ect E ito wt Degnan J Tepen 7 Ji Type OME Tepe WOHE AUT bn Beneni 4 Emprani H Tyme wine Trpo hine C __ tance Figure 7 4 6 Relationship between Frame Editor and Function Block when receiving 7 22 CHAPTER 7 GMWIN FUNCTION BLOCK Figure 7 4 6 shows the relation between Function Block and Editor Frame when receiving data and it is a
193. mance of run according to the the High Speed Link to run with CPU mode key RUN ee PAUSE status of the CPU module key Table 5 1 Performance differences between the High Speed Link and the Function Block Writing a program using GMWIN and Frame Editor gt compiling gt downloading into PLC running 5 2 CHAPTER 5 COMMUNICATION PROGRAM 5 2 Frame Editor If the user wants to use the GLOFA Ethernet Communication module the user should first set up the system parameter and then download the set parameters by the Ethernet module A frame that takes charge of such work is called a Frame Editor 5 2 1 Overview The Frame Editor is a tool that defines the basic system parameters This controls and manages the network and the communication frame in the Ethernet communication The Frame Editor is composed of 2 kinds of setups basic parameter setup and frame list setup The basic setup determines the communication system parameters on the Ethernet network The frame list setup defines the communication frame when performing a Function Block communication The parameter and frame set by a user can be written downloaded in the Ethernet communication module and they can also be read uploaded by the Ethernet module 5 2 2 Basic parameter This section describes the basic parameter settings necessary for the operation of the FEnet I F module For frame setting please refer to the Function Block section Figure 5 2
194. mbers Figure 6 2 5 E shows the monitoring screen when 2 of High Speed Link parameters are set for High Speed Link parameter 1 6 24 CHAPTER 6 HIGH SPEED LINK HS Link Parameter Mom Rin Link Link Triable 0 Fron Area To Area Sire Mode Tre Ero Local senda Biz mima THUG i Locali Receive D2 hima THUD 1 Seeeeseeeaaa jeerrerocrreso Dee D a a G a a a ae Ep Figure 6 2 5 E Monitoring screen for the High Speed Link parameter The selected High Speed Link parameters and information are all monitored after selecting the High Speed Link information It is possible to monitor the High Speed Link status with I O data because the set individual information values are monitored together 6 25 CHAPTER 6 HIGH SPEED LINK 6 2 6 Calculating the speed of the High Speed Link 1 Introduction The transfer rate of High Speed Link data can be fixed according to various factors This is because the data of a block goes through the same path as Figure 6 2 6 A until it is saved in the RX area of another station after being sent from a station PLC CPU A PLC CPU B Data transferred by the communication Data received from the communication module at the end of a PLC user program module at the end of a PLC user program scan scan Communication Module Station 1 Communication Module Station 2 Sending when the module received the Delivering data by PLC after receiving the tok
195. meter and download using the PLC The procedure to start the High Speed Link is as follows 1 Download the station no and parameters by Frame Editor Connect the communication cable Prepare the user program for each station Prepare the data sending receiving map Set the parameters for the GMWIN High Speed Link parameter setting Execute compile and make from the compile menu Execute the program and write the parameter from the online menu Select the Link Enable settings from the online menu and enable High Speed Link suitable 2 3 4 5 6 7 Dae ra wvra a Sw for the setting no 8 Change the mode to RUN from the online menu 9 Check the High Speed Link state using the link parameter monitor 10 If an error occurs retry from 1 Ene ya 117 Hasit lintemunt yO ftmt wz z5 i Sel Station No 0 a basii Shot a Tyme Fine E a K1000S Station 0 High Speed Link parameters Hasic Interrupt io fuin Lina Lints Enable Sah Staion nefi fase 0 Slat i Type FEnet b K1000S Station 1 High Speed Link parameters 12 56 CHAPTER 12 PROGRAM EXAMPLES Basir inberrunt i o Stink Link tne rabii al Bell Stator No 7 Base o Sot f Tee FE c K1000S Station 2 High Speed Link parameters Figure 12 2 5 Example of the High Speed Link parameter settings After preparing the program and parameters as shown in Figure12 2 4 an
196. n lt LED indication refer to the table on the right side STATION Station no No O indication switch Flash O S COMM download connector DC IN 12V External power ov supply terminal FG 12VDC 10B4SE 5 Media connection connector LED Module ee RUN ON when the power supply and the initialize of a module are normal ON when it can normally communicate VF RUN with the CPU module 2 FB CMD ON when the function block command service starts 3 ON when high speed link service starts PADT ON when GMWIN KGLWIN remote service starts PC MMI ON when dedicated communication EEN A starts H W ERR io when the module cannot recover from a fatal error by itself a Blinks when sending the data p RX Blinks when receiving the data 10 100 Communication speed of the media 2 6 CHAPTER 2 PRODUCT SPECIFICATIONS 4 G4L EUTB G4L EUTB lt Model indication HJH LED Module far iF Ru h refer to the table ON when the power supply and the Bir x on the right side po RUNO initialize of a module are normal es ax ON when it can normally communicate WEEE 0 VF RUN with the CPU module FB CMD ON when g function block a Station no command service starts indication ON when high speed link service switch 3 starts lt 4 Flash O S ON when GMWIN KGLWIN remote PADT download service starts connector PC MMI ON when dedicated communication lt 4 Media EEN A starts connection connector H W
197. n Block 2 Function Blocks perform their services with different communication paths at the same time Therefore if one side is not in service the other side is continuing to do the service Basic I O data is identical to the existing Function Block If only one of the two paths succeeds in its service it still output normal data The time of a redundant Function Block is a bit longer than the existing Function Block for data processing The TX RX size of the dual system is different from that of the single system See below Total Data Size GMR CPU GM1 2 3 4 READ 1024 Bytes 1400 Bytes WRITE 400 Bytes 1400 Bytes HS_LINK 120 Bytes 400 Bytes 7 25 CHAPTER 7 GMWIN FUNCTION BLOCK The library used when implementing the redundant system is as follows The name of the redundant Function Block is Dxxx The existing Function Block is xxx Classification GMR CPU GM1 2 CPU GM3 CPU GM4 CPU GM4 CPU COMMUNI COMMUNI COMMUNI COMMUNI Single System 1FB 3FB 2FB 4FB COMMUNI COMMUNI 1 COMMUNI 3 COMMUNI COMMUNI 4 Redundant RFB FB FB 2FB FB System DUAL_FB DUAL_FB DUAL_FB DUAL_FB 1FB 3FB 2FB 4FB Table 7 5 1 Library of redundant Function Block DUAL_FB xFB is the user library using the existing Function Block edited for redundancy 7 5 3 Types of redundant Function Blocks The redundant Function Block used to edit a program in a redundant system is as follows Its f
198. n PLC type is GM4 6 designates the High Speed Link sending receiving data number according to CPU type Extended mode 200 WORD extends max sending receiving data size per block up to 200words GM4C Basic mode 60 WORD GM4 6 limits max sending receiving data size per block as 60words GM4A B 5 6 CHAPTER 5 COMMUNICATION PROGRAM 5 2 3 Connecting and Downloading using the communication module 1 Downloading Uploading the Frame You can download write defined basic parameters and frames in the Ethernet communication module with Frame Editor Uploading reading the frame or the parameter from the Ethernet communication module is also available 1 Write download When CPU is running stop the CPU before doing write If you carry out write while running it may affect the communication seriously a For connection use the CPU of main base that Ethernet communication module desired to write frame and parameter is installed or connect by online Figure 5 2 5 shows the completion of connection In case of using COM port such as GMWIN KGLWIN disconnect GMWIN KGLWIN before connecting Enet Editor NONAME x File Edit Online Option Help Group Frame List Receive camel an Setting Remote Send Delete Edit Frame Information LINK FENET Figure 5 2 4 Connect screen CHAPTER 5 COMMUNICATION PROGRAM J L Connection is completed Figure
199. n base and TCP IPT 12 61 CHAPTER 12 PROGRAM EXAMPLES Figure 12 2 12 K300S basic settings Figure 12 2 13 ECON channel establishment 12 62 CHAPTER 12 PROGRAM EXAMPLES Figure 12 2 14 Sending receiving program 2 Frame Editor setting Figure 12 2 15 Example of frame setting in the K300S 12 63 Frame Mame EEND Tafa Sut a Segment 1 Tee COMET je ASEH EE o o OoOO Segment 2 Tyme ARRAY foe e Segnen J Ten none z Segmen tree nane CHAPTER 12 PROGRAM EXAMPLES Segment hi Tyee wane Segment E Twa none Segeent 7 Typa none Segment Tre Nowe D bmediate Rer Sordin Le o olm i a Sending frame in K300S Frane Hane ACY Tati Inmediata Fes f O Resia Segment 1 Segment 5 Type CONST F ASCH Teme WOME pe agmen 2 Segment amp time ARRAY see p ree NORE Segment J Segment 7 tv NONE tye nom Segment 4 Segmens amp Type NONE Tam nowt z b Receiving frame in K300S Figure 12 2 16 Frame Editor setting screen 12 64 CHAPTER 13 TROUBLE SHOOTING CHAPTER 13 TROUBLE SHOOTING This chapter describes the causes and actions for the failures and errors which may occur during system operation In order to check for the FEnet I F module error please follow the procedures below To check the state of the module take the necessary actions in the proper order using the trouble sh
200. n station or the local station according to the Function Block Please refer to each Function Block Example 150 150 42 150 D_PORT The port number of the destination station s communication module Setting between h 400 h 7fff SD_PORT The port number of communication module of the local station Setting between h 400 h 7fff CH_NO The channel number to be established selected by user Able to select at least 16 channels from channel number 0 up to 16 It is not possible to use the same channel number for two Function Blocks within a program ARR_CNT DATA The data volume to be sent and received The volume of transferred frame can be up to 1 400 bytes However for the redundant system of GMR the volume of transferred frame is limited to 120 bytes NDR After the Function Block is started and data is received normally it turns ON and then it turns OFF until the next Function Block is started ERR After the Function Block is started and an error occurs it turns ON when the next Function Block is started If an error occurs data is not received For error codes refer to the appendix A3 Error Code STATUS After the Function Block is started and an error occurs the ERR turns ON anda 7 4 CHAPTER 7 GMWIN FUNCTION BLOCK detail code value of the error will be displayed It keeps its value until the next Function Block is started Requirements of the Function
201. ndition for the sending receiving function 3 After compile make write using the PLC For operation verification in the case of sending the GM4C local station operates against the destination station redundancy CPU by TCP ACTIVE The destination station establishes the connection to the local station and then operates the connection of the local station CON_S 1 In the case of receiving it operates the connection from the local station CON_R 1 and operates the connection of the destination station That is in the case of connection operate the PASSIVE or SELECT side first and then operate ACTIVE 12 45 CHAPTER 12 PROGRAM EXAMPLES 12 1 6 Redundant CPUs and GM1 Function Block service This section describes an example of Function Block service between two FEnet I F modules composed of communication redundancy The system Figure 12 1 57 configuration shows the example that realizes the network duplication by using two FEnet I F module between a redundancy CPU and a GM1 CPU Ethernet dedicated network 1 or public network 1 Ethernet dedicated network 2 or public netWork 2 165 244 149 31 165 244 148 31 165 244 149 32 165 244 148 32 Redundant CPU system GMR Single CPU system GM1 1 Single CPU system GM1 2 Figure 12 1 57 Redundancy system configuration The program method for a redundancy CPU is the same as the existing method but the
202. ned area of the memory address for variable RX_SRI_A MW100 1word RCV_A MW101 MW110 10word RX_SRI_B MW200 1word RCV_B MW201 MW210 10word Figure 6 3 3 B Example of Function Block HS_FB 6 52 CHAPTER 6 HIGH SPEED LINK H Write in the PLC after selecting Compile gt Build All from the above program Set as follows after selecting Link Enable Link Enable Setting lv H S Link1 lv H S Link 2 M H S Link 4 canet Hep J Confirm whether the communication for the set parameter is normally operating by selecting On line Link parameter and Monitor HS_LINK1 after changing the PLC mode to RUN HS Link Parameter Monitor Run_Link 1 Link_Trouble 0 Class From Area To Area Size Mode Trx Error Local1 Send1 D 266ms FALLS 0 Local6 Received D 266ms ZH 88 11 1 1 0 0 0 0 0 0 0 0 0 The above screen shows the situation of HS_LINK1 If the communication of the Run Link mode is 1 and Link Trouble is 0 it means normal communication status Please confirm HS_LINK 2 in the same way To confirm the value to be communicated select the direct variable MW100 200 or the variable RX_SRI_A B RCV_A B HS _ RDATA in On line Monitor Variable Monitor 6 53 CHAPTER 7 GMWIN FUNCTION BLOCK CHAPTER 7 GMWIN FUNCTION BLOCK 7 1 Overview The Function Block is used to communicate between Ethernet communication modules o
203. nel establishment Device 0 STATUS high byte ERR ON when an error occurs after command ERR 1 bit NDR O bit execution Device 1 CH_EN O bit STATUS Detail code value for the error CH_EN Result for channel establishment Device 0 7 METHOD ASCII Data within 16byte 1 TCP_ACTIVE Destination station port Dest Port destination station IP address Dest IP_ADDR This is the channel to use TCP IP and designates the destination station for communication For communication with the designated destination station the local station acts as the client 2 TCP_PASSIVE local station port Source Port local station IP address Source IP_ADDR This is the channel to use TCP IP which is established for the station that requires to establish the channel first The local station acts as the server for communication with the designated destination station 8 3 CHAPTER 8 MASTER K COMMAND 3 TCP_SELECT local station port Source Port destination station IP address Dest IP_ADDR This is a kind of TCP_PASSIVE and establishes the channel only for the destination station designated by the user The local station acts as the server for communication with the designated destination station 4 UDP_ACTIVE local station port Source Port local station IP address Source IP_ADDR This is the channel to use UDP IP and opens only a socket For the communication with the designated destination station the local station acts as
204. ng the same module because it uses a subnet broad service Therefore if a user wants little influence on other modules and an efficient maximization of communication the user should set up data using nearly all the maximum settable numbers 400 bytes of the TX RX per High Speed Link block In this way the total block numbers used is reduced To use all of the functions the user must download by setting the basic parameters See section 6 2 Setup of Parameter High Speed Link function is as follows High Speed Link Block Setting A user can set 64 blocks 32 for TX and 32 for RX if there are several RX TX areas Up to 200 words per block can be set Thus the maximum link dot number is 12 800 words TX RX Period Setting The TX RX period can be set by a user for each block The user can also set the TX RX period from 200 to 10 sec for the areas where especially fast RX TX is required Therefore the user can increase the total communication efficiency TX RX Area Setting A user can set the TX RX area for each data block according to the O MAP High Speed Link Information Since it offers a user High Speed Link information by the user keywords of GMWIN it is easy to build reliable communications Table 6 1 shows the High Speed Link dot numbers per communication device type In Table 6 1 the unit of basic link length is 1 word Maximum Maximum Maximum bit ase et ee Maximum Classification communication tra
205. nload the PADT program for the setting frame gt After connecting online write or run the communi cation operation of the product Vv Data monitoring or self diagnosis v Start operation 1 If the station no and the IP address are set in the hardware it is required to reset the relevant module The first station no and IP Address including frame maintains the value reading from the communication module at the initialization The changed contents during communication are not applied CHAPTER 3 INSTALLATION AND STARTUP 3 3 Installation 3 3 1 10 100BASE TX installation 44L EUT paveure Hub 8pin RJ 45 plug Figure 3 3 1 10 100BASE TX installation method The Max segment length of 10 100BASE TX is 100m distance between this module and the hub Generally the hub uses the straight cable twisted internally by sending TD and receiving RD If 2EA of this communication module is connected by 1 1 cross cable type should be used Straight cable between hub 1 1 cross cable this module 3 4 CHAPTER 3 INSTALLATION AND STARTUP 1 10 100BASE TX cable is subject to the external noise of the structure Therefore it is required to assemble the cable by twisting the cord of no 1 amp no 2 pin TD TD and the cord of no 3 amp no 6 pin RD RD to decrease the noise 2 For hub power use noise free power by separating from the PLC power 3 For cable terminal
206. nnel contact number for LGIS dedicated communication by converting the dedicated contact number in frame editor For further information please refer to 5 2 Frame editor 10 4 CHAPTER 10 DEDICATED COMMUNICATION 10 2 2 Frame structure The following shows the application frame structure of the LGIS Ethernet module IP Header TCP Header Application Data Format Application Header Format Application Instruction Format 1 Header structure Application Header Format Size byte Peer LGIS GLOFA pany ASCII CODE 4C 47 49 53 2D 47 4C 4F 46 41 Client HMI gt Server PLC Irrelevant 0x00 Server HMI gt Client PLC Bit0O 05 CPU TYPE 0 GM1 1 GM2 2 GM3 3 GM4 4 GM5 8 GM3 Remote 9 GM4 Remote PLC Info 2 Bit06 0 Redundant Master Single 1 Redundant Slave Bit07 0 CPU operation normal 1 CPU operation error Bit08 12 system state 2 STOP 4 RUN 8 PAUSE 10 DEBUG Bit13 15 slot no of the FEnet I F module a sl wei a a 0 1 0x00 reserved area 1 1 Client HMI gt Server PLC 0x33 Source of Frame Server PLC gt Client HMI 0x11 ID to distinguish the order between Frames Invoke ID 2 send by adding this ID to the response frame Length i byte size of the Application Instruction 0x00 reserved area R d BCC 1 0x00 reserved area eserve Byte sum of the Application Header 1 2 10 5 CHAPTER 10 DEDICATED COMMUNICATION 2 Basic
207. no 0 in the FEnet I F module in the main base slot no 0 in order to verify the data request from the destination station If data receiving is normal RCV_NDR shall be set Make OR for this bit and channel establishment signal CHO_EN bit and read the MBO data as much as DATA_LEN under TCP_SEND function requirement and send it to GM2 12 26 CHAPTER 12 PROGRAM EXAMPLES Figure 12 1 38 Example of the GM3 program Enet Editor PPP ENT ajx File Edit Online Option Help ASCII Conversion none Add Delete Edit Frame Information 00 RC V_FRAME Receive 110byte SCII GLOFA HEAD RRAY 100 byte Send 01 SEND_FRAME 02 IM_RESP Add LINK FENET a Example of the GM3 frame settings 12 27 CHAPTER 12 PROGRAM EXAMPLES Erect Editor E Fraviven B arimai FEND _FRAME Tutik D immediate Aes Semiling Segment i Segment tn sasen Tome NOME GLOFA HEAD Segment 2 Segment G Type MASEN Twe FFooSuan Seamer 3 Segment F Type ARRAY Soe fig wre HONE Segneri 4 Segment Trpo Hone Type OME Lo Emsi Frame Ham AEN _FRAHE b GM3 sending frame Enei Edisi E ruma Immediste tes O Recing Aea Seqenent 7 Seqaneni fi Ume const ascu Twe NONE pioraneao ooo Segment 2 Segment i Ime ARRAY See fag Twe OWE Segment J Segment 7 iy NONE Segment d Tavs None Tyee none z Segment Tree HOME c GM3 rec
208. nsmitting bit numbers per block numbers bit numbers numbers block GM3 K1000S 12 800 6 400 64 0 63 GM4 6 K300S 200S 3 840 3 200 64 0 63 60 Table 6 1 Maximum communication length per device type 6 1 CHAPTER 6 HIGH SPEED LINK 6 2 High Speed Link 6 2 1 TX RX data processing using the High Speed Link How to use the High Speed Link is described using a setting example in which the Ethernet modules of O station and 1 station have the same data Example Station 0 sends 10 words of MW0O data with block number 0 The data sent to station 1 is saved in MW10 Station 1 receives 10 words of MWO data from station 0 saves it in MW100 and then sends 10 words of MW110 data to block number 1 Station 0 Sender Station 1 Receiver e Station Type Block 0 Block 0 Local EE Block 1 Block 1 e Mode TX RX e Reading Area e Block Number 0 1 A MWO MW10 eRX TX Period 200ms e Size 10 e Station Type Local e Mode TX RX e Block Number 0 1 e Reading Area MW100 MW110 eRX TX Period 200ms e Size 10 Figure 6 2 1 A Block diagram of the data flow There are 32 block numbers for sending 32 for receiving when using the high speed parameter to send and receive data A user can use block numbers by specifying from 0 to 31 for sending and receiving data When a sender sends data it decides which data it sh
209. oca Sendo Cime RONDO 1 Local Fecal Ganime i j ai 5 T A g 1 b GM3 station 2 High Speed Link parameter 12 5 CHAPTER 12 PROGRAM EXAMPLES High Speed Link Link set Habent tree OLOFA FEret Sigi 0 Se station Mo 2 Ho Tire Sen GRrecahe Reed ares Siora Area Local Sendo Wins Shvl20 1 Local Recalved Deano AND c GM3 Station 3 High Speed Link parameter Figure 12 1 5 Example of the High Speed Link parameter settings After preparing the program and the parameters as shown in Figure12 1 4 and Figure12 1 5 select Compile gt Build All from the compile menu and download it in the relevant PLC from the online menu After that set Enable Link and the High Speed Link starts to send receive according to the setting parameters Set the PLC mode to RUN to start If the High Speed Link parameters are downloaded Link Enable may turn to Disable automatically Set the link enable again Link Enable is only available to be set when the PLC is in STOP mode from the Frame Editor download the High Speed Link station no to the FEnet I F module per CPU 4 Results from data sending receiving monitoring This section describes the active state of the PLC communication module prepared by the above program This distinguishes the normal action of the communication module using online High Speed Link monitoring It is possible to check the sending receiving state by program monitoring of
210. ode ON when the CPU is in Debug mode F0006 Remote mode ON when the CPU is in Remote mode F0007 User memory install ON when User memory is installed F0008 F0009 No use FOOOA User memory operation ON when the User memory is operating FOOOB FOOOE No use FOOOF STOP command ON when performing the STOP command F0010 Always ON Always ON F0011 Always OFF Always OFF F0012 1 scan ON 1 scan ON F0013 1 scan OFF 1 scan OFF F0014 Reverse at every scan Reverse at every scan F0015 F001F No use F0020 1 step RUN ON when 1 step RUN operates during debug mode F0021 Break Point RUN ON when Break Point RUN operates during debug mode F0022 Scan RUN ON when scan RUN operates during debug mode Contact value match RUN F0023 ON when contact value match RUN operates during debug mode F0024 Word value match RUN ON when word value match RUN operates during debug mode F0025 F002F No use F0030 Heavy failure ON when a heavy failure error occurs F0031 Light failure ON when a light failure error occurs F0032 WDT error ON when a Watch Dog time error occurs F0033 I O combination error ON when an I O error occurs in the case when more than one bit among F0040 FOO5F is ON F0034 Battery voltage error ON when battery voltage is less than the standard value F0035 Fuse error ON in the case when t
211. of the following Run Link _HSxRLINK allows the user to know all the information in the communication network individual information such as HSxSTATE HSxTRX HSxMOD HSxERR informs the user of all the information from Link Trouble _HSxLTRBL and the communication status by 64 registration lists within the parameters The user can use the above information in the form of a keyword when editing the program and monitoring the status of the High Speed Link using the information monitor When operating a variety of PLCs by using the High Speed Link it should be used after the reliability of TX RX data is confirmed by using High Speed Link information such as Run Link and Link Trouble Table 6 2 5 A shows the function and definition of High Speed Link information High Speed Classification Run Link Link Trouble RX TX Status Action Mode Error i Link Status Information Total Total Individual Individual Individual Individual kind Information Information Information Information Information Information Keyword N ane HSxRLINK HSxLTRBL _HSxTRX n _HSxMOD n _HSxERR n _HSxSTATE x HS_Link n 0 63 n 0 63 n 0 63 n n 0 63 Number Data Type Bit Array Bit Array Bit Array Bit Array Available f Possible Possible Possible Possible Possible Possible Monitor Table 6 2 5 A High Speed Link information A Run Link _HSxRLINk Run Link displays total information to show whether the High Speed Link is norma
212. of the sending receiving data From the example the K1000S CPU sends 2 words the input value from the input module P3 P4 to the local station slot no 2 It outputs from the output module P1 P2 to slot no 1 after saving the received data from the destination station in D0100 and D0101 The High Speed Link parameter configuration and the program for the data exchange as above is described in Figure 12 2 4 and Figure 12 2 5 The program is available to use in common and sets only the link parameters For the FEnet communication of K200S K3008S it is possible to use the same programs and parameters 12 53 CHAPTER 12 PROGRAM EXAMPLES 1 Basic settings of Frame Editor In order to perform the High Speed Link basic setting editing and downloading of Frame Editor is needed Set the PLC type and the station no for High Speed Link communication 1 The High Speed Link setting mode can select either the extended mode 200 WORD or the basic mode 60 WORD K1000S is done using a 200 WORD basic setting and K300S K200S is set using a 60 WORD 2 For further information using Frame Editor please refer to section 5 2 Frame Editor Enet Editor NONAME File Edit Online Option Help Group Basic Parameters PLC Type A IP Address 165 244 14956 Subnet Mask 255 255 2550 Gateway 0 000 a DNS Server fo000 Add Delete e E ET HS Station No 1 Retry Limit f2 Connection No 2 TTL 50 Connection Waiting Time Out
213. of users This is usually divided into file serving allowing users to store and access files on a common computer and application serving where the software runs a computer program to carry out some task for the users 28 TCP Transmission Control Protocol A transport layer protocol for the internet Sends and receives data by using a connection Multiplexing Reliable sending Supports urgent data sending CHAPTER 1 OVERVIEW 29 TCP IP Transmission Control Protocol Internet Protocol Transmission protocol for the communication between different types of computers It allows them to possibly communicate between general PC and a medium sized host between IBM PC and MAC PC and between medium sized and large sized computers of other companies It is used as a generic name to transport information between computer networks These include FTP Telnet SMTP TCP segments data into packets and is sent by IP The packet sent by IP is bundled by TCP again 30 Telnet It allows a user to perform a remote login from a host to another host through the internet To log in on to a remote host with TELNET the user must have an account on the host However it is possible to log in freely on the hosts that offer several public services such as the white pages directory even if the user does not have his own personal account 31 Token Ring A local area network LAN containing a physical ring structure and using Token to access a net
214. ol A protocol used to obtain a MAC address by using the other s IP address on the Ethernet LAN 3 Bridge A device used to connect two networks together The 2 networks may be the same or different but they work as if they are one network The Bridge is also used to divide a large network into two smaller ones in order to improve performance 4 Client A user of a network service a computer or a program using another computer s resources mainly the part demanding service 5 CSMA CD Carrier Sense Multiple Access with Collision Detection An access method in which each client checks Carrier Sense the network for signals before sending a message If the network is empty it can send its data At this time every client has the same right to send its message Multiple Access If two or more signals from separae clients collide at exactly the same time the client which has detected it Collision Detect will retry to send its signal after a fixed time 6 DNS Domain Name System A method used to convert the alphabetic domain name on the internet into the corresponding internet number IP address CHAPTER 1 OVERVIEW 7 Dot Address An IP address expressed as 100 100 100 100 Each number is expressed using the decimal system and each number possesses 1 byte out of a total of 4 bytes 8 E mail Address An address of a user possessing a login account for a specific machine connected to the internet It is generally g
215. on Contact of Link Trouble B Link Trouble _HSxLTRBL x High Speed Link Number 1 4 It displays total information indicating if High Speed Link is normally operating by the parameter set by the user It turns On when the Run Link is off and it turns Off when the Run Link is on C RX TX Status _HSxTRX 0 63 x High speed Link Number 1 4 Individual information showing the action status by the registration list of the High Speed Link parameter and also showing a maximum 64 of RX TX information by the registration list If RX TX action towards the registration item is done corresponding to the RX TX period the appropriate Bit turns On If not it turns Off D Operating Mode _HSxMODE 0 63 x High Speed Link Number 1 4 Individual information showing the action status by the registration list of the High Speed Link parameter It shows maximum 64 action modes information by registration list as maximum registration numbers If the station set in the registration item is in Run mode the appropriate Bit turns On If it is in Stop Pause Debug mode it turns Off E Error _HSxERR 0 63 x High Speed Link Number 1 4 Individual information showing the action status by the registration list of the High Speed Link parameter and also showing maximum 64 error information by registration list as maximum registration number The Error displays the status overall in which the PLC does no
216. on indication Ex in the case of indicating v3 1 indicated by 0x31 mw SYS STATE 2Byte Indicates the state available to change the operation mode only by the mode key or GMWIN KGLWIN Indicates the CPU operation state Indicates the CPU operation state BIT O Local control Operation mode change BIT 5 iaci Operation mode change by key actor Operation mode change f BIT 6 Operation mode change by GMWIN KGLWIN factor Operation mode change BIT 7 Operation mode change by remote PADT factor Operation mode change f er BIT 8 W Operation mode change by communication actor 10 26 CHAPTER 10 DEDICATED COMMUNICATION BIT 9 BIT 10 BIT 11 BIT 12 BIT 13 BIT 14 BIT 15 _ Stop after finishing the scan by using the STOP function during RUN STOP by STOP function d mode Forced input Indicates forced ON OFF execution for an input contact Forced output Indicates forced ON OFF execution for an output contact STOP by ESTOP function Indicates that external monitoring is running for the program and variable Remote mode ON Indicates in operation in remote mode Emergency stop by the ESTOP function during RUN mode m _PADT_CNF 1 Byte BIT 0 Bit indicating the connection state of the local GMWIN KGLWIN BIT 1 Bit indicating the connection state of the remote PADT BIT 2 Remote communication mies i Bit indicating the connection state of the remote communication connection BIT 3 Reserved area
217. ooting guide Do not repair or disassemble the module on your own 13 1 Verification through the Communication Module LED This method to verifies the state of the module according to LED ON OFF 13 1 1 Error indication It is available to verify the operation status using the LED in the front of the Ethernet module RUN O PADT PC IF RUN O O TX FB CMD O O RX HS O PHY ERR TX R O O O O O O O O O X H W ERR 1 10 100 10 100 lt G3L EUxB LED gt lt G4L EUxB LED gt lt G6L EUxB LED gt Figure 13 1 1 Structure of the FEnet I F module LED Action 1 Poor installation of the Ethernet communication module Check if the DC 5V power supply of the OFF after applying the power power module is normal abnormal to the Ethernet module Check if the communication module is installed in the base correctly 2 Check if the communication module is in bad condition 13 1 CHAPTER 13 TROUBLE SHOOTING Action I F RUN LED is ON or OFF during normal communication 1 Check if the CPU operates normally 2 Check if the communication module is installed in the base correctly 3 Check if the module information is well recognized through the PADT software FB CMD OFF during function block command service 1 Check if the function block command input is completed correctly 2 Check if the connection is properly done OFF durin
218. or damage to the product gt Make sure that all terminal covers are correctly attached Not attaching the terminal cover could result in electric shock gt Be sure that wiring is done correctly be checking the product s rated voltage and the terminal layout Incorrect wiring could result in fire damage or erroneous operation gt Tighten the terminal screws with the specified torque If the terminal screws are loose it could result in short circuits fire or erroneous operation gt Be sure to ground the FG or LG terminal to the protective ground conductor Not doing so could result in erroneous operation gt Be sure there are no foreign substances such as sawdust or wiring debris inside the module Such debris could cause fire damage or erroneous operation SAFETY PRECAUTIONS Startup and Maintenance Precautions gt Do not touch the terminals while power is on Doing so could cause electric shock or erroneous operation gt Switch all phases of the external power supply off when cleaning the module or retightening the terminal or module mounting screws Not doing so could result in electric shock or erroneous operation gt Do not charge disassemble heat place in fire short circuit or solder the battery Mishandling of battery can cause overheating or cracks which could result in injury and fires gt Do not disassemble or modify the modules Doing so could cause trouble erroneous operation inj
219. orm data communication through the I O structure like table 6 2 7 A in the GLOFA FEnet system Dedicated Network of Ethernet Station 2 Station 3 SE EE Ee 9 o o Jo g GM1 CPUA GM2 CPUA GM3 CPUA Station 1 Ndd g1n3 1 9 g1n3 1 9 O I O I O I O I O I Figure 6 2 7 A I O structure and RXTX data l All Structure of TX RX Fau TX Area RX Area Stations are equal IW0 2 0 4Wor Stationt RX lt e E MWO0 4Word E e FEnet IWO 2 0 4Word RX lt GM3 aaa ft ouput sesos MWO 4Word Se A 2 lt lt Slot 2 Input 32 dots 2 ee GM3 lW0 2 0 4Word Station 3 RX lt GM1 ee w0 4Word Table 6 2 7 A I O Structure and TX RX data In the example the GM1 2 3 CPU s send 4 words as an input value of slot number 2 and they output data sent from the destination station with the output module of slot number 1 after saving them in MWO The parameter configuration of the High Speed Link and the program to exchange data is described in Figure 6 2 7 B and Figure 6 2 7 C Figure 6 2 7 B is an example to MOVE data saved in MWO0O to QW0 1 0 using the monitoring flag of High Speed Link RX TX 6 30 CHAPTER 6 HIGH SPEED LINK A Editing the user program _HS1RLINK HS7LTRBL MOVE lt _ Performs when information of I I NO the High Speed Link is normal When RUN Link is 1 and Link SMO 6 INT OUT S0N0 1 0 Troub
220. ormation G Enforced I O information H I O SKIP 2 In the case of GMWIN programming by connecting remote step 1 and step 2 open the relevant project of the station to connect and execute the Remote Connection 2 Remote Connection is supported only up to step 2 Remote Connection more than step 2 is not possible CHAPTER 9 REMOTE COMMUNICATION CONTROL 9 3 KGLWIN Settings and Connections All PLC s K1000S K300S K200S station connected by the Master K network are available to connect each other by the KGLWIN communication service KGLWIN Remote Connection is composed of step 1 connection and step 2 connection The following described the step 1 and step 2 connection method Figure 9 3 1 shows step 1 PLC A PLC B and step 2 PLC C connection in the system composed of two networks MK PKC A MK PKC B MK PKC C 210 206 91 188 210 206 91 189 210 206 91 190 Remote Connection Step 1 Deskto System RS232C Remote Connection Step 2 Figure 9 3 1 KGLWIN Remote Connection Figure 9 2 1 shows step 1 PLC B and step 2 PLC E connection in the system composed of two networks 1 Remote Connection step 1 when using RS 232C cable For Remote Connection step 1 KGLWIN should be offline In this state if you select option from project menu the option dialogue box appears as follows Select connection option tab here Fi
221. other s station number and block number Local TX specifies the area of its station to be read RX specifies the area of its station to be saved Execute Compile Make after completing parameter setting 6 7 CHAPTER 6 HIGH SPEED LINK On line after local connection D load the High Speed Link t d 7 ownloa e High Speed Link parameter an Writing program of the GMWIN into the CPU High Speed Link Parameter Parameter and Program Set the appropriate Link Enable for high speed Link Enable Setting link operation When downloading the program 15 High Speed Link and parameters it is required to set the Link Enable again because the existing Link Enable is off 1 4 Operate mode RUN x Please write a program using an emergency flag Against communication against communication interruption destination 1 16 station s error or and a momentary power failure of the remote module at time of communication 6 8 CHAPTER 6 HIGH SPEED LINK 6 2 3 Setting the High Speed Link Parameter The High Speed Link parameter sets the appropriate items by selecting the link parameter on the GMWIN project screen The setting order and the function of each item are as follows 1 Setting the GMWIN project The High Speed Link parameter is selected on the basic project screen Figure 6 2 3 A The basic screen of the link parameter appears Figure 6 2 3 B and then the appropriate items can be se
222. ould read and which block it should send it to without specifying a destination station s number In the example assuming that station 0 specifies MWO data as the area to be read mode as sending in its parameter and then it sends data voluntarily through block number 0 On the other hand station 1 sets mode as receiving 0 as the station number 0 as the block number and MW100 as the save area in the High Speed Link parameters However a special attention should be given in this case when the receiver should receive the data with the same block number as the sender Since the sender can send various block numbers with various station numbers the receiver can receive the CHAPTER 6 HIGH SPEED LINK required data only after it confirms which data is sent in which block and then sends the data through the appropriate block number In contrast station 1 should only set the data to be sent corresponding to the sending setup of station 0 and station 0 should only set the receiving setup corresponding to that of station 1 High Speed Link 1 Item O Edit i Station type 7 StationNo Mode Block No Local Send 5 C Remote C Receive Area Send period From G wma C Aw C waw o D 200ms gt SizefWVord To C Xefhiy SO E K ma wf 10 Sending setup for station 0 High Speed Link 1 Item O Edit
223. pper Cable 2 Patch Cable or Patch Cord For the flexibility improvement of UTP 4Pair cable it may use a stranded conductor instead of a solid conductor The used strand material and specification is defined based on UL 444 and the representative specifications and materials are Un coated AWG 24 7 0203A That is small wire diameter is 0 203mm and this small wire is a stranded specification as 1 6 structure and the material is an annealed copper 2 Classification by the frequency used Transmission Classification Frequency used MHz Usage speed Mbps Category 1 Voice a 14 Telephone network 2Pair Telephone network 2Pair E 7E 2 Multi Pair communication cable Telephone network computer catesoys 3 network sr 1 Computer network transmission Category 4 speed Up 2 Low loss communication cable Category 5 and ow we 1 Digital telephone network Enhanced 100 100 computer network Category 5 2 Low loss broadband width cable 1 The types used commonly in the domestic international fields at present are Category 3 5 En Cat 5 and Cat 6 Category 4 is replaced now by Category 5 entry and Category 7 has STP structure and is under development worldwide 2 14 CHAPTER 2 PRODUCT SPECIFICATIONS 3 Classification by Non flammable class based on UL certificate Smoke Classification Time Length Remarks retard e Ceiling installation without Less than duct P 88 Restricted i 73m
224. r FDEnet The network of step 1 connection and step 2 connection are not related to each other Figure 9 2 4 step 2 connection is connected by Fnet Therefore step 2 should be set by GLOFA Fnet 2 Station No For remote step 2 use the station no of the module installed in the PLC that it is to be connected In Figure 9 2 4 remote step 2 uses 5 because it is connected to PLC E 9 6 CHAPTER 9 REMOTE COMMUNICATION CONTROL module station no 5 3 Slot It indicates the position of the module in the local station of PLC PLC B in the network 2 In Figure 9 2 4 fill in the slot no with 0 because the Fnet module s station no is 3 and it is installed in the 0 slot in the PLC B If step 2 connection is completed this means that the logical connection status the same as if it was connected by the moving the RS 232C cable to PLC E Therefore use all functions of in the online menu are available 3 Remote Connection step 1 in a PLC connected to Ethernet If a GMWIN acting PC is connected to a PLC and a network Remote Connection step 1 by Ethernet is available without connecting RS 232C to the PLC CPU GLOFA PLC A GLOFA PLC B GLOFA PLC C 210 206 91 188 210 206 91 189 210 206 91 190 Deskt p System Ethernet Netvork 1 Figure 9 2 5 Remote Connection step 1 through a PC Figure 9 2 5 shows an example of a PC and PLC connection by Ethernet In this case
225. ram per PLC 3 Prepare the data sending receiving map refer to Table 12 1 2 4 Set the parameters from the GMWIN High Speed Link parameter settings 5 Execute Compile and Compile gt Build All from the compile menu 6 Execute the program and write the parameter from the online menu 12 8 CHAPTER 12 PROGRAM EXAMPLES 7 Select the Enable Link settings from the online menu and enable the High Speed Link suitable for the setting no 8 Change the mode to RUN from the online menu 9 Check the High Speed Link state using link parameter monitor 10 If an error occurs retry from 1 2 Frame Editor settings in the redundant CPU Execute Frame Editor and set the PLC type station no media and the High Speed Link setting mode and then download it to the PLC The following Figure shows the basic settings of Frame Editor Basic Parameters x PLC Type GMR IP Address 165 244 149 50 Subnet Mask 255 255 255 0 Gateway 0000 DNS Server o000 HS Station No 0 Retry Limit 2 Connection No 2o TTL 50o Connection Waiting Time Out 20 Disconnection Waiting Time Out fo Rx Waiting Time Out 9 Media AUTO 8 Link cone Figure 12 1 8 Frame setting of the communication module for redundant CPU The High Speed Link setting mode can select either the extended mode 200 WORD or the basic mode 60 WORD In the case of GMR it is fixed to a max of 6 words If basic setting is comp
226. rame to be received and it must be downloaded in the FEnet module using Frame Editor 10 ARR_CNT is a number of data to be received and it is also the number of S DATA types R_DATA is an ARRAY variable where data to be received is saved SIP_ADDR S_PORTof output are the address and port of the destination station that sent data RCV_LEN is the number of sent data The user can respond to the destination station using this information 7 17 CHAPTER 7 GMWIN FUNCTION BLOCK 7 4 Frame Setting 7 4 1 Group name The figure 7 4 1 displays the Frame List that has defined the frames and the simple frame informations In the figure 7 4 2 Group is for registering identifier to communicate with the Ethernet communication module of other companies and the user can register it as he she wants The Group name is used to input the E_CONN Function Block s METHOD which is used to establish a channel It is equivalent to XXX out of XXX_YYY_TTT Group can be registered up to 20 maximum Frame List is a list of identifiers name that identifies the frame and the user can use these names in Function Block Frame Definition can define up to 20 for each group Frame Information displays brief information of the frame after Frame Definition Enet Editor NONAME of x Fie Edit Online Option Help Group Frame List GLOFA I Receive 00 RCY FRAME ASCII Conversion none Add Add Delete
227. res or communication cables with the main circuit or power wires or install them close to each other They should be installed 100mm 3 94inch or more from each other Not doing so could result in noise that would cause erroneous operation Installation Precautions gt Use the PLC in an environment that meets the general specification contained in this manual or datasheet Using the PLC in an environment outside the range of the general specifications could result in electric shock fire erroneous operation and damage to or deterioration of the product Completely turn off the power supply before loading or unloading the module Not doing so could result in electric shock or damage to the product Make sure all modules are loaded correctly and securely Not doing so could cause a malfunction failure or drop Make sure I O and extension connector are installed correctly Poor connection could cause an input or output failure When install the PLC in environment of much vibration be sure to insulate the PLC from direct vibration Not doing so could cause electric shock fire and erroneous operation Be sure to there are no foreign substances such as conductive debris inside the module Conductive debris could cause fires damage or erroneous operation SAFETY PRECAUTIONS Wiring Precautions gt Completely turn off the external power supply when installing or placing wiring Not doing so could cause electric shock
228. rite and should be an ASCII value 16 letters For the variable name only numbers small capital letters and _ are allowed The small capital character is used for distinction but since the PLC access variable name is written in all capitals it is required to use capital letters 3 Response format in the case of an ACK response in the PLC Min the case of an individual type Format Reserved Block name area number code Ex woos9 h 0002 h 0000 h 0000 h OOO1 E in the case of an array type Format Reserved Block name area number code Ex moos9 h 0042 h 0000 h 0000 h 0001 1 In the case of an array type the variable number used should be by h 0001 2 The data length means the byte number of data 3 If the data type is Bool the read data will be indicated by one byte HEX That is if the bit value is 0 it is indicated as h 00 If the BIT value is 1 it is indicated as h 01 10 24 CHAPTER 10 DEDICATED COMMUNICATION 4 Response format in the case of a NAK response in the PLC E individual array type common Format Reserved h FFFF Code Ex h 0059 h 0002 h 0000 the value not 0 10 3 7 Request of STATUS Read HMI gt PLC 1 Overview This service enables the user to retrieve the information and determine the status of the PLC by using the communication 2 Computer request format a 0x00BO Status Reques
229. rt the IP address of the destination station Dest IP_ADDR A kind of TCP_PASSIVE The channel is established only for the destination station specified by the user The local station is acting as the Server when communicating with the specified destination station UDP_ACTIVE The port of the local station Source Port the IP address of the local station Source IP_ADDR A channel to use UDP IP It only opens a Socket The local station is acting as the 7 7 CHAPTER 7 GMWIN FUNCTION BLOCK 4 1 PASSIVE SELECT OPEN must be started earlier than ACTIVE OPEN UDP_ACTIVE UDP_PASSIVE connects internally only with the Socket open without establishing a channel through service Client when communicating with the specified destination station It actually has no relation with the channel UDP_PASSIVE The port of the local station Source Port the IP address of the local station Source IP_ADDR A channel to use UDP IP It only binds a Socket The local station is acting as the Server when communicating with the specified destination station It actually has no relation with the channel Therefore the user should establish a suitable channel for the communication characteristics according to the types of logical channel establishment The value of METHOD during Function Block input requires the channel establishment METHOD XXX_YYY or XXX_YYY_TTT Within
230. s normal after Online Link Enabled Setting HSxLTBL is ON due to an error on the PLC and when HS link executed communication after Online Link Enabled Setting and then HS link _HSxRLNK is ON Contact of _HSxLTBL is ON Contact of _HSxRLNK _HSxTRX _HSxRLNK is not ON even though the HS link is not ON when HS link executed parameter is normal after Online Link Enabled Setting Table 13 3 4 Abnormal operation of the HS link function 13 4 CHAPTER 13 TROUBLE SHOOTING ETE Operation error on E_CONN FB s ERR is ON or FB s NDR is not 1 Operation error on TCP_SEND UDP_SEND FB s ERR is ON or FB s NDR is not 1 FB Operation error on f ESTE TCP_RCV UDP_RCV FB FB s ERR is ON or FB s NDR is not 1 Table 13 3 5 Abnormal operation of FB If No response message is The RS 232C cable is not connected between displayed when a remote GMWIN and PLC or the PLC power is OFF connection is requested If Other error message is displayed when remote connection is requested Service is not executed normally due to an unsuitable request Table 13 3 6 Abnormal operation of PADT communication service function 13 5 CHAPTER 13 TROUBLE SHOOTING 13 3 2 Troubleshooting 1 Error code E00 01 H W Error Hardware error Is the applied Power normal environment suitabl for the spec Is the communicatio module installed gt Check the power voltage Supplement
231. se that F I F module desired to read is installed b After connecting if you select read by online Figure 5 2 8 screen appears After selecting the slot no and communication option select read button Slot No S E fs Option Basic Parameters C Frames Read CAI Cancel Figure 5 2 8 Read screen 5 9 CHAPTER 5 COMMUNICATION PROGRAM c If you select read button from b the screen to verify read action appears In this case if you select verify the read action starts ef Read basic parameters a Cancel Figure 5 2 9 Read verification screen When the screen saying read has been completed appears if you verify edit basic setting of Frame Editor screen the data read from F I F module is saved Receive Basic Parameters x Completed i coe Figure 5 2 10 Receive Basic Parameters verification screen 5 10 CHAPTER 6 HIGH SPEED LINK CHAPTER 6 HIGH SPEED LINK 6 1 Introduction The High Speed Link is a type of communication system between GLOFA MASTER PLC communication modules It can send and receive data by setting up High Speed Link parameters It is also a data transmission service in which a user can exchange data by setting up the data volume period area and save area of the TX RX parameters However the High Speed Link service can have an influence on other communication modules usi
232. ses are made up of two addresses the network address used to differentiate the network and the host address used to differentiate the host The network address and the host address are divided into 3 classes A B C according to how many bits are assigned to them The IP address can not be voluntarily selected because it is the only one all over the world It is assigned by local NIC Network Information Center when subscribing to the internet In Korea itis a job of KRNIC to do so For example 165 244 149 190 18 ISO International Organization for Standardization An organization under the umbrella of the U N that sets and controlls international standards 19 LAN Local Area Network It is also called a local network or an info communication network within an area This network allows users within a confined geographical area to exchange and share data with each other using their personal computers connected to a communications line 20 MAC Medium Access Control A method in a broadcast network in which the owner of the data determines which device has access to the network within the time allowed 21 Node Each personal computer connected to a network is called node CHAPTER 1 OVERVIEW 22 Packet A block of data as a basic unit used to transfer data through a network A packet s size ranges from a dozen to hundreds of bytes and attaches a header at the front of it The header contains the information of the packet s destin
233. so widespread that every enterprise can get various Ethernet products on the market 10 FTP File Transfer Protocol One of the application programs offered by TCP IP protocol It is used to transfer files between computers If a user possesses a login account to his computer the computer can promptly log in and copy any file wherever it is located in the world 11 Gateway This software hardware converts two different types of protocols so that they perform without any problems This plays a role as an entry exit point to the network where information is exchanged between different systems 12 Header A part of a packet containing the address of the localstation the destination stations and the error check section CHAPTER 1 OVERVIEW 13 HTML Hypertext Markup Language standard language of the world wide web A protocol supporting the hypermedia method 14 HTTP Hypertext Transfer Protocol standard protocol of the world wide web A protocol supporting the hypermedia method 15 ICMP Internet Control Message Protocol It creates an error message and test packet to manage the internet by the IP address expansion protocol 16 IP Internet Protocol A protocol of network layers for the internet 17 IP Address Internet Protocol Address The internet address written as numbers on the internet of each computer It is a binary number with a size of 32 bits 4 bytes to differentiate each machine on the internet IP addres
234. state click the OK button to complete the setting If the user selects the online connection menu and the Remote Connection step 1 is arranged normally the PLC model and connection status will be displayed on the bottom of the KGLWIN screen In the case of a connection failure this indicates that there is a communication line or an internal protocol error or that the setting value of the Remote Connection is not proper If this is the case check if the setting is OK and try the connection again 2 Remote Connection step 2 Select project gt option gt connection option in the menu and set the connection step to remote step 2 In Figure 9 3 3 the step 2 connection is processed through KGLWIN gt PLC A FEnet gt PLC B FEnet gt PLC B Fnet gt PLC C Fnet module For the Remote Connection step 2 select project gt option gt connection option in the menu and select remote step 2 in the connection step as shown on the screen below a Editor Option Page Setup Connection Option Method of Connection Age Dalip Modem Communication Part CON z r Cale Modem e ALOFA Fret tgr PE r LOFA Minel tor PE M Ehampt Depth of Comection Rennie 1 m Local Type GLOFA FEnet i Fema j s Remote 2 a T es Shor Up se IP Address Type Base M atiaj Sloi ufr aa athe Figure 9 3 3 Remote Connection step 2 screen CHAPTER 9 REMOTE COMMUNICATION CONTROL 1 S
235. station Connection Waiting Time Out Time to wait to connect with the destination station XXX_TCPACT XXX_TCPPAS are set in E_CONN Function Block An error occurs when it is impossible to connect in the set time Disconnection Waiting Time Out Time to wait for the reply of the destination station when asking for a release of the connection If there is no reply after a fixed amount of time the connection ends RX Waiting Time Out During dedicated communication if there is no requirement from the high level for a fixed time with a high level PC or HMI connected it ends the dedicated service connection on the assumption that there is a problem in the system In other words this latency time is used in the dedicated service to set a new channel again in the case that a problem occurs in the destination station or a cable is disconnected If the destination station does not belong to the network it searches the destination station via a router within a range of the maximum set value of TTL Connection No Maximum number of dedicated TCP service to be connected at the same time 1 up to16 Select the media desired to use AUTO recognize the currently installed module and control it automatically gt 10M FULL 10MBps Full Duplex electric gt 100M FULL 100MBps Full Duplex electric gt FX 100M FULL 100MBps Full Duplex light 10BASE5 2 or 10BASE T HS Link Mode Applied whe
236. structure of a frame Application Instruction Format 1 Header pompany PLC Rese Reserved ID Hodei wad H33 Invoke ID Length Aen LGIS 1 2 2 2 1 GLOFA The number inside the brackets indicates the byte number Company ID ASCII character string LGIS GLOFA PLC Info area information area for the PLC Invoke ID This is an ID to distinguish the inter frame order It is available to designate the ID in the event of a command request at random The response frame retransmits the received invoke ID when there is a command request the area used for error checking in PC or HMI Length length of data area following the frame header 2 Command request frame external communication device gt FEnet I F module Reserved area Structured data Header Command Data type 2byte area 3 ACK response frame FEnet module gt external communication device in the case when normally receiving data Header i Data Reserved area Error status Structured data type 2byte 2byte h 0000 area 4 NAK response frame FEnet module gt external communication device in the case when abnormally receiving data Reserved Error status Heade Comman Error code Data type area 2byte not r d 1byte 2byte h 0000 1 In the case of hexadecimal data in front of figures within the frame it indicates that this data is hexadecimal type by using h or Ox For example 01 h 1
237. such factors a method to easily calculated the time is presented here 2 Method for calculating the speed of the High Speed Link The user defines the High Speed Link as the maximum time spent by a block of data from PLC A to PLC B using an example like Figure 6 2 7 B It is calculated after you grouping the speed calculation of the High Speed Link into a complicated system or a simple system The complicated systems more than 10 communication stations and sends data numbers 512 bytes A simple system has less than 10 communication stations and the sending data numbers are under 512 bytes A Simple system The speed of the High Speed Link can be determined using the simple calculation system like formula 6 2 6 A The total number of communication stations is under 10 and the total volume of the sending data is under 512 bytes St P_ScanA C_Scan P_ScanB Formula 6 2 6 A St maximum transfer time of High Speed Link P_ScanA maximum program scan time of plc A P_ScanB maximum program scan time of plc B C_Scan maximum communication scan time Using formula 6 1 C_Scan can be determined with the following simple formula C_Scan Th X Sn Formular 6 2 6 B Th Time of data transfer from a media per 1 station IEEE standards 802 3 Sn Total Station Number Total Communication Number B Complicated system The speed of the High Speed Link can be calcu
238. supported Disobedient to VMD specific and symbolic address or max data value exceeded Other error code received than assigned Other company s communication code value Other error code received than defined 13 4 2 STATUS displayed on the CPU Decimal 16 If position of computer communication module is wrongly assigned Stand by time exceeded Time out Data count error Number of data used in FB input discordant with or smaller than that of data defined in the frame Name doesn t match Frame name used in FB input is not on the frame list 13 20 CHAPTER 13 TROUBLE SHOOTING Decimal Setting number of FB channels exceeded Number of E_CONN for use exceeded Setting number of FB channels 16 Exclusive connections Basic parameters of frame editor Max TX number exceeded Since ASCII data HEX data 2 the number of ASCII data shall not exceed 1 400 byte Wrong command in exclusive service Domain PI service requested by unauthorized station in exclusive service 121 Error occurs if Domain PI service is requested by the other station when Domain PI is unavailable in UDP but already used through TCP 13 21 APPENDIX APPENDIX A 1 LED Indication Specification A 1 1 G3 4L EUTB EUFB EU5B LED marking LED No Module marking e sere RN communication module is normal Blinks when the communication with the CPU module is normal ON or I F RUN OFF if an error occurs during
239. t Data type 2 0x0000 Don t Care 0x0000 Don t Care 3 Response format in the case of an ACK response in the PLC Size byte Description 0x00B1 Status Response Data type 0x0000 Don t Care 0x0000 Don t Care Error state a Se If 0 normal if not 0 error code Data size ln 0x0014 Status Data 4 Structure of the Status Data Byte Items Size byte Description ae Reserved P Ai o Resewedarea 2 e area CPU TYPE 1 4 Systemitype flag _VER_NUM a eee ee T OS version no flag _SYS_STATE fe see PLC mode and operation state flag _PADT_CNF oa a GMWIN connection state flag 10 25 CHAPTER 10 DEDICATED COMMUNICATION _DOMAIN_ST i fee ge System S W configuration info flag _CNF_ER System error serious error flag CNF WAR System waming flag Slot information Bit01 Bit03 slot info to indicate that the local is remote connected to another station Slot Info 2 14 Bit05 BitO7 slot info to indicate that another station is remote connected Bit09 Bit11 slot info that indicate that the module is installed For further information of each item please refer to the flag description 5 Flag description m CPU _TYPE 1Byte GM1 0x00 GM2 0x01 GM3 0x02 GM4 0x03 GM3_FSM 0x05 GM4_FSM 0x06 SRU 0x07 GMR 0x10 K1000S 0x22 K300S 0x23 K1000S_FSM 0x25 K300S_ FSM 0x26 m _VER_NUM 1Byte BITO BIT3 Minor Version indication BIT4 BIT7 Major Versi
240. t I F module of slot no x FENET_RESET_Mx main base FENET_RESET_Ex extended base except GM1 2 2 State flag to be added m RCV_SERx_CHy indicates that it is set as channel y of module slot no x through dedicated service RCV_SERVO_M_CH main base RCV_SERVO_E_CH extended base except GM1 2 Resource Instance variable name variable value Flag _RC _SERVO_M_CH O 0 Flag _RCY_SERYO_M_CH 1 0 Flag _RCY_SERVO_M_CH 2 0 Flag _RC _SERVO_M_CH 3 0 Flag _RC _SERVO_M_CH 4 0 Flag _RC _SERVO_M_CH 5 0 Flag _RC _SERVO_M_CH 6 0 Flag _RC _SERVO_M_CH 7 0 Flag _RCY_SERVO_M_CH 8 0 Flag _RC _SERVO_M_CH 9 0 Flag _RCY_SERYO_M_CH 10 0 Flag _RCY_SERYO_M_CH 11 0 Flag _RC _SERVO_M_CH 12 0 Flag _RC _SERVO_M_CH 13 0 Flag _RC _SERVO_M_CH 14 0 Flag _RC _SERVO_M_CH 15 0 Figure 11 2 1 Service monitoring using the channel of dedicated service 16 channels CHAPTER 11 RESETTING THE COMMUNICATION MODULE IN RUN MODE m RCV_SERx_COUNT count received in module sot no x through dedicated service RCV_SERV_CNT_M main base RCV_SERV_CNT_E extended base except GM1 2 Where as a X Slot 0 7 GM1 2 CPUA B 0 55 GM4 CPUC b Y channel 0 15 Resource Instance variable name Variable value Flag _RCV_SERY_CNT_M 0 i Flag _RCY_SERY_CNT_M 1 0 Flag _RCY_SERY_CNT_M 2 0 Flag _RCY_SERY_CNT_M 3 0 Flag _RCV_SERY_CNT_M 4 0 Flag _RCY_SERY_CNT_M 5 0 Flag _RCV_SERY_CNT_M 6 0 Flag
241. t is 1 word 16 dots You can set maximum 200 words for FEnet system In case that data size set from the receiving mode is smaller than the sent data only the set size can be saved in the saving area Therefore you can use by receiving selectively the necessary ones of the data sent from sending station TX RX Period The High Speed Link is a service that performs TX RX at the very time of end of PLC program set by user Thus when the time of PLC program scan is short like within several communication module transfers data according to the program scan and the increase of communication volume CHAPTER 6 HIGH SPEED LINK due to that cause lowering of efficiency for whole communication system To avoid it it enables a user to set RX TX period and the range of setting is minimum 200 to maximum 10sec When you do not set the basic value of 200 is set automatically TX RX period means sending period when the appropriate block is set as sending otherwise when it is set as receiving it means period of checking period of data receiving of the appropriate block Sending period is parameter that determines the period of data transferring For example the sending data set with its basic value of 200 is sent once per 200 If PLC program scan time is longer than the set sending period it is sent at the time of the end of PLC program scan and sending p
242. t perform the user program normally Off means that the destination station s PLC is acting normally On means that the destination station is acting abnormally F High Speed Link Status _HSxSTATE 0 63 x High Speed Link Number 1 4 Individual information showing the action status by the registration list of the High Speed Link 6 22 CHAPTER 6 HIGH SPEED LINK parameter and also showing maximum 64 High Speed Link status by registration list as maximum registration number If the RX TX status of the appropriate list is normal and the action mode is in Run status with no error it turns On If not it turns Off 2 Monitoring the High Speed Link information You can monitor the High Speed Link information using the monitoring function after connection on line to GMWIN There are two ways to do this To select the variable monitor from the monitoring menu or to use the monitor link parameter A Variable Monitor Variable Monitor is a function to monitor only by selecting the necessary items by means of the GMWIN flag monitor function If the variable registration screen like Figure 6 2 5 B appears after selecting the variable monitor from the on line monitor you can select Flag and then directly register each high speed information flag from the list of variable and flag registrations _HSxSTATE n _HSxERR n _HSxMODJ n _HSxTRX n are flags for Array type and the user should selec
243. t the array number The array number means the registration number within the parameter x means the High Speed Link number It has a range of 1 4 for the GM1 2 3 PLC CPU 1 2 for the GM4 PLC CPU After selection Close after variable registration a monitor screen Figure 6 2 5 C appears The user can begin monitoring by pressing Start from the tool box displayed on the right a a ARRAY Bd faker stitus mfirmalon oi kda HSL TAB Bog RG al inienn a Hunk kee Pma ARRAY EH Baiah mide infec abe of h da m a n PRU AHAL HERUP LH hiai ee 18TATE ARRAY jE Da ena eerie ey slaps MIT ARRAT Comunitati Stahis hiinat _HSEAR RRAV Eai ataie miinaan ith la HESLIRGI ACA Sbncenial ifsenaian af HES ink Hamon SARA Eiin mode information fk da He TUNE BOOL HE Rute LIAM ameak _HEMTATE ARFWVT Ganei communion cain i _ Hie ARRAY i Communitaton status ofune HEFTI ER BOL De ighi pani n prame T _HEPWT2_EF BEDOL re iigh ipeed link parme d IMT LEANE BOUL elie popim tamnei LINN RUN BDUL bHlisiping 0 DEER Bimi BO nsaan eme _JO_DEER_ IANT Module iesit ajo numi er _lG_DEERR ARRA Yii Bie ital belie alien Iio FETAL aR FATS Wl US Tes ae pas _ 0_ Fabre ALY DO THOT radiatie Geri 0 FAWER A LANT BD DUS ridema aimi sii i 0 PAE ARRAS AO Tro dule peadhenie aor alot Jc TYER BOGL Wide hee innneestencs ceri Figure 6 2 5 B Screen for variable registration of the High Speed Link information
244. talled in slot no 0 double click the variable name _FENET_RESET_M 0 As shown below the forced input window will appear and the value can be input In order to reset the FEnet I F module the user sets the relevant flags as 1 The reset procedure is completed and cleared to 0 again Force Yariable Data Variable Name OK _FENET_RESET_M 0 Cancel Help Figure 11 3 6 Forced input of the flag 11 3 2 Reset of the communication module through programming This method allows the user to reset the communication module directly through programming The reset method and main action by the flag monitor is the same but it is also available to control the module by using a temporary contact without starting the GMWIN program The user can control the CPU to perform the RESET by using the emergency contact of the program The RESET will be performed by force by using the external interrupt contact 1 Forced reset of the communication module through programming This method allows the RESET of the communication module through variable registration of the program By registering the flag variable in the program it is able to perform the RESET automatically manually if necessary 1 When setting the RESET flags of the program to 1 the user should use a Positive Transition sensing Contact I P l for an input contact condition Even in the case of resetting again check that the input contact condition is O
245. tem GM3 CPUA Figure 6 3 2 A Configuration of the redundant CPU In a redundant CPU system the redundant CPU performs a HS_LINK parameter at the same time In the above figure the same configuration of the communication modules and systems are placed on both sides Both CPU and the communication module perform a program and a communication parameter 1 Configurating the dual system with Ethernet the HS_LINK station number of both FEnet communication modules which are installed in a base at the same time must be set equally That is the system configuration of both networks and parameter settings must be the same But the IP adress can be set differently 6 38 CHAPTER 6 HIGH SPEED LINK TX of HS_LINK The TX of HS_LINK in a dual CPU system sends data by the communication module to the TX area set in the parameters through each communication module A serial number is added at every period of TX The serial number increases in accordance with the CPU synchronization and each block has its own serial number Since the processing of the serial number is automatically performed no additional work is needed in the user program RX of HS_LINK For RX of HS_LINK the serial number and the data from the communication module are processed in each CPU Processing of the serial number of RX data is automatically performed Therefore no additional work is needed in the user program The method to process the RX data of e
246. ter of the communication module A and B is operating normally This flag is the individual HS_LINK parameter as Action Mode Information the appropriate bit of this flag is ON if the station in the registration is in RUN mode If it is in STOP PAUSE DEBUG mode it turns Off The letter x in the flag means the 6 41 CHAPTER 6 HIGH SPEED LINK number of the currently used HS_LINK number That is when the editing the HS_LINK parameter it is possible to set from HS_LINK1 to HS_LINK4 It is for setting parameter to each communication module because it is possible to install up to communication modules into base board User records currently used HS_LINK setting range x 1 4 In flag you perform RX TX toward each station after editing total 64 individual parameters in HS_LINK parameter The alphabet y means the appropriate parameter number of RX parameter to be applied in the current HS_LINK parameter RX_SRI_A RX_SRI_B It specifies the area of the serial number in the HS_LINK data received from communication modules A and B For example communication module A receives HS_LINK data sent from the other station from MW10 to MW20 When communication module B receives data from MW30 to MW4O it writes the head address of the received data because the serial number is fixed at the data head sent from the other station to select them In RX_SRI_A as in the case of Figure 6 3 3 B it defines MW10 as the data position using
247. ter setup in Frame Editor the number of dedicated connections latency time for receiving The services described above can be used separately or combined The user can use the High Speed Link the dedicated service and the Function Block at the same time 5 1 2 Comparison between the High Speed Link and the Function Block The differences between the High Speed Link and the Function Block are described below about the services to be used when sending and receiving data periodically High Speed Link and when sending the appropriate content for a certain event Function Block High Speed Link Function Block Basic Unit for Usable by data type ree 1 Word 16 bits Cee TX RX Data Ex Bit Byte Word Performs whenever Function Block Period enable REQ starts Timer Used in the communication between FEnet communication modules Module for Used between FEnet communication between another communication communication modules manufacturer s communication module and communication with an upper PC etc Downloading by the FEnet Do not use a station number Station module after setting up the high Downloading by the FEnet module after Numbering speed station number using the setting the IP address using the parameters in Frame Editor parameters in Frame Editor Setting up the High Speed Link Operation parameter Downloading into the Method PLC Permitting High Speed Link Runs if the CPU module permits Control by the Perfor
248. ternal Dimension A 5 1 Front View G3L EUTB PLN I F RUM Fa STATION No 10 10064 5E TX Dimension unit mm APPENDIX A 5 2 Side View Dimension unit mm A 13 WARRANTY ee WARRANTY 1 Warranty Period The warranty period for the purchased product is 18 months from the manufactured date 2 Warranty Range For problems that occur during the warranty period a partial replacement or repair is available But the following cases are excluded from the warranty range 1 Problems caused by improper conditions environment or treatment other than that described in the user s manual 2 Problems caused by from another manufacturer s product 3 Modification or repair outside LGIS or the branches designated by LGIS 4 Used for a method other than the original intended method 5 Problems caused by unexpected reasons due to the level of the science technology at the time of the project release 6 In the cases that LGIS is not responsible for such as natural disaster fire etc 3 This warranty means only for the PLC unit body When using the product consider the safety precautions for the system configuration or product application
249. the CPU type if the CPU type does not match only limited functions are available and program uploading downloading and monitoring are not available 2 Remote Connection step 2 when using RS 232C cable For a Remote Connection step 2 select connection step remote step 2 in the project option connection option screen before connecting Figure 9 2 4 shows the example of a step 2 connection that is to be connected to a Fnet I F module of PLC E via a FEnet I F module of PLC B station For remote step connection select project option connection option and select remote step 2 The following dialog box appears 9 5 CHAPTER 9 REMOTE COMMUNICATION CONTROL Option Make Option MontoyDehug Option Set Folder Connection Onion General Option Numberofreiy z Mesiod of Connection f REH Modern o Communication pat moa GLOFA Frettir Pc GLOFA bet tar PE O Efem l ASEMA Death of Connection Semmy of remote 1 F oes Rg EEEe Local Meteirk Type GLOFA FER IP addresse C Rempeg i f Remo 7 BaseMumber o 2181748234 ra Si FD ra ra rA cs Semng of Remote 2 Network Typa GLOFAFretRn Station No Basetumber 0 Figure 9 2 4 GMWIN Remote Connection step 2 From the above dialog box all items are the same except remote step 2 which is described below 1 Network Type According to Remote Connection step 2 network select either GLOFA Fnet Rnet Mnet Enet Fdnet Cnet FEnet o
250. ting screen 12 17 CHAPTER 12 PROGRAM EXAMPLES 5 If the above 1 4 is successfully executed the completed settings should look like the following figure l Eritaj Ha Tne acai agi 1 Lote Pata GLOF AT Eres Geol cuim bia i Sear Fite SPR kiadi haina Eii Dan She Art TEELE Figure 12 1 26 Completion of the High Speed Link setting 6 After finishing the High Speed Link parameter of the first FEnet I F module select close For the second communication module set the High Speed Link using the above 1 5 procedure In this case select High Speed Link 2 and slot no 1 Save the saving area of the receiving data in MW200 Make sure to avoid the overlapping with the area received from the first module If the settings are completed it will look like the following figure fet Speed fk Tea er mia psi fered LoD Fae GUDRS Frey Sef alain He 1 ETUE ATE s Fasi uem WAM hiiri mii Biais Siem aI 00 Figure 12 1 27 High Speed Link network type slot no and station no settings 12 18 CHAPTER 12 PROGRAM EXAMPLES 7 The following is the method to prepare the user program to add the serial no to the first word when sending using the High Speed Link parameters The program will save one data set by comparing the serial no of the two communication modules when receiving The method to add the serial no when sending T2005 ADD WOE PN M END
251. tion method by remote control 1 1 CHAPTER 1 OVERVIEW CHAP 10 Dedicated Communication Describes the programming method for dedicated protocol the frame structure for the connection of higher devices command etc CHAP 11 Resetting the Communication Module in Run Mode Describes the communication setting method for the reset of the PLC system in the case of an error during operation CHAP 12 Program Examples Shows an actual example for the application of communication module CHAP 13 Trouble Shooting Describes various types of errors that may occur while using the PLC system and the corrective actions etc APPENDIX Describes the LED specifications flag information and the external dimensions to install the system 1 2 CHAPTER 1 OVERVIEW Please refer to the following manuals to write the program e GLOFA PLC Command Collection e GLOFA PLC GMWIN User s manual e GLOFA PLC GM3 4 User s manual e GLOFA PLC GM6 User s manual e Master K Command Collection e Master K 200S 300S 1000s User s manual e KGLWIN User s manual In the case of the system configuration of GLOFA Master K FEnet I F module take note of the following e GLOFA PLC GMWIN programming tool higher than Ver 4 03 e GLOFA GMR CPU higher than Ver 2 2 e GLOFA GM1 2 CPU higher than Ver 3 2 e GLOFA GM3 CPU higher than Ver 2 7 e GLOFA GM6 CPU higher than Ver 2 1 e Master K PLC KGLWIN programming tool higher than Ver 3 41 e Master K
252. tively 1 Execution condition of command The condition to run the command except ECON is to run at the rising edge that becomes 0 to 1 Once begun the function block is not affected before receiving the reply from the destination station as long as the NDR DONE or ERR bit is not set It reruns in the next scan after NDR or ERR bit is set 2 Refer to the usable area of memory according to operand before using 3 For the flag use in program preparation please refer to the Appendix 8 2 CHAPTER 8 MASTER K COMMAND 8 3 Types of Command 8 3 1 ECON Model Application e Available device OPERLAN D ECON OP1 OP2 OP3 OP4 OPERLAND DESCRIPTION f CH_NO The channel no to establish 0 15 Device 0 CH_NO high byte Dee SLOT_NO low byte SLOT_NO The slot no where the communication module is installed Device FORT ROUS PORT_NO The port No when establishing the channel IP_ADDR When the channel is established by Device 0 3 IP_ADDR TCP_ACTIVE the IP address of the destination station ex 192 168 100 1 is used When the channel is established by gt Device0 192 Device1 168 TCP_PASSIVE the IP address of the destination station is used METHOD To determine whether to act by TCP or UDP Client or Server when established channel refer to the description below NDR ON when normal chan
253. tor setting example that defined the frame to perform the above program This shows the example of the frame necessary for communication with another manufacturer s PLC Enel Fitar PEP EMT ASE fie Edt pine ption ep acu Frame List ar sat Receive enora EAN ASII Conversion one m GLOFA ACY FMAME Adii D Send Delete m2 PE_RESP_FRAMF 00 GLOFA_SEND_ FRAME Eda Add Frim Information RLOFA_ACW_FAAHE Recere IiEbpie HEX EMOFF ARMAY 100 bpte LIME FENET Figure 12 1 47 Frame Editor screen 12 36 CHAPTER 12 PROGRAM EXAMPLES Faerie Ham PERN FRAME T wy He inmediate Fes ee Segment Segment 5 Tepe F ASCH Tyne WONE fcr S Segmerd Z Segmera E twe cows ascy Tove ONE poea Seqgmurd 3 Seymord 7 toe ARRAY Sue FoR Tove NONE Segment 4 Segment tme ORE Tove ROWE ae Figure 12 1 48 Example of a receiving frame registration Frame Hama GLOFA_ACY_FPRA TavAs F F Imimedhiate Faz Recarving Aima Segment Seijmhi hh twe CONST aso Te poe z Eo Segment 2 Segqeent G Toon An Sue foe _ Te NONE Segmen d Seguen 7 Tapa none _ Tye wane Segment Segment f Tree Twe none Figure 12 1 49 Example of a receiving frame registration 12 37 CHAPTER 12 PROGRAM EXAMPLES 12 1 5 Redundant CPUs and GM3 Function Block service This section describes an example of Function Block service
254. treatment or manufacturing consult with the relevant experts 1 UTP installation method 1 For the reliable transmission of 100Mbps signals by using UTP cable Patch cord Line cord Patch panel DVO Data Voice Outlet etc must satisfy with Category 5 Specifications EIA TIA 568A 2 The length of the Patch cord in the Cross connect system should be within 7m If it exceeds 7m it is required to deduct as much of the relevant length from the 90m allowed in the horizontal distribution system 3 The line cord length of the workstation should be within 3m If it exceeds 3m it is required to deduct as much of the relevant length from the 90m allowed in the horizontal distribution system 4 When connecting the cable to the Patch panel and the DVO the pitch loosening of the UTB cable should not exceed the following dimensions Max pitch of twisted wire loosening Category 5 13mm Category 3 26mm 5 Jumper wire should be used in the IDC cross connect system and in this case the pitch of twisted wire loosening should not exceed the above criteria If the cable is bent seriously it may cause damage to the cable or decrease the pair to pair clearance cautions should be used Max curvature radius 4Pair cable 4times the outside diameter more than 25Pair cable 10times the outside diameter 6 The Max tension force during wiring should not exceed 110N 11 3Kgf based on 4Pair 7 When peeling the jacket it is r
255. unction type and usage are the same as the content written in chapter 7 2 DE CONN When the logical communication channel is established with the destination station DTCP_SEND Sends data from the local station using TCP IP to the destination station DTCP_RCV Receives data from destination station using TCP IP DUDP_ SEND Sends data from the local station using UDP IP to the destination station DUDP_RCV Receives data from the destination station using UDP IP Table 7 5 2 The types of the redundant Function Blocks 7 5 4 Action of the redundant Function Block 7 bouscrua lm Figure 7 5 4 Execution Diagram for Redundant Function Block Service FEnet A lt gt FEnet A X Ra GM1 2 3 4 CPU 4 gt Dual FB A O 7 26 CHAPTER 7 GMWIN FUNCTION BLOCK In Figure 7 5 4 two FEnet modules are executing the same communication at the same time In the user program the modules implement it only with the dual Function Block The following describes characteristics of the common I O of each Function Block Input NET_NO It specifies the slot number that the communication module is installed For slot position slot number 0 is next to CPU and it increases 1 by 1 and the setting range is from 0 to 7 In the case of GM1 2 3 4 in the following figure the slot number of the left module out of two FEnet modules is specified Two communication modules must be installed close to each other
256. undant CPUs GMR CPUA program 1 Prepare the parameters and frame by using Frame Editor and write it to each FEnet I F modules When writing convert the CPU mode to STOP After the completion of writing change the power to ON The GMR redundancy CPU has CPU A and CPU B on both sides If the parameter is downloaded in the master CPU side the slave CPU will share the contents Basic setting screen IP address High Speed Link station no and media setting Basic Parameters x PLC Type A IP Address 165 244 149 108 Subnet Mask 255 255 255 0 Gateway fo000 DNS Server 0000 HS Station No 0 Retry Limit 2 Connection No 2 TTL 50 Connection Waiting Time Out 20 Disconnection Waiting Time Out fo Rx Waiting Time Out is Media AUTO HS Link Figure 12 1 51 Setting the redundant basic parameters 12 39 CHAPTER 12 PROGRAM EXAMPLES Preparing the sending frame Emet Editor pna we Soe Fiame Hait D immediate Aes Serdang Segment 1 Type m ASD SEMD_GMA Segment 2 Seagnent Type ARRAY See fim Tre NONE Segmen 5 Typa NONE Segment 3 Te None Segnami 7 Type NONE Segment 4 Segnent A te None to Rone Preparing the receiving frame Eet iar p um immediste fies O Recswingsea Segment Segmen 5 Tape CONST ASCII Twe none Face Name Segmen 2 Segmen G Tne ARRAY sie poo Te NONE Sepma a Segment 7 twe none twe
257. unication module In the case when power OFF ON is not possible this enables the user to perform normal functions by initializing the module during running without rebooting the system GLOFA PLC A GLOFA PLC B GLOFA PLC C 210 206 91 188 210 206 91 189 210 206 91 190 a Remote connection reset Desktop System Upper System 210 206 91 193 Figure 11 1 1 Resetting the communication module during run mode 1 The above function is available only in GM1 2 CPUA B and GM4 CPUC Other models are scheduled to be available later The available versions are as follows 1 GM1 2 CPUB O S version more than V3 0 2 GM4 CPUC O S version more than V2 1 3 GMWIN version more than V4 04 4 FEnet I F module O S version more than V1 1 2 The initialization process does not impose a burden on the scan time if it is carried out when system power is turned OFF gt ON However if it is processed during running it may impose a burden on the scan time 3 The reset of the relevant communication module during running should be performed in limited situations emergency situations Caution should be taken 11 1 CHAPTER 11 RESETTING THE COMMUNICATION MODULE IN RUN MODE 11 2 Flag List 11 2 1 Flags for the communication module resetting The method to reset the communication module is available through the GM4 CPUC flag The flag type is as follows 1 Reset flag m FENET RESETx used to reset FEne
258. ury or fire gt Switch all phases of the external power supply off before mounting or removing the module Not doing so could cause failure or malfunction of the module gt Use a cellular phone or walky talky more than 30cm 11 81 inch away from the PLC Not doing so can cause a malfunction Disposal Precaution When disposing of this product treat it as industrial waste Not doing so could cause poisonous pollution or explosion Table of Contents CHAPTER 1 OVERVIEW del How to Us the Users Mana basses stccce cea ceccn eee aace 1 1 1 2 FEnet F Module Overview 1 4 1 3 FEnet I F Module FeatureS 1 5 1 4 FEnet I F Module Configuration 1 7 1 4 1 Model TypeS 1 7 1 4 2 FEnet I F module version compatibility table 1 8 1 4 3 Available installation number of FEnet I F module per CPU 1 9 1 5 Software for Product Use 1 10 1 5 1 Software verification 1 10 1 5 2 Frame Ed
259. variables such as HS _RX_SRI_A data type UINT In RX_SRI_B it also defines MW30 as the data position using variables such as RX_SRI_B data type UINT RCV_AI RCV_BI It specifies the rest of head address in the HS_LINK data sent from the other station except for the serial number For example when it receives data in communication module A from MW10 to MW20 communication module B receives from MW30 to MW40 as in the figure below Data of the communication module A specifies MW11 to MW20 as positioning using an ARRAY variable such as RCV_A data type WORD and communication module B specifies MW31 to MW40 as positioning using an ARRAY variable such as RCV_B data type WORD ENO On when the Function Block is normal _RCV_DATA It finally saves the data received after comparing the data s serial number input from two communication modules As in the example it specifies the position to be used by the final user using the ARRAY variable such as HS_RDATA data type WORD 6 42 CHAPTER 6 HIGH SPEED LINK 6 3 3 Example between redundant CPUs and GM3 for HS_LINK The following system configuration is an example in which it performs a HS LINK with communication a redundancy in redundant PLC and GM3 PLC Dedicated Network of Ethernet 1 Dedicated Network of Ethernet 2 Station 0 Station 0 Station 1 Station 1 g1n3 1 9 g1n3 1 9 g1n3 1 9 g1n3 1 9 165 244 149 1
260. where there is no corrosive gas Solutions If the corrosive gas comes from outside take proper measures against this such as cleaning the control board EMC environment Conditions Install it in a place where there is enough electromagnetic compatibility Solutions Select the exact cable path during wiring work Verify if the control board is properly protected from the electromagnetic field Please use a glow lamp rather than a fluorescent lamp in the control room When installing the power module make sure to ground the standard electric potential CHAPTER 1 OVERVIEW 1 7 Terminology Before using this product this section describes the general terminology of the FEnet I F module For further information please refer to the professional Ethernet related books 1 IEEE 802 3 IEEE 802 3 regulates a standard for CSMA CD based Ethernet More correctly speaking this is a CSMA CD Carrier Sense Multiple Access with Collision Detection Ethernet based LAN designed by the IEEE 802 3 group and is divided into the detailed projects as follows A IEEE P802 3 10G Base T study Group B IEEE P802 3ah Ethernet in the First Mile Task Force C IEEE P802 3ak 10G Base CX4 Task Force Both IEEE 802 3 and Ethernet are broadband networks using the CSMA CD mode A common feature between them is that both can be function using a Network Interface Card 2 ARP Address Resolution Protoc
261. work It is also one of the node access methods in network When a node sending data gains control by getting a Token it can send its message packet IEEE 802 5 ProNet 1080 and FDDI are good examples of it The term ring is often used as the substitute for IEEE 802 5 Token passing D Dual Token passing 32 UDP User Datagram Protocol A transport layer protocol for the internet Makes high speed communication possible by sending and receiving data without a connection Multiplexing Low reliability of data transport compared to TCP In other words if the data has not reached the partner station it does not try to send the data again CHAPTER 1 OVERVIEW 33 Auto Negotiation Fast Ethernet is the process that the Ethernet device changes the information for the performance such as active speed duplex mode and etc 1 Find out the reason that the connection is denied 2 Determine the performance of the network equipment 3 Change the access speed 34 FDDI Fiber Distributed Data Interface This provides a speed of 100Mbps based on the fiber optic cable It is a Shared Media Network that enables the interactive token passing by a dual ring mode Max distance of the total network is 200Km The max distance between nodes is 2Km The max node number is 500 1000 Generally this is used as a Backbone Network CHAPTER 2 PRODUCT SPECIFICATIONS CHAPTER 2 PRODUCT SPECIFICATIONS 2 1 General Specif
262. work configuration Check it according to the error code E01 01 flow and modify it gt Is there one station where the error occurs Remove the error of the remote station Check the detail information by using the high speed link information monitor Download the parameters and check ON in the Link Enable setting l 13 13 CHAPTER 13 TROUBLE SHOOTING 9 Error code E04 01 E_ CONN Function Block Operation Error CONN FB operation error Yes Modify by reference of FB command and language instructions Is there compile and link error Modify by reference of Appendix A 3 error code Match the group name of frame editor with FB Ss METHOD input Download the frame by frame editor Adjust the port setting since it is overlapped Modify FB METHOD Adjust CH_NO value input less than 15 The remote station having the requested IP address P does not exist in the The remote station did not open the port Check the network and perform the gt trouble shooting any error in the network Convert the CPU mode from STOP to RUN v lt End Sy 13 14 CHAPTER 13 TROUBLE SHOOTING 10 10 Error code E04 02 TCP_SEND UD
263. y list No Type Send Receive Read Area Store Area Size 0 Local Receive D 200ms Soi 00 10 A Local1 Send1 D 200ms Sov 10 10 1 2 3 4 5 6 ri 8 9 1 D Sending and receiving setup for station 1 6 6 CHAPTER 6 HIGH SPEED LINK 6 2 2 Operation order of the High Speed Link Parameter Setting U 2 High speed Parameter Selecting High Speed Link Parameter 3 High ree Link 1 4 Link Setting q FEnet Local station Number 0 63 LI Registration List Local Mode TX or ORX Block Number 0 63 Station Number Station 0 63 Area to be saved Period of TX RX 200ms 10sec Size 1 60 Words Download into the FEnet module after creating the IP Address High Speed Link Station Number Media using Frame Editor when using Frame switch the CPU to Stop mode then switch the power on again Write the project and program on the GMWIN or gt screen or open an existing project and program Setting corresponding with used communication module number set 1 High Speed Link for each communication module Enter the type of network used the slot number and the number of the user s station equipped with the communication module by using decimal system Specify local station s number as TX specified automatically Specify destination station s number as RX Able to specify up to 32 TX RX block numbers TX RX data is distinguished by each
264. yor0 0 indicates 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 3 4 5 6 8 9 In the above screen if the communication of the Run Link mode is 1 and Link Trouble is 0 this means that there is normal communication status The above screen shows that the communication with the other station is normal To confirm the value to be communicated select the direct variable MW100 in On line Monitor Variable Monitor 2 Program editing of the GM3 A Select HS_LINK Select the HS_LINK parameter in the project after opening or editing the new project for GM3 The following screen appears Select one of 4 HS_LINK1 4 High Speed Link 1 is selected to define the first module of the 2 FEnet communication module High Speed Link Paraneter High Speed inki High feeed Links iinet hI ey Hin Sead links High Spred Link 6 48 CHAPTER 6 HIGH SPEED LINK B If you select High Speed Link 1 in the above screen the following screen will appear High Speed Linkt ALOFA Fri F glabom mo D i Edt Bend a cee Road Anca Sior Area Nennire Moe GLOFA Frat GLOFA Kinet OLOFA Enat GLOFA Fone Mebenek SLOFA Fdnet Cable OLDFA Dhel SLOFA Pret GLOFA FOEnat SLOFS Fined Stat Mo o x zoia 6 49 CHAPTER 6 HIGH SPEED LINK D Set the RX TX parameter after selecting number

Download Pdf Manuals

image

Related Search

Related Contents

reglement interieur de la cantine scolaire  Graco 1769606 Thermometer User Manual  Toshiba Excite Pure AT10-A-104 16GB Silver  HQ W7-54913- N  Facebook - Once Upon  BAHA-12 octobre 2010 (2744) avis  A200+ AllCall Amplifier (PD-006 Iss 3.1).  Istruzioni per l`uso  MANUAL DE INSTALAÇÃO Clique aqui e faça o download.  Netgear WN3100RPv2 User Guide  

Copyright © All rights reserved.
Failed to retrieve file