LG G3F-HSCA User Manual Download Page 46

Chapter 5.  GM PROGRAMMING

5 - 1

Chapter 5.  GM PROGRAMMING

 

5.1   Programming Examples

       If not especially noted, this section explains programming examples in reference with the G4F – HSCA

that is loaded onto the system given below

     
       

 

System configuration

 

GM4-

PA2A

GM4-

CPUA

G4I-

D22A

G4F-

HSCA

G4Q-

TR2A

Summary of Contents for G3F-HSCA

Page 1: ...User s Manual LG Programmable Logic Controller GLOFA MASTER K LG Industrial Systems G3F HSCA G4F HSCA G6F HSCA ...

Page 2: ...l injury or considerable loss of property CAUTION If not properly observed it can cause a hazard situation to result in severe or slight injury or a loss of property CAUTION CAUTION Design Precautions Design a safety circuit in the outside of the PLC for system safety in case of disorder of the external power or PLC module body Otherwise it can cause injury due to wrong output or malfunction CAUTI...

Page 3: ...le It can cause a fire disorder or malfunction WARNING Test Run and Maintenance Precautions Do not contact the terminals while the power is applied It can cause malfunction When cleaning or driving a termi nal screw perform them after the power has been turned off Do not perform works while the power is applied which can cause disorder or malfunction CAUTION Do not separate the module from the pri...

Page 4: ...ndicators 2 6 2 3 3 DIP Switch Setting Part 2 7 2 3 4 Input Output Terminal Block 2 8 2 4 Interface with External Devices 2 10 2 5 Output Mode of Encoder 2 12 2 6 Function Descriptions 2 13 2 6 1 Operation Modes 2 13 2 6 2 Comparision Signal Output 2 15 2 6 3 Home Signal 2 17 2 6 4 Carry Signal 2 18 2 6 5 Borrow Signal 2 18 Chapter 3 INSTALLATION AND WIRING 3 1 Installation 3 1 3 1 1 Installation ...

Page 5: ...erating information HSCR1WR 4 8 4 3 4 Reading the value of the operating status HSCR1RD 4 9 4 4 Error code on the function block 4 10 Chapter 5 GM PROGRAMMING 5 1 Programming Examples 5 1 5 1 1 Enabling the counter operation 5 2 5 1 2 Preset 5 3 5 1 3 Setting the comparison value 5 4 5 1 4 Setting the magnitude comparison values 5 5 5 1 5 Reading the current count value 5 6 5 1 6 Enabling the exte...

Page 6: ...ting Out Data 7 7 7 2 4 Reading Current Count Value 7 8 7 2 5 Enable Output 7 8 7 2 6 Enabling Home Latch 7 9 7 2 7 Coincidence Reset 7 10 7 2 8 Carry Borrow Reset 7 10 7 3 Application Examples 7 11 7 3 1 Program for moving the cart 7 11 7 3 2 Program for Control of the Constant Angle rotation of the Turntable 7 16 Chapter 8 TROUBLESHOOTING 8 1 Troubleshooting 8 1 8 1 1 The LED status of High Spee...

Page 7: ...Chapter 9 DIMENSIONS 9 1 Dimensions 9 1 ...

Page 8: ...e MASTER K200S 300S 1000S series The G3F HSCA is used for GM1 2 3 series and K1000S series and the G4F HSCA for GM4 series and K300S series the G6F HSCA for GM6 series and K200S series The G3F HSCA the G4F HSCA and the G6F HSCA consist of 24bit counting part which performs in crement or decrement count an external input part a comparison part which compares the set value specified by the user with...

Page 9: ... noise 1 500 V Electrostatic discharge Voltage 4kV contact discharge IEC 61131 2 IEC 1000 4 2 Radiated electromagnetic field 27 500 MHz 10 V m IEC 61131 2 IEC 1000 4 3 Severity Level All power modules Digital I Os Ue 24 V Digital I Os Ue 24 V Analog I Os communication I Os 7 Noise immunity Fast transient burst noise Voltage 2 kV 1 kV 0 25 kV IEC 61131 2 IEC 1000 4 4 8 Operating atmosphere Free fro...

Page 10: ...e B or Phase Z Signal level 5 12 24 VDC 7 13mA Counter input signal Signal type Voltage input Counting range 0 to 16 777 215 24 Bits Binary Counting speed Maximum 50 kHz Limit switch input 24 VDC 1 phase input Set by program or Phase B is set Setting Increment Decrement 2 phase input Set by difference of phase automatically Type Out 1 Out 2 One among and is selected External output Signal type Tra...

Page 11: ...ess Off guarantee voltage 24 VDC 2 5 V or less 2 2 3 Limit Switch L S Input Specifications Item Specifications Input voltage 24 VDC On guarantee voltage 19 VDC or more Off guarantee voltage 6 VDC or less On Delay Time 1 5 ms or less Off Delay Time 2 ms or less 2 2 4 Transistor Output Specifications Item Specifications Rated output 24 VDC 200 mA Leakage current 50 μ A or less Saturated voltage 1 3V...

Page 12: ...S 2 4 2 3 Names of Parts and Functions 2 3 1 Names of Parts and Functions The names of parts and functions of the high speed counter module are shown as below Dip switch Setting part LED Indicators Input output terminal block ...

Page 13: ...put terminal block Dip switch setting part K3F HSCA L S OUT2 PRESET OUT1 READY ΦA ΦB ΦZ 24V 12V 5V COM ΦA 24V ΦB ΦZ 24V 0V 24V 0V OUT1 OUT2 0V L S PRE SET 24V 12V 5V COM 24V 12V 5V COM K3F HSCA LED Indicators Input output Connector 3 G6F G6F HSCA G6F HSCA ...

Page 14: ...e A input terminal Phase B pulse input LED Turns on when voltage is applied to phase B input terminal Phase Z pulse input LED Turns on when voltage is applied to phase B input terminal Limit switch input LED Turns on when voltage is applied to limit switch input terminal OUT1 output LED Indicate the magnitude comparison result of CMP 1 OUT2 output LED Indicate the magnitude comparison result of CM...

Page 15: ... HSCA G6F HSCA Status Descriptions On Specifies the 2 phase pulse operation mode SW 1 SW 5 SW 1 Off Specifies the 1 phase pulse operation mode On Specifies the phase B pulse input mode as increment decrement count method at 1 phase pulse inputs SW 2 SW 6 SW 2 Off Specifies the program input mode as increment decrement count method at 1 phase pulse inputs On On Specifies as multiplicate 1 On Off Sp...

Page 16: ...Chapter 2 SPECIFICATION S 2 8 ...

Page 17: ...wn above The G4F HSCA input output terminal s configuration is also same as above Phase B pulse Input Terminal One of 24V 12V and 5V is selected Phase A pulse Input Terminal One of 24V 12V and 5V is selected Comparison Output Terminal Transistor Open Collector Output External Power Input Terminal 24VDC Phase Z pulse Input Terminal One of 24V 12V and 5V is selected Limit Switch Input Terminal 24VDC...

Page 18: ...Z L S PRE 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 20 21 22 19 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 Phase B pulse Input Terminal One of 24V 12V and 5V is selected Phase A pulse Input Terminal One of 24V 12V and 5V is selected Comparison Output Terminal Transistor Open Collector Output External Power Input Terminal 24VDC Phase Z pulse Input Terminal One of 24V 12V and 5V is selected Lim...

Page 19: ...5 25 24 V Phase B pulse input Off 2 5 V On 11 13 2 V 6 26 12 V Phase B pulse input Off 1 5 V On 4 5 5 5 V 7 27 5 V Phase B pulse input Off 0 8 V or less 8 28 COM On 14 26 4 V 9 29 24 V Phase Z pulse input Off 2 5 V On 11 13 2 V 10 30 12 V Phase Z pulse input Off 1 5 V On 4 5 5 5 V 11 31 5 V Phase Z pulse input Off 0 8 V or less Input 12 32 COM On 19 26 4 V 13 33 L S input 24 V Off 6 V or less Inpu...

Page 20: ... V On 11 13 2 V 6 12 V Phase B pulse input Off 1 5 V On 4 5 5 5 V 7 5 V Phase B pulse input Off 0 8 V or less 8 COM On 14 26 4 V 9 24 V Phase Z pulse input Off 2 5 V On 11 13 2 V 10 12 V Phase Z pulse input Off 1 5 V On 4 5 5 5 V 11 5 V Phase Z pulse input Off 0 8 V or less Input 12 COM On 19 26 4 V 13 L S input 24 V Off 6 V or less 14 L S COM On 19 26 4 V 15 Preset input 24V Off 6 V or less Input...

Page 21: ...Chapter 2 SPECIFICATION S 2 13 37 External power supply output 24 V 19 External power supply COM 0 V Input voltage 10 2 30 V Table 2 2 External interface list G6F HSCA ...

Page 22: ...Chapter 2 SPECIFICATION S 2 14 2 5 Output Mode of Encoder Open collector output Voltage output 24V phase A B or Z pulse input 24 V phase A B or Z pulse input High speed counter 0V High speed counter ...

Page 23: ...se A and B pulsed 2 6 1 Operation Modes 1 1 phase Operation Mode Increment Decrement Count by Program When Phase A pulse input rises the counter performs increment or decrement count by decrement counter specification signal If the decrement counter specification signal is low the counter performs increment count and if high it performs decrement count 2 1 phase Operation Mode Increment Decrement ...

Page 24: ...se Operation Mode Multiplicate 2 When Phase A pulse input leads Phase B the counter performs increment count when phase B pulse input leads phase A it performs decrement count If Phase B pulse input is low when Phase A pulse input rises or it is high when phase A pulse input falls the counter performs increment count If Phase B pulse input is high when Phase A pulse input rises or it is low when p...

Page 25: ...arison value There are two outputs in the comparison output and they can be used separately The magnitude comparison mode can be set as shown in the below table Comparison mode Settings 0 No magnitude comparison is performed 1 Current value Setting value 2 Current value Setting value 3 Current value Setting value 4 Current value Setting value 5 Current value Setting value 6 Current value Setting v...

Page 26: ...et to Current Value Setting Value 2 Example When the Comparison Mode Is Set to Current Value Setting Value Current value Setting value Signal LED status Output Enable signal External output Current value Setting value Signal LED status Output Enable signal External output ...

Page 27: ...ut enable signal is turned ON 2 6 3 Home Signal Home signal is operated only when the HOME LATCH enable signal is turned on Home signal turns on when both of phase Z pulse input and limit switch input is turned on The count value retains 0 until the HOME LATCH enable signal turns OFF though the counter continuos its counting operation Current value Setting value LED status Coincidence signal Coinc...

Page 28: ...the carry signal will be cleared 2 6 5 Borrow Signal The borrow signal appears when the counter value changes from 0 to 16 777 215 during decrement counting The borrow signal retains its ON State until the borrow reset signal turns on If the home signal is input the borrow signal will be cleared The borrow reset signal is used together with the carry reset signal Current value Carry signal Carry R...

Page 29: ...Chapter 2 SPECIFICATION S 2 21 ...

Page 30: ...es outside the range of 0 55 2 Installing and Wiring During wiring or other work do not allow any wire scraps to enter into it Install it on locations that are convenient for operation Make sure that it is not located near high voltage equipment on the same panel Make sure that the distance from the walls of duct and external equipment be 50 mm or more Be sure to be grounded to locations that have...

Page 31: ...WIRING 3 2 3 3 Wiring Example 3 3 1 5VDC Voltage Output Type Encoder 820Ω 820Ω 820Ω 270Ω G3F HSCA G4F HSCA G6F HSCA Encoder External Power Shield Cable Shield Cable Shield Cable External Power External Power L S Switch Input 24V ...

Page 32: ...ase 1 5K 1W B Phase 1 5K 1W Encoder External Power Supply DC 24V 0V 0V 24V 24V 24V OUT OUT 1 2K 1 4W 330 1 4W 1 2K 1 4W 330 1 4W 820 1 4W 820 1 4W 1 1 Z Phase 1 5K 1W 1 2K 1 4W 330 1 4W 820 1 4W 1 24V OUT E E E 24V 12V 5V COM 24V 12V 5V COM 24V 12V 5V COM Shield Cable Shield Cable Shield Cable Shield Shield Shield ...

Page 33: ...G3F HSCA G4F HSCA G6F HSCA Encoder External Power Supply DC 24V 0V 0V 24V OUT OUT 0V 0V 1 2K 1 4W 330 1 4W 1 2K 1 4W 330 1 4W 820 1 4W 820 1 4W 1 1 Z Phase 1 5K 1W 1 2K 1 4W 330 1 4W 820 1 4W 1 OUT 0V E E E 24V 12V 5V COM 24V 12V 5V COM 24V 12V 5V COM Shield Cable Shield Cable Shield Cable Shield Shield Shield ...

Page 34: ...ct G3F HSCA G4F HSCA G6F HSCA No Local Remote Local Remote Local Remote Function 1 HSC_PRE HSCR1PRE HSC_PRE HSCR0PRE HSC_PRE HSCR6APR Preset value setting 2 HSC_CMP HSCR1CMP HSC_CMP HSCR0CMP HSC_CMP HSCR6ACP Compare value setting 3 HSC_WR HSCR1WR HSC_WR HSCR0WR HSC_WR HSCR6AWR Operation information writing 4 HSC_RD HSCR1RD HSC_RD HSCR0RD HSC_RD HSCR6ARD Operation status value reading 4 1 Insertion...

Page 35: ...NCTION BLOCK 4 2 4 2 1 The specification of the preset value HSC_PRE Specifying preset Initial value for the applicable channel of the High Speed Counter Module Function block Descriptions 4 2 Local Function Block ...

Page 36: ...etting 0 16 777 215 OUTPUT DONE Turns on when the function block has finished without error The On state is kept until next request However turns off if error occurs during execution of the function block STAT Indicates the error that occurs during execution of the function block 1 G3F HSCA only applicable 4 2 2 The specification of the comparison value HSC_CMP Specifies the reference value which ...

Page 37: ...nnel No 0 1 CMPD Specifies the Setting value 0 16 777 215 CMP1 Specifies the comparison method for the first Setting value 0 7 CMP2 Specifies the comparison method for the second Setting value 0 7 Magnitude comparison method specification OUTPUT DONE Turns on when the function block has finished without No Symbo l Contents OUT1 LED OUT2 LED 0 Not compare OFF OFF 1 CNT CMPD ON ON 2 CNT CMPD ON ON 3...

Page 38: ... Specifies coincidence reset enable disable 0 disable 1 enable DOWN Specifies the increment decrement 0 increment 1 decrement CT_E Specifies counting enable disable 0 disable 1 enable PRE_I E Specifies external preset input usable 0 external preset input disable 1 external preset input usable OUTPUT DONE Turns on when the function block has finished without error The On state is kept until next re...

Page 39: ...the run channel No 0 1 OUTPUT DONE Turns on when the function block has finished without error The On state is kept until next request However turns off if error occurs during execution of the function block STAT Indicates the error that occurs during execution of the function block CNT Current count value read from the High Speed Counter Module 0 16 777 215 OUT1 OUT1 status 0 Off 1 On OUT2 OUT2 s...

Page 40: ... G3L RBEA G4L RBOA G4L BBEA mounted on the remote I O station BASE Location No of the base unit where the High Speed Counter Module is loaded GM1 0 31 GM2 0 7 GM3 4 0 3 GM6 0 SLOT Location No of the slot in the base unit where the High Speed Counter Module is loaded 0 7 CH Specifies operating channel No 0 1 PSET Specifies preset value 0 16 777 215 OUTPUT NDR Turns on when the function block has fi...

Page 41: ...d GM1 0 31 GM2 0 7 GM3 4 0 3 GM6 0 SLOT Location No of the slot in the base unit where the High Speed Counter Module is loaded 0 7 CH Specifies operating channel No 0 1 CMPD Specifies the Setting value 0 16 777 215 CMP1 Specifies the comparison method for the first Setting value 0 7 CMP2 Specifies the comparison method for the second Setting value 0 7 Magnitude comparison method specification OUTP...

Page 42: ...9 4 3 3 Writing the operating information HSCR1WR Specifies the control information of the operating status for the corresponding channel of the High Speed Counter Module mounted on the remote station Function block Descriptions ...

Page 43: ...cifies the increment decrement 0 increment 1 decrement CT_E Specifies counting enable disable 0 disable 1 enable PRE_I E Specifies external preset input usable 0 external preset input disable 1 external preset input usable OUTPUT NDR Turns on when the function block has finished without error Turns off at next scan ERR Turns on when an error occurs during execution of the function block STAT Indic...

Page 44: ...base unit where the High Speed Counter Module is loaded 0 7 CH Specifies operating channel No 0 1 OUTPUT NDR Turns on when the function block has finished without error Turns off at next scan ERR Turns on when an error occurs during execution of the function block STAT Indicates the error that occurs during execution of the function block CNT Current count value read from the High Speed Counter Mo...

Page 45: ...odule Contact the service station 8 The high speed counter module s shared memory error Contact the service station 9 Local The available channels are not specified Make a correct specification of the available channel on the initialization function block 128 H W error of the communication module for remote See the manual for the remote communication module 129 The base location number is exceedin...

Page 46: ...PROGRAMMING 5 1 Programming Examples If not especially noted this section explains programming examples in reference with the G4F HSCA that is loaded onto the system given below System configuration GM4 PA2A GM4 CPUA G4I D22A G4F HSCA G4Q TR2A ...

Page 47: ...Chapter 5 GM PROGRAMMING 5 2 5 1 1 Enabling the count operation 1 Counting is only possible when the COUNTER_EN is turned on Timing Diagram ...

Page 48: ...Chapter 5 GM PROGRAMMING 5 3 5 1 2 Preset The function block HSC_PRE will be processed for one scan Timing diagram ...

Page 49: ...Chapter 5 GM PROGRAMMING 5 4 5 1 3 Setting the comparison value 1 The function block HSC_CMP will be processed for one scan Timing Diagram ...

Page 50: ...Chapter 5 GM PROGRAMMING 5 5 5 1 4 Setting the magnitude comparison values 1 The function block HSC_CMP will be processed for one scan Timing Diagram ...

Page 51: ...Chapter 5 GM PROGRAMMING 5 6 5 1 5 Reading the current count value 1 The current count value CNT is read only when the COUNTER_EN is turned on Timing Diagram External input Signal OA ...

Page 52: ...Chapter 5 GM PROGRAMMING 5 7 5 1 6 Enabling the external output Timing Diagram Output disable Output disable Output enable ...

Page 53: ...Chapter 5 GM PROGRAMMING 5 8 5 1 7 Coincidence reset 1 This occurs only when the comparison values 1 and 2 are set to or and the current count value CNT equal to the comparison value CMPD Timing Diagram ...

Page 54: ... 5 9 5 1 8 Carry Borrow reset 1 Carry Borrow signal occurs when the Current count value changes from 16 777 215 to 0 or from 0 to 16 777 215 Timing diagram External input Signal OA Timing diagram Output disable Timing Diagram ...

Page 55: ...tch enable signal is used to set the current count value to 0 when the mechanical reference point has been reached Timing diagram Current Counter value 0 Moving object Mot or Encod er H i g h s p e e d C o u n t i n g Terminal block L S signal L S signal Phase Z signal ...

Page 56: ...NO G4L RBEA Station No 3 BASE The number of the base unit where the G4F HSCA is loaded 1 SLOT The number of the slot where the G4F HSCA is loaded 2 o GM4 PA2A o Program When I0 0 0 is turned on one processing make the PRESET_V set to 100 When I0 0 1 is turned on one processing make the CMP_V set to 500 1 1 3 0 2 CMP_V 4 GM4 CPU A G4I D22A G4L FUEA G4Q TR4A GM4 PA2A G4L RBEA G4Q TR2A G4I D22A G4F H...

Page 57: ...communication module Timing Diagram 1 several scan R_PRESET finished processing signal 1 scan ON R_READ finished processing signal Severa l scan When I0 0 0 2 is turned on write is executed every normal communication complete cycle NDR When I0 0 0 3 is turned on read is executed every normal communication complete cycle NDR Severa l scan Severa l scan Severa l scan Severa l scan 1 1 ...

Page 58: ... Start position First stop Position 1000pulse First work Second stop Position 1800pulse Second work Output Forward rotation Reverse rotation Inverter Motor BCD DIGITAL display 4 1 Start command First work complete signal Second work complete signal GM4 CPU Module DC Input Module 16 Point TR Output Module 32 Point High speed counting module Encoder ...

Page 59: ... Signal Allocation I0 0 0 Start Command I0 0 1 1st Work Complete Signal I0 0 2 2nd Work Complete Signal Q0 1 0 Motor forward rotation signal On forward rotation Off Stop Q0 1 1 Motor reverse rotation Signal On Backward rotation Off Stop Q0 1 16 Q0 1 31 Indicates the current count value BCD of the High speed counting module 1 100 Difference between stop position and speed reducing position is an in...

Page 60: ... GM PROGRAMMING 5 15 Operation Timing Used Variable List Start command I0 0 0 First work complete signal I0 0 1 OUT1 Motor forward rotation Q0 1 0 Second work complete signal I0 0 2 Motor reverse rotation Q0 1 1 ...

Page 61: ...ps reverse rotation of the motor when speed reducing position is over passed If start command turns on PRESET_DATA 0 CMP1 4 CMP_DATA 900 COUNT_ENABLE ON The motor starts forward When the first work has been finished CMP_DATA 1700 and the motor starts forward rotation When the second work has been finished CMP_DATA 100 and ...

Page 62: ...en first or second works or start command have been finished CMP_DATA will be changed Write read are executed whenever COUNT_ENABLE ON The High Speed Counter Module outputs the current count value CUR_VALUE on the BCD digital display ...

Page 63: ...PU P L C H S C Phase A Phase B Phase Z Terminal Block Carry Borrow Reset Signal Coincidence Reset Signal Home Latch Signal Output Enable Signal Increment Decrement Count Specification Signal Counter Operation Enable Signal Counter Set Signal Counter Preset Signal Data Format Error Borrow Signal Carry Signal Increment Decrement Count Home Input OUT 2 OUT 1 Buffer Memory data send receive by PUT GET...

Page 64: ...F HSCA PLC CPU Phase A Phase B Phase Z Terminal Block Carry Borrow Reset Signal Coincidence Reset Signal Home Latch Signal Output Enable Signal Increment Decrement Count Specification Signal Counter Operation Enable Signal Counter Set Signal Counter Preset Signal Data Format Error Borrow Signal Carry Signal Increment Decrement Count Home Input OUT 2 OUT 1 Buffer Memory data send receive by PUT GET...

Page 65: ...UT 2 P N 2 Home Input Signal P N 3 Increment Decrement Count Signal 1 Up 0 Down P N 4 Carry Signal P N 5 Borrow Signal P N 6 Data Format Error P N 7 Unused Channel 0 P N 8 OUT 1 P N 9 OUT 2 P N A Home Input Signal P N B Increment Decrement Count Signal 1 Up 0 Down P N C Carry Signal P N D Borrow Signal P N E Data Format Error P N F Unused Channel 1 N means the I O word number of the High Speed Cou...

Page 66: ...al P N 1 4 Output enable signal P N 1 5 Home Latch enable signal P N 1 6 Coincidence rest signal P N 1 7 Carry Borrow Reset Signal Channel 0 P N 1 8 Counter Preset Signal P N 1 9 Counter Set Signal P N 1 A Counter operation enable signal P N 1 B Increment decrement count specification signal P N 1 C Output enable signal P N 1 D Home Latch enable signal P N 1 E Coincidence rest signal P N 1 F Carry...

Page 67: ...N 5 Borrow Signal P N 6 Data Format Error P N 7 Unused Input Signals PLC HSC P N 8 Counter Preset Signal P N 9 Counter Set Signal P N A Counter operation enable signal P N B Increment decrement count specification signal P N C Output enable signal P N D Home Latch enable signal P N E Coincidence rest signal P N F Carry Borrow Reset Signal Output Signals PLC à HSC N means the I O word number of the...

Page 68: ...performed in present and turns Off if decrement counting is being performed Carry Signal If the current count value is 16 777 215 and increments by one pulse the current value becomes 0 and the carry signal turns On Borrow Signal If the current count value is 0 and decrements by one pulse the current value becomes 16 777 215 and the borrow signal turns On Data Format Error If a value of Preset Set...

Page 69: ...uts Decrement count will be proceeded if this signal is turned On Increment count if Off See 5 of section 4 2 Output enable signal Turn this signal On to allow the terminal block or external connector output signals OUT1 and OUT2 to be outputed Home Latch enable signal If this signal is turned On and phase Z and L S inputs turns On then the Home input signal turns On and the current value will be ...

Page 70: ...nfiguration 6 3 1 Buffer memory configuration G3F HSCA Buffer Memory G4F HSCA G6F HSCA Buffer Memory Preset Value Lower Preset Value Upper Set Value Lower Set Value Upper Out Data Current Value Lower Current Value Preset Value Lower Preset Value Upper Set Value Lower Set Value Upper Out Data Current Value Lower Current Value 0000 0001 0002 0003 0004 0005 0006 Address Decimal 0010 0011 0012 0013 00...

Page 71: ...e the input signal P N 6 turns On ⓒ For the channel 1 the upper address is 0011 and the lower address 0010 If the preset value exceeds the setting range the input signal P N E turns On ⓓ If a preset value exceeds the setting range the ERR LED flickers with 0 5 sec cycle 2 Set Value Addresses 2 and 3 ⓐ Used to store the set value which will be compared with the current count value ⓑ The set value s...

Page 72: ...Bit 9 On If current count value set value OUT2 will be turned On output enable Bit 10 On If current count value set value OUT2 will be turned On output enable Bits 0 1 and 2 can be used in combination Example Bits 1 and 2 On If current count value set value OUT1 will be turned On output enable Bits 0 and 1 On If current count value set value OUT1 will be turned On output enable Bits 0 and 2 On If ...

Page 73: ...Chapter 6 BUFFER MEMORY AND I O SIGNAL CONFIGURATON 6 11 ⓐ If the counter operation enable signal turns On the current count value to pulse inputs will be stored to these addresses ...

Page 74: ... it changes into h00000000 and occurs a Carry During decrement counting if the current count value is h00000000 and next pulse input has been received it changes into h00FFFFFF and occurs a Borrow ⓒ If a Carry occurs the P N 4 will turn On for the CH0 and the P N C for the CH1 If a Borrow occurs the P N 5 will turn On for the CH0 and the P N D for the CH1 ⓓ In relation to the channel 1 the address...

Page 75: ...s On GETP Table 7 1 The difference between GET and GETP Format Fig 7 1 Read Instruction GET Fig 7 2 Method for Obtaining n1 GET n1 n2 D n3 Content Number of the slot where the special module is loaded Head address of the Buffer Memory where the data is stored No of the head word of the CPU memory area where the read data is stored Number of words of the read data 1 50 Usable memory area Integer In...

Page 76: ... of the main base and the 6 word data from address 6 of the Buffer Memory are read to the D1 to D6 Fig 7 3 16 Bit Data Read Example CPU High Speed Counter Module Buffer Memory Register address Read D15 Data Data 5 Current count value of CH0 D16 Data Data 6 GET 8 5 D0015 2 Execution Condition GETP 8 5 D0015 2 D M0008 Execution Condition CPU High Speed Counter Module D1 Data 1 Data 1 10 D2 Data 2 GE...

Page 77: ...tion condition is in the On state PUT Executed when the execution condition turns On PUTP Table 7 3 The Difference between PUT and PUTP Format Fig 7 4 Write Instruction PUT P U T n1 n2 S n3 Content Number of the slot where the special module is loaded Head address of the Buffer Memory where the data is stored Integer or No of the head word of the CPU memory area where the write data is stored Numb...

Page 78: ...to the addresses 2 and 3 of the Buffer Memory Example 3 l Integer Write When the High Speed Counter Module is mounted on the slot 5 of the main base and H0402 is written to the address 4 of the Buffer Memory Fig 7 5 Write Example PUT 5 0 D0090 1 Execution Condition Data Data Write Data Register D90 CPU High Speed Counter Module Address 0 CH0 Preset Value PUT 5 2 D0051 2 Execution Condition Data Lo...

Page 79: ...ue GM3 PA2A P00 P01 P03 P05 P02 P04 I O Word No Writing the preset value 0000 to the Buffer Memory Preset is executed 1 Pulse On Writing the preset value 100 to the Buffer Memory Preset is executed 1 Pulse On Lower Upper Lower Upper Preset Execution condition CH0 Preset Execution condition CH1 DMOVP DMOVP 0 D0100 CH0 Counter Preset Signal CH1 Counter Preset Signal Address 0 Address 1 PUTP PUTP K7P...

Page 80: ...00 PUTP 2 0 D200 External Preset Condition External Preset Condition Buffer Memory Value External Connector Preset Signal Pin No 15 Counter present Value 0 100 0 100 100 100 If external Preset condition turn On writing 100 to the Buffer Memory address 0 If external connector Preset signal Pin No 15 is inputed ...

Page 81: ...ison is performed 1 Pulse On Set Value Execution condition CH0 Set Value Execution condition CH1 Writing out data to the Buffer Memory so that output is enabled for OUT1 when matched and for OUT2 when matches Writing out data to the Buffer Memory so that output is enabled for OUT1 when matched and for OUT2 when matches Out Data Execution condition CH0 CH1 Counter Set Signal CH0 Counter Set Signal ...

Page 82: ...hen the counter operation enable signal is On The current count value will be read to the D0215 Lower and D0216 Upper Counting proceeds only when the counter operation enable signal is On Counter Operation Enable signal Counter Operation Enable signal Command for reading the current count value CH0 Command for reading the current count value CH1 Output enable Command CH0 Output enables signal for ...

Page 83: ...point has been reached Timing Chart Moving object L S signal Terminal block High speed counting module Motor Encoder Home Latch Enable command CH0 Home Latch Enable command CH1 Home Latch Enable signal for the CH0 Home Latch Enable signal for the CH1 L S signal Home input signal Home Latch Enable signal Phase Z signal Current Count Value 0 zero Phase Z signal ...

Page 84: ...urrent count value into 400 Preset Home Latch enables signal condition Home input signal for the CH0 Coincidence reset command for the CH0 Coincidence reset command for the CH1 Carry Borrow Reset command CH0 Carry Borrow Reset command CH1 Coincidence reset signal for the CH0 Coincidence reset signal for the CH1 Carry Borrow reset signal for the CH0 Carry Borrow reset signal for the CH1 P047 P04F ...

Page 85: ... High Speed Counter Module 32 points Start position First stop position 1000 pulse First work Cart Forward rotation Reverse rotation Second stop position 1800 pulse Second work Motor Encoder P0010 P0011 Inverter Forward rotation Reverse rotation Output P0020 P002F P0000 P0001 P0002 Start command First work complete signal Second work complete signal BCD DIGITAL display 4x1 GM3 PA2A K7P 30AS G3I D2...

Page 86: ...k complete signal turns On the motor return the cart to the start position I nput Output Signal Allocation P0000 Start Command P0001 1st Work Complete Signal P0002 2nd Work Complete Signal P0010 Motor forward rotation signal On Forward rotation Off Stop P0011 Motor reverse rotation Signal On Revese rotation Off Stop P0020 P002F Indicates the current count value BCD of the High Speed Counter Module...

Page 87: ...ng position Speed reducing position D pulse Motor Forward rotation Motor reverse rotation Speed reducing position First stop position Second stop position Operation timing Diagram Start command P0000 First work complete signal P0001 OUT1 P0030 Motor forward Rotation P0010 Second work complete signal P0002 Motor reverse Rotation P0011 Start position Operation pattern ...

Page 88: ...he speed reducing position for the first stop Setting value 900 Set signal complementary output Out1 Operation Enable signal On Motor forward rotation signal Setting the speed reducing position for the second stop Setting value 1700 Set signal complementary output Motor forward rotation signal Setting the speed reducing position for stop at the start position Setting value 100 Set signal complemen...

Page 89: ...Chapter 7 MK PROGRAMMING 7 15 Set signal is set to On Reading the current count value Output the current count value as a BCD value ...

Page 90: ...CA High speed counter Module 16 points G4Q TR2A TR output Module 16 points Drill Turntable Motor Encoder 1000 pulse rotation Change speed device High speed Low speed Stop Output BCD digital display for setting the rotation angle 4x1 OUT1 is an output terminal of the High Speed Counter Module Start switch Drilling work complete signal switch GM4 PA2A K4P 15AS G4I D22A G4I D22A G4F HSCA G4Q TR2A ...

Page 91: ...tions has finished six drilling works all processing will be finished Operation Format Program Speed High speed Low speed Stop Preset value 0 Conversion of the rotation angle 60 from BCD type to BIN type 360 1 rotation 1000pulse 60 x x 60 1000 360 D0003 166 Preset signal complementary junction Set value 166 Set signal OUT1 set to High speed counter module operation enable signal On Terminal block ...

Page 92: ...ated 60 with low speed it will be stopped by the coincidence signal of OUT1 Setting the Preset value to 0 to change the current count value into 0 Preset signal complementary contact Coincidence reset signal turns On After the drilling work has been repeated six times the processing complete signal C000 turns On High speed operation turns On Preset signal turns On complete signal switch Process co...

Page 93: ...g 8 1 1 The LED status of High Speed Counter Module 8 1 2 The counting status of High Speed Counter Module 8 1 3 The output status of High Speed Counter Module PWR LED is turned off ERR LED is turned on ERR LED is flickering See Section No changes of count value Changes of count value do not conform to the operation status See Section See Section Output operations do not execute Output operations ...

Page 94: ...HW Fault Check the power supply module and replace it Is ERR LED on Is normal other modules onto their slots HW Fault HW fault of the other modules loaded onto their slots Is the ERR LED flickering Is data formatting signal on No changes of ERR Check the initial values setting values and out data and correct the program HW Fault HW Fault Yes No No Yes Yes No No Yes Yes No No Yes ...

Page 95: ... Correct after checking external wiring HW Fault Is turned the counter operation enable signal On Correct program to turn on the count operation enables signal Is input output signal allocation Correct program as normal in output signal Is 2 Phase operating mode Phase B LED flickering Is Slot No correctly set Correct program to set correct Slot No Entered any foreign material when handling Remove ...

Page 96: ...learance given between heavy current equipment and counter input line Are count values the same by providing the same count inputs to Ch0 and Ch1 Does the frequency of the input wave exceed 50 Kpps HW Fault No Yes No Check the input waveform with an oscilloscope Re check the pulse input Set the DIP switch correctly conforming to input conditions Use a shielded twisted wire for counter input wiring...

Page 97: ...ring Correct the program so that the set value is set only when the value is changed Correct the program to set the output enable signal ON No No No No Yes Yes Yes Yes HW Fault Correct the program for proper output data Correct the program for proper I O signals Correct the program for proper channels Is output wiring normal Is OUT1 and OUT2 LEDs correctly operating Is the set value set every scan...

Page 98: ...chdog timer error Cycle 100 ms flickering 50 ms on 50 ms off Contact a service station Common RAM error Cycle 200 ms flickering 100 ms on 100 ms off Contact a service station Data format error Cycle 500 ms flickering 250 ms on 250 ms off The data set is outside the range Correct the data ...

Page 99: ...Chapter 9 DIMENSIONS 9 1 Chapter 9 DIEMENSIONS 9 1 Dimensions Unit mm 1 G3F HSCA G3F HSCA G3F HSCA POWER ERROR L I M I Unit mm ...

Page 100: ...Chapter 9 DIMENSIONS 9 2 Unit mm 2 G4F HSCA G4F HSCA POWER ERROR ...

Page 101: ...MENSIONS 9 3 3 G6F HSCA K3F HSCA L S OUT2 PRESET OUT1 READY ΦA ΦB ΦC 24V 12V 5V COM ΦA 24V ΦB ΦZ 24V 0V 24V 0V OUT1 OUT2 0V L S PRE SET 24V 12V 5V COM 24V 12V 5V COM 110 35 38 90 K3F HSCA G6F HSCA G6F HSCA Unit mm ...

Reviews: