background image

 
 
 
 
 

Safety Instruction   

 

 

Safety Instructions 

for design process 

 

 

 

 

 

 

 

 

 

Safety Instructions 

on installation process

 

 

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 

Caution

 

 

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 may be caused. 

 Before 

install or remove the module, be sure PLC power is off.

 If not, electric shock or damage 

on the product may be caused. 

 

Be sure that every module is securely attached after adding a module or an extension 

connector.

 If the product is installed loosely or incorrectly, abnormal operation, error or dropping 

may be caused. In addition, contact failures under poor cable installation will be causing 

malfunctions as well. 

 Be sure that screws get tighten securely under vibrating environments. 

Fail to do so will put 

the product under direct vibrations which will cause electric shock, fire and abnormal operation.

 

 Do not come in contact with conducting parts in each module

, which may cause electric 

shock, malfunctions

 or abnormal operation.

 

Caution

 

Содержание XGF-HD2A

Страница 1: ...de of choosing us for your partner Programmable Logic Controller High Speed Counter XGT Series User s Manual z Read this manual carefully before installing wiring operating servicing or inspecting this equipment zKeep this manual within easy reach for quick reference XGF HO2A XGF HD2A ...

Страница 2: ...e applicable instruction is violated This symbol indicates the possibility of severe or slight injury and property damages if some applicable instruction is violated Moreover even classified events under its caution category may develop into serious accidents relying on situations Therefore we strongly advise users to observe all precautions properly just like warnings The marks displayed on the p...

Страница 3: ...ut signals are designed to be turned off and stopped for safety However there are cases when output signals remain active due to device failures in Relay and TR which can t be detected Thus you are recommended to install an addition circuit to monitor the output status for those critical outputs which may cause significant problems Never overload more than rated current of output module nor allow ...

Страница 4: ...t electric shock or damage on the product may be caused Be sure that every module is securely attached after adding a module or an extension connector If the product is installed loosely or incorrectly abnormal operation error or dropping may be caused In addition contact failures under poor cable installation will be causing malfunctions as well Be sure that screws get tighten securely under vibr...

Страница 5: ...ns Secure terminal screws tightly applying with specified torque If the screws get loose short circuit fire or abnormal operation may be caused Securing screws too tightly will cause damages to the module or malfunctions short circuit and dropping Be sure to earth to the ground using Class 3 wires for FG terminals which is exclusively used for PLC If the terminals not grounded correctly abnormal o...

Страница 6: ...stalling or disassembling the module let all the external power off including PLC power If not electric shock or abnormal operation may occur Keep any wireless equipment such as walkie talkie or cell phones at least 30cm away from PLC If not abnormal operation may be caused When making a modification on programs or using run to modify functions under PLC operations read and comprehend all contents...

Страница 7: ...Safety Instruction Safety Instructions for waste disposal Product or battery waste shall be processed as industrial waste The waste may discharge toxic materials or explode itself Caution ...

Страница 8: ... 4 Monitoring and Test 5 Auto registration U device 6 Program 7 Terminology Description 4 10 4 11 7 1 7 7 6 1 6 3 6 4 2 8 2 26 4 1 4 3 4 4 4 5 4 6 4 7 4 8 4 9 7 8 7 29 Appendix 1 1 Appendix 1 2 1 Added the contents of XGR CPU Module 1 Notes 2 XG5000 execution Global constant 3 Program 2 2 4 1 4 3 6 1 7 1 7 29 V1 2 2009 06 2 Added GM Function Block Conversion Program Appendix 3 The number of User s...

Страница 9: ...ons Programming User s Manual User s manual for programming to explain how to use instructions that are used PLC system with XGK XGB CPU XGI XGR Instructions Programming User s Manual User s manual for programming to explain how to use instructions that are used PLC system with XGI XGR CPU XGK CPU User s Manual XGK CPUA CPUE CPUH CPUS CPUU XGK CPUA CPUE CPUH CPUS CPUU user manual describing about ...

Страница 10: ...ter mode 2 13 2 4 3 Preset 2 16 2 4 4 Compared output 2 17 2 4 5 Carry signal 2 21 2 4 6 Borrow signal 2 21 2 4 7 Auxiliary mode 2 22 3 1 INSTALLATION 3 1 3 1 1 Installation environment 3 1 3 1 2 Handling precautions 3 1 3 2 WIRING PRECAUTIONS 3 1 3 2 1 Example of DC5V voltage output wiring 3 2 3 2 2 Example of DC12V NPN Open Collector output wiring 3 3 3 2 3 Example of DC24V PNP Open Collector ou...

Страница 11: ... 2 The Configuration and Contents of Data 6 2 6 2 GLOBAL VARIABLE 6 4 Chapter 7 Programming 7 1 7 29 7 1 INSTRUCTION AND FUNCTION BLOCK 7 1 7 1 1 Instruction of XGK series 7 1 7 1 2 Function Block of XGI XGR 7 4 7 2 PROGRAM 7 8 7 2 1 Count mode setting 7 9 7 2 2 Pulse input mode setting 7 11 7 2 3 Counter check 7 12 7 2 4 Preset value setting and enable preset 7 13 7 2 5 Enable counter 7 14 7 2 6 ...

Страница 12: ...s of HS counter module 8 2 8 3 TROUBLESHOOTING SEQUENCE 8 3 8 3 1 RDY LED Off 8 3 8 3 2 RDY LED Blinks 8 4 8 3 3 Counter operation error 8 5 8 3 4 Counter value error 8 6 8 3 5 Output operation error 8 7 8 3 6 Module status check through XG5000 system monitoring 8 8 Appendices Appendix 1 Appendix 3 Appendix 1 Terminology Appendix 1 Appendix 2 Dimensions Appendix 2 Appendix 3 GM Function Block Conv...

Страница 13: ...f the applicable program 1 multiplier 2 multiplier 2 Increasing Decreasing function by means of the B phase input 1 multiplier 2 multiplier b if 2 phase is input 1 multiplier 2 multiplier 4 multiplier increasing decreasing function by means of the difference in phase c if CW CCW is input increasing decreasing function by means ofA phase or B phase 2 Preset Gate function by means of the applicable ...

Страница 14: ...ltage 4kV contact discharging IEC 61131 2 IEC 61000 4 2 Radiated electromagnetic field noise 27 500MHz 10 V m IEC 61131 2 IEC 61000 4 3 Class Power module Digital Analog I O communication interface 7 Impulse Noise Fast Transient burst noise Voltage 2kV 1kV IEC 61131 2 IEC 61000 4 4 8 Ambient conditions No corrosive gas or dust 9 Operating height 2 000m or less 10 Pollution degree 2 or less 11 Cool...

Страница 15: ...ut 2 phase input Input mode program setting CW CCW input Increasing decreasing operation setting by B phase input 1 phase input Increasing decreasing operation setting by program 2 phase input Automatic setting by difference in phase A phase input increasing operation Up down Setting CW CCW B phase input decreasing operation 1 phase input 1 2 multiplication program setting 2 phase input 1 2 4 mult...

Страница 16: ... 2 3 Preset auxiliary function input specification Item Specification Input volatage DC 24V 17 0V 26 4V DC 12V 9 8V 13 2V DC 5V 4 5V 5 5V Input current 7mA 11mA 7mA 11mA 7mA 11mA Min On guarateed voltage 17 0V 9 8V 4 1V Max Off guarateed voltage 4 5V 3 0V 1 7V On delay time 1 ms or less Off delay time 1 ms or leess 2 2 4 Comp output specification Item Specification Output type Transistor sink Rate...

Страница 17: ... Auxiliary function signal inputting Commparison outputting Off No input of relevant channel pulse No input of preset auxiliary function signal No output of comparison Ready signal RDY On HSC module normal Off Power off or CPU module reset HSC module error Flicker HSC module error External wiring connector Connector to conect with external I O ...

Страница 18: ... function input 5V 33 35 OUT1 Comp output 1 34 36 OUT0 Comp output 0 37 38 24V External power input 24V 39 40 24G External power input GND 2 XGF HD2A Pin No Pin arrangement CH0 CH1 Signal name 1 17 AⅠ AⅠphase differentiation input 2 18 AⅠ AⅠphase differentiation input 3 19 AⅡ AⅡphase differentiation input 4 20 AⅡ AⅡphase differentiation input 5 21 BⅠ BⅠphase differentiation input 6 22 BⅠ BⅠphase d...

Страница 19: ...8 24 B phase pulse input 5V BCOM 7 23 B phase pulse input COM P24V 10 26 Preset input 24V P12V 9 25 Preset input 12V P5V 12 28 Preset input 5V PCOM 11 27 Preset input COM G24V 14 30 Auxiliary function input 24V G12V 13 29 Auxiliary function input 12V G5V 16 32 Auxiliary function input 5V Input GCOM 15 31 Auxiliary function input COM OUT0 34 36 Comp output 0 OUT1 33 35 Comp output 1 24V 37 38 Exter...

Страница 20: ...t BII 7 23 BⅡphase differentiation input P24V 10 26 Preset input 24V P12V 9 25 Preset input 12V P5V 12 28 Preset input 5V PCOM 11 27 Preset input COM G24V 14 30 Auxiliary function input 24V G12V 13 29 Auxiliary function input 12V G5V 16 32 Auxiliary function input 5V Input GCOM 15 31 Auxiliary function input COM OUT0 34 36 Comp output 0 OUT1 33 35 Comp output 1 24V 37 38 External power input 24V O...

Страница 21: ...1 Up Down count setting On Down count 1 Donw Up Up Up Down count setting A phase input pulse Count 10 11 12 13 12 11 10 11 Off On Off b 1 phase 1 input 2 multiplication input When input pulse ofAphase is rising and falling count operates and up down count operation is set by program Up Down count classification Aphase pulse rising Aphase pulse falling Up Down count setting Off Up count 1 Up count ...

Страница 22: ...ulse On Down count 1 Down Up Up B phase input pulse A phase input pulse Count 10 11 12 13 12 11 10 11 Off On Off b 1 phase 2 input 2 multiplication input When input pulse of Aphase is rising and falling count operates and up down count operation is set by level of B phase input pulse Up Down count classification Aphase pulse rising Aphase pulse falling B phase input pulse Off Up count 1 Up count 1...

Страница 23: ... count 1 Up Down B phase input pulse A phase input pulse Count 10 11 12 13 12 11 10 9 2 2 phase 2 multiplication input When input pulse of A phase is ahead of B phase input pulse at rising and falling 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 and falling edge of A phase input pulse Down count is operated Up Down count cla...

Страница 24: ... count 1 Up count 1 Up count 1 Phase ofAand B B A Down count 1 Down count 1 Down count 1 Down count 1 Up Down B phase input pulse A phase input pulse Count 10 11 15 19 13 17 21 23 22 12 16 20 14 18 22 21 17 13 19 15 11 20 16 12 18 14 10 3 CWCCW ClockWise Counter ClockWise input Count is operated at rising edge of Aphase inpulse or B phase input pulse and Up Down count operation is determined by le...

Страница 25: ...rrow occurs count stops and decreasing is not available but increasing is available 2 Ring count 1 Count operation is executed within the user defined range repeatedly 2 Ring Count range ring count min value ring count max value 3 Ring count display If Ring Counted minimum value of Ring Count is displayed as count but the maximum value is not displayed as count 4 Ring count operation a ring count ...

Страница 26: ...g count max value current count 2 147 483 647 1 Up count If count reaches ring count max value it changes into ring count min value and carry occurs and count is executed until 2 147 483 647 If count exceeds 2 147 483 647 count is changed into 2 147 483 648 and executed repeatedly Carry Ring count max value Input pulse Count not included included Count start Ring count min value Carry borrow reset...

Страница 27: ...gain Borrow Ring count max value Input pulse Count not included included Count start Ring count min value Carry borrow reset 2 147 483 647 2 147 483 648 Notes When setting ring count max min value if current count is out of range of ring count module assumes that that is mistake of user and LED flickers and error occurs If the user executes preset operation and changes the current count to be with...

Страница 28: ... value Enable Preset On Enable Preset Count start Current count 400 200 0 200 Preset value setting 200 200 Notes 1 To use preset function by external input signal set Enable Preset as 1 on turn on external preset input signal 2 If you execute the preset by external input signal external preset detection becomes 1 On When external preset detection is 1 on external preset is not executed In order to...

Страница 29: ...U device or Global variable and in order to send out the actual external output with LED turned On the output enable signal is to be On 1 Preset value Compared value If counted present value is less than compared value output is sent out and if present value increases to be equal to or greater than compared value output is not sent out Notes 1 Compared result can be checked at U device for XGK Glo...

Страница 30: ...unt 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 Count value Compared value If present count value is greater than or equal to compared value output is sent out and if count value decreases to be less than compared value output is not sent out ...

Страница 31: ...red value min Count value Compared value max If present count value is greater than or equal to compared value 1 and less 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 123456 123457 123458 123459 123460 123461 123462 123457 Count Comp value min Enable Comp Enable Comp output Compared output LED Co...

Страница 32: ... 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 ...

Страница 33: ...unt 3 Carry reset The Carry generated can be cancelled by Carry Borrow reset signal On 2 4 6 Borrow 1 Borrow signal occurs 1 When count range minimum value of 2 147 483 648 is reached during Linear Count 2 When minimum value of Ring Count changed to the maximum value during Ring Count user defined Ring Count minimum value maximum value 2 Count when Borrow signal occurs 1 Count stops if Borrow occu...

Страница 34: ...ary function by program turn off the external auxiliary mode and turn on EnableAuxiliary 2 To use auxiliary function by an external signal turn on the external auxiliary mode and turn on External auxiliary input signal GATE 1 Count clear 1 WhenAuxiliary Mode enable signal is On present count value is set to 0 2 Setting method Set auxiliary mode setting mode to 1 Auxiliary mode enable signal On Aux...

Страница 35: ...Chapter 2 Specifications 2 22 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 ...

Страница 36: ...e 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 Sampling count Count start Current count 400 300 0 200 Auxiliary enable 430 230 0 260 Setting time Setting time Setting time Now runing ...

Страница 37: ...ing 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 Frequency unit setting Unit Hz Updated cycle ms 0 1 1000 1 10 100 2 100 10 3 1000 1 4 Display during auxiliary mode operation While auxiliary mode enable signal is On Now Running signal is on On the figure u...

Страница 38: ... pulse revolution should be set 2 Setting method Set auxiliary mode setting mode to 5 setting Time setting No of pulse revolution Auxiliary mode enable signal On 3 With the number of pulses per revolution input and time set to 1 minute 60000ms the value of RPM is displayed 4 Display during auxiliary mode operation While auxiliary mode enable signal is On Now Running signal is on On the figure the ...

Страница 39: ...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 Count start Current count 300 0 Enable auxiliary 100 200 Now running ...

Страница 40: ...to work on Don t let it installed on the same panel as a high voltage device is on 3 1 2 Handling precautions Precautions for handling High Speed counter module are as described below from the opening to the installation 1 Don t let it dropped or shocked hard 2 Don t remove PCB from the case It will cause abnormal operation 3 Don t let any foreign materials including wiring waste inside the top of...

Страница 41: ...w 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 F G A24V XGF HO2A A12V A5V ACOM B24V B12V B5V P24V P12V P5V PCOM G24V G12V G5V OUT0 OUT1 24V 24G OUTA OUTB 5V 5VDC PulseGenerator L 24VDC L PhaseA PhaseB Preset Gate TwistShieldCable TwistShieldCable BCOM GCOM 5VDC 5VDC Switch 0V ...

Страница 42: ... it used the pulse generator Encoder or Manual pulse generator of NPN Open Collector output type F G A24V XGF HO2A A12V A5V ACOM B24V B12V B5V P24V P12V P5V PCOM G24V G12V G5V OUT0 OUT1 24V 24G OUTA OUTB 0V 12VDC PulseGenerator L 24VDC L PhaseA PhaseB Preset Gate TwistShieldCable TwistShieldCable BCOM GCOM 5VDC 5VDC Switch 12V ...

Страница 43: ...ch it used the pulse generator Encoder or Manual pulse generator of PNP Open Collector output type F G A24V XGF HO2A A12V A5V ACOM B24V B12V B5V P24V P12V P5V PCOM G24V G12V G5V OUT0 OUT1 24V 24G OUTA OUTB 24VDC PulseGenerator L 24VDC L PhaseA PhaseB Preset Gate TwistShieldCable TwistShieldCable BCOM GCOM 5VDC 5VDC Switch 0V ...

Страница 44: ... generator Encoder or Manual pulse generator of RS 422A Line Driver 5V level output type RS 422ALine Driver 5V Level OUTB OUTB OUTA Vcc Vcc TwistShieldCable AI AI OUTA TwistShieldCable BI BI 5V External Power Source 5V 0V 0V XGF HD2A PulseGenerator 1 In case of 24V Level Line Driver please connect toAII AII BII BII terminal Remark ...

Страница 45: ... methods of High speed counter module 4 1 XG5000 Excution 4 1 1 Execution and Connection of XG5000 1 After XG5000 installed click XG5000 execution icon to display the initial screen of XG5000 program as shown below 2 On the Project menu click New Project or on the icon menu to display the screen as shown below XGK CPUH setting of XGK series XGI CPUU setting of XGI series XGR CPUH setting of XGR se...

Страница 46: ...Chapter 4 Operation Procedures and Monitoring 4 2 3 Project screen is as below Project screen of XGK series Project screen of XGI series ...

Страница 47: ...ion 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 5 After all settings complete click Online Connect or on the icon menu Click Communication tab on Message Window to check the connection OK Cancel ...

Страница 48: ...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 ...

Страница 49: ...t 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 You must make the scan program to change paramerter of the high speed counter module during CPU RUN mode ...

Страница 50: ...iption 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 1 After connected to PLC CPU through XG5000 click Online Special Module Monitoring or on the icon menu to display the screen as shown below ...

Страница 51: ...Chapter 4 Operation Procedures and Monitoring 4 7 2 On the module list dialog box the special modules presently installed on PLC system will be displayed ...

Страница 52: ...ch module s parameter items can be changed individually If you click TEST button setting values is applied to current value 1 It is applied to only test operation to the parameter which changed byTest button If test operation is concluded the high speed counter module is operated by the parameter which was set by I O parameter or by the scan program 2 If PLC CPU module is STOP mode it is available...

Страница 53: ...eration Procedures and Monitoring 4 9 4 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 ...

Страница 54: ...ion 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 ...

Страница 55: ...s and Monitoring 4 11 4 4 2 Registration of U Devices 1 Select Edit Æ Register U Device First Variable Comment window has to be executed 2 Click Yes to complete the U device registration that is set at I O parameter setting Yes No ...

Страница 56: ...Chapter 4 Operation Procedures and Monitoring 4 12 ...

Страница 57: ...nts 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 4 5 2 Registration of the special module variables 1 Select Edit Æ Register Special Module variables First Global Direct Variables window has to be executed ...

Страница 58: ...Chapter 4 Operation Procedures and Monitoring 4 14 2 Click Yes to complete the special module variables registration that is set at I O parameter setting Yes No ...

Страница 59: ...Chapter 4 Operation Procedures and Monitoring 4 15 ...

Страница 60: ...ype 0 6 9 34 Select OUT 1 type 0 6 10 35 11 36 OUT0 compared based value single compared minimum setting value section compared 2147483648 2147483648 12 37 13 38 OUT0 compared based value maximum setting value section compared 2147483648 2147483648 14 39 15 40 OUT1 compared based value single compared minimum setting value section compared 2147483648 2147483648 16 41 17 42 OUT1 compared based valu...

Страница 61: ...UT is On 2 If present value compared reference value OUT is On 3 If present value compared reference value OUT is On 4 If present value compared reference value OUT is On 5 Ifcomparedminimumvalue presentvalue comparedmaximum value OUT is On 6 If compared minimum value present value present value compared maximum value OUT is On Here means 0 or 1 4 Auxiliary mode setting CH0 18 address CH1 43 addre...

Страница 62: ...gnal Edge Uxy 00 8 Uxy 23 8 Uxy 00 9 Uxy 23 9 Uxy 00 A Uxy 23 A Carry Borrow reset signal Edge Uxy 00 B Uxy 23 B Preset external input setting signal Uxy 00 C Uxy 23 C Command of auxiliary mode use external input setting signal gate signal Uxy 00 D Uxy 23 D External input preset flag reset signal Uxy 00 E CH0 error flag Uxy 23 E 0 Uxy 00 F Module Ready Uxy 23 F Uxy 01 0 Increasing decreasing count...

Страница 63: ...NG_MAX 31 Ring count maximum value 2147483648 2147483647 _Fxy_CH0_CP0_MODE 08 _Fxy_CH1_CP0_MODE 33 Type of comparison output 0 0 6 _Fxy_CH0_CP1_MODE 09 _Fxy_CH1_CP1_MODE 34 Type of comparison output 1 0 6 _Fxy_CH0_CP0_MIN 10 _Fxy_CH1_CP0_MIN 35 Comparison reference value of comparison output 0 single comparison minimum value section comparison 2147483648 2147483647 _Fxy_CH0_CP0_MAX 12 _Fxy_CH1_CP0...

Страница 64: ...hase 1 input 2 multiplier 6 1 phase 2 input 1 multiplier 7 1 phase 2 input 2 multiplier 3 Comparison output types channel 0 _Fxy_CH0_CP _MODE channel 1 _Fxy_CH1_CP _MODE Setting value Contents 0 In case of current count value comparison reference value OUT is On 1 In case of current count value comparison reference value OUT is On 2 In case of current count value comparison reference value OUT is ...

Страница 65: ...e channel 0 _Fxy_CH0_FREQ_MODE channel 1 _Fxy_CH1_FREQ_MODE Setting value Contents 0 1Hz 1 10Hz 2 100Hz 3 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 Contents 0 Output disable 1 Ouput preservation ...

Страница 66: ... status of comparison output 1 _xy_CH0_EQ0RST Equal reset of comparison output 0 edge _xy_CH0_ERR Error detection _xy_CH0_EQ1RST Equal reset of comparison output 1 edge _xy_RDY Module ready _xy_CH0_CRTBRW_RST Carry Borrow reset edge _xy_CH0_EXTPST_EN External preset selection edge _xy_CH0_EXTAUX_EN Selection of external additional function edge Channel0 _xy_CH0_EXTPST_RST Detection reset of extern...

Страница 67: ...al variable Device Variable F area Flag 7 1 1 Instruction of XGK series 1 GET GETP instruction It is an instruction used to read the details of High Speed counter module s internal memory to PLC CPU The read data can be saved on PLC CPU memory except F area 1 Operation of GET GETP instruction GET Always executed with execution condition On Level GETP Executed with execution condition of operation ...

Страница 68: ...e 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 XGK CPU module HSC module D area Internal memory Data D00015 5 Data1 D00016 6 Data2 ...

Страница 69: ...ion On Level PUTP Executed with execution condition of operation Start Edge 2 Configuration of PUT PUTP instruction Type Description Available area Reference n1 Slot No the special module is installed on Integer Hexadecimal is recommended n2 Startaddress ofspecialmodule s internalmemory to writedata Integer n3 Device s startaddressorintegerwith saveddata to write M P K L T C D D n4 Number of words...

Страница 70: ...e HSC module is equipped Input MADDR Global constant area DONE Function Block execution status STAT Error information Output DATA Output data Remark 1 means that WORD DWORD INT UINT DINT UDINT type is available 2 For REQ edge signal or level signal is available 3 For MADDR Global constant or integer is available 4 Output data is data read from Global constant 5 In case of XGR HSC module should be ...

Страница 71: ...a1 Remark 1 Results of above two examples are same 2 For detail of Global variable refer to XG5000 user manual b It transmits data at the rising edge of execution condition c HSD module is equipped at slot 4 of extension base stage 2 While Read2 is on it transmits data of _F24_CH1_CP0 _MIN to OutputData2 XGI XGR CPU module HSC module Input variable MADDR Output variable DATA Global constant Consta...

Страница 72: ...e should be equipped at extension base Function block is classified as follows according to output variable type Function block Input variable type Operation description PUT_WORD WORD Writes WORD data to Global constant area MADDR PUT_DWORD DWORD Writes DWORD data to Global constant area MADDR PUT_INT INT Writes INT data to Global constant area MADDR PUT_UINT UINT Writes UINT data to Global consta...

Страница 73: ... 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 MADDR Data Input variable DATA Global constant Constant value Data2 Input data2 _F16_CH0_PRESET 2 Write2 PUT_DWORD REQ BASE SLOT MADDR DONE STAT DATA 1 6 _F16_CH0 _PRESET InputData2 ...

Страница 74: ... 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 ...

Страница 75: ...Ring Count Min and Max As for setting method by I O Parameter refer to Chapter 4 1 Setting content Parameter CH0 CH1 Count mode 1 Ring counter 1 Ring counter Ring counter min 0 0 Ring counter max 100000 100000 2 Program 1 Scan program of XGK series 2 Scan program of XGI XGR series ...

Страница 76: ... is compete DONE becomes 1 Namely front function block and back function block are not executed simutaneouly and from left to right they are executed sequently b If input variable of function block is set uncorrectoly and error occurs DONE doesn t become 1 Namely if error occurs at front function block back function block is not executed 3 Integer can be inserted into MADDR instead of global const...

Страница 77: ...g 7 11 7 2 2 Pulse input mode setting Program example setting pulse input mode 1 Setting contents Parameter CH0 CH1 Pulse input mode 3 CW CCW 3 CW CCW 2 Program 1 Scan program of XGK series 2 Scan program of XGI XGR series ...

Страница 78: ...ram 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 of View ...

Страница 79: ...2 4 Preset value setting and enable preset Program example about how to set preset value and enable preset 1 Setting content Parameter CH0 CH1 Preset value 1000 1000 2 Program 1 Scan program of XGK series 2 Scan program of XGI XGR ...

Страница 80: ...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 ...

Страница 81: ...uting 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 CH0 CH1 Auxiliary mode 1 Counter Clear 1 Counter Clear 2 Program a Scan program of XGK series b Scan program of XGI XGR ...

Страница 82: ...latch When Enable auxiliary is on it indicates current counter at counter latch 1 Setting contents Parameter CH0 CH1 Auxiliary mode 2 Counter latch 2 Counter latch 2 Program a Scan program of XGK series b Scan program of XGI XGR series ...

Страница 83: ...m when Enable auxiliary is on to setting time is indicated at sampling counter 1 Setting content Parameter CH0 CH1 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 ...

Страница 84: ...e is indicated at input frequency Unit of input frequency is depending on setting of Frequency Mode 1 Setting content Parameter CH0 CH1 Auxiliary mode 4 Input Freq measure 4 Input Freq measure Frequency Mode 1 10Hz 1 10Hz 2 Program a Scan program of XGK series b Scan program of XGI XGR series ...

Страница 85: ...dicated at revolution unit time For revolution unit time Range value and Pulse Rev value should be set 1 Setting contents Parameter CH0 CH1 Auxiliary mode 5 Revolution Unit time 5 Revolution Unit time Range value 1000 1000 Pulse Rev value 200 200 2 Program a Scan program of XGK series b Scan program of XGI XGR series ...

Страница 86: ... Counter Disable While Enable auxiliary is on counting is not executed 1 Setting contents Parameter CH0 CH1 Auxiliary mode 6 Count Disable 6 Count Disable 2 Program a Scan program of XGK series b Scan program of XGI XGR series ...

Страница 87: ...t 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 Program a Scan program of XGK series b Scan program of XGI XGR series ...

Страница 88: ...am 7 22 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 ...

Страница 89: ...e explain type of comparison and comparison value setting 1 Setting content CH0 CH1 Parameter Comp output 0 Comp output 1 Comp output 0 Comp output 1 Comp output mode 1 5 1 5 Comp output min 10 150 10 150 Comp output max 150 No meaning 300 150 No meaning 300 2 Program a Scan program of XGK seires ...

Страница 90: ...Chapter 7 Program 7 24 b Scan program of XGI XGR series ...

Страница 91: ...nable 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 ...

Страница 92: ...m 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 Program a Scan program of XGK series b Scan program of XGI XGR series ...

Страница 93: ...Chapter 7 Programming 7 27 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 ...

Страница 94: ...ils 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 Program a Scan program of XGK series b Scan program of XGI XGR series ...

Страница 95: ...ing 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 a On Basic Parameter set Restart Method as Warm Restart b On scan program set CH0 current count and CH1 current count as Retain variable ...

Страница 96: ...eded maximum input range 30 130 Compared output 0 minimum value compared output 0 maximum value set 31 131 Compared output 1 minimum value exceeded maximum input range 32 132 Compared output 1 maximum value exceeded maximum input range 33 133 Compared output 1 minimum value compared output1 maximum value set 34 134 Pulses per revolution range exceeded 35 135 Frequency input mode range exceeded Bli...

Страница 97: ...ter module 8 2 3 Output status of the high speed counter module RDY LED is Off Go to 8 3 1 The counter value is the same as before The change of counter value is not consistent with operation status Go to 8 3 3 Go to 8 3 4 Output operation is not available Output operation is not consistent with operation status Go to 8 3 5 RDY LED blinks Go to 8 3 2 ...

Страница 98: ...3 Troubleshooting sequence 8 3 1 RDY LED Off RDYLED isOff Is RDY LED On Voltage of power module normal H W defect Check and replace power module Other slot s module normal H W defect Other slot s module H W defect No No No Yes Yes Yes ...

Страница 99: ...RDY LED blinks every 0 2 sec Yes No H W defect After module Off On RDY LED blinks every 0 2 sec Yes No Check module s base connection status RDY LED blinks every 1 sec H W defect No Yes Operation parameters setting error Chang the setting data within the setting range ...

Страница 100: ... correctlyarranged H W defect Anyforeignmaterials inside Checkandcorrect external wiring Correct program to let counter operation enabled signal On No No No No No Yes Yes Yes Yes Yes Yes 2 phase operation mode A BLEDOnwhen voltagedirectlyinputon counterinput terminal No Correctprogramtosetexact I Osignal No B phase LED blinks No Yes Yes SlotNo setting correct Yes Correctprogramforaccurateslot No s...

Страница 101: ...ions prepared against noise Kept away enough between strong electric and counter input Yes Countervalueidentical whenidenticalvalueinputonCh0 andCh1 Yes Usetwisted shielded cablefor counterinputwiring No Removecauseofthenoise No Keep counter input away from power cableatleast10cm No Hardwaredefect No Useoscilloscopetomeasureinput wavetocheckitstype Inputwavetype offrequencyexceededdefined standard...

Страница 102: ...t it connected as specified in output requirements No Correctexternalwiring No No CorrectprogramtoletOutput EnabledsignalOn No Hardwaredefect No Correct program to set exact I O signal I Osigncorrectlyarranged No Output wiring normal Valuesetper scan Correctprogramsothatthesetvalue isonlywhenthevaluechanges Channel correctly defined Correctprogramtosettoexactoutput datacomparedvalue No Correctprog...

Страница 103: ...tion 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 2 OS version shows the OS version information of the high speed counter module 3 OS date shows the OS prepared date of the high speed counter module 4 Module status shows the present er...

Страница 104: ... Z phase Aphase Basic output signal of pulses is output as many as the number of resolutions for 1 revolution of shaft B phase Signal with a specific phase difference fromAphase which can detect revolution direction of shaft Z phase 1 pulse is output for 1 revolution of shaft That is they are used to reset external counter or to detect the origin position 3 Manual Pulse Generator Adevice that hand...

Страница 105: ...lue of the Ring count that user has defined 7 1 Phase Operation Mode Mode used to count 1 phase input pulse 8 CW CCW Operation Mode Mode used to count another 1 phase if 1 phase is Low among 2 phase input pulses 9 CW CCW Operation Mode Mode used to count 2 phase input pulse 10 Preset Mode used to set present counter value to discretionary value 11 Gate Signal used to enable additional function ope...

Страница 106: ...counter operation 0 16 777 215 Borrow Borrow Borrow Borrow 15 LT Signal Signal displayed if present counter value compared value 16 EQ Signal Signal displayed if present counter value compared value 17 GT Signal Signal displayed if present counter value compared value 18 Section Signal or Signal displayed if present counter value is between two user defined values or exceeds the two values 19 Exte...

Страница 107: ...A XGF HD2A Unit CH1 OUT1 OUT0 24G 24G 24V 24V XGF HD2A DC24V A A CH1 CH0 G12V GCOM G24V G5V P12V P24V PCOM P5V PCOM P5V P12V P24V CH0 OUT1 GCOM G12V OUT0 G5V G24V O 0 O 1 G R D Y P Ø A C H 1 C H 0 XGF HD2A Ø B A A B B B B A A B B B B A A LINE D RIVE 0 2 0 0 2 0 27 98 90 0 1 ...

Страница 108: ...2 MADDR USINT Channel Ch1 _F01_CH1PRESET 27 Input PSET _VAL DWORD Preset range 2 147 483 648 2 147 483 647 DONE BOOL Execution status If it completes it outputs 1 and holds If error occurs it outputs 0 Output STAT USINT Error status In case of error outputs error code Remark 1 Input variable MADDR of XGI XGR FB indicates internal memory Constant or Global variable is inputted If we refer to above ...

Страница 109: ...put RING_MIN DINT Ring upper limit 2 147 483 648 2 147 483 647 Input RING_MAX DINT Ring lower limit 2 147 483 648 2 147 483 647 DONE BOOL Execution status If it completes it outputs 1 and holds If error occurs it outputs 0 Output STAT USINT Error status In case of error outputs error code 2 Mode setting function block of XGI XGR Since XGI XGR can t process Mode setting Function Block HSCC_MOD at o...

Страница 110: ...nput Input DATA DWORD Pulse input mode setting 7 1phase 2input 2multiplication B phase up down input DONE BOOL Execution status If it completes it outputs 1 and holds If error occurs it outputs 0 Output STAT USINT Error status In case of error outputs error code c Ring count lower limit setting Function Block type Classific ation Variable name Type Contents REQ BOOL FB execution Executed when chan...

Страница 111: ...ere HSC module is equipped SLOT USINT Slot Number Slot number where HSC module is equipped Ch0 _Fxy_CH0_RING_MAX 06 MADDR UINT Channel Ch1 _Fxy_CH0_RING_MAX 31 Input DATA DWORD Ring count upper limit 2 147 483 648 2 147 483 647 DONE BOOL Execution status If it completes it outputs 1 and holds If error occurs it outputs 0 Output STAT USINT Error status In case of error outputs error code f Conversi...

Страница 112: ...r Base number where HSC module is equipped SLOT USINT Slot Number Slot number where HSC module is equipped Ch0 0 CH BOOL Channel Ch1 1 0 Not use 1 Count Clear 2 Count Latch 3 Sampling frequency 4 Measure input Freq 5 Revolution unit time AUX USINT Auxiliary function type setting 6 Disable count Sampling count setting value 1 65 535 ms SET_ TIME UINT Revolution unit time 1 65 535 ms SET_ PULS UINT ...

Страница 113: ...WORD Auxiliary function type setting 6 Disable count DONE BOOL Execution status If it completes it outputs 1 and holds If error occurs it outputs 0 Output STAT USINT Error status In case of error outputs error code b Sampling count setting Function Block type Classification Variable name Data type Contents REQ BOOL FB execution Executed when changing 0 1 Rising edge BASE USINT Base Number Base num...

Страница 114: ...SINT Base Number Base number where HSC module is equipped SLOT USINT Slot Number Slot number where HSC module is equipped Ch0 _Fxy_CH0_FREQ_MODE 21 MADDR UINT CH Ch1 _Fxy_CH0_FREQ_MODE 46 0 0 Hz 1 10 Hz 2 100 Hz Input DATA DWORD Input Freq setting 3 1000 Hz DONE BOOL Execution status If it completes it outputs 1 and holds If error occurs it outputs 0 Output STAT USINT Error status In case of error...

Страница 115: ...ere HSC module is equipped SLOT USINT Slot Number Slot number where HSC module is equipped Ch0 _Fxy_CH0_REV_UNIT 20 MADDR UINT CH Ch1 _Fxy_CH0_REV_UNIT 45 Input DATA DWORD Revolution unit time 1 65 535 ms DONE BOOL Execution status If it completes it outputs 1 and holds If error occurs it outputs 0 Output STAT USINT Error status In case of error outputs error code g Revolution unit time conversion...

Страница 116: ...mber where HSC module is equipped Ch0 _Fxy_CH0_AUX_MODE 18 MADDR UINT CH Ch1 _Fxy_CH1_AUX_MODE 43 0 Not use 1 Count clear 2 Latch count 3 Sampling count 4 Measure input freq 5 Revolution Unit time Input DATA DWORD Auxiliary function type 6 Disable count DONE BOOL Execution status If it completes it outputs 1 and holds If error occurs it outputs 0 Output STAT USINT Error status In case of error out...

Страница 117: ...647 Input CMP0_MAX CMP1_MAX DINT Sampling Comp Max setting 2 147 483 648 2 147 483 647 DONE BOOL Execution status If it completes it outputs 1 and holds If error occurs it outputs 0 Output STAT USINT Error status In case of error outputs error code 1 XGI XGR Comp function setting function block a Comp Output 0 Function Block type Classification Variable name Type Contents REQ BOOL FB execution Exe...

Страница 118: ...ion status If it completes it outputs 1 and holds If error occurs it outputs 0 Output STAT USINT Error status In case of error outputs error code c Max value of Comp Output 0 Sampling Comp Function Block type Classifica tion Variable name Data type Contents REQ BOOL FB execution Executed when changing 0 1 Rising edge BASE USINT Base Number Base number where HSC module is equipped SLOT USINT Slot N...

Страница 119: ...NE BOOL Execution status If it completes it outputs 1 and holds If error occurs it outputs 0 Output STAT USINT Error status In case of error outputs error code e Comp reference value Single Comp Min value Sampling Comp of Comp output 1 Function Block type Classifi cation Variable name Type Contents REQ BOOL FB execution Executed when changing 0 1 Rising edge BASE USINT Base Number Base number wher...

Страница 120: ...mber where HSC module is equipped Ch0 _Fxy_CH0_CP0_MAX 12 MADDR UINT CH Ch1 _Fxy_CH1_CP0_MAX 37 Input DATA DWORD Sampling Comp Max setting value 2 147 483 648 2 147 483 647 DONE BOOL Execution status If it completes it outputs 1 and holds If error occurs it outputs 0 Output STAT USINT Error status In case of error outputs error code g Conversion program of Comp reference value Single Comp Min valu...

Страница 121: ...ipped SLOT USINT Slot Number Slot number where HSC module is equipped Ch0 0 Input CH BOOL CH Ch1 1 DONE BOOL Execution status If it completes it outputs 1 and holds If error occurs it outputs 0 STAT USINT Error status In case of error outputs error code CNT DINT Current Count 2 147 483 648 2 147 483 647 LTCH_CNT DINT Count Latch 2 147 483 648 2 147 483 647 SMPL_CN T DINT Sampling Count 2 147 483 6...

Страница 122: ...If it is 1 Enable of preset DOWN_SE L BOOL Up Down count by program If it is 0 Up count If it is 1 Down count AUX_E BOOL Enable Disable of auxiliary function If it is 0 disable of auxiliary function If it is 1 enable of auxiliary function CYBW_RS T BOOL When Carry Burrow occurs it controls output status of Carry Burrow of operation information read FB If it is 0 it holds status of CY BW as 1 If it...

Страница 123: ...unction Block Conversion Program App3 16 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 ...

Страница 124: ...Appendix 3 GM Function Block Conversion Program App3 17 e External use of Enable Preset f External preset detection reset ...

Страница 125: ...le is equipped 2 Setting range 0 7 Input CH BOOL Used channel 0 CH 0 1 CH 1 DONE BOOL FB execution completion status If it completes without error it outputs 1 and holds 1 until next execution If error occurs it outputs 0 STAT USINT Error status In case of error outputs error code DOWN _FLG BOOL Count operation status 0 Now increasing count 1 Now decreasing count EXT_ PRE BOOL External preset dete...

Страница 126: ...ix 3 GM Function Block Conversion Program App3 19 2 XGI XGR Operation Information setting FB conversion Program a Count operation status b External Preset Input Detection c Carry Detection d Borrow Detection ...

Страница 127: ...Appendix 3 GM Function Block Conversion Program App3 20 e Auxiliary Function Operating ...

Страница 128: ...CH 1 CMP_ E BOOL Enable comparison 0 Disable comparison 1 Enable comparison OUT_ E BOOL Enable Comp output 0 Disable comp output 1 Enable comp output EQ0_ RST BOOL Comp agreement reset of Comp Output CMP0_OUT 0 holds agreement status of comp output 0 as 1 On 1 holds agreement status of comp output 0 as 0 Off EQ1_ RST BOOL Comp agreement reset of Comp Output CMP1_OUT 0 holds agreement status of com...

Страница 129: ...Appendix 3 GM Function Block Conversion Program App3 22 2 XGI XGR Comparison output setting Function Block conversion program XGI XGR input conversion program XGI XGR output conversion program ...

Страница 130: ...elevelofthecontemporaryscienceandtechnologywhendelivered 6 Notattributabletothecompany forinstance natural disastersor fire 3 Since the above warranty is limited to PLC unit only make sure to use the product considering the safety for system configuration or applications Environmental Policy LSIndustrialSystemsCo Ltdsupportsandobservestheenvironmental policyasbelow LS Industrial Systems considers ...

Страница 131: ...Plaza No 726 West Yan an Road Shanghai China Tel 86 21 5237 9977 LS Industrial Systems Wuxi Co Ltd China Address 102 A National High New Tech Industrial Development Area Wuxi Jiangsu China e mail Xugh lgis com cn Tel 86 510 534 6666 Fax 86 510 522 4078 LS Industrial Systems Beijing Office China Address B tower 17th Floor Beijing Global Trade Center building No 36 BeiSanHuanDong Lu DongCheng Distri...

Отзывы: