Home

"user manual"

image

Contents

1. 8 12 8 3 1 Modbus RTU server setting hn Noniin E 8 13 8 3 2 Setting of Modbus RTU client 8 15 8 4 User defined Communication Example 8 20 8 4 1 User defined communication example system configuration 8 20 8 4 2 User definition communication frame structure 8 21 8 4 3 User definition communication parameter setting 8 22 Chapter 9 Diagnosis 9 1 Diagnosis Function of XG PD 9 1 9 1 1 Checking status of main unit 9 2 9 1 2 Communication module information 9 2 9 1 3 Frame MONNOT sa sosssese eo So sce eee es Sea Sea Soe eee ee nee 9 3 9 T4 Status Dy Service 2a tea ae ees nes See ee See EE 9 4 9 2 Trouble Shooting by Error 9 6 9 2 1 Trouble shooing when P2P parameter setting error occurs in case of XG5000 CONMEGLJO 0 eee 9 6 9 2 2 Trouble shooting when communication is not done after P2P client setting 9 6 9 2 3 Trouble shooting when response frame is missed in case of acting as client and using RS 485
2. FT 5 S N SS RISK ISSS A A OS kk e AW RX Qh ASXisshn RSX REQAAN SON kk N N WY KW AQ ANN SOX RX 0s RSS ww RSS RXR SSMS N N at RSS KKX TKN AARBAARE mm EUUUUU UU IL UUUUUUUU PWR O RS 232C XGB XBM DN16S RS 232C SeN BENANAAAMN Un HEE SESE EHHHHHHE imension S tvpe WX1818X KW RX A RX xe N N NNN N SN IN UNI XBM DN165 325 1 Stand tvpe ma XBM DR16S Appendix 4 D A 14 Appendix 4 Dimension type H 2 Compact type main unit XBC DN32H HOLISNNOD NOSNYdxa XBC DR32H HOLIINNOOD NOIENVAXA A 15 Appendix 4 Dimension XBC DN64H LILI LILI LELILI OT DO ka IE OI DF EXPANSION CONNED TOR BE ait XBC DR64H AHEMRERENERMARN OQOOOOOO0OODOnOOOONnL 18111270 H 15101710 fa HA a DAE EF iH EXPANSION CONNEC TOR Out alislsisjejsjelsislsiejejzjalii HHH E DHIA 17 d ha MAID MN in jmjmjmjnjnin jn jim ju jnijnjujiu ju Appendix 4 Dimension 3 Extension type Cnet I F module XBL C41A XBL C21A HOLJINNOD
3. Figure 6 1 5 Modem remote 2 setting screen 5 Select connection on online after setting connection option modem initialization dialog box shows and modem is initialized 6 In case setting of COM channel of modem or connection with modem is wrong or the error message shows At this time check COM channel or modem connection 6 4 Chapter 6 Remote Connection 7 If making phone call is complete XG5000 tries remote connection In case remote connection is complete Online menu is activated 8 This case is same with connection status where connection is established through RS 232C cable Here you can use all function of online menu After remote connection you can use online menu of XG5000 like local connection You can use program download upload monitor function etc PLC control through modem is affected by capability of modem and status of telephone line In case telephone line is bad connection may be canceled At this time don t try reconnection instantly wait for 30s and retry again from step 1 9 In case you want to disconnect remote connection select disconnect at online menu Then disconnection menu box shows and remote connection is disconnected 10 If connection is disconnected XG5000 quit call automatically and disconnection telephone connection 11 If it is success to quit call normally local and remote modems return to initialization status You can establish remote connection
4. 9 7 9 2 4 Two response frame are dealt with as unknown when executing frame monitor 9 7 9 2 5 Unable to analyze TRX frame 9 7 9 2 6 Unable to know which one is reason of error client or server 9 7 9 2 7 Communication is not normal or communication is not executed repeatedly stess ssa 9 8 Chapter 10 Installation and Wiring 10 1 Safety Instruction 2 22 n ene nnn nnn nn nnn nnn nena ne enn nena nn nnn name ncnas 10 1 10 1 1 Fail safe circuit 10 3 10 12 PLC Peat calculation l e i jA 10 6 10 2 Attachment Detachment of Modules 10 8 10 2 1 Attachment Detachment of modules 10 8 10 2 2 Caution in handling 10 12 10 3 Wire 2222 222 nn none nnn nnn nn nnn nnn nnn nnn nnn nnn nnn n ene en nee 10 13 10 3 1 Power wiring 10 13 10 3 2 I O Device wiring 10 16 10 4 Channel Operation during Normal Run 10 17 10 5 Communication Interface Connection Method
5. 10 18 10 5 1 RS 232C Interface XBL C21A 10 18 10 5 2 RS 422 485 interface Built in Communication 10 20 10 5 3 RS 422 interface XBL C41A 10 21 10 6 Gable Specifications si estes caer esses ee acces e 10 23 10 6 1 Electrical characteristic 22 n b nn enone nner nnn 10 23 10 5 2 External characteristic 10 23 10 7 Terminal Resistance 10 24 Chapter 11 Maintenance 11 1 Maintenance and Inspection 11 1 11 2 Daily Inspection 11 1 11 3 Periodic Inspection 11 2 Appendix Appendix 1 Definition Of Terms A 1 Appendix 1 1 General Terms A 1 Appendix 1 2 Serial Communication Terms A 2 Appendix 2 Communication Relay List L A 8 Appendix 2 1 Communication Relay L List
6. u aE EPS ABL E IA XBL EHIA Checking the operation Detailed Module Information Frame Monitor Status By Service b 1 Select Online System Diagnosis or click icon 2 Click the right button on the relevant module and click Frame Monitor or Status Bv Service to check we tandari pit Writing parameter 1 Select Online Write Parameter or click icon 2 Click OK 3 If you click OK button parameter is sent to PLC If you don t reset relevant module XGB Cnet I F module acts as changed parameter sg Chapter 8 Example Program 8 1 2 In case of acting as P2P service client Setting method Standard 1 Step 1 3 is same as described above settings In case of ASCII client data bit should be 7 Standard Settings Cnet rT ti Syosea 5600 Dara ba a Sep bt Panty ba ONE Modem bane Medem Active ranten Thaian Number l mode Dolay ime 25501 Gree Time cut HUR 10 Aniye made Channa 1 7 1 Select Use P2P settings as active mode o G 23 TEST XGB XBMS Double click P2P 03 Communication Module Settings P2P settings 3 Standard sett JI High speed Link 1 After selecting P2P setting window double clock P2P block address and input base and slot no of communication module 2 P2P 01 is fixed as built in Cnet and base and slot is fixed as 0 and you can t change that TEST XGB XBMS bi crer P2 P g ar Fone de
7. 6 IO image area Internal memory area of CPU module installed for keeping IO status Appendix 1 Definition of Terms EEE Appendix 1 2 Serial Communication Terms Describes serial communication term 1 Communication type a Simplex This is the communication type that data is transferred in a constant direction Information can not be transferred in the reverse direction b Half Duplex Data is transferred in two ways with one cable if time interval provided though it can t be transferred simultaneously c Full Duplex Data is simultaneously transferred and received in two ways with two cables 2 Transmission type a Serial transmission This type transmits bit by bit via 1 cable The speed of transmission is slow but the cost of installation is low and the software is simplified 7 6 5 4 3 2 1 0 DE eee os ee E ILI Ul 76543210 76543210 RS 232C RS 422 and RS 485 are the examples A 2 Appendix 1 Definition of Terms EEE b Parallel transmission This type is used in printer etc which transmits data in unit of 1 byte so the speed is high and the accuracy of data is reliable However the longer the transmission distance is the higher the cost of installation is geometrically 7 6 5 4 3 2 1 0 ILLI IL IL ee 1f L TX RX ke tL TIIJI 3 Asvnchronous Communication This communication tvpe transmits characters one bv one svnchronousiv in serial transmission At this
8. A 8 Appendix 2 2 Network Register N List A 11 Appendix 3 Communication Error Code A 12 Appendix 3 1 XGT Server Error Code A 12 Appendix 3 2 Modbus Server Error Code A 13 Appendix 3 3 P2P Client Error Code A 13 Appendix 4 Dimension Unit mm A 14 Chapter 1 General ESE Chapter 1 General This user manual provides the information of Cnet I F among XGB PLC system network about specification performance and how to operate Configuration of user manual is as follows Describes configuration of manual product characteristic and term A ee eee Indicates general specification and performance specification of each module j used XGB PLC System configuration Describes basic communication parameter setting Basic setting Describes basic communication setting 5 Communication Describes server for data communication between PLC and P2P parameter function setting Bemas abitata Describes CPU connection method by communication channel through XG5000 XG PD Seo eon Describes XGT dedicated communication frame structure Example program program __ Describes Describes example program for communication test 11110 program for communic
9. Safety Instructions when designing I O signal or communication line shall be wired at least 100mm away from a high voltage cable or power line If not it may cause abnormal output or operation Safety Instructions when designing Use PLC only in the environment specified in PLC manual or general standard of data sheet If not electric shock fire abnormal operation of the product or flames may be caused Before installing the module be sure PLC power is off If not electric shock or damage on the product may be caused Be sure that each module of PLC is correctly secured If the product is installed loosely or incorrectly abnormal operation error or dropping may be caused Be sure that I O or extension connecter is correctly secured li not electric shock fire or abnormal operation may be caused If lots of vibration is expected in the installation environment don t let PLC directly vibrated Electric shock fire or abnormal operation may be caused Don t let any metallic foreign materials inside the product which may cause electric shock fire or abnormal operation Safety Instruction Safety Instructions when wiring Prior to wiring be sure that power of PLC and external power is turned off If not electric shock or damage on the product may be caused Before PLC system is powered on be sure that all the covers of the terminal are securely closed If not electric shock may be caused b
10. Figure 10 5 8 RS 422 connection Figure 10 5 9 indicates RS 485 communication cable connection example in case of single connection Signal direction External Cnet lt gt External device communication Figure 10 5 9 RS 485 connection 10 21 Chapter 10 Installation and Wiring Single and multi drop connection with external device are available in XBL C41A Figure 10 5 10 Figure 10 5 11 are RS 422 RS 485 multi drop communication connection method Master ieee cee C41A External slave Connecti External slave device 1 on device 2 Master rove C41A Connection External slave External jie device 1 i communication device 2 SESE i H Ca ee S Figure 10 5 11 RS 485 connection Chapter 10 Installation and Wiring 10 6 Cable Specifications 1 When using communication channel RS 422 or RS 485 twisted pair cable for RS 422 shall be used in consideration of communication distance and speed 2 Table 10 6 1 describes recommended specifications of cable Also when using other cable than recommended the cable conforming to characteristics in Table 10 6 1 shall be used E Product Low Capacitance LAN Interface Cable E Type LIREV AMESB E Size 2P X 22AWG D 0 254 TA m Manufacturer LS Cable 10 6 1 Electrical characteristic Standard Test conditions Withstanding voltage No destruction 500V 1min Insulation resistance 1 000 M amp km or above Static electricity capacity Char
11. RS 232C J Dest Renae 1 E General Details RS 232C Remote 1 RS 232C settings Port number mA v Baudrate 115200 G v Timeout interval 40 5 sec Retrial times Read Write data size in PLC run mode Send maximum data size in stop mode Figure 6 1 12 XG5000 remote connection setting screen 6 9 Chapter 6 Remote Connection b Select depth as remote 1 and click Settings for detail setting In the detail window set station number AS for station number input station number set in Cnet I F module to execute remote connection Figure is case Cnet station number is set as 1 Details As 399C Remote 1 Network type MalL Cnet Local communication module Base number Slot number Cnet channel Channel 2 Remote 1 communication module a gt r Station number IF address Figure 6 1 13 XG5000 remote 1 connection setting screen c XG5000 tries remote connection and in case remote connection is complete online related function is activated d In this case remote 1 connection is complete it is same status with where it is connected by RS 232C cable Here you can use all functions of online menu c In case you want to disconnect remote connection select disconnect at online menu Disconnection menu box shows and remote connection is disconnected In case disconnection is done normally Cnet I F module and XG5000 are converted into initial mode In case of reconnection
12. Stop bit Parity bit Modem type Modem Initialization Station Number Delay time 0 255 10ms Time out 0 50 100ms Active mode Channel 1 Channel 2 XGT server Figure 4 3 2 Communication module setting screen If standard communication parameter setting ends download Cnet module If you select Online gt connection gt Write parameter download is executed After downloading parameter is applied shortly Write parameter standard settings HS link P2P x a ME al BE Hi Cancel Figure 4 3 3 Write Parameter screen Chapter 5 Communication Function e O O l Chapter 5 Communication Function 5 1 Server Modbus Service 5 1 1 General Dedicated service is built in service in Cnet I F module Without specific program at PLC you can read or write information and data from PC and other device It acts as server at communication network and if read write request conforming XGT dedicated protocol or Modbus protocol come it responds To use dedicated service select operation mode about channel used as server among channel 1 channel of Cnet when setting standard communication setting It supports XGT server and Modbus server and Modbus server responds about RTU and ASCII type Since each channel of Cnet I F module acts independently you can set as other type server For normal operation check and diagnosis of dedicated service refer to Chapter 9 Diagnosis Chapt
13. TX TAIL x Q d a 4 Result Parameter check Used address Ready OFFLINE Figure 5 2 26 transmission frame setting complete screen 6 Reception frame In case of receiving temporary frame first you should define reception frame In case of receiving ACK NAK response reception frame registration method is as follows Frame 0x06 A Numerical a ae eee Sum constant constant constant constant ASCII Fix sized Frame 0x15 variable Size yte _ E E E E E Reference Numerical String String Error code Numerical t E constant constant constant saving area constant Sum ASCII 5 18 Chapter 5 Communication Function SS ggg aaa First to register frame add group as ACK NAK Group name NAK Frame type Reception Figure 5 2 27 ACK NAK reception group registration screen about wSB request frame Adds frame registered reception frame group ACK A Head registration ks 2 of user account ACK HEAD Number Form Size Data Memory Figure 5 2 28 ACK reception frame Head registration screen B Body registration Registers at Body about data to process and instruction among reception frame ks 2 of user account ACK FRAME Form S ZE Data Memory VOL String Constant 2 1 NA string Constant d WOE Figure 5 2 29 ACK reception frame Body registration screen C Tail registration ks 2 of user account ACK TAIL Number Form Size Data Memory re Numerica
14. Chapter 2 specification a O O l 1 IEC International Electro technical Commission An international nongovernmental organization which promotes internationally cooperated standardization in electric electronic fields publishes international standards and manages applicable estimation system related with 2 Pollution level An index indicating pollution level of the operating environment which decides insulation performance of the devices For instance Pollution level 2 indicates the state generally that only non conductive pollution occurs However this state contains temporary conduction due to dew produced 2 2 Chapter 2 specification 2 2 Performance Specification 1 Built in Cnet performance specification Performance specification of XGB built in Cnet is as follows Specification Item Channel 1 Channel 2 Serial communication RS 232C RS 485 method Modem connection function Act as communication client Operation pop XGT dedicated protocol client mode Modbus ASCII RTU client Operation User defined communication define by XGT dedicated protocol server channel Server Modbus ASCII RTU server Data bit 7ors Data Stop bit 1 or2 type Even Odd None Synchronization type Asynchronous type Transmission speed fae 1200 2400 4800 9600 19200 38400 57600 115200 bps available ps Setting range 0 31 Station No setting l l l Max station No available 32 stations Transmission Max
15. Ga Remote CONNECHOM ess ARR PANA 6 1 Gael Gee all i seen se eatas sos deste serve e eae ees 6 1 6 122 AG9VPOV femote CONNEC ION A A A BA sec R ere 6 1 6 1 3 Remote connection between Cnet I F modules 6 8 Chapter 7 XGT Dedicated Protocol 7 1 XGT Dedicated Protocol 7 1 7 1 1 General 7 1 7 1 2 Frame structure 7 2 7 1 3 List of commands 7 3 7 1 4 Data type 7 4 7 1 5 Detail of instruction 7 6 Chapter 8 Example Program 8 1 Setting of Cnet I F module in the XG PD 8 1 8 1 1 In case of acting as server 8 1 8 1 2 In case of acting as P2P service client 8 3 8 2 Dedicated Communication Example 8 6 8 2 1 Settings of XGT server 8 7 8 2 2 Settings of XGT client 8 8 8 2 3 Checking the operation 8 11 8 3 Modbus Communication Example
16. LS values every single customer Quality and service come first at LSIS Always at your service standing for our customers www lisis biz ES industrial Systems 10310000736 BE orice m LS Industrial Systems Shanghai Co Ltd gt gt China LS tower Hogve dong Dongan gu Anyang si Gyeonggi do Address Room E G 12th Floor Huamin Empire Plaza 1026 6 Ka angid hiz No 726 West Yan an Road Shanghai China Tel 82 2 2034 4689 4888 Fax 82 2 2034 4648 Tel 86 21 5237 9977 aro industrial Systems Tokyo Otice Japan u LS Industrial Systems Wuxi Co Ltd gt gt China Address 16F Higashi Kan Akasaka Twin Towers 17 22 Address 102 A National High amp New Tech Industrial Se NONE ASASAN L G Oty TAON Jaah Development Area Wuxi Jiangsu China e mail Xugh Igis com cn a a MM Tel 86 510 534 6666 Fax 86 510 522 4078 B Mall Etuna Cisti m LS Industrial Systems Beijing Office gt gt China KLS industiial Systems Dubar Mep Omi e sa UAE Address B tower 17th Floor Beijing Global Trade Center building POGUES A IO ARA LOW 9200 Hell No 36 BeiSanHuanDong Lu DongCheng District Beijing China Zaved road Dubai UAE e mail hwyim lsis biz Tel 86 10 5825 6025 lia lii iz Bee ese een m LS Industrial Systems Guangzhou Office gt gt China ao VINA inqara oye ea Con Lid a vena Address Room 1403 14F New Poly Tower 2 Zhongshan Liu Address LSIS VINA Congty che tao may dien Viet Hung Rad Guangzhou China e mail zhangch lgis com cn
17. System Diagnosis or click icon E3 2 Click the right button on the relevant module and click Frame Monitor or Status By Service to check 0 0 Chapter 8 Example Program 8 2 Dedicated Communication Example Dedicated communication e As defined protocol by LSIS it is classified XGT client and XGT server e XGT client requests reading writing of data to server e XGT server responds according to request of client We assume that system configuration of dedicated service example is as Figure 8 2 1 and communication setting is as following table RS 232C 36400 6 1 None Dedicated Communication Client Server Figure 8 2 1 Example of dedicated service system configuration e Client setting Setting content XBM DN16S module Communication type RS 232C speed Databit f 200ms Operation Saves 1 word of M100 at client to M100 at server status Saves 1 word of D100 at server to M110 at client Table 8 2 1 client setting e Server setting Setting content Main unit Main unit Po XBC DNB2H lt S DN32H Communication Main unit built in PN a 1 232C module Communication type RS 232C speed a o Table 8 2 2 Server setting 8 6 Chapter 8 Example Program 8 2 1 Settings of XGT server Setting method to operate built in RS 232C communication channel of XBC DN32H as server is as follows Sequence Procedure Setting method Online Settings Connect
18. WW SB 5342 variable with block unit H57 Bit continuous read is not allowed Command egister No ASCII code Monitoring variable x X tE HOO HOF Register device to monitor register Execution of H79 y Y H59 HOO HOF Execute registered device to monitor It identifies capitals or small letters for main commands but not for the others l 3 Chapter 7 XGT Dedicated Protocol 7 1 4 Data type It s possible to read and write device in built in communication When device is used be aware of data type U Data type of device e Available types of device XBM DXXXS Device Range sewon roma e err i Renato Ce mes m Remdiontoramaiabe Cr ees a peenaa CO C255 Read Write Monitor available LO L1279 1280 Read Write Monitor available NO N3935 3936 Read Monitor available we DO D5119 5120 Read Write Monitor available Z0 Z127 Read Write Monitor available U00 00 U07 31 Read Write Monitor available XBC DXXXH Device Range sowo reran e m oa Reat onora Oe ocos ioa Reaanentravaise o oomo 10240 Readwienentoravaisbie ok RO R10239 10240 l Read Write Monitor available Chapter 7 XGT Dedicated Protocol e When device is designated attach 25H in front of the marking characters is stands for starting of device Marking X 58H PX000 MX000 LX000 KX000 CX000 TX000 F X000 etc Byte B 42H PBO00 MBO000 LBO000
19. _ gt lt Chapter 3 System Configuration XGB PLC is having diverse product suitable for main system computer link and network system configuration This chapter describes configuration method and characteristic 3 1 XGB System Configuration System configuration of XGB PLC is as follows Extension I O module in case of special module in S type up to 7 step connection and in H type up to 10 step connection is available In communication module up to 2 step extensions is available 3 1 1 H type system configuration mm ia d gi Ii fit ae Sceeeere Main unit I O module Special module Communication module I O configuration point e XBC DxxxH 32 704 points connection available no mm LT e Max 2 module H Hype L e XBC XBC DR32 64H e XBC DNG2 6H e XBC DN32 64H e XBE DCO8 16 32 XBE DC64A 09 year June e XBE TNO8 16 32 XBE TN64A 09 year June e XBE RY08 16A e XBE DR16A Digital I O module Configurati on product Extension module e XBF AD04A e XBF RD04A Analog module e XBF DV04A e XBF RD01A e XBF DC04A e XBF TC04S Communication e XBL C41A e XBL C21A module e XBL EMTA 371 Chapter 3 System Configuration C 3 1 2 S type System Configuration Main unit I O module Special module Communication module ET e XBE DCO8 16 32 XBE DC64A 09 vear June e XBE TNO8 16 32 XBE TN64A 09 year June Digital I O modul si sl e XBE RY08 16A Confi
20. BODY s name is RECE_DRS here 3 1 Method writing HEAD TAIL is same with step 4 5 of method writing frame that request reading data Add segment L Add segment k Add segment Add segment Form String Constant v Form Fix sized variable Form String Constant v Form Fix sized variable Size Constant Size 4 Constant Size TA Constant Size 4 l Constant Data DIDASOK HEX eal HEX C Assign memory Assign memory C Assign memory Assign memory Conversion NONE v Conversion NONE 4 Swap NONE o w Swap NONE 1 To save present temperature value in MB200 and setting value in MB210 set the storage area of 1 and 2 data as set in Table 8 4 1 2 Since data size of data 1 and 2 is 4 byte select Fix sized variable and input 4 in Size 3 To select storage area of data check Assign memory Project window amp TEST XGB XBMS kal 1 of user account DRS_RECE RECE_DRS S P2P 01 B050 Cnet P2P Channel Nu Form i Data P2P Block 00 String Constant 01DRS OK Go User frame definition 01 Fix sized variable f DRS Transmission kemm heeri an 5311 of user account DRS_RECE TAIL test Nu Form Size Data f DRS_RECE Recepti 00 Numerical const 1 oD 5 taj HEAD 01 Numerical const 1 0A TAIL a RECE_DRS 3 PP 02 E3 1 of user account DRS_RECE HEAD EZ PHP 03 Nu Form Size Data 00 Numerical const 1 01 amp Si BI Stand BI High p gt DRS_RECE DRS_RECE DRS_RECERE 1
21. Chapter 5 Communication Function First add group of transmission frame Ft XG PD 1 of user account TX B WE File Edit View Online Tools Window Help Deki d x Project window x Memory TEST XGB XBMS f P2P 01 B050 Cnet le P2P 02 B051 Cnet P2P Channel P2P Block 2 User fra Add Group 28 PAP OS lt lt E Stan High H Pa TX HEAD TX TAIL x Parameter check Used address Xis FD Message wir Figure 5 2 19 Transmission frame group add screen If group edit window shows like the following insert group name and select frame type Transmission Group Edit Figure 5 2 20 transmission frame group setting screen You can register diverse frame about each group For this select group to register transmission frame and click right button of mouse and add frame i P2P Block E Ea User frame definition Delete Group Add Frame Figure 5 2 21 transmission frame add setting screen 5 16 Chapter 5 Communication Function By using frame edit window you can register Head Body Tail Figure 5 2 22 transmission frame edit window Only one Head and Tail exist about group but you can register many Bodies Also you can omit Head and Tail but one Body is necessary A Head registration Head can add many segments but in each segment numerical constant and string constant are available Number Form Size Data Memory asc Ta i TA IFigure 5 2 23
22. KBO000 CB000 TB000 FB000 etc Word W 57H PWO000 MWO000 LWO000 KWO000 CWO000 TWO000 FWO00 DWO000 etc Award D 44H PDOO00 MDO000 LDO00 KDO000 CDO000 TDOO0O FDO00 DDOO00 etc hwnd L 4CH PLOOO MLO00 LLOOO KLOO00 CLO00 TLOOO FLOOO0 DLOOO etc e Timer Counter used in bit command means contact point values word command means current values e Data register D can uses only word or byte commands e In byte type commands address is doubled For example D1234 is addressed to DW1234 in word type and is addressed to 0DB2468 in byte type Chapter 7 XGT Dedicated Protocol 7 1 5 Detail of instruction 1 Individual reading of device R r SS a Purpose This is a function that reads PLC device specified in accord with memory data type Separate device memory can be read up to 16 ata time b PC request format Number Format Statio Comma Command Device Frame Header of Device name Tail name n No nd type length check blocks Ex of ENQ H20 R r SS HO1 HOG MW100 frame ASCII H323 J lue H05 0 H52 72 H5353 H3031 H3036 H254D57313030 H04 1 block setting can be repeated up to max 16 blocks Description When command is lowercase r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and added to BCC For example the BCC of the above frame is gotten as below H05 H32 H30 H72 H53 H53 H30 H31 H30 H36 H25
23. Let the wiring installed correctly after checking the voltage rated of each product and the arrangement of terminals If not fire electric shock or abnormal operation may be caused b Secure the screws of terminals tightly with specified torque when wiring If the screws of terminals get loose short circuit fire or abnormal operation may be caused Surely use the ground wire of Class 3 for FG terminals which is exclusively used for PLC If the terminals not grounded correctly abnormal operation may be caused Don t let any foreign materials such as wiring waste inside the module while wiring which may cause fire damage on the product or abnormal operation Safety Instruction Safety Instructions for test operation or repair b Don t touch the terminal when powered Electric shock or abnormal operation may occur Prior to cleaning or tightening the terminal screws let all the external power off including PLC power If not electric shock or abnormal operation may occur Don t let the battery recharged disassembled heated short or soldered Heat explosion or ignition may cause injuries or fire b Don t remove PCB from the module case nor remodel the module Fire electric shock or abnormal operation may occur gt Prior to installing or disassembling the module let all the external power off including PLC power If not electric shock or abnormal operation may occur b Keep any wireless installation
24. Pang Ani Hanoi vietam a Tel 86 20 8326 6754 Fax 86 20 8326 6287 ei SS Ai E rax PE m LS Industrial Systems Chengdu Office gt gt China BUS aly eral Hanol OMICS a gt vietnam Address Room 2907 Zhong Yin B D No 35 Renminzhong 2 Address Room C21 5th Floor Horison Hotel 40 Cat Linh Road Chengdu China e mail hongkonk vip 163 com ranor etal Tel 86 28 8612 9151 Fax 86 28 8612 9236 jeu ENa o rae m LS Industrial Systems Qingdao Office gt gt China m Dalian LS Industrial Systems co Ltd gt gt China Address 12th Floor Guodong building No52 Jindun Road Address No 15 Lachez 3 ROAN economic ang technical Chengdu China e mail bellkuk hanmail net development zone Dalian China e mail lixx lgis com cn Tel 86 532 580 2539 Fax 86 532 583 3793 Tel 86 411 8273 7777 Fax 86 411 8730 7560 XGB Cnet 2008 7 X LS Industrial Systems constantly endeavors to improve its product so that Information in this manual is subject to change without notice Copyrights c 2006 LS Industrial systems Co Ltd All Rights Reserved JOU 4IX Right choice for ultimate yield LSIS strives to maximize customers profit in gratitude of choosing us for your partner Programmable Logic Controller XGB Cnet I F XGTSeries User s Manual _ Main unit xBM DR16S Cnet I F XBL C41A Built in Cnet xem DN16S module XBL C21A XBM DN32S XBC DR32H XBC ON32H XBC DR64H XBC DN64H Safety Instructions eRead this manual caref
25. Write parameter standard settings HS link P2P Writing parameter 1 Select Online Write Parameter or click icon 2 Click OK 3 If writing parameter is complete After clicking OK changed parameter is applied automatically Enable Link HS Link P2P OM TEST S E High speed Link DS High speed Link 01 CIE High speed Link 02 pog P2P P2P 01 ME P2P 02 P2P 03 Enabling the link 1 Select Online Enable Link or click icon ES 2 Click the P2P to enable and click Write 8 10 Chapter 8 Example Program _ 8 2 3 Checking the operation The user can analyze frame by using the frame monitor of XG PD to check it communication is normal or not Method of frame monitor of Cnet I F module is same regardless of protocol Setting method SE mE FI XBL C21A XBL CHIA MQOF NnID TEL DNAN VD E System Diagnosis Detailed Module Information Frame Monitor Status By Service 1 Connect with cilent by XG PD and select Online System Diagnosis or click BB 2 Click the right button on the relevant module and click Frame Monitor or Status By Service Frame Monitor Standard information Frame monitor O view by HEX View by ASCII Base No 0 Fom Result Size Time Frame data Tran XGT master 2007 11 26 11 50 00 0320 ENQO1wSSo104 DWO Slot No 0 Rec XGT master 2007 11 26 11 50 00 030 ACKO1wSSETX87 Tran XGT master 2007 11 26 11 50 00 230 ENQO1wSSoO104 DW
26. XGB Response Format NAK response Head p ji via Error code Format name Command Hex 2Byte Tail Frame check ASCII value H3130 H59 79 H3039 H31313332 When command is lowercase y only one lower byte of the value resulted by BCC adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC and sent Erorcode Hex and 2 bytes ASCII code 4 bytes indicate error type For the details Refer to 9 1 4 XGT dedicated communication error codes and countermeasures 7 18 Chapter 7 XGT Dedicated Protocol e Example This example supposes that registered device No 1 of station No 1 is read and BCC value is checked And it is supposed that device MOOO is registered and the number of blocks is 1 1 PC request format PC XGB jet ja ka mr T ASCII value H3031 H59 79 H3031 Hoa 2 For ACK response after execution of command PC XGB pie Registration Number of Fane Earee ACK HOT Yo Hor HOT Hoz ASCII value HOG H3031 H59 79 H3031 H3031 H3032 3 For NAK response after execution of command PC XGB sc SE ci MA em m HOt freee ASCII value H3031 H59 79 H3031 Error code 4 HOS 7 19 Chapter 8 Example Program Chapter 8 Example Program 8 1 Setting of Cnet I F module in the XG PD Operation of XGT Cnet I F is divided into P2P service and Server e P2P service acts as client master and request reading writing XGT client M
27. ation module 2 setting 1 Double click of project window P2P 01 is fixed as built in communication 2 Select slot no No 1 of client module and press OK P2P Channel Setting x P2P Chann Operating Mode i P2P Driver TCP UDP Client Server Partner Port Partner IP address channel Use P2P Modbus RTU client v 3 S etti n g 2 Use P2P User frame definition GT client Modbus ASCII client Modbus RTU client 1 Double click Arerchama of P2P 01 and set P2P driver of channel 1 as Modbus RTU client and click OK 1 Double click P Black Of PPP 02 Setting of writing operation 1 gt Write 1 word of M100 of client to M1 of server 1 Ch Select ch 2 set as Modbus RTU client set in P2P channel 2 P2P function select WRITE 3 Conditional flag to send frame every 200ms use flag F92 4 Command type Data type to write 1 word select single and 2 byte 5 Destination station number select station number of server 6 Setting after setting Read area and Save area click OK 1 Read area device address saved in the client M100 2 Save area deice address of server to save 0x40001 M1 If all settings are completed color of index of channel becomes black r l f n F r FIP function Dark noma Duala bu wath Dias oe ke ee hs ELTTI taI ED L ki F 4 Seal WHITE FIRE Setting of writing operation 2 gt Write 4 words from DO of client to M2 M5 of server 1 C
28. nition channel iar 4 setting 1 Double click P2P driver and select protocol according to each channel 2 P2P driver supports user definition frame XGT client Modbus RTU ASCII client 8 3 Chapter 8 Example Program eee ee SS 55555555525 eee eae 55959 Setting method Bl Xd PD P2P block settings P2P 01 El hia Eat ves Drikri Toos Widow Meo ed Proja t minde P2P block zi ot TEST IED MIEESI fk P2P 01 8050 Cnet a FF Oare PF Bock Lier fame defrutar a pP ie Srro setting 1 P2P items are activated differently according to type of client set in the channel 2 Write shell according to protocol In case of user definition frame P2P block can be set when user definition frame is written Enable Link HS Link P2P 3 OD TEST CE High speed Link OS High speed Link 01 High speed Link 02 f P2P ME P2P 01 P2P 02 P2P 03 Enabling the link 1 Select Online Enable Link or click icon ji 2 Click the P2P to enable and click Write Writing parameter 1 Select Online Write Parameter or click icon a 2 Click OK 3 If you press OK parameter is sent to PLC If you don t reset relevant module XGB Cnet I F module acts as changed parameter 8 4 Chapter 8 Example Program Setting method Se XB xBL C21A XBL C4IA Checking ERR the operation R S LI 4 8 5 RS 232C o o E T NAN 70 1 Select Online
29. 01 block mar war Seigareact FaFpeanaorijorsmen rwonee o122 Word ning ar of PaP preter obs pe inoiasan Word Sang a ot Far preter ooroo Nozze wou Seva wenct Paper mesra Word Sauraarnct Farmers 00000 Remark U In XGB S type Network register is available only monitoring Read Only A 1 1 Appendix 3 Communication Error Code EEE Appendix 3 Communication Error Code Appendix 3 1 XGT Server Error Code Error code is displayed as hex 2 byte 4 byte as ASCII code The user can see error by frame monitor and in case of viewing by ASCII the user can see the following error code Error type Error details and causes details and Error details and causes Example Number of blocks Number of blocks exceeds 16 at Individual 0003 01rSS1105 MW10 exceeded Read Write Request IL length Variable Length exceeds the max size of A rSS010D MW100000000 error 16 0007 Data type error Other data type than X B W D L received data Other data type than X B W D L received than X B W D L received 01rSS0105 MK10 Data length area information incorrect 01rSBO5 MW10 4 In case is unavailable to start with 01rSS0105 MW10 0011 jDataerror Variable s area value wrong 01rSS0105 MWA amp S ene value is written for Bit Write than 00 01wSS0105 MX1047 or S ene Monitor execution Unregistered monitor execution requested error Monitor execution 0190 Reg No range exceeded error 0290 JMonitor reg Error Reg
30. 15m Max 500m distance Diagnosis function Check available by XG PD diagnosis service 2 3 Chapter 2 specification 2 Extension Cnet performance specification XGB extension Cnet communication module performance specification is as follows Specification ltem XBL C21A XBL C41A Serial communication RS 232C 1 channel RS 422 485 1 channel channel Modem connection l External modem connection available function Operates as communication client Operation XGT dedicated protocol client mode Modbus ASCII RTU client Operation User defined communication definition by port XGT dedicated protocol server Modbus ASCII RTU server Data bit 7or8 Data Stop bit 1or2 type Even Odd None Synchronization type Asynchronous type Transmission speed bos 1200 2400 4800 9600 19200 38400 57600 115200 bps available ps Setting range 0 31 Station No setting l l Max station No available 32 stations RS 232C 15m Extension available in case of using RS 422 485 max 500m Transmission distance modem Diagnosis function Check available by LED and XG PD diagnosis service Consumption current 120mA 120mA Weight 2 4 Chapter 2 specification SSS KKOO 2 3 Name and Function of each part S Type XBM DN16 32S XBM DR16S XBM DR165 PWR E RUN E ERR IM NON Son gt O malli ke YoaaAhwn 3 j 0 1 2 3 4 5 6 Fi 8 9 A B c D E F Inp
31. 7 ey oe 2 E gt E rie oq Si 3 srl eles og 100V 240V Bs JE PS Ele EE 88 Ei pees ce jEA jie A b ku pi cam EA E E EK A l mllol 2 ie G Efren G ged E Pi ons an N N WF YS L CAS X 4 L g Q NA F FI O 6S d voltage transforme 2 Connect power that include small noise between line and earth When there are many noise connect insulated transformer 10 13 Chapter 10 Installation and Wiring 3 Isolate the PLC power I O devices and power devices as follows PLC power Main power o saq AG220V O t Constant Voltage Transforme AC100 240V IO power 4 If using DC24V of the power module a Do not connect DC24V of several power modules in parallel It may cause the destruction of a module b If a power module can not meet the DC24V output capacity supply DC24V externally as presented below 5 AC110V AC220V DC24V cables should be compactly twisted and connected in the shortest distance 6 AC110V AC220V cable should be as thick as possible 2mm to reduce voltage drop 7 AC110V DC24V cables should not be installed close to main circuit cable high voltage high current and I O signal cable They should be 100mm away from such cables 10 4 Chapter 10 Installation and Wiring 8 To prevent surge from lightning use the lightning surge absorber as presented below Surge absorber to prevent
32. Chapter 3 System Configuration 3 3 3 Modem connection with PC and communication between Cnet I F modules PC and Cnet 1 station is connected by modem through RS 232C channel Cnet 1 station N station is communication between Cnet I F module through RS 422 channel Cnet 1 station N station is Communication between Cnet I F modules through RS 422 channel PC acts as client station of Cnet 1 station Up to max 32 station connection is available in case of Cnet I F module RS 422 485 communication e It sets station 1 among Cnet I F module as server station Dedicate modem or dial up modem available XGB PLC XGB PLC XGB PLC Cnet 1 station Cnet 2 station Cnet f N station RS 422 communication l XKEKKXKX RS ae Communication Figure 3 2 5 Dedicated modem communication with PC Module setting Type XBL PLC Cnet 1 a client Cnet 2 N Table 3 2 1 module setting table per station 3 Chapter 3 System Configuration O O OEEO l l O 3 2 4 Dedicated communication with PC HMI and different type RS 422 communication Null modem communication by using PC HMI and RS 232C channel PC HMI acts as client station Cnet I F module acts as server at this time module setting acts as RS 232C XGT server e Cnet I F module RS 422 channel acts as P2P mode It transmits indication data to display module of mosaic panel through RS 422 channel Reading display transmission data
33. Designates communication device individually type Designates communication device continuously NN L BL Ses data ype to communicates OOOO Determines the number of area to read individually No Wo ovaries variables Up to 4 available vem epes when command type is single and up to 120 byte Data size Unit Byte available Detestation station Main unit built in Sets destination station number to communicate number Variable setting Designates device of destination station to read Memory area used in internal system Auto setting Table 5 2 3 Read instruction setting item 550 Chapter 5 Communication Function 2 Write instruction Instruction used to write data to wanted area about destination station and this is used commonly regardless of driver type Basic configuration is as follows Channel Designates channel to communicate setting Channel 1 RS 232C channel 2 RS 485 bit Sena eeto communes SY Main unit built in No of variables Not used in Modbus communication oBvte Sets data tvpe to communicates as Long WORD Effective when command tvpe is single and up to 120 Data size Unit Bvte bvte available Detestation station Sets destination station number to communicate number Variable setting Designates device of destination station to read A Memorv area used in internal svstem Auto setting Table 5 2 4 P2P Write instruction setting item In case M102 bit is set by using channel 2 ab
34. Frame E Station Comm Head Segment Tai N No and Parameter by Commend Q A Station Comm C No and K Response Frame Segment Structure of general Tx Rx frame Head ASCII value indicating frame start Tail ASCII value indicating frame end BCC Block Check Character Check data for Tx Rx frame Used to inspect reliability of data with such various methods as ADD OR Exclusive OR MULTPLY etc 16 Reset This function is used to initialize the communication module with errors Use XG PD to select On Line Reset so to execute Reset which will restart PLC A 7 Appendix 2 Communication Relay List L Appendix 2 Communication Relay List L Appendix 2 1 Communication Relay L List Here describes data link communication relav L 1 High speed Link 1 High speed link parameter 1 normal operation of all station Indicates normal operation of all station according to parameter set in High speed link and On under the condition as below 1 In case that all station set in parameter is RUN mode and no LOOO HS1_RLINK Bit error 2 All data block set in parameter is communicated normally and 3 The parameter set in each station itself is communicated normally Once RUN_LINK is On it keeps On unless stopped by LINK_DISABLE Abnormal state after _HS1RLINK On In the state of _HSmRLINK flag On if communication state of the station set in the parameter and data block is a
35. List L 2 High speed Link 2 High speed link parameter 2 normal operation of all station Indicates normal operation of all station according to parameter set in l High speed link and On under the condition as below L0260 _HS2_RLINK 1 In case that all station set in parameter is Run mode and no error 2 All data block set in parameter is communicated and 3 The parameter set in each station itself is communicated normally Once RUN_LINK is On it keeps On unless stopped by LINK DISABLE Abnormal state after HS2RLINK On In the state of HSmRLINEK flag On if communication state of the station set in the parameter and data block is as follows this flag shall be On l 1 In case that the station set in the parameter is not RUN mode or L0261 _HS2_LTRBL 2 There is an error in the station set in the parameter or 3 The communication state of data block set in the parameter is not good LINK TROUBLE shall be On if the above 1 2 amp 3 conditions occur and if the condition return to the normal state it shall be OFF again High speed link parameter 1 k block general state L0280 _HS2_STATE K Bit Indicates the general state of communication information for each data LO31F k 00 63 Array block of setting parameter _HS2_STATE k J HS2MOD k amp _ HS2TRX k amp _HS2_ERR k L0320 HS2 MODIk Bit High speed link parameter 1 k block station RUN operation mode LO35F k 00 63 Array indicates operation mode of station set in k data
36. Memory Conversion Swap available Add segment Form Fix sized variable Sze 7 Constant Assign memory Conversion NONE Ww Swap NONE Cancel Figure 5 2 16 Add fix sized variable screen 5 19 Chapter 5 Communication Function CTT SSS EEEEEEOEEE _ _ _ _______________ D Variable sized variable Available at Body area of TX RX frame Transmission frame Used in case of changing length of frame If checking Assign memory it makes transmission frame by data read from PLC memory Reception frame Used in case of processing variable sized variable among received frame Registering at last segment among Body area is available u If selecting Assign memory it saves data about each segment among received frame Swap conversion is available Received data size is byte size Add segment Form Variable sized variable Assign memory Conversion NONE Ww Swap NONE v Figure 5 2 17 Edit segment variable sized variable screen 4 Data conversion process When transmitting receiving frame in case data is changed from Hex to ASCII or executing byte swap you can define frame edit window A Conversion Hex To ASCII Transmission it changes data read from PLC memory into ASCII and configure transmission frame Reception it changes received data to ASCII and save it ASCII To Hex Transmission it changes data read from PLC memory to Hex and configur
37. No range exceeded Device memory are 1132 Other letter than applicable device is input error Request exceeds the max range of 60 01WSB05 MW1040AA551 2 1232 Data size error Words to read or write at a time 1234 Unnecessary details exist as added 01rSS0105 MW10000 All the blocks shall be requested of the ia identical 01rSS0205 MW1005 MB1 data type in the case of Individual 0 Read Write 1432 Data value error Data value unavailable to convert to Hex 01wSS0105 MW10AA 5 Variable request Request exceeds the area each device 7132 jarea 01rSS0108 MWFFFFF supports exceeded Appendix 3 Communication Error Code Appendix 3 2 Modbus Server Error Code Error code is displayed as hex 1 byte 2 byte as ASCII code and indicates type of error Error type Error details and causes Illegal Address Address range exceeded Illegal Data Value Data value not allowed Appendix 3 3 P2P Client Error Code Indicates error code shown at monitoring window of XG PD ERR_WRONG_DRV_T 05 TE Driver type is not correct ERR FRAME SND Can t send TX frame 09 ERR NO USE _LINKID There is no communication module ERR PLC RESP TIME eee ee OA ae Reception frame is not received during time out setting time os ERR Fau LENGTH Length ot recepton tame iratcomect ab EAR_ASCILHEX ERR ASC HEX conversion of recepton teme is notconet imension Appendix 4 D
38. RS485 terminal 3 3 Chapter 3 System Configuration 2 In case of using 1 1 connection with monitoring device such as XGT Panel e XGB main unit Figure 3 2 2 1 1 communication with HMI XP series LSIS if RS 485 I F RS 232C I F e Wiring method RS 232C XGB main unit XGB external Connection number and XP external form l IM signal direction 3000 Note In case of PMU short no 4 and no 6 short no 7 and no 8 e Wiring method RS 485 II Connection no and signal direction XGB main unit Chapter 3 System Configuration 3 In case of using 1 1 connection with XGB main unit XGB main unit XGB main unit RS 232C I F RS 485 I F Figure 3 2 3 1 1 communication between PLCs e Wiring method XGB main unit l XGB main unit XGB external Connection no and 1 Chapter 3 System Configuration SSS OEEO l l O O 3 2 2 1 1 Dedicated modem connection with PC HMI Itis 1 1 communication system connected through dedicated modem through RS 232C channel with PC HMI Normally PC HMI acts as client station Cnet I F module acts as server station which respond request of PC HMI Since it uses modem RS 232C channel should be set as dedicated modem and long distance communication is available Operation mode of this module should be set according to communication method of PC HMI XBM DN32S XBL C21A Figure 3 2 4 dedicated modem communication with PC 3 6
39. This is entire frame to receive response data of temperature controller 8 24 Chapter 8 Example Program 4 Writing P2P transmission reception block Write P2P TX RX block as follows by using user definition communication segment written ahead Sequence Setting method Driver Setting P2P function Frame Setting Variable setting contents User frame definition RECEIVE DAS RECE RECE DAS Setting Number 254VE1 M200SAVE2 M21 Setting Setting Setting Setting Save area Address Setting No0062 Seting M210 NOOO Setting Setting Setting Setting Setting 1 Setting Setting Setting 17 Setting 1 Double click P2P block of P2P 01 2 Input channel selected at P2P channel user frame definition 3 In case P2P function is TX frame select SEND In case P2P function is RX select RECEIVE 4 Conditional flag is activated when P2P function is SEND 5 Since it reads data every 1 second use F93 as conditional flag 6 Click Setting of RX frame and set save area of current temperature and setting value Execute Write Parameter and Enable Link 5 Checking TRX data Check whether written frame is transmitted received properly Sequence Setting method Frame Monitor Standard information Frame monitor O View by HEX View by ASCII Base No u Form Result Size Time Frame data Ss i Rec User define 2007 12 3 15 24 01 840 STXO1DRS 0K 0016 02D Slot No 0 User de
40. Transmission frame Head registration screen B Body registration Bodv can be configured manv segments vou can define up to 4 variable sized variable In frame edit window if you set Body about TX FRM A it is as follows Number Form Size Data Memory 00 string Constant 2 O1 i String Constant 3 WSB qa String Constant a DEYM 100 03 String Constant 2 04 04 Variable sized v Figure 5 2 24 Transmission frame Body registration screen C Tail registration You can register BCC in this item Supported BCC is as follows Chapter 5 Communication Function Number Form size Data Memory jal Numerical constant i L A Oi BCE 2 BYTE SUM Head BeforeBCC AsdiConv Figure 5 2 25 Transmission frame Tail registration screen The following is screen where transmission frame registration is complete XG PD TEST xfg File Edit View Online Tools Window Help D ki db Project window x TEST XGB XBMS m IX SEE 4 P2P 01 B050 Cnet P2P Channel Form li P2P Block Numerical constant Go User frame definition 4 P2P 02 B051 Cnet E P2P Channel P2P Block 38 User frame definition SI 2ofuseraccount IXFRMA fx 38 x Transmission as ey HEAD Form i Data Memory String Constant 0i String Constant wSB String Constant 06 M VW 100 String Constant 04 Variable sized v i7 2 of user account TX HEAD Number Form Size Data Memory 00 Numerical constant 1 05 gt BI sts H High T P2
41. block of parameter Normal communication with High speed link parameter 1 k block LO360 _HS2_TRX k Bit station LO39F k 00 63 Array Indicates if communication state of k data of parameter is communicated smoothly according to the setting 0400 _HS2_ERR k Bit High speed link parameter 1 k block station operation error mode L043F k 00 63 Array Indicates if the error occurs in the communication state of k data block of parameter j High speed link parameter 1 k block setting T Hs2 SETBLOCKIKI ai 0 fay Indicates whether or not to set k data block of parameter Appendix 2 Communication Relay List L 3 Common area Communication flag according to P2P service setting In case of XGB P2P parameter is 1 3 P2P block is 0 31 normal end abnormal end 1513 _P2P1_ STATUS00 Indicates error code in case of P2P parameter 1 0 Block service abnormal end normal count abnormal count service abnormal end normal count abnormal count L524 L529 pF Word P2P parameter 1 2 Block service total L530 L535 PD Word P2P parameter 1 3 Block service total L536 L697 BL Wort P2P parameter 1 4 30 Block service total L698 L703 pF Wort P2P parameter 1 31 Block service total A 1 0 Appendix 2 Communication Relay List L Appendix 2 2 Network Register N List Here describes about network register P2P parameter 1 3 P2P block 0 31 N0006 0009 PIBOORD2 Word Saves area device 2 to read P2P parameter 1
42. connection when there is many communications connection may fail You should convert PLC as Stop mode and stop communication before remote connection Remote connection sequence by using dedicated modem is as follows a Set basic parameter of remote server as XGT server b Convert local connected PLC into Stop mode c Execute XG5000 and select Online Connection settings and set connection method And select connection method RS 232C and communication channel This is same with case of local connection At this time you should set station number of remote server to connect 6 12 Chapter 7 XGT Dedicated Protocol Chapter 7 XGT Dedicated Protocol 741 XGT Dedicated Protocol O Z O 7 1 1 General XGT series dedicated protocol communication is function executing communication by our dedicated protocol User can configure the intended communication system between our products without special setting by using reading writing data of internal device area and monitoring function Dedicated protocol function supported by XGB is as follows e Device individual continuous read e Device individual continuous write e Monitor variable registration e Monitor execution e 1 1 connection Our link system configuration XGB s built in communication function supports Cnet communication without any separate Cnet I F module It must be used under the following instructions 1 Channel O of XGB s main unit supports 1 1 communic
43. device Address to be actually read is entered This must be ASCII value within 16 device characters and in this name digits upper lower case and only is allowable to be entered If the value to be written in MW100 area is H A the data Format must be Data HOOOA If the value to be written in MW100 area is H A the data Format must be HOOOA In data area the ASCII value converted from hex data is entered Example 1 If type of data to be currently written is WORD the data is H1234 ASCII code converted value of this is 31323334 and this content must be entered in data area Namely most significant value must be sent first least significant value last e Device data types of each block must be the same e f data type is Bit the data to be written is indicated by bytes of hex Namely if Bit value is O it must be indicated by HOO 3030 and if 1 by HO1 3031 7 12 Chapter 7 XGT Dedicated Protocol c XGB Response format ACK response ASCII value 3230 H6707 15953 H03 4 Description When command is lowercase r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and added to BCC and sent d XGB Response format NAK response Error code Format name Header ationNo Command Command type Tail Frame check Hex 2 Byte ASCII value OE H3230 H57 77 H5353 H34323532 Description When command is lowercase r o
44. e All of the terms indicating size of all data in the Formatted data area e Monitoring registration and command registration number of execution commands e All contents of data 2 If it is hexadecimal H is attached in front of the number of frames like H01 H12345 H34 H12 and H89AB 3 Available frame length is maximum 256 bytes 4 Used control codes are as follows H06 Acknowledge ACK response frame initial code Not e Acknowledge NAK response frame initial code EOT HO4 End of Text Request frame ending ASCII code at a End Text Response frame ending ASCII code 5 If the command is small letter r BCC value is added in check frame The other side capital letter R BCC value is not added in check frame l 2 Chapter 7 XGT Dedicated Protocol 2 Command frame sequence Sequence of command request frame na ae ENQ Formatted data EOT BCC PLC K omer PLC NAK TEET 7 1 3 List of commands List of commands used in dedication communication is as shown below Ciasstication Command type Treatment ASCII code ASCII code Individual E 5353 Reads direct variable of Bit Byte Word Dword Lword type Reading device H72 Read direct variable of Byte Word Dword Lword with Continuous r R H52 SB 9342 jblockunit Bit continuous read is not allowed T H77 Write data of Bit Byte Word Dword Lword at direct ey es 2209 variable jk H77 Write data of Byte Word Dword Lword at direct Continuous
45. from PC MOSAIC PANE f REGENT f BPE GATE f PE GATE NF f BPEGATE AT HMI PC GLOFA VIEW 7 SEGMENT 7 8EGMENT 7 BEGMENT 7 BEGMENT XGB PLC 7 8EGMENT T BEG ENT T EEGWENT T REGW ENT e RS 422 communication RS 232C communication Figure 3 2 6 7 Segment operating system for RS 422 Twos Module setting XBL C21A XBL C41A PLC Cnet 1 Table 3 2 2 Module setting table per station 3 8 Chapter 3 System Configuration SIN EA SA OUO 3 2 5 Optical modem communication for moving material communication Optical modem communication system for Cnet communication on material above moving linearly P2P communication or dedicated mode communication with monitoring device RS 232C RS 422 communication with optical modem Communication between Cnet I F module is dedicated server client communication gt Optical modem connected with Cnet I F module on mobile body can communicate with the other optical modem only when positioned in communication available Main application Parking tower 1 XGB PLC Cnet 1 Optical a a m oO modem Monitoring device oo RS 232C communication Moving material XGB PLC XGB PLC Cnet 2 RS 422 communication Optical WI L WI RS 232C communication XGB PLC Cnet 3 modem RS 232C communication RS 232C communication Figure 3 2 7 Optical modem communication system 3 9 Chapter 3 System Configuration 3 2 6 W
46. however simultaneous communication of transmission amp receiving isn t available This communication type is applied to RS 485 for instance It is used a lot for multi drop communication type which communicates via one signal line by several stations Half Duplex Communication results from the transmission characteristic performed by stations one by one not allowing simultaneous transmission by multi stations due to the data damage of data impact caused by the simultaneous multi transmission of the stations The figure below shows an example of structure based on Half Duplex Communication Each station in communication with the terminal as linked with each other can send or receive data via one line so to execute communication with all stations where multi sever is advantageously available Client Server Server Server Server 12 Full Duplex Communication Two way communications of simultaneous transmission amp receiving is available This communication type is applied to RS 232C amp RS 422 Since the transmission line is separated from the receiving line simultaneous transmission amp receiving is available without data impact so called as Full Duplex Communication The figure shows an example of structure based on RS 422 of Full Duplex Communication Since transmission terminal of the client station and receiving terminals of the sever stations are connected to one line and transmission terminals of the sever stations are linked with re
47. of power module Power Checking DC current Signal input Start stop circuit Timer setting which DC input signal is configured PLC RUN output Available to start as RA1 NO Mio Start Program SW RAL O CoL cehe MC Stop SW Voltage relay equipped Output for warning Lamp or buzzer Stop by ERR Error Off Output module MC EMC Configure part that IN ERR contact point off lead opposite operation I to output device or breakdown such as e power off interlock circuit j Ad 9 U forward reverse a i Emergencv stop revolution by external i O na fieh stop by limit interlock circuit Mi MEL L Start sequence of power In case of AC DC 1 Run CPU after turning on power 2 Turn on RA2 with DC power supplied 3 Turn on timer after DC power is stable 4 Turn on start switch 5 Turn on start switch Output device runs by program through magnetic contactor MC On 10 4 Chapter 10 Installation and Wiring 3 Fail safe countermeasure in case of PLC error Error of PLC CPU and memory is detected by self diagnosis but in case error occurs in IO control part etc CPU can detect the error At this case though it is different according to status of error all contact point is on or off so safety may not be guaranteed Though we do out best to our quality as producer configure safety circuit preparing that error occurs in PLC and it lead to breakdown or accident System example Input Inpu
48. project window 3 Standard Settings Cnet i Communication settings Channel 1 Type Speed 115200 w Data bit 8 Stop bit 1 Parity bit NONE Modem type Modem Sta n d a rd Initialization H Station Number settings kl Delay time 0 255 10ms L Time out 0 50 100ms Active mode Channel 1 Use P2P settings x Channel 2 Modbus RTU sever Modbus Settings 1 Write setting value as same with Table 8 3 2 at built in communication channel 1 2 Set active mode as Modbus RTU server Modbus Settings Ed Bit read area Address Bit write area Address M O d b US Word read area Address S etti ti g Word write area Address 4 7 1 Bit read area Address POOOOO 2 Bit write area Address M0000 3 Word read area Address P0000 4 Word write area Address M0000 In the Bit read write area Address upper 4 digit is word address and the last digit is bit address P00110 0 bit of P11 word 8 13 Chapter 8 Example Program eS ee Setting method Write parameter standard settings HS link P2P Writing parameter 1 Select Online Write Parameter or click icon 2 Click OK 3 If writing parameter is complete after clicking OK button changed parameter is applied automatically 8 14 Chapter 8 Example Program 8 3 2 Setting of Modbus RTU client Standard setting
49. set among Body segment of Indicates network device allocation transmission group Table 5 2 5 P2P SEND instruction setting item 4 Receive instruction Instruction used to receive the frame among frame sent by destination station You can t select same frame about each P2P Receive instruction block About receipt frame you can determine one receipt instruction block la LH i Driver Setting P2P function coon e ana Sethirig Variable setting contents User frame definition SEND FOL TaB Setting Setting Number 1READ1 MODZ SIE 1 2 1 4 1 User frame definition HELEN E HE Setting Number 75 4VE7 MOO0 7 akhirna Figure 5 2 9 P2P Receive instruction setting screen Designates communication channel Designates receipt frame name Frame already registered at receipt frame Vari Save area Designates internal device to receive Setting available when variable sized abl variable is set among Body segment of Address Indicates network device allocation e receipt group Table 5 2 6 P2P Receive instruction setting item In case of receipt if frame fitting in communication type of designated group each data is received at designated variable sized variable area 5 10 Chapter 5 Communication Function SSS a gg aaa 5 2 5 User defined frame information In case of sending frame the user wants or receiving some frame in network you should define send receive frame It is available in P2P service All fra
50. through making phone call 6 5 Chapter 6 Remote Connection 2 Dedicated modem connection The following figure indicates that PC and Cent module is connected by dedicated modem through dedicated line Rs 2520 Cable Ro 2320 Cable Modem Miodem Dedicated line Figure 6 1 6 XG5000 remote connection example by dedicated modem Figure 6 1 6 is example of dedicated modem connection by dedicated line You can use wireless modem optical modem other than dedicated modem For setting method of modem not using public line it is same with case of dedicated modem and refer to the followings Remote connection sequence by dedicated modem is as follows a Connects PC with dedicated modem at Cnet I F module b Cnet I F module setting connected at remote PLC 1 Sets RS 232C channel of Cnet I F module as XGT server 2 Sets RS 232C channel operation of Cnet I F module as dedicated modem c XG5000 setting 1 Execute XG5000 and select Online gt connection settings and pop up online settings window Here set Connection settings gt Type as Modem Press the Settings button and set communication channel and baud rate set in dedicated modem connected with PC Baud rate should be same with communication speed of dedicated modem Online Settings NewPLC If Details Connection settings l Modem Settings Modem Type Dialup Dedicated Modem settings General Timeout interval Retrial tim
51. to check 9 1 Chapter 9 Diagnosis 9 1 1 Checking status of main unit Check list Detail result OPU Module Information CPU Module information 1 Select Online System Diagnosis or click the icon 2 You can check the status of main unit by clicking CPU module information after clicking main unit 9 1 2 Communication module information Check list Detail result F 2 a fills ows ihe general Infonmathon of commanication module Communication module information 1 Select Online System Diagnosis or click the icon B 2 You can check communication module status by clicking communication module information and click the right button after clicking Cnet I F module and built in communication 3 Meaning of each item of communication module information is as follows Module kind Information of module kind under diagnosis oo Base number Base information of communication module under diagnosis It is fixed as 0 at XGB PLC Slot no of communication module under diagnosis Slot number g In case of built in communication it is fixed as 0 Station number ia no of relevant channel used at dedicated service MW Connection method Information of communication type RS 232C RS 422 of relevant channel Indicates whether hardware of communication module is Hardware error normal or not Hardwareversion Hardwareversion Version of communication module hardware Indicates version of com
52. use built in communication function for 10310000816 User s Manual XGB basic unit and external Cnet I F module XGB Fast Ethernet I F It describes how to use XGB FEnet I F module 10310000873 User s Manual Contents 1 1 General 1 1 1 2 Characteristic 1 2 Chapter 2 Specification 2 l General Sspe iii a lot Assesse ken a A AR aS 2 1 2 2 PeMOlmManGe speCIICAliON asses arsecebensednene sie SPARE pinna 2 3 2 3 Name and FUARCTION ofeach part i G 2 5 3 1 XGB System Configuration 3 1 3 1 1 H type system configuration 20 0022 ne ennn nnn 3 1 3 1 2 S type System Configuration 3 2 3 2 Available System Configuration 3 3 3 2 1 1 1 Connection between PC HMI No modem 3 3 3 2 2 1 1 Dedicated modem connection with PC HMI 3 6 3 2 3 Modem connection with PC and communication between Cnet I F modules 3 7 3 2 4 Dedicated communication with PC HMI and different type RS 422 communication 3 8 3 2 5 Optical modem communication for moving material communication 3 9 3 2 6 Wireless modem communicat
53. with communication in the standard settings the user select slot location to register Cnet I F module and shows Communication module settings window In this window you register Cnet I F module about wanted slot position If you double click at the slot position you can set communication card At this time slot O is set as built in Cnet In case of using Cnet module other than built in Cnet registration is necessary 4 2 Chapter 4 Basic Setting XG PD File Edit View Online Tools Window Help OC m He Het t BBX Qa Hai Project window X c i TESTIXGB XEMS A i Based0 Default 3 E ti TORA Communication Module Settings E Di Empty slot ee 02 Empty slot ee 03 Empty slot l EE 04 Empty slot e 05 Empty slot ie E 06 Empty slot z i SES er l EE N te ta ii Ti Gal Estan H Hio HP XG PD Message wir X PLN Result Parameter check _ _Used address Figure 4 2 2 Cnet module registration screen 4 2 3 How to register Cnet I F module in case of online If you register communication module at online status by using XG PD you should connect basic unit After Online gt Online after doing communication setting by using Connection setting gt Selecting Connection and doing local connection or remote 1 2 connection In case of normal connection lower menu of online is activated selecting Online gt Read IO Information equipped communication mo
54. 1 Isolate the grounding E1 of lightning surge absorber from the grounding E2 of the PLC 2 Select a lightning surge absorber type so that the max voltage may not the specified allowable voltage of the absorber 9 When noise may be intruded inside it use an insulated shielding transformer or noise filter 10 Wiring of each input power should be twisted as short as possible and the wiring of shielding transformer or noise filter should not be arranged via a duct 10 15 Chapter 10 Installation and Wiring 10 3 2 I O Device wiring 1 The size of I O device cable is limited to 0 3 2 mm but it is recommended to select a size 0 3 mm to use conveniently 2 Please isolate input signal line from output signal line 3 I O signal lines should be wired 100mm and more away from high voltage high current main circuit cable 4 Batch shield cable should be used and the PLC side should be grounded unless the main circuit cable and power cable can not be isolated Shield cable 5 When applying pipe wiring make sure to firmly ground the piping 10 16 Chapter 10 Installation and Wiring 10 4 Channel Operation during Normal Run In case of built in Cnet each communication port operates independently to allow simultaneous Tx Rx in separate transmission specifications In case of XBL C21A C41A only one channel is available In case of built in Cnet transmission specifications can be set per RS 232C and RS 422 ch
55. 2 7 Communication is not normal or communication is not executed repeatedly In case of multi drop 1 eae if oe with More than one server o check if it works panes TAD 2 Take interlock for servers to sends frame simultaneously Connection error of wiring communication line Communication is not normal In case of RS 485 Half l l or communication is not duplex non Increase delay time of client and executed repeatedly coincidence of timing of server TRX signal 1 When transmission is not complete it requests next process of transmission Use handshake in program 2 When reception is thoroughly not complete it requests next process of reception Change cable or check connection of cable 9 8 Chapter 10 Installation and Wiring Chapter 10 Installation and Wiring 10 1 Safety Instruction Danger Please design protection circuit at the external of PLC for entire system to operate safely because an abnormal output or an malfunction may cause accident when any error of external power or malfunction of PLC module 1 It should be installed at the external side of PLC to emergency stop circuit protection circuit interlock circuit of opposition action such as forward reverse operation and interlock circuit for protecting machine damage such as upper lower limit of positioning 2 If PLC detects the following error all operation stops and all output is off Available to hold output according to paramet
56. Example This example supposes that 2 byte H AA15 is written in DOOO of station No 1 1 PC request format PC XGB Station Comman l Number of i Length Frame ENQ H01 W w SB HOG DWO000 H01 HAA15 EOT BCC Example H2544573030 ASCII value H05 H3031 H57 77 H5342 H3036 30 H3031 H41413135 HO4 2 For ACK response after execution of command PC XGB 3 For NAK response after execution of command PC lt XGB Frame Example Error code 2 ASCII value H15 3031 H57 77 H57 77 O H5342 Error code Error code 4 7 15 Chapter 7 XGT Dedicated Protocol 5 Monitor variable register X a Purpose Monitor register can separately register up to 16 from O to 15 in combination with actual variable reading command and carries out the registered one through monitor command after registration b PC request format ESaC NAIC Head Station Comma Registratio Registration Tail E CHECK er No nd n No format Frame Refer to Example ENQ H10 X x HO9 registration EOT BCC format ASCII value H3130 H58 78 H3039 Refer to 1 PI Hod fo ltem Description When command is lowercase x only one lower byte of the value resulted by BCC adding 1 byte each to ASCII values from ENQ to EOT is converted into ASCII added to BCC This can be registered up to 16 0 to 15 HOO HOF and if an already registered No is registered again the one currently being executed is regis
57. H4D H57 H31 H30 H3 0 H04 H03A4 Therefore BCC value is A4 This specifies how much of the blocks composed of device length device name are in this request format This can be set up to 16 Therefore the value of Number of blocks must be set between H01 ASCII value 3031 H10 ASCII value 3030 Number of Blocks Device This indicates the number of name s characters that means device which is length allowable up to 16 characters This value is one of ASCII converted from hex type and the range is from HO1 ASCII value 3031 to H10 ASCII value 3130 For Length of example if the device name is MWO it has 4 characters to be HO4 as its length device If MWO000 characters to be HO6 name Address to be actuallv read is entered This must be ASCII value within 16 characters and in this name digits upper lower case only is allowable to be entered Device name H of example frame represents hex value and is unnecessary during preparing real frame 7 6 Chapter 7 XGT Dedicated Protocol c XGB response format ACK response Format name Header Station No Command Command type moer un en data Tail frame of blocks data check ASCII value HO6 H3230 H52 72 __H5353_ H3031 H3032 H41394633 HO4 1 block max 16 blocks possible Description When command is lowercase r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ACK to ETX is converted into A
58. LED Output indication LED Indicates basic units operation status PWR Red power status indication D Status indication LED RUN Green RUN status indication STOP mode Off RUN mode On Error Red flicker in case error occurs Built in RS Built in RS 485 connection terminal block 232C terminal connection terminal block of RS 485 8 1 RS 485 communication Connection TD RD SG terminal connection terminal block of RS terminal block 232C communication 8 2 Power terminal AC100 240V power terminal block Battery holder Battery 3V holder Mode switch Program mode and O S download mode selection switch eel e felelele lola Chapter 2 specification SSS Tj Extension Cnet module XBL C41A XBL C21A Operation status indication RS 422 RS 485 Connector for connection with external device connector Connector for connection with external device LED indication content LED status LED status content On Normal operation RUN Operation status indication Abnormal operation i Interface with main unit status Normal operation indication Abnormal operation Transmitting frame TX Indication during frame transmission Frame transmission completion Flicker Receiving frame Indication during frame receiving Off Frame reception completion Oo Frame error Frame error indication Normal frame Table 2 3 1 LED indication content 2 Chapter 3 System Configuration sss j__J_J_xx Q 5 Q
59. LI ti Trans A Fuse Fuse T Fi CPU CPU F0045 DC power F0045 N 5 CI H Pm F009 ki FOO9C Pm Timer setting P ee PLC RUN output Pm which DC input switch pica Start available as Tm signal is oe RAL RA1 TM configured D Co n01r 1 kut ME ET sw Input module 5a n o Proaram Output for warning i ae mn EM T j Lamp or buzzer oi n MD Output module d ML a Voltage relav equippe jU etal RUN by FOO9C quipp 14L if amp Power off to output device Emergency stop Output module Stop by limit Configure part that lead opposite operation or breakdown such as interlock circuit forward reverse revolution by external interlock circuit Start sequence of power In case of AC Turn on power Run CPU Turn on start switch Output device runs by program through magnetic contactor MC On Output for warning Lamp or buzzer e o 7 Run by FOO9C FI u Rat Power Off to output device Emergency stop stop by limit switch Start sequence of power In case of AC DC Run CPU after power is on 1 Turn on RA2 as DC power on Turn on timer after DC power is stabilized Turn on timer after DC power is stable Turn on start switch Output device runs by program through magnetic contactor MC On 2 3 4 9 Chapter 10 Installation and Wiring 2 System design circuit example In case of using ERR contact point
60. NOISNY dxd 4 MADE IN KOREA A 17 Warranty 1 Warranty Period The product you purchased will be guaranteed for 18 months from the date of manufacturing 2 Scope of Warranty Any trouble or defect occurring for the above mentioned period will be partially replaced or repaired However please note the following cases will be excluded from the scope of warranty 1 Any trouble attributable to unreasonable condition environment or handling otherwise specified in the manual 2 Any trouble attributable to others products 3 Ifthe product is modified or repaired in any other place not designated by the company 4 Due to unintended purposes 5 Owing to the reasons unexpected at the level of the contemporary science and technology when delivered 6 Not attributable to the company for instance natural disasters or fire 3 Since the above warranty is limited to PLC unit only make sure to use the product considering the safety for system configuration or applications Environmental Policy LS Industrial Systems Co Ltd supports and observes the environmental policy as below Environmental Management About Disposal LS Industrial Systems considers the LS Industrial Systems PLC unit is designed environmental preservation as the to protect the environment For the disposal preferential management subject and every separate aluminum iron and synthetic resin staff of LS Industrial Systems use the cover from th
61. SCII and added to BCC and sent Number of data means byte number of hex type and is converted into ASCII This number is determined according to data type X B W included in device name of computer request Format e Number of data in accordance with its data type is as follows Number of data x R area is supported at XBC DXXXH e In data area there are the values of hex data converted to ASCII code saved Example 1 The fact that number of data is HO4 ASCII code value H3034 means that there is hex data of 4 bytes in data Hex data of 4 bytes is converted into ASCII code in data Example 2 If number of data is H04 and the data is H12345678 ASCII code converted value of this is 31 32 33 34 35 36 37 38 and this contents is entered in data area Name directly highest value is entered first lowest value last If data type is Bit data read is indicated by bytes of hex Namely if Bit value is O it indicated by HOO and if 1 by HO1 Chapter 7 XGT Dedicated Protocol d XGB response format NAK response Format name Bee Ea Command Command type Error code Tail Frame check aoe a MAMMA Explanation m _ command is lowercase r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC Hex and 2 bytes ASCII code 4 bytes indicate error type Refer to 10 1 4 XGT dedicated Error code IM communication error codes and
62. Save area click OK 1 Read area device address saved in server 0x00021 2 Save area device address of client to save M170 1 Variable Setting Variable Read area Save area Address 1 010040 M1800 NODOZI Setting of reading operation 4 b Read 0 15 bit of M10 of server and save it at 0 15 of M180 of client 1 Ch Conditional flag Command type Data type Destination station no same with step 8 2 P2P function select READ 3 Setting after setting Read area and Save area click OK 1 Read area device address saved in server 0x100A0 2 Save area device address of client to save M180 0 Chapter 8 Example Program Setting method Write parameter standard settings HS link Pary Writing parameter 13 1 Select Online Write Parameter or click icon 2 Click OK 3 If writing parameter is complete after click OK changed parameter is applied automatically Enable Link HS Link P2P a D Test S E High speed Link CIS High speed Link 01 CIE High speed Link 02 3 H P2P j P2 01 mom rez P2P 03 Enabling 14 the link 1 Select Online Enable Link or click icon 2 Click the P2P to enable and click Write 8 19 Chapter 8 Example Program 8 4 User defined Communication Example 8 4 1 User defined communication example system configuration When communication with device of which protocol is not supported by Cnet I F module client how to use user defin
63. Standard Information of base number under diagnosis information Slot number Information of slot number under diagnosis Link type Type of communication module under diagnosis P2P Bae service parameter Indicates whether P2P parameter exists or not intetmenen Indicates the P2P driver by port P2P service Driver type y P XGT Modbus User definition frame Only block under operation is indicated Detailed information Multiple reading Refresh Check the P2P service status when refresh is done gt Service status code It is used to check whether Cnet I F module is normal or not a a Error of RX frame head Error of max station number There is no ACK NAK Available range 0 31 ae of RX frame tail 5 Time aul There is no tail zai Modbus address error soosmorotnxtame soosmorotnxtame of RX frame FFFE 2 Commands except Read Write are used Station number of RX frame is different with self number Self station number OA Incase of no get response from CPU RX l size exceeds the modbus max l size RX frame is RX frame is not Modbus ASCIVRTU Modbus RX frame is not Modbus ASCIVRTU HEX conversion error in Modbus 9 9 Chapter 9 Diagnosis 9 2 Trouble Shooting by Error 9 2 1 Trouble shooing when P2P parameter setting error occurs in case of XG5000 connection P2P setting error warning in case of XG5000 connection 1 In Enable Link menu of In case of enabling XG5000 c
64. XG PD and when not using modem it must be set to null modem Note1 DTE Data Terminal Equipment Cnet I F module Note2 DCE Data Communication Equipment external modem 10 18 Chapter 10 Installation and Wiring 1 How to connect RS 232C connector during modem connection XBL C21A This module can communicate with devices of long distance as connected with modem Modem and RS 232C channel shall be connected as in Figure 10 5 2 below Cnet 9 PIN Modem side 25 PIN Connection No and signal direction Pin No CD RI Note Figure 10 5 2 Cable Connection between RS 232C and Modem Note No 9 RI signal is not used in XBL C21A I F module 2 How to connect connector for RS 232C in null modem mode In null modem mode the connector can be connected in 3 line type as below Cnet 9 PIN Computer communication Connection No and signal direction devices Figure 10 5 3 3 line Type of Connection no handshake 10 19 Chapter 10 Installation and Wiring 10 5 2 RS 422 485 interface Built in communication Built in communication channel RS 232C RS 485 uses 5 pin connector Terminal Block for communication with external devices The names and functions of pins and data directions are as shown in Figure 10 5 4 below Signal direction Pin no Name Content Cnet I F module Function description gt external device Para signal lt gt Built in RS 485 mene aeea OO Sd re se sig
65. _____ Chapter 9 Diagnosis With XG PD used the status of the system and the network can be checked and diagnosed Diagnosis function is composed as described below gt CPU module information gt Communication module information gt Frame monitor gt Status by service 9 1 Diagnosis Function of XG PD How to diagnosis system and network status by XG PD system diagnosis are described below Connect XG PD to loader port of main unit and if you select Online gt System Diagnosis the following window Is created P XG PD Online System diagnosis E File Edit View Online Tools Window Help Project window x TEST XGB XEMS i P2P 01 B050 Cnet P2P Channel EB P2P Block ee ee a A EEEn User frame definition f DRS Transmission ig HEAD Detailed Module Information ar ken Frame Monitor status By Service m Once i FTI Lm od fa olo 2 We a BI h P2P 01 System diagnosis Sm tl Base 0 XGE MOSA Ele CPU XGB XBMS Elf Slot 0 Intemal Cnet i Fel m a See Rea ili la XG PD Message wir X 41415 bi Result A Parameter check A Used address f L RS 232C Error Warnin m Online Module infor X i cL Figure 9 1 1 System diagnosis window e Select Online System Dianosis and click the icon e Click the right button on the the relevant module and click Frame Monitor or Status By Service
66. acteristics impedance 10 6 2 External characteristic Standard Size awe l2 Conductor Composition Nom ___ 7 0 254 Outer dia m oe Thickness m oso Insulator Table 10 6 1 Cnet twisted pair cable standard Conductor Insulator AL MYLER TAPE Ground line Braided Sheath Figure 10 6 1 Structure Chapter 10 Installation and Wiring 10 7 Terminal Resistance In case of using RS 422 485 1 For communication via RS 422 RS 485 channel terminal resistance from external must be connected 2 Terminal resistance has the function to prevent distortion of signal by reflected wave of cable for long distance communication and the same resistance 1 2W as characteristic impedance of cable must be connected to terminal of network 3 When using the recommended cable in 10 6 connect terminal resistance of 12002 to both ends of cable Also when using other cable than recommended the same resistance 1 2W as characteristic impedance of cable must be connected to both ends of cable b Terminal Resistance 1 2W 1200 tolerance of 5 1 How to connect terminal resistance in case of RS 422 Figure 10 7 1 Terminal resistance connection diagram in case of RS 422 2 How to connect terminal resistance in case of RS 485 Figure 10 7 2 Terminal resistance connection diagram in case of RS 485 10 A Chapter 11 Maintenance Chapter 11 Maintenance Be sure to perform daily and periodic main
67. annel and the operation is started and stopped according to channels Data flow of each channel is as below RS 232C channel SCA K Figure 10 4 1 Data Flow of Each Channel Note1 For mode change during RUN download parameter by using XG PD Though you don t reset the PLC if download is complete changed mode is applied 10 17 Chapter 10 Installation and Wiring 10 5 Communication Interface Connection Method 10 5 1 RS 232C Interface XBL C21A Channel RS 232C uses 9 pin connector Female for communication with external devices The names and functions of pins and data directions are as shown in the figure below Signal Direction Pin No Name Contents Cnet I F module Description external yr eres Carrier Detect 74 Reports carrier detection of DCE to DTE RxD Received Data Received data signal To Transmitted Data 8 Transmitted data signal Note1 t DTR Data Terminal Reports ready communication of DTE O Ready DCE 6 DSR pata Set Ready a Reports ready communication of DCE to DTE 8 CTS ClearToSend J gt _ DCEasksDTEtosenddata ___ _ 9 RI Ring f _ Reports ringing tone received from DCE to DTE Figure 10 5 1 RS 232C 9 pin Connector Standard Channel RS 232C can communicate with external devices directly and also with remote communication devices using modem When connecting modem communication type of RS 232C must be set to modem with
68. ation only For 1 N system having master slave Format use RS 485 communication in channel 1 or XGB s main unit with XGL C41A module connected XGL C41A module supports RS 422 485 protocol 2 RS 232C communication cable for XGB s main unit is different from RS 232C cable for XG5000 XG PD in pin arrangement and from the cable for Cnet I F module too The cable can t be used without any treatment For the detailed wiring method refer to configuration of respective communication 3 It s possible to set baud rate type and station No in XG5000 XG PD l 1 Chapter 7 XGT Dedicated Protocol 7 1 2 Frame structure 1 Base format a Request frame external communication device XGB Header Station Command Command GA EEI AL are Tail Frame check ENQ number type EOT BCC b ACK response frame XGB external communication device when receiving data normally Header Station command Command Structurized data area or Tail Frame check ACK number type Null code ETX BCC c NAK response frame XGB Cnet I F module external communication device when receiving data abnormally Header Station la Tail Frame check NAK lie e ee ee 1 The numerical data of all frames are ASCII codes equal to hexadecimal value if there s no clear statement The terms in hexadecimal are as follows e Station No e When the main command is R r or W w and the command type is numerical means a data type
69. ation test 2 Diagnosis function Describes about self diagnosis by XG PD Install a eee Describes installation and wiring wiring Maintenance Deseribes maintenance maintenance TA Describes term used in this manual App 2 Flag list Describes parameter setting N area flag L related with Cnet I F Communication error App 3 Describes XGT server modbus server P2P error code App 4 Describes dimension of communication module Chapter 1 General 1 2 Characteristic 1 By using XG PD operated in window environment since the user can write communication speed communication mode protocol connection with external device is easy RS 232C 1 port RS 485 1 port as main unit built in Cnet is supported Two type of Cnet I F module as extension RS 232C 1 port XBL C21A RS 422 485 1port XBL C41A is provided It operates independently according to channel since protocol data written by user is managed by main unit in case communication module is changed other than communication module additional setting download is not necessary Device read write by using XGT dedicated modbus user defined protocol is available It provides communication function in which multidrop up to 32 connection is available in case of using RS 422 485 Setting of diverse communication speed is available 1200 2400 4800 9600 19200 38400 57600 115200bps 1 1 and 1 N communication is available With abundant self diagnosis trouble diagnosis i
70. ceiving terminal of the client station the communication between sever stations is unavailable with the restricted function of multi sever A 5 Appendix 1 Definition of Terms 13 BCC Block Check Character As serial transmission may have signals distorted due to undesirable noise in transmission line BCC is used as data to help receiving side to check the signals if normal or distorted and to detect errors in signals as compared with the received BCC after calculating BCC by receiving side itself using the data input to the front terminal of BCC 14 XG5000 service This is the function to remotely perform programming reading writing user s program debugging and monitoring etc without moving the physical connection of XG5000 in the network system where PLC is connected to Cnet I F module Especially it is convenient to control a remote PLC via modem Rs 232C Cable AS 232C Cable Public Public network line Relay station network line XG5000 Programming software of XGT PLC for Windows A 6 Appendix 1 Definition of Terms EEE 15 Frame Frame is composed of transmitted and received data as in a specified form in data communication including additional information of segments station No command parameter by command control characters ENQ ACK EOT ETX for synchronization parity for detecting error and BCC The structure of frame used for serial communication of Cnet is as follows Request
71. communication error between PLC CPU and external device adding installing interlock circuit at the PLC program 10 1 Chapter 10 Installation and Wiring o N Danger gt Don t close the control line or communication cable to main circuit or power line Distance should be more than 10mmm It may cause malfunction by noise gt In case of controlling lamp load heater solenoid valve etc in case of Off gt On large current 10 times of normal current may flows so consider changing the module to module that has margin at rated current gt Process output may not work properly according to difference of delay of PLC main power and external power for process especially DC in case of PLC power On Off and of start time For example in case of turning on PLC main power after supplying external power for process DC output module may malfunction when PLC is on so configure the circuit to turn on the PLC main power first Or in case of external power error or PLC error it may cause the malfunction gt Not to lead above error to entire system part causing breakdown of machine or accident should be configured at the external of PLC 10 2 Chapter 10 Installation and Wiring 10 1 1 Fail safe circuit 1 example of system design In case of not using ERR contact point of power module In case of AC In case of AC DC Power m Check direct current Signal input ba ELI Trans INg LL
72. countermeasures e Example XGB main unit This example supposes when 1 WORD from M20 and 1 WORD from P001 address of station No 1 are read At this time it is supposed that H1234 is entered in M20 and data of H5678 is entered in POO1 1 PC request format PC XGB l IF Format name Header i C i Sanii DUN Wes Variable name Device Variable name Tail kallu omman blocks length ena check d type ell moma RT See oe ae TESTES ASCII value H3031 H52 72 H5353 H3032 H3036 d i ib is H3036 a maj 2 For ACK response after execution of command PC XGB sa Command Number of Number of Number of Frame Format name Header Data Tail type blocks data data al nee EA e e e S H3032 ASCII value ja H52 72 H5353 H3032 H3032 H31323334 H35363738 Hos 3 For NAK response after execution of command PC XGB aa taet a ta Te Error code 2 Byte ASCII value H3031 H52 72 H5353 Error code 4 Byte HO3 7 8 Chapter 7 XGT Dedicated Protocol 2 Direct variable continuous reading R r SB a Purpose This is a function that reads the PLC device memory directly specified in accord with memory data type With this data is read from specified address as much as specified continuously b PC request format name d ca check faie modal H3130 H52 72 H5342 H3036 ful H3035 value 3030 e Number of data specifies the number to
73. d Write data size in PLC run mode Nomal Maximum Send maximum data size in stop mode 1 Select Online Connection settings or click icon 2 After setting the connection option according to user click the connection D Reading IO Select Online Read IO Information and click icon B information IO information of currently mounted is shown on the project window Standard Settings Cnet Communication settings Channel 1 B 1 NONE Null Modem Standard Initialization settings Station Number Delay time 0 255 10ms Time out 3 0 50 100ms Active mode Channel 1 Channel 2 Use P2P settings 1 Select XBL C21A and set standard setting at channel 2 to be same with setting described in Table 8 2 1 2 In case of acting as client station setting doesn t have the meaning so set temporary station 0 31 3 When acting as client active mode should be Use P2P settings 8 8 Chapter 8 Example Program After standard settings P2P channel and P2P block should be set Setting methods are as follows Setting method P2P setting P2P bottom of project window Co m m u n ic Communication Module Settings ation Tee oe x module settings di w EJ 1 Double click of project window P2P 01 is fixed as built in communication module 2 Select slot number no 1 acting as client and press OK P2P Channel Set
74. dem means communication speed between modem and modem it is set automatically according to quality of public line and destination modem s speed For XG5000 remote connection at XGB PLC you should use RS 232C channel At communication standard setting set RS 232C dial up modem and write it to XGB Cnet I F module 3 Phone number means phone number of modem side connected with Cnet I F module in case of going out from local through extension line you can use extension number and symbol Ex In case extension number is 9 set as 9 0343 398 xxxx In case modem connected with Cnet I F module of destination station is through tandem center communication is impossible Namely there is extension number for reception station dial up modem communication is impossible 4 In case of selecting connection step as remote 2 like the following select base and slot number of remote 1 communication module in detail and communication module station number of remote 2 Inputs station number set in Cnet I F module In case of Cnet channel selects communication channel of remote 2 6 3 Chapter 6 Remote Connection Remote 2 Communication la al module Public line Public line Tandem center Details Tara Remote 2 Network type XGL Cnet Remote 1 communication module Base number Cnet channel Channel 1 Remote communication module Station number E
75. dule is searched automatically XG PD File dit View Online Tools Window Help D g g B Disconnect S288 S808 Project window g B TEST LED B a th Write Parameter Standard Settings HS Link P2P 0 a Read Parameter Standard Settings HS Link P2P 9 0 5 29 0 4 Enable Link HS Link P2P E E pE ED p 0 System Diagnosis Reset L E stan E Hoh Pa x fa w Q ai a u a d 0 Figure 4 2 3 Cnet I O information read screen 4 3 Chapter 4 Basic Setting At this time in case registered module is different with currently connected module or type of communication module in the previous project it shows whether it changes or not with the following message A There is no module information in based sloti Change Figure 4 2 4 I O information change message If you execute Read IO Information equipped communication module like the following is indicated IO module information window File Edit View Online Tools Window Help DHS Qecji ex HRA OE SeartAB EMB Projet window f TESTIXGB XEMS S E Base00 Default 4 00 Embedded Cnet 3 01 Empty slot 3 02 Empty slot 03 Empty slot 5 04 Empty slot 05 Empty slot 06 Empty slot 3 07 Empty slot l BI Stan E High P2 XG PD Message wir X 14114 gt PL Result A Parameter check _ _Used address_ l L RS 232C Error Fig
76. e Frame Example ENQ HOT ASCII value Se H58 78 H3031 ie H3031 H3036 2 For ACK response after execution of command PC XGB H3031 H58 78 H3031 HO3 3 ForNAK response after execution of command PC XGB e xo HOt eroro eT BCC 7 17 Chapter 7 XGT Dedicated Protocol 6 Monitor execution Y a Purpose This is a function that carries out the reading of the variable registered by monitor register This also specifies a registered number and carries out reading of the variable registered by the number b PC request format aia ns oF ASCII value H3130 H59 79 H3039 Register Register No uses the same number registered during monitor register for monitor No execution It is possible to set from 00 09 H00 H09 When command is lower case y only one lower byte of the value resulted by BCC adding 1 byte each to ASCII values from ENQ to EOT is converted into ASCII added to BCC c XGB Response format ACK response 1 In case that the register Format of register No is the Individual reading of device Formatname Header eel Command aN ee Number of data Data Tail f Frame check No No Blocks T Te ASCll2t H3130 H59 79 H3039 H3031 H3032 H39313833 PHOS 2 In case that the register Format of register No is the continuous reading of device Number of Frame Example H9183AABB 83AABB ECH 1 414142 ASCII value Hoe H3130 H59 79 H3039 H3034 ii d
77. e IN Ten Data Tail aame E E EE E eee RR E imla 7 10 Chapter 7 XGT Dedicated Protocol 3 For NAK response after execution of command PC XGB Tasolvawe H15 P3041 He2 72 _H5842 _Errorcode Byte Ho __ Chapter 7 XGT Dedicated Protocol 3 Individual writing of device W w SS a Purpose This is a function that writes the PLC device memory directly specified in accord with memory data type b PC request format Format name Header Station No IENI y Aigara Bee Device Name Data came Command blocks Length Tail ae Frame ET MW100 HOOE2 H254D573130 ASCII value FATT H3230 H57 77 H5353 H3031 H3036 Spa H30304532 et 1 block setting can be repeated up to max 16 blocks Description When command is lowercase r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and added to BCC This specifies how much of the blocks composed of device length device Number of name are in this request Format This can be set up to 16 Therefore the value picke of Number of blocks must be set between HO1 ASCII value 3031 H10 ASCII value 3030 Device This indicates the number of name s characters that means device which is allowable up to 16 characters This value is one of ASCII converted from hex Name length of type and the range is from H01 ASCII value 3031 to H10 ASCII value 3130 Length
78. e out 0 50 100ms Active mode Channel 1 Channel 2 XGT server Figure 6 1 10 Cnet I F module XG PD setting of remote PLC 6 8 Chapter 6 Remote Connection J Tj b Cnet I F module setting connected at local PLC 1 Converts local connected PLC to Stop mode Basic parameter of remote server connected through XG5000 should be set as server In case of remote client it should be set as P2P client In case there are many communications if you try to remote connection you may fail Be sure to convert local PLC to stop mode and stop communication before remote connection 2 XG PD setting a Set active mode of RS 232C of Cnet I F module at XG PD as Use P2P settings b Set modem type of Cnet I F module RS 232C as dedicated modem Standard Settings Cnet Communication settings Channel 1 Type Speed Data bit Stop bit Parity bit Modem type Dedicated Modem B Modem I T Initialization Station Number 1 Delay time 0 255 10ms Time out 0 50 100ms Active mode Channel 1 Channel 2 Use P2P settings v Figure 6 1 11 Cnet I F module XG PD setting of local PLC 3 XG5000 a Execute XG5000 and select Online Connection Settings and set connection method Select Type as RS 232C and communication channel This is same in case of local connection Online Settings NewPLC Connection settings Type
79. e product as they are reasonable endeavors for the pleasurably reusable environmental preservation of the earth
80. e transmission frame Reception it changes received data to Hex and save it 5 14 Chapter 5 Communication Function Add segment Form Variable sized variable Assign memory Conversion Swap Figure 5 2 18 Segment variable sized variable conversion setting screen When configuring transmission frame it uses 2 words of PLC memory M100 and in case of changing Hex to ASCII in case h34353637 is saved M100 each segment of transmission frame changes into h4567 And in case of changing part of received frame to Hex and saving it if each area is h4567 it is converted and h34353637 is saved B Swap u 2 byte 2 byte swap relevant part among IX RX frame u 4 byte 4 byte swap relevant part among IX RX frame u 8 byte 8 byte swap relevant part among IX RX frame If swapping h1234567811223344 by each method it changes like the followings 2 byte swap 0x3412785622 114433 4 byte swap 0x 8563412443322 11 8 byte swap Ox44332211 8563412 5 Transmission frame To send frame you should register wanted transmission frame In case of not using P2P XGT client and user defined frame the following is example writing 4 word data from M100 to destination station 0 TX TX Frame Head Body Variable Frame 0x05 wSB 06 MW100 sized variable Byte Hex To Numerical i i String String Numerical Checksum Reference ASCII constant constant constant constant constant constant ASCII Conversion conversion
81. ed communication is described in the system like Figure 8 4 1 below e System configuration RS 485 9600 8 1 None User defined communication CELESTI Cn m mehom FEFEETEF Figure 8 4 1 User defined communication system configuration At this example Cnet I F module and partner device to communicate through user defined communication system configuration are as Table 8 4 1 DC Eer Main unit Main unit XBC DN32H bine Han Young FEM DE VENUE controller xNote2 Sa wan Built in RS 485 PX7 TE User frame definition PC Link Wi RS 485 RS 485 aes 9 600 9 600 Data bit BB Sop bi Stationno Od Reads present value and setting value from temperature controller every p second and saves present value at MB200 and setting value at MB210 Table 8 4 1 User defined communication system configuration Note1 Delay time is set to prevent from frame error when communication with device of which response is slow in case of RS 422 485 communication It varies according to partner device and it has 50 100ms value generally Chapter 8 Example Program 8 4 2 User definition communication frame structure Frame structure of PC Link communication protocol of Han Young used in this example is as follows e Frame of temperature controller is executed as ASCII character string it can read write defined D Register There are two protocols STD standard protocol and SUM protocol adding Check Sum to standard type and protoco
82. ed with PLC setting 1 Sets active mode of RS 232C channel of Cnet I F as XGT server at XG PD 2 Sets Modem type of Cnet I F module RS 232C as Dial up modem and inputs atz in Modem Initialization Standard Settings Cnet Communication settings Channel 1 Channel 2 Type RS232C Speed Data bit Stop bit Parity bit NONE kud Modem tvpe Dial up Modem wt Modem Initialization Station Number Delay time 0 255 10ms Time out 0 50 100ms Active mode Channel 1 Cancel Figure 6 1 2 XG PD setting example b XG5000 setting 1 Execute XG5000 and pop up online settings window by selecting Online gt Connection settings Here selects Connection settings gt Type as Modem Online Settings NewPLC f fx Connection settings Type Settings General Timeout interval Retrial times Read Write data size in PLC run mode Send maximum data size in stop mode Figure 6 1 3 Modem connection setting screen of XG5000 6 2 Chapter 6 Remote Connection 2 Select settings of Connection settings and set detail of modem Details Modem Modem Type e Dial up Dedicated Modem settings Port number COMI Baud rate 19700 Phone number 0415508114 Omit Station number 3 E Figure 6 1 4 Modem detail setting screen Baud rate in modem settings means communication speed between PC and modem not communication speed of modem Baud rate of mo
83. er 5 Communication Function SSS a gg aaa 5 1 2 XGT dedicated server It is used in case of communication between our products by our dedicated service all characters are configured as ASCII code In case of using multi drop up to 32 stations can be connected In case of setting station number duplicated station number should not be set In case of using multi drop communication speed stop bit parity bit data bit of all Cnet I F module in network should be same For more detail protocol refer to chapter 7 XGT dedicated protocol 5 1 3 Modbus server It is used in case partner device acts as Modbus client ASCII mode and RTU mode of Modbus are all supported You can define in standard settings active mode Standard Settings Cnet Communication settings Channel 1 Channel 2 Type R5485 ka Speed Data bit Stop bit Parity bit Modem type Modem Initialization Station Number Delay time 0 255 1Oms Time out 0 50 100ms Active mode Channel 1 Channel 2 eee Modbus Settings Figure 5 1 1 Modbus server standard settings screen Modbus instruction and response data max number which is supported by Modbus RTU ASCII driver are as follows Other client device should request in the range of the following table 5 2 Chapter 5 Communication Function M f Read Read Coil Status Status OXXXX 2000 2000Cols Read Input Status 1XXXX 2000 Coils Read Holding Registers AXXXX 125 Regis
84. er setting a When over current protection equipment or over voltage protection operates b When self diagnosis function error such as WDT error in PLC CPU occurs b In case of error about IO control part that is not detected by PLC CPU all output is off Design Fail Safe circuit at the external of PLC for machine to operate safely Refer to 10 2 Fail Safe circuit 1 Because of error of output device Relay TR etc output may not be normal About output signal that may cause the heavy accident design supervisory circuit to external gt In case load current more than rating or over current by load short flows continuously danger of heat fire may occur so design safety circuit to external such as fuse gt Design for external power supply to be done first after PLC power supply is done If external power supply is done first it may cause accident by misoutput misoperation gt In case communication error occurs for operation status of each station refer to each communication manual gt In case of controlling the PLC while peripheral is connected to CPU module configure the interlock circuit for system to operate safely During operation in case of executing program change operation status change familiarize the manual and check the safety status Especially in case of controlling long distance PLC user may not response to error of PLC promptly because of communication error or etc Limit how to take action in case of data
85. ernal device area 5 3 Chapter 5 Communication Function y Since address of Modbus 1 9999 decimal number size of bit IO area is 9999 8 1249 875 byte Namely 1249 byte should be integer unit Also size of word IO area is 9999 2 19998 byte In case the user set O as base address of bit output OXXXX area Modbus bit area 00001 corresponds 0 byte 0 bit 00002 corresponds 0 byte first bit 5 2 P2P Service 5 2 1 General P2P service means acting client operation of communication module P2P instructions available at Cnet I F module are 4 Read Write Send Receive Registration and edit of P2P service is executed in XG PD each P2P parameter consists of max 32 P2P block The following figure is example of P2P parameter setting window of XG PD Fl XG PD P2P block settings P2P 01 File Edit View Online Tools Window Help He 2c Bex Project windows x BY PMC M D Cret Index Ch Driver Setting P2P function eons e Command ta Data type a B La MI GT client WRITE FOQS2 Single 2 BYTE 1 P2P Block l L T 2 GT client WRITE FODSZ Single 2 BYTE 1 Fi User frame definition a PA O2 E PA 03 al lt El Stan E High Tal Pa i PJP 01 x Parameter check Used address l XG PD Message wir L RS 232C ErroryWarnin Figure 5 2 1 P2P parameter setting example N1 P2P 01 is fixed allocated at built in communication P2P 02 for first communication module P2P 03 for second communica
86. es Read Write data size in PLC run mode Send maximum data size in stop mode Port number COMI mg Phone number 35508311 Omit 7 Station number Cancel Figure 6 1 7 dedicated modem setting screen Chapter 6 Remote Connection 2 In case of setting depth as remote 2 set settings related with remote 1 2 at the Detail window like the followings Details Modem Remote 2 Network type Remote 1 communication module Base number Slot number Cnet channel Remote 2 communication module A Station number IP address Figure 6 1 8 dedicated modem remote 2 setting screen 3 After completing setting if you click connection of connection setting XG5000 tried remote connection In case remote connection is complete it is same when connection is established by RS 232C cable Here you can use all functions of Online menu After remote connection you can use online menu of XG5000 like local connection You can use program download upload monitor etc PLC control through modem is affected by capability of modem and status of telephone line In case telephone line is bad connection may be canceled At this time don t try reconnection instantly wait for 30s and retry again from step 1 d In case you want to disconnect remote connection select disconnect at online menu Disconnection menu box shows and remote connection is disconnected e If disconnection is done
87. et I F module can define three parity bits Meaning of each parity bit is as follows If the number of 1 in one byte is even parity bit becomes 0 a If the number of 1 in one byte is odd parity bit becomes 1 IMI Table 4 3 2 Parity content table Operation mode setting Sets operation E E E Drivertype Drivertype Reference E port acts as client and executes the communication on setting bv setting P2P parameter reference It acts as XGT server supporting XGT dedicated XGT server Dedicated service communication Modbus Modbus ASCII server It acts as Modbus ASCII server communication Modbus Modbus RTU server It acts as MOdbus RTU server communication Table 4 3 3 operation mode setting item 4 3 2 Setting method You should do like following to operate Cnet I F module according to communication specification defined by user In case of setting like the followings about XBL C41A RS 422 485 1 port installed slot 2 setting method is as follows 1 Communication specification E Channel 2 RS 422 38400Bps 8 1 Odd Null modem P2P 2 station delay time 10 ms Executing XG PD you register communication module Cnet for setting at each slot position After Cnet module is registered if you double click Cnet module the following standard setting window shows 4 7 Chapter 4 Basic Setting Standard Settings Cnet Communication settings Channel 1 Type Speed Data bit
88. f IO module specification For input module be cautious about input voltage for output module if voltage that exceeds the max open close voltage is induced it may cause the malfunction breakdown or fire b Used wire When selecting wire consider ambient temp allowed current and minimum size of wire is AWG22 0 3mm or above c Environment In case of wiring IO module if device or material that induce high heat is too close or oil contacts wire too long time it mav cause short malfunction or error d Polaritv Before supplving power of module which has terminal block check the polaritv e Wiring e In case of wiring IO with high voltage line or power line induced obstacle mav cause error e Let no cable pass the IO operation indication part LED You can t discriminate the IO indication e In case induced load is connected with output module connect the surge killer or diode load to load in parallel Connect cathode of diode to side of power Induced load Output module OUT Q Induced load 7 Output module f Terminal block Check close adhesion status Let no foreign material of wire enter into PLC when wring terminal block or processing screw hole At this case it may cause malfunction g Don t impact to IO module or don t disassemble the PCB from case 10 12 Chapter 10 Installation and Wiring 10 3 Wire In case using system it describes caution about wiring Danger gt When w
89. f server gt Write 4 words from DO of client to M2 M5 of server gt Write 15 bit of M2 to 2 bit of M20 of server Operation gt Write 0 15 bit of M2 to 0 15 bit of M21 of server Status gt Read 1 word of M2 of server and save it at M160 of client gt Read 4 words from PO of server and save it at M150 M153 gt Read 1 bit of P2 of server and save it at 1 bit of M170 gt Read 0 15 bit of M10 of server and save it at 0 15 of M180 of client Table 8 3 1 client setting e Server setting XBC DN32H Communication type Built in RS 485 Communication speed 38 400 Data bit Stop bit Parity bit Station no Bit read area Address Start Address area Address area Address Table 8 3 2 server setting Chapter 8 Example Program 8 3 1 Modbus RTU server setting Standard settings are as follows to act built in RS 485 communication channel of XBC DN32H as Modbus RTU server Setting method Online Settings Connection settings Type RS 232C Gene Timeout interval Connection setting a Retrial times Read Write data size in PLC run mode Normal Maximum Send maximum data size in stop mode 1 Select Online Connection settings or click icon 2 After setting the connection option according to user click the connection 1 D Reading IO Select Online Read IO Information and click icon E2 information 1O information of currently mounted is shown on the
90. f so hook may be damaged 10 9 Chapter 10 Installation and Wiring 3 Module equipment location Keep the following distance between module and structure or part for well ventilation and easy detachment and attachment gt 5mm or above lt gt 5mm or above 1 In case height of wiring duct is less than 50 mm except this 40mm or above 2 In case of equipping cable without removing near module 20mm or above 3 In case of connector type 80mm or above 4 Module equipment direction a For easy ventilation install like the following figure EEE SS e A EE IS EE AEA a ED ye 10 10 Chapter 10 Installation and Wiring b Don t install like the following figure 5 Distance with other device Vise le A Pa To avoid radiation noise or heat keep the distance between PLC and device connector and relav as far as the following figure Device installed in front of PLC 100 mm or above Device installed beside PLC 50 mm or above 50mm or above 10 11 Chapter 10 Installation and Wiring 10 2 2 Caution in handling Here describes caution from open to install e Don t drop or impact product e Don t disassemble the PCB from case It may cause the error e In case of wiring make sure foreign substance not to enter upper part of module If it enters eliminate it 1 Caution in handling IO module It describes caution in handling IO module a Recheck o
91. fine 2007 1273 15 24 02 420 SIXO1IDAS 02 0001CALF i User define 2007 1273 15 24 02 840 STXOIDRS OK 0016 02D User define 2007 1 2 3 15 24 03 420 STXO1DRS 02 0001CRLF Monitor selections User define 2007 1273 15 24 03 840 SIXOIDAS OK 0016 02D User define 200771273 15 24 04 420 SIXOIDAS 02 0001CRLF Select Channel User define 2007 1 2 3 15 24 04 840 STIXOIDRS 0K 0016 02D User define 2007 1273 15 24 05 420 STXO1DAS 02 0001CRLF Channel 2 iw User define 2007 12 3 15 24 05 840 STX01DRS 0K 0016 02D User define 2007 1273 15 24 06 420 STXO1DAS 02 0001CRLF User define 2007 1273 15 24 06 840 SIXOIDAS OK 0016 02D User define 200771273 15 24 07 420 SIXOIDRS5 02 0001CRLF User define 20077 1273 15 24 07 840 STXO1IDRS OK 0016 02D User define 2007 1273 15 24 08 420 STXO1DAS 02 0001CRLF ja 2007 12 3 15 24 08 840 SIXOITDAS OK 0016 02D User define 2007 1273 15 24 09 420 STXO1DAS 02 0001CRLF User define 2007 1273 15 24 09 840 STXOIDAS OK 0016 02D z G Detailed frame data STXOIDRAS OK 0016 02D6CRLF 1 Select Online System Diagnsis or click icon 3 2 After clicking relevant module and click right button of mouse select Status by service or frame monitor 3 When frame is not dealt with properly unknown message is displayed Check device area by device monitor of XG 5000 8 25 Chapter 9 Diagnosis SS _TTWrTTT T T T T TT TT TTTTTTT____________________________
92. gle 3 BYTE 1 PA 02 PP 03 lt E Stan TD High E Pa l P2P 01 x XG PD Message wir Parameter check Used address L RS 232C Error Warnin Figure 5 2 4 P2P block setting screen You can set up to 32 independent blocks If you select temporary block you can designate each block operation by selecting instruction MI XG PD P2P block settings P2P 01 File Edit View Online Tools Window Help Ded S Oc amp BIEX Project windows x a eri Cnet Indes Ch Driver Setting P2P function Conditional flag Command type Data type eet m P2P int 1 XGT client WRITE F0092 Single 2 BYTE 1 PIF Bloch R User frame definition 1 2 GT client WAITE Fog Single 3 BYTE 1 2 PoP 02 2 GT client c PIP 03 IE Stan E High E Pa x XG PD Message wir Parameter check Used address OFFLINE Figure 5 2 5 P2P instruction screen Chapter 5 Communication Function ee Setting item per each instruction and meaning are as follows 1 Read instruction It is instruction when reading and saving temporary area of partner station It is used equally without reference to driver The basic configuration is as follows Variable Setting Variable Read area Cave area Address MOO LINA MODI ima 2 k ogg P010 MOOODE DJ al t1100 LOOUS NOOO 1 KOO0S MOSO HOO016 Channel Designates channel to communicate ee Channel 1 RS 232C channel 2 RS aii Command
93. gurat e XBE DR16A ion Extension product module e XBF ADO4A e XBF RDO4A Analog module e XBF DVO4A e XBF RDO1A e XBF DC04A e XBF TC04S e XBL C41A e XBL C21A MI Communication module e XBL EMTA 3 2 Chapter 3 System Configuration C 3 2 Available System Configuration Communication system by using XGB built in communication function and Cnet module is diverse In this chapter it describes system configuration example 3 2 1 1 1 Connection between PC HMI No modem PC HMI and Cnet I F module is connected by RS 232C or RS 422 485 channel PC HMI and PLC is connected by 1 1 without modem In most case PC HMI acts as client and Cnet I F module acts as server which respond request of PC HMI Since there is no modem in case of using RS 232C channel communication distance is max 15m in case of using RS 422 channel communication distance is max 500m Operation mode of Cnet I F module is set according to PC HMI s communication method Wiring method and system connection is applied in case of XGB S type built in communication In case of using XGB H type and external communication module refer to 10 5 communication interface connection method 1 In case of using 1 1 connection with normal PC XGB main unit built in communication e Wiring method External form of Connection number and signal XGB external PC inno direction Female Type In case of using channel 2 connect 485 and 485 of
94. h P2P function conditional flag destination station no same with step 5 2 Command type Data type because of writing continuous 4words select Continuous WORD 3 Data size because of 4 words input 4 4 Setting after setting Read area and Save area click OK 1 Read area device address saved in the client DO 2 Save area deice address of server to save 0x40002 M2 8 16 Chapter 8 Example Program O O SS eee Setting method ahr Drea Setting PSP function Carditonal flag Command hip Data fee isba Date me hon z EP Modia ATU client WwihTE Fat Singe DIT 1 F 4 Variable Setting Setting of writing operation 3 T gt Write 15 bit of M2 to 2 bit of M20 of server 1 Ch P2P function conditional flag destination station no same with step 5 2 Data type select bit 3 Setting after setting Read area and Save area click OK 1 Read area device address saved in the client M1 F 15 bit of M1 2 Save area deice address of server to save 0x00142 2 bit of M20 When inputting M1 F it is converted into MOOO1F in the XG PD Device address of server is Hex value Variable Setting Feadaea Savesea Adress 1 Moozo Nooo01 Setting of writing operation 4 gt Write 0 15 bit of M2 to 0 15 bit of M21 of server 1 Ch P2P function conditional flag destination station no same with step 7 2 Command type select continuous 3 Setting after se
95. heck P2P setting link the user number and delete P2P enabled the link number not selected properly where P2P is not set 2 After disconnecting XG PD connect XG5000 again and check 9 2 2 Trouble shooting when communication is not done after P2P client setting Connect XG5000 and check CPU In case CPU is stop mode mode If CPU mode is stop change mode into RUN Tough communication setting is Non coincidence of Fe completed Tx Rx LED of Cnet communication ech ha Sp tape Hae I F doesn t flicker standard parameter 7 f l i beween clientand settings of module acting as client server and server Enable Link setting After executing P2P parameter error enable right P2P link 9 2 3 Trouble shooting when response frame is missed in case of acting as client and using RS 485 1 Consider communication time and change P2P conditional flag 2 Communication time transmission time reception time In case P2P transmission time conditional After setting diverse P2P conditional flag is flag CPU Scan Time reaction parameter in P2P block if frame faster than time of communication monitor is executed response communication time module data transmission time frame is missed reception time CPU Scan Time reaction time of communication module data transmission time In case that response 1 Increase Delay time in standard time of partner is slow settings of XG PD 9 6 Chapter 9 Diagnosis 9 2 4 Two
96. heck the connecting screws Saee oid nol hE TosE Retighten Input Output module Check module cover Screws M Check for loose mounting screws Screws should not be loose Retighten Connecting conditions of Screws terminal block or extension Check E ARANCE PEIEE Oe Proper clearance should be provided Correct sabie terminals Connecting of expansion cable Connector should not be loose Correct PWR LED Check that the LED is On On Off indicates an error See chapter 15 Run LED Check that the LED is On during Run On flickering indicates an error See chapter 15 ERRLED LED Check that the LED is Off Check that the LED is Off during Run Run Off On indicates an error See chapter 15 h t maicator input LED Check that the LED turns On and Off See ee See chapter 15 Off when input is off On when output is On Output LED Check that the LED turns On and Off See chapter 15 Off when output is off Chapter 11 Maintenance 11 3 Periodic Inspection Check the following items once or twice every six months and perform the needed corrective actions Check Items Checking Methods Judgment R NE A 3 Pt 0 55 C Adjust to general l temperature Measure with thermometer Ambient standard environment Ambient Humidity and hygrometer 5 95 RH Internal environmental Ambient pollution measure Corrosive gas There should be no es of control level corrosive gases Looseness The module should be move The module s
97. heck the status by service by clicking Multiple Reading and Refresh 5 Detailed content of information indicated in dedicated service window is as follows Classification Gontent Multiple Multiple reading Checks the dedicated service status every second reading Refresh Refresh Checks the dedicated service status information at started time Base Information of base number under diagnosis Standard Number information Slot Number Information of slot number under diagnosis Link type Type of communication module under diagnosis Dedicated service ee ee Dedicated information ype by Service Port number Channel number Indicates how many dedicated service Detailed Service count oe aly communication is done information Indicates how many error occurs during dedicated window Error count l i y g service communication Indicates status of dedicated service communication Check list Detail result Dedicated Serio PEP Sewe Slandacd indosnation Deteded information Dare Number E Bleck nutes Petrie Slabus Sonet coal Skt Humber 0 harel 2 i Link ygs Creat FZP sence mibialori POP puamelni nisin P2P service me IE 9 4 Chapter 9 Diagnosis 1 Select Online gt System diagnosis or click the icon E3 2 Click the right button on the the Cnet I F module and click Status By Service 3 Click P2P service of Status by Service 4 Click mutiple reading and check Status by Service Classification
98. hould be PLC Ingress the unit mounted securelv Conditions dust or foreign B een 9 Visual check No dust or foreign material material Loose terminal l l peaa Re tighten screws Screws should not be loose Retighten screws Distance between Connecting Ea Visual check Proper clearance Correct conditions Retighten connector mounting screws E ee oe Measure voltage between g input terminals DC24V DC20 4 28 8V Change supply power Connectors should not be loose Loose connectors Visual check Appendix 1 Definition of Terms EE Appendix 1 Definition of Terms Appendix 1 1 General Terms 0000000000 Describes PLC general terms used in this manual 1 Module A standard element with a specific function to structure a system such as I O board assembled to be inserted into the motherboard base Ex CPU module power module I O module 2 Unit A module or a group of modules as the minimum unit operating in a PLC system being consisted of a PLC system as it is assembled with other module or a group of modules Ex basic unit extension unit 3 PLC System A system consisting of PLC and peripherals structured to be controlled by a user s program 4 XG5000 Programming tool creating editing and debugging a program PADT Programming And Debugging Tool 5 XG PD Software executing diagnosis writing edition of basic parameter high speed link P2P parameter of internal and external communication module
99. ignate station and basic setting necessary in Cnet communication A Chapter 4 Basic Setting je TA 4 2 PLC Tvpe Setting and How to Register Communication Module To use Cnet I F function communication parameter should be written by XGP PD To set system about Cnet I F module located in temporary position register each module at XG PD Method on register Cnet I F module is as follows according to On Off line status 4 2 1 Making new project First after click File New File and input project name select XGB series as PLC series About CPU type in case of S type select XGB XBMS in case of H type select XBC XBCH gt XG PD File Edit View Online Tools Window Help Doles 2 2t EBXK Gas Project window Sgal ir B aaa xcs xems New Project Base00 Default 00 Embedded Cnet oe Pojetnamer TEST ae File location ID WIXGSODOWITEST amp 3 03 Empty slot amp 3 04 Empty slot amp 3 05 Empty slot Select Folder E 06 06 Empty iot PLC Series lt 3 07 Empty slot Oxak xXGB OxXGI OXGR CPU kind Project comment a on E Stan E High EPa x Nit kl ft j l E AI 9 iu la jA 2 faa Figure 4 2 1 New project making screen 4 2 2 In case of off line method on Cnet I F module registration In the status PLC is not connected in case the user set about communication module and write parameter related
100. ion for communication between revolution bodies 3 10 Chapter 4 Basic Setting 4 1 Setting se uen e Oi PFOGUECL p A 1 4 2 PLC Type Setting and How to Register Communication Module 4 2 4 2 1 Making new project rnc cnn n enone nnn cern nner ce cnee 4 2 4 2 2 In case of off line method on Cnet I F module registration 4 2 4 2 3 How to register Cnet I F module in case of online 4 3 4 Sl HOW 10 S6UBasiC Parameter assssasetencesseeeesen saa eene inae 4 5 4 8 i setting LGM eSesetsetsetse eee see re esse trees eee teers eee 4 6 4 2 2 Setting method 4 7 Chapter 5 Communication Function Dl EVEL MOODUS SErViGG i ARS a A ARA PAR sere ses eRes D 1 9 tel Qeoneral ii a ke taz A sz D 1 Sale AGT dieti Cated SCIVel A secre E ne coees preter ras eer er 9 2 953 leo MOQDUS SETVOR HIR Tra ne one ee A sien ame een eee 9 2 92 PZP O CRVICE Setar e pe ee eae 9 4 Deol GNC hall ms ideea aa deste eile ecient 9 4 d 2 2 rer Parameter lt CONTIGQUIATION eee ARPA ARA ARPA ER RRRRRRRMAREEREZA ZAR 9 9 9 2 0 Channel information ss see gece neste ia 9 9 D 2 4 Block informati i A arise Hancesecce sas Jaf 5 2 5 User defined frame information D 11 022202 Semice Operatro i esas paa sei eae 9 21 Chapter 6 Remote Connection
101. ion settings Wwe asc 232C RS Ethemet General Modem Connection Timeout interval 71 sec settings Retrial times 1 Read Write data size in PLC run mode Nomal Maximum Send maximum data size in stop mode 1 Select Online Connection settings and click 2 After setting the connection option according to user click the connection D Reading IO Select Online Read IO Information and click icon A information IO information of currently mounted is shown on the project window Standard Settings Cnet Communication settings Channel 1 Type Speed M 115200 Data bit Stop bit Parity bit NONE Modem type Modem Standard Initialization settings Station Number Delay time 0 255 10ms Time out 0 50 100ms Active mode Channel 1 XGT server Channel 2 XGT server j Cancel 1 Set standard settings at built in communication channel to be same with Table 8 2 2 s standard settings 2 Since active mode acts as dedicated communication server set as XGT server ola Chapter 8 Example Program 8 2 2 Settings of XGT client To operate XBL C21A of client as XGT client set Cent I F module as follows Sequence Procedure Setting method Online Settings Connection settings Tee ase v 32C RS 2 Depth USB Ethemet Modem General Connection settings Timeout interval Retrial times Rea
102. ireless modem communication for communication between revolution bodies e RS 232C communication with wireless modem Communication between Cnet I F module is dedicated client communication e RS 232C channel of Cnet I F module is dedicated modem mode XGB PLC Cnet 2 Wireless modem RS 232C communication RS 232C communication Figure 3 2 8 wireless modem communication system Module setting Type RS 232C RS 422 ow mode XBL C21A Not used 2 station Usermode mode Table 3 2 3 setting content table between communication module Chapter 4 Basic Setting tl Chapter 4 Basic Setting 4 1 Setting Sequence of Product It describes installation of product and sequence Install system by be operated by the following SEQUENCE Operation sequence v Equip Cnet I F module to XGB system It is applied in case of using external Cnet I F module v Connect Cnet I F module with device to communicate by cable gt Cable wiring and connect terminal resistance After power on check LED status of communication module gt Check whether interface of communication with CPU is normal or not Set P2P parameter and basic setting at XG PD gt Set parameter according to network configuration at XG PD download parameter Enable link at XG PD gt Not enable link act as server v Operation start 1 In Cnet I F module hardware station setting is not necessary By using XG PD des
103. iring cut off the external power gt If all power is cut it may cause electric shock or damage of product gt In case of flowing electric or testing after wiring equip terminal cover included in product It not it may cause electric shock N Caution gt Do D type ground type 3 ground or above dedicated for PLC for FG and LG terminal It may cause electric shock or malfunction gt When wiring module check the rated voltage and terminal array and do properly If rating is different it may cause fire malfunction gt For external connecting connector use designated device and solder If connecting is not safe it may cause short fire malfunction b For screwing use designated torque range If it is not fit it may cause short fire malfunction b Let no foreign material enter such as garbage or disconnection part into module It may cause fire malfunction error 10 3 1 Power wiring 1 In case voltage regulation is larger than specified connect constant voltage transformer c S XBL C21A lI Poot als te z ll E eof co wl 5 fells ji iD E eel Eae ta Bi 4 3 0 4 og 67 pa ina JI rejon trey kal A i JI om PLES lassie tela mill i Lie fa Rszuc wl a e wifes iI ij e sej a AC power al ee Paley ABB EB EB G p Jl
104. l constant a L E IL l MA ai anna BYTE IM o HeadO0 BeforeBcc n Figure 5 2 30 ACK reception frame Tail registration screen Registers frame at registered reception frame group NAK A Head registration La of user account NAK HEAD Number Form Size Data Memory OO Numerical constant i 15 Figure 5 2 31 NAK reception frame Head registration screen 5 19 Chapter 5 Communication Function M B Body registration Registers at Body about data to process and instruction among reception frame In case you know size of data to save among reception frame use fix sized variable and in case you don t know size of data use variable sized variable ke 2 of user account NAK FRAME Number Form Size Data Memory 00 Numerical constant 1 Qi DI n string Constant C ka 02 Fix sized variable z Figure 5 2 32 NAK reception frame Body registration screen C Tail registration Number Form Size Data Memory QQ o Numerical constant d DZ ere ere L BOD A NA BYTE SUM nnn HeadO0 BeforeBCC AsciCony Figure 5 2 33 NAK reception frame Tail registration screen Screen where ACK NAK registration is complete is as follows XG PD TEST xfg File Edit View Online Tools Window Help Dee 2A BEX 69QQ gA So EM Project window x E 23 TEST XGB XBMS fa 2 0f user account NAK JAIL f EX 7 2 of user account ACK TAIL S P2P 01 B050 Cnet JENA amp a P2P Channel Number Form i Memory P2P B
105. l is selected by parameter of temperature controller Standard protocol is STD It starts with first character STX 0x02 and ends with last character CR OxOD LF OxOA The following Table 8 4 2 and Table 8 4 3 indicates structure of standard protocol and Sum protocol six Sonno Commend ome n ir oo lm L L Loem om Table 8 4 2 standard protocol structure STX 002 19 Checksum 1020D ooa Table 8 4 3 SUM protocol structure 1 Writing example frame In this example present value and setting value is saved in M device area of PLC Table 8 4 4 is frame requesting continuous data and Table 8 4 5 is frame responding to request See eee SSE Eewa l 2 1 3 ji Table 8 4 4 request frame e DRS command that request reading continuous D register value No of data and start address of D register is necessary e In the example no of data is 2 and start address is 01 rene ES ee PS a OK Osa S A Oe acre iszebverj i 2 si eta ae Table 8 4 5 response frame Chapter 8 Example Program SSS EE 8 4 3 User definition communication parameter setting 1 Communication standard parameter setting For standard setting refer to setting method when acting as P2P service of 8 1 2 and configure above system Table 8 4 1 2 Writing frame that requests reading data Describes how to write frame at XG PD for user definition communication frame that req
106. l parameter is applied if download is complete Chapter 4 Basic Setting Standard Settings Cnet Communication settings Channel 1 Channel 2 Type Speed Data bit Stop bit Parity bit Modem type Modem Initialization Station Number Delay time 0 255 10ms Time out 0 o0 100ms Active mode Channel 1 Channel 2 Modbus ASCII server Modbus Settings Figure 4 3 1 Built in communication standard setting screen 4 3 1 Setting item When setting Cnet communication parameter the fact the user should define is as follows Table 4 3 1 MA oO content Station no Station no e You can set You can set from station 0 to station 31 station O to station 31 Communicati e 1200 2400 4800 9600 19200 38400 57600 115200 bps available on speed l Data bit bit Databit e 7 or 47 orBbitavalable bit available Parity bit e None Even Odd available Stop bit je 1 or 2 bit available e It is fixed as follows according to Cnet type Communicatij 1 Built in communication channel 1 RS 232C channel 2 RS 485 on channel i XBL C41A channel 1 not used channel 2 RS 422 RS 485 XBL C21A channel 1 not used channel 2 RS 232C Delay time e It sets interval of communication frame e It sets the time waiting respond after requesting data 100 sS unit 1 65535 available Table 4 3 1 communication parameter setting item 4 6 Chapter 4 Basic Setting Parity bit Cn
107. le click DRS test tap and edit segment like the following 2 Write frame requesting reading data of continuous 2 areas starting first of D register of station no 1 3 When double clicking editor screen and writing frame through segment edition size of one segment is less than 10 Project window 29 TEST XGB XBMS kal 1 of user account DRS test S P2P 01 B050 Cnet P2P Channel Nu Form size Data P2P Block 00 String Constant 01DRS 02 35 User frame definition 01 String Constant 0001 a DRS Transmission taj HEAD dei i3 1 of user account DRS TAIL test Nu Form Size Data 00 Numerical const 1 oD 01 Numerical const 1 OA 2 1 of user account DRS HEAD Nu Form Size Data 00 Numerical const 1 02 lt nT I TE Stand JE High T P2 DRS test DRS HEAD DRS TAIL 1 Result writing entire frame of data reading request frame 8 23 Chapter 8 Example Program 3 Writing frame to receive response frame of temperature controller Writing response frame Reception frame Setting method Group Edit Eg Group name DRS RECEJ Frame type Reception 1 1 Write like step 2 of frame that request reading data At this time set Frame type as reception 2 Frame name is DRS_RECE Frame Edit Eg Frame Edit Type v e E 2 1 Click Add Frame and select HEAD TAIL BODY as type and input BODY name 2
108. lock Numerical constant 03 Numerical constant 1 Fo E REE E EA i BCC 2 BCC 1 Head00 BeforeBCC S Pa 02 B051 Cnet E P2P Channel P2P Block ro User frame definition te TX Transmission a ACK Reception es HEAD I TAL e A 2 FRAME E7 2of user account NAK FRAME 212 of user account ACK FRAME am _ Reception Number Form Size Size Data HEAD Numerical constant 1 String Constant 2 01 TAIL String Constant 3 String Constant 3 wSB a FRAME Fix sized variable 2 e P2P 03 i 2 of user account NAK HEAD Number Form Memory Size Data 00 Numerical constant 1 Numerical constant 1 06 sill 68 Sta EI High al P2 ACK HEAD ACK FRAME ACK TAIL NAK HEAD NAK FRAME NAK TAIL uc Ie FTE Result Parameter check Used address j Readv OFFLINE Figure 5 2 34 ACK NAK reception frame registration complete screen 5 20 Chapter 5 Communication Function 5 2 6 P2P service operation lf P2P parameter setting ends you should download PLC CPU parameter and start P2P service We assume that P2P parameter to download is written and PLC is connected with CPU 1 P2P parameter download If you select Online gt Write Parameter of XG PD menu window to download P2P parameter parameter download window shows In case of communication parameter you can t select individual parameter but all parameter is downloaded Write parameter standard settings HS link P2P Eg Figure 5 2 35 P2P Parameter Write
109. mes consist of Head Body Tail and each can be omitted User defined frame in XGB series is indicated group name and frame name and each meaning is as follows 1 Group Group of fame having same Head and Tail For registration of frame registration of group is necessary Click right mouse button with cursor on user frame definition of project window If group edit window shows set group name and frame type Group Edit Project window G TEST XGB XEMS S P2P 01 BOSO Cnet ffl PJP Channel fel P2P Block Figure 5 2 10 Group add screen 2 Frame It consists of Head Body Tail Defines transmission reception frame Adding fixed variable sized variable at Body Frame consists of diverse segment about one Body variable segment can be registered up to 4 With mouse on group TX Transmission click right button of mouse and add frame Projectwindow x 28 TEST XGB XBMS Slt P2P 01 BOSO Cnet h P2P Channel i P2P Block Sere User frame definition f piz a PP 0 Edit Group a P2 OF Delete Group Figure 5 2 11 Frame add screen 5 11 Chapter 5 Communication Function 3 Segment Head Body Tail of frame consist of diverse segment you can register to the following frame edit window kal 1 of user account TX HEAD Number Form Size Data Memory LA Numerical constant 1 a EE penne anni ep
110. munication module OS Indicates whether P2P communication is activated or not Whether standard communication parameter is downloaded ornot Standard communication parameter error information expression Svstem parameter information g 2 Chapter 9 Diagnosis 9 1 3 Frame monitor The user can check whether frame is normal or not by monitoring TRX frame through Cnet I F module by XG PD s frame monitor Check list Detail result Frame Monitor EA Tlandard ibe Li iview bu HES Le View be ASCII Base Ma 1 Frans daia Fi fei 11S Oo DW viel No i t MIET mai AA 11S AE Ole SSETAS H SOO 2 11 5000 0 EXOD OtwSS 0104s Ow 27 25 11002 ALE 01955 a7 MOVE TSO ACR Ow SETAS ari XM 2 SOTO E NODIWS30104XD WI mon Ito r ec 3 DOVE S002 ACR SET FM ORSON ENDO Iwas 0104s 0WO MOV 2 SOO ACO eS SEEMS i 7 LEJH BG Monitor selections an Y AO AVANSA ENO O15 xO wo 3 MOTA1 2617 800040 ALC OS SETH ET Select Channet wn Y Mm MOISE ENDO wS 501040 WI 3 WARS AEDI mSS ETHET Charre 2 w a Y AO WARNS ENODIWESD10AXOWI ATI G 11S Or BI ABD ESSEIST F fam e fan Mal mat zi IA g 11 SO ILI END DT wS SOI Owe Detaded huma dax ACK Ole SEIS 1 Select Online System Diagnosis or click the icon B 2 If you click right button after clinking Cnet I F module and click frame monitor you can monitor current communication data 3 If you use frame monitor function you can check frame of TRX data be
111. nar Ground 0 signal ground 2 3 4 1x Transmitted Data Z Built in RS 232C TX data signal 5 Received Data Built in RS 232C RX data signal Figure 10 5 4 RS 422 5 pin Connector Standard Built in RS 232C channel doesn t support modem communication In case of modem communication use XBC C21A 1 Connection method in case of using built in RS 232C In case of connecting as null modem mode connect in 3 line type PC Communication Cnet 9 PIN l l PA Connection no and signal direction device Name Figure 10 5 5 3 line type connection 2 Connection method in case of using built in RS 485 Signal direction External communication Name Cnet lt gt external device device a a O o 2 ss 485 Figure 10 5 6 built in RS 485 connection Chapter 10 Installation and Wiring 10 5 3 RS 422 interface XBL C41A RS 422 channel use 5 pin connector Terminal Block for communicate with external Figure 10 5 7 indicates function of each pin name function and data direction Signal direction l a Name Function description Cnet lt gt External device ee RX data A RX data oo A Figure 10 5 7 RS 422 5 pin connector pin standard Figure 10 5 8 indicates RS 422 communication cable connection example in case of single connection Cnet 5 Pin Signal direction External communication Name Cnet lt gt External device device
112. nly one lower byte of the value resulted by adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC and sent eee Hex and 2 bytes ASCII code 4 bytes indicate error type For the details Refer to 10 1 4 XGT dedicated communication error codes and countermeasures e Example This example supposes that HFF is written in M230 of station No 1 1 PC request format PC XGB Format name Header te tion Command Command Number Device Device Name Data Tail Frame jp of blocks Length check Hot Hoe amwa ASCII value H3031 H57 77 H5353 H3031 H3036 ADET H30304646 Hajo 2 For ACK response after execution of command PC XGB 3 For NAK response after execution of command PC XGB Format name Header Station Error code No Command Command type Tail Frame check 7 13 Chapter 7 XGT Dedicated Protocol 4 Continuous writing of device W w SB a Purpose This is a function that directly specifies PLC device memory and continuously writes data from specified address as much as specified length b Request format Format Head sta Comma Device Sn ETA Number Data Frame name nd type Length of data check Frame Example ASCII HO5 H3130 H57 77 H5342 H303 H254D573130 H3032 H31313131323232 H04 value 6 30 32 e Number of data specifies the number according to the type of device Namely if the data type of device is WORD and number of data is 5 i
113. normally Cnet I F module and XG5000 are switch into initial mode In case of reconnection retry from b item to reconnect f Since for optical modem wireless modem only media between modems is different Connection method is same 6 Chapter 6 Remote Connection A _TNTTN N W VYTTTT T T_T ____________________ ___ 6 1 3 Remote connection between Cnet I F modules 1 Remote connection through dedicated modem Figure 6 1 13 indicates that XG5000 and local PLC is connected through RS 232C cable and in case RS 232C channel of Cnet I F module equipped at local PLC communicates with Cnet I F module of remote PLC through dedicated modem Figure is example indicating remote connection with remote PLC Like figure XG5000 uses modem communication function between Cnet I F modules and control remote PLC by using remote connection Remote client Remote server Aa 2520 Cable fis i t Cable Dedicated modem Dedicated line Dedicated modem Figure 6 1 9 remote connection between Cnet I F modules Remote connection sequence by dedicated modem is as follows a Cnet I F module setting connected at remote PLC 1 Set RS 232C channel operation of Cnet I F module at XG PD as dedicated modem and have it operate as XGT server Standard Settings Cnet Communication settings Channel 1 1 NONE Dedicated Modem Initialization Station Number Delay time 0 255 10ms Tim
114. odbus RTU ASCII client User frame definition e Server acts as server slave and acts according to request XGT server Modbus RTU server Modbus ASCII server 8 1 1 In case of acting as server Sequence Procedure Setting method Connection setting 1 Select Online Connection Settings or click icon 2 Click Connect after setting D Read I O Select Online Read I O Information or click icon information Reads the information about currently equipped module Standard Settings Cnet Communication settings Channel 1 Channel 2 Type Speed 115200 115200 Data bit Stop bit Parity bit Modem type Modem Sta n d a rd Initialization 1 Station Number Settings ra 0 255 10ms Time out L 0 50 100ms Active mode 3 Channel 1 Channel 2 1 Double click Cnet I F module and execute standard setting window Set Type Speed Data bit Stop bit station no of connection menu 2 Modem initialization is available in case of dial modem not null modem 3 Delay time setting when sending frame it sends frame after specific delay time a Operation setting Available when type is RS 422 485 When using as Modbus ASCII server data bit should be 7 8 1 Chapter 8 Example Program Procedure Setting method ae 1 Select active mode of server for user to use the active 2 XGB Cnet I F module supports XGT server Modbus ASCII server Modbus mode RTU server
115. odule power consumption of simultaneous On point e Wout lout X Varp X output point X simultaneous On rate W lout output current actually used current A Vdrop voltage drop of each output module V l pea ff ff f f e Main unit Comm Comm output jinput Special input AC power 100V 240V 5V DCSV 100V 240V Chapter 10 Installation and Wiring e Input average power consumption of input module power consumption of simultaneous On point e Win lin X E X input point X simultaneous On rate W lin input current root mean square value in case of AC A E input voltage actually used voltage V f Power consumption of special module power assembly e Ws lov X 5 l24v X 24 hoov X 100 W The sum of power consumption calculated by each block is the power consumption of the entire PLC system e W Wew Wov W2av Wout Win Ws W Calculate the heats according to the entire power consumption W and review the temperature increase within the control panel The calculation of temperature rise within the control panel is displayed as follows T W UA PC W power consumption of the entire PLC system the above calculated value A surface area of control panel m7 U if equalizing the temperature of the control panel by using a fan and others 6 If the air inside the panel is not ventilated 4 If installing the PLC in an air tight control panel it needs heat pro
116. onnections There are two methods for remote connection by using Cnet I F module first XG5000 is connected with Cnet I F module of remote PLC through modem second XG5000 and local PLC are connected into CPU through RS 232C Cnet I F module of local PLC communicates with Cent I F module of remote PLC 6 1 2 XG5000 remote connection Figure 6 1 1 is figure indicating remote connection example where XG5000 and PLC are connected through modem Like figure it is necessary configuration in case PC executing XG5000 is far from PLC and telephone line and connected by dedicated modem or wireless modem At this case you should connect Cnet I F module by modem from XG5000 and you should select modem as connection method at connection option There are two methods dedicated modem connection using dedicated line and dial up modem connection using public line 1 Dial up modem connection Figure 6 1 1 is example using dial up modem You can establish remote connection by connecting dial up modem to PC and Cnet I F module RS 232C In PC side you can use external modem or internal dial up modem and in Cnet I F side RS 232C you should use external modem Rs 232C Cable AS 232C Cable Modem Modem Public line Public line Tandem center Figure 6 1 1 XG5000 remote connection example by dial up modem 6 1 Chapter 6 Remote Connection SS aaa Remote connection sequence by using dial up modem is as follows a Cnet I F module connect
117. or of PLC to protect the whole control system from any error in external power or PLC module Any abnormal output or operation may cause serious problem in safety of the whole system Install applicable protection unit on the exterior of PLC to protect the system from physical damage such as emergent stop switch protection circuit the upper lowest limit switch forward reverse operation interlock circuit etc lf any system error watch dog timer error module installation error etc is detected during CPU operation in PLC the whole output is designed to be turned off and stopped for system safety However in case CPU error if caused on output device itself such as relay or TR can not be detected the output may be kept on which may Cause serious problems Thus you are recommended to install an addition circuit to monitor the output status b Never connect the overload than rated to the output module nor allow the output circuit to have a short circuit which may cause a fire b Never let the external power of the output circuit be designed to be On earlier than PLC power which may cause abnormal output or operation b In case of data exchange between computer or other external equipment and PLC through communication or any operation of PLC e g operation mode change please install interlock in the sequence program to protect the system from any error If not it may cause abnormal output or operation Safety Instruction
118. ou can define driver type for P2P service about each If you select P2P channel at P2P setting window like the following P2P channel setting window shows If you select P2P driver to use setting is complete 979 Chapter 5 Communication Function P P Channel Setting Channq Operating Mode P P Driver TCP UDP Client Server Partner Part Partner IP address 1 Modbus ASCII server SS 2 Use P2P XGT client d User frame definition GT client Modbus ASCII client Modbus ATU client Figure 5 2 3 P2P channel setting screen Driver selectable in XGB Cnet and meaning are as follows Table 5 2 1 Driver table About communication channel in case of selecting P2P driver as XGT or Modbus user frame definition can not be used x Modbus instruction code and Address allocation os Preset Single Register 7 OR Word wre Table 5 2 2 Modbus instruction code and data code table 5 6 Chapter 5 Communication Function 5 2 4 Block information If you select P2P block of each parameter at P2P parameter setting window P2P block setting window shows 1 XG PD P2P block settings P2P 01 File Edit View Online Tools Window Help HG 22 i RBx 254 gt H38 Bene Project windows x i wER NBME A oe ne Cnet Index Ch Driver Setting P2P function eons e Command we Data type ae MR P 2P L XGT client WRITE Foog2 Single 2 BYTE 1 P 2P Blod l 0 User frame defrition 1 2 GT client WRITE Fog Sin
119. out destination station 2 the following example shows that it reads 10 byte from memory M125 Word and writes P20 Word of destination f i a No of Destin Destination B Index Ch Driver Setting P2P function Conditional flag Command type Data type oe abl i Data size pak i stali in rarer Frame Setting Variable setting contents 2 GT client WRITE Mo102 Continuous 1 BYTE 1 10 M 2 Setting Number IREAD1 M125 5AVE1T POZO Setting Setting H Figure 5 2 7 P2P Write instruction setting screen 3 Send instruction Instruction used to send temporary frame to external device by not specified communication method other than XGT Modbus protocol User defined communication You should select one frame per Send instruction and designate fixed size variable size about memory of each frame in this instruction 5 9 Chapter 5 Communication Function Before using this instruction you should define frame to send 1 User frame definition SEND FOO T B Setting Number 1REA401 M002 SIE 1 2 Setting f MI l Index Ch Driver Setting FF function eu e Frame Setting Varnable setting contents men re Figure 5 2 8 P2P Send instruction setting screen Conditional flag Sets transmission conditional flag ee MI Frame is alreadv registered at transmission Designates transmission frame name frame 7 Designates internal device to send Setting available when variable sized aria Sets size of device to send variable is
120. read according to the type of data Namely if the data tvpe of device is word and number is 5 it means that 5 words should be read e In the number of data you can use up to 60 words 120Byte e Protocol of continuous reading of direct variable doesn t have number of blocks Bit device continuous reading is not supported item Description command is lowercase r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ENQ to EOT is converted into ASCIl and added to BCC This indicates the number of name s characters that means device which is allowable up to 16 characters This value is one of ASCII converted from hex Length of type and the range is from H01 ASCII value 3031 to H10 ASCII device name value 3130 Address to be actually read is entered This must be ASCII value within 16 Device name characters and in this name digits upper lowercase and only are allowable to be entered Device length c XGB response format ACK response Station Command Number of Number of Frame mee Ee e e Ex Exofframe frame H1122 122 H303 eana e 7 9 Chapter 7 XGT Dedicated Protocol It means byte number of hex type and is converted into ASCII Data type Available device Data size Byte BYTE B P M L K F T C D R B WORD W P M L K F T C D R W Z Number of data DWord D 96 P M L K F T C D R D PA LWord L 96 P M L K F T C D L O xR area is suppor
121. response frame are dealt with as unknown when executing frame monitor Communication Two response frame are dealt with as unknown when type in XG PD is Change executing frame monitor set as RS 422 communication type Transmission GT master if 2007 124 ENODIrsS501T0AZEM WOEQOT 40 Reception Unknown 17 2007 1244 ENQDIrS50104ZMWOEDTA0 but output wiring as RS 485 and write Reception Unknown 17 2007424 ACKO11SS01020000ETXO5 l l l Transmission GT master 17 20077144 ENDDIrS5010A M WOEQOT 40 tile is RS it to PLC 9 2 5 Unable to analyze TRX frame 1 Execute 1 1 communication with server and check if it works properly 2 lake interlock for servers not to sends frame simultaneously More than one server sends frame In case parity bit setting Set the parity bit to be same each is not coincident other Unable to analyze TRX frame In case stop bit setting Set the stop bit to be same each is not coincident other In case communication speed setting is not coincident Set the communication speed to be same each other In case of multi drop terminal resistance is Install terminal resistance not installed 9 2 6 Unable to know which one is reason of error client or server Phenomenon Reason Trouble shooting 1 Check Cnet I F module Unable to Know which one is Check module s equipment status reason of error client or server Check wiring 2 Check main unit status OAK Chapter 9 Diagnosis 9
122. retry from a for reconnection 6 10 Chapter 6 Remote Connection d In case of optical modem wireless modem other than dedicated modem communication media is only different method of remote connection is same Figure 6 1 14 indicates remote connection by wireless modem As for connection method it is same with method of remote connection between Cnet I F module by using communication In case of using wireless modem 1 N remote connection where there are many Cnet I F module is also available Remote connection SS nS m ena AS 232C Interfacg iaa nin Wireless modem AS 232C Interfac Wireless modem Figure 6 1 14 remote connection by using wireless modem Chapter 6 Remote Connection SS Sg aaa 2 Remote connection by RS 422 485 Figure 6 1 15 indicates XG5000 and local PLC is connected into CPU module by RS 232C cable in case RS 422 485 channel of Cnet I F module connected at local PLC communicates it is figure indicating remote connection example to remote PLC Like figure XG5000 can control program of remote PLC by remote connection through remote connection function between Cnet I F modules Remote server Remote server Remote client Remote server Figure 6 1 15 Remote connection in case of RS 422 485 communication Basic parameter of remote server connected through XG5000 should be set as server in case of remote client it should be set P2P client If you try remote
123. s are as follows to act XBL C41A of client as Modbus RTU client Setting method Online Settings Connection settings Type RS 232C wl RS 232C Ethemet Modem General Timeout interval Connection setting a Retrial times Read Write data size in PLC run mode Nomal Maximum Send maximum data size in stop mode 1 Select Online Connection settings or click icon amp 2 After setting the connection option according to user click the connection Select Online Read IO Information and click icon IB information IO information of currently mounted is shown on the e window Standard Settings Cnet Communication settings Channel 1 Type Speed Data bit Stop bit Paritv bit Modem type Modem Standard Initialization setti ng S Station Number os Delay time 3 0 255 10ms D 5SON 100ms Active mode Channel 1 Channel 2 Use PJP settings ka Cancel 1 Select XBL C41A and write standard settings to be same with Table 8 3 1 at channel 2 Since station setting doesn t have meaning when acting as client set as temporary station number 0 31 3 When acting as client mode active mode should be Use P2P settings Chapter 8 Example Program After standard settings P2P channel and P2P block should be set Setting methods are as follows Setting method P2P setting Click bottom of project window Communication Module Settings Communic
124. s follows this flag shall be On 1 In case that the station set in the parameter is not RUN mode or L001 _HS1_LTRBL Bit 2 There is an error in the station set in the parameter or 3 The communication state of data block set in the parameter is not good LINK TROUBLE shall be On if the above 1 2 amp 3 conditions occur and if the condition return to the normal state it shall be OFF again High speed link parameter 1 k block general state L0020 _HS1_STATE k Bit Indicates the general state of communication information for each LOOSF k 00 63 Array data block of setting parameter 7 HS1 STATEJkI HS1MOD k amp _HS1TRX k amp _HS1_ERR k 0060 _HS1_ MODIkI Bit High speed link parameter 1 k block station RUN operation mode LOQ9F k 00 63 Array Indicates operation mode of station set in k data block of parameter Normal communication with High speed link parameter 1 k block LO100 _HS1_TRX k Bit station LO13F k 00 63 Array Indicates if communication state of k data of parameter is communicated smoothly according to the setting 10140 _HS1_ ERR k Bit High speed link parameter 1 k block station operation error mode LO17F k 00 63 Array Indicates if the error occurs in the communication state of k data block of parameter Pe i High speed link parameter 1 k block setting 101807 _Hs1_sETBLOCKIK 2 0 Array Indicates whether or not to set k data block of parameter Appendix 2 Communication Relay
125. s or cell phone at least 30cm away from PLC If not abnormal operation may be caused Safety Instructions for waste disposal Product or battery waste shall be processed as industrial waste The waste may discharge toxic materials or explode itself Revision History Version Date Remark Page V 1 0 2006 6 1 First Edition V 1 1 2007 7 1 Position and Special function contents separated 1 Position function contents separated position part published l 2 PID control and Ch 12 Analog IO module contents separated 2 Contents added 1 Naming standard added 2 3 2 6 2 Caution when selecting IO module added 7 1 7 6 3 IO wiring method by using Smart Link board added 7 27 7 28 4 Installation and wiring contents added 10 1 10 18 3 Content modified 1 Safety instruction modified 1 6 2 Svstem Configuration modified 2 7 2 10 3 High speed counter function modified 8 6 8 8 4 External dimension modified App 2 1 2 4 V 1 2 2008 3 1 XGB compact tvpe H tvpe added 2 Built in communication content separated 1 Ch 9 built in communication function separated Cnet I F user manual x The number of Users manual is indicated the right side of the back cover Copyrights c 2006 LS Industrial Systems Co Ltd All Rights Reserved About User s Manual About User s Manual Congratulations on purchasing PLC of LS Industrial System Co Ltd Before use make sure to caref
126. s simple It supports dedicated server client modbus server client user defined communication function In case of XBL C21A module modem communication is provided by which controlling remote PLC is available ii Chapter 2 specification Chapter 2 Specification 2 1 General Specification General specification of XGB PLC is as follows Specification Related specifications Operating er oee e oo ae temp 3 Operating 5 95 RH no dew allowed humiditv 4 storage 5 95 RH no dew allowed humiditv For discontinuous vibration LF IEC 61131 2 IEC 61000 4 2 o Vibration oreeson oem proof For continuous vibration Each 10 IEC 61131 2 l times in X Y Z Amplitude ldirections Max impact acceleration 147m 15G Authorized time 11ms MpPaCEPrOON a puis wave Sign al pulse ee h3 ti Static electric discharging discharging 8 kV air Fast Digital Transient Class sha Analog I O IEC 61131 2 module ala u IEC 61000 4 4 burst communication interface Operating Amplitude 10sf lt 57Hz 0 075mm 1osf lt 57Hz2 0 035mm B7sf lt 150Hz 4 9ms 0 5G Test spec of LS Square wave impulse noise AC 1 500V DC 500 V Industrial Systems Voltage 4 kV contact discharging IEC 61131 2 Noise proof Radiation electromagnetic 80 1 000MHz 10 V m IEC 61000 4 3 Ambient No corrosive gas or dust conditions Pollution 2 or less level Cooling type Natural air cooling a
127. screen If you press OK it downloads P2P parameter to CPU 2 P2P service start Though you download P2P parameter to start P2P service you should start P2P For this select Online Enable Link Chapter 5 Communication Function Enable Link HS Link P2P a di TEST S E Je High speed Link 01 Je High speed Link 02 a E P2F Ie P2P 01 we P2P 02 De P2P 03 Figure 5 2 36 P2P enable setting screen In the Enable Link HS Link P2P window select P2P parameter Already checked P2P parameter is under operation If you uncheck P2P service stops If you like to know whether P2P service is normal or not select Online gt System diagnosis For this function refer to Chapter 9 system diagnosis aa Chapter 6 Remote Connection C OEE l l Chapter 6 Remote Connection 6 1 Remote Connection 6 1 1 General In case PC executing XG500 XG PD is far from XGB PLC if you use remote connection function of Cnet I F module you can control remote PLC such as program download upload program debugging and monitor Especially in case XG5000 is far from PLC if you use XG5000 remote connection function and modem connection function of Cnet I F module you can access easily by remote connection through air line Remote connection is supported at XGB communication module FEnet I F module and Cnet I F module Connection between networks is available and you can control remote PLC through multiple c
128. som annie neon ie String Constant O ON Figure 5 2 12 Frame HEAD segment setting screen Numerical constant String constant fix sized variable variable sized variable in segment consisting frame Add segment Numerical constant Numerical constant String Constant Fix sized variable Varnable sized variable L Assign memory Cancel Figure 5 2 13 Add segment setting screen A Numerical constant Defines part fixed as constant among frame Value of data is Hex Add segment Form Numerical constant Size SS Constant Daa HE _ Assign memory Figure 5 2 14 Add numerical constant segment screen Sed Chapter 5 Communication Function B String Constant Register String Constant among frame Value of data is ASCII value Add segment Form String Constant Ww Size G A Constant Data ABCDEFGH HEX Assign memory Cancel Figure 5 2 15 Add string constant segment screen C Fix sized variable t is available at Body area of reception frame Used in case of processing data as size as defined among received frame Size is byte unit Transmits receives data as ASCII Data transmission example of 2 words h12345678 2words gt 3132333435363738 8 byte transmission In case of transmitting receiving data of 2 words since it changes into ASCII data size should be 8 If checking Assign memory you can save at PLC
129. t Input Input unt ont port port pos point point point point Equip output module for fail safe to last slot of system Output module for fail safe Fail safe circuit example On delay timer FO093 Off delav timer e ernal load CPU unit 1c Output module Since P80 turn on off every 0 5s use TR output Chapter 10 Installation and Wiring 10 1 2 PLC heat calculation 1 Power consumption of each part a Power consumption of module The power conversion efficiency of power module is about 70 and the other 30 is gone with heat 3 7 of the output power is the pure power consumption Therefore the calculation is as follows e Wow 3 7 I5v X 5 Izav X 24 W Isv power consumption of each module DCSV circuit internal current consumption l24v the average current consumption of DC24V used for output module current consumption of simultaneous On point If DC24V is externally supplied or a power module without DC24V is used it is not applicable b Sum of DCSV circuit current consumption The DC5V output circuit power of the power module is the sum of power consumption used by each module e Wsv Isv X 5 W c DC24V average power consumption power consumption of simultaneous On point The DC24V output circuit s average power of the power module is the sum of power consumption used bv each module e Waav laav X 24 W d Average power consumption by output voltage drop of the output m
130. t separates transferred data into the defined length to add a header that presents the correspondent addresses station No etc thereto 8 Port Port is meant to be the part of the data process device which sends or receives the data from a remote control terminal in data communications but in Cnet serial communication is meant to be the RS 232C or RS 422 port 9 RS 232C RS 232C is the interface to link a modem with a terminal and to link a modem with a computer and is also the serial communications specification established by EIA according to the recommendations of the CCITT This is also used to link the null modem directly as well as the modem linkage The disadvantage is that the transfer length is short and that only 1 1 communication is available and the specifications which have overcome this disadvantage are RS 422 and RS 485 10 RS 422 RS 485 As one of the serial transmission specifications its transferring length is long with 1 N connection available compared to RS 232C The difference of these two specifications is that RS 422 uses 4 signals of TX TX RX and RX while RS 485 has 2 signals of amp where data is sent and received through the same signal line Accordingly RS 422 executes the full duplex type of communication and RS 485 executes the half duplex type of communication A 4 Appendix 1 Definition of Terms eee 11 Half Duplex Communication Two way communication is available
131. t means that 5 WORDs should be written e Number of data can be used up to 120Bytes 60 Words When command is lowercase r only one lower byte of the value resulted by BCC adding 1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and added to BCC Eee This indicates the number of name s characters that means device which is Length allowable up to 16 characters This value is one of ASCII converted from hex type Name length of and the range is from H01 ASCII value 3031 to H10 ASCII value 3130 variable Address to be actually read This must be ASCII value within 16 characters and in eee this name digits upper lower case and only are allowable to be entered c XGB Response format ACK response When command is lowercase r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and added to BCC and sent 7 14 Chapter 7 XGT Dedicated Protocol d XGB Response format NAK response Commande ETOT code Hex 2 Bye ASCII value H3130 H57 77 H5342 H31313332 HOS fo When command is lowercase r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC and sent Hex and 2 bytes ASCII code 4 bytes indicate error type For the details Refer to Error code 9 1 4 XGT dedicated communication error codes and countermeasures e
132. tective control design considering the heat from the PLC as well as other devices If ventilating by vent or fan inflow of dust or gas may affect the performance of the PLC system Chapter 10 Installation and Wiring 10 2 Attachment Detachment of Modules 10 2 1 Attachment Detachment of modules Caution in handling Use PLC in the range of general specification specified by manual In case of using out of range it may cause electric shock fire malfunction damage of product N Warninc gt Module must be mounted to hook for fixation properly before its fixation The module may be damaged from over applied force If module is not mounted properly it may cause malfunction gt Do not drop or impact the module case terminal block connector b Do not separate the PCB from case 1 Equipment of module e Eliminate the extension cover at the upper of module e Push the module and connect it in agreement with hook for fixation of four edges and hook for connection at the bottom e After connection get down the hook for fixation at the upper part and lower part and fix it completely Module fixation Hook Chapter 10 Installation and Wiring 2 Detachment of module e Get up the hook for fixation of upper part and lower part and disconnect it e Detach the module with two hands Don t force over applied force Hook for module fixation N Caution b When separating module don t force over applied power I
133. ted at XBC DXXXH Example 1 When memory type included in variable name of computer request Format is W Word and data number of computer request Format is 03 data number of PLC ACK response after execution of command is indicated by HO6 2 03 06 bytes Byte and ASCII code value 3036 is entered in data area Example 2 In just above example when data contents of 3 words are 1234 5678 and 9ABC in order actual ASCII code converted values are 31323334 35363738 39414243 and the contents are entered in data area d XGB response format NAK response F t e Station Error code Tail F Peck ormat name No Command Command type Hex 2 Byte al rame chec Ex of frame R r H1132 ASCII value H3130 H52 72 H5342 H31313332 H03 T DN o Desioa command is lowercase r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC and sent Eri asdia Hex and 2 bvtes ASCII code 4 bvtes indicate error tvpe For the details Refer to 9 1 4 XGT dedicated communication error codes and countermeasures e Example This example supposes that 2 WORDs from MOOO of station No 10 is read It supposes that MOOO H1234 M001 H5678 1 PC request format PC XGB ASCII value H3041 H52 72 H5342 H3036 Tena PESO aga H3032 2 For ACK response after execution of command PC XGB Format name Header Station No Command comme S IN Ee
134. tenance and inspection in order to maintain the PLC in the best conditions 11 1 Maintenance and Inspection The I O module mainly consist of semiconductor devices and its service life is semi permanent However periodic inspection is requested for ambient environment may cause damage to the devices When inspecting one or two times per six months check the following items Check Items Judgment Corrective Actions Within change rate of input Change rate of input voltage voltage Hold it with the allowable range Less than 15 to 20 Scrat specification of Power supply Power supply for input output Power supply for input output Hold it with the allowable range of each module Temperature i Adjust the operating temperature and humiditv with the Ambient IET o a range l Humidity 5 l 5 95 RH environment Use vibration resisting rubber or the vibration prevention Vibration Vibration eee method Play of modules No play allowed Securely enrage the hook Connecting conditions of l l 9 No loose allowed Retighten terminal screws terminal screws Check the number of Spare parts Spare parts and their Cover the shortage and improve the conditions Store conditions 11 2 Daily Inspection The following table shows the inspection and items which are to be checked daily Corrective Check Items Check Points Judgment cone nations Check the screws screws should not be loose Aa base Screws Connection conditions of C
135. tered Register This is used to before EOT in command of Formats of separate reading of Format variable continuous reading and named variable reading Register Format of request Formats must select and use only one of the followings Register No 1 Individual reading of device RSS e 2 Device length 2 Byte Device name 16 Byte ie 1 block max 16 blocks 2 Continuous reading of device RSB Device length 2 Byte Device name 16 Byte Number of data c XGB Response format ACK response Temm rie ue come PR Ta l im no Tail Frame check When command is lowercase x only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and added to BCC and sent 7 16 Chapter 7 XGT Dedicated Protocol d XGB Response format NAK response Registratio Error code ASCII value H3130 H58 78 H3039 H31313332 H03 f Description i command is one of lower case x only one lower byte of the value resulted by adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC and sent Hex and 2 bytes ASCII code 4 bytes indicate error type For the details Refer to Error code cee l Error code 99 4 XGT dedicated communication error codes and countermeasures e Example This example supposes that device MOOO of station NO 1 is monitor registered 1 PC request format PC XGB er on Frame Exampl
136. ters Read Input Registers IXXXX 125 Registers 05 Force Single Coil 0XXXX 1 Coil 06 Preset Single Register 4XXXX li Register Force Multiple Coils OXXXX 1968 Coils 16 Preset Multiple Registers AXXXX 120 Registers Table 5 1 1 Modbus instruction code About request per above code you should set area about XGB PLC memory At Modbus Settings of Cnet active mode window if you click Modbu Settings button which is activated when selecting Modbus ASCII server RTU server the following setting window shows Modbus Settings Bit read area Address Bit write area Address Word read area Address Word write area Address Cancel Figure 5 1 2 Modbus server memory settings window Meaning of each setting item is as follows tem Meaning Roferenoo Bit read area Address Address of XGB relevant to digital Input area Bit address Bit write area Address Address of XGB relevant to digital output area Bit address Word read area Address Address of XGB relevant to analog input area Word address Word write area Address Address of XGB relevant to analog output area Word address Table 5 1 2 Modbus area meaning Address value of each item is base address of each area The setting of above screen is the situation of allocating bit reading are from M0000 bit and Word writing area from D0000 word Base address input value should be in XGB series int
137. time svnchronous signal Clock etc is not transmitted Character code is transmitted with a start bit attached to the head of 1 character and it is finished with a stop bit attached to the tail 2X For transmitting KOREA Transmission Direction EE Stoo Bit Paritv Bit Data Bits Start Bit A 3 Appendix 1 Definition of Terms EEE 4 Protocol This is communication rule established in relation between the transmission side and the receiving side of information in order to send and accept information between two computers terminals or more without error effectively and reliably In general this specifies call establishment connection structure of message exchange form re transmission of error message procedure of line inversion and character synchronization between terminals etc 5 BPS Bits Per Second 2 CPS Characters Per Second BPS is a unit of transfer rate that represents how many bits are transferred per second CPS is the number of the characters transferred for a second Generally one character is 1Byte 8Bits so CPS is the number of bytes which can be transferred per second 6 Node Node is a term that means the connected nodes of the data in the network tree structure generally network is composed of a great number of nodes and is also expressed as the station number 7 Packet Packet a compound term of package and bucket used for packet exchange type to send information as divided in a unit of packe
138. ting k Chann Operating Mode P2P Driver TCP UDP Client Server Partner Port Partner IP address 3 channel Use POP j l a frame definition sett Ng GT client Modbus ASCII client Modbus RTU client 1 Double click amp of P2P 02 and set P2P driver of channel 2 as ___ stcer 1 Double click H r sek of P2P 02 Setting of 5 a S writing operation a 1 Channel Select ch 2 set as XGT client set in P2P channel 2 Since it executes write operation select WRITE 3 Conditional flag to send frame every 200ms use flag F92 4 Command type Data type to write 1 word select single and 2 byte 5 No of variable since no of word Is 1 select 1 6 Destination station number input 1 as station number of server 7 Setting after setting Read area and Save area click OK 1 Read area device address of data saved in the client 2 Save area device address of server to save data x If all settings are completed color of index of channel becomes black lt lt Ls keane KE if Setting of reading operation NC JET 1 Channel conditional flag command type data type No of variable destination station no Same as described in setting is writing 2 P2P function select READ 3 Setting after setting Read area and Save area click OK 1 Read area device address of data saved in server 2 Save area device address of client to save 8 9 Chapter 8 Example Program Setting method
139. tion So slot number should be correct P2P parameter registration window Diverse P2P parameter setting about one Cnet I F module is available Each P2P parameter consists of P2P channel P2P block user frame definition 5 4 Chapter 5 Communication Function 5 2 2 P2P parameter configuration To use P2P service the user executes the setting for the wanted operation at the P2P parameter window Like the following figure P2P parameter consists of three information XG PD File Edit View Online Tools Window Help 23 TEST XGB XBMS S P2P 01 B050 Cnet ffs P2P Channel EB PF Block 2 A User frame definition e PIP OD SB PIP 03 E Stan E High E Pa _XG PD Message wir x i ld idl b Result Parameter check H Used address j OFFLINE pee fo Figure 5 2 2 P2P parameter configuration screen 1 P2P channel E P2P channel setting defining communication protocol of P2P service to execute E XGT Modbus available E Each channel is independent It is applied when active mode is Use P2P settings 2 P2P block E Setting P2P block of 32 acting independently 3 User frame definition m User frame definition registration 5 2 3 Channel information Built in Cnet I F function provides two fixed communication channel as fixed P2P 1 Cnet I F module are allocated P2P 2 and P2P 3 according to equipment sequence and communication channel supports only one channel At Built in Cnet I F y
140. tting Read area and Save area click OK 1 Read area device address saved in the client M2 0 2 Save area deice address of server to save 0x00150 Variable Setting Read area Save area Address 1 040002 M160 No0021 Setting of reading operation 1 gt Read 1 word of M2 of server and save it at M160 of client 1 Ch Conditional flag Command type Data type Destination station no same with step 5 2 P2P function select READ 3 Setting after setting Read area and Save area click OK 1 Read area device address saved in server 0x40002 2 Save area device address of client to save M0160 Chapter 8 Example Program SS sa THdTTT NT a T JSYTTWTTT T JT T _ DH gt Ja Setting method Variable Setting 1 030000 M150 Noo021 Setting of reading operation 2 gt Read 4 words from PO of server and save it at M150 M153 1 Ch Conditional flag Command type Data type Destination station no same with step 6 2 P2P function select READ 3 Setting after setting Read area and Save area click OK 1 Read area device address saved in server 0x30000 2 Save area device address of client to save M0150 Variable Setting Setting of reading operation 3 gt Read 1 bit of P2 of server and save it at 1 bit of M170 1 Ch Conditional flag Command tvpe Data tvpe Destination station no same with step 7 2 P2P function select READ 3 Setting after setting Read area and
141. tween Cnet I F module and external communication device easily 4 Detailed content of information indicated frame monitor window is as follows Standard Information of base number under diagnosis information Slot No Information of slot number under diagnosis LG Monitor select Select channel to monitor selections Channel Form Indicates whether it is IX or RX frame Indicates the protocol type 1 XGT server 2 XGT client Result 3 Modbus server 4 Modbus client Frame monitor 5 User definition frame window 6 Unknown frame that Cnet can t deal with Time when sending receiving the frame In case main unit is standard type XBM D S it indicates elapsed time from start Frame data Indicates the frame data View by HEX Indicates the frame data as HEX i View by ASCII Indicates the frame data as ASCII L I lime g 3 Chapter 9 Diagnosis 9 1 4 Status by service Check list Detail result Status by service Dedicated Service P2P Service Standard information Detailed information B Number SS AT 0 Port number Service count Error count Status Channel 1 0 0 0 Slot Number 0 Channel 2 0 0 0 Link type Cnet Ded icated Dedicated service information Driver type service NONE NONE Multiple Reading 1 Select Online System Diagnosis or click the icon 2 Click the right button on the the Cnet I F module and click Status By Service 3 Click Dedicated Service tap 4 C
142. uests reading data Transmission frame Setting method 1 Click Add Frame and select type HEAD TAIL BODY and input BODY name 3 2 BODY s name is test here NS n we ize a 4 P2P 01 B050 Cnet 3 Eo ser 7 definition Form Numerical constant ransmission eee Constant Data 21 aw HEX 4 lt gt BI Stand E High E P2 DRS test DRS HEAD DRS TAIL 1 If you double click editor window after selecting DRS HEAD tap at right screen segment setting screen is created 2 Select Numerical constant which indicates Hex as ASCII code as Form Input Hex value 2 which indicates STX PHASE iniii ER TEST KGB XEME Ay PSP on feos cnet 7a Channel a p3 1 After standard settings double click 2 As for built in communication base and slot is fixed as 0 Click OK 3 Double click P2P Channel and select User frame definitioni in Channel 2 Group Edit Group name DRS Frame type Transmission A 1 Click user definition frame and click right button of mouse 2 Click Add Group and input group name DRS and select frame type as transmission Frame Edit Ed We 8 22 Chapter 8 Example Program Setting method 1 Select Numerical constant which indicates Hex as ASCII code as Form Input Hex value D Awhich indicates CR and LF Add segment String Constant 01DRS 02 1 Doub
143. ully before installing wiring operating servicing or inspecting this equipment eKeep this manual within easy reach for quick reference Safety Instruction Before using the product For your safety and effective operation please read the safety instructions thoroughly before using the product gt Safety Instructions should always be observed in order to prevent accident or risk by using the product properly and safely gt Precautious measures can be categorized as Warning and Caution and each of the meanings is as follows This svmbol indicates the possibilitv of serious injur Warning vii PT PPI TA or death if some applicable instruction is violated This svmbol indicates the possibilitv of severe or N Caution slight injurv and damages in products if some applicable instruction is violated Moreover even classified events under its caution categorv mav develop into serious accidents depending on situations Therefore we strongly advise users to observe all precautions in a proper way just like warnings gt The marks displayed on the product and in the user s manual have the following meanings AN Be carefull Danger mav be expected JIN Be careful Electric shock may occur After reading this users manual it should be stored in a place that is visible to product users Safety Instruction Safety Instructions when designing b Please install protection circuit on the exteri
144. ully read and understand the Users Manual about the functions performances installation and programming of the product you purchased in order for correct use and importantly let the end user and maintenance administrator to be provided with the User s Manual The Use s Manual describes the product If necessary you may refer to the following description and order accordingly In addition you may connect our website http eng lsis biz and download the information as a PDF file Relevant User s Manual No of User Title Description Manual It describes how to use XG5000 software especially about XG5000 User s MAN IMAM 7 online functions such as programming printing monitoring 10310000512 anua and debugging by using XGT series products XGK XGB Series It describes how to use the instructions for programming Instruction amp using XGK XGB series 10310000510 Programming It describes how to use the specification of power input XGB Hardware MAN output expansion modules system configuration and built in 10310000926 User s Manual High speed counter for XGB basic unit lt describes how to use the specification of analog XGB Analog l input analog output temperature input module system 10310000920 User s Manual configuration and built in PID control for XGB basic unit XGB Position It describes how to use built in positioning function for XGB 10310000927 User s Manual unit XGB Cnet I F It describes how to
145. ure 4 2 5 Communication module registration compete screen 4 4 Chapter 4 Basic Setting e 4 3 How to Set Basic Parameter Communication function used in Cnet I F module is classified as followings 1 Server mode service Without other program at PLC you can read or write information in PLC and data m t can act as XGT server providing XGT dedicated protocol and Modbus server providing RTU ASCII protocol 2 Client P2P service Cnet I F module acts as client in network In case designated event occurs you can read or write memory of other station It can act as XGT client and Modbus client In case of sending receiving user wanted frame and communicating with other device You can define P2P block with max 32 per one channel acting independently 3 Loader service E By using remote 1 2 you can monitor download program about remote PLC To use Cnet I F module you should set transmission specification such as data type like transmission speed and data stop bit You should select transmission specification of system to be same with specification of system Written standard setting value is saved CPU module of PLC and this value keeps though power goes off and this value is not changed before writing Also though Cnet I F module is changed and new module is installed the standard setting value saved at CPU module previously written is applied to new module automatically Standard communication setting parameter and P2P al
146. ut indication LED Input indication LED PADT connection PADT connection connector connector Input connector and Input connector and terminal block terminal block Output connector and Output connector and terminal block terminal block I ETA RUN STOP kev switch y In case key switch is STOP remote mode change available Output indication LED Output indication LED Indicates operation status of CPU module PWR Red Power status indication D Status indication LED RUN Green RUN status indication STOP mode Off RUN mode On Error Red Flicker in case error occurs Built in RS 485 Built in RS 485 connection connector 8 1 Connection wpe uu terminal connection connector ofRS 485 communication connector 8 2 Built in RS 232C Built in RS 232C connection connector connection TD RD SG terminal connection connector of RS 232C connector communication Power connector DC24V power connector az Chapter 2 specification H type CTET E NE ui b n a PFE ti BEJN ee e ALL ALL Input indication LED Input indication LED PADT connection PADT connection USB USB 1 1 supported 1 channel connector RS 232C 1 channel connector Input connector and Input connector and terminal block terminal block Output connector and Output connector and terminal block terminal block Kev switch RUN STOP key switch In case key switch is STOP remote mode change available Output indication
147. wO Rec XGT master 2007 11 26 11 50 00 230 ACKO1wSSETX87 Monitor selections Tran XGT master 2007 11 26 11 50 00 430 ENGO1wSSo104 DWwoO Rec XGT master 2007 11 26 11 50 00 430 ACKO1wSSETX87 Select Channel Tran XGT master 2007 11 26 11 50 00 630 Rec XGT master 2007 11 26 11 50 00 630 Channel 2 v Tran XGT master 2007 11 26 11 50 00 830 Rec GT master 2007 11 26 11 50 00 830 F r a m e Tran XGT master 2007711726 11 50 01 0320 Rec XGT master 2007 11 26 11 50 01 030 Tran XGT master 2007 11 26 11 50 01 230 monitor Focs GT master 2007 11 26 11 50 01 230 ACKO1wSSETX87 Tran XGT master 2007 11 26 11 50 01 430 ENQ01wS50104 DW0 2007 11 26 11 50 01 480 ACKO1wSSETXS7 ki Detailed frame data ji i WSSETX87 1 Select channel 2 and click Start 2 Since dedicated service is ASCII communication select View by ASCII In case of Modbus RTU select View by HEX and in case of Modbus ASCII select View by ASCII Chapter 8 Example Program a 8 3 Modbus Communication Example We assume that system configuration of Modbus communication Modbus RTU mode example is as Figure 8 3 1 and communication setting is as following table RS 485 38400 8 1 None Modbus RTU Server Figure 8 3 1 XGT Modbus communication system configuration example e Mount XBL C41A on no 1 slot of client PLC e Client setting XBM DN32S module Daabt pt gt Write 1 word of M100 of client to M1 o

Download Pdf Manuals

image

Related Search

Related Contents

Quick Start  Sunbeam 5891-33 Bread Maker User Manual  Object reconstruction and 3D mosaicing Outline  Calculadora Científica  Edital Manutenção MATRIZ_28JUL14_v01 -PUBLIC  Manuel d`utilisation  Bedienungsanleitung  Manuel d`utilisation  取扱説明書 - 理化学商品の株式会社バイオクロマト  Prozessor-schaltnetzteil sPs 5630  

Copyright © All rights reserved.
Failed to retrieve file