Table of Contents

Advertisement

Quick Links

XG series PLC
User manual
[Hardware]
Wuxi Xinje Electric Co., Ltd.
Data No. PG01 20210906EN 3.6
- 1 -

Advertisement

Table of Contents
loading

Summary of Contents for Xinje XG Series

  • Page 1 XG series PLC User manual [Hardware] Wuxi Xinje Electric Co., Ltd. Data No. PG01 20210906EN 3.6 - 1 -...
  • Page 2 We will often check the contents of the manual and make corrections in subsequent versions. We welcome your valuable comments.  The contents described in the manual are subject to change without notice. Contact information If you have any problem about products, please contact the agent or Xinje company.  Tel: 400-885-0136  Fax: 0510-85111290 ...
  • Page 3: Safety Notes

    Safety notes Please read this part carefully before using and operate after understanding the usage, safety and notices. Pay attention to safety and wire correctly. We have summarized possible problems that may happen and classify them by warning and caution. About other matters, please operate in basic working order.
  • Page 4 2. Do not directly touch the conductive part of the product. It may cause malfunction and failure. 3. Please use Xinje XG-EB series special guide rail to fix this product, and please install it on a flat surface. Incorrect installation may cause malfunction and product damage.
  • Page 5 ⚫ Run and maintenance Warning 1. Do not touch terminals after power on. Otherwise, an electric shock may occur. 2. Do not connect or move the wires when power on. Otherwise, an electric shock may occur. 3. Make sure to stop the PLC before changing the controller program. Otherwise, malfunction may occur.
  • Page 6: Table Of Contents

    Catalog SAFETY NOTES ..............................- 3 - PREFACE .................................. 1 1. XG SERIES PRODUCT OVERVIEW ........................4 1-1.P ............................... 4 RODUCT FEATURES . 1-1-1 Basic unit ............................... 4 . 1-1-2 Expansion unit ............................... 7 1-2.M ......................7 ODEL COMPOSITION AND MODEL TABLE 1-2-1.
  • Page 7 5-3-3. High speed counter input wiring ........................35 5-3-4. Input terminal assignment ..........................36 . 5-3-5 AB phase counting frequency doubling setting mode .................. 37 6. OUTPUT SPECIFICATION AND WIRING ...................... 39 6-1. O ............................39 UTPUT SPECIFICATION 6-2.T ............................39 RANSISTOR OUTPUT 7.
  • Page 9: Preface

    Xinje PLC programming tool software can directly open the program of the original XC series PLC, but some instructions of XG series and XC series may be involved in the program, and errors will be reported in red font in Xinje PLC programming tool software. You only need to modify this part manually.
  • Page 10 Basic unit or body The abbreviation of basic unit of XG full series programmable controller Expansion module General name of all expansion modules of XG series programmable controller I/O expansion Abbreviation of all input and output expansion modules of XG series...
  • Page 11 Related manuals This manual only covers the hardware of XG series PLC. For other applications, such as programming and instruction, please refer to the relevant manual materials. Relevant manuals are listed below for users' reference. Manual name Introduction XG series PLC manual...
  • Page 12: Xg Series Product Overview

    1. XG series product overview 1-1.Product features 1-1-1.Basic unit (1) Rich models The basic unit of XG series medium-sized PLC has 2 subseries product lines, and various combinations can be freely selected. ⚫ I/O points 16, 26 ⚫ Output type transistor ⚫...
  • Page 13  High speed pulse output, up to 100KHz ※ XG series PLC generally has 4 pulse output terminals, which can output pulses up to 100kHz  Interrupt function XG series PLC has interrupt function, which is divided into external interrupt, timing interrupt and...
  • Page 14 C language rich operation functions, it can realize various functions. It saves internal space and improves programming efficiency.  PID function The basic unit of XG series PLC also has PID control function, and can also carry out self-tuning control.  Sequence BLOCK...
  • Page 15: Expansion Unit

    1-1-2.Expansion unit (1) Expansion module In order to better meet the on-site control needs, XG series PLC can be externally expanded 16 expansion modules. ⚫ Rich types: input and output expansion module, analog quantity processing module and temperature control module.
  • Page 16: Expansion Unit Model Composition And Model Table

    XG1-16T4 XG2-26T4 Note: some input of XG2-26T4 is differential input mode. 1-2-2. Expansion unit model composition and model table (1) I/O expansion module The model composition of I/O expansion module is as follows: 1: Series name 2: Expansion module 3: Input points 8/16/32/64 4: Special for input 5: Output points...
  • Page 17: Description Of Each Part

    4: Temperature measurement 8PT3: 8-channel three wire platinum thermistor input 5: Temperature measurement 8TC: 8-channel thermocouple Input 6: Analog type A: current V: voltage  Model list of analog quantity and temperature expansion module Model Description XG-E8AD-A 8-channel analog input, current type XG-E8AD-V 8-channel analog input, voltage type Analog input, output...
  • Page 18: Xg2 Series Structural Composition

    Note: When the dial switches SW1 and SW2 are used for RS485 communication, whether the PLC is the terminal. When the PLC is at the beginning or end of the bus, please turn the dial switch to on. 1-3-2.XG2 series structural composition (13) (14) (10)
  • Page 19: Specification Parameters Of Main Body

    RJ45 Ethernet port, support Ethernet, connect the upper computer, remote monitoring, and connect the PLC to the LAN Installation Directly installed on Xinje XG-EB guide rail ※ Grounding The third kind of grounding (not common grounding with strong current system)
  • Page 20: Performance Specifications

    A: XG series PLC B: Other devices Separate grounding Common grounding Public grounding 2-1-2. Performance specifications (1) XG1 series PLC Item Specification Program execution mode Cyclic scanning mode Programming method Command, ladder diagram Processing speed 0.03us Power-off holding FlashROM and lithium battery ※...
  • Page 21 ※ 9: The above range of software components is the effective range of PLC in X-NET communication mode or Ethernet communication mode. In Modbus communication mode, some soft components cannot be read and written. See section 6-2-3 of XG series programmable controller user manual [basic instructions] for the specific available range.
  • Page 22: Xg Series Dimension

    2-2.XG series dimension (unit: mm) 48.0...
  • Page 23: Terminal Arrangement

    2-3.Terminal arrangement 2-3-1.XG1 series terminal arrangement (1) Input / output terminal pin definition (2) Input terminal Name Name (3) Output terminal Name Name COM0 COM0 COM0 COM1 COM1 COM1 Note: ※ 1: In the input part, the solid line is NPN connection, and the dotted line is PNP connection. ※...
  • Page 24: Xg2 Series Terminal Arrangement

    ※ 2: See section 5-1 for specific wiring. 2-4.Communication port XG series generally has USB port (XG2 does not have this port), COM1 (RS485), COM2 (RS485), COM3 (RS485), LAN port (RJ45). USB port can be used to download programs and data at high speed. COM1 and COM2 are mainly used for communication, and can also be used to download programs.
  • Page 25 If you want to use COM1 port to download the program, you can connect with PC through DVP or XVP cable of Xinje. If not, you can also make your own cable. The connection mode of DVP cable is shown in the...
  • Page 26 The LAN2 port of XG2 series is used for EtherCAT bus synchronous control of 32-axis motor.
  • Page 27: System Composition

    3. System composition 3-1.System composition The following figure is the system structure diagram based on the basic configuration of XG series PLC. Through this diagram, we can roughly understand the connection between PLC and peripheral equipment, expansion equipment, etc., as well as the typical applications of PLC communication, connection and expansion ports.
  • Page 28: Peripheral Equipment

    The use of the basic unit of XG series PLC involves a variety of peripheral devices. 3-2-1. Power supply module (1) Basic specification XG series medium-sized PLC is equipped with a special power module, the model is XG-P75-E, and its basic specifications are as follows: Item...
  • Page 29: Mounting Rail

    (3) Dimension (unit: mm) 3-2-2. Mounting rail The installation of basic unit, expansion module and power module needs to be installed through guide rail. Xinje provides XG-EB series guide rails of various sizes for users to choose. (1) Guide rail models Models...
  • Page 30: U Connector

    3-2-3.U connector (1) Basic function XG-EUC-1: the U-shaped connector for XG series medium-sized PLC is used for the connection between XG series PLC body and expansion module, or the connection between modules. XG-EUCT-1: on the basis of XG-EUC-1, it has built-in terminal resistance. The connector is inserted into the expansion port of the last expansion module to improve the signal quality.
  • Page 31: Terminal Block And Connecting Cable

    ) Installation position 3-2-4. Terminal block and connecting cable External terminal blocks can be selected for XG2 wiring. Xinje provides terminal blocks and connecting cables required by XG2 for users to choose. Model list of terminal block and connecting cable:...
  • Page 32: Programming Software

    In the programming software, the functions of writing or uploading programs to PLC, monitoring the operation of PLC in real time, configuring PLC and so on can be realized. After the "Xinje PLC programming tool software" is installed on the personal PC, the connection between PLC and programming software can be...
  • Page 33: Hmi

    PLC, and then the PLC executes the action. The basic unit of XG series PLC supports the connection of various HMIs. The connection is based on the consistent communication protocol, which can generally be through Modbus protocol. The specific parameters are determined according to the specific HMI.
  • Page 34: Constitution Principle

    Clock built-in 3-3.Constitution principle (1) Communication port  The basic units of XG series are generally equipped with multiple communication ports, including COM1, COM2, COM3, etc.  Most communication ports can be used for programming download and communication.  Each port is independent of each other.
  • Page 35: Allocation Of Extension Module Definition Number

    3-4. Allocation of extension module definition number Code Name Range Points X10000~X10077 (expansion module 1) …… Input points 1024 X11700~X11777 (expansion module 16) Y10000~Y10077 (expansion module 1) …… Output points 1024 Y11700~Y11777 (expansion module 16) ID10000~10099 (expansion module 1) …… Expansion module 1600 ID11500~11599 (expansion module 16)
  • Page 36 Connect the power module, XG main body and XG expansion module to the guide rail through U-connector, and fix them with bottom screws. The installation steps are as follows: ① Insert the L Port of the U-shaped connector into the ②Hang the installation hook on the upper side of the left interface on the back of the PLC body (right side in PLC body to the upper side of the installation guide rail...
  • Page 37: Power Supply Specification

    Please install the product under the environmental conditions specified in section 2-1-1. 4. Power supply specification 4-1. Power supply specification The power specifications of the basic unit of XG series PLC are shown in the following table: (1) DC power supply Item...
  • Page 38: Power Supply Specification 5. Input Specification And Wiring

    5. Input specification and wiring 5-1.Input specification XG series PLC supports three input modes: NPN, PNP (XG1 only) and differential (XG2 only). The specifications and wiring methods are introduced below: 5-1-1.Input specification (1) NPN input specification Item Content Input signal voltage DC24V±...
  • Page 39: Wiring Example

    5-1-2.Wiring example (1) XG1 input wiring example Note: (1) In the left figure, the solid line part is NPN connection, and the dotted line part is PNP connection. (2) The PLC is generally equipped with a plug-in spring connector to facilitate wiring when it leaves the factory.
  • Page 40: Dc Input Signal

    5-2.DC input signal (1) NPN mode ➢ Input terminal When the input terminal and com terminal is connected through the voltage free contact or NPN open collector transistor, the input is on, and the LED light corresponding to the input is on. There are multiple input com terminals in the programmable controller that can be connected.
  • Page 41: High Speed Counting Input

    5-3. High speed counting input XG series PLC has a high-speed counting function independent of the scanning cycle of the programmable controller. By selecting different counters, the measurement of high-speed input signals such as measurement sensors and rotary encoders can be achieved. The maximum measurement frequency of XG1 can reach 80kHz, and the maximum measurement frequency of XG2 can reach 200kHz.
  • Page 42 (1) Incremental mode In this mode, the input pulse signal is counted, and the count value increases with the rising edge of each pulse signal. (2) AB phase mode In this mode, the high-speed count value is incremented or decremented according to two differential signals (phase A and phase B).
  • Page 43: High Speed Counting Range

    Quadruple frequency mode 5-3-2. High speed counting range The counting range of high-speed counter is: K-2,147,483,648 ~ K+2,147,483,647. When the count value exceeds this range, overflow or underflow occurs. The so-called overflow is to jump the count value from K+2147483647 to K-2147483648 and continue counting.
  • Page 44: Input Terminal Assignment

    (Counter HSC0) Phase A input Phase B input 5-3-4. Input terminal assignment 1. The number of high-speed counting channels of XG series PLC is shown in the following table: High speed counter channels PLC model Incremental mode AB phase mode...
  • Page 45: Ab Phase Counting Frequency Doubling Setting Mode

    X006 X007 XG2-26T4 Single phase incremental mode AB phase mode HSC0 HSC2 HSC4 HSC6 HSC8 HSC10 HSC12 HSC0 HSC2 HSC4 HSC6 HSC8 200K 200K 200K 200K 200K 200K 200K 200K frequency Quadruple frequency Counting √ √ √ √ √ √ √...
  • Page 46 Quadruple frequency Note: ※ 1: For more applications on high-speed counting, please refer to the user manual of XG series programmable controller [basic instructions]. ※ 2: For a specific model, only one axis can be set to double frequency or quadruple frequency, and the other two are double frequency and quadruple frequency respectively.
  • Page 47: Output Specification And Wiring

    6. Output specification and wiring 6-1. Output specification (1) transistor output External power supply Below DC5~30V Circuit insulation Optocoupler insulation Action indicator LED light Max load Resistive 0.3A load inductive 7.2W/DC24V load Light load 1.5W/DC24V Min load DC5V 2mA Open circuit leakage <...
  • Page 48 Inside PLC, we use photoelectric couplers to isolate between internal circuits and output transistors  Action Display When photoelectric couplers drive, LED will be ON and the output transistors will be ON.  Response Time The time interval that PLC from photoelectric couplers energizing (or cutting) to transistor ON (or OFF) is below 0.2ms.
  • Page 49 (2) Output circuit protection For inductive load of DC circuit, freewheeling diode shall be added, as shown in the following figure:  DC load Note: freewheeling diode is 1N4007.
  • Page 50: Operation, Commissioning And Maintenance

    7. Operation, commissioning and maintenance 7-1. Operation and commissioning (1) Product inspection After receiving the product, please first check whether the input and output terminal blocks of the product are intact and whether there are missing parts. Generally speaking, the PLC at this time can be directly connected to the power cable for power on inspection, and the PWR and RUN indicators should be always on.
  • Page 51: Routine Maintenance

    7-2. Routine maintenance (1) Regular inspection of products Although the programmable controller has certain anti-interference and strong stability, it should also form the habit of regular inspection and maintenance of the controller. The inspection items include:  Whether the input and output terminals and power supply terminals of PLC are loose ...
  • Page 52: Switch Between Soft Components

    Users either revise the program or ask the manufactures for help, which is very troublesome and affects the users’ normal work schedule. The new type PLC developed independently by Xinje can break the one-to-one correspondence, users only need to change the soft component’s value by HMI, then the corresponding terminal will activate.
  • Page 53: Operation Method

    8-2. Operation method It no needs to revise the program when we change the damaged input/output point mapping relation and replace the damaged point. In PLC special registers, we allocate certain address section for users to change the mapping relation. Users just need to find and revise the damaged input/output mapping register, and replace the value in this special register with value of replaced input/output.
  • Page 54 Method 2: modify in the software directly. Click the project bar/PLC config/I/O. Change it in below window: For example, it needs to switch X0 and X5, please change the mapping value of X0 to 5, X5 to 0.
  • Page 56: Appendix

    Appendix Appendix 1. Special soft component list Appendix 1 mainly introduces the functions of XG series PLC special soft element, data register, FlashROM and the address distribution of expansions for users to search. Appendix 1-1.Special auxiliary relay list Initial status (SM0-SM7)
  • Page 57 SM014 1min frequency cycle Mark (SM20-SM22) Function Description SM020 Zero bit SM020 is ON when plus/minus operation result is 0 SM021 Borrow bit SM021 is ON when minus operation overflows SM022 Carry bit SM022 is ON when plus operation overflows PC mode (SM30-SM34) Function Description...
  • Page 58 High speed ring counter (SM99) address Function Note High Speed Ring Counting SM099 SM99 set ON,SD99 add one per 0.1ms, cycle between 0 and 32767 enable High speed counter complete flag (SM100-SM103) Address Function Note SM100 HSC0 count complete flag(100 segments) SM101 HSC2 count complete flag(100 segments)...
  • Page 59 complete flag receiving data timeout. User program is required to be set to off SM164 …… SM169 Serial SM170 Modbus instruction execution flag Set on when the instruction starts to execute port 3 Set off when the execution is completed SM171 SM172 Free...
  • Page 60 SM410 Offset overflow Offset exceeds soft element range SM411 FOR-NEXT overflow SM412 Invalid data fill Error message (SM450-SM463) Function Description SM450 System error check SM451 Hardfault interrupt flag SM452 SM453 SD card error SM454 Power supply is cut off …… SM460 Extension module ID not match SM461...
  • Page 61: Appendix 1-2.Special Data Register List

    Appendix 1-2.Special data register list Battery (SD005~SD007) Function Description It will display 100 when the battery voltage is 3.1V, if the battery voltaeg is lower than 2.5V, it will display 0, it means please SD005 Battery register change new battery at once, otherwise the data will lose when PLC power off.
  • Page 62 High speed counting(SD100-SD103) Function Description Note SD100 Current segment (No. n segment) HSC00 SD101 Current segment (No. n segment) HSC02 SD102 Current segment (No. n segment) HSC04 SD103 Current segment (No. n segment) HSC06 High speed counting error (SD120-SD129) Function Note SD120 HSC0 error info...
  • Page 63 Address Function Explanation Serial port SD153 Free format communication receive 0: correct result 410: send data length overflow 411: receive data short 412: receive data long 413: receive error 414: receive overtime 415: no start character 416: no end character SD154 Free format communication receive In bytes, not include start and stop characters...
  • Page 64 地址号 功能 说明 Serial port SD170 Modbus read write instruction 0: correct execution result 100: receive error 101: receive overtime 180: CRC error 181: LRC error 182: station error 183: send buffer overflow 400: function code error 401: address error 402: length error 403: data error 404: slave station busy...
  • Page 65 The value will be used when BLOCK SD304 Executing instruction of BLOCK5 monitors The value will be used when BLOCK SD305 Executing instruction of BLOCK6 monitors …… …… …… The value will be used when BLOCK SD396 Executing instruction of BLOCK97 monitors The value will be used when BLOCK SD397...
  • Page 66 3:Usage error SD452 Hardware error SD453 SD card error SD454 Power-off time SD460 Extension module ID not match SD461 BD/ED module ID not match Extension module communication SD462 overtime BD/ED module communication SD463 overtime Expansion module, BD status (SD500-SD516) Function Description Note Module number...
  • Page 67 4. Module ID error. 5. Module overtime error. SD866 Error times of module write SD867 Error types of module write …… SD920 Error times of module read 1. Module address error. 2. Module accepted data length error. SD921 Error types of module read 3.
  • Page 68: Appendix 1-3.Special Flash Register List

    Appendix 1-3.Special Flash register list * means it works only after repower on the PLC I filtering Function Description Note Input the filtering timing value, 10ms by SFD0* default Watchdog run-up time, default value is SFD2* 200ms I mapping Function Description Note SFD10*...
  • Page 69 SFD326 HSC12 frequency doubling Ditto SFD327 HSC14 frequency doubling Ditto SFD328 HSC16 frequency doubling Ditto SFD329 HSC18 frequency doubling Ditto bit0 corresponds to HSC0, bit1corresponds to HSC2, and so HSC absolute relative selection (24 on, bit9 corresponds to HSC18 SFD330 segments) 0:relative 1:absolute...
  • Page 70: Appendix 2. Instruction List

    This part is only for the function that users can quickly view instructions. For more detailed application of instructions, please refer to the user manual of XG series PLC [basic instructions] and [motion control]. Appendix 2-1. Basic instruction list...
  • Page 71: Appendix 2-2. Application Instruction List

    Appendix 2-2. Application instruction list Mnemonic Function Mnemonic Function Program flow Condition jump Open the assigned flow and close the current flow CALL Call subroutine Open the assigned flow and do not close the current flow SRET Subroutine return Start of a FOR-NEXT loop Flow start NEXT END of a FOR-NEXT loop...
  • Page 72: Appendix 2-3. Special Instruction List

    word integer ※ 16 bits integer convert to float ASCⅡ convert to Hex ※ FLTD 64 bits integer convert to float DECO Coding ※ Float convert to integer ENCO High bit coding BCD convert to binary ENCOL Low bit coding Binary convert to BCD Floating number operation ※...
  • Page 73: Plc Configuration List

    This part is mainly for the convenience of users to check the function configuration of various series models. Through this table, it is easy to judge the selection of product models. For a detailed description of the following functions, please refer to the user manual of XG series PLC [basic instructions] and [positioning control].
  • Page 74 ○ user selection × not supported √ supported Communication HSC channel Ether EtherC Expansion Pulse output (T External Model Increme module model) interrupt ntal phase XG1 series √ √ XG1-1 × × XG2 series √ √ √ XG2-2 ×...
  • Page 75: Appendix 4. Q&A

    Appendix 4. Q&A When running or debugging PLC, users may encounter some difficult problems due to lack of experience. This part mainly aims at the problems that users are most likely to encounter, and puts forward solutions for users' reference. Q1:Why the coil is not set when the condition is satisfied? A1:The possible reasons: (1) Users may use one coil for many times, which leads to double coils output.
  • Page 76 WUXI XINJE ELECTRIC CO., LTD. No.816, Jianzhu West Road, Binhu District, Wuxi City, Jiangsu Province, China 214072 Tel: 400-885-0136 Fax: (510) 85111290 www.xinje.com...

This manual is also suitable for:

Xg-e8ad-aXg-e8ad-vXg-e4ad2daXg-e4daXg-e8pt3-pXg-e8tc-p

Table of Contents