Do you have a question about the XGF-HO2A and is the answer not in the manual?
Questions and answers
Summary of Contents for LS Industrial Systems XGF-HO2A
Page 1
LSIS strives to maximize customers' profit in gratitude of choosing us for your partner. Programmable Logic Controller High Speed Counter XGT Series User’s Manual XGF-HO2A XGF-HD2A Read this manual carefully before installing, wiring, operating, servicing or inspecting this equipment. Keep this manual within easy reach for quick reference.
Page 2
Safety Instruction Before using the product … For your safety and effective operation, please read the safety instructions thoroughly before using the product. ► Safety Instructions should always be observed in order to prevent accident or risk with the safe and proper use the product.
Page 3
Safety Instruction Safety Instructions for design process Warning Please install a protection circuit on the exterior of PLC so that the whole system may operate safely regardless of failures from external power or PLC. Any abnormal output or operation from PLC may cause serious problems to safety in whole system. Install protection units on the exterior of PLC like an interlock circuit that deals with opposite operations such as emergency stop, protection circuit, and forward/reverse rotation or install an interlock circuit that deals with high/low limit under its position controls.
Page 4
Safety Instruction Safety Instructions for design process Caution I/O signal or communication line shall be wired at least 100mm away from a high-voltage cable or power line. Fail to follow this Safety Instructions on installation process Caution Use PLC only in the environment specified in PLC manual or general standard of data sheet.
Page 5
Safety Instruction Safety Instructions for wiring process Warning Prior to wiring works, make sure that every power is turned off. If not, electric shock or damage on the product may be caused. After wiring process is done, make sure that terminal covers are installed properly before its use.
Page 6
Safety Instruction Safety Instructions for test-operation and maintenance Warning Don’t touch the terminal when powered. Electric shock or abnormal operation may occur. Prior to cleaning or tightening the terminal screws, let all the external power off including PLC power. If not, electric shock or abnormal operation may occur. Don’t let the battery recharged, disassembled, heated, short or soldered.
Page 7
Safety Instruction Safety Instructions for waste disposal Caution Product or battery waste shall be processed as industrial waste. The waste may discharge toxic materials or explode itself.
Page 8
(2) XG5000 execution, Global constant 4-1,4-3,6-1 (3) Program 7-1~7-29 2. Added GM Function Block Conversion Program Appendix 3 ※ The number of User’s manual is indicated right part of the back cover. Copyright ⓒ 2006 LS Industrial Systems Co., Ltd All Rights Reserved.
Page 9
About User’s Manual Thank for purchasing PLC of LS Industrial System Co.,Ltd. Before use, make sure to carefully read and understand the User’s Manual about the functions, performances, installation and programming of the product you purchased in order for correct use and importantly, let the end user and maintenance administrator to be provided with the User’s Manual.
◎ of Contents ◎ Table C h a p t e r 1 O v e r v i e w … … … … … … … … … … … … … … … … … … … … … … … … … … … 1 - 1 Chapter 2 Specifications …………………………………………………………...
Page 11
................................4-4 ARAMETERS ETTING 4.2.1 Parameters setting screen ..............................4-4 ................................ 4-6 ONITORING AND 4.3.1 Monitoring/Test screen ..............................4-6 ................................4-9 EGISTER EVICES 4.4.1 View variables.................................. 4-9 4.4.2 Register U Devices................................4-9 ......................... 4-11 EGISTRATION OF PECIAL MODULE VARIABLE 4.5.1 Global/Direct Variables screen ............................4-11 4.5.2 Registration of the special module variables .........................
Page 12
7.2.15 Hold count when power fails ............................7-28 Chapter 8 Troubleshooting ………………………………………………………… 8-1 ~ 8-9 ..................................8-1 RROR CODE ................................8-2 ROUBLESHOOTING 8.2.1 LED display status of HS counter module ........................8-2 8.2.2 Counter status of HS counter module ..........................8-2 8.2.3 Output status of HS counter module ..........................
High Speed counter modules were designed for XGT(XGK/XGI/XGR) series and used with XGT PLC CPU. And XGF-HO2A(Open Collector type) , XGF-HD2A(Line Drive type) modules are available. High Speed Counter modules can count the high speed pulses which can not be processed by CPU module’s counter instructions (CTU, CTD, CTUD etc.), up to binary value of 32 bits (-2,147,483,648 ~ 2,147,483,647).
Page 14
Chapter 2 Specifications Chapter 2 Specifications 2.1 General Specifications General specifications of XGT series Item Specification Related specifications Operating ℃∼ ℃ temperature Storage ℃∼ ℃ temperature Operating 5 95%RH, ∼ Non-condensing humidity Storage humidity 5 95%RH, Non-condensing ∼ For discontinuous vibration Frequency Acceleration Amplitude...
Chapter 2 Specifications 2.2 Performance Specifications Specifications of High Speed counter module’s basic performance, preset/gate input and transistor output are as described below. 2.2.1 Performance specifications Specification Item XGF-H02A XGF-HD2A Signal A-phase, B-phase Count Input type Voltage input (Open Collector) Differential input (Line Drive): Input signal RS-422A Line Drive...
Chapter 2 Specifications 2.2.2 Pulse input specification Specification Item Open collector Line driver DC 24V DC 12V DC 5V Input volatage (17.0V~26.4V) (9.8V~13.2V) (4.5V~5.5V) Input current 7mA~11mA 7mA~11mA 7mA~11mA RS-422A line driver (5V level)/HTL line Min. On guaranteed 17.0V 9.8V 4.1V Driver(24V level) voltage...
Chapter 2 Specifications 2.3 Part Names 2.3.1 Part Names Name Contents On: relevant channel pulse inputting, Preset/Auxiliary function signal inputting, Run LED Commparison outputting (ΦA, ΦB, P, G, O0, O1) Off: No input of relevant channel pulse, No input of preset/auxiliary function signal, No output of comparison ①...
Chapter 2 Specifications 2.4 Function 2.4.1 Input pulse type 1. 1 phase input (1) Up/Down operation by program setting (a) 1 phase 1 input 1 multiplication input When input pulse of A phase is rising, count operates and up/down count operation is set by program Up/Down count classification A phase pulse rising A phase pulse falling...
Page 22
Chapter 2 Specifications (2) Up/Down count operation by B phase input signal (a) 1 phase 2 input 1 multiplication input When input pulse of A phase is rising, count operates and up/down count operation is set by level of B phase input pulse. Up/Down count classification A phase pulse rising A phase pulse falling...
Page 23
Chapter 2 Specifications 2. 2 phase input (1) 2 phase 1 multiplication input When input pulse of A phase is ahead of B phase input pulse, at rising edge of A phase input pulse, Up count is operated. When input pulse of B phase is ahead of A phase input pulse, at rising edge of A phase input pulse, Down count is operated. Up/Down count classification A phase pulse rising A phase pulse falling...
Page 24
Chapter 2 Specifications (3) 2 phase 4 nultiplication input When input pulse of A phase is ahead of B phase input pulse, at rising and falling edge of A and B phase input pulse, Up count is operated. When input pulse of B phase is ahead of A phase input pulse, at rising and falling edge of A and B phase input pulse, Up count is operated.
Page 25
Chapter 2 Specifications 2.4.2 Count type Linear count (1) Linear Count range: -2,147,483,648 ~ 2,147,483,647 (2) Up count If count value reaches the maximum value while increased, Carry will occur, and Carry occurs, count stops and increasing is not available but decreasing is available. (3) Down count If count value reaches the minimum value while decreased, Borrow will occur and Borrow occurs, count stops and decreasing is not available but increasing is available...
Page 26
Chapter 2 Specifications 2) Down count If count value reaches minimum value during decreasing count, Borrow only occurs and count is executed starting from max. value (b) -2,147,483,648 ≤ current count ≤2,147,483,647 < ring count min. value or ring count max. value < current count 1) Up count If count reaches ring count max.
Page 27
Chapter 2 Specifications 2) Down count If count reaches min. value, borrow occurs and count is changed into ring count max. value. Count is executed until 2,147,483,647. If count reaches -2,147,483,648, count is changed into 2,147,483,648 and executed again. Count 2,147,483,647 Ring count max, value...
Chapter 2 Specifications 2.4.3 Preset (1) When Enable Preset is On, current count is changed into preset setting value. Only with setting of preset, current count is not changed and you have to execute the Enable Preset ot change the current count. (2) Operation method Setting preset value ->...
Chapter 2 Specifications 2.4.4 Compared output (1) High Speed counter module has a compared output function used to compare present count value with compared value in size to output as compared. (2) Available compared outputs are 2 for 1 channel, which can be used separately. (3) Compared output conditions are 7 associated with <, ≤, =, ≥, >, ≤...
Page 30
Chapter 2 Specifications 3. Count value = Compared value If present count value is equal to compared value, output is sent out, and even if count value increases to be greater or less than compared value, output is kept On. In order to turn the output Off, identical reset signal is to be On. 4.
Page 31
Chapter 2 Specifications 5. Count value > Compared value If present count value is greater than compared value, output is sent out, and if count value decreases to be less than or equal to compared value, output is not sent out. 6.
Page 32
Chapter 2 Specifications 7. Count value ≤ Compared value min., Count value ≥ Compared value max. If present count value is less than or equal to compared value 1 and greater than or equal to compared value 2, output is sent out, and if count value increases/decreases to exceed compared value’s range, output is not sent out.
Chapter 2 Specifications 2.4.5 Carry Carry Signal occurs (1) When count range maximum value of 2,147,483,647 is reached during Linear Count. (2) When maximum value of Ring Count changed to the minimum value during Ring Count. Count when Carry Signal occurs (1) Count stops if Carry occurs during Linear Count.
Chapter 2 Specifications 2.4.7 Auxiliary mode High Speed counter module provides 6 auxiliary modes as well as basic count function and compared output function. In order to use the auxiliary modes, auxiliary mode enable signal is to be “On”. Notes (1) To use auxiliary function by program, turn off the external auxiliary mode and turn on Enable Auxiliary (2) To use auxiliary function by an external signal, turn on the external auxiliary mode and turn on External auxiliary input signal (GATE).
Page 35
Chapter 2 Specifications 2. Count Latch (1) When auxiliary mode enable signal is On, present count value is latched (2) Setting method Set auxiliary mode setting mode to 2 -> Auxiliary mode enable signal On 2-22...
Page 36
Chapter 2 Specifications 3. Sampling Count (1) When auxiliary mode enable signal is On, it counts for a specified time. (2) Setting method Set auxiliary mode setting mode to 3 -> Time setting -> Auxiliary mode enable signal On (3) Display during auxiliary mode operation Sampling Count function operates for a specified time when auxiliary mode enable signal is On, and the auxiliary mode in progress signal is On at the same time.
Page 37
Chapter 2 Specifications 4. Input Frequency Measure (1) While auxiliary mode enable signal is On, it indicates frequency of input pulse. Unit of input frequency conforms to setting of frequency unit. (2) Setting method Set auxiliary mode setting mode to 4 -> Set frequency unit -> Auxiliary mode enable signal On. (3) Frequency input mode can be specified as below, whose update cycle and resolution will be decided based on the applicable mode.
Page 38
Chapter 2 Specifications 5. Revolution/Unit time (1) While auxiliary mode enable signal is On, it calculates the number of input pulses for a specified time and indicates the revolution/unit time. To use this function, setting time and No. of pulse/revolution should be set. (2) Setting method Set auxiliary mode setting mode to 5 setting ->...
Page 39
Chapter 2 Specifications 6. Count Disable (1) While auxiliary mode enable signal is On, count operation stops. (2) Setting method Set auxiliary mode setting mode to 6 -> Auxiliary mode enable signal On (3) Display during auxiliary mode operation While auxiliary mode enable signal is On, Now Running signal is on Current count Count start -200...
Chapter 3 Installation and Wiring Chapter 3 Installation and Wiring 3.1 Installation 3.1.1 Installation environment This product is of high reliance regardless of installation environment. However, for the sake of reliance and stability of the system, please pay attention to those precautions described below. 1) Environmental conditions - To be installed on the control panel waterproof and dustproof.
- If the pulse generator is voltage output type, example of wiring with HSC is as shown below; - The wiring will be the same if the pulse generator (Encoder or Manual pulse generator) of voltage output type is used through Totem Pole output. Pulse Generator XGF-HO2A A24V A12V Phase A...
3.2.2 Example of DC12V NPN Open Collector output wiring This is the wiring example which it used the pulse generator (Encoder or Manual pulse generator) of NPN Open Collector output type. Pulse Generator XGF-HO2A A24V A12V Phase A Twist Shield Cable...
Chapter 3 Installation and Wiring 3.2.3 Example of DC24V PNP Open Collector output wiring This is the wiring example which it used the pulse generator (Encoder or Manual pulse generator) of PNP Open Collector output type. XGF-HO2A Pulse Generator A24V A12V...
Chapter 3 Installation and Wiring 3.2.4 Example of Line Driver output wiring This is the wiring example which it used the pulse generator (Encoder or Manual pulse generator) of RS-422A Line Driver (5V level) output type. RS-422A Line Driver (5V Level) XGF-HD2A Pulse Generator Twist Shield Cable...
Page 45
Chapter 4 Operation Procedures and Monitoring Chapter 4 Operation Procedures and Monitoring Operation setting and monitor functions of XG5000 program will be described in this chapter among operation methods of High- speed counter module. 4.1 XG5000 Excution 4.1.1 Execution and Connection of XG5000 After XG5000 installed, click XG5000 execution icon to display the initial screen of XG5000 program as shown below;...
Page 46
Chapter 4 Operation Procedures and Monitoring 3) Project screen is as below. Project screen of XGK series Project screen of XGI series...
Page 47
Chapter 4 Operation Procedures and Monitoring Project screen of XGR series 4) If a project is created, click [Online]-[Connection Settings] or on the icon menu to specify the connection method and connection stage, and then click [Settings] to specify the communication port and the communication speed(115200).
Page 48
Chapter 4 Operation Procedures and Monitoring 4.2 Parameters Setting This description is based on XG5000 Project of XGK series, because it is the same to parameter setting method of XGK and XGK series. 4.2.1 Parameters setting 1) Double-click [I/O parameters] on the [Project Window] to the left of the project created on XG5000. 2) If [I/O parameters setting] window is displayed, click the module area of the applicable slot to select the applicable module...
Page 49
Chapter 4 Operation Procedures and Monitoring ) Double-click the applicable slot selected to specify the parameters, or click [Details] to display the screen where parameters can be set. 4) Set parameters as necessary for operation on the parameters setting window. ※...
Chapter 4 Operation Procedures and Monitoring 4.3 Monitoring and Test This description is based on XG5000 Project of XGK series, because it is the same to parameter setting method of XGK and XGK series. 4.3.1 Monitoring and Test After connected to PLC CPU through XG5000, click [Online]-[Special Module Monitoring] or on the icon menu to display the screen as shown below.
Page 51
Chapter 4 Operation Procedures and Monitoring On the module list dialog box, the special modules presently installed on PLC system will be displayed.
Chapter 4 Operation Procedures and Monitoring Select the applicable module and click the monitoring button to display the monitoring/ test screen as shown below, whose functions are as follows; • On the upper monitoring screen, each special module’s monitoring item values are displayed. •...
Page 53
Chapter 4 Operation Procedures and Monitoring In order to monitor the I/O contact status, click the applicable channel’s flag monitoring button to display the monitoring screen where each I/O contact status can be checked.
Page 54
Chapter 4 Operation Procedures and Monitoring 4.4 Registration of U Devices It is described to the method to register automatically U devices in XG5000 Project of XGK series. 4.4.1 Variable/Comment screen If you double click [Variables/Comment] of [Project Window], variables and comments which was registered already are displayed.
Chapter 4 Operation Procedures and Monitoring 4.4.2 Registration of U Devices Select [Edit] [Register U Device]. ( First, [Variable/Comment] window has to be executed. ) Click [Yes] to complete the U device registration that is set at [I/O parameter setting] 4-11...
Page 56
Chapter 4 Operation Procedures and Monitoring 4-12...
Chapter 4 Operation Procedures and Monitoring 4.5 Registration of Special module variable It is described to the method to register automatically variables[Global variables/Constants] of high speed counter module in XG5000 Project of XGI series. 4.5.1 Global/Direct Variables screen If you double click [Global/direct Variables] of [Project Window], variables and comments which was registered already are displayed.
Page 58
Chapter 4 Operation Procedures and Monitoring Click [Yes] to complete the special module variables registration that is set at [I/O parameter setting] 4-14...
Page 59
Chapter 4 Operation Procedures and Monitoring 4-15...
Chapter 5 Internal Memory & I/O Signals Chapter 5 Internal Memory & I/O Signals 5.1 Internal Memory ■ High Speed Counter has the internal memory used for data “Write/Read” to/from PLC CPU. The commands used for “Write” from PLC CPU to High Speed Counter’s internal memory are PUT and PUTP, and the commands used for “Read” are GET and GETP.
Chapter 6 Global Constant and Global Variable Chapter 6 Global Constant and Global Variable It is described to global constant and global variable for XGI/XGR series. Remark It is terminology for XGI/XGR series to Global constant(VAL_GLOBAL_CONST) and Global variable(VAL_GLOBAL). In XGK series, global constant is equivalent to the internal memory, global variable is to input/output signal(U device). 6.1 Global Constant CPU module of XGI/XGR series are sharing the global constant area for the data transmission and receiving.
Chapter 6 Global Constant and Global Variable 2. Setting area of comparison output status Channel 0 Constant Contents Data setting range value Channel 1 When XGI CPU module is STOP mode, comparison output _Fxy_PLCSTOP_OUT_EN 0 or 1 status (channel 0, channel 1 common) 3.
Page 65
Chapter 6 Global Constant and Global Variable 5. The frequency display unit of input frequency measure (channel 0: , channel 1: _Fxy_CH0_FREQ_MODE _Fxy_CH1_FREQ_MODE Setting value Contents 10Hz 100Hz 1000Hz(=1kHz) 6. The status of comparison output during operation mode of XGI CPU module is stop mode. (channel 0, channel 1: _Fxy_PLCSTOP_OUT_EN Setting value...
Chapter 6 Global Constant and Global Variable 6.2 Global Variable 1. The range of output data Channel 0 Channel 1 Contents _xy_CH0_CNT _xy_CH1_CNT Current count value _xy_CH0_FRQ _xy_CH1_FRQ Count latch _xy_CH0_LTH _xy_CH1_LTH Sampling count _xy_CH0_RNG _xy_CH1_RNG Input frequency count _xy_CH0_RPU _xy_CH1_RPU Revolution per unit time Remark...
Chapter 7 Programming Chapter 7 Programming Here describes how to program by using instruction (XGK series) or function block (XGI/XGR) at scan program of XG5000 7.1 Instruction and Function Block Here describes instruction and function block to read and write data of HSC module at XGT CPU module. Remark There is difference on terminology used in XGK series and XGI/XGR series.
Page 68
Chapter 7 Program (a) How to set base and slot number 1) Basic base 2) Extension base a) Extension base stage 1 b) Extension base stage 2 (3) Use of GET/GETP instruction (a) HSC module is installed at slot 8 of basic base and While M00000 is On, it transmits the data (data1, data2) of internal memory 5 and 6 to D00015 and D00016.
Page 69
Chapter 7 Programming (b) It transmits data at rising edge of M00000. (c) HSC module is installed at slot 4 of extension base stage 2. While M00001 is on, it transmits data of internal memory 10 ~ 15 to D00001 ~ D00006. XGK CPU module HSC module D area...
Chapter 7 Program (b) It transmits data at the rising edge of M0000 (c) HSC module is equipped at slot 0 of extension base stage 1. While M00001 is on, it transmits data D00001 ~ D00006 to internal memory address 10 ~ 15. XGK CPU module HSC module Data...
Page 71
Chapter 7 Programming (2) Use of GET function block (a) HSC module is equipped at slot 8 of basic base. While ‘Read1’ is on, it transmits data of ‘_F08_CH0_CNT_ MODE‘ to ‘Output data1’ XGI/XGR CPU module HSC module Input variable (MADDR) Output variable (DATA) Global variable Constant value...
Page 72
Chapter 7 Program 2. PUT function block Function Block to write the data into Global constant area at XGI/XGR CPU module. (1) Configuration of PUT function block Function Block classification Variable Description Request execution PUT_### BASE Base where HSC module is equipped BOOL DONE BOOL...
Page 73
Chapter 7 Programming (b) It transmits data at the rising edge of execution condition (c) HSC module is equipped at slot 6 of extension base stage 1. While ‘Write2’ is on, it transmits data (Data2) of ‘InputData2’ to ‘_F16_CH0_PRESET’. XGI/XGR CPU module HSC module Input variable Input variable (MADDR)
Chapter 7 Program 7.2 Program 1. XGK, XGI system is explained referring to the following system HSC module is equipped at slot 1 of basic base. 2. XGR system is explained referring to the following system HSC module is equipped at slot of extension base. XGK series system XGI series system XGR series system...
Chapter 7 Programming 7.2.1 Count mode setting Example explaing how to set Ring Count Min. and Max. As for setting method by ‘I/O Parameter’, refer to Chapter 4. 1. Setting content Parameter Count mode 1: Ring counter 1: Ring counter Ring counter min.
Page 76
Chapter 7 Program Remark (1) Since instruction PUT (Function Block PUT_DWORD) is used at scan program example of XGK (XGI/XGR) series, while input contact point is On, data is transmitted into HSC module. So, if data is changed, it is transmitted into HSC module automatically.
Chapter 7 Programming 7.2.2 Pulse input mode setting Program example setting pulse input mode 1. Setting contents Parameter Pulse input mode 3: CW/CCW 3: CW/CCW 2. Program (1) Scan program of XGK series (2) Scan program of XGI/XGR series 7-11...
Chapter 7 Program 7.2.3 Counter check Program example checking current counter and operation by auxiliary function. 1. Program (1) Scan program of XGK series (2) Scan program of XGI/XGR series Remark In Scan program of XGI/XGR, the number of cell is changed by using icon or ‘Change Columns’...
Chapter 7 Programming 7.2.4 Preset value setting and enable preset Program example about how to set preset value and enable preset 1. Setting content Parameter Preset value 1000 1000 2. Program (1) Scan program of XGK series (2) Scan program of XGI/XGR 7-13...
Chapter 7 Program 7.2.5 Enable counter Program example executing Enable counter 1. Program (1) Scan program of XGK series (2) Scan program of XGI/XGR series 7.2.6 Carry/borrow detection reset Program example resetting the detected carry/borrow signal 1. Program (1) Scan program of XGK series (2) Scan program of XGI/XGR series 7-14...
Chapter 7 Programming 7.2.7 Auxiliary mode setting and Enable auxiliary function Program example setting auxiliary mode and executing Enable auxiliary function. You can check the operation result of auxiliary function at 7.2.3 Counter check. 1. Counter Clear When auxiliary function is on, change current counter as 0. (1) Setting contents Parameter Auxiliary mode...
Page 82
Chapter 7 Program 2. Counter latch When Enable auxiliary is on, it indicates current counter at counter latch. (1) Setting contents Parameter Auxiliary mode 2: Counter latch 2: Counter latch (2) Program (a) Scan program of XGK series (b) Scan program of XGI/XGR series 7-16...
Page 83
Chapter 7 Programming 3. Sampling Count Counter from when Enable auxiliary is on to setting time is indicated at sampling counter. (1) Setting content Parameter Auxiliary mode 3: Sampling Count 3: Sampling Count Range value 5000 5000 (2) Program (a) Scan program of XGK series (b) Scan program of XGI/XGR series 7-17...
Page 84
Chapter 7 Program 4. Input Freq. Measure While Enable auxiliary function is on, input pule is indicated at input frequency. Unit of input frequency is depending on setting of Frequency Mode. (1) Setting content Parameter Auxiliary mode 4: Input Freq. measure 4: Input Freq.
Page 85
Chapter 7 Programming 5. Revolution/Unit time While Enable auxiliary mode is on, input pulse is calculated and indicated at revolution/unit time. For revolution/unit time, Range value and Pulse/Rev value should be set. (1) Setting contents Parameter Auxiliary mode 5: Revolution/Unit time 5: Revolution/Unit time Range value 1000...
Page 86
Chapter 7 Program 6. Counter Disable While Enable auxiliary is on, counting is not executed. (1) Setting contents Parameter Auxiliary mode 6: Count Disable 6: Count Disable (2) Program (a) Scan program of XGK series (b) Scan program of XGI/XGR series 7-20...
Chapter 7 Programming 7.2.8 Up/down count selection Program example selecting UP/Down count when input pulse is set as 1 phase 1 input 1 mutiplication/2 multiplication 1. Program (a) Scan program of XGK series (b) Scan program of XGI/XGR series 7.2.9 Use of external preset signal Program examples allowing Enable preset by external preset signal and executing reset when external preset signal is detected 1.
Chapter 7 Program 7.2.10 Use of external auxiliary function signal Program example allowing Enable auxiliary function by external auxiliary function signal 1. Program (a) Scan program of XGK series (b) Scan program of XGI/XGR series 7-22...
Chapter 7 Programming 7.2.11 Type of comparison and comparison value setting Program example explain type of comparison and comparison value setting 1. Setting content Parameter Comp output 0 Comp output 1 Comp output 0 Comp output 1 Comp output mode 1: ≤...
Page 90
Chapter 7 Program (b) Scan program of XGI/XGR series 7-24...
Chapter 7 Programming 7.2.12 Enable comparison, Enable comparison output, Comparison agreement reset Program example executing Enable comparison, Enable comparison output, Comparison agreement reset 1. Program (a) Scan program of XGK series (b) Scan program of XGI/XGR series 7-25...
Chapter 7 Program 7.2.13 Comparison output status setting Program example setting status of comparison output when XGT (XGK/XGI/XGR) CPU module is STOP. 1. Setting content Parameter CH0, CH1 Comparison output status when XGT CPU module is STOP 1: Hold comparison output 2.
Chapter 7 Programming 7.2.14 Error status and error code Program example checking error status and error code occurred at HSC module 1. Program (a) Scan program of XGK series (b) Scan program of XGI/XGR 7-27...
Chapter 7 Program 7.2.15 Hold count when power fails Program example holding current count To prepare when PLC power is off, current count is saved every scan and if PLC power restart, preset operation is executed with the saved count. 1.
Page 95
Chapter 7 Programming Remark (1) In the program, timer (TON) is used for safe operation of Preset value setting and preset allowance (2) In scan program of XGI/XGR series, to hold data of ‘CH0 current count’ and ‘CH1 current count’ when PLC power is off, the following setting is necessary.
Chapter 8 Troubleshooting Chapter 8 Troubleshooting How to shoot the troubles on the high speed counter module will be described. Error code Errors of the high speed counter module are as described below. Error code RDY LED (Dec) Description status Module error (ASIC Reset error) Blinks every Module error (ASIC Memory error)
Chapter 8 Troubleshooting Troubleshooting 8.2.1 LED display status of the high speed counter module RDY LED is Off. Go to 8.3.1 RDY LED blinks. Go to 8.3.2 8.2.2 Counter status of the high speed counter module The counter value is the same as before. Go to 8.3.3 Go to 8.3.4 The change of counter value is not consistent with operation status...
Chapter 8 Troubleshooting Troubleshooting sequence 8.3.1 RDY LED Off RDY LED is Off. Is RDY LED Voltage of power module normal? Check and replace power module Other slot’s module normal? H/W defect Other slot’s module H/W defect H/W defect...
Chapter 8 Troubleshooting 8.3.2 RDY LED Blinks RDY LED blinks RDY LED blinks every 0.2 sec? RDY LED blinks every 1 sec? H/W defect After module Off →On, RDY LED blinks every 0.2 Operation parameters setting error. sec? Chang the setting data within the setting range H/W defect Check module’s base connection status...
Chapter 8 Troubleshooting 8.3.3 Counter operation error Counter operation error Power module’s Check and remove voltage normal? power module A-phase LED blinks? A, B LED On when External wiring voltage directly input on normal? counter input terminal? H/W defect Check and correct external wiring Counter operation enabled...
Chapter 8 Troubleshooting 8.3.4 Counter value error Counter value error Let counter input as specified in As specified in input standard requirements. standard? Use twisted shielded cable for Input cable of twisted shielded? counter input wiring. Actions prepared Remove cause of the noise against noise? Kept away enough Keep counter input away from power...
Chapter 8 Troubleshooting 8.3.5 Output operation error Output operation error External power’s Check and correct external power voltage normal? Let it connected as specified in output specified in output standard? requirements. Output wiring Correct external wiring. normal? Output Value set per LED operates scan? correctly?
Chapter 8 Troubleshooting 8.3.6 Module status check through XG5000 system monitoring Module type, module information, OS version and module status of HSC module can be checked through XG5000 system monitoring function. 1) Execution sequence [Monitor] -> [System Monitoring] -> and on the module screen, click the right mouse button to display [Module Information]. 2) Module information (1) Module Info: shows the information of the module presently installed.
Page 104
Appendix 1 Terminology Appendix 1 Terminology 1. Pulse Used to turn voltage (current) On/Off for a short time, and pulse line is of continuous pulses 2. Encoder Used mainly in subo-detector in order to detect speed and position, whose basic principle is that if infrared ray from LED passes the slit disk and reaches the light receiving element, analog electric sign is output which will be converted by voltage comparator to digital sign to be output.
Page 105
Appendix 1 Terminology 5. Decreasing Counter A counter value decreases from 2,147,483,647 to -2,147,483,648 (for 32-bit counter). 2,147,483,647 16,777,215 -2,147,483,648 6. Ring Counter A counter that counter value increases/decreases between the maximum value and the minimum value of the Ring count that user has defined.
Page 106
Appendix 1 Terminology 13. Carry Signal displayed when Linear count changes from 2,147,483,646 to 2,147,483,647 and when Ring count changes from the maximum value to the minimum value with increasing counter operation. 2,147,483,647 16,777,215 -2,147,483,648 Carry Carry Carry Carry 14. Borrow Signal displayed when Linear count changes from -2,147,483,647 →...
Page 108
Appendix 3 GM Function Block Conversion Program Appendix 3 GM Function Block Conversion Program 1. Preset value setting Function Block (1) Preset value setting Function Block of GN (HSCC-PRE) - Preset value setting Function Block sets count start value of HSC module. To change Count, execute Enable Preset after Preset value setting Function Block acts.
Page 109
Appendix 3 GM Function Block Conversion Program 2. Mode setting function block (1) Mode setting function block of GM (HSCC_MOD) - Mode setting function block sets pulse input type and count type of HSC module. Function Block Classific Variable Type Contents type ation...
Page 110
Appendix 3 GM Function Block Conversion Program (b) Pulse input type setting Classifica Variable Function Block Type Type Contents tion name BOOL Executed when changing “0->1” ( : Rising edge) FB execution BASE USINT Base number where HSC module is equipped Base Number SLOT USINT...
Page 111
Appendix 3 GM Function Block Conversion Program (d) Ring count upper limit setting Classifica Variable Function Block type Type Contents tion name Executed when changing “0->1” ( : Rising edge) BOOL FB execution BASE USINT Base number where HSC module is equipped Base Number SLOT USINT...
Page 112
Appendix 3 GM Function Block Conversion Program 3. Auxiliary function setting function block (1) GM auxiliary function setting function block (HSCC_AUX) - Auxiliary function setting function block sets auxiliary function of HSC module. To execute auxiliary function, execute Enable auxiliary function after auxiliary function block acts. Function Block Classific Variable...
Page 113
Appendix 3 GM Function Block Conversion Program (2) XGI/XGR auxiliary function setting function block (a) Auxiliary function type setting Variable Function Block type Classification Type Contents name Executed when changing “0->1” ( : Rising FB execution BOOL edge) Base number where HSC module is Base Number BASE USINT...
Page 114
Appendix 3 GM Function Block Conversion Program (c) Sampling count setting conversion program GM Function Block XGI/XGR Function Block (d) Input frequency setting Variable Function Block type Classification Type Contents name Executed when changing “0->1” ( : Rising FB execution BOOL edge) BASE...
Page 115
Appendix 3 GM Function Block Conversion Program (f) Measure revolution/ unit time Variable Function Block type Classification Type Contents name Executed when changing “0->1” ( : Rising FB execution BOOL edge) BASE USINT Base number where HSC module is equipped Base Number SLOT USINT...
Page 116
Appendix 3 GM Function Block Conversion Program (h) Disable count Classificati Variable Function Block Type Type Contents name Executed when changing “0->1” ( : Rising FB execution BOOL edge) BASE USINT Base number where HSC module is equipped Base Number SLOT USINT Slot number where HSC module is equipped...
Page 117
Appendix 3 GM Function Block Conversion Program 4. Comparison function setting function block (1) GM comparison function setting function block (HSCC_CMP) - Comparison function setting function sets reference value to compare Function Block Classific Variable Type Contents type ation name BOOL Executed when changing “0->1”...
Page 118
Appendix 3 GM Function Block Conversion Program (b) Comp reference value (Single Comp) Comp Min. value of Comp output 0 classific Variable Function Block type Data type Contents ation name BOOL Executed when changing “0->1” ( : Rising edge) FB execution BASE USINT Base number where HSC module is equipped...
Page 119
Appendix 3 GM Function Block Conversion Program (e) Comp Output 1 Classifi Variable Function Block type Data type Contents cation name Executed when changing “0->1” ( : Rising edge) BOOL FB execution BASE USINT Base number where HSC module is equipped Base Number SLOT USINT...
Page 120
Appendix 3 GM Function Block Conversion Program (f) Comp Max. value of Comp Output 1 (Sampling Comp) Classifica Variable Function Block type Type Content tion name Executed when changing “0->1” ( : Rising edge) BOOL FB execution BASE USINT Base number where HSC module is equipped Base Number SLOT USINT...
Page 121
Appendix 3 GM Function Block Conversion Program 5. Count Read Function Block (1) Count Read Function Block of GM (HSCC_CNT) - Count Read Function Block indicates the count about current count and auxiliary function. Classifi Variable FB type Type Content cation name BOOL...
Page 122
Appendix 3 GM Function Block Conversion Program 6. Operation Information setting Function Block (1) Operation Information setting Function Block (HSCC_WR) - Operation Information setting Function Block (HSCC_WR) executes the detection flag status setting of external preset command, internal/external use of auxiliary function enable and Up/Down count by program, Enable auxiliary function, Carry/Burrow status setting, preset.
Page 123
Appendix 3 GM Function Block Conversion Program (2) XGI/XGR Operation Information setting FB conversion program (a) Enable/Disable count (b) Enable/Disable preset operation (c) Up/Down count by program (d) Carry/Borrow detection reset App3-16...
Page 124
Appendix 3 GM Function Block Conversion Program (e) External use of Enable Preset (f) External preset detection reset App3-17...
Page 125
Appendix 3 GM Function Block Conversion Program 7. Operation status Read Function Block (1) Operation status read Function Block of GM (HSCC_RD) - Operation status read Function Block indicates Up/Down status of count, detection status of external preset input signal, Carry/Borrow status and auxiliary function operation status.
Page 126
Appendix 3 GM Function Block Conversion Program (2) XGI/XGR Operation Information setting FB conversion Program (a) Count operation status (b) External Preset Input Detection (c) Carry Detection (d) Borrow Detection App3-19...
Page 127
Appendix 3 GM Function Block Conversion Program (e) Auxiliary Function Operating App3-20...
Page 128
Appendix 3 GM Function Block Conversion Program 8. Comp Output Setting Function Block (1) Comp Output Setting Function Block of GM (HSCC_OUT) - Comp output Setting Function Block sets comparison of HSC module and enable of comparison output, agreement reset, whether to hold comparison output (OUT0, OUT1) and indicates status of comparison output FB type Classifi...
Page 129
Appendix 3 GM Function Block Conversion Program (2) XGI/XGR Comparison output setting Function Block conversion program XGI/XGR input conversion program XGI/XGR output conversion program App3-22...
Page 130
3. Since the above warranty is limited to PLC unit only, make sure to use the product considering the safety for system configuration or applications. Environmental Policy LS Industrial Systems Co., Ltd supports and observes the environmental policy as below. Environmental Management About Disposal...
Page 131
Fax: 86-532-583-3793 Tel: 86-411-8273-7777 Fax: 86-411-8730-7560 ※ LS Industrial Systems constantly endeavors to improve its product so that 2009. 6 Information in this manual is subject to change without notice. ⓒ LS Industrial Systems Co., Ltd 2006 All Rights Reserved.
Need help?
Do you have a question about the XGF-HO2A and is the answer not in the manual?
Questions and answers