Home

XGB Cnet User Manual

image

Contents

1. ED XBM DR16S OLOS ED E AAR RABHE Mudut annn HHEHHHHE EXPANSION CONNECTOR MADE IN KOREA v e e e E eje s ojoj jojjo jojolo jojjo WE SG Deh DG E EEEE E TCICICICICICICICI o jo jo jojfa g 2 g
2. ASOD A4 1 Appendix 4 Dimension type H 6 XBC DN32H XEC DN32H 2 Compact type main unit HOLOINNOD NOENVYdx3 XBC DR32H XEC DR32H HOLIINNOOD NOIENWdxX4 A4 2 Appendix 4 Dimension XBC DN64H XEC DN64H XBC DR64H XEC DR64H QERRRORPRRERER QOOOORDAARRaReaoano PET 12 0 H 15101710 i iA a DAE EF iH Out edelste laisis lels slaaie inis IH E DHIA N H AeH MN pooop00pooo0o0n0 on 000 A4 3 EE oF i z bE LJ LY EXPANSION CONNEC TOR Appendix 4 Dimension 3 Extension type Cnet I F module XBL C41A XBL C21A YOLIANNOD NOISNY dxd 4 WADE IN KOREA A4 4 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 Any trouble attributable to oth
3. 6 29 6 6 3 SEND_DTR IEC 6 30 6 6 4 SEND_RTS IEC 6 31 6 6 5 SNDUDATA MK 6 32 6 6 6 ROVUDATA MK 6 34 6 6 7 SENDDTR MK 6 36 6 68 SENDRTS NK secs cece aac eee et ee 6 38 Chapter 7 XGT Dedicated Protocol TAY AGW Dedicated Protocol Sessa sss Sse eso se Sata ese esa seee 7 1 7 1 1 Frame structure 7 2 7 1 2 List Of COMMANAS 7 3 71 2V2o Data AV De Sesto sere aes ee ae ieee ee 7 4 7 2 Detail of instruction 7 6 7 2 1 Individual reading of device R r SS 7 6 7 2 2 Direct variable continuous reading R r SB 7 9 7 2 3 Individual writing of device W W SS 7 12 7 2 4 Continuous
4. Standard Settings Cnet Communication settings Channel 1 Channel 2 Type RS232C RS232C Speed 9600 9600 Data bit 8 8 Stop bit 1 1 Parity bit NONE NONE Parity receiving Not Allowed Not Allowed error ae Modem type Null Modem Dedicated Muse Modem Initialization Station Number 0 0 Time Settings Response waiting time 1 0 50 100ms Delay time setting gt 0 255 10ms Delay time between character 1 0 255 10ms Active mode Channel 1 XGT server Channel 2 XGT server x Modbus Settings ok cane Figure 5 1 12 Cnet I F module XG5000 setting of remote PLC 5 8 Chapter 5 Remote Connection SSS EE 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 c XG5000 setting 1 Set active mode of RS 232C of Cnet I F module at XG5000 as Use P2P settings 2 Set modem type of Cnet I F module RS 232C as dedicated modem Standard Settings Cnet 2 Communication settings Channel 1 Channel 2 Type RS232C RS232C 4 4 Speed 9600 9600
5. 9 6 9 42 ead Input Status 02 Shrine AERE EAEE 9 8 94A o MeadMOlding Registers 03 sssec2s2oeee reese eee ee daca seae soe aean eae op eeeseeoese snes 9 9 9 4 4 Read Input Registers 04 9 10 9 45 Force Single Coll OS lt ssseserac esesrasse casas at tesa dce a a 9 11 9 4 6 Preset Single Register 06 meaa a ncn nsec 9 12 94 7 Force Multiple Colls OF asssese sess a eceree e eee 9 13 9 4 8 Preset Multiple Registers 10 n n nn nnn nnn A 9 15 Chapter 10 Diagnosis 10 1 Diagnosis Function of XG5000 10 1 10 1 1 Checking status of main unit 10 2 10 1 2 Communication module information 10 2 10 1 3 Frame monitor 10 3 10 1 4 Status by service 10 4 10 2 Trouble Shooting by Error 10 7 10 2 1 Trouble shooing when P2P parameter setting error occurs in case of XG5000 CONNECHION 10 7 10 2 2 Trouble
6. 5 8 Chapter 6 Server function and P2P service 6 1 Server Modbus ServiCe n nnn nnn nnn nn nnn nnn nnn cnn nnn RE enai 6 1 6 1 1 XGT dedicated Server 2 22 nen E 6 2 0 12 IOC DUS GEVEN scien EEE reece EEEE EEEE EEES EEEE ES 6 2 6 2 P2P Service 6 4 6 2 1 General 6 4 6 2 2 P2P parameter configuration 6 5 6 2 3 Channel information 6 6 6 2 4 Block information 6 7 6 3 XGT Client SEVICE sssrin eera RRR EERE 6 8 6 3 1 Channel Setting sssi i e aa e E nn nc ncnce 6 8 6 3 2 P2P Block Setting 6 9 6 3 3 Parameter Write n nn nnn nn nn nnn nner A nnn ne nnnn nnn nescence 6 10 6 3 4 Enable Link 6 10 6 3 5 DIAGNOSIS nen nn nnn nn E nnn nen nnn nnn meneame ES 6 11 6 4 Modbus Client Service
7. 6 12 6 4 1 Channel Setting 6 12 6 4 2 P2P Block Setting 6 13 6 4 3 Parameter Write 6 14 6 4 4 Enable Link 6 15 esr DE C6 6 a S 6 15 6 5 User Frame Definition 6 16 6 5 1 Structure of user definition frame 6 16 6 5 2 Channel Setting n n nn nnn nnn enn nnn nnn nnn ne nnn nnn ne nnn ncnn aces 6 19 6 5 3 Writing transmission frame 6 19 6 5 4 Writing receive frame 6 22 6 5 6 Parameter Write iias E EE SEEE 6 25 6 5 7 Enable Link 6 25 6 5 8 DiAQnOSiS Ass 6 26 6 6 UDATA Instruction 6 27 6 6 1 SEND_UDATA IEC 6 27 6 6 2 RCV_UDATA IEC
8. Figure 5 1 6 Connecting to PLC 5 4 Chapter 5 Remote Connection 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 AGI000 Xx Failed connecting to the PLC Figure 5 1 7 Failed connecting 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 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 through making phone call 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 S 70 Chapter 5 Remote Connection
9. Station 0 number General Timeout interval Retrial times Input private modem init command Read Write data size in PLC run mode 1 If unchecked the basic command N D Mana would be use TE S Rexinuim 2 Don t use Wtr at the end of command Send maximum data size in stop mode Cam Caa 3 Use for multiple commands Figure 5 1 9 dedicated modem setting screen 5 6 Chapter 5 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 7 Details 2 Modem Remote 2 Network type Cnet Remote 1 communication module Base number 0 Slot number 0 Cnet channel Channel Remote 2 communication module Station number d IP address Figure 5 1 10 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 4 In case you want to disconnect remote connection select disconnect at online menu Disconnection menu box shows and remote connection is disconnected 5 If disconnection is done normally Cnet I F module and XG5000 are switch into initial mode In case of reconnection retry from 2 item to reconnect 6 Since for
10. 11 12 11 3 1 Modbus RTU server setting 11 13 11 3 2 Setting of Modbus RTU client 11 15 11 4 User defined Communication Example 11 20 11 4 1 User defined communication example system configuration 11 20 11 4 2 User definition communication frame structure 11 21 11 4 3 User definition communication parameter setting 11 22 11 5 SMS transmission method using the CDMA modem 11 26 11 5 1 SMS send message using CDMA modem 11 28 Chapter 12 Installation and Wiring 12 1 Safety Instruction 12 1 12 1 1 Fail Safe circuit 12 3 12 1 2 PLC heat calculation 12 6 12 2 Attachment Detachment of Modules 12 8 12 2 1 Attachment Detachment of modules 12 8 12 2 2 Caution in handling 12 12
11. terminal connection terminal block of RS 485 RS 485 Connection communication terminal block TD RD SG terminal connection terminal block of RS 232C communication AC100 240V power terminal block Notes 1 The S type of XBC XBC doesn t provide a usb port Chapter 2 specification XBC XEC H type XBC DR32H XBC DN32H XBC DR64H XBC DN64H Input indication LED PADT connection connector Input terminal block XEC DN32H XEC DN64H XEC DP32H XEC DP64H XEC DR32H XEC DR64H Status indication LED Built in RS 232C RS 485 Connection terminal block D o RUN O ERR XBC DR32H O PWR 00000000 1 oooo0o000n0 IN XGB J O se m OUT OOOooooo0 OOOOO0O00 Input indication LED PADT connection USB USB 1 1 supported 1 channel RS 232C 1 channel connector Input connector and terminal block a Output terminal block Output connector and terminal block Key switch RUN STOP key switch In case key switch is STOP remote mode change available L Output indication LED Output indication LED eseses sSSS indication Output indication LED eseses sSSS Indicates basic units operation status power status indication RUN status indication STOP mode Off RUN mode On Error Red flicker in case error occurs Built in RS 485 connection terminal block terminal connection terminal
12. 2 Dedicated modem connection The following figure indicates that PC and Cent module is connected by dedicated modem through dedicated line Rs 232C Cable RS 23 C Cable Modem Modem Dedicated line Figure 5 1 8 XG5000 remote connection example by dedicated modem Figure 5 1 8 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 Details Online Settings NewPLC Modem Modem Type Connection settings Dial up Type Modem a Modem settings n aI Portnumber COMI Depth Remote i Preview Baud rate 38400 Phone number Omit
13. 9 4 2 Read Input Status 02 1 Reading bit of input area In case of reading data of bit type of input area request and response frame is as follows Tail of frame is applied in case of ASCII mode a rogues frame Ses es b Response frame In case of receiving normal frame Classification aa ee eats No of byte Tail CRLF Ono wn e e z Response frame In case of receiving abnormal frame B AS 2 Details of frame a Station no indicates station no of slave to read bit of input area b Function code 02 indicating Read Input Status c Address indicating start address of data to read It consists of 2 byte At this time start address conforms to modbus address regulation d Data size size of data to read consists of 2 byte e Frame error check in case of ASCII mode it uses LRC and in case of STU mode it uses CRC for error check It consists of 2 byte f Tail it is applied in case of ASCII mode CRLF is added after LRC g No of byte no of byte of data responding h Data address of request frame is start address and transmits data with byte unit i Error code Error code is expressed by adding 80 Hex and in case of reading bit of output area it is expressed 82 Hex j Exceptional code details of error consists of 1 byte 3 Frame example Example that reads bit 20 38 from station number 1 server acting as modbus RTU a Request frame Classification Stationno
14. Indicates error code shown at monitoring window of XG5000 09 ERR_NO_USE_LINKID Tere is no communicato moas o ERRLFRMLLENGTH Lenat of receive tame is rotconeet o0 ERR_ASCILHEX ERR ASCHEX conversion of receive tame isnot conect A3 2 Appendix 4 Dimension Appendix 4 Dimension Unit mm 1 Stand type main unit S type XBM DN16S 32S CED XGB 2 XBM DN16S PWR O RUN O ERR O JE RS 232C ARBHARAA HANAN AEEHEBEE RUN mo o ce O EXPANSION CONNECTOR gg P00 07 MADE IN KOREA
15. Size Constant Size 4 Constant Size Constant Size 4 Constant Data 01DRS 0K HEX Data HEX C Assign memory Assign memory C Assign memory Assign memory Conversion NONE im NON Conversion NONE v Swap NONE NOI Swap NONE v 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 10 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 YIX XBCH P2P 01 Frame DRS_RECE HEAD X a CPUH aa Nu Form Size Data Memory AE PaE CAO f o0 Numerical constant 1 02 a D Unspecified Network a 2 XBCH BOSO LHZ Cnet 4 H P2P O1dnternal XBCH P2P 01 Frame DRS_RECE TAIL X P2P Channel f Nu Form Size Data Memory f H P2P Block o 00 Numerical constant 1 0D a Y User frame definition 01 Numerical constant 1 OA 5 2 a 3 DRS Transmission fj HEAD i fl TAIL XBCH P2P 01 Frame DRS_RECE RECE_DRS X i GA test i Nu Form Size Data Memory a f DRS_RECE Reception i 7 a HEAD 00 String Constant 9 01DRS OK 4 TAIL 01 Fix sized variable 4 A gt We f i RECE DRS E sno Siero E enact System Variable 203 Fix sized variable sna 1 This is entire frame to receive response data of temperature controller 1 11 24 Chapter 11 Exampl
16. a Operation setting Available when type is RS 422 485 When using as Modbus ASCII server data bit should be 7 Setting method 11 1 Chapter 11 Example Program Selecting 1 Select active mode of server for user to use 4 the active 2 XGB Cnet I F module supports XGT server Modbus ASCII server Modbus mode RTU server WaT XECH Writing parameter Standard settings Cnet base0 slot0 EJ High speed Link 1 Select Online Write or click icon 2 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 i ee ed L e RUH Checking STOP the operation Detailed Module Information ERR Frame Monitor anon kia TI Loop Back Test Status By Service system Log R3 232C Coho to System synchronization 1 Select Online Communication module setting System Diagnosis or click icon 2 Click the right button on the relevant module and click Frame Monitor or Status By service to check Chapter 11 Example Program 11 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 r Ee Settings Chet i Communication settings Type RS232C S485 Speed Data bit Stop bit Parity bit Parity receiving Not Allowed Jot Allowed error Mod
17. 12 3 Wire 22 12 13 12 3 1 Power wiring 12 13 12 3 2 VO Device wiring 12 16 12 4 Channel Operation during Normal Run 12 17 12 5 Communication Interface Connection Method 12 18 12 5 1 RS 232C Interface XBL C21A 12 18 12 5 2 RS 422 485 interface Built in communication 12 20 12 5 3 RS 422 interface XBL C41A 12 21 12 6 Cable Specifications 2 2 nnn nn nnn nnn nnn nnn rn nnn nn ncn 12 23 12 6 1 Electrical characteristic 12 23 12 5 2 External characteristic 12 23 12 7 Terminal Resistance In case of using RS 422 485 12 24 Chapter 13 Maintenance 13 1 Maintenance and Inspection 220n nn nnn nn ncn ncn rnc nce 13 1 132 Daily MASPECION tessa tense eae te eS eee elle See eee Cee eS eee eee 13 1 1323 Periodic INSDCCHONy ecsesssse dss sense ae e a arses sceaet s
18. 6 4 5 Diagnosis User can check the normal operation to using diagnosis feature Select Online gt Communication module setting System diagnosis Right click on the module to check and select frame moniter or status by service Then user can check the communication status For more information please refer to the Chapter 10 Diagnosis Chapter 6 Server function and P2P service 6 5 User Frame Definition There are many protocols according to producer of communication device and it is impossible to supports diverse protocols So if the user defines protocols and writes program Cnet I F module allows the communication between different devices according to defined protocol In order to communicate with device which doesn t use specific protocols XGT protocol Modbus protocol the user can directly define protocol used in the device the user want to communicate and communicate At this time the user should define TX and RX frame so that it meets partner device s protocol User defined protoco HEAD BODY TAIL RX frame Pp RXfame Ae a ql Figure 6 5 1 User frame definition 6 5 1 Structure of user definition frame When writing frame by user definition frame frame is divided into HEAD that start of frame TAIL that end of frame and BODY that data area Each HEAD TAIL and BODY is divided into segment Total size of one frame should be less than 1024 byte Frame Segment Segment SegmentN 1 Structure of HEA
19. Destin Conditional Destination me Driver Setting PP function ii Command type Data type e Data size ton Laan runba Frame Setting Varnable setting contents p om Et Driver will be changed by P2P channel setting POP function 1 READ Select if read the data from destination station 2 WRITE Select if write the data to destination station 1 Enter the time of data transmission by using special flag or Conditi fi bit contact ondiiona tag f F00082 2 XGK type F0090 20ms cycle M00001 2 XGI type _T20MS 20ms cycle MX01 Command toe 1 Single Read or write max four data of memory area to Command type destination station Ex M01 M10 M20 M30 Single 2 Continuous Read or write continuous data to destination Continuous station Ex M01 M10 1 Command type is single J BIT 1BYTE 2BYTE 4BYTE 8BYTE 2 Command type is continuous 1BYTE 2BYTE 4BYTE 8BYTE la 1 It is activate when command type is single Select number No of variables of data to transmission 2 It will be fixed 1 when command type is continuous 7 Data size It is activate when command type is continuous Setting Tee ai is 1 120byte In case of data type is 1BYTE Detestation station It means destination station number and setting range is number 0 31 k P2P function is READ ee Read area Device area of data saved in destination a station server Setting r 2 Save area Device area of self station to save the
20. Indicates operation status of CPU module PWR Red Power status indication 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 uo terminal connection connector ofRS 485 communication connector Built in RS 232C Built in RS 232C connection connector 8 2 connection TD RD SG terminal connection connector of RS 232C connector communication DC24V power connector XBC DR 10E XBC DN 10E XBC DP 10E XBC DR 14E XBC DN 14E XBC DP 14E XBC DR20E XBC DN20E XBC DP20E Chapter 2 specification XEC DN 10E XEC DN 14E XEC DN20E XEC DN30E XEC DP 10E XEC DP 14E XEC DP20E XEC DP30E XEC DR 10E XBC XEC E type Ja Seer XBC DRSOE Input indication LED Input indication LED PADT connection PADT connection RS 232C 1 channel connector input terminal block Input connector and terminal block connector Input connector and terminal block terminal block os Output terminal block Output connector and terminal block In case key switch is STOP remote mode change available 2 Output indication LED Output indication LED Status indication LED Indicates basic unit s operation status PWR Red power status indication RUN Green RUN status indication STOP mode Off RUN mode On Error Red
21. Ltd _ Dalian China LS Industrial Systems Beijing Office _ Beijing China Address No 15 Liaohexi 3 Road Economic and Technical Development zone Address B Tower 17FL Beijing Global Trade Center B D No 36 Dalian 116600 China East BeisanHuan Road DongCheng District Beijing 100013 PR China Tel 86 411 273 7777 Fax 86 411 8730 7560 e mail cuibx Isis com cn Tel 86 10 5825 6027 666 Fax 86 10 5825 6028 e mail xunmj Isis com cn m Homepage LS Industrial Systems Guangzhou Office _ Guangzhou China http www lsis com Address Room 1403 14FL New Poly Tower 2 Zhongshan Liu Road Guangzhou P R China Tel 86 20 8328 6754 Fax 86 20 8326 6287 e mail chenxs lsis com cn x LSIS constantly endeavors to improve its product so that 2015 1 information in this manual is subject to change without notice LSIS Co Ltd 2014 All Rights Reserved
22. 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 User s Manual XGT Series Main Unit XBM STYPE ChnetI F XBL C41A Built in Cnet XBC XEC ETYPE module XBL C21A XBC XEC S TYPE XBC XEC H TYPE A Safety Instructions eRead this manual carefully before installing wiring operating servicing or inspecting this equipment eKeep this manual within easy reach for quick reference LSS http www lsis com 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 symbol indicates the possibility of serious injur Warning Ai D O A or death if some applicable instruction is violated This symbol indicates the possibility of severe or Caution slight injury and damages in products if some applicable instruction is violated Moreover even classified events under its caution category may develop into serious accidents depending on situations Therefore we strongly advise users to observe all precautions in a proper way just like
23. a M 16 16 16 16 point point point point point point Output module for fail safe Equip output module for fail safe to last slot of system Fail safe circuit example On delay timer F0093 Off delay timer O ernal load CPU unit 1c Output module Since P80 turn on off every 0 5s use TR output 12 5 Chapter 12 Installation and Wiring 12 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 l24v X 24 W I5v power consumption of each module DCS5V 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 DCS5V 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 by each module e Waav laav X 24 W d Average power consumption by output voltage drop of the output m
24. abnormal count normal end L07041 LX11265 _P2P2 ERROO Indicates P2P parameter 2 0 Block service abnormal end 10705 LW705 _P2P2 STATUSOO Indicates error code in case of P2P parameter 2 0 Block service abnormal end Word normal count Word abnormal count normal end 108961 LX14337 _P2P3 ERROO Indicates P2P parameter 3 0 Block service abnormal end 0897 m1 W897 _P2P3_ STATUSOO Indicates error code in case of P2P parameter 3 0 Block service abnormal end Word normal count Word abnormal count 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 ae o e se es a o e a y eaaeo remana ore ad ya eaaa remana a a ua oaao remanen OO aa wus eaaa nares Remark Q In XGB S type Network register is available only monitoring Read Only Appendix 3 Communication Error Code 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 code Error type Error details and causes Example Number of blocks Number of blocks exceeds 16 at Individual 01rSS1105 MW 10 exceeded Read Write Request Variable length Variable Length exceeds the max size of 94 SS0916D MW100000000 error 16 00
25. 0007 Data type error Other data type than X B W D L received 01rSS0105 MK10 Data length area information incorrect 01rSBO5 MW 10 4 In case is unavailable to start with 01rSS0105 MW 10 0011 Data error Variable s area value wrong 01rSS0105 MW amp ele value is written for Bit Write than 00 01wSS0105 MX1044 Monitor execution 0090 Unregistered monitor execution requested error Monitor execution 0190 Reg No range exceeded error 0290 Monitor reg Error Reg No range exceeded Device memory a 1132 Other letter than applicable device is input error 0003 004 0 Request exceeds the max range of 60 01WSB05 MW 1040AA5512 1232 Data size error Words to read or write at a time 1234 Unnecessary details exist as added 01rSS0105 MW 10000 All the blocks shall be requested of the Data type identical 01rSS0205 MW 1005 MB1 discordant data type in the case of Individual 0 Read Write 1432 Data value unavailable to convert to Hex 01wSS0105 MW10AA 5 Variable request 1332 Request exceeds the area each device 7132 jarea 01rSS0108 MWFFFFF supports exceeded A3 1 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
26. Danger gt When wiring 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 gt For screwing use designated torque range If it is not fit it may cause short fire malfunction gt Let no foreign material enter such as garbage or disconnection part into module It may cause fire malfunction error 12 3 1 Power wiring 1 In case voltage regulation is larger than specified connect constant voltage transformer al axo F l In 24VDC 7mA 2006 OUT 20 21 22 2 2D2E 2F w N 30 31 32 33 34 35 36 37 38 39 3A3B3C3D3E 3F z
27. Figure 6 2 3 P2P channel setting screen User frame definition In case of transmitting receiving user frame definition XGT client Select in case of executing read write of XGT memory Modbus ASCII client Select in case of acting as Modbus client using ASCII mode Modbus RTU client Select in case of acting as Modbus client using RTU mode Table 6 2 1 Driver table About communication channel in case of selecting P2P driver as XGT or Modbus user frame definition can not be used 6 6 Chapter 6 Server function and P2P service 6 2 4 Block information If you select P2P block of each parameter at P2P parameter setting window P2P block setting window shows P2P Channel P2P Block Destina Use P2P i GT client i GT dien See neeusemmoenseee senna ees semsnnGnsGeneeeneenseeneanenenaennee Cease enennemesem sen ee ae ee eee eemeemenenneneeeeseemeenseemenmnnananes Destina Use P2P ioo Modbus ASCII client 1 Modbus ASCII client Destina al rei Destination Ho Driver Setting P2P eee Seles Command type Data type pes Data size ean station r mber Frame Setting w _ Modbus ATU client Destina Use P2P i User frame definition User frame definition Spee eee eee eee eee eee eee eee eee eee eee eee eee eee eee ees Cees ne meneame emeemee ee ee eee eeneemensnneneeee see eeenseeneannnennaea Figure 6 2 4 P2P block setting screen You can set up to 32 independent blocks If you select temporary block
28. G powe r 185VA 50 60Hz O 1 2 V2C 220VAC 2AIP SAIC 6 Bll eal 2 Ol o o o o 2 oo l o o 100V 240V eljes EA AC100 240V savne ped A ims aa vecoam xema xen AP REAR ERRARE AT Ta ET T gfe rez wt Bi Gielelalelelelsfe Tele lelle z FER ESEREE ERARE RRE a bat Tet Ter TA a et TT To Tn thle eTslslstelelelte Ao ate eae aban Ses Pre 882 H q HAREHRERHEE O 5 vermin eem eoa seen a d FA d FARRER Constant o Oe Vee aye voltae CXD transforme 2 Connect power that include small noise between line and earth When there are many noise connect insulated transformer 12 13 Chapter 12 Installation and Wiring 3 Isolate the PLC power I O devices and power devices as follows Main power AC2200V QS e 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 c A
29. Start switch Proaram zel L_ cn mo c t 1 4MC MC Stop SW Input module F B Pm j it T aa w 5 Output for warning Lamp or buzzer RUN by F009C x Power off to output device Output module Emergency stop 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 1 Turn on power 2 Run CPU 3 Turn on start switch 4 Output device runs by program through magnetic contactor MC On 12 3 l In case of AC DC Power a Fuse Fuse een CPU F0045 DC power E Pm OG FOOC a T gee Timer setting Pr which DC input Tm signal is TH configured Papo 410 sat roan RAL a CHpoL o MC a Stop Voltage relay sl equipped Output for warning Lamp or buzzer Output module Yr ey i Ly F aah Yi a pha Outout module Run by FOO9C 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 2 Turn on timer after DC power is stabilized 3 Turn on timer after DC power is stable 4 Turn on start switch 5 Output device runs by program through magnetic contactor MC On Chapter 12 Installation and Wiring 2 System design circuit example In case of using ERR contac
30. This example is a method to send CDMA modem road SMS using the UDATA function of the Cnet I F module This example made the CDMA modem in an exercise to send a message to using BSM 856R RCU 890 Figure 11 5 1 below shows the environment where Cnet module and a CDMA modem were constructed CDMA Modem 1 BSM 856R IiE a E C KBL CA CDMA Modem 2 RCU 890 a E eS XBL C iA Figure 11 5 1 Example of CDMA communication system gt Cnet I F module The Cnet I F modem is used by a use to control a CDMA modem and uses CDMA modem and the RS 232 communication CDMA modem send the AT instruction controlling a CDMA modem to receive it and to control a modem gt CDMA modem CDMA modem perfome the functions such as setting a modem in the AT instruction which modem received from Cnet I F modem making a call SMS transmission and receive and the M2M modem connection Please refer to the user s manual which was provided by production Corporation th control a modem because the AT instruction are different by modem distinction between production company When a modem uses DTR RTS of RS 232 SEND DTR SRND_RTS can control a signal of DTR RTS in the UDATA instruction for the normal communication gt Parameter setting T BSM 856R RCU 890 RS 232C RS 232C 115 200 115 200 a ee ee Y O Note1 BSM 856R and RCU 890 s basic value is 115 200 Factory initialization setting The communication setting of the modem is possible acco
31. a BCC When ASCII value of each 1byte except ENQ and EOT is summed the lowest 1byte of the result value is BCC Error information is shown as hex 1byte 2bytes of ASCII code Error code For more information please refer to the error code of the inverter user manual Example This describes if the user want to read 1Word data from address number 1230 of station number 1 of inverter XGB request format XGB Inverter Fane Ganpa evo Hor a o 1230 m Bcc f Eo soma ro reor ree roe wet Hoe For ACK response after execution of command XGB lt Inverter a ee o ma BCC ET TASC vave He roo rea oea Foe For NAK response after execution of command XGB lt Inverter meem Nak wor A we eo cor 8 6 Chapter 9 Modbus Communication ee Chapter 9 Modbus Communication 9 1 General Modbus protocol is specified open protocol used between client server which executes reading writing data according to function code Communication between devices that use Modbus protocol uses Client Server function in which only one client processes the data 9 2 Modbus Protocol 9 2 1 Kind of modbus protocol There are two communication modes of Modbus ASCII and RTU No of data per Oo one character Even Odd None Even Odd None Pr Stop bit 1or2 LRC Longitudinal Redundancy Check CRC Cyclical Redundancy Check Start of frame Colon 3 5 Character no response time 9 2 2 St
32. e Station No e Command type is supported R read and W write 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 8 1 Chapter 8 LS Bus Protocol 2 Command frame sequence Sequence of command request frame Stati rok fen comana Fomateset Bcc EOT Inverter ACK response Station Inverter NAK response 8 1 2 List of commands List of commands used in LS Bus communication is as shown below Classification omen ss Commandtype Treatment Code ASCII code fomimowsend R Hse Read inverter variable of Word Continuous write cw ne Write inverter variable of Word 8 2 Chapter 8 LS Bus Protocol 8 2 Detail of instruction 8 2 1 Continuous writing to inverter device W This command is to write PLC data in specified address of inverter LS Bus Client Request format Format Station Device Address of Frame Header Command Data Tail name No Length inverter check Frame ENQ H20 W H6 0100 HOOE2 BCC EOT Example ASCII Sais H05 H3230 H57 H36 H30313030 H30304532 H04 When ASCII value of each 1byte except ENQ and EOT is summed the lowest 1byte of the result value is BCC Device This specifies how many Words you will write As converted value to ASCII the range is from H01 Length ASCII value 3031 to
33. 1 Double click P2P Channeli and select User frame definition in Channel 1 2 Click the P2P to enable and click Write 11 27 Chapter 11 Example Program eee 11 5 1 SMS send message using CDMA modem The Cnet I F module communicate with a CDMA modem using the UDATA communication instruction The communication method speaks the AT instruction to offer with a CDMA modem Please refer to the use manual of the CDMA modem for the AT instruction This example is the methods to explain SMS message send and receive using Figure 11 5 1 gt DTR RTS setting The some CDMA modem uses the modem signal for RS 232 communication Therefore to communicate with such a modem you should set DTR RTS Please refer to the use manual of the CDMA modem for this and the details contents DTR RTS setting DTRIRTS Setting Control DTR RTS Signal level INST3 XEC Instruction D00050 D00052 D01610 CH DTR_Statu D00050 D00052 D01620 CH RTS_ Status XBC Instruction 1 SEND _DTR SEND_RTS instruction controls a signal level of DTR RTS of the modem connection port 2 If use BSM 856R RCU 890 of Figure 11 5 1 set a signal of DTR RTS in SET 1 DONE 11 28 Chapter 11 Example Program gt SMS send message using XEC instruction Sequence Program example BSM 856R SMS send Comment JBSM 856R SMS SEND PROGRAM ba ATSSMSMO RECEIVER SENDER 4098 TEXT HEX CR mment _ ATS SMSM0 0104321432
34. 1 Select Online Communication module setting System Diagnosis or click the icon 3 2 You can check the status of main unit by clicking CPU module information after clicking main unit 10 1 2 Communication module information Check list List Context Module kind Internal Cnet Base Number Slot Number Channel 1 Number Channel 1 Connect Communication drann Channel 2 Connect m od u le Hardware Error Hardware Yersion inform ation 075 Version Disable Dedicated Service None xGT Parameter information OK 1 Select Online Communication module setting System Diagnosis or click the icon BS 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 a Baca nner Base information of communication module under diagnosis It is fixed as 0 at XGB PLC Siocamiuct Slot no of communication module under diagnosis In case of built in communication it is fixed as 0 Station number Station no of relevant channel used at dedicated service P2P a Information of communication type RS 232C RS 422 of relevant Connection method channel Indicates whether hardware of communication module is normal or not ee Version of communicati
35. 10310000920 configuration and built in PID control for XGB basic unit E OSEN It describes how to use built in positioning function for XGB 40310000927 User s Manual unit XGB Cnet I F It describes how to use built in communication function for 40310000816 User s Manual XGB basic unit and external Cnet I F module XGB Fast Ethernet VF 1 describes how to use XGB FEnet I F module 10310000873 User s Manual Contents Chapter 1 General 1 1 General 1 1 1 2 Characteristic 1 2 Chapter 2 Specification 2k GONE all SPC CIICALION erede a 2 1 2 2 Performance Specification enenone nen cenn e nennanea 22 2 9 Name and UNCHON Of Gah Dall sssrini een eE 2 4 3 1 XGB System Configuration 22 222 enn e ss nner n en nee 3 1 3 1 1 H type system configuration 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 communicatio
36. 1273 15 24 02 420 STX 0O1DAS 02 0001CRLF 2 Rec User define 2007 1273 15 24 02 840 STXO1IDRS OK 0016 02D User define 2007 1273 15 24 03 420 STXO1DARS 02 0001CRLF Monitor selections User define 2007 1273 15 24 03 840 STX01DRS 0K 0016 02D User define 2007 1273 15 24 04 420 STXO1DRS 02 0001CRLF Select Channel User define 2007 1273 15 24 04 840 STXO1IDRS 0K 0016 02D i User define 2007 1273 15 24 05 420 STXO1DRS 02 0001CRLF Channel 2 w User define 2007 12 3 15 24 05 840 STXOIDAS OK 0016 020 User define 2007 1273 15 24 06 420 STXO1DAS 02 0001CRLF User define 2007 1273 15 24 06 840 STXOIDRS OK 0016 02D User define 2007 1273 15 24 07 420 STXO1DAS 02 0001CRLF User define 2007 1273 15 24 07 840 STXO1DRS 0K 0016 02D User define 2007 1273 15 24 08 420 STXO1DRS 02 0001CRLF x 2007 1273 15 24 08 840 STXO1IDAS OK 0016 02D User define 200771273 15 24 09 420 STXO1DRS 02 0001CRLF User define 2007 12 3 15 24 09 840 STXOIDAS OK 0016 02D R B Detailed frame data STAOIDAS OK 0016 02D6CRLF 1 Select Online Communication module setting 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 XG5000 11725 Chapter 11 Example Program eee 11 5 SMS transmission method using the CDMA modem
37. 16 Chapter 11 Example Program ee Setting method Destin Data size tion statio q Destination Index Ch Driver Setting P2P function i ERRER N Command type Data type Carna Frame Setting Variable setting contents No of variables 1 Modbus ATU client WRITE F00092 Single WORD 1 Setting Number 1 READI MO100 SAVE1 0 40001 1 Modbus RTU cient WRITE FOO092 Continuous WORD 1 4 6 1 Setting Se ERPE EES Setting of writing operation 3 1 Modbus ATU client WRITE F00092 Single BIT 1 M 1 Setting Number 1 READ1 M0001F SAWE1 0x00142 4 Variable Setting l Read area Local Address XBCH Save area Remote Address 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 M0001F 15 bit of M1 2 Save area deice address of server to save 0x00142 ond bit of M20 When inputting M1 F it is converted into MOOO1F in the XG5000 Device address of server is Hex value No of gt 9 Destination variables station number Conditional flag Command type Data type Driver Setting P2P function Frame Setting Variable setting contents Modbus RTU client WRITE FOO0S2 Continuous BIT BE at neekin Setting of i E H Variable Setting writing i i Read area Local Address XBCH opera
38. 2 Details of frame a Station no indicates the station no of slave to write single bit of output area b Function code 05 indicating Force Single Coil c Address start address of data to write and it consists of 2 byte At this time start address conforms to modbus address regulation d Output in case of turning on address set in the Address FFOO Hex is indicated and in case of turning off addres set in the Address it is indicated OO00 Hex e Frame error check in case of ASCII mode it uses LRC and in case of STU mode it uses CRC It consists of 2 byte f Tail it is applies in case of ASCII mode CRLF is added after LRC g No of byte no of byte of response data h Error code error code is expressed by adding 80 Hex to function code and in case of Force Single Coil it is expressed as 85 Hex i Exceptional code indicates detail of error and consists of 1 byte 3 Frame example Example that turning on 9 bit to station number 1 server acting as Modbus RTU mode a Request frame ey Statio Function Output Error check Upper byte Upper byte Trane o os o oe elo b Response frame In case receiving normal frame a Statio Function Output Error check nno code Upper byte Upper byte Frame a o o FF oO c Response frame In case of receiving abnormal ETN Classification Stationno Stationno Function code code Exceptional code Frame a S A Chapter
39. 485 Delay time e If receives the character while in set time it process as one frame between 1 Setting It can be set regardless of setting character 2 If set delay time 0 3 5 character time will apply that fits communication speed Table 4 3 1 communication parameter setting item 4 7 Chapter 4 Basic Setting The meaning of each item is as follows 1 Parity bit Cnet 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 i Odd lf the number of 1 in one byte is odd parity bit becomes 1 ne Table 4 3 2 Parity content table 2 Operation mode setting Sets operation mode pop Each port acts as client and executes the communication P2P setting by setting P2P parameter reference lt acts as XGT server supporting XGT dedicated XGT server a Dedicated service communication Modbus Modbus ASCII server It acts as Modbus ASCII server a communication Modbus Modbus RTU server It acts as MOdbus RTU server a communication Table 4 3 3 operation mode setting item Note 1 Character Time The time of sending one character This value can be changed according to communication speed In case of communication speed is 9600bps Character Time Bit number of one character 11 Communication speed Character time 11 9600 3 5 4 01ims Chapter 4 Basic Setting eee 4 3 2 Setting method You
40. Add Frame 1 Check creation of frame 2 Select frame name and click right button of mouse 3 Click Add frame to create HEAD TAIL and BODY 4 Group Edit when changing frame name 5 Delete Group when deleting frame Frame Edit Creating HEAD Bian 4 Name TAIL TAIL BODY Loe i cone 1 After clicking Add frame select type of frame 2 Type HEAD TAIL BODY 3 Select HEAD 4 To create TAIL BODY repeat step 3 5 Name of frame edit window is activated when frame type is BODY 6 Available to creating many BODYs with different name 6 22 Chapter 6 Server function and P2P service eee Seq Setting Setting method Add segment HEAD registration 1 Double click HEAD Then edit window is created 2 Double click edit window or click right button and select Add segment 3 Select Form 1 Meaning of each form is same as described in the transmission 4 Input value into Data 1 If double click TAIL edit window shows TAIL registration 2 Setting method is same with step 5 3 Add BCC is activated after inserting segment Add segment Vol haul SIZE vi r Numerical constant String Constant Variable sized wariak BODY registration Assign memory Conversion NONE Swap NOME 1 Doule click BODY and select data form Numerical constant and string constant are same as described above Variable sized variable used when frame length change available to insert up to 4 for one body Ass
41. Adjust the operating temperature and humidity with the Ambient a defined range Humidity 5 95 RH environment Vibration levbraion Use vibration resisting rubber or the vibration prevention method Play of modules No play allowed Securely enrage the hook Connecting conditions of J 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 13 2 Daily Inspection The following table shows the inspection and items which are to be checked daily i Corrective o ee Check the screws Screws should not be loose pes ase Screws Connection conditions of Check the connecting screws Retighten Input Output module Check module cover eked ase N Check for loose mounting screws Screws should not be loose Retighten Connecting conditions of Screws terminal block or extension o PAN E NERTO OEE Proper clearance should be provided cable Connecting of expansion cable Connector should not be loose PWR LED Check thatthe LED is On On Off indicates an error See chapter 15 Run LED Check thatthe LED is On during Run On flickering indicates an error See chapter 15 ERR LED Check thatthe LED is Off during Run Off On indicates an error See chapter 15 Input LED LED indi hen input is On nee Check that the LED turns On and Off ee hin j k See chapter 15 Off when input is off OutputLED Check thatthe LED t
42. CDMA_Sen ATSSSMSMO d_Data SCH h0000 D01001 z001 100 Search buffer CDMA_Sen rp number d_Lenth g 0104321 DO01000 Z 4321 001 CDMA_Sen Receiver number d_Data CD MA_Send_ Lenth 100 P CDMA_dat Send buffer clear 1 a_ made SMOV Search buffer Z001 20 Last string number SCH h0000 D01001 z001 CDMA_Sen d_Lenth 0101234 D01000 Z 1234 001 CDMA_Sen Sender number d_Data CD MA_Send_ Lenth MOV Search buffer Z001 32 Last string number SCH h0000 D01001 z001 10 0 CDMA_Sen d_Lenth i a DO01000 Z SMOV 0 4098 001 CDMA_Sen d_Data CD MA_Send_ Lenth SCH h0000 D01001 Z001 100 CDMA_Sen d_Lenth 48656C6C D01000 Z SN 6F 001 CDMA_Sen Send data d_Data CD Hello MA_Send_ Lenth AT command Fixed string 0 4098 Search buffer Z001 42 Last string number SCH h0000 D01001 z001 CDMA_Sen d_Lenth MOV h000D D01000 Z 001 CDMA_Sen d_Data CD MA_Send_ Lenth SCH h0000 D01001 z001 100 CDMA_Sen d_Lenth MUL Z001 2 D01600 CDMA_Sen CDMA_dat d_Lenth a_length M00110 BNDUDATA 8 D01000 D01600 D00130 CDMA_Sen CDMA_dat d_Data a_length 11 32 Search buffer Z001 52 Last string number Input CR Check Savedata Word Check Senddata Send bytes num Word 2 Chapter 11 Example Program 1 Upper example program generate the AT instruction for the SMS send message of BSM 856R It generate the AT instru
43. Click the P2P to enable and click Write Chapter 11 Example Program eee Setting method s u ia E E H RUH Checking STOP the operation ERR Detailed Module Information Frame Monitor anon im Loop Back Test status By Service system Log R3 232C Coho e System synchronization 1 Select Online Communication module setting System Diagnosis or click icon BS 2 Click the right button on the relevant module and click Frame Monitor or Status By Service to check Chapter 11 Example Program ENN nn nETETTEEOTTOTTEOLLLLLLLLL _ 11 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 10 2 1 and communication setting is as following table RS 232C 36400 6 1 None Dedicated Communication Server Figure 11 2 1 Example of dedicated service system configuration e Client setting Setting content XBM DN16S XBL C21A 1 slot module speed Pp Databit J o ooo B Pp Stopbit o D 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 11 2 1 client setting e Server setting Setting content XBC DN32H Main unit b
44. 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 H04 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 Chapter 7 XGT Dedicated Protocol e XGB response format NAK response Format name neea pa Command Command type Error code Tail Frame check Hex 2 Byte CA Pasciivaue mis Haas Hera Hsss3 rorstsss2 Hoe Explanation Msa 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 Appendix 3 error codes and Error code countermeasures e Example xos l 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 P0O1 e PC request format PC XGB Format name Header tad C 7 Comman j Number of Variable Variable name Device Variabl
45. Error o imtarstate ital sate betore stucion operation Input range 1 2 is exceeded 5 Parameter setting CNET module s parameter is not set as User defined or link error enable is not set Instruction timeout No response from module or maximum scan time is exceeded 10 scan P Version mismatch XGI CPU version is under V3 9 XGR CPU version is under error V2 6 or CNET module version is under V3 2 c Program example DONE STAT j REII BASE SLOT CH DATA alZE Order to send up to 1 024 Byte with CNET module attached to BASE SLOT Chapter 6 Server function and P2P service E U U 6 6 2 RCV_UDATA IEC RCV_UDATA Availability Flags User defined data send XGI XGR sd REQ requires to execute the function block REQ DONE BASE base number SLOT slot number ee eee CH channel 1 or 2 SLOT SIZE DATA data area to save RCV_UDATA DONE maintains 1 after operation ARRAY 1024 OF BYT STAT completion and ERR info SIZE received data size a Function 1 RCV_UDATA instruction saves received user defined data UDATA from CNET module 2 BASE and SLOT should input a base and the slot number that CNET module was attached to now 3 CH means a channel number and must set 1 or 2 4 DATA must be declared only ARRAY OF BYTE type 5 Array size is 1 1024 byte 6 Save to transmit buffer as number as SIZE from DATA O Limit of data size is 1024 at once 7 If 1 is output by Done and STAT it
46. 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 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 7 1 Chapter 7 XGT Dedicated Protocol 7 1 1 Frame structure 1 Base format a Request frame external communication device XGB pens Station Command Tail Frame check b ACK response frame XGB external communication device when receiving data normally Structurized data area or Tail Frame check ACK number type Null code ETX BCC c NAK response frame XGB external communication device when receiving data abnormally Header Station Command Tail Frame check NAK pe ene ee eee 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 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
47. It consists of 2 byte b When using the XGT Cnet I F module range of station is 0 31 c Station number 0 is used for client d When server responds it contains self address to response frame to know client s response 3 Data area a Transmits the data by using the ASCII data data structure changes according to function code b In case of receiving normal frame it responds as normal response c In case of receiving abnormal frame it responds by using error code 4 Error check area How to check error of frame takes 2 s complement except start and end of frame and converts it as ASCII 9 3 Chapter 9 Modbus Communication 9 3 2 Frame structure in the RTU mode Frame structure in the RTU mode is as follows Station 1 Characteristic of RTU mode a It uses hexadecimal b Start character is station number and frame is classified by CRC error check c Start and end of frame is classified by adding idle time of 1 bit d Between frames there is interval of 3 5 character time When exceeding 1 5 character time it is acknowledged as independent frame 2 Address area a It consists of 1 byte b When using the XGT Cnet I F module range of station is 0 31 c Station number 0 is used for client d When server responds it contains self address to response frame to know client s response 3 Data area a Transmits the data by using the Hex data data structure changes according to function code
48. 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 Speed Data bit Stop bit Parity bit NONE Parity receiving Not Allowed Not Allowed error Modem type Null Modem Null Modem Modem Initialization Station Number Time Settings Response waiting time 0 50 100ms Delay time setting 0 255 10ms Delay time between character 0 255 10ms Active mode Channel 1 XGT server Channel Modbus ASCII server Modbus Settings Figure 6 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 O Chapter 6 Server function and P2P service 06 Preset Single Register 00x hr Reger Table 6 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 Po0000 Bit write area Address POO100 Word read area Address P0020 Word write area Addres
49. NONE Ch 2 GT server Multiple Reading 1 Select Online Communication module setting System Diagnosis or click the icon 3 2 Click the right button on the the Cnet I F module and click Status By Service 3 Click Dedicated Service tap 4 Check the status by service by clicking Multiple Reading and Refresh 5 Detailed content of information indicated in dedicated service window is as follows Multiple reading Checks the dedicated service status every second Multiple reading Refresh Refresh Checks the dedicated service status information at started time 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 Vee EET A Dedicated information ype Dy Service Port number Channel number l Indicates how many dedicated service Detailed Service count a communication is done information Indicates how many error occurs during dedicated window Error count f ee service communication Status Indicates status of dedicated service communication 10 4 Chapter 10Diagnosis TTT OTT __ 3 Check list Detail result Staves a Dedicated Service P2P Service Standard information Detailed information Base No 0 Block number Por number Status Service count Error count Slot No 0 0 Channel 1 0 182 0 Link type Cnet P2P s
50. ONES OF ao OF Ce Ba E A IERIE PSL IE Selb E ls L a F3 F4 sFi sF2 FS Fe sF sF9 FS F11 sF3 sF4 sF5 Project ap sdf 4 82 Network Configuration a i Unspecified Network gl NewPLC BOSO Internal Cnet P ay NewPLC BOS1 XBL C214 pi H P2P 02 S P P2P Channel E System variable a P NewPLC XGB XBCH Offline Ea Variable Comment 4 L3 Parameter K Basic Parameter Most Recently Used Figure 6 2 2 P2P parameter configuration screen 1 P2P channel m P2P channel setting defining communication protocol of P2P service to execute E XGT Modbus available m Each channel is independent It is applied when active mode is Use P2P settings 2 P2P block M Setting P2P block of 32 acting independently 3 User frame definition m User frame definition registration 0 0 Chapter 6 Server function and P2P service eee 6 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 you 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 C Channel Setting User frame definition LS Bus Client Modbus ASCII client Modbus ATU client
51. XGT dedicated protocol client Operation P2P Modbus ASCII RTU client mode User defined communication Operation er LS Bus Client definition by port Sana XGT dedicated protocol server Modbus ASCII RTU server 7 or 8 Data l 1or2 type Even Odd None Synchronization type Asynchronous type Transmission speed bps 1200 2400 4800 9600 19200 38400 57600 115200 bps available Setting range 0 255 Station No setting l l Max station No available 32 stations RS 232C 15m Extension available in case RS 422 485 max 500m Transmission distance of using modem Check available by LED and XG5000 diagnosis service 120mA 120mA Note 1 Max 32 stations are available for consist the client and server Station number setting range is 0 255 Chapter 2 specification 2 3 Name and Function of each part XBM_ S Type XBM DN16 32S XBM DR16S XBM DR 16S PWR E RUN ERR HONAN ODO AMOODOProOoD NONB UN 9 0 al Fa 3 4 5 6 z 8 9 A B c D E F Input indication LED Input indication LED par CO neCHOn PADT connection connector connector Input connector and ierininaliblock Input connector and terminal block pul connectaran Output connector and terminal block terminal block nick RUN STOP key switch y In case key switch is STOP remote mode change available Output indication LED Output indication LED indication Output indication LED
52. area Remote Address Save area Local Address XBCH _ Readaea Saveaea Address 0x100A0 M01800 N00308 umber 1 READ 010021 SAVE1 MO1701 Settin Number 9f READ1 oe 0021 SAVE1 MO1701 SEN Number 1 etting READ1 0x10040 SAVE1 M01800 gt Read 0 15 bit of M10 of server and save it at 15 of M180 of cient 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 M01800 11 18 Chapter 11 Example Program Setting method wide XECH wii PLC Configuration Writing WE Comment arameter WLI Stop Parameter p Wits Stop Program AWE Network Parameter i Clear PLC 13 H Standard settings E Cnet based slota H deak _ 1 Select Online Write or click icon T 2 Click OK 3 If writing parameter is complete After clicking OK changed parameter is applied automatically Enable Link HS Link P2P 0 ss ae EO XBCH E OM High speed Link Enabling DE High speed Link 01 the link De High speed Link 02 SEM PPEP 1 Select Online Communication module setting Enable Link or click icon E 2 Click the P2P to enable and click Write 11 19 Chapter 11 Example Program eo 11 4 User defined Co
53. block of RS 485 an TD RD SG terminal connection terminal block of RS 232C communication AC100 240V power terminal block Chapter 2 specification OO Extension Cnet module XBL C41A XBL C21A LED indication Operation status indication RS 422 RS 485 connector RS 232C connector Connector for connection with external device Connector for connection with external device LED indication content LED status LED status content Normal operation Operation status indication Z Abnormal operation Interface with main unit status Normal operation indication Abnormal operation Transmitting frame Indication during frame transmission SET w Frame transmission completion Of Frame receive completion on rameenor fot romare Indication during frame receiving Frame error indication Table 2 3 1 LED indication content 2 8 Chapter 3 System Configuration 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 Main unit BAR
54. equipped module Standard Settings Cnet Ba e san Communication settings Data bit Stop bit Parity bit Parity receiving error Modem type Modem Initialization Station Number Time Settings Response waiting time 1 0 50 100ms Delay time setting 0 255 10ms Delay time between character 1 1 0 255 10ms Active mode Channel 1 Use P2P a ox cae 3 Word read area Address P0000 11 13 1 Write setting value as same with Table 11 3 2 at built in communication channel 1 2 Set active mode as Modbus RTU server Modbus Settings Bit read area Address Bit write area Address Word read area Address Word write area Address ox cae 2 Bit write area Address M0000 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 Chapter 11 Example Program Setting method Writing parameter TE Stop Program vee Network Parameter Standard settings E l Cnet based slott EI High speed Link ffs High speed Link 01 P 2P EIP P2P 01 Internal 1 Select Online Write or click icon E 2 Click OK 3 If writing parameter is complete After clicking OK changed parameter is applied automatically 11 14 Chapt
55. flicker in case error occurs Built in RS 485 connection terminal block Built in RS 232C terminal connection terminal block of RS 485 RS 485 Connection o terminal block TD RD SQ terminal connection terminal block of RS 232C communication Notes 1 XBC XEC main units of E type are not able to use XGB expansion module Chapter 2 specification XBC XEC XBC DN20S U XBC DR20SU XBC DN30S U XBC DR80SU XBC DN40SU XBC DR40SU S SU type XEC DN20SU XEC DN80SU XEC DN40SU XEC DN60SU XEC DR20SU XEC DR80SU O leicio 500 OUUU l li il GN XBC DN60SU a ae Input indication LED Input indication LED PADT connection PADT connection USB USB 1 1 supported 1 channel connector RS 232C 1 channel connector id Input terminal block Input connector and terminal block a Output terminal block Output connector and terminal block In case key switch is STOP remote mode change available L Output indication LED Output indication LED eses s sSsSsSS indication Output indication LED eses s sSsSsSS Status indication LED Indicates basic unit s operation status PWR Red power status indication RUN Green RUN status indication STOP mode Off RUN mode On Error Red flicker in case error occurs Built in RS 485 connection terminal block Built in RS 232C 4
56. 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 IO image area Internal memory area of CPU module installed for keeping IO status Appendix 1 Definition of Terms eae 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 ECET Ie A T JST Ul 76543210 76543210 RS 232C RS 422 and RS 485 are the examples Appendix 1 Definition of Terms b Parallel transmission This type is used in printer etc which transmits d
57. is communicated smoothly according to the setting L0140 LX224 HS1_ERR k Bit High speed link parameter 1 k block station operation error mode Gace of eee k 00 63 Array Indicates if the error occurs in the communication state of k data fe block of parameter L0180 LX288 _HS1_SETBLO High speed link parameter 1 k block setting Array LO21F LX 67 NN Indicates whether or not to set k data block of parameter Appendix 2 Communication Relay List L 2 High speed Link 2 Indicates normal operation of all station according to parameter set in High speed link and On under the condition as below 10260 MLX416 HS2 RLINK Bit 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 In the state of _HSmRLINK flag On if communication state of the station set in the parameter and data block is as follows this flag shall be On 10261 LX417 HS2 LTRBL Bit 1 In case that the station set in the parameter is not RUN mode or 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 lin
58. 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 Incase of using 1 1 connection with normal PC b Ei 4 Lo Wry L wel ta T wil te f Raed Was gn Area oar Lae i TiL i ioe err 4 Pra El a H i iE i XGB main unit built in communication Figure 3 2 1 1 1 communication with PC e Wiring method External form of Connection number and signal ASE manun XGB external direction In case of using channel 2 connect 485 and 485 of RS485 terminal Chapter 3 System Configuration 2 In case of using 1 1 connection with monitoring device such as XGT Panel XP series LSIS XGB main unit RS 485 I F RS
59. 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 receive station dial up modem communication is impossible I9 Chapter 5 Remote Connection 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 Remote 1 Remote 2 Communication Communication F module module Ad 2320 Cable Dial up Modem Public line Public line Tandem center Details Modem Remote 2 Network type Cnet Remote communication module Base number 0 Slot number 0 Cnet channel Remote 2 communication module Station number d IP address Figure 5 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 Connect 2 wees Check the connection state and settings
60. 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 5 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 Modem Public line Public line Tandem center Figure 5 1 1 XG5000 remote connection example by dial up modem Chapter 5 Remote Connection SF EE Remote connection sequence by using dial up modem is as follows a Cnet I F module connected with PLC setting 1 Sets active mode of RS 232C channel of Cnet I F as XGT server at XG5000 2 Sets Modem type of Cnet I F module RS 232C as Dial up modem and inputs atz in Modem Initialization i Standard Settings Cnet 1 232C Reccccecceccesccccsecsocseees Data bit 8 z 8 z Stop bit a a ia m Parity bit NONE v NONE x Parity receiving Not Allowed Not Allowed error Modem type Null Modem Null Modem Modem Initialization Station Number 0 0 Time Settings Response waiting time 1 1 0 50 100ms Delay time settin
61. 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 packet 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
62. 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 EJ Request frame initial code H06 Acknowledge ACK response frame initial code Not fo Men oTe ee NAK response frame initial code H04 EndofText of Text Request frame ending ASCII code Ea 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 Chapter 7 XGT Dedicated Protocol 2 Command frame sequence Sequence of command request frame ae apne ENQ a Formatted data EOT BCC PLC roe response PLC NAK response 7 1 2 List of commands List of commands used in dedication communication is as shown below Classification Command Command type Treatment Code ASCII code Code ASCII code Individual g tE ee 5353 5353 Reads direct variable of Bit Byte Word Dword Lword type Readin ee H72 Read direct variable of Byte Word Dword Lword with Continuous H52 5342 block unit Bit continuous read is not allowed H77 5359 Write data of Bit Byte Word Dword Lword at direct Wein Individual W H57 variable device H77 Write data of Byte Word Dword Lword at direct Continuous W H57 SB 5342 variable with block unit Bit continuous read is not allowed la
63. of remote server to connect Saal Chapter 6 Server function and P2P service aaa Chapter 6 Server function and P2P service 6 1 Server Modbus Service 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 Chapter 6 Server function and P2P service eee 6 1 1 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 6 1 2
64. 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 DB2468 in byte type Chapter 7 XGT Dedicated Protocol 7 2 Detail of Instruction 7 2 1 Individual reading of device R r SS This is a function that reads PLC device specified in accord with memory data type Separate device memory can be read up to 16 at a time e PC request format Format name Header Station No Command eran NUIT Beckles Device name Tail nelle T EN blocks E check aE i ASCII value EA H3230 H52 72 H5353 H3031 H3036 H254D57313030 m 1 block setting can be repeated up to max 16 blocks 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 H4D H57 H31 H30 H30 H04 HO3A4 Therefore BCC value is A4 ASCII value H4134 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 Pevicdienath This indicates the number of name s characters that means device which is allowable up g to 16 characters This value is one of ASCII co
65. optical modem wireless modem only media between modems is different Connection method is same 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 5f Chapter 5 Remote Connection 5 1 3 Remote connection between Cnet I F modules 1 Remote connection through dedicated modem Figure 5 1 11 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 AS 2520 Cable Dedicated modem Dedicated line Dedicated modem Figure 5 1 11 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 XG5000 as dedicated modem and have it operate as XGT server
66. request reading writing XGT client Modbus 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 11 1 1 In case of acting as server Sequence Procedure Setting method Connection setting Reed j vonte data ae in PLS nun mode Hirm D arn p rd maximum dala dre in slop mode Connect Cane 1 Select Online Connection Settings or click icon S4h 2 Click Connect after setting Read I O Select Online Diagnosis I O Information and click I O Sync information Reads the information about currently equipped module Standard Settings Cnet a _ _ Communication settings Type RS232C Speed Data bit Stop bit Parity bit Parity receiving error Modem type Modem Initialization Sta n d a rd Station Number S ett i n g S Time Settings Response waiting time 0 50 100ms Delay time setting 0 255 10ms 0 255 10ms Active mode Channel 1 xT server Channel 2 XGT server 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
67. requests reading data Describes how to write frame at XG5000 for user definition communication frame that requests reading data Transmission frame Sequence Setting method Communication module settings 1 Right click PLC and select Add Item P2P Communication 2 As for built in communication base and slot is fixed as 0 Click OK User frame definition in Channel 2 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 1 Click Add Frame and select type HEAD TAIL BODY and input BODY name 2 BODY s name is test here Form Size Constant Data 2 1 Double click HEAD in the project tree then segment setting window will be created 2 Select Numerical constant which indicates Hex as ASCII code as Form Input Hex value 2 which indicates STX 11 22 Chapter 11 Example Program octi method Add segment 5 1 Select Numerical constant which indicates Hex as ASCII code as Form Input Hex value D A which indicates CR and LF Add segment Eg g x Fom String Constant d Data nex 1 Double 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
68. result of 7 bit SUM is less than 204 it adds 20 Byte SUM 2 S COMP Takes 2 s complement about byte sum result Byte SUM 1 S COMP Takes 1 s complement about byte sum result CRC 16 16 bit error detection method LGIS CRC Error detection method used for LSIS PLC Method checking error for dedicated DLE AB Error detection method used for DF1Protocol of Allen Bradley communication DLE Sea hte rae a SIEMENS rror detection method used tor siemens communication When setting BCC in case of general method the user need not set BCC setting range and indication method and in case of dedicated method the user should set BCC setting range and indication method Start position End position Item Contents Start area Determines where BCC calculation starts from among HEAD BODY TAIL Sumen Determines segment location to start BCC calculation in HEAD BODY TAIL 0 means g first segment will be included in the BCC calculation a Included from start position to before BCC al of Included from start position to end of designated area Settings Included from start position to designated area segment ASCIl conversion Converts result value its size will be double Initial value O Designates BCC initial value as 0 If there is no designation initial value is FFy Chapter 6 Server function and P2P service eee 3 Structure of BODY Input type of segment which composes BODY is different according to receive and transmissio
69. separated 1 Ch 9 built in communication function separated Cnet I F user manual 1 XEC compact type added 1 Standard format applied 2 Modbus protocol added 3 Contents changed 1 Ch 5 Communication function Ch 6 Server function and P2P service 2 Ch 6 Remote connection Ch 5 Remote connection 1 Main unit added 1 XBC XEC E type 2 XBC XEC S SU type 3 XBC XEC H type 2 Contents added 1 NOTE for XGT Dedicated Protocol 1 LS Bus Protocol added 2 Ch 8 Ch 12 Ch 9 Ch 13 3 Modified available device type 1 Ch 6 Server function and P2P service 1 Added UDATA instruction description 2 Ch 11 Example program 1 Example of sending SMS by using CDMA modem XG5000 V4 0 UI Updated Page 2 3 2 6 7 1 7 6 10 1 10 18 1 6 2 2 10 8 6 8 8 App 2 1 2 4 Ch 9 Ch 8 Ch 5 Ch 6 2 4 2 7 7 6 Ch 8 Ch 9 Ch 13 Ch 7 Ch6 Ch11 Entire X The number of User s manual is indicated the right side of the back cover Copyrights 2006 LSIS Co Ltd All Rights Reserved About User s Manual About User s Manual Congratulations on purchasing PLC of LSIS Co Ltd Before use make sure to carefully 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 Us
70. setting table per station of Chapter 3 System Configuration ee 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 XGB PLC Cnet 1 gll Optical E er oO oO modem Monitoring device er i RS 232C communication Moving material XGB PLC XGB PLC Cnet 2 Cnet 4 RS 422 communication Optical a a RS 232C communication XGB PLC Cnet 3 modem RS 232C communication Optical a Aa modem RS 232C communication Figure 3 2 7 Optical modem communication system 3 8 Chapter 3 System Configuration TEE 3 2 6 Wireless modem communication for communication between revolution bodies Wireless modem communication system for Cnet communication between revolution bodies RS 232C communication with wireless modem Communication between Cnet I F module is dedicated client communication o RS 232C channel of Cnet I F module is dedicated modem mode Wireless modem W
71. shooting when communication is not done after P2P client setting 10 7 10 2 3 Trouble shooting when response frame is missed in case of acting as client and USING RS 485 22m nnn nnn nnn nnn nn nnn nnn nnn ne nnn nnn nn nnn nanan nana nnanansnnnnanc acs 10 7 10 2 4 Two response frame are dealt with as unknown when executing frame monitor 10 8 10 2 5 Unable to analyze TRX frame 10 8 10 2 6 Unable to know which one is reason of error client or Server 10 8 10 2 7 Communication is not normal or communication is not executed repeatedly 10 9 Chapter 11 Example Program 11 1 Setting of Cnet I F module in the XG5000 11 1 11 1 1 In case of acting as server 11 1 11 1 2 In case of acting as P2P service client 11 3 11 2 Dedicated Communication Example 11 6 11 2 1 Settings of XGT Server 11 7 11 2 2 Settings of XGT client 11 8 11 2 3 Checking the operation 11 11 11 3 Modbus Communication Example
72. signal Transmitted data signal Reports ready communication of DTE DCE Note2 Ground line for signal Reports ready communication of DCE to DTE DTE asks DCE to send data DCE asks DTE to send data Reports ringing tone received from DCE to DTE Figure 12 5 1 RS 232C 9 pin Connector Standard Channel RS 232C can communicate with external devices directly and also with remote communication JO Note1 to ignal Ground ata Set Ready Request To Send Clear To Send E _ D Ready Dee N a devices using modem When connecting modem communication type of RS 232C must be set to modem with XG5000 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 12 18 Chapter 12 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 12 5 2 below Cnet 9 PIN z R N Modem side 25 PIN side 25 PIN onnection No and signal direction Name i Figure 12 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 Computer
73. through segment edition size of one segment is less than 10 Project XBCH P2P 01 Frame DRS HEAD X a CPUH Nu Form Size Data a 3 Network Configuration To Unspecified Network 00 Numerical constant 1 02 4 A XBCH BOSO LH Cnet j a P2P 01 Internal XBCH P2P 01 Frame DRS TAIL X P2P Channel J Nu Form Size Data E P2P Block Ea 00 Numerical constant 1 oD 7 a Q User frame definition 01 Numerical constant 1 OA a DRS Transmission fy HEAD TAIL XBCH P2P 01 Frame DRS test X Form Size String Constant 8 O1DRS 02 M System Variable 4 XBCH XGB XBCH Run QJ Variable Comment 1 Result writing entire frame of data reading request frame 11 23 Chapter 11 Example Program 3 Writing frame to receive response frame of temperature controller Writing response frame Receive frame Sequence Setting method Group Edit Ed Frame type Reception 1 1 Write like step 2 of frame that request reading data At this time set Frame type as receive 2 Frame name is DRS _ RECE Frame Edit Eg Eg fx 1 Click Add Frame and select HEAD TAIL BODY as type and input BODY name 2 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 Add segment Add segment Add segment Form String Constant vi Form Fix sized variable i Form String Constant v Form Fix sized variable
74. 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 Itcan act as XGT server providing XGT dedicated protocol and Modbus server providing RTU ASCII protocol 2 Client P2P service m 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 m 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 all parameter is applied if download is complete Chapter 4 Basic Setting eee 4 3 1 Setting item When setting Cnet communication parameter
75. writing of device W w SB 7 14 7 2 5 Monitor variable register X 7 16 7 2 6 Monitor execution Y 7 18 Chapter 8 LS Bus Protocol Bell LS Bus Protocol Seecss saccades tan peace seen e eer a a catia a ee ears 8 1 Gilad Frame SUUCTUI Gt seescsean oe seeace ane E at oe eaeae seed a aaa nape edctal 8 1 Galue IST Ol COMMaN OS Sasa es einer SREE eran 8 2 8 2 Detail Of NStCUCHON cestece esses secs a tease esate ee e ee Selec 8 3 8 2 1 Continuous writing to inverter device W 8 3 6 22 Inverter Continuous Treading R A 8 5 Chapter 9 Modbus Communication SAE aee e e seen sreces sqedage satan ahaa ene eeneesencedas pees eceataedasse ane 9 1 92 MOODUS OLOCO airar aa Ea see eee 9 1 92 Kna Or MOODUS PrOtOCO lra AeA EARNERS ARE 9 1 9 2 2 Suct re of ModD S protocol sss isisci seii e eaea 9 1 So SUCU 0E FANG aaa ag 9 3 9 3 1 Structure of Frame in the ASCII mode Sensi 9 3 993 2 Frame Structure nIe RTU MdG essasraseasssstaee trent sss see E aaa seraees 9 4 9 3 3 D ta and expression Of adGheSS lt lt s2 eseeecereecee seo seaseassacegesestes a sate eee 9 5 9 4 MOGDUS RTOlOCOl e2sssse S isen a abe E a eee seats 9 6 9 4 1 Reading data of bit type at the bit output 01
76. 1 01012341234 4098 48656C6C6F CR Using Instruction Comment f STRING_BYTE ASCII to HEX You can input text up to 30 ARY_MOVE Copy TEXT to send buffer L3 0 MX0 T SEND_SM P S sa ATSSMSM O 0104321 4321 0101 23412 SMS_SND AT_CMDO IN 0 30 Mov ouTH CON_DATA 21 OUT CON_DATA L5 SMS_SND SMS_SND 0 46 0 0 L7 MX0 P 0 30 18 34 4098 48656C6C6 F SMS_SND AT_CMD1 1 L9 0 ENO L10 16 0D CON_DATA 51 Wan 1 Upper example program generate the AT instruction for the SMS send message of BSM 856R 4098 is SMS send message instruction of BSM 856R 2 The example program is an order to send Hello BSM 856R changes the character string to send to Hex The instruction can be added by send character string Character Hello gt Hex 48656C6C6F 3 21 data of SND1 and 30 data of SMS_SNDO are saved in a Byte type in variable CON_DATA 51 11729 Chapter 11 Example Program SEMO_SMS P REY Sls 1 Receive OK message in RCV_UDATA If the AT instruction send a modem normally the modem send OK message 2 Receive 006 message in RCV_UDATA again If the modem send SMS message normally the modem send 006 message When you cannot receive it you should check a communication network connection state of the modem 11 30 Chapter 11 Example Program Sequence Program example RCU 890 SMS send Comment RCU 890 SMS SEND PROGRAM AT SKT
77. 1 RS 485 connection 12 22 Chapter 12 Installation and Wiring 12 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 12 6 1 describes recommended specifications of cable Also when using other cable than recommended the cable conforming to characteristics in Table 12 6 1 shall be used m Product Low Capacitance LAN Interface Cable E Type LIREV AMESB m Size 2P X 22AWG D 0 254 TA m Manufacturer LS Cable 12 6 1 Electrical characteristic Standard Test conditions Withstanding voltage No destruction 500V 1min Insulation resistance 1 000 M amp km or above Static electricity 45 pF M or less 1 kHz capacit Characteristics 120 5Q0 10 Miz impedance 12 6 2 External characteristic ae Conductor haan poas pueraa dia ooe 76 sine Reess mwm bo 59 ea ao Table 12 6 1 Cnet twisted pair cable standard Conductor Insulator AL MYLER TAPE Ground line B raided Sheath Figure 12 6 1 Structure 12 23 Chapter 12 Installation and Wiring 12 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 resista
78. 16 from O to 15 in combination with actual variable reading command and carries out the registered one through monitor command after registration e PC request format pent anaes Head Station Comma Registratio Registration Tail eee enced er No nd n No format Frame Refer to Example ENQ H10 X x H09 registration EOT BCC format ASCII value H3130 H58 78 H3039 Refer to 1 o Ho PO Item 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 registered Register This is used to before EOT in command of Formats of separate reading of Format variable continuous reading and named variable reading 1 Register Format of request Formats must select and use only one of the followings Register No 1 Individual reading of device RSS piss teas c Device length 2 Byte Device name 16 Byte a 1 block max 16 blocks 2 Continuous reading of device RSB Device length 2 Byte Device name 16 Byte Number of data e XGB Response format ACK response 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 Chapter
79. 1port XBL C41A is provided lt 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 are available With abundant self diagnosis trouble diagnosis is 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 Chapter 2 specification Chapter 2 Specification 2 1 General Specification General specification of XGB PLC is as follows Specification Related specifications temp Storage temp 25C 70 ns humidit humidit For discontinuous vibration Amplitude sasae irm reasisrso awos o Max impact acceleration 147m 15G Authorized time 11s Pulse wave Sign half wave pulse Each 3 times in X Y Zdirections IEC 61131 2 Impact proof IEC 60068 2 27 S AC 1 500V Test spec of LS Static electric discharging 4 kV contact discharging a No
80. 232C I F Figure 3 2 2 1 1 communication with HMI e Wiring method RS 232C XGB main unit Connection number and XGB external signal direction XP external form Note In case of PMU short no 4 and no 6 short no 7 and no 8 e Wiring method RS 485 PMU XGB main unit Connection no and signal direction ns 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 XGB main unit XGB external Connection no and Pin no Chapter 3 System Configuration eS EE 3 2 2 1 1 Dedicated modem connection with PC HMI It is 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 XBM DN32S XBL C21A Figure 3 2 4 dedicated modem communication with PC 3 2 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
81. 4 Data bit an 4 Stop bit Parity bit 18 4 Parity receiving error Modem type Null Modem Dedicated M v Modem Initialization Station Number Time Settings Response Ha 0 50 100ms Delay time setting 0 0 255 10ms Delay time between H 0 255 10ms Active mode Channel 1 XGT server Sg AE Figure 5 1 13 Cnet I F module XG5000 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 a pe a Details Online Settings NewPLC i E RS 232C Remote 1 onne se sS RS 232c aan RS 232C settings Port number COMI a Depth Remote 1 Z Preview Baud rate 115200 XGT General Timeout interval 5 Fl sec Retrial times 1 S times Read Write data size in PLC run mode Normal Maximum Send maximum data size in stop mode Auto Detect Connect o Cancel z Figure 5 1 14 XG5000 remote connection setting screen omy Chapter 5 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 Figu
82. 7 XGT Dedicated Protocol e XGB Response format NAK response R egistratio i rror ASCII value H3130 H58 78 EE H31313332 e ee e Description C EN 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 Erorcode Hex and 2 bytes ASCII code 4 bytes indicate error type For the details Refer to Appendix 3 error codes and countermeasures e Example This example supposes that device M000 of station NO 1 is monitor registered e PC request format PC XGB Re Registration Format Registration Format Registration Frame Format name Header Command Number of No r a Device length Device name check a D LIE 457 ASCII value ae H58 78 H3031 bon H3036 aa a a ef e For ACK response after execution of command PC lt XGB e For NAK response after execution of command PC lt XGB Cero me reor reera Hooor Eon endo a wos 7 17 Chapter 7 XGT Dedicated Protocol 7 2 6 Monitor execution Y 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 e PC request format AR EA 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 Wh
83. 9 Modbus Communication 9 4 6 Preset Single Register 06 1 Writing single word of output area In case of writing single word to output area request and response frame is as follows Detail of frame is applied in case of ASCII mode a request frame Sree ae code Frame error a E E E T b response frame tn case of receiving normal frame Size byte 1 c In case of response frame In case of receiving abnormal frame iassficator sA Ta OAL 2 Details of frame a Station no indicates the station no of slave to write single word of output area b Function code 06 indicating Preset Single Register c Address start address of data to write and it consists of 2 byte At this time start address conforms to modbus address regulation d Output data value to write in the address set in the Address e Frame error check in case of ASCII mode it uses LRC and in case of STU mode it uses CRC It consists of 2 byte f Tail it is applies in case of ASCII mode CRLF is added after LRC g No of byte no of byte of response data h Error code error code is expressed by adding 80 Hex to function code and in case of writing single word of output area it is expressed as 86 Hex i Exceptional code indicates detail of error and consists of 1 byte 3 Frame example Example writing 0003 Hex to 9 word of station number 1 server acting as modbus RTU mode a Request frame Cro tale S
84. C It consists of 2 byte f Tail it is applies in case of ASCII mode CRLF is added after LRC g No of byte no of byte of response data h Data makes address of request frame as start address and transmits data with byte unit At this time since data is word type it is double of no of byte i Error code error code is expressed by adding 80 Hex to function code and in case of reading word of input area it is expressed as 84 Hex j Exceptional code indicates detail of error and consists of 1 byte 3 Frame example Example that requests reading word of 9 to station number 1 server acting as modbus RTU mode a Request frame Ciassiicatio Stato Function sree n no code aa mwe o o o o o b Response frame In case receiving normal frame n n no code Frame or a o a c Response frame In case of receiving abnormal frame Classification Exceptional code Fame o a a oa o 9 10 Chapter 9 Modbus Communication 9 4 5 Force Single Coil 05 1 Writing single bit of output area When writing single bit of output area request and response frame is as follows Tail of frame is applied in case of ASCII mode a request frame dha Frame error a a T b Response frame In case of receiving normal frame SoA i Function Frame error c In case of response frame In case of receiving abnormal frame Cesshcaon cae E Ta OFLA Size byte
85. C110V AC220V DC24V cables should be compactly twisted and connected in the shortest distance d AC110V AC220V cable should be as thick as possible 2mm to reduce voltage drop e AC110V DC24V cables should not be installed close to main circuit cable high voltage high current and I O signal cable f They should be 100mm away from such cables 12 14 Chapter 12 Installation and Wiring 5 To prevent surge from lightning use the lightning surge absorber as presented below Surge absorber to prevent 6 When noise may be intruded inside it use an insulated shielding transformer or noise filter 7 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 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 12 15 Chapter 12 Installation and Wiring 12 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 m
86. D Input type of segment for HEAD is divided into numerical constant and string constant In case of numerical constant it means HEX value and in case of string constant it means ASCII value 2 Structure of TAIL Input type of segment for HEAD is divided into numerical constant string constant and BCC which check frame error Meaning of numerical constant and string constant is same with HEAD s BCC is segment used for checking TRX frame error only one can be set in the TAIL 6 16 Chapter 6 Server function and P2P service BCC error check lt is the meaning that the numerical value and the character string which are used in HEAD are used to be equal BCC is the segment which is used to inspect the error of the TRX frame It can only set Tail When BCC is applied calculation about TRX frame is executed and if calculation is different relevant frame is ignored to improve the reliability of communication Calculation methods about each BCC are as follows Classification BCC method Contents description Byte SUM Adds designated data as byte unit and uses lower byte value Word SUM Adds designated data as 1 word unit and uses lower word value Byte XOR Executes Exclusive OR calculation about designated data as 1 byte unit and uses lower byte Careri metod 7bit SUM Uses result value of byte sum except the most significant bit checking error 7bit XOR Uses result value of byte XOR except the most significant bit 7bit SUM 1 If
87. D RTS IEC SEND_RTS Availability Flags REQ requires to execute the function block BASE base number SLOT slot number CH channel 1 or 2 RTS 0 or 1 USINT7S oe DONE maintains 1 after operation USINT STAT completion and ERR info USINT a Function 1 SEND_DTR instruction send DTR Data Terminal Ready signal that means communication ready complete 2 If 1 is output by Done and STAT it accomplished normally and If an error is produced state information is displayed by STAT b ERROR o hitastate ital state betore nstucion operation Input range 1 2 is exceeded Input range 0 1 is exceeded Parameter setting error CNET module s parameter is not set as User defined or link enable is not set Instruction timeout error No response from module or maximum scan time is exceeded 10 scan XGI CPU version is under V3 9 XGR CPU version is under Version mismatch error Es V2 6 or CNET module version is under V3 2 Chapter 6 Server function and P2P service 6 6 5 SNDUDATA MK p Flag Area Available Instruction PM Step Error Zero Carry F L T Cy S Z D x R x Const U N K F110 F111 F112 Cason eabekashat eta Rls els PO so eee swpupata sz of Jof f fel jofololo e7 Maio e S02 ee lt 1 e eee snouoata A L A T omana Jei si Te 3 D0 Area Setting D Temporary device that used in instruction worp Flag Setting Device If sl value is not matched wit
88. Function code Error check b Response frame When receiving normal frame aa Statio Function a R E E E E Ea c Response f frame When receiving abnormal frame Frame oe e e 9 8 Chapter 9 Modbus Communication 9 4 3 Read Holding Registers 03 1 Reading word of output area When reading data of word type of output area request and response frame is as follows Tail of frame is applied in case of ASCII mode a request frame er a T b Response frame When receiving normal frame Classification a ee No of byte Tail CRLF ssemma 1 1 nz e 2 z Response frame unr receiving abnormal frame seme 1 2 Details of frame a Station no indicates the station no of slave to read word data of output area b Function code 03 indicating Read Holding Registers c Address indicating start address of data to read It consists of 2 byte At this time start address conforms to modbus address regulation d Data size size of data to read consists of 2 byte e Frame error check in case of ASCII mode it uses LRC and in case of STU mode it uses CRC for error check It consists of 2 byte f Tail it is applied in case of ASCII mode CRLF is added after LRC g No of byte no of byte of data responding h Data address of request frame is start address and transmits data with byte unit At this time since data is word type it is double of no of byte i Erro
89. HO8 ASCII value 3038 Enter the address that you want to read ASCII value above 4 characters and non numeric is not Address of inverter allowed When you write data H A to inverter address 0100 area the data format has to be HOOOA Example lf you want to write H1234 31323334 Converted value to ASCII should be included in the data area So the highest value has to be sent first and the lowest value has to be sent last e Device data of Word type is only supported 8 3 Chapter 8 LS Bus Protocol Inverter Response format ACK ie betes em veel forme om __ Fema _ Frame Frame Example _ HOOE2 Po te ae tee a S BCC When ASCII value of each ibyte except ENQ and EOT is summed the lowest ibyte of the result value is BCC Inverter Response format NAK response Error code Frame N Tail Format name Header Station No Command ASC 2 AT Sheck BCC When ASCII value of each 1byte except ENQ and EOT is summed the lowest 1byte of the result value is BCC Error information is shown as hex 1byte 2bytes of ASCII code Error code For more information please refer to the error code of the inverter user manual Example This describes if the user want to write HOOFF to address number 1230 of station number 1 of inverter XGB request format XGB Inverter length inverter Fae SS Oe ae PAsGi vave Hos reos s7 koosi wstcossa0 reco ow For ACK response after execution of com
90. I CPUH XG5000 Project Edit Find Replace View Online Monitor Debug Tools Window Help DEAS AAAMOOO INS BAX EKA MARR FX aO AEA See oo Sue aE CHER Ty cP Bo TEE SRERR A EEE E D E Ah ih ISh AR APh wma 1 Ai et iN J P2P block F3 Fa SFI SP2 FS FG sF8 SFO FO Fi sF3 SFA SFS SFG F10 Project sett ng a4 CPUH Conditional No of 4 3 Network Configuration Ch Driver Setting P2P function flag Command type Data type PERA a Unspecified Network 4 ie XBCH BOSO LHZ Cnet 4 E P2P 01dnternal ffl P2P Channel fis P2P Block 35 User frame definition 303 auopjGoyeyeo waysis 1 P2P items are activated differently ETIE 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 5 i H i i i i Pa MIEP xBcH Ok Writing eon ca param eter ais ees a mA Stop Program sient Network Parameter el Standard settings ah Cnet a slot0 1 Select Online Write or click icon D 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 Enable Link HS Link P2P aa a oe XECH 2 Oat High speed Link Enabling J High speed Link 01 the link tD High speed Link 02 nme P2P EIP ME P2P 01 B050 Internal Cnet 1 Select Online Communication module setting Enable Link or click icon EN 2
91. I F module 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 It sets station 1 among Cnet I F module as server station Dedicate modem or dial up modem available C O O XGB PLC XGB PLC XGB PLC Cnet 1 station Cnet 2 station Cnet N station RS 232C Communication 3 6 Chapter 3 System Configuration Figure 3 2 5 Dedicated modem communication with PC Module setting Type XBL C41A PLC Cnet 1 1 XGT client Cnet 2 N Table 3 2 1 module setting table per station 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 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 from PC MOSAIC PANE f REGRET f BEGAENT f BEGAHEAMT f BEGHENT HMI PC ne SEGMENT Z BEGMENT Z BEGMENT Z BEGMENT XGB PLC 7 BEGMENT 7 BEGMENT 7F BEGMENT J BEGMENT RS 422 communication RS 232C communication Figure 3 2 6 7 Segment operating system for RS 422 ee Module setting He XBL C21A XBL C41A PLC Cnet 1 Table 3 2 2 Module
92. II client has read function that read the data from destination station and write function that write the data to destination station Modbus RTU ASCII client block setting is as follows NewPLC P2P01 X ae Destina o one Conditional No of f Destination oh Driver Setting P2P function flag Command type Data type Series Data size Pe Perera oe Frame Setting Vanable setting contents po a Setting Ch Channel Driver will be changed by P2P channel setting PSP function 1 READ Select if read the data from destination station WRITE Select if write the data to destination station 1 Enter the time of data transmission by using special Conditional flag flag or bit contact Conditional flag Fom 2 XGK type F0090 20ms cycle M00001 2 XGI type T20MS 20ms cycle MX01 1 Single Read or write max four data of memory area to destination station Ex M01 M10 M20 Command type M30 es 2 Continuous Read or write continuous data Ci a to destination station Ex M01 M10 Lo Data type can be set BIT or WORD gt It is activate when command type is continuous 1 In case of P2P function is READ 1 Modbus RTU client 1 BIT 1 2000 2 WORD 1 120 2 Modbus ASCII client 1 BIT 1 976 Data size 2 WORD 1 61 3 2 In case of P2P function is WRITE 1 Modbus RTU client 1 BIT 1 1968 2 WORD 1 120 2 Modbus ASCII client 1 BIT 1 944 2 WORD 1 120 Chapter 6 Server function a
93. ODY i Cani After clicking Add frame select type of frame Type HEAD TAIL BODY Select HEAD To create TAIL BODY repeat step 3 Name of frame edit window is activated when frame type is BODY Available to creating many BODYs with different name orON UME Cal cons Numerical constant HEAD registration 1 Double click HEAD Then edit window is created 2 Double click edit window or click right button and select Add segment 3 Select Form 1 Numerical constant 1 Defines numerical constant among frame 2 Data value is always Hex Hexadecimal String constant 1 Registers string constant among frame 2 Data value is always ASCII 4 Input value into Data Ex Form Numerical constant Data 5 ENQ When clicking the right button on the created segment edit deletion insertion copy etc are available 2 6 20 Chapter 6 Server function and P2P service Seq Setting Setting method 1 If double click TAIL edit window shows TAIL registration 2 Setting method is same with step 5 3 Add BCC is activated after inserting segment Add segment Sting Constant Variable sized variak BODY registration Assign memory Conversion NONE Swap NONE paren 1 Doule click BODY and select data form Numerical constant and string constant are same as described above Variable sized variable gt Hex to ASCII converts the data red from PLC into ASCII and c
94. Online Write or click icon T 2 Click OK 3 If writing parameter is complete After clicking OK changed parameter is applied automatically Enable Link HS Link P2P 0 ss 5 EF Gi XECH EI Of High speed Link hD High speed Link 01 JDJ High speed Link 02 Enabling SEM PPEP the link 1 Select Online Communication module setting Enable Link or click icon E 2 Click the P2P to enable and click Write 11 10 Chapter 11 Example Program ee 11 2 3 Checking the operation The user can analyze frame by using the frame monitor of XG5000 to check it communication is normal or not Method of frame monitor of Cnet I F module is same regardless of protocol Setting method ee a 2 H RUH STOP Detailed Module Information Frame Monitor System Diagnosis ERR Bo f toed Td Loop Back Test Status By Service system Log R3 232C0 ee da System synchronization click icon E3 2 Click the right button on the relevant module and click Frame Monitor or Status By Service to check 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 030 ENQO01wSSO0104 DWO Slot No 0 Rec GT master 2007 11 426 11 50 00 030 TX Tran XGT master 2007 11726 11 50 00 230 Rec XGT master 2007 11 426 11 50 00 230 Mon
95. PRIMO 0 RECEIVER SENDER 4098 1 TEXT ASCII CR AT SKT PRIMO0 0 0101234 1234 01043214321 4098 ITESTMSG CR Using Instruction Comment f STRING_BYTE ASCII to HEX You can input text up to 30 ARY_MOVE Copy TEXT to send buffer AT SKT P RIMO 0 01 012341234 010 SMS_SND 0 SMS_SND SMS_SND 0 1 43214321 4098 1 TES TMSG SMS_SND 1 ENO 16 0D CON_DATA 51 1 Upper example program generate the AT instruction for the SMS send message of RCU 890 2 The example program is an order to send TESTMSG RCU 890 changes the character string to send to ASCII The instruction can be added by send character string SEND_SHS SENO_UDATA p REL DONE COM_OAT A Ad 1 Send AT instruction using SEND_UDATA through a CDMA modem connection port 11 31 Chapter 11 Example Program REY UDATA REL DOME REY SMS 1 Receive SKT PRIMO 0 and OK message in RCV_UDATA lf the AT instruction send a modem normally the modem send SKT PRIMO 0 and OK message 2 Receive SKT MOACK 0 1 message in RCV_UDATA again If the modem sends SMS message normally the modem send SKT MOACK 0 1 message When you receive SKT MOACK 0 0 you should check a communication network connection state of the modem gt SMS send message using XGK instruction M00101 FMOV h0000 D01000 CDMA_Sen d_Data SMOV ss ie 3 D01000 AT command Fixed string
96. RE EOE SOSodoeoees BEBE O module Special module Communication module I O configuration point e XB E C DxxxH 32 384 points Digital O module Extension module Analog module e Max 10 connection available no Communication e Max 2 module Main unit H type e XBC DR32 64H P e XEC DR32 64H e XBE DC08 16 32 e XBE TN08 16 32 Digital O module e XBE TP08 16 32 e XBE RY08 16A e XBE DR16A Extension Product list modue e XBF AD04A e XBF DV04A e XBF DC04A Communication e XBL C41A module e XBL EMTA e XBO 1024A e XBC DN32 64H e XEC DN32 64H e XBF RD04A e XBF RD01A e XBF TC04S e XBL C21A Chapter 3 System Configuration ee 3 1 2 S type System Configuration f a D A Am es E LUE ee i pg H F B o se x se 7 ss _ ee 7 gt y 1 LS HE Main unit I O module Special module Communication module S S a I O configuration point e XBM DxxxS 16 352 point Extension module no e XBE DC08 16 32 e XBE TN08 16 32 Digital O module e XBE TP08 16 32 e XBE RY08 16A e XBE DR16A Extension Product odii e XBF AD04A e XBF RD04A e XBF DC04A e XBF TC04S e XBL C41A e XBL C21A a Communication module e XBL EMTA Option Memory module e XBO 1024A module Chapter 3 System Configuration eee 3 2 Available System Configuration Communication system by using XGB built in communication function and Cnet module is diverse In this chapter
97. TE U P N NPP N GeLEHeLIe Eeee EEE G l Esc F3 F4 sFi sF2 F5 F6 Fe SFS F9 FEN sF3 sF4 sF5 sF6 F10 sF7 c3 c4 XBCH P2P01 X XBCH P2P 01 Frame Send 333 x 4 38 CPUH 4 82 Network Configuration a fi Unspecified Network 4 AL XBCH BOSO LHZ Cnet ar i EH re H P2P 01nternal fgg P2P Channel fg P2P Block 4 8 User frame definition gt f Send Transmission f receive Reception a E System Variable 4 4D XBCH XGB XBCH Run 2 Variable Comment a E3 Parameter UONELUOJUI ggg auop Goyeyes wag Gees l L o ojojojo Detailed Module Information Frame Monitor oo m o olo Project WGA aE a a en a DNAN nD el Function FB Loop Back Test JMostRecentiyUsed vj seer ne System Log System synchronization Monitor1 Device Variable_ i gt Monitor 2 Monitor3 Monitor 4 atsil Che Maure mauer EA A 100 E Figure 11 1 1 System diagnosis window Select Online Communication module setting System Dianosis and click the icon 3 e Click the right button on the the relevant module and click Frame Monitor or Status By Service to check 10 1 Chapter 10Diagnosis 10 1 1 Checking status of main unit Check list Detail result aces Displays information of PLC CPU Context XGB XBCH Ver 240 CPU mode Run CPU Flemote Stop Normal Module Local i nfo rm atio n Last CPU change Changes the mode by OFF OFF OFF OFF
98. a e oe s end a Figure 12 5 6 built in RS 485 connection 12 20 Chapter 12 Installation and Wiring 12 5 3 RS 422 interface XBL C41A RS 422 channel use 5 pin connector Terminal Block for communicate with external Figure 12 5 7 indicates function of each pin name function and data direction l Signal direction l a Pin no Name Function description Cnet lt gt External device e eee RX data 4 RX data oar Figure 12 5 7 RS 422 5 pin connector pin standard Figure 12 5 8 indicates RS 422 communication cable connection example in case of single connection Cnet 5 Pin Signal direction External communication Cnet lt gt External device device Figure 12 5 8 RS 422 connection Figure 12 5 9 indicates RS 485 communication cable connection example in case of single connection Signal direction External Cnet lt gt External device communication Figure 12 5 9 RS 485 connection 12 21 Chapter 12 Installation and Wiring Single and multi drop connection with external device are available in XBL C41A Figure 12 5 10 Figure 12 5 11 are RS 422 RS 485 multi drop communication connection method mony XBL pni Connecti External slave Connecti External slave pings a ee a a RX TX BM Figure 12 5 10 RS 422 connection Master XBL C41A Connection External slave Connect External Ga no ka device 1 communication E SRE Figure 12 5 1
99. accomplished normally and If an error is produced state information is displayed by STAT Message Description 2 5 Parameter setting CNET module s parameter is not set as User defined or link fn emma n Instruction timeout No response from module or maximum scan time is exceeded 10 ee Version mismatch XGI CPU version is under V3 9 XGR CPU version is under V2 6 Chapter 6 Server function and P2P service eee 6 6 3 SEND_DTR IEC SEND DTR Availability Flags SEND_DTR REQ DON REQ requires to execute the function block BASE base number BASE STA SLOT slot number CH channel 1 or 2 SLOT DTR 0 or 1 Output DONE maintains 1 after operation STAT completion and ERR info a Function 1 SEND_DTR instruction send DTR Data Terminal Ready signal that means communication ready complete 2 If 1 is output by Done and STAT it accomplished normally and If an error is produced state information is displayed by STAT b ERROR o imtarstate ia state petore instruction operation Input range 1 2 is exceeded Input range 0 1 is exceeded Parameter setting error CNET module s parameter is not set as User defined or link enable is not set Instruction timeout error No response from module or maximum scan time is exceeded 10 scan XGI CPU version is under V3 9 XGR CPU version is under Version mismatch error E V2 6 or CNET module version is under V3 2 Chapter 6 Server function and P2P service eee 6 6 4 SEN
100. ain circuit cable and power cable can not be isolated Shield cable 5 When applying pipe wiring make sure to firmly ground the piping 12 16 Chapter 12 Installation and Wiring 12 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 channel and the operation is started and stopped according to channels Data flow of each channel is as below CS RS 232C channel RS 485 channel RS 422 cable TX i CPU oo RX Ra Figure 12 4 1 Data Flow of Each Channel ab Note1 For mode change during RUN download parameter by using XG5000 Though you don t reset the PLC if download is complete changed mode is applied 12 17 Chapter 12 Installation and Wiring 12 5 Communication Interface Connection Method 12 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 lt gt external device arrier Detect eceived Data TxD ransmitted Data ata Terminal Reports carrier detection of DCE to DIE Received data
101. alue converted from hex data is entered e 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 Chapter 7 XGT Dedicated Protocol e XGB Response format ACK response ane an p e we oe oe oe ASCII value HOS H3230 H5777 77 H5353 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 e XGB Response format NAK response Error code Format name Header Station No Command Command type Tal Frame check Hex 2 Byte ASCII value mazao meron Hess wo4aa500 E E When command is lowercase r only one lower byte of the value resulted by adding BCC 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC and sent Erered Hex and 2 bytes ASCII code 4 bytes indicate error type For the details Refer to Appendix 3 error codes and countermeasures e Example This example supposes that HFF is written in M230 of station No 1 e PC request for
102. ase P2P receive time After setting diverse P2P conditional flag is transmission time parameter in P2P block aster thar conditional flag CPU Scan Time reaction time of communication module data if frame monitor is are communication time ioe executed response transmission time frame is missed receive time CPU Scan Time reaction time of communication module data transmission time Uvcose dia 1 Increase Delay time in standard settings of response time of XG5000 partner is slow Chapter 10Diagnosis 10 2 4 Two response frame are dealt with as unknown when executing frame monitor Communication Two response frame are dealt with as unknown when type in XG5000 executing frame monitor is set as RS 422 Change communication type Transmission GT master 17 2007 1274 ENG OTrSSO01042MWOEOT 40 ts yp Reception Unknown 17 2007 1244 ENQO1rS5850104 MwOEOT40 but output wiring as RS 485 and write Reception Unknown 17 2007244 ACKO11SS01020000ETXO5 i Transmission SGT master 1 200771274 ENG OTrSSO1T042MWOEOT 40 Hie is RS it to PLC 10 2 5 Unable to analyze TRX frame 1 Execute 1 1 communication with server and check if it works More than one server properly sends frame 2 Take interlock for servers not to sends frame simultaneously 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
103. ase0 slot0 FEnet base0 slot1 Cnet base0 slot2 T High speed Link E High speed Link 02 P2P EIP P2P 03 Figure 4 3 3 Write Parameter screen 4 9 Chapter 5 Remote Connection ee Chapter 5 Remote Connection 5 1 Remote Connection 5 1 1 General In case PC executing XG5000 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 connections 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 5 1 2 XG5000 remote connection Figure 5 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
104. ata 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 DnB ian a TX RX EIE EILE iii 3 Asynchronous Communication This communication type transmits characters one by one synchronously in serial transmission At this time synchronous 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 X For transmitting KOREA Transmission Direction Stoo Bit Paritv Bit Data Bits Start Bit A1 3 Appendix 1 Definition of Terms E 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
105. b In case of receiving normal frame it responds as normal response c In case of receiving abnormal frame it responds by using error code 4 Error check area It determines if frame is normal or not by using CRC check of 2 byte 5 Modbus address regulation Address in the data starts from 0 and it is same with value that is minus 1 from modbus memory Modbus address 2 is same with address 1 of data 9 4 Chapter 9 Modbus Communication 9 3 3 Data and expression of address To express data and address of modbus protocol the characteristic is as follows 1 It used hexadecimal as basic form 2 In the ASCII mode Hex data is converted into ASCII code 3 RTU mode uses Hex data 4 Each function code has following meaning ReasCoisans Broma 000 zoot Readout siaus ete 000K a00 3 Read Holding Registers 125word OXXXX 1XXXX XXXX XXXX OXXXX Force Singe Col Bitoutput 00x tit Preset Single Register o keamatRegses voar 000 ioa e 95 Chapter 9 Modbus Communication 9 4 Modbus Protocol 9 4 1 Reading data of bit type at the bit output 01 1 Reading bit of output area function code 01 In case of reading data of bit type request and response frame is as follows Detail of frame is applied in case of ASCII mode a Request frame Frame Sane Function code Address Data size Frame error Tail CRLF S n Size byte b Response frame In case of receiving normal f
106. 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 10 2 6 Unable to know which one is reason of error client or server Phenomenon 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 10 8 Chapter 10Diagnosis 10 2 7 Communication is not normal or communication is not executed repeatedly In case of multi drop 2 Sates EA e with More than one server a C PREA 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 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 2 When receive is not complete it requests next process of receive Change cable or check connection of cable Use handshake in program thoroughly 10 9 Chapter 11 Example Program eee Chapter 11 Example Program 11 1 Setting of Cnet I F module in the XG5000 Operation of XGT Cnet I F is divided into P2P service and Server e P2P service acts as client master and
107. ble sized variable Available up to 4 Numerical constant Max 10 byte String constant Max 10 byte Numerical constant Max 10 byte String constant Max 10 byte BCC Only one BCC applicable Numerical constant Max 10 byte String constant Max 10 byte Fix sized variable Available up to 4 Fix sized variable 3 variable sized variable 1 are available Variable sized variable Only one variable sized variable available After variable sized variable adding segment is impossible Chapter 6 Server function and P2P service eee 6 5 2 Channel Setting Cnet I F module can set the driver type for P2P service For P2P channel acts as client active mode of basic setting must defined Use P2P Standard Settings Cnet At e a Communication settings Type RS232C RS485 Speed 9600 z 9600 Data bit 8 v 8 Stop bit 1 7 1 Parity bit NONE NONE Parity receiving Not Allowed Not Allowed error Modem type Null Modem Null Modem Modem Initialization Station Number 0 0 Use P2P XGT server User frame definition GT client Modbus ASCII client Modbus RTU client Time Settings Response waiting time 1 0 50 100ms Delay time setting 0 255 10ms Delay time between character 1 1 0 255 10ms Active mode Channel 1 Use P2P 7 iin Settee Channel 2 XGT se
108. cal connection or remote 1 2 connection In case of normal connection lower menu of online is activated selecting Online gt Diagnosis gt I O Information and click I O Sync then equipped communication module is searched automatically fede modda maii Biri Slot 1 0 infimasa A Ea Show Exciting he Only PECORIS oe af INPUT TR OUTPUT soporte aF PoE Deien bA Boe C Erai Figure 4 2 3 Cnet I O information screen 4 3 Chapter 4 Basic Setting eee At this time the following message occurs Check the message and click Yes or No Overwrite I O parameters of the PLC with modules installed in the PLC Detailed module parameters will be reset as the default if module type mismatch Continue Figure 4 2 4 I O information change message If you execute Read IO Information equipped communication module like the following is indicated lO module information window gt Project Edit Find Replace View Online Monitor Debug Tools Window Help Dae GAS O 2S MO FI Ne BAX CK AY MWR e nS ERE Ia SIE Sas Rtn T aa A i Bt 4b 47 4PH ANE se 4 4H S AR PH AN AF CO 4 POV ie iN F3 FA sFi sf F5 F6 sF8 SP9 F9 Fil sF3 SFA sro sho FI SF c3 oA 4 kat D457 a Network Configuration oa o Unspecified Network A NewPLC BOSO LHZ Cnet ey NewPLC BOS1 LHZ FEnet gt Ay NewPLC BOS2 XBL C21A faa 9 System Variable 4 NewPLC XGB XECU Stop Warning Global D
109. cation of each module 2 Specification used XGB PLC System configuration Describes basic communication parameter setting Describes basic communication setting Describes CPU connection method by communication channel through 5 Remote connection XG5000 Server function and Describes server for data communication between PLC and P2P parameter P2P service setting XGT es car Describes XGT dedicated communication frame structure LS Bus Protocol Bus Protocol Describes LS bus Describes LS bus protocol structure structure M oe Describes Modbus protocol structure communication Diagnosis function Describes about self diagnosis by XG5000 Example program Describes example program for communication test Installation and Describes installation and wiring oom Maintenance Desoribes maintenance maintenance App 1 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 XG5000 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
110. communication Cnet 9 PIN etree Poo Connection No and signal direction 1 CD Figure 12 5 3 3 line Type of Connection no handshake ai fc o o O a o fo O Rms rue pcs o Oo e 12 19 Chapter 12 Installation and Wiring 12 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 12 5 4 below Signal direction Pin no Name Content Cnet I F module Function description lt gt external device 1 4 aes signa 4 gt euitinns 45 signa 2 as 485 signa 4 puit in RS 485 signal s sa sigatGrouns signat grouna Transmitted Data Built in RS 232C TX data signal Received Data lt lt Built in RS 232C RX data signal Figure 12 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 Pin no Name Connection no and signal direction device Figure 12 5 5 3 line type connection 2 Connection method in case of using built in RS 485 Signal direction External communication Pin no Name l Cnet lt gt external device device E e
111. ction Using FMOV MOV SCH 2 Initialize a send buffer using FMOV 3 Input the AT instruction into the send buffer even unit 4 Count data length using SCH instruction word unit 5 Input the AT instruction using MOV 6 Send AT instruction using SEND_UDATA through a CDMA modem connection port ie RCVUDATA 0 D03000 D0600 000135 tik COMA_data_ eae len 1 Receive OK message in RCV_UDATA If the AT instruction send a modem normally the modem send OK message 2 Receive 006 message in RCV_UDATA again If the modem send SMS message normally the modem send 006 message When you cannot receive it you should check a communication network connection state of the modem 11 33 Chapter 12 Installation and Wiring Chapter 12 Installation and Wiring 12 1 Safety Instruction Danger gt 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 parameter sett
112. data 2 P2P function is WRITE 1 Read area Device area of data saved in self station 2 Save area Device area of destination station area to save the data 6 9 Chapter 6 Server function and P2P service eee 6 3 3 Parameter Write After completed the P2P block setting download the parameter to CPU Select Online Write on the menu click OK in the parameter download window After download is complete parameter will be right applied i XBCH lp PLC Configuration Cancel Cathrin JETONG Clear PLC Figure 6 3 2 Parameter write 6 3 4 Enable Link After completed the parameter download user must enabling the P2P service If user complete the parameter download but do not enabling the P2P IEP P2P block will not work Select Online gt Communication Module Setting Enable Link and check the P2P EIP to use then P2P will be activated 6 10 Chapter 6 Server function and P2P service Enable Link HS Link P2P r TE 3 8 CPUH XBCH fa High speed Link 1 amp High speed Link 01 L 6 High speed Link 02 3 P2P EIP BIP 01 B050 Internal Cnet Le P 02 LE P2P 03 Figure 6 3 3 Enable P2P Link 6 3 5 Diagnosis User can check the normal operation to using diagnosis feature Select Online gt Communication module setting System diagnosis Right click on the module to check and select frame moniter or status b
113. e Output error code 10 output CRLF EN E E T T b Response frame In case of receiving normal frame Classification SHEE icevels Address No of output Frame error check Tail CRLF n EN code 10 c In case of response frame In case of receiving abnormal frame Cassio eee Tal CALF B Aa 2 Details of frame a Station no indicates the station no of slave to write continuous word of output area b Function code 10 indicating Preset Multiple Registers c Address start address of data to read and it consists of 2 byte At this time start address conforms to modbus address regulation d No of output no of output to write and it consists of 2 byte Ex When writing 10 continuous data from address number 20 no of output is OOOA Hex e Data size indicates no of output as byte Since data type is word in case of writing data of 1 word data size IS 2 f Output data value to write in the address set in the Address g Frame error check in case of ASCII mode it uses LRC and in case of STU mode it uses CRC It consists of 2 byte h Tail it is applies in case of ASCII mode CRLF is added after LRC i No of byte no of byte of response data j Error code error code is expressed by adding 80 Hex to function code and in case of writing continuous word of output area it is expressed as 90 Hex k Exceptional code indicates detail of error and consists of 1 byte Chapter 9 M
114. e Program 4 Writing P2P transmission receive block Write P2P TX RX block as follows by using user definition communication segment written ahead Setting method oe Destina oe f 3 Conditional No of Destination re ch Driver Setting P2P function flag Command type Data type varias Data size pth i TAT ooe Setting Variable setting contents 1 User frame definition SEND F00093 DAS test Number 2 1 User frame definition RECEIVE DRS_RECE RECE_DRS Settingf SAVE1 M0200 SAVE2 M0200 4 Variable Setting Setting Setting 0 1 Y 5 Save area Local Address XBCH Setting Ea a Setting 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 0 Fom Result Size Time Frame data Rec User define 200771273 15 24 01 840 STXO1IDARS OK 0016 02D Slot No 0 Tran User define 2007
115. e and no LOOO LX000 _HS1_RLINK Bit MOr 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 as follows this flag shall be On 1 In case that the station set in the parameter is not RUN mode or t 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 LX032 A _HS1_STATE K Bit Indicates the general state of communication information for each LOOSE LX095 k 00 63 Array data block of setting parameter HS1 STATE k HSIMOD k amp HSITRX k amp HS1 ERRIk ee eee HS1_MODIK Bit speed link ee Lk eee Station mod o k 00 63 Array Indicates operation mode of station set in ata DIOCK O LOO9F LX159 parameter B i o Normal communication with High speed link parameter 1 k block ee LX160 HS1_TRXIk i D Array i LOO1 LX001 _HS1_LTRBL Bi L013 aes k 00 63 Indicates if communication state of k data of parameter
116. e name Tail lets omman blocks length length check me a e e e l oa Pe po PES PB ASCII value HO5 H3031 H52 72 H5353 H3082 H3036 H254D57303230_ H3036 H25505730303031_ Hos e For ACK response after execution of command PC lt XGB E lentiey Station d Command Number of Number of Data Number of Data No type blocks data data Tail Frame check ASCII value Ho6 H3031 H52 72 H5353 H3032 H3032 H31323334 H3032 H35363738 Hos e For NAK response after execution of command PC lt XGB Station No Command type Error code 2 Byte ASCII value H3031 H52 72 H5353 Error code 4 Byte HOB 7 8 Chapter 7 XGT Dedicated Protocol 7 2 2 Direct variable continuous reading R r SB 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 e PC request format Format Head Station Comman Comman l Ascii Hos H3130 H52 72 H5342 Haoss 25405731 Hgoas Hos value 3030 When command is lowercase r only one lower byte of the value resulted by adding BCC 1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and added to BCC Device length This indicates the number of name s characters that means device which is Length of allowable up to 16 characters This value is one of ASCII converted from hex type Par A and the range
117. em type Null Modem Null Modem Modem Initialization Acti ive Station Number mode E Response waiting time 0 50 100ms Delay time setting 0 0 255 10ms Delay time between character 0 255 10ms Active mode Channel 1 Use P2P Modbus Settinas Channel 2 XGT server Modbus Settings 1 Select Use P2P settings as active mode Project 4 3 CPUH 4 9 Network Configuration 4 Unspecified Network amp XBCH BASN LUZ Cnet System Variable Open P2P XBCHAGBABI agamen H eton 2 varaoe c on o S e i settings A nii cies Ga Communication Module 7 Basic Par paste Ctrl V P2P Communication 3 ES VO Parar A Delete High speed Link Communication E Internal A User Frame 4 Scan Prograi EJ Properties ne oe NewProg Communication module setting gt Add Slave 1 Right click the Cnet I F module in the project tree and select Add Item P2P Communication 2 P2P 01 is fixed as built in Cnet and base and slot is fixed as 0 and you can t change that Project window a TEST NGE KEMS 48 PP 01 B0S0 Cnet G P2 Channel PoP Block P2 P GE User fame definition PF 02 channel PP 03 4 setting i Stands a Highs a Pa 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 Chapter 11 Example Program Setting method
118. en 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 e XGB Response format ACK response 1 In case that the register Format of register No is the Individual reading of device ASCII2t H3130 H59 79 H3039 H3031 H3032 H39313833 a 2 In case that the register Format of register No is the continuous reading of device Number of Frame Frame Example ACK HIO 0 H9183AABB 83AABB ml 1 414142 ASCII value Hos H3130 H59 79 H3039 H3034 aia pa ep e XGB Response Format NAK response Sarena Head Station are Registration Error code er No No Hex 2Byte Tail Frame check ASCII value H3130 H59 79 H3039 H31313332 HOS fo 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 Eiroreode Hex and 2 bytes ASCII code 4 bytes indicate error type For the details Refer to Appendix 3 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 e PC request format PC XGB Regisraton No ASCII value H3031 H59 79 H3031 Haj e For ACK response after e
119. er 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 sis biz and download the information as a PDF file Relevant User s Manual No of User Title Description Manual XG5000 User s It describes how to use XG5000 software especially about anual online functions such as programming printing monitoring 10310000512 and debugging by using XGT series products XG5000 User s It describes how to use XG5000 software especially about Manual online functions such as programming printing monitoring 10130000834 and debugging by using XGB IEC XGK XGB Series It describes how to use the instructions for programming 40310000510 Instruction using XGK XGB series XGI XGR XEC Series It describes how to use the instructions for programming 10130000833 Instruction using XGB IEC series It describes how to use the specification of power input XGB Hardware Hp l output expansion modules system configuration and built in 10310000926 Users Manual l High speed counter for XGB basic unit XGB Hardware It describes how to use the specification of power input User s Manual IEC output expansion modules system configuration and built in 10130001059 High speed counter for XGB basic unit XGB Analog lt describes how to use the specification of analog Users Manual input analog output temperature input module system
120. er 11 Example Program eee 11 3 2 Setting of Modbus RTU client Standard settings are as follows to act XBL C41A of client as Modbus RTU client Setn monou Online Settings XBCH Modem General Extended Base USB Connection Timeout interval setting Retrial times Read Write data size in PLC run mode Normal Maximum Send maximum data size in stop mode comet ox J cancel 1 Select Online Connection Settings or click icon S4h 2 Click Connect after setting Reading IO Select Online Diagnosis I O Information and click I O Sync information Reads the information about currently equipped module Standard Settings Cnet i Communication settings Channel 1 Channel 2 Type RS232C 5455 Speed 3600 38 Data bit Stop bit Parity bit 7 Parity receiving Not Allowed Not Allowed error Modem type Null Modem Null Modem Modem Initialization Standard Station Number settings Time Settings Response waiting time 0 50 100ms Delay time setting J 0 255 10ms Delay time between character 0 255 10ms Active mode Channel 1 use P2P Modbus Settings Channel 2 Use P2P i Modbus Settings 1 Select XBL C41A and write standard settings to be same with Table 11 3 1 at channel 2 Since station setting doesn t have meaning when acting as client set as temporary station number 0 255 3 When acting as client mode active mode should be Use P2P sett
121. ers products Ifthe product is modified or repaired in any other place not designated by the company Due to unintended purposes Owing to the reasons unexpected at the level of the contemporary science and technology when delivered Not attributable to the company for instance natural disasters or fire CURN 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 LSIS Co Ltd supports and observes the environmental policy as below Environmental Management About Disposal LSIS considers the environmental LSIS PLC unit is designed to protect the preservation as the preferential management environment For the disposal separate subject and every staff of LSIS use the aluminum iron and synthetic resin cover reasonable endeavors for the pleasurably from the product as they are reusable environmental preservation of the earth LSIS values every single customers Quality and service come first at LSIS Always at your service standing for our customers http www lsis com m o 1 10310000816 m HEAD OFFICE m LS Industrial Systems Chengdu Office _ Chengdu China LS Tower 127 LS ro Dongan gu Anyang si Gyeonggi do 431 848 Korea Address 12FL Guodong Buiding No 52 Jindun Korea http www lsis com Road Chengdu 610041 P R China Tel 82 2 2034 4870 Fax 82 2 2034 4648 e mail cshwan
122. ervice information Pop service P2P parameter PRISIANE Exist Driver type Customize Multiple Reading 1 Select Online Communication module setting System diagnosis or click the icon 3 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 Item Contents Base number Information of base number under diagnosis Standard a formation Slot number Information of slot number under diagnosis Link type Type of communication module under diagnosis P2P l parameter Indicates whether P2P parameter exists or not P2P service existence P2P service AU E Diverivpe Indicates the P2P driver by port yP XGT Modbus User definition frame Available range 0 63 Sec NUMOer Only block under operation is indicated Detailed information Error count Multiple reading reading Refresh Check the P2P service status when refresh is done 10 5 Chapter 10Diagnosis gt Service status code It is used to check whether Cnet I F module is normal or not Dedicated service P2P service Normal sss Normal Error of RX frame head Error of max station number There is no ACK NAK Available range 0 255 Error of RX frame tail l There is no tail NMEGUI 1 Modbus address error 3 BCC error of RX frame FEFFE 2 Commands except Read Write are used Statio
123. fined D Register There are two protocols STD standard protocol and SUM protocol adding Check Sum to standard type and protocol is selected by parameter of temperature controller Standard protocol is STD It starts with first character STX 0x02 and ends with last character CR Ox0D LF Ox0A The following Table 10 4 2 and Table 10 4 3 indicates structure of standard protocol and Sum protocol six eere commen oa on ir oe fo Table 11 4 2 standard protocol structure x02 199 Check Sun _ Table 11 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 11 4 4 is frame requesting continuous data and Table 11 4 5 is frame responding to request No of data e ot 2 ft 3 tt 2 a Jiji Table 11 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 Fame six pome ons x Date DaN n Tr Szeen 2 3 jij 2 if 4 jit 4 Tid Table 11 4 5 response frame 11721 Chapter 11 Example Program eee 11 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 10 1 2 and configure above system Table 11 4 1 2 Writing frame that
124. flag to send frame every 200ms use flag F92 4 Command type Data type to write 1 word select single and WORD 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 Index Ch Driver Setting P2P function ae Command type Data type penne Data size en Loo Frame Setting Variable setting contents station 0 1 ModbusATU client WRITE FOOOS2 Sine WORD 1 1 ee os na Setting of S aaae O writin g 1 Modbus RTU client WRITE F00092 Continuous WORD 1 READ DOOOOO SAVE 0440002 Variable Settin l Settin operation _ ee 2 H Read area Local Address XBCH H Setting J Save area Remote Address E Setting _ Readaea Saveatea Address E Setting i i Ox40002 Noo042 i Setting gt Write 4 words from DO of client to M2 M5 of server 1 Ch 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 11
125. g 0 0 0 255 10ms Delay time between character 1 1 0 255 10ms Active mode Channel 2 xaT server Figure 5 1 2 XG5000 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 Connection settings Type General Timeout interval Retrial times Read Write data size in PLC run mode Normal Maximum Send maximum data size in stop mode Connect oK Cancel Figure 5 1 3 Modem connection setting screen of XG5000 sg Chapter 5 Remote Connection 2 Select settings of Connection settings and set detail of modem Details Modem Modem Type Dialup Dedicated Modem settings Port number COMI Baud rate 19700 Phone number 0415508114 Omit Station number Figure 5 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 modem 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
126. g XGT protocol XGT client requests read or write data from server and XGT server analyses received data from client then if received frame is fit to XGT protocol specification processes requested instruction with ACK response or is not fit to XGT protocol specification transmits NAK response with error code to the XGT client 6 3 1 Channel Setting Cnet I F module can set the driver type for P2P service For P2P channel acts as client active mode of basic setting must defined Use P2P Standard Settings Cnet ay e cm Communication settings Channel 1 Type Speed Data bit Stop bit Parity bit fe dial Channel Setting Parity receiving error Modem type Modem Initialization P2P Driver TCP UDP Client Server Partner IP address SGT server B lt User frame definition GT client Station Number Modbus ASCII client Modbus ATU client Time Settings Response waiting time 0 50 100ms Delay time setting 0 255 10ms Delay time between character 0 255 10ms Active mode Channel 1 Use P2P Channel 2 xGT server ox cancel Figure 6 3 1 P2P Channel setting 6 8 Chapter 6 Server function and P2P service 6 3 2 P2P Block Setting After set the P2P channel as XGT client you can set the P2P block Meaning of each item is as follows NewPLC P2P01 X
127. g lsis com Tel 86 28 8612 9151 9226 Fax 86 28 8612 9236 e mail comysb lsis com LS Industrial Systems Tokyo Office _ Tokyo Japan LS Industrial Systems Qingdao Office _ Qingdao China Address 16FL Higashi Kan Akasaka Twin Tower 17 22 Address YinHe Bldg 402 Room No 2P Shandong Road Akasaka Monato ku Tokyo 107 8470 Japan Qingdao City Shandong province 266071 P R China Tel 81 3 3582 9128 Fax 81 3 3582 2667 e mail jschuna lsis com Tel 86 532 8501 6068 Fax 86 532 8501 6057 e mail wangzy Ilsis com cn LS Industrial Systems ME FZE _ Dubai U A E LS Industrial Systems Europe B V Netherlands Address Jafza View Tower Lob 19 Room 205 Along Sheikh Zayed Address 1st Floor Tupoleviaan 48 1119NZ Schiphol Rijk The Netherlands Road Jebel Aali Free Zone Dubai United Arab Emirates Tel 31 0 20 654 1420 Fax 31 0 20 654 1429 e mail junshicko Ilsis com Tel 971 4 886 5360 Fax 971 4 886 5361 e mail jungyongl lsis com m Wuxi LS Industrial Systems Co Ltd _ Wuxi China LS Industrial Systems Shanghai Office _ Shanghai China Address 102 A National High amp New Tech Industrial Development Area Address Room E G 12FL Hiamin Empire Plaza No 726 West Wuxi Jiangsu 214028 P R China Yan an Road Shanghai 200050 P R China e mail liyong Ilsis com cn Tel 86 510 8534 6666 Fax 86 510 8534 4078 e mail caidx lsis com cn Tel 86 21 5237 9977 609 Fax 89 21 5237 7189 m Dalian LS Industrial Systems Co
128. ght 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 between Cnet I F module and external communication device easily 4 Detailed content of information indicated frame monitor window is as follows ltem Frame monitor window 2 Result 3 4 5 10 3 Content Standard Information of base number under diagnosis information Slot No Information of slot number under diagnosis Monitor Select Select channel to monitor selections Channel Form Indicates whether it is TX or RX frame Indicates the protocol type 1 XGT server XGT client Modbus server Modbus client User definition frame 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 Indicates the frame data View by HEX Indicates the frame data as HEX View by ASCII Indicates the frame data as ASCII Closes the frame monitor window Ref Chapter 10Diagnosis 10 1 4 Status by service Check list Detail result Dieas Dedicated Service P2P Service Standard information Detailed information Base No 0 Portnumber Service count Error count Status Slot No 0 Channel 0 0 0 Channel 2 0 0 0 Link type Cnet Dedicated Dedicated service information service Driver type Ch 1
129. h CNET module installed FO a SNDUDATA SNDUDATA instruction sends user defined data UDATA sl is base and slot number of CNET module installed S1 is channel number 1 or 2 S2 is start device to send UDATA S3 is size of UDATA instruction sends the number of S3 from S2 Maximum 1024 Byte D is temporary device area to save instruction information Initial value is O and If user change that value instruction is not operated normally CPU Device D WORD WORD A oe Reserved area WORD Hf WORD Prohibition on Use Chapter 6 Server function and P2P service b Error 1 If sl value is not matched with CNET module installed set error flag F110 a c State Information code 00 __iInitialstate___ _ Before excute instruction _ _ _ _ o o o 01 Done __ Instruction excute complete _ _ 02 Modlue setting error __ If sl value is not matched with CNET module installed 03 Channel setting error_ S1 value is noti or2 SSS Data size setting error Size if data to send exceeds range 0 1024 Communication If parameter of CNET module is not set as user defined re setting error data or when Link enable is not set Timeout error No response casue of abnormal CNET module CNET OS version is below V3 2 Verseion mismatch If CPU version is below V4 2 program download in not best d Program Example 1 If Input signal REQ Order to send
130. ient to M2 Mb5 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 Read 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 11 3 1 client setting e Server setting i a CE CO None EA o Address i Non e i Start Address area Address area Address Table 11 3 2 server setting Iiz Chapter 11 Example Program 11 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 metho Connection setting Standard J 2 3 settings Modbus setting 1 Bit read area Address POOOOO Online Settings XBCH d o jies Connection settings Type Modem General Extended Base USB Timeout interval Retrial times Read Write data size in PLC run mode Normal Maximum Send maximum data size in stop mode connect ox canei 1 Select Online Connection Settings or click icon S2h 2 Click Connect after setting Select Online Diagnosis I O Information and click I O Sync information Reads the information about currently
131. ign memory is checked automatically Control by byte unit ix sized variable Used when frame size is fixed available to insert up to 4 for one body When checking Assign memory it is available to save in the PLC memory ssign memory when setting the device area of PLC to save data Conversion gt Hex to ASCII converts the data red from PLC into ASCII and configures transmission frame gt ASCII to Hex converts the data red from PLC into Hex and configures transmission frame 6 Swap gt 2 Byte swap 2 byte swap of data Ex 0x1234 0x3412 gt 4 Byte swap 4 byte swap of data Ex 0x12345678 0x78564321 gt 8 Byte swap 8 byte swap of data Chapter 6 Server function and P2P service 6 5 5 Parameter setting To send and receive the user definition frame of XG PD the user should set the parameter by P2P block How to set the P2P block is as follows Ove yes_ o of vbr Data zira Oration Donal Frama _ Sarg I Driver name changes according to driver set in the P2P Driver Receive used when receiving the frame written according to P2P partner s protocol Function Send used when sending the frame written according to partner s protocol m Determines when Cent sends frame Condition Conditional lag It is activated when P2P function is Send al flag FOOUS2 Incase of XGK type Ex F90 20ms flag M01 In case of XGI type Ex T20MS 20ms flag In case of selecting SEND in the P2P function select body of tran
132. ing 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 gt 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 12 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 communication e
133. ings 11 15 Chapter 11 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 tree e Communication module settings Communic i ation m module setting Slot P2P index 1 Right click PLC and select Add Item P2P Communication 2 Select slot number acting as client and press OK Channel Setting P2P channel setting User frame definition ET cieri Eo eoan rru unt oru SVA rununa eUS Us SNN Ne SeebbU esse eNINeds aus AARU KNEA UNUNUN SbRSUUNISS SbUNs Ne bviNs hues Sbdue Us dedesUetessVeewie Vins ekus ed bees ceseb es dee VUNENE ENISET Modbus ASCII client Modbus ATU client 1 Double click e of P2P 01 and set P2P driver of channel 1 as Modbus RTU client and click OK 1 Double click F Block Of P2P 02 Destination station number Conditional P2P function flag Driver Setting Command type Data type Setting of writing O pe rat i O n Read area Local Address XBCH F Save area Remote Address Readara Savearea Address Mo100 0 40001 Nooo01 Modbus ATU client WRITE F00092 Single WORD Variable Setting 2 3 5 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
134. irect Variables gt Parameter Monitor 1 v amp X Check Program UONBUNOJUI SQA auonjboyeyeo was Basic Parameter P Pic Progam Variabli c a x View Htigh speed Link View P2P ay Eee Function FB Most Recently Used Function Name FE ROTATE_A Monitor2 Monitor3 Monitor 4 Re L USB Warning Overwrite B Figure 4 2 5 Communication module registration compete screen Chapter 4 Basic Setting 4 2 4 Read parameter saved in PLC For read the basic setting of communication module and P2P setting that saved in PLC select Project Open from PLC then set the connection settings and click OK ih XG5000 oe Project Edit Find Replace View Online Monitor Debug Tools Window Help De OE S O BS MO PIQes BBX ERS Ki Ohh We OD E810 OO OT FBK GBG see ecient RETA cP ni ERE AG pots slide aa SS W 4 47 5 R P N IF C 1 P Wt YPP A MLS wee F6 Fa Fo F9 Fii sF3 sF4 sF5 sF6 F10 sF7 c3 ot c5 roe cI R D 2 w mm wo m Z mm l m I ea D 2 oO View High speed Link View P2 Read Write data size in PLC run mode Normal Maximum Send maximum data size in stop mode E mom Ga cone Function FB Most Recently Used Monitor 2 Monitor3 Monitor 4 Offline Overwrite E Figure 4 2 6 Open form PLC 4 5 Chapter 4 Basic Setting Pe S 4 3 How to Set Basic Parameter Communication function
135. ireless modem XGB PLC Cnet 2 RS 232C RS 232C communication a communication Figure 3 2 8 wireless modem communication system Module setting Lisi RS 232C RS 422 Em mode l XBL C21A Not used 2 station Usermode mode Table 3 2 3 setting content table between communication module 3 9 Chapter 4 Basic Setting Eoo 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 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 XG5000 gt Set parameter according to network configuration at XG5000 download parameter Enable link at XG5000 gt Not enable link act as server v Operation start 1 In Cnet I F module hardware station setting is not necessary By using XG5000 designate station and basic setting necessary in Cnet communication Chapter 4 Basic Setting C 4 2 PLC Type Setting and How to Register Communication Module To use Cnet I F function communication parameter should be written by XG5000 To set system about Cnet I F module located in temporary pos
136. is from H01 ASCII value 3031 to H10 ASCII 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 e Number of data specifies the number to read according to the type of data Namely if the data type 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 e Bit device continuous reading is not supported Chapter 7 XGT Dedicated Protocol e XGB response format ACK response Station Command Numberof Number of ee nfo fe EX Ex offrame H1O W112 SS eee 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 1 Q W B WORD W P M L K F T C D R 1 0 W W Number of data DWord D P M L K F T C D R 1 0 W D pa LWord L P M L K F T C D 1 0 W L PB xR area is supported at XBC DXXXH e 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 H06 2 03 06 bytes Byte and ASCII code value 3036 is entered in data area e Example 2 In just above example when data content
137. is not set error 06 Timeouterror No response casue of abnormal CNET module CNET OS version is below V3 2 07 Verseion mismatch If CPU version is below V4 2 program download in not operated d Program Example 1 If Input signal M00003 Order to send RTS Request to send up to SIZE with CNET module attached to BASE SLOT rg SENURTS l CH DTR NFU 0 Remark 1 Devices D 1 D 3 set in operand D are the areas to be saved with instruction information So users must not change that areas If change that areas instruction is not operated normally Chapter 7 XGT Dedicated Protocol Chapter 7 XGT Dedicated Protocol 7 1 XGT Dedicated Protocol 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 0 of XGB s main unit supports 1 1 communication only For 1 N system having master slave
138. ise proof Radiation electromagnetic 80 1 000MHz 10 V m igs Fast Power Digital Analog O Transient Class ME RAN IEC 61131 2 module communication interface IEC 61000 4 4 furst Voltage Ambient p No corrosive gas or dust conditions Operating 2000m or less height oh h Cooling type Natural air cooling 0 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 dae Chapter 2 specification 2 2 Performance Specification 1 Built in Cnet performance specification Performance specification of XGB built in Cnet is as follows Specification ltem Channel 1 Channel 2 Serial communication method RS 232C RS 485 Modem connection function Z 2 02S doooSo i O Act as communication client XGT dedicated protocol client Modbus ASCII RTU client User defined communication LS Bus Client 9 Operation mode Operation define by channel XGT dedicated protoco
139. it be designed to be On earlier than PLC power which may cause abnormal output or operation gt 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 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 lf 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 pr
140. it means that 5 WORDs should be written e Number of data can be used up to 120Bytes 60 Words e 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 e XGB Response format NAK response Real ate 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 Appendix 3 error codes and countermeasures e Example This example supposes that 2 byte H AA15 is written in DOOO of station No 1 e PC request format PC XGB Station j Comman Number of A ane Frame ENQ co seDw000 HANS Example H2544573030 D Hs7077 eas Ha036 se aa agate leaner ae e For ACK response after execution of command PC lt XGB e For NAK response after execution of command PC lt XGB Fernat rane Header Staton No Kile Example Error code 2 ASCII value H15 H3031 H57 77 H5342 Error code Errorcode 4 7 15 Chapter 7 XGT Dedicated Protocol 7 2 5 Monitor variable register X Monitor register can separately register up to
141. ition register each module at XG5000 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 Project New Project and input project name select XGB series as PLC series In case of IEC type select XGB IEC About CPU type in case of S type select XGB XBMS in case of H type select XBC XBCH gt Project Edit Find Replace View Online Monitor Debug Tools Window Help OOO GR ep 5 New Project p s cli i Esc F3 F4 sFi FI A F Fa FI File directory C WMGSO00TEST C4 Bojeyes wapiga al cic CPU type Auto allocation Program name GB DR32HL XGB XBCE XGB XBCEB Program language XGB XBCEX XGB XBCH LD XGB XBCS Project View High speed Link View P XGB XBCU XGB XBMS Function FB Project description Most Recently Used CO Function Name WOMEUWWO LUT Monitor 1 gatti i ea latte eee SOM Ch Fin Fin o Cre Us Du el JOA e r z E Ano i f aan 10055 5 pn ch A U HM Fo Figure 4 2 1 New project making screen 4 2 Chapter 4 Basic Setting 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 with communication right click Unspecified Network in the project tree and select Add Item Communication Modu
142. itor selections Tran XGT master 2007 11 26 11 50 00 430 Rec GT master 2007 11 26 11 50 00 430 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 T Frame Tran GT master 2007 1126 11 50 01 030 ENG O1lwSSO0104 DWO Rec XGT master 2007 1126 11 50 01 030 ACKOlwSSETX8 Tran XGT master 2007 11 26 11 50 01 230 ENQO01w550104 DW0 monitor Rec XGT master 2007 11 26 11 50 01 230 ACKO1wSSETX87 Tran XGT master 2007 11 26 11 50 01 430 ENOO1wSS0104 DWO SSEIX87 ACKO1lwsS Detailed frame data ee 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 11 11 Chapter 11 Example Program 11 3 Modbus Communication Example We assume that system configuration of Modbus communication Modbus RTU mode example is as Figure 10 3 1 and communication setting is as following table RS 485 38400 8 1 None Modbus RTU Client Server Figure 11 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 Pp Da aabt S B gt Write 1 word of M100 of client to M1 of server Write gt Write 4 words from DO of cl
143. ive mode should be Use P2P settings Chapter 11 Example Program After standard settings P2P channel and P2P block should be set Setting methods are as follows Procedure Setting method P2P setting Click P2P bottom of project tree Communication module settings esm Communic ation module settings 1 Right click PLC and select Add Item P2P Communication 2 Select slot number acting as client and press OK Channel Setting P2 P TCP UDP Clent Server Partner IF address channel setting a E I E E TET RE i cer RE RARE Hooton E Hootone rood soonoE coo cConoene E oO cootendend Ebodconcooncoscnoiene T EET ee eel ee User frame definition E A A AE E Ee UE GT client Modbus ASCII client Modbus ATU chert 1 Double click amp ta of P2P 02 and set P2P driver of channel 2 as XGT client 4 1 Double click P Block Of P2P 02 1 GT client WRITE F00092 Single 2 BYTE 1 Seth Number 1 etting READ1 MO100 SAVE1 M100 Setting of writing operation d Variable Setting Read area Local Address XBCH Save area Remote Address Readarea Savearea Address M0100 M100 Noooo1 i 2 3 3 Channel Select ch 2 set as XGT client set in P2P channel Since it executes write operation select WRITE Conditional flag to send frame every 200ms use flag F92 Command type Data type to write 1 word select single and 2 byte No of variable si
144. k parameter 1 k block general state LX51 1 _HS2_STATE k HS2MODJ k amp _HS2TRX k amp _HS2_ERR k 10320 JLx912 HS2 MODIk Bit High speed link parameter 1 k block station RUN operation mode LO3SSF 1 X575 k 00 63 Array Indicates operation mode of station set in k data block of parameter 10280 JL X448 HS2_ STATE k Bit Indicates the general state of communication information for each LO31F k 00 63 Array data block of setting parameter communicated smoothly according to the setting 10400 LX640 _HS2_ERRI 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 LX576 Normal communication with High speed link parameter 1 k block LO360 _HS2_TRX k Bit station LOS9F 41 X639 k 00 63 Array Indicates if communication state of k data of parameter is LX703 block of parameter L0440 HS2 SETBLO Bit High speed link parameter 1 k block setting LO47F CK k Array 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 IEC type normal end abnormal end 1513 om LW513 _P2P1 STATUSOO Indicates error code in case of P2P parameter 1 0 Block service abnormal end Word normal count Word
145. l server Modbus ASCII RTU server Server Data bit 7ors Stop bit 1 or 2 Parity Even Odd None Synchronization type Asynchronous type Transmission speed bps 1200 2400 4800 9600 19200 38400 57600 115200 bps available ps Setting range 0 255 Station No setting Max station No available 32 stations Transmission l Max 15m Max 500m distance Check available by XG5000 diagnosis service Note 1 lt UDATA for CDMA modem communication applicable version gt Series XBM XBCH XBCSU XBCS XBCE XG5000 Version V2 40 or above V1 50 or above V3 71 or above Series XBCEX XBCEB XECH XECSU XECE Version V1 80 or above V1 40 or above Notes 2 lt LS Bus Client applicable version gt Series XBM XBCH XBCSU XBCS XBCE XG5000 Series XBCEX XBCEB XECH XECSU XECE Version _ V1 01 or above V1 01 or above V1 70 or above V1 30 or above V1 10 or above _ _ Note 3 Max 32 stations are available for consist the client and server Station number setting range is 0 255 Chapter 2 specification 2 Extension Cnet performance specification XGB extension Cnet communication module performance specification is as follows Specification Item XBL C21A XBL C41A Serial communication channel RS 232C 1 channel RS 422 485 1 channel External modem connection Modem connection function available Operates as communication client
146. le Click Add Module in the Select communication module window Then register the Cnet I F module about wanted slot position in the Communication Module Settings window _ gt e d test XG5000 Project Edit Find Replace View Online Monitor Debug Tools Window Help De AGH S C PBAMO PINs BAX ECKAR MBS OOO GRV PCSC S2BG GASES Bk A sl lacie alile ole p H 4 47 15 R P N F 4 p i AEN p af E a pele F F sF9 F9 F11 sF3 sF4 sF5 sF6 F10 sF7 c3 Project wx NewProgram X s test 4 2 Network Configuration 4 D Unspecified Matar 2 NewPL AddItem mt System Variab p By c 4 NewPLC XGB Ctri C f P2P Communication a Paste Ctrl V fi ta x Del High speed Link Communication 4G Parameter elete Delete User Frame IS Basic P pay PEOR Es VO Parerrever jenai Internal Parameter Add Slave amti da a aa Function FB Select communication module a PLC type NewPLC Communication module N umber BASE Unspecified Network Internal Cnet 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 XG5000 you should connect basic unit After Online gt Connection after doing communication setting by using Online gt Connection Settings and doing lo
147. mand XGB lt Inverter For NAK response after execution of command XGB lt Inverter Frame Example ASCII value H3031 Error code 2 Byte H 8 4 Chapter 8 LS Bus Protocol 8 2 2 Inverter continuous reading R This is a function of continuous reading of designated amount of PLC data from designated address number PC Request format i A f F l Format name Header Actor Command e Number of data aa Tail No inverter check Frame Example ENQ Hio R 0100 ASCII value H3130 H30313030 H35 H BCC When ASCII value of each 1byte except ENQ and EOT is summed the lowest 1byte of the result value is BCC sareei This specifies how many Words you will write As converted value to ASCII the range is from g H01 ASCII value 3031 to HO8 ASCII value 3038 Enter the address that you want to read ASCII value above 4 characters and non numeric is Address of inverter awd e Device data of Word type is only supported 8 5 Chapter 8 LS Bus Protocol Inverter response format ACK esol Formatname Header Siue command Daa Framecteck Tai Femo ROK 20 8 roves o or AsCilvalue Ho6 3230 H52__ H3osoass2 ma BCC When ASCII value of each 1byte except ENQ and EOT is summed the lowest ibyte of the result value is BCC Inverter response format NAK response Station Error code Frame Tail Rees ere Seana ASC 2 a BEZIN Frame Example
148. mat PC XGB type of blocks Length check Fame Eam a a Hos ASCII value H3031 H57 77 H5353 H3031 H3036 pea Gin H30304646 pHoe e For ACK response after execution of command PC lt XGB ASCII value maosi Herom 15055 oe e For NAK response after execution of command PC lt XGB Station 7 13 Chapter 7 XGT Dedicated Protocol 7 2 4 Continuous writing of device W w SB This is a function that directly specifies PLC device memory and continuously writes data from specified address as much as specified length e Request format Format Head Station Comma Device Number Frame Length OMe ot dat 1m check Ea Hos H3130 H57 77 H5342 i E TOMA A ME 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 Eevee 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 OVI this name digits upper lower case and only are allowable to be entered 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
149. mmunication Example 11 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 defined communication is described in the system like Figure 10 4 1 below e System configuration RS 485 9600 8 1 None User defined communication OEO Teter et PERE Pore Figure 11 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 11 4 1 Deea aE Han Young sampa e NG controller Built in RS 485 PX7 ana User frame definition PC Link type speed Databit f o 8 Seton o Goarin Reads present value and setting value from temperature controller every p second and saves present value at MB200 and setting value at MB210 Table 11 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 11 20 Chapter 11 Example Program eee 11 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 de
150. 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 may cause short malfunction or error d Polarity Before supplying power of module which has terminal block check the polarity e Wiring e In case of wiring IO with high voltage line or power line induced obstacle may 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 E Induced load 7 Diode OUT 9 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 12 12 Chapter 12 Installation and Wiring 12 3 Wire In case using system it describes caution about wiring
151. mote Cent wl fre Wireless modem Wireless modem Figure 5 1 16 remote connection by using wireless modem 5 10 Chapter 5 Remote Connection TT EEE 2 Remote connection by RS 422 485 Figure 5 1 17 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 5 1 17 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 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
152. n In case of transmission they are divided into string constant numerical constant and fix sized variable Meaning of string constant and numerical constant is same with HEAD s 1 Variable sized variable in RX frame Part where size and contents changes are defined as variable sized variable Variable sized variable can be set in the BODY and after variable sized variable the user can t add segment When using variable sized variable there should be one among HEAD TAIL If the user registers variable sized variable without HEAD TAIL when receiving frame there may be error according to communication status For reliability of communication register one among HEAD TAIL In case of Variable sized variable of TX frame the size is designated in P2P Block setting so the function and characteristic is same with Fix sized variable of RX frame 2 Fix sized variable in RX frame Frame part where size is fixed but contents changes are defined as Fix sized variable It can be set in the BODY In case of Fix sized variable the user can register up to 4 TRX frame standard for user defined communication of XGT Cnet I F module is as follows Segment Reference Numerical constant Max 10 byte String constant Max 10 byte Numerical constant Max 10 byte String constant Max 10 byte BCC Only one BCC applicable Numerical constant Max 10 byte String constant Max 10 byte Varia
153. n between Cnet I F modules 3 6 3 2 4 Dedicated communication with PC HMI and different type RS 422 communication 3 7 3 2 5 Optical modem communication for moving material communication 3 8 3 2 6 Wireless modem communication for communication between revolution bodies 3 9 Chapter 4 Basic Setting 41 Seting Sequence Ol PrOOUCE sreseeseesiec dee ie 4 1 4 2 PLC Type Setting and How to Register Communication Module 4 2 4 2 1 Making new project 4 2 4 2 2 In case of off line method on Cnet I F module registration 4 3 4 2 3 How to register Cnet I F module in case of online 4 3 4 2 4 Read parameter saved in PLC 4 5 4 3 HOW to Sel Basic Parameter sesss sesese 4 ec5teseesssseteessescsecaseaeensecase 4 6 A391 SEWING IGM e282seosce sess ses e a ee eee oes 4 7 AS SCUING MELNO es2scesseaeste a EE re hsassee 4 9 Chapter 5 Remote Connection 5 1 Remote connection 5 1 5 1 1 General 5 1 5 1 2 XG5000 remote connection 5 1 5 1 3 Remote connection between Cnet I F moduleSs
154. n number of RX frame is different with self station number Self station number 0 OA In case of not get response from CPU RX frame size exceeds the modbus max frame size OC RX frame is not Modbus ASCII RTU HEX conversion error in Modbus Chapter 10Diagnosis 10 2 Trouble Shooting by Error 10 2 1 Trouble shooing when P2P parameter setting error occurs in case of XG5000 connection P2P setting error warning in case of XG5000 connection ers 2 1 In Enable Link menu of San EE E In case of enabling XG5000 check P2P setting T a link the user number and delete P2P number enabled the link not selected properly where P2P is not set 2 After disconnecting XG5000 connect XG5000 again and check 10 2 2 Trouble shooting when communication is not done after P2P client setting Phenomenon Reason Trouble shooting Connect XG5000 and check CPU In case CPU is stop mode mode lf CPU mode is stop change mode into RUN Tougn a ee S E aol Connect XG5000 and click Project completed Tx Rx of Cnet Open from PLC Check standard F doesn t flicker aries o a settings of module acting as client and server server Enable Link setting After executing P2P parameter error enable right P2P link 10 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 In c
155. n server set as XGT server Chapter 11 Example Program eee 11 2 2 Settings of XGT client To operate XBL C21A of client as XGT client set Cent I F module as follows Setting method Online Settings XBCH Connection settings Ethernet Modem General Extended Base USB Timeout interval Connection settings Retrial times Read Write data size in PLC run mode Normal Maximum Send maximum data size in stop mode Connect Cancel 1 Select Online Connection Settings or click icon S2h 2 Click Connect after setting Reading IO Select Online Diagnosis I O Information and click I O Sync information Reads the information about currently equipped module Standard Settings Cnet O S Data bit Stop bit Parity bit Parity receiving error Modem type Modem Initialization Standard naii settings Time Settings Response waiting time 3 0 50 100ms Delay time setting 0 255 10ms Delay time between character 0 255 10ms Active mode Channel 1 Use P2P Channel 2 XGT server 1 Select XBL C21A and set standard setting at channel 2 to be same with setting described in Table 11 2 1 2 In case of acting as client station setting doesn t have the meaning so set temporary station 0 255 3 When acting as client act
156. nable P2P Link 6 25 Chapter 6 Server function and P2P service aaa U 6 5 8 Diagnosis User can check the normal operation to using diagnosis feature Select Online Communication module setting System diagnosis Right click on the module to check and select frame moniter or status by service Then user can check the communication status For more information please refer to the Chapter 10 Diagnosis Chapter 6 Server function and P2P service eee 6 6 UDATA Instruction 6 6 1 SEND _UDATA IEC SEND_UDATA Availability Flags User defined data send XGI XGR Uwe SEND_UDATA REQ requires to execute the function block aoe ewe BASE base number BASE STAT SLOT slot number CH channel 1 or 2 M DATA data area to send SIZE data size to send SLOT ARRAY 1024 OF BYTE UINT Output DONE maintains 1 after operation STAT completion and ERR info a Function 1 SEND_UDATA instruction sends user defined data UDATA 2 BASE and SLOT should input a base and the slot number that CNET module was attached to now 3 CH means a channel number and must set 1 or 2 4 DATA must be declared only ARRAY OF BYTE type 5 Array size is 1 1024 byte 6 Save to transmit buffer as number as SIZE from DATA 0 Limit of data size is 1024 at once 7 If 1 is output by Done and STAT it accomplished normally and If an error is produced state information is displayed by STAT Chapter 6 Server function and P2P service b
157. nce 1 2W as characteristic impedance of cable must be connected to terminal of network 3 When using the recommended cable in 12 6 connect terminal resistance of 120Q 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 gt Terminal Resistance 1 2W 1202 tolerance of 5 1 How to connect terminal resistance in case of RS 422 Figure 12 7 1 Terminal resistance connection diagram in case of RS 422 2 How to connect terminal resistance in case of RS 485 Figure 12 7 2 Terminal resistance connection diagram in case of RS 485 12 24 Chapter 13 Maintenance Chapter 13 Maintenance Be sure to perform daily and periodic maintenance and inspection in order to maintain the PLC in the best conditions 13 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 i Input Output specification of ee Power supply for input output Hold it with the allowable range of each module Temperature 0 95 C
158. nce no of word is 1 select 1 Destination station number input 1 as station number of server 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 If all settings are completed color of index of channel becomes black oe Destina ptt 1 GT client WRITE F00092 Singe 2BYTE 1 m 1 Bh EN E Setting of 1 GT client READ F00092 Singe 2BYTE 1 v 1 Sp DRG Ani readi Ng Variable Setting 7 O pe rat lon Read area Remote Address i Save area Local Address XBCH D100 M0110 N00062 1 Channel conditional flag command type data type No of variable destination station no s Destina DR __ Conditional No of 5 Destination z gt Driver Setting P2P function flag Command type Data type aE Data size a erates acne Frame Setting Variable setting contents lv 1 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 Chapter 11 Example Program Setting method wide XECH wii PLC Configuration Writing WE Comment arameter WLI Stop Parameter p te Stop Program WER Network Paramete i 7 vr etwork Parameter Gear Pion E Standard settings E Cnet based slot H deak _ 1 Select
159. nd P2P service Detestation Destination a l l station E oo destination station number and setting range is number e Read area Device area of data saved in destination a u N station server Setting BIT Input 0x10000 WORD Input 0x30000 2 Save area Device area of self station to save the data BIT Output 0x00000 WORD Output 0x40000 6 4 3 Parameter Write After completed the P2P block setting download the parameter to CPU Select Online Write on the menu click OK in the parameter download window After download is complete parameter will be right applied wie BCH Ee Configuration Comment ms Stop Parameter a Stop Program WEEE Network Paramete VER etwork Parameter H Standard settings i TE Cnet based slot H High speed Link fl High speed Link 01 Figure 6 4 2 Parameter write 6 14 Chapter 6 Server function and P2P service 6 4 4 Enable Link After completed the parameter download user must enabling the P2P service If user complete the parameter download but do not enabling the P2P IEP P2P block will not work Select Online Communication Module Setting Enable Link and check the P2P EIP to use then P2P will be activated z Enable Link HS Link P2P aa 3 ep CPUH XBCH 3 H High speed Link C E High speed Link 01 i 6 High speed Link 02 3 H PEP vies E P2P 02 L P2P 03 Figure 6 4 3 Enable P2P Link
160. nsists of max 32 P2P block The following figure is example of P2P parameter setting window of XG5000 dy sdf x65000 gt Project Edit Find Replace View Online Monitor Debug Tools Window Help SARS OBA O es REX EKA HANKE nt 2S OO0 G7 CSh GBS SAG590 GUWURES ooo Toles A RUMP Be ARRRMSRRRR SUSE ocdaan m fe EE ed JEL D Da os as e F3 F4 sFi sF2 FS F6 Project SB bitch ali NewPLC P2P02 X 4 aie sdf 5 aie Network Configuration rt T Unspecified Network AE NewPLC B050 Internal Cnet E WGT client WRITE 4 4 NewPLC B0S1 XBL C214 re H P2P 02 gl P2P Channel i P2P Block 2 User frame definition p on variable Pret 1 F Check Program a P E E E lineal n PLC Program Device at View Highs imc Link View P2P UOWEUUOJU sgg cauaa wasis Monitor E Ochi Gere Row 0 Column 0 Overwrite i Figure 6 2 1 P2P parameter setting example Note 1 P2P 01 is fixed allocated at built in communication P2P 02 for first communication module P2P 03 for second communication So slot number should be correct 6 4 Chapter 6 Server function and P2P service 6 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 re sdf XG5000 Project Edit Find Replace View Online Monitor Ds aS O a
161. nverted from hex type and the range is Length of from H01 ASCII value 3031 to H10 ASCII value 3130 For example if the device name device name is MWQO it has 4 characters to be H04 as its length If MW0O00 characters to be HO6 Address to be actually read is entered This must be ASCII value within 16 characters Pence Name and in this name digits upper lower case is only allowable to be entered e BCC value is low ibyte in the sum of each byte from ENQ to EOT e In case of making actual frame H is not attached Because the data of frame indicates hexadecimal Chapter 7 XGT Dedicated Protocol e XGB response format ACK response Format name Header Station No Command Command type See ct ee Tail pane ry blocks data check eer ee ee ee an fea emf aoe 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 ASCII 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 Data ype Available variable Number of data Bit X P M L K F T C D R 1 Q W X gt P M L K F T C D R 1 Q W B P M L K F T C D R Q W W xR area is a at XBC
162. odbus Communication 3 Frame example Example writing continuous 2 words starting 20 address of server acting as Modbus RTU mode Ex value to write continuousl a Request frame Address No of output Classific ation Station no Functio n code Upper byte Lower byte Upper byte Lower byte Frame 01 10 00 13 00 02 b Response frame In case receiving normal frame Classific ation Station no d ey c Response frame An case of receiving abnormal frame e o s o e m Frame S E E E Chapter 10Diagnosis eee SEF ETF Chapter 10 Diagnosis With XG5000 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 10 1 Diagnosis Function of XG5000 How to diagnosis system and network status by XG5000 system diagnosis are described below Connect XG5000 to loader port of main unit and if you select Online gt Communication module setting gt System Diagnosis the following window is created d CPUH XG5000 a a ero Project Edit Find Replace View Online Monitor Debug Tools Window Help DSA AAAMOOO QS SAX CK AE 8A Gh GY R 8 OCI BACA BF OBE 228088 akKuWkBs RTA OHI REDS e oe gt OR 4b d h 4PR ANF gt gt Uh 1S AR 4 aD AEF
163. oduct 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 gt 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 gt 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 gt 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
164. 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 Varop voltage drop of each output module V pay ff f f ff N Main unit Comm Comm output finput Special input 5V DC5V 12 6 Chapter 12 Installation and Wiring e Inout 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 l5v X 5 laav X 24 lioov X 100 W The sum of power consumption calculated by each block is the power consumption of the entire PLC system e W Wew Wosv Waav 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 C W power consumption of the entire PLC system the above calculated value A surface area of control panel mf 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 protective control design c
165. on module hardware pe Indicates version of communication module OS ee Indicates whether P2P communication is activated or not System parameter Whether standard communication parameter is downloaded or not information Standard communication parameter error information expression 10 2 Chapter 10Diagnosis 10 1 3 Frame monitor The user can check whether frame is normal or not by monitoring TRX frame through Cnet I F module by XG5000 s frame monitor Check list Detail result Frame monitor XBCH Frame Monitor Standard information Base No 0 Slot No 0 Monitor selections Select Channel 1 Channel Frame monitor Form Processing results Transmission Customize Transmission Customize Transmission Customize Transmission Customize Transmission Customize Transmission Customize Transmission Customize Transmission Customize Transmission Customize Transmission Customize Transmission Customize Detailed frame data 00 Ce Y Oo View by HEX Time 2015 2 6 15 29 17 470 2015 2 6 15 29 18 470 2015 2 6 15 29 19 470 2015 2 6 15 29 20 470 2015 2 6 15 29 21 470 2015 2 6 15 29 22 470 2015 2 6 15 29 23 470 2015 2 6 15 29 24 470 2015 2 6 15 29 25 470 2015 2 6 15 29 26 470 2015 2 6 15 29 27 470 x View by ASCII Frame data 00 00 00 00 00 00 00 00 00 1 Select Online Communication module setting System Diagnosis or click the icon 2 If you click ri
166. onfigures transmission frame gt ASCII to Hex converts the data red from PLC into Hex and configures transmission frame 4 Swap gt 2 Byte swap 2 byte swap of data Ex 0x1234 0x3412 gt 4 Byte swap 4 byte swap of data Ex 0x12345678 0x78564321 gt 8 Byte swap 8 byte swap of data Chapter 6 Server function and P2P service eee 6 5 4 Writing receive frame Seq Setting Setting method Project 4 3 CPUH 4 3 Network Configuration a D Unspecified Network a XBCH BOSO LHZ Cnet a E P2P 01 nternal P2P Channel Writing user frame Latha cea Q User frame di Prees Network definition System Variable Lee a XBCH XGB XBCH Run Cosy Ctrl C Communication Module z Variable Comment Paste Ctrl V P2P Communication a L9 Parameter X Delete Delete Basic Parameter User Frame tw I O Parameter E Properties fal Internal Paramete 11 Project WGA aE a aud ra aa Add Slave High speed Link Communication Add a Group Group Edit Group name receive Frame type Reception Creating frame Project a p CPUH 4 3 Network Configuration a Q Unspecified Network a XBCH B050 LHZ Cnet a E P2P O1dnternal P2P Channel Creating frame E P2P Block Variable sized _ 4 9 User frame definition gt 3 Send Transmission E receive Reception z ig System Variable Edit Group a XBCH XGB XBCH Run X Delete Group Delete E Variable Comment a a Parameter
167. onsidering 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 12 7 Chapter 12 Installation and Wiring 12 2 Attachment Detachment of Modules 12 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 gt 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 12 8 Chapter 12 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 gt When separating module don t force over applied p
168. ower If so hook may be damaged Chapter 12 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 30 mm or above 30 mm or above 5mm or above 5mm or above 1 ln 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 12 10 Chapter 12 Installation and Wiring b Don t install like the following figure 5 Distance with other device To avoid radiation noise or heat keep the distance between PLC and device connector and relay as far as the following figure Device installed in front of PLC 100 m or above Device installed beside PLC 50 mm or above A 7 p zee 100mm or above mm or above 50mm or above 12 11 Chapter 12 Installation and Wiring 12 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 of IO
169. r code error code is expressed by adding 80 Hex and in case of reading word of output area it is expressed 83 Hex j Exceptional code details of error consists of 1 byte 3 Frame example Fe mld that reads word 108 110 from station number 1 server acting as modbus RTU a Request frame Classification d Error check b Response frame receiving normal frame no code Frame of o3 3 12 3aD 12 40 4F CRO c mesponse frame receiving abnormal frame Frame ca a mn a 9 9 Chapter 9 Modbus Communication 9 4 4 Read Input Registers 04 1 Reading word of input area In case of reading word of input area request and response frame is as follows Tail of frame is applied in case of ASCII mode a neques frame eee Tt ts b Response frame in case of receiving normal frame Classification ae Baus No of BE Tail CRLF w e gt c In case of response frame In case of receiving abnormal frame eS s LE Ta OAL TAS 2 Details of frame a Station no indicates the station no of slave to read word of input area b Function code 04 indicating Read Input Registers c Address start address of data to read and it consists of 2 byte At this time start address conforms to modbus address regulation d Data size size of data to read and it consists of 2 byte e Frame error check in case of ASCII mode it uses LRC and in case of STU mode it uses CR
170. rame s ma ot D E E E c In case of response frame In case of receiving abnormal frame wien elo o oe byte 2 Details of frame a Station no indicates the station no of slave to read bit of output area b Function code 01 indicating Read Coil Status c Address start address of data to read and it consists of 2 byte At this time start address conforms to modbus address regulation d Data size size of data to read and it consists of 2 byte e Frame error check in case of ASCII mode it uses LRC and in case of STU mode it uses CRC It consists of 2 byte f Tail it is applies in case of ASCII mode CRLF is added after LRC g No of byte no of byte of response data h Data makes address of request frame as start address and transmits data with byte unit i Error code error code is expressed by adding 80 Hex to function code and in case of reading bit of output area it is expressed as 81 Hex j Exceptional code indicates detail of error and consists of 1 byte AN i a AAA a 9 6 Chapter 9 Modbus Communication 3 Frame example Example that requests reading bit of 20 28 to station number 1 server acting as modbus RTU mode a Request frame Classification Station no d Error check 13 13 CRC 2 Response frame In case receiving normal frame Frame oOo 2r a s oc c Response frame In case of receiving abnormal frame 9 7 Chapter 9 Modbus Communication
171. ration 2 1 Modbus ATU client Modbus ATU client WRITE F00092 Continuous BIT READ F00092 Single WORD READ F00092 Continuous WORD 4 Variable Setting Read area Remote Address Save area Local Address XBCH Readarea Savearea Address 0430000 MO150 NO0226 Settin Number 1 9 READ1 M00020 5AVE1 0x00150 Setting Number eung READ1 0x30002 SAVE1 M0160 Sai Number 1 i ettingy READ1 0x30000 SAVE1 M0150 1 Ch Conditional flag Command type Data type aon 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 Setting of reading operation 3 Modbus ATU client q Destination station number READ F00092 Single Variable E Read area Remote Address Save area Local Address XBCH Readaea Saveara Address 0410021 M01701 NOO267 gt Read 1 bit of P2 of server and save it at 1 bit of M170 1 Ch Conditional flag Command type Data type Destination station no same with step 7 2 P2P function select READ 3 Setting after setting Read area and Save area click OK 1 Read area device address saved in server 0x10021 Modbus RTU client Setting of i reading E operation 4 Modbus ATU client READ F00092 Single READ F00092 Continuous Variable Setting Read
172. rding to the setting of the user Please refer to the manual of the modem 11 26 Chapter 11 Example Program gt XBL C21A setting Setting method r Standard Settings Cnet ne a Communication settings Channel 1 Type RS232C sA Speed 115200 Data bit z Stop bit Z Parity bit hA Parity receiving error Modem type Modem Initialization Station Number Time Settings Response waiting time 1 0 50 100ms Delay time setting 0 255 10ms Delay time between character 0 255 10ms Active mode Channel 1 Use P2P Channel 2 Use P2P 1 Set standard setting at the channel 1 to be same with setting described in the example of client above Speed 115 200 Data bit 8 Stop bit 1 parity bit NONE 2 When acting as client mode active mode should be Use P2P settings F B Enable Link HS Link P2P A NewPLc 5 H High speed Link F High speed Link 01 T High speed Link 02 16 High speed Link 03 High speed Link 04 F High speed Link 05 CE High speed Link 06 1 6 High speed Link 07 P High speed Link 08 C E High speed Link 09 TE High speed Link 10 Use P2P User frame definition ews L 6 High speed Link 11 Use P2P P High speed Link 12 3 H PPEP VE P2P 01 B050 XGL C42A E P2P 02 PE P2P 03 2 E P2P 04 CE P2P 05 P2P 06 P 07 E P2P 08 r Channel Setting E
173. re is case Cnet station number is set as 1 Details 2 Ee RS 232C Remote Network type Cnet Local communication module Base number 0 Slot number 0 Cnet channel Channeli Remote 1 communication module station number IF address Scan IP Figure 5 1 15 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 e 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 retry from a for reconnection f In case of optical modem wireless modem other than dedicated modem communication media is only different method of remote connection is same g Figure 5 1 16 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 nT o C terfac AS 232C Interface me Q Re
174. recharged disassembled heated short or soldered Heat explosion or ignition may cause injuries or fire gt 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 gt Keep any wireless installations 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 Version V 1 0 V1 1 V1 3 V 1 4 V1 5 V 1 6 V1 8 Date 2006 6 2007 7 2008 3 2010 3 2010 5 2013 4 2014 2 2014 11 2015 1 Revision History Remark 1 First Edition 1 Position and Special function contents separated 1 Position function contents separated position part published 2 PID control and Ch 12 Analog IO module contents separated 2 Contents added 1 Naming standard added 2 Caution when selecting IO module added 3 Installation and wiring contents added 3 Content modified 1 Safety instruction modified 2 System Configuration modified 3 High speed counter function modified 4 External dimension modified 1 XGB compact type H type added 2 Built in communication content
175. riting 10 continuous bits data size is 2 f Output data value to write in the address set in the Address g Frame error check in case of ASCII mode it uses LRC and in case of STU mode it uses CRC It consists of 2 byte h Tail it is applies in case of ASCII mode CRLF is added after LRC i No of byte no of byte of response data j Error code error code is expressed by adding 80 Hex to function code and in case of writing continuous bit of output area it is expressed as 8F Hex k Exceptional code indicates detail of error and consists of 1 byte Chapter 9 Modbus Communication 3 Frame example Example writing 10 continuous bits starting 20 address of 1 server acting as Modbus RTU mode Ex Data value to write continuous PEDRO ee eee ee ee Address 27 26 25 24 23 22 a1 ao a Request frame Classifica Sra Function No ofoutput oi No ofoutput Data EN e EN e byte a a o b Response frame In case receiving normal frame eee Station no Function code i moe c Response frame In case of receiving abnormal frame Chapter 9 Modbus Communication 9 4 8 Preset Multiple Registers 10 1 Writing word continuously to output area In case of writing word continuously to output area request and response frame is as follows Tail of frame is applied in case of ASCII mode a Request frame Sone Function No of TENE Tail Classification Address Data siz
176. rror between PLC CPU and external device adding installing interlock circuit at the PLC program Chapter 12 Installation and Wiring 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 12 2 Chapter 12 Installation and Wiring 12 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 p Check direct ap ans current 4 Fuse Signal input i CPU F0045 4 H Pm F009C i PLC RUN output Start available as RA1
177. ructure of modbus protocol Modbus protocol s structure is as follows ADU Application Data Unit Satonne Fonos bx O erore D PDU Protocol Data Unit In case of normal communication process step is as follows Client Server Receiving response data lt ll Response data oF 1 Chapter 9 Modbus Communication In case of abnormal communication process step is as follows Client Server I gt Receiving response data lt ll Exceptional code When receiving the abnormal frame from client server transmits error code and exceptional code Error code is function code adding 80 Hex and exceptional code indicate the specific error content Each code has following content Server error Server slave is error Server requesting re transmission Now server is too busy to process and requests re transmission later a Server en Img Server takes time to process Master should request again Chapter 9 Modbus Communication 9 3 Structure of Frame 9 3 1 Structure of frame in the ASCII mode Frame structure in the ASCII mode is as follows a 1 Characteristic of ASCII mode a In the ASCII mode start of frame is indicated with colon which is ASCII code and end of frame is indicated with CRLP b Each character allows maximum 1s interval c How to check the error uses LRC it takes 2 s complement except frame of start and end and converts it as ASCII conversion 2 Address area a
178. rver function and P2P service 6 6 8 SENDRTS MK Area Available p Flag Instruction Step Error Zero Carry PMK F L T C S Z D x Rx F110 F111 F112 at EEE EE BEEBE EE si o Jo Jo ofolololo SNDDTR 4 7 ARJO OOG CBETA SENDRTS FL sennats si si se o Area Setting Description Base and slot number Channel 1 or 2 _D__ Temporary device thatusedininstruction WORD Flag Setting a Device If sl value is not matched with CNET module installed F110 a Function 1 SENDRTS instruction sends RTS Request To Send signal 2 slis base and slot number of CNET module installed 3 S1 is channel number 1 or 2 4 S2 is RTS value 0 or 1 5 D is temporary device area to save instruction information Initial value is O and If user change that value instruction is not operated normally CPU Device D WORD WORD Reserved area WORD re WORD Prohibition on Use b Error 1 If sl value is not matched with CNET module installed set error flag F110 Chapter 6 Server function and P2P service c State Information Information 00 Initial state Before excute instruction Instruction excute complete If sl value is not matched with CNET module installed S1 value is not 1 or 2 05 aili p S2 RTS setting value is not 0 or 1 Communication parameter setting If parameter of CNET module is not set as user defined data or when Link enable
179. rver x odbus Settinas Figure 6 5 2 P2P Channel setting 6 5 3 Writing transmission frame Frame is composed of HEAD indicating start TAIL indicating end and BODY which is data area How to write transmission frame is as follows Writing user frame Beate al Lier frame d oe definition P a E KECHAGI NECH Run g Copy G WariableConmment Bree a A Parameter I Basic Parameter j VO Paneer p ie Seiten 2 ee Add Group a Ea arrel Project ee ma ned 1 Select User frame definition 2 Click right button of mouse and click Add Group Group Edit Group name Send Frame type Transmission 7 Creating frame Cancel 1 Group name is name of frame for user to write 2 Select Transmission as frame type Chapter 6 Server function and P2P service Seq Setting Setting method Project 4 3 CPUH 4 3 Network Configuration 4 Unspecified Network 4 44 XBCH BOSO LZ Cnet s E P2P 01 nternal P2P Channel Creating frame P2P Block a User frame definition 3 Send Trancmiccion System Variable Edit Group 4 0 XBCH XGB XBCH Run X Delete Group Delete 4 Variable Comment Add Frame Check creation of frame Select frame name and click right button of mouse Click Add frame to create HEAD TAIL and BODY Group Edit when changing frame name Delete Group when deleting frame Creating HEAD EA TAIL BODY TAN B
180. s P004 Cancel Figure 6 1 2 Modbus server memory settings window Meaning of each setting item is as follows Bit read area Address Address of XGB relevant to digital Inout 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 6 1 2 Modbus area meaning In case of IEC type use IEC type address value Address value of each item is base address of each area The setting of above screen is the situation of allocating bit reading area from M0000 bit and Word writing area from D0000 word Base address input value should be in XGB series internal device area 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 0 as base address of bit output OXXXX area Modbus bit area 00001 corresponds 0 byte 0 bit 00002 corresponds 0 byte first bit 6 3 Chapter 6 Server function and P2P service eea a a Nl 6 2 P2P Service 6 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 XG5000 each P2P parameter co
181. s base and slot number of CNET module installed 3 1 is channel number 1 or 2 4 S2is DTR value 0 or 1 5 D is temporary device area to save instruction information Initial value is O and If user change that value instruction is not operated normally CPU Device WORD WORD Reserved area WORD Prohibition on Use WORD 1 Ifsl value is not matched with CNET module installed set error flag F110 b Error c State Information Chapter 6 Server function and P2P service Initial state Before excute instruction Instruction excute complete 02 ica Aad If sl value is not matched with CNET module installed 08 nanne saiing S1 value is not 1 or 2 error 04 N pea S2 DTR setting value is not 0 or 1 Communication If parameter of CNET module is not set as user defined data or parameter setting i Ero when Link enable is not set Timeout error No response casue of abnormal CNET module Verseion CNET OS version is below V3 2 0 If CPU version is below V4 2 program download in not mismatch operated d Program Example 1 If Input signal M00002 Order to send DTR Data Terminal Ready up to SIZE with CNET module attached to BASE SLOT 01 02 03 04 05 7 g h F SENDDTR CH DTR INFO 0 Remark 1 Devices D 1 D 3 set in operand D are the areas to be saved with instruction information So users must not change that areas If change that areas instruction is not operated normally Chapter 6 Se
182. s 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 e XGB response format NAK response s t Heade Station Error code Tail T ormatname No Command Command type Hex 2 Byte al rame chec When command is lowercase r only one lower byte of the value resulted by adding 1 BCC 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 Appendix 3 error codes and countermeasures Chapter 7 XGT Dedicated Protocol e Example This example supposes that 2 WORDs from M000 of station No 10 is read It supposes that M000 H1234 M001 H5678 e PC request format PC XGB Sci value Hos Haoa H22 H8342 Hoose Hesansososo neose Hoe eFor ACK response after execution of command PC XGB Format name Header Station No Command Sumene OENE ENa Data Tail Frame check type of block of data Paweama ack HOA no se HOT Hos meeer e B00 ASCII value Hos ooa Peara Hs342 Host Haosa Hat32333405365738 03 O eFor NAK response after execution of command PC XGB Fane ano Error code 2 Byte ASCII value H15 H3041 H52 72 H5342 Error code 4 Byte H03 Chapter 7 XGT Dedicated Protocol 7 2 3 Individual writing of device W w SS This is a func
183. 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 XG5000 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 Standard Settings _ oe Communication settings Type Speed Data bit Stop bit Parity bit NONE NONE X Parity receiving Not Allowed Not Allowed 0 1 Modem Initialization Station Number Time Settings Response waiting time 0 50 100ms Delay time setting 0 255 10ms Delay time between character 0 255 10ms m Active mode Channel 1 XGT server Channel 2 Use P2P x Modbus Settines x cae _ O Figure 4 3 2 Communication module setting screen If standard communication parameter setting ends download Cnet module If you select Online gt Write download is executed After downloading parameter is applied shortly MaD NewPLc U PLC Configuration iv EG Parameter i w Program VE Network Parameter Standard settings o Cnet b
184. 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 A1 4 Appendix 1 Definition of Terms eee eee jj 11 Half Duplex Communication Two way communication is available 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 ZN T S77 EN KOEN 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 separa
185. smission frame written in the user definition frame In case of selecting RECEIVE in the P2P function select body of receive frame written in the user definition frame Setting is available when Assign memory of Fix sized variable Setting and variable sized variable is checked Save area start address to save the data received from destination station 6 24 Chapter 6 Server function and P2P service eee 6 5 6 Parameter Write After completed the P2P block setting download the parameter to CPU Select Online Write on the menu click OK in the parameter download window After download is complete parameter will be right applied r Write VE PLC Configuration o WIE Comment TIEN Stop Parameter MS Stop Program Vee Network Parameter Standard settings Cnet base0 slot0 H High speed Link TEI High speed Link 01 P2P EIP P2P 01 Internal Figure 6 5 3 Parameter write 6 5 7 Enable Link After completed the parameter download user must enabling the P2P service If user complete the parameter download but do not enabling the P2P IEP P2P block will not work Select Online gt Communication Module Setting Enable Link and check the P2P EIP to use then P2P will be activated i a Enable Link HS nkr CPUH XBCH 3 H High speed Link P High speed Link 01 E High speed Link 02 3 H PPEP View TSS FP Pa 02 FE Pa 03 Figure 6 5 4 E
186. ssification Command Reose Reose ASCII code Monitoring H78 variable H58 HOO HOF Register device to monitor register Execution of Hi i CIS HOO HOF Execute registered device to monitor e It identifies capitals or small letters for main commands but not for the others Chapter 7 XGT Dedicated Protocol 7 1 3 Data type It s possible to read and write device in built in communication When device is used be aware of data type e Available types of device XBM DXXXS and XBC DXXXH e Poze po pi 1024 ReadWeonioravaabie p oozosn D0 Dr0209 10240 ReadWieorioravaisble a o romos 10240 eater avaible XEC DXXXH Device rae sowo rore i vawoco swisisa 1028 ReadWiteMontoravaiabe a wawocc 2awss153 1024 ReadWiteMontoravaiabe 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 Bit X 58H PX000 MX000 LX000 KX000 CX000 I X000 F X000 etc Byte B 42H PB000 MB000 LBO000 KB000 CB000 1 B000 FBO000 etc PW000 MW000 LW000 KW000 CW000 T W000 F W000 WTH cowo00 ete pi44H _ PD000 MD000 LD000 KD000 CD000 T D000 FD000 DD000 etc L 4cH _ PL000 ML000 LL000 KL000 CL000 T L000 FLO00 DLO00 etc e Timer Counter used in bit command means contact point values word command means current values e Data register D can uses
187. t point 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 Tm RA1 NO Tm min Start i Program SW RAL a m Hmh i i D cA M f Stop SW Voltage relay equipped Output for warning Lamp or buzzer Stop by ERR Error Off Configure part that l l ERR contact point off lead opposite operation to output device or breakdown such as power off interlock circuit forward reverse Emergency stop revolution by external stop by limit interlock circuit p 9Y 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 12 4 Chapter 12 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 Input Output Output
188. tatio Function Output Error check Upper byte Upper byte rme or w o o o e b Response frame In case receiving normal frame Classifcatio Statio Function ee mmo code Upper byt Upper byte Frame ot c Response frame In case of receiving abnormal frame gt Fame CRE g 12 Chapter 9 Modbus Communication 9 4 7 Force Multiple Coils OF 1 Writing continuous bit to output area In case of writing continuous bit to output area request and response frame is as follows Tail of frame is applied in case of ASCII mode a Request frame sal Function No of PENG Tail Classification Address Data size Output error code OF output CRLF E ee i b Response frame In case of receiving normal frame Size byte c In case of response frame In case of receiving abnormal frame Sasain C Ta OAL Lr 2 Details of frame a Station no indicates the station no of slave to write continuous bit of outout area b Function code 06 indicating Force Multiple Coils c Address start address of data to read and it consists of 2 byte At this time start address conforms to Modbus address regulation d No of output no of output to write and it consists of 2 byte Ex When writing 10 continuous data from address number 20 no of output is OOOA Hex e Data size indicates no of output as byte Namely in case data size is 1 no of data is 9 Ex In case of w
189. ted 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 receiving terminal of the client station the communication between sever stations is unavailable with the restricted function of multi sever Client Server Server Server A1 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 Public Public network line Relay station network line XG5000 Programming software of XGT PLC for Windows A1 6 Appendi
190. teer 13 2 Appendix Appendix 1 Definition of Terms A1 1 Appendix 1 1 General Terms A1 1 Appendix 1 2 Serial Communication Terms A1 2 Appendix 2 Communication Relay List L A2 1 Appendix 2 1 Communication Relay L List A2 1 Appendix 2 2 Network Register N List A2 4 Appendix 3 Communication Error Code A3 1 Appendix 3 1 XGT Server Error Code A3 1 Appendix 3 2 Modbus Server Error Code A3 2 Appendix 3 3 P2P Client Error Code A3 2 Appendix 4 Dimension Unit MM A4 1 Chapter 1 General Ff 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 be a Indicates general specification and performance specifi
191. the fact the user should define is as follows Table 4 3 1 standard Settings Chet mim Communication settings Type RS232C RS232C v Speed 9600 9600 z Data bit 8 8 4 Stop bit 1 1 Parity bit NONE NONE Parity receiving Modem type Null Modem Null Modem v Modem Initialization Station Number 0 Time Settings Response waiting time 1 0 50 100ms Delay time setting 0 255 10ms Delay time between character 0 255 10ms m Active mode Channel 1 XGT server Channel 2 Use P2P Figure 4 3 1 Built in communication standard setting screen Setting content e You can set from station 0 to station 255 e 1200 2400 4800 9600 19200 38400 57600 115200 bps available Data bit e 7 or8 bit available e None Even Odd available e 1 or 2 bit available e It is fixed as follows according to Cnet type Communicati 1 Built in communication channel 1 RS 232C channel 2 RS 485 on channel 2 XBL C41A channel 1 not used channel 2 RS 422 RS 485 3 XBL C21A channel 1 not used channel 2 RS 232C Response It sets the time waiting respond after sending frame i waiting time 1 Setting It can be set when active mode is Use P2P 2 Waiting time 100ms value X 100ms Delay time It sets interval of communication frame 1 Setting It can be set when communication channel is RS 422
192. tion 4 Bl Save aren Remote Adkress Readarea Savearea Address E l Setting M00020 000150 NOO124 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 setting Read area and Save area click OK 1 Read area device address saved in the client M00020 2 Save area deice address of server to save 2x003 50 1 Modbus ATU client WRITE F00092 Continuous Setting Hat Moma SAVE1 0x001 50 Setting of 1 Modbus RTU client READ F00092 Single WORD wal Number ono savermoen reading e l Variable Setting operation 1 Read area Remote Address Save area Local Address XBCH Readares Saveaea Address 0x30002 M0160 N00185 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 0x30002 2 Save area device address of client to save M0160 11 17 Chapter 11 Example Program Setting method oe Destina we f Conditional No of 3 Destination ne ch Driver Setting P2P function flag Command type Data type ARE Data size dA AS TE Frame Setting Variable setting contents 1 Modbus ATU client Setting of reading i ope
193. tion that writes the PLC device memory directly specified in accord with memory data type e PC request format Number of Device Frame Formatname Header Station No Command commang o ena Device Name Data e m type check ASCII value H3230 H57 77 H5353 H3031 H3036 H254D57313030 H30304532 Ho4 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 name Number of blocks 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 Device This indicates the number of name s characters that means device which is allowable Length up to 16 characters This value is one of ASCII converted from hex type and the range is from H01 ASCII value 3031 to H10 ASCII value 3130 Name length of 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 HOOOA If Data the value to be written in MW100 area is H A the data Format must be HOOOA In data area the ASCII v
194. uilt in RS 232C module Communication type RS 232C 1 None Table 11 2 2 Server setting Pp Daabt J o S B a None speed 11 6 Chapter 11 Example Program eee 11 2 1 Settings of XGT server Setting method to operate built in RS 232C communication channel of XBC DN32H as server is as follows Setting method Online Settings XBCH a Connection settings RS 232C Depth Eke Ethernet Modem General Extended Base USB Timeout interval Retrial times Read Write data size in PLC run mode E Normal Maximum Send maximum data size in stop mode connect ox cancel Connection settings 1 Select Online Connection Settings or click icon S2h 2 Click Connect after setting D Reading IO Select Online Diagnosis I O Information and click I O Sync information Reads the information about currently equipped module a Data bit Stop bit Parity bit Parity receiving j lot Allowed error Modem type Nu Null Modem Modem Initialization Standard eee settings Time Settings 3 Response waiting time 1 1 0 50 100ms Delay time setting 0 255 10ms Delay time between character 0 255 10ms Active mode Channel 1 XGT server Modbus Settings Channel 2 XGT server Modbus Settings 1 Set standard settings at built in communication channel to be same with Table 11 2 2 s standard settings 2 Since active mode acts as dedicated communicatio
195. ule is not set as user defined data parameter setting r when Link enable is n eae O e enable is not set 06 Timeouterror___ No response casue of abnormal CNET module CNET OS version is below V3 2 Verseion mismatch If CPU version is below V4 2 program download in not Sali e Program Example f 1 If Input signal M00001 Order to receive up to SIZE with CNET module attached to BASE SLOT MOUUUT RCVUDATA CH DATA SIZE INFO I Remark 1 Devices D3 1 D3 3 set in operand D3 are the areas to be saved with instruction information So users must not change that areas If change that areas instruction is not operated normally 2 Maximum size of data received is 1024 Byte and device number set as D2 must smaller than end area of that device 1024 Byte 6 35 Chapter 6 Server function and P2P service 6 6 7 SENDDTR MK Area Available Instruction Con Step Error Zero Carry PMK F L T C S zZ D x R x U IN st F110 F111 F112 al amp lt lelahaiaie ela iel el el ele si o o o olelojolo SNDDTR 4 7 s o o o o lefololo senoora A LK sewoe si st se o Area Setting Description Base and slot number WORD Channel 1 or 2 WORD 0 Temporary device that usedin insvuaion WOR Flag Setting If sl value is not matched with CNET module installed a Function 1 SENDDTR instruction sends DI R Data Terminal Ready signal 2 sli
196. up to SIZE with CNET module attached to BASE SLOT Et SNOUDATA CH DATA SIZE INFO al 1 Devices D 1 D 3 set in operand D are the areas to be saved with instruction information So users must not change that areas If change that areas instruction is not operated normally Chapter 6 Server function and P2P service 6 6 6 RCVUDATA MK Area Available p Flag Instruction Step Error Zero Carry PMK F L T C S Z D x Rx F110 F111 F112 eee e e a e swpupata Di o o ol olololo e7 D2 D3 rovuoata A L Area Setting Flag Setting o Device Flag Description Number If sl value is not matched with CNET module installed F110 b RCVUDATA 1 RCVUDATA instruction receives user defined data UDATA 2 slis base and slot number of CNET module installed 3 S1 is channel number 1 or 2 4 D1 is start device to save UDATA 5 D2 is size of UDATA and unit is Byte 6 D3 is temporary device area to save instruction information Initial value is O and If user change that value instruction is not operated normally CPU Device WORD WORD Sen eee Eee a Prohibition on Use c Error 1 If sl value is not matched with CNET module installed set error flag F110 6 34 Chapter 6 Server function and P2P service d State Information 00 initialstate Before excute instruction o o o Communication If parameter of CNET mod
197. urns On and Off A EA See chapter 15 P Off when output is off P l 13 1 Chapter 13 Maintenance 13 3 Periodic Inspection Check the following items once or twice every six months and perform the needed corrective actions Check Items Checking Methods Judgment Actions Ambient t t 0 55 C Adjust to general Sa Measure with thermometer standard Ambient oak environment Ambent Humidity and hygrometer 3 IARH Internal environmental Ambient pollution Measure corrosive gas There should be no Standard of control level corrosive gases section Looseness The module should be move The module should be Ingress the unit mounted securely dust or foreign material Loose terminal i Re tighten screws Screws should not be loose Retighten Screws Distance between conditions Retighten connector Connectors should not be Loose connectors Visual check mounting loose screws Measure voltage between Line voltage check DC24V DC20 4 28 8V Change supply power input terminals Retighten screws Visual check No dust or foreign material 13 2 Appendix 1 Definition of Terms OO Appendix 1 Definition of Terms Appendix 1 1 General Terms 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
198. warnings gt The marks displayed on the product and in the user s manual have the following meanings A N Be careful Danger may be expected J 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 gt Please install protection circuit on the exterior 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 gt 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 gt Never let the external power of the output circu
199. x 1 Definition of Terms eee eee jj 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 Frame E Station Comm Head Segment Tai N No and Parameter by Commend Q A Station Comm Proces C No and sing 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 XG5000 to select On Line Reset Clear Reset PLC so to execute Reset which will restart PLC A1 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 relay L 1 High speed Link 1 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 mod
200. xecution of command PC XGB Station Registration Number of ASCII value H06 H3031 H59 79 H3031 H3031 H3032 H32333432 Hos e For NAK response after execution of command PC XGB E a eae ASCII value H3031 H59 79 H3031 Error code 4 H03 7 19 Chapter 8 LS Bus Protocol oe et a ss Ss a Chapter 8 LS Bus Protocol 8 1 LS Bus Protocol LS Bus Protocol communication is function executing communication between XGB Cnet and LS Inverter User can configure LS Bus communication system between our products without special setting by using reading writing data of internal device area and monitoring function The function of LS Bus Protocol supported by XGB is as follows Device continuous reading Device continuous writing 8 1 1 Frame structure 1 Base format a Request frame External communication XGB mediar Seion Command Structurized data area PEM eee ell ENQ number BCC EOT b ACK response frame XGB External communication when receiving data normally Header Station Frame check Tail ACK Structurized data area BCC EOT c NAK response frame XGB External communication when receiving data abnormally Header Station Frame check Tail NAK number Command Error code ASCII 4 Byte BCC EOT 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
201. y service Then user can check the communication status For more information please refer to the Chapter 10 Diagnosis Chapter 6 Server function and P2P service ee 6 4 Modbus Client Service Modbus protocol is a standardized open protocol for client server communication It operates send receive data by function code Device to device communication using Modbus protocol use client server feature to handle only one client 6 4 1 Channel Setting Cnet I F module can set the driver type for P2P service For P2P channel acts as client active mode of basic setting must defined Use P2P z Standard Settings Cnet W B eta Communication settings Channel 1 Data bit Stop bit Parity bit g i ig al Channel Setting Parity receiving id error Modem type Modem Initialization Station Number P2P Driver TCP UDP Client Server Partner IP address XGTclient 7 AGT server User frame definition GT client Modbus ASCII client Modbus ATU client Time Settings Response waiting time 0 50 100ms Delay time setting 0 255 10ms Delay time between character 0 255 10ms Active mode Channel 1 Use P2P Channel 2 XGT server Modbus Settings Figure 6 4 1 P2P Channel setting Chapter 6 Server function and P2P service 6 4 2 P2P Block Setting The operation using Modbus RTU ASC
202. you can designate each block operation by selecting instruction CERET _ s eS i i Project Edit Find Replace View Online Monitor Debug Tools Window Help E DprA O44 BO Cis 2m BX Soo Oh Oe BY A ae Se e Gwe SAipirnsrouagai st sees Suu HS rs n oi oe ae et Set a ai seoser ass a ADDDR aa s A B on hdl F3 F4 sFi sF2 FS F 8 sF9 F9 Fii sF3 sF4 sF5 sF6 F10 sF7 c3 NewPLC P2P01 Xx a sdf Destina fa Conditional 3 Destin 4 8 Network Configuration lo Driver Setting P2P function flag Command type Data type ban Data size stn aa a Unspecified Network a 43 NewPLC BOSO Internal Cnet amp XGTclient WRITE FO0093 Single 2BYTE a H P2P 01 nternal P2P Channel XGTolient WRITE F00093 Singe 2BYTE E P2P Block oo h BE User frame definition a i NewPLC BOS1 XBL C21A a a P2P 02 ffl P2P Channel E P2P Block po 23 User frame definition A System UONSUUOJUI SQA auoyjGoyeyes t Wats ste View High id Link View P2P v l X Monitori v amp X Check Program Most Recently Used dit f PLC Progam Device Variable Function Name Monitor 1 ue ea Cel alice a a S alLa S aid Chec Maure Saana ea he a E S E A NewPLC Row 0 Column 0 Overwrite 100 Figure 6 2 5 P2P instruction screen 6 Chapter 6 Server function and P2P service eea a EE l 6 3 XGT Client Service When communicating by usin

Download Pdf Manuals

image

Related Search

Related Contents

libretto di istruzioni macchina espresso lavazza  T'nB TNBTABHOLD1 holder  Bosch 0 607 260 100  取扱説明書≪詳細版≫  Bitdefender Family Pack 2015  Samsung AR30FPFUAGM User Manual  Escient MS616A Stereo Receiver User Manual  1 - Panasonic Canada  Trapeze RingMaster User's Guide  Live Cells.indd  

Copyright © All rights reserved.
Failed to retrieve file