Manuel d'utilisation / d'entretien du produit 120S du fabricant LG Electronics
Aller à la page of 306
User’s Manual LG Pro g rammable Lo g ic Controlle r MASTER-K 120S series LG Industrial S y stems - When using LGIS equipment, thoroughly read this datasheet and associated manuals introduced in this datasheet. Also pay careful attention to safety and handle the module properly.
SAFETY I NSTRUCTIONS T o Prevent injury and property damage, follow these instructions. Incorrect operation due to ignoring instructions will cause harm or damage, the seriousness of which is indicated by the following symbols . ■ The meaning of each symbol in this manual and on your equipment is as follow s .
SAFETY I NSTRUCTIONS Design Precautions Install a safety circuit external to the PLC that keeps the entire syste m safe even when there are problems wit h the external power supply o r the PLC module. Otherwise, seri ous trouble could result from erroneous output or erroneous operation.
SAFETY I NSTRUCTIONS Design Precautions Inst allation Precautions Do not bunch the control wires or communication cables with the main circuit or power wires, or install them close to each other . They should be installed 100mm (3.94inch) or more from each other .
SAFETY I NSTRUCTIONS Wiring Precautions Completely turn off the exter nal power supply when inst alling o r placing wiring. Not doing so could cause electric shock or damage to the product. Make sure that all terminal covers are correctly attached.
SAFETY I NSTRUCTIONS S t artup and Maintenance Precautions Disposal Precaution Do not touch the terminals while power is on. Doing so could cause electric shock or erroneous operation. Switch all phases of the external power supply off when cleaning the module or retightening the terminal or module mounting screws.
Revision History Date Code Revision history 2002.7. 10310000380 First edition is published 2003.5. 10310000380 A revised edition is published – Main unit and expansion modules are added – Built-in function are upgraded 2003.9 10310000380 A revised edition is published.
◎ Contents ◎ Chapter 1. General 1.1 Guide to Use This Manual ················· 1 - 1 1.2 Features ······················· 1 - 2 1.3 T erminology ······················ 1 - 3 Chapter 2. System Configuration 2.
4.4 Communication I/F Module ················· 4 - 13 4.4.1 Cnet I/F Module ···························································································· 4 - 13 4.
5.9.2 Usage ········································································································ 5 - 30 5.10 External Memory Module ················· 5 - 32 5.
Chapter 8. Communication Function 8.1 Dedicated Protocol Communication ·············· 8 - 1 8.1.1 Introduction ·································································································· 8 - 1 8.
Chapter 10. Maintenance 10.1 Maintenance and Inspection ················ 10 - 1 10.2 Daily Inspection ···················· 10 - 1 10.3 Periodic Inspection ··················· 10 - 2 Chapter 1 1. T roubleshooting 1 1.
Chapter 1 General 1-1 Chapter 1. General 1.1 Guide to Use This Manual This manual includes specifications, functions and handli ng instructions for the MASTER-K120S series PLC. This manual is divided up into chapters as follows: No. Title Contents Chapter 1 General Describes configuration of this manual, unit's features and terminology.
Chapter 1 General 1-2 1.2. Features 1) MASTER-K120S series is extremely compact, to fi t a wide range of applications and have following features. (1) High speed processing High speed processing of 0.1~0.9 µ s/step with an general purpose processor included .
Chapter 1 General 1-3 1.3 Terminology The following table gives definition of terms used in this manual. Terms Definition Remarks Module A standard element that has a specified function which configures the system. Devices such as I/O board, which inserted onto the mo ther board or base unit.
Chapter 1 General 1-4 Terms Definition Remarks Sink Input Current flows from the switch to the PLC input terminal if a input signal turns on. Source Input Current flows from the PLC input terminal to the switch after a input signal turns on. Sink Output Current flows from the load to the output terminal and the PLC output turn on.
Chapter 2 System Configuration 2-1 Chapter 2. System Configuration The MASTER-K120S series has suitable to configurati on of the basic, computer link and network systems. This chapter describes the configuration and features of each system. 2.1 Overall Configuration 2.
Chapter 2 System Configuration 2-2 2.1.2 Cnet I/F system Cnet I/F System is used for communication between the main unit and external devices using RS-232C/RS-422 Interface. The MK120S has a built-in RS-232C port, RS-485 port and has also G7L-CUEB for RS-232C, G7L-CUEC for RS-422.
Chapter 2 System Configuration 2-3 (3) RS-232C Communication over a long dist ance via modem by Cnet I/F modules 2) 1:n Communications system This method can connect between one computer and multiple .
Chapter 2 System Configuration 2-4 2.2 Product Functional Model The following describes functional model of the MASTER-K120Sseries. 2.2.1 Product Functional Block Product function block for the K120S series is as follows.
Chapter 2 System Configuration 2-5 2.2.2 K120S Series System Equipment Product 1) Main Unit – Standard type Items Models I/O Point & Power Supply Built-in Function Remark K7M-DR20U 12 DC inputs(.
Chapter 2 System Configuration 2-6 3) Expansion Modules Section Items Models Description Remark G7E-DR10A • 6 DC inputs / 4 relay outputs G7E-DR20A • 12 DC inputs / 8 relay outputs G7E-DC08A • 8.
Chapter 3 General Specifications 3-1 Chapter 3. General Specifications 3.1 General Specifications The following table shows the general specif ications of the MASTER-K120S series.
Chapter 4 Names of Parts 4 -1 Chapter 4. Names of Parts 4.1 Main Unit - + RS-485 No. Name Description PWR LED Indicates status of power supply to the system y On : When the supplied power is normal y .
Chapter 4 Names of Parts 4 -2 No Name Description I/O LED Indicates operating status o f I /O Built-in RS-485 connector (Except K7M-DR10/14UE) 2-pin connector for built-in RS-485 communications.
Chapter 4 Names of Parts 4 -3 2) K7M-DRT60U 3) K7M-DT60U 4.1.2 40-points main unit (Standard) 1) K7M-DR40U.
Chapter 4 Names of Parts 4 -4 2) K7M-DRT40U 3) K7M-DT40U 4.1.3 30-points main unit (Standard) 1) K7M-DR30U.
Chapter 4 Names of Parts 4 -5 2) K7M-DRT30U 3) K7M-DT30U 4.1.4 20-points main unit (Standard) 1) K7M-DR20U.
Chapter 4 Names of Parts 4 -6 2) K7M-DRT20U 3) K7M-DT20U 4.1.5 30-points main unit (Economic) 1) K7M-DR30UE.
Chapter 4 Names of Parts 4 -7 4.1.6 20-points main unit (Economic) 1) K7M-DR20UE 4.1.7 14-points main unit (Economic) 1) K7M-DR14UE 4.1.8 10-points main unit (Economic) 1) K7M-DR10UE.
Chapter 4 Names of Parts 4 -8 4.2 Expansion I/O Module 4.2.1 20points I/O Module 1) G7E-DR20A 4.2.2 10points I/O Module 1) G7E-DR10A 1) G7E-TR10A No. Names ① Input LED ② Output LED ③ Input contact ④ Input common terminal ⑤ Output contact ⑥ Output common terminal ⑦ Expansion cable ⑧ Expansion Cable Connecting T erminal No.
Chapter 4 Names of Parts 4 -9 4.2.3 8points I/O Module 1) G7E-DC08A 2) G7E-R Y08A No. Names ① Input LED ② Input contact ③ Input common terminal ④ Expansion cable ⑤ Expansion Cable Connecting T erminal No.
Chapter 4 Names of Parts 4 -10 4.3 Special Module 4.3.1 A/D · D/A Combination Module 1) G7F-ADHA No. Names ① RUN LED ② Analog Output T erminal ③ Analog Input (V oltage/current) selecting jumper.
Chapter 4 Names of Parts 4 -11 4.3.2 D/A Conversion Module 1) G7F-DA2I No. Names ① RUN LED ② Analog Output T erminal ③ Expansion Cable ④ Expansion Cable Connecting T erminal External Power Supply T erminal (DC24V) 2) G7F-DA2V No.
Chapter 4 Names of Parts 4 -12 4.3.4 Analog timer Module No. Names ① RUN LED ② Analog Timer V olume Control Resistor ③ Expansion Cable ④ Expansion Cable Connecting T erminal 4.
Chapter 4 Names of Parts 4 -13 4.4 Communication I/F Module 4.4.1 Cnet I/F Module 1) G7L-CUEB 2) G7L-CUEC 4.4.2 Fnet I/F Module 1) G7L-FUEA No. Names ① RS-232C connector ② Communication status LED ③ Expansion cable ④ Expansion cable connecting terminal ⑤ TM/TC selecting dip switch No.
Chapter 4 Names of Parts 4 -14 4.4.3 Pnet I/F Module 1) G7L-PBEA 4.4.4 DeviceNet I/F Module 1) G7L-DBEA 4.5 Option Module Option modules are attached the expansion slot of main unit or expansion unit, and supplies optional function s such as memory expansion or real time clock.
Chapter 5 Power Supply / CPU 5-1 Chapter 5. Power Supply / CPU 5.1 Power Supply Specifications 5.1.1. Standard Type Items K7M – DR/DRT/DT20U K7M – DR/DRT/DT30U K7M – DR/DRT/DT40U K7M – DR/DRT/DT60U Rated voltage 85 ~ 264 VAC Rated frequency 50 / 60 Hz (47 ~ 63 Hz) Rated current 0.
Chapter 5 Power Supply / CPU 5-2 5.2 CPU Specifications The following table shows the general specif ications of the MASTER-K120S series 5.2.1. Standard Type Specifications Items K7M-DR/DRT/DT20U K7M-.
Chapter 5 Power Supply / CPU 5-3 (continued) Specifications Items K7M-DR/DRT/DT20U K7M-DR/DRT/DT30U K7M-DR/DRT/DT40U K7M-DR/DRT/DT60U Remarks PID control function Controlled by commands, Relay and PRC.
Chapter 5 Power Supply / CPU 5-4 5.2.2. Economic Type Specifications Items K7M-DR10UE K7M-DR14UE K7M-DR20UE K7M-DR30UE Remarks Program control method Cyclic execution of stored progr am, Time-driven i.
Chapter 5 Power Supply / CPU 5-5 (continued) Specifications Items K7M-DR10UE K7M-DR14UE K7M-DR20UE K7M-DR30UE Remarks Cnet I/F Function Dedicated protocol support MODBUS protocol support RS-232C - 1po.
Chapter 5 Power Supply / CPU 5-6 5.3 Operation Processing 5.3.1 Operation Processing Method 1) Cyclic operation A PLC program is sequentially executed from the first step to the la st step, which is called scan. This sequential processing is called cyclic ope ratio n.
Chapter 5 Power Supply / CPU 5-7 2) Interrupt operation method If a situation occurs which is requested to be urgently processed during execution of a PLC program, this opera tion method processes immediate ly the operation, which co rresponds to in terrupt program.
Chapter 5 Power Supply / CPU 5-8 5.3.3 Scan Time The processing time from a 0 step to the 0 step of next scan is called scan time. 1) Expression for scan time Scan time is the sum of the processing time of scan program that the user has written, of the task program processing time and the PLC internal processing time.
Chapter 5 Power Supply / CPU 5-9 5.3.5 Timer Processing The MASTER-K series use up count timer. There are 5 timer inst ructions such as on-delay (TON ), off-delay (TOFF), integral (TMR), monostable (TMON), and re-triggerable (TRTG) timer. The measuring range of 100msec timer is 0.
Chapter 5 Power Supply / CPU 5 - 10 3) Integral timer In general, its operation is same as on-delay timer. Only t he difference is the current value will not be clear when the input condition of TMR instruction is turned off. It keeps the e lapsed value and restart to increase when the input condition is turned on again.
Chapter 5 Power Supply / CPU 5 - 11 5) Retriggerable timer The operation of retriggerable timer is same as that of monostable timer. Only difference is that the retriggerable timer is not ignore the input condition of TRTG instruction while t he timer is operating (decreasing).
Chapter 5 Power Supply / CPU 5 - 12 5.3.6 Counter Processing The counter counts the rising edges of pulses driving its input signal and counts once only when t he input signal is switched from off to on. MASTER-K series have 4 counter instructi ons such as CTU, CTD, CTUD, and CTR.
Chapter 5 Power Supply / CPU 5 - 13 4) Ring counter -. The current value is increased with the rising edge of the counter input signal, and the counter output relay is turned on when the current value reaches the preset value. Then the current value and counter output relay is cleared as 0 when the next counter input signal is applied.
Chapter 5 Power Supply / CPU 5 - 14 5.4 Program 5.4.1 Classifications of Program All functional elements need to execute a certain control proc ess are called as a ‘program’. In MASTER-K120 series, a program is stored in the EEPROM mounted on a CPU module or fl ash memory of a external memory module.
Chapter 5 Power Supply / CPU 5 - 15 1) Scan program -. The scan program is executed regularly in every scan from 0 step to last step. -. When interrupts has occurred, CPU pauses scan program and executes corresponding interrupt program first. -. When this interrupt program finished, scan program is to resume.
Chapter 5 Power Supply / CPU 5 - 16 2) parameter setting 3) Time driven interrupt TDI occurs periodically with the constant interval assigned in par ameter setting. The interrupt routine of TDI starts with the TDINT instruction and ends with the IRET instruction.
Chapter 5 Power Supply / CPU 5 - 17 REMARK Total available interrupt points is 8(In standard type). -. Time driven interrupt + process driven in terrupt + high speed counter driven interrupt ≤ 8 points Interrupt signal is ignored when self-interrupt occurs more than 2 times during interrupt processing is executing.
Chapter 5 Power Supply / CPU 5 - 18 (4) External device malfunction The PLC user program detects m alfunctions of ex ternal devices. If a fatal error is d etected the syste m ent ers into the STOP state, and if an ordinary erro r is detected the system continues its operation.
Chapter 5 Power Supply / CPU 5 - 19 5.5 Operation Modes The CPU operates in one of the four modes - RUN, STOP, PAUSE and DEBU G mode. The followi ng describes ope ration processing in each operation mode. 5.5.1 RUN Mode In this mode, programs are normally operated.
Chapter 5 Power Supply / CPU 5 - 20 5.5.2 STOP mode In this mode, programs are not operated. 1) Processing when the operation mode is changed. The output image area is cleared and output refresh is executed. 2) Operation processing contents (1) I/O refresh is executed.
Chapter 5 Power Supply / CPU 5 - 21 3) Debug operation conditions following four operation conditions can be specified. Operation conditions Description executed by one command. When executed, Stop operation after executing one instruction executed by break-point settings.
Chapter 5 Power Supply / CPU 5 - 22 3) Mode change Remote operation Remote operation mode change is available only when the operation mode is set to the remote STOP mode (i.e., the mode setting switch position is in the STOP → PAU/REM’). Mode setting switch position Mode Change Mode change by the KGLWIN Mode change using FAM or Cnet I/F, etc.
Chapter 5 Power Supply / CPU 5 - 23 5.6 Functions 5.6.1 Self-diagnosis 1) Functions (1) The self-diagnosis function permits t he CPU module to detect its own errors. (2) Self-diagnosis is carried out when an error occurs duri ng PLC power supply is turned on or operating process.
Chapter 5 Power Supply / CPU 5 - 24 5.6.2 I/O Force On/Off function It is possible to input/output a designated data regardless of the program operation results. When used with OUTOFF instruction simultaneously, OUTOFF is prior to I/O Force On/Off. 1) Forced I/O setting method.
Chapter 5 Power Supply / CPU 5 - 25 -. When forced I/O set enables, forc ed I/O function is executing. Set ‘forced I/O data’ by bit Set ‘forced I/O data enable’ by bit Click.
Chapter 5 Power Supply / CPU 5 - 26 2) Special data register for forced I/O The contents of forced I/O setting is registered to special data register as below.
Chapter 5 Power Supply / CPU 5 - 27 5.6.3 Direct I/O Operation function This function is useful when reads an input relay’s state direct ly during execution of a program and uses in the operation, or write the operation result directly to an output relay.
Chapter 5 Power Supply / CPU 5 - 28 5.7 Memory Configuration The CPU module includes tw o types of memory th at are available by the user. One is program memory, which i s used to store the user programs written to implement a sy stem by the user. The other is data memory, which sto res data during operation.
Chapter 5 Power Supply / CPU 5 - 29 5.8 I/O Address Allocation I/O No. allocation means to give an address to each module in order to read data from input m odules and output data to output modules.
Chapter 5 Power Supply / CPU 5 - 30 5.9 Built-in Cnet Selection Switch 5.9.1 Structure You can see dip switches as shown when you open I/O terminal block cover. 5.9.2 Usage Dip switch position Description upper switch is for Cnet. Turn upper switch on to use built-in RS-232C communication Upper switch is for Cnet.
Chapter 5 Power Supply / CPU 5 - 31 Dip switch for Built-in Cnet is placed in deep place to prevent a mistaken operation caused by terminal block cover, etc.
Chapter 5 Power Supply / CPU 5 - 32 5.10 External Memory Module MK120S series supplies external memory module for the us er to save programs safely or download a program on the system and use it in case of a program is damaged. 5.10.1 Structure 5.10.2 Usage 1) Saving the user’s program on the external memory module.
Chapter 5 Power Supply / CPU 5 - 33 (6) Select Online – Flash memory – Write to external memory in menu, and the following message box will displayed. (7) Turn the power of the main unit off. (8) Remove the external memory module. Through the above steps a user can save a program into the external memory module.
Chapter 5 Power Supply / CPU 5 - 34 5.11 RTC Module MK120S series supplies RTC(Real Time Clo ck) module for the time-scheduling control. To use RTC function with K120S series, the RTC operation module should be attached to the expansion slot of main unit or expansion mo dule.
Chapter 5 Power Supply / CPU 5 - 35 (2) Read RTC data from special register Description Special register Area (Word) Upper byte Lower byte Data (BCD format) F053 Lower 2 digits of year Month H0207 F054 Day Hour H2313 F055 Minute Second H5020 F056 Higher 2 digits of year Date H2002 Example : 2002.
Chapter 6 Input and Output Specification 6-1 Chapter 6 Input and Output Specification 6.1 Input / Output Specifications Digital input that offers to MASTER-K120S series are made to us e both of electric current sink and electric current source.
Chapter 6 Input and Output Specification 6-2 R R Internal circuit COM R R Internal circuit COM C 6.2 Digital Input Specification 6.2.1 Main unit 1) Specification Main unit Model Specification K7M-DR10.
Chapter 6 Input and Output Specification 6-3 3) Input wiring Main unit’s wiring method is as follows. DC input specificati ons offered by MASTER-K120S is to be used for both electric current sink and electric current source.
Chapter 6 Input and Output Specification 6-4 4) Example of external devices. To connect with external device of DC output type into DC input module, wire depending on the type of the external device as shown.
Chapter 6 Input and Output Specification 6-5 6.2.2 Expansion Module 1) Specifications Expansion Module Model Specification G7E-DR10A G7E-DC08A G7E-DR20A Number of input points 6 points 8 points 12 points Insulation method Photo coupler Rated input voltage DC 24V Rated input current 7 mA Operating voltage range DC 20.
Chapter 6 Input and Output Specification 6-6 6.3 Digital Output Specification 6.3.1 Main unit (Relay Output) 1) Specification (1) Standard type Main Unit Model Specifications K7M-DR20U (K7M-DRT20U) K7.
Chapter 6 Input and Output Specification 6-7 (2) Economic type Main Unit Model Specifications K7M-DR10UE K7M-DR14UE K7M-DR20UE K7M-DR30UE Output point 4 points 6 points 8 points 12 points Insulation method Relay insulation Rated load voltage/current DC24V / 2A (r/load), AC220V / 2A (COS Ψ = 1)/1 point , 5A / 1COM Min.
Chapter 6 Input and Output Specification 6-8 3) Output wiring (1) Main unit DC5V DC24V AC110/220V DC24V L DC24V L L L L L L L L L L L L L L L L L L L L L L L U.
Chapter 6 Input and Output Specification 6-9 6.3.2 Main unit (TR Output : DRT/DT type only) 1) Specification Main Unit Model Specifications K7M-DRT/DT20U K7M-DRT/DT30U K7M-DRT/DT40U K7M-DRT/DT60U Outp.
Chapter 6 Input and Output Specification 6-10 2) Output wiring AC100-240 V FG COM0 P40 COM1 P41 COM2 P42 COM3 P43 P L L L L DC12V/24V.
Chapter 6 Input and Output Specification 6-11 6.3.3 Expansion Module 1) Specifications Expansion Module Model Specifications G7E-DR10A G7E-DR08A G7E-RY08A G7E-DR20A Output point 4 points 8 points Insulation method Relay insulation Rated load Voltage/current DC24V / 2A (Resistive load), AC220V / 2A (COS Ψ = 1) / 1 point 5A / 1COM Min.
Chapter 6 Input and Output Specification 6-12 Expansion Module Model Specifications G7E-TR10A Output point 10 points Insulation method Photo coupler insulation Rated load Voltage/current DC12V/24V Operating load voltage range DC10.2 ~ 26.4V Max. load current 0.
Chapter 7 Usage of Various Functions 7-1 Chapter 7. Usage of Various Functions 7.1 Built-in Functions 7.1.1 High-speed counter function This chapter describes the specification, handling, and progr amming of built-in high speed counter of MASTER-K120S.
Chapter 7 Usage of Various Functions 7-2 3) Names of wiring terminals Names Usage No. T erminal No. 1Phase 2Phase 1Phase 2Phase P 00 Ch0 Input Ch0 A Phase Input Counter input terminal A Phase Inpu.
Chapter 7 Usage of Various Functions 7-3 4) External interface circuit Signal name I/O Internal circuit Termi nal No. 1Phase 2Phase Operati on Input warranted voltage On 20.4~28.8V P00 Ch0 Input pulse Ch0 A Phase Input Off 6V or lower On 20.4~28.8V P01 Ch1 Input pulse Ch0 B Phase Input Off 6V or lower On 20.
Chapter 7 Usage of Various Functions 7-4 6) Wiring example (1) Voltage output pulse generator Pulse Generator CHSC A B COM 24V 24VG (2) Open collector output pulse generator Pulse Generator CHSC A B C.
Chapter 7 Usage of Various Functions 7-5 7) Instruction(HSCST) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S SV .
Chapter 7 Usage of Various Functions 7-6 8) Parameter Setting (1) Format setting (a) Linear counter • If HSC is designate as Linear counter, it can counts from -2,147,483,648 to 2,147,483,647. • The carry flag F18*(* is channel number) turns on when the cu rrent value of high speed counter is overflow during up counting and HSC stop counting.
Chapter 7 Usage of Various Functions 7-7 (2) Mode setting (a) 1-phase operation mode - Current value increases by 1 at the rising edge of input pulse. (b) 1-phase pulse + direction mode - Current value increases by 1 at the ri sing edge of A-Phase pulse when B-phase is ‘low’ state.
Chapter 7 Usage of Various Functions 7-8 (d) 2-phase multiplication mode (MUL4) - Up or Down is set automatically by the phase difference between A and B phase. • Up counter - At the rising edge of A-Phase pulse when B-phase is ‘low’. - At the falling edge of A-Phase pulse when B-phase is ‘high’.
Chapter 7 Usage of Various Functions 7-9 (4) Latch Counter setting If this function is enabled, Current value of high speed counter is always retained. (5) Comparison Output setting (a) Comparison set - When current value of HSC is equal to SV1, corresponding output point turns on.
Chapter 7 Usage of Various Functions 7-10 (b) Zone Comparison Set - When current value of HSC isn’t less than SV1 and more than SV2. corresponding output point turns on. - P40 ~ P47 are available for comparison output point. - If SV2 is less than SV1, SV2 setting error(h’12) occurs and zone comparison set is disabled.
Chapter 7 Usage of Various Functions 7-11 (6) RPM setting - Can calculates RPM of input pulse - RPM is stored in designated device. - The RPM is expressed as: cycle[ms] refresh rotate per .
Chapter 7 Usage of Various Functions 7-12 9) Programming example (1) Parameter setting • Channel : Ch0 • Counter format : Ring counter ( 0 ~ 100,000) • Counter mode : 2-phase multiplication mode.
Chapter 7 Usage of Various Functions 7-13 (2) Programming • When M0 turns on, HSC starts its operation • If current value is not less than 50,000, F170 turns on. • Current value is saved in D0(double word). Remark The contact point which is designated as HSC input c an’t be used for pulse catch or external interrupt.
Chapter 7 Usage of Various Functions 7-14 7.1.2. Pulse Catch Function In the main unit, 4(economic type) or 8(standard type) points of pu lse cat ch input contact points are internalized. Through usi ng this contact point, short pulse signal short can be taken which can not be executed by general digital input.
Chapter 7 Usage of Various Functions 7-15 1) Pulse catch input contact points operate as general digita l input if they are not designated as pulse catch input.
Chapter 7 Usage of Various Functions 7-16 7.1.3 Input Filter Function External input of MASTER-K120S selects input on/off del ay time from the range of 0-1000ms of KGLWIN. Credibility secured system may be established by adjustment of input correction no.
Chapter 7 Usage of Various Functions 7-17 7.1.4 External Interrupt Function MASTER-K120S Series can perform max 4(economic) or 8(standard) points of external contact interrupt by using input of main unit without special interrupt module. 1) Usage This function is useful to execute a hi gh speed execution regardless of scan time.
Chapter 7 Usage of Various Functions 7-18 5) Usage (1) Click twice the parameter on the project window of KGLWIN. (2) Designate contact point, no. of priority and movement conditi on of the task program which is moved by interrupt inputting. (3) For the details , refer to KGLWIN manual.
Chapter 7 Usage of Various Functions 7-19 7.1.5 PID control function(Standard type only) 1) Introduction This chapter will provide information about the built-in PID (P roportional Integral Derivative) function of MASTER-K120S main unit.
Chapter 7 Usage of Various Functions 7-20 2) Specification (1) Control operation (a) Proportional operation (P operation) P action means a control action that obtain a manipulate val ue which i.
Chapter 7 Usage of Various Functions 7-21 (b) Integral operation (I operation) With integral operation, the manipulate value (MV) is increased or decreased continuous ly in accordance time in order to eliminate the deviation between the SV and PV.
Chapter 7 Usage of Various Functions 7-22 Fig. 2.5 The system response when a long integration time given Fig. 7.4 The system response when a long integration time given Fig.
Chapter 7 Usage of Various Functions 7-23 The D action when a constant deviation occurred is shown as Fig. 7.6 Fig. 7.6 Derivative action with a constant deviation The expression of D action is as following; dt dE Td Kp MV × = Derivative action is used only in PID action in which P and I actions combine with D action.
Chapter 7 Usage of Various Functions 7-24 (e) Integral windup All devices to be controlled, actuator, has limitation of operat ion. The motor has speed limit, the valve can not flow over the maximum value. When the control system has wide PV range, the PV can be over the maximum output value of actuator.
Chapter 7 Usage of Various Functions 7-25 (2) Realization of PID control on the PLC In this chapter, it will described that how to get the digitized formula of the P, I, and D terms.
Chapter 7 Usage of Various Functions 7-26 (4) parameter setting and explanation (a) PID8 instruction parameter setting and explanation. Scan time Scan time is the period of reading data (sampling), and also 10 times scaled up. The range of sa mpling time is 0.
Chapter 7 Usage of Various Functions 7-27 Proportional gain The MASTER-K120S can handle only integer, not the floating point type. Therefore, to enhance the accuracy of PID operation, the PID8 instruction is designed to input the P_GAIN data as the 100 times scaled up.
Chapter 7 Usage of Various Functions 7-28 SV Ramp If a large amount of SV changes during PID operation, The deviation(E) changes rapidly. Then manipulation value(MV) is changed rapidly also. This can cause damage on load or actuator. To prevent this situation, SV can be changed step by step by parameter setting.
Chapter 7 Usage of Various Functions 7-29 (b) PID8AT instruction parameter setting and explanation. Scan time S_TIME is the period of reading data (samp ling), and 10 times scaled up for more precious operation. The range of sampling time is 0.
Chapter 7 Usage of Various Functions 7-30 Relay response method. • PID parameters are obtained by On/Off oper ation during 1 cycle of PV variation. • PID parameters are obtained by amplitude and period of oscillation • The On/Off operation will be occur at the SV value.
Chapter 7 Usage of Various Functions 7-31 5) instruction (1) PID8 Available device Flag Instruction M P K L F T C S D # D integer No. of Steps Error (F110) Zero (F111) Carry (F112) n S1 5 n Registration No. at parameter(0~7) Error (F110) Error flag turns on when designati ng area is over and the instruction isn’t exec uted.
Chapter 7 Usage of Various Functions 7-32 (2) PID8AT Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) n S1 5 n Registration No. at parameter(0~7) Error (F110) Error flag turns on when designati ng area is over and the instruction isn’t exec uted.
Chapter 7 Usage of Various Functions 7-33 6) Program Example (1) System configuration (2) In case of using PID function only KGL-WIN V3.5 above RS-232C TPR Heater Electric Oven (PV : temperature) .
Chapter 7 Usage of Various Functions 7-34 a) PID operation explanation (without A/T function) • Measure current temperature (-200~600 ° C) by RTD module then digital conversion value(0 ~ 4000) is stored to D4780 • PID8 instruction will calculate manipulate value (M V : 0 ~ 4000) based on PID parameter settings (P_GAIN, I_TIME, D_TIME, etc.
Chapter 7 Usage of Various Functions 7-35 e) Program Explanation • When the input condition M0 turns on, PID operation executes at no.0 parameter. • PID execution status registrate D0000 and the o.
Chapter 7 Usage of Various Functions 7-36 c) operation parameters • Scan time : S_TIME=5 (sampling time = 0.5 seconds) • Auto / Manual operation setting : Auto • Output limit : Max.
Chapter 7 Usage of Various Functions 7-37 f) Program Explanation • When the input condition M2 turns on, PID auto tuning operation executes at no.0 parameter.
Chapter 7 Usage of Various Functions 7-38 6) Error code list (1) PID8AT Error Code Description Corrective ac tion H0100 Scan time setting range error Set scan time to available s etting range H020.
Chapter 7 Usage of Various Functions 7-39 7 . 2 Special module The special module and allocated data registers are as followings. Item Combination module A/D Conversion module D/A Conversion modul.
Chapter 7 Usage of Various Functions 7-40 7.2.1 A/D D/A Combination module 1) Performance specification The performance specification of the analog mixture module are following .
Chapter 7 Usage of Various Functions 7-41 2) Names of parts and functions Explain about names of parts and functions (1) G7F-ADHA No Contents. RUN LED Indicate the operating status the G7F-ADHA Analog input terminal Voltage Input Current input When current input is used, short the V and I terminal.
Chapter 7 Usage of Various Functions 7-42 (2) G7F-ADHB No Contents. RUN LED Indicate the operating status the G7F-ADHB Analog input terminal Voltage Input Current input When current input is used, short the V and I terminal.
Chapter 7 Usage of Various Functions 7-43 3) Parameter setting (1) Scaling function This function convert automatically range when the inout/output range is not matched. In case that input/output is current , this function is useful that external equapment’ range is not matched each other.
Chapter 7 Usage of Various Functions 7-44 4) Wiring (1) Caution for wiring • Make sure that external input signal of the mixture module of AC and analog I/O is not affected by induction noise or occurs from the AC through using another cable.
Chapter 7 Usage of Various Functions 7-45 5) I/O converstion characteristics (1) Analog input characteristics a) Voltage input In voltage input, digital amount 0 is output by 0V input and 4,000 is output by 10V input. Therefore input 2.5mV equ als to digital amount 1, but value less than 2.
Chapter 7 Usage of Various Functions 7-46 (2) Analog output characteristics a) Voltage output Input of digital amount 0 outputs analog amount 0V, 4000 does 10V.Digital input 1 equals to 2.5mV of analog amount. b) Current output In current output, digital amount 0 exchanges to 0mA, and 4,000 does 20mA.
Chapter 7 Usage of Various Functions 7-47 6) Program example (1) Distinction program of A/D conversion value a) Program explanation - When digital value of channel 0 is less than 2000, P090 is on. - when digital value of channel 0 is more than 3000, P091 is on.
Chapter 7 Usage of Various Functions 7-48 (2) Program which controls speed of inverter by analog output voltage of 5 steps a) Program explanation -.When P80 becomes On, 2000 (5V) is output. -. When P81 becomes On, 2400 (6V) is output. -.When P82 becomes On, 2800 (7V) is output.
Chapter 7 Usage of Various Functions 7-49 7.2.2 A/D Conversion module 1) Performance specifications The performance specifications of the analog input module are following .
Chapter 7 Usage of Various Functions 7-50 2) Names of parts and functions The Names of parts and functions of the analog input module are following . No Contents RUN LED Indicate the operating status the G7F-AD2A Analog input terminal Voltage input Current input When current input is used, short the V and I terminal.
Chapter 7 Usage of Various Functions 7-51 3) Parameter setting (1) Scaling function The scaling function is the same that of A/D, D/A combination module .
Chapter 7 Usage of Various Functions 7-52 5) Analog/Digital conversion characteristics (1) Analog input characteristics a) Voltage input In voltage input, digital amount 0 is output by 0V input and 4,000 is output by 10V input. Therefore input 2.5mV equals to digital amount 1, but value less than 2.
Chapter 7 Usage of Various Functions 7-53 6) Program example (1) Distinction program of A/D conversion value(Analog input range: DC4 20 , 0~10VDC) (a) Program explanation • When digital value of channel 0 is the same or more than 2000 and the same or less than 3000, P090 is on.
Chapter 7 Usage of Various Functions 7-54 (c) Program.
Chapter 7 Usage of Various Functions 7-55 7.2.3 D/A Conversion module 1) Performance specifications The performance specifications of the analog output module are following .
Chapter 7 Usage of Various Functions 7-56 2) Names of parts and functions The Names of parts and functions of the analog input module are following .
Chapter 7 Usage of Various Functions 7-57 3) Parameter setting 1) Specify the kind of special module 2) Set Output type of each channel.
Chapter 7 Usage of Various Functions 7-58 5) Scaling function The scaling function is the same that of A/D, D/A combination module. 6) Wiring (1) Caution for wiring • Make sure that external input signal of the mixture module of AC and analog I/O is not affected by induction noise or occurs from the AC through using another cable.
Chapter 7 Usage of Various Functions 7-59 7) Digital/Analog conversion characteristics (1) G7F-DA2I a) 0~20mA output Digital amount 0 outputs analog amount 0mA, 4000 does 20mA.Digital input 1 equals to 5 of analog amount. b) 4~20mA output Digital amount 0 outputs analog amount 4mA, 4000 does 20mA.
Chapter 7 Usage of Various Functions 7-60 8) Program example (1) Program which controls speed of inverter by analog output voltage of 5 steps(0 ~ 20mA output) a) Program explanation • When P80 becomes On, 2000 (10mA) is output. • When P81 becomes On, 2400 (12mA) is output.
Chapter 7 Usage of Various Functions 7-61 7.2.4 Analog timer 1) Performance specification The performance specification of the analog timer module are following. Item Specification Number of channels 4 Output value range 8 Bit (Digital output range: 0 200) Setting type Setting by variable resistance Accuracy of timer 2.
Chapter 7 Usage of Various Functions 7-62 3) Program example (1) Program explanation Program which controls on-delay time of output c ontact point within 0 to 20 sec.
Chapter 7 Usage of Various Functions 7-63 7.2.5 RTD input module( Standard type only) 1) Performance specification The performance specification of the RTD input module are following .
Chapter 7 Usage of Various Functions 7-64 3) Parameter setting 4) Digital conversion value register Ch. Detected T emperature value Digital conversion value Data register Remark .
Chapter 7 Usage of Various Functions 7-65 6) T emperature conversion characteristics The RTD input module, as shown below, linearlizes the non-linear characteristic resistance input of the RTD 7) Digital conversion value The RTD input module, as shown below, outputs digital conv erted value of detected temperature value.
Chapter 7 Usage of Various Functions 7-66 8) Burn-out detection function The RTD input module has the function of burn- out detection on the Pt100, JPt100 or cable.
Chapter 7 Usage of Various Functions 7-67 9) Wiring (1) Caution for wiring • Make sure that external input signal of the mixture module of AC and analog I/O is not affected by induction noise or occurs from the AC through using another cable. • Wire is adopted with consideration about peripheral temperature and electric current allowanc e.
Chapter 7 Usage of Various Functions 7-68 10) Program example (1) A program for output of detected temperature value as a BCD value a) Program explanation The present A/D conversion value of t.
Chapter 7 Usage of Various Functions 7-69 7.3 Positioning Function(DRT/DT type only) The DRT/DT ty pe of MASTER-K120S series support 2 axes of pos itioning function. The purpose of positioning function is to transfer the moving objects by setting speed from the current position and stop them on the setting position correctly .
Chapter 7 Usage of Various Functions 7-70 2) Output Specification(P40, P41) Signal Name Rated load voltage Load voltage range Max. load c urrent Max . voltage drop during On DC 12/24V DC 10.2 ∼ 26.4V 100 ㎃ ≤ DC 0.3V Forward direction Reverse direction Positioning CW/Pulse CCW/Directio n 3) Names of wiring terminal No.
Chapter 7 Usage of Various Functions 7-71 4) Internal circuit and wiring example P41 – pulse output(Ch1) P - Power supply(DC 12/24V) R COM1 – Output common 1 R P40 – pulse output(Ch0) Internal c.
Chapter 7 Usage of Various Functions 7-72 7.3.2 Positioning function 1) Positioning function Positioning Control includes position control, speed control.
Chapter 7 Usage of Various Functions 7-73 (2) Speed Control (Uniform Speed Operation) • This controls the speed by the setting speed until decelerat ion stop command(POSCTR) is entered after execution by POSVEL command.
Chapter 7 Usage of Various Functions 7-74 2) Operation pattern • Operation pattern describes various configuration for how to operate the positioning data using several operation step no and how to determine the speed of position data.
Chapter 7 Usage of Various Functions 7-75 3) Operation Mode (1) End Operation A) With one time start command(rising edge of POSIST comm and), the position ing to the goal position is execut ed and the positioning shall be completed at the same time as the dwell time proceeds.
Chapter 7 Usage of Various Functions 7-76 (2) Keep Operation A) With one time Start command(POSIST), the positioning to the goal position of operation step is executed and the positioning shall be completed at the same time as dwell time proceeds and without additional start command, the positioning of operation step for (current operation step no.
Chapter 7 Usage of Various Functions 7-77 (3) Continuous Operation A) With one time Start command, the positioning for operation step set by continuous operation mode is executed to the goal position without stop and the positioning shall be completed at the same time as dwell time proceeds.
Chapter 7 Usage of Various Functions 7-78 4) Operation Method (1) Repeat Operation A) With one time start command, the positioning to the goal po sition is executed and the positioning shall be comp leted at the same time as the dwell time proceeds.
Chapter 7 Usage of Various Functions 7-79 5) Positioning start (1) Direct start(POSDST) • This is used to operate directly by setting the axis, goal position address, operation speed without parameter setting. • Refer to the ‘7.3.4 Instruction’ for details.
Chapter 7 Usage of Various Functions 7-80 7) Return to Origin(POSORG : Rising edge ↑ ) • Return to Origin (homing) is carried out to conf irm the origin of the machine when applying the power. • In case of Return to Origin, it is required to set Return to Origin parameter for each axis.
Chapter 7 Usage of Various Functions 7-81 (3) Origin Detection after Deceleration when Approximate origin turns on This is the method using the approximate origin and origin signal and the action by origin return command is as follows. (A) It accelerates to the setting origin return direction and acts by origin return high speed.
Chapter 7 Usage of Various Functions 7-82 8) JOG Operation (POSJOG : Level input) (1) JOG operation • Carries out the positioning control by Jog command(POSJOG). • Carries out the monitoring when the positioning ac ts by JOG command and the position address is changed.
Chapter 7 Usage of Various Functions 7-83 10) External Input Stroke High/Low Limit • External input stroke limit includes External input high limit signal and External input low limit signal.
Chapter 7 Usage of Various Functions 7-84 • Timing diagram 1) Unused the M Code Output 2) Use the M Code 12) Error and Output Prohibition • Error includes Light failure error and Heavy failure error. • If light failure error occurs, the positioning operation will continue and only error will occur.
Chapter 7 Usage of Various Functions 7-85 7.3.3 Positioning parameter and operation data 1) Positioning parameter • Positioning parameter setting • Parameter should be assigned for each axis (1) B.
Chapter 7 Usage of Various Functions 7-86 (B) Backlash Compensation Amount • The tolerance that the machine does not work by the wear when the rotation direction changes in case that a gear, screw etc is combined to run at the motor axle, is called as ‘Backlash”.
Chapter 7 Usage of Various Functions 7-87 (2) Origin return parameter (A) Origin return method • For the details, please refer to ‘7) Return to Origin’ in chapter 7.
Chapter 7 Usage of Various Functions 7-88 (3) JOG speed (A) JOG High Speed • JOG high speed operation has operation pattern as accelerati on, constant speed, deceleration section. Therefore, acceleration section and deceleration section is c ontrolled by JOG acceleration/deceleration time.
Chapter 7 Usage of Various Functions 7-89 (2) Coordinate • The coordinate of position data includes Absolute and Incremental (A) Absolute Coordinate (Control by Absolute method) ① This carries out the positioning control from the current position to the goal position (the goal position assig ned by positioning data).
Chapter 7 Usage of Various Functions 7-90 ( 6) Speed • Operation speed can be assigned for each operation step No. • Setting range of operation speed : 5 ~ 100,000( Setting unit: 1pps ) • The ch.
Chapter 7 Usage of Various Functions 7-91 7.3.4 Instructions 1) Positioning Indirect start(POSIST) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ n ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 5 ○ S Channel which is designated at parameter(0~1) Starting step No.
Chapter 7 Usage of Various Functions 7-92 2) JOG Operation(POSJOG) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ n1 ○ ○ ○ ○ ○ ○ ○ n2 ○ ○ ○ ○ ○ ○ ○ 7 ○ S Ch.
Chapter 7 Usage of Various Functions 7-93 3) Positioning Control Instruction(POSCTR) Available device Flag Instruction M P K L F T C S D # D integer No.
Chapter 7 Usage of Various Functions 7-94 4) Current position preset (POSPRS) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ S.
Chapter 7 Usage of Various Functions 7-95 5) PWM output (PWM) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ SV1 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ SV2 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 7 ○ S Ch.
Chapter 7 Usage of Various Functions 7-96 6) Speed control operation (POSVEL) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ n1 ○ ○ ○ ○ ○○○○ SV ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 7/9 ○ S Ch.
Chapter 7 Usage of Various Functions 7-97 7) Speed override (POSSOR) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ SV ○ ○ ○ ○ ○○○ ○ ○ ○ 5/7 ○ S Ch.
Chapter 7 Usage of Various Functions 7-98 8) Positioning direct start(POSDST) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ n1 ○ ○ ○ ○ ○○○○ SV1 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ SV2 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 9/11/13 ○ S Ch.
Chapter 7 Usage of Various Functions 7-99 9) Return to origin(POSORG) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ n1 ○ SV ○ 7 ○ S Ch.
Chapter 7 Usage of Various Functions 7-100 7.3.5 Flag list and Error codes 1) Flag list Device Function Description F0280 Operating flag Operation status of Ch0 (0: stop, 1:Busy) F0281 Error status Er.
Chapter 7 Usage of Various Functions 7-101 Device Function Description F0310 Position control Position control operation of Ch1 F0311 Speed control Speed control operation of Ch1 F0312 Return to origi.
Chapter 7 Usage of Various Functions 7-102 2) Error code Error code Condition Operation Corrective action H10 Acceleration time of basic parameter is out of range Stop Set Acceleration time within 0~1.
Chapter 7 Usage of Various Functions 7-103 Error code Condition Operation Corrective action H44 POSSOR command can’t be ex ecuted during decelerating Operating Check if positioning is in the decelerating section when POSSOR signal occur.
Chapter 7 Usage of Various Functions 7-104 7.3.6 Wiring with servo and steppi ng motor driver (Open Collector) 1) Wiring with stepping motor driver(DC 5V) 2) Wiring with stepping motor driver (DC 24V) Remark 1 ) In case of VEXTA RK series, TIMMING output turns on when a motor rotates at every 7.
Chapter 7 Usage of Various Functions 7-105 3) Wiring with servo motor driver(MR-J2/J2S- □ A) Remark 1) The rated input for the origin of K120S is DC 24V. 2) Input points for origin, approximate origin point, and upper/l ower limit signal are fixed but, if they’re not used you able to use them general input point.
Chapter 7 Usage of Various Functions 7-106 4) Wiring with Servo motor driver(FDA-5000 AC Servo Driver) Remark 1) The rated input for the origin of K120S is DC 24V. Li nedriver output, wire a DC SSR and return to origin by DOG signal or using a origin sensor of original signal.
Chapter 8 Communication Functions 8-1 Chapter 8. Communication Functions 8.1 Dedicated Protocol Communication 8.1.1 Introduction MASTER-K120S’s built-in Cnet communication uses only MASTER-K120S main unit for a dedicated communication.
Chapter 8 Communication Functions 8-2 8.1.2 System configuration method According to the method of connection, the system using MASTER-K120S built-in communication can be composed.
Chapter 8 Communication Functions 8-3 (2) 1:1 connection with a monitoring device like PMU PMU MASTER-K120S main unit Pin No. Pin assignment and direction Pin no.
Chapter 8 Communication Functions 8-4 . (3) 1:1 connection with other MASTER-K120S MASTER-K120S main unit MASTER-K120S main unit Pin no. Pin assignment and direction Pin no.
Chapter 8 Communication Functions 8-5 8.1.3 Frame Structure 1) Base Format (1) Request frame(external communication device → MASTER-K120S main unit), (Max.
Chapter 8 Communication Functions 8-6 Remark 1) The numerical data of all frames are ASCII codes equal to hexadecimal value, if there’s no clear statement.
Chapter 8 Communication Functions 8-7 8.1.4 List of commands Command Main command Command type Classification Items Code ASCII code Code ASCII code Treatment Individual r(R) H72 (H52) SS 5353 Reads data from device of Bit, Byte, Word type. Readin g device Continuous r(R) H72 (H52) SB 5342 Reads device Word in block unit.
Chapter 8 Communication Functions 8-8 8.1.5 Data type It’s possible to read and write device in built-in communi cation. When device is used, be aware of data type.
Chapter 8 Communication Functions 8-9 8.1.6 Execution of commands 1) Individual reading of device(R(r)SS) (1) Introduction This is a function that reads PLC device specif ied in accord with memory data type. Separate device memory can be read up to 16 at a time.
Chapter 8 Communication Functions 8-10 (3) Response format (ACK response) Format name Header Station No. Command Command type Number of blocks Number of data data Tail Frame check Ex. of frame ACK H20 R(r) SS H01 H02 HA9F3 ...... ETX BCC ASCII value H06 H3230 H52(72) H5353 H3031 H3032 H41394633 H04 1 block(max.
Chapter 8 Communication Functions 8-11 (4) Response format (NAK response) Format name Header Station No. Command Command type Error code (Hex 2 Byte) Tail Frame check Ex.
Chapter 8 Communication Functions 8-12 ③ For NAK response after execution of command(PC ← MASTER-K120S main Unit) Format name Header Station No. Command Command type Error code Tail Frame check Ex.
Chapter 8 Communication Functions 8-13 (3) MASTER-K120S Main unit response format (MASTER-K120S of ACK response) Format name Header Station No. Command Command type Number of blocks Number of data data Tail Frame check Ex.
Chapter 8 Communication Functions 8-14 (4) Response format (NAK response) Format name Header Station No. Command Command type Error code (Hex 2 Byte) Tail Frame check Ex.
Chapter 8 Communication Functions 8-15 3) Individual writing of device(W(w)SS) (1) Introduction This is a function that writes the PLC device memory directly specified in accord with memory data type. (2) PC request format Format name Header Station No.
Chapter 8 Communication Functions 8-16 (3) Response format (ACK response) Format name Header Station No. Command Command type Tail Frame check Frame (Example) ACK H20 W(w) SS ETX BCC ASCII value H06 H.
Chapter 8 Communication Functions 8-17 (5) Example This example supposes that "HFF" is written in M230 of station No. 1 and BCC value is checked.
Chapter 8 Communication Functions 8-18 4) Continuous writing of device(W(w)SB) (1) Introduction This is a function that directly specifies PLC device memory and continuously writes data from specified address as much a s specified length. (2) Request format Format name Header Station No.
Chapter 8 Communication Functions 8-19 (3) Response Format (ACK response) Format name Header Station No. Command Command type Tail Frame check Frame (Example) ACK H10 W(w) SB ETX BCC ASCII value H06 H.
Chapter 8 Communication Functions 8-20 (5) Example This example supposes that 2 byte H’AA15 is written in D000 of station No. 1 and BCC value is checked.
Chapter 8 Communication Functions 8-21 5) Monitor register(X##) (1) Introduction Monitor register can separately register up to 10 in combination with actual variable reading com mand, and carries out the registered one through monitor command after registration.
Chapter 8 Communication Functions 8-22 (3) Response Format (ACK response) Format name Header Station No. Command Registration No. Tail Frame check Frame (Example) ACK H10 X(x) H09 ETX BCC ASCII value .
Chapter 8 Communication Functions 8-23 (5) Example This example supposes that device M000 of station NO. 1 is monitor registered. ① Computer request Format (PC → MASTER-K120S main unit) Registration Format Format name Header Station No. Command Registration No.
Chapter 8 Communication Functions 8-24 6) Monitor execution(Y##) (1) Introduction This is a function that carries out the reading of the variable registered by monitor register. Th is also specifies a registere d number and carries out reading of the variable registered by the number.
Chapter 8 Communication Functions 8-25 (4) Response Format (NAK response) Format name Header Station No. Command Registration No. Error code (Hex 2Byte) Tail Frame check Frame (Example) NAK H10 Y(y) H.
Chapter 8 Communication Functions 8-26 7) Reading PLC Status(RST) (1) Introduction This is a function that reads flag list including operating status of PLC and error information.
Chapter 8 Communication Functions 8-27 (4) Response Format ( NAK response) Format name Header Station No. Command Command type Error code (Hex 2 Byte) Tail Frame check Frame (Example) NAK H0A R(r) ST .
Chapter 8 Communication Functions 8-28 8.1.7 1:1, 1:n Built-in comm unication between MASTER-K120S's 1) Introduction 1:1 built-in communication between MASTER-K120S's is that which constitutes a built-in communication system with the method of 1(master) : 1(slave).
Chapter 8 Communication Functions 8-29 2) Parameter setting (1) Communication Parameter Setting • Open a new project file from KGLWIN - MASTER-K120S must be selected as PLC type. • After selecting communication parameter from KG LWIN and clicking twice, this window comes up.
Chapter 8 Communication Functions 8-30 • Set according to the following table Item Contents Station No. Sets one of station from 0 to 31. Baud rate Sets one of 1200, 2400, 4800, 9600, 19200, 38400, .
Chapter 8 Communication Functions 8-31 • Click the ‘List’ button to open the registration list window. • Total 64 data blocks can be assigned. But it's not possible to set a register number. • Sending and receiving data size can be set up to 60 Words.
Chapter 8 Communication Functions 8-32 3) Flag related with operating status (1) Sending/receiving error count fo r each station (total 32 stations) Error code is saved following area according to sta.
Chapter 8 Communication Functions 8-33 • Error bit b 7 b 6 b 5 b 4 b 3 b 2 b 1 b 0 (4) Status flag of the master PLC Status Information of master PLC is saved in D4448 b15 b3 b2 b1 b0 - - - - - - - .
Chapter 8 Communication Functions 8-34 4) Example • Device M000 is increased by program per 1 second. • Writing M000 to output area P004 of slave • Reading slave’s output area P004 • Writing it to master’s output area P009 The following example uses the above diagram to explain the operation of MASTER-K120S main unit.
Chapter 8 Communication Functions 8-35 ④ Set parameters as the following table. Communication Method Protocol and mode Comm- unication Station no. Baud rate Data bit Parity bit Stop bit Communicatio.
Chapter 8 Communication Functions 8-36 ⑧ The registration list ‘0’ registered in the registrati on list can be confirmed through a window like the following. ⑨ Double click the No. 1 for receive parameter setting and Se t parameters like the following table and click ‘OK’ button.
Chapter 8 Communication Functions 8-37 (2) Program (2) Parameter setting for slave station. ① Set parameters as the following table. Communication Method Protocol and mode Commu- nication Station no.
Chapter 8 Communication Functions 8-38 8.1.8 Error code Error code Error type Error condition and causes Treatment H0001 PLC system error Interface with PLC is impossible. Off/On the power H0011 Data error Errors occurred when exchanging ASCII data to numbers.
Chapter 8 Communication Functions 8-39 8.2 User Defined Protocol Communication 8.2.1 Introduction User Defined Protocol Communication allows users who do communication between MASTER-K120S main unit and other kind of device to define the other company’s protocol at MASTER-K PLC.
Chapter 8 Communication Functions 8-40 2) Setting frame (1) Click “List” button to activate the following window. (2) Select one of 1 ∼ 15 in frame list to open the following window.
Chapter 8 Communication Functions 8-41 Example 1) [NUL] , [ENQ] , [1] , [A] : Possible Example 2) NUL, ENQ , [12] , [ABC] : impossible - It is allowed to be only 3 consecutive characters.
Chapter 8 Communication Functions 8-42 Item Contents It is a radio button to select the input type of commands. There’re 2 kinds as hex or ASCII value.
Chapter 8 Communication Functions 8-43 • BCC setting: set BCC when it is needed. I t e m Contents Data Type ASCII adds 2 bytes BCC value in ASCII type to frame. Hex adds 1 byte BCC value in Hex type to frame. For the detailed setting BCC, refer to 8.
Chapter 8 Communication Functions 8-44 • Frame size - ASCII communication : max. 128 bytes - Hex communication : max. 256 bytes • Link relay (L) - It’s a flag to indicate whether a user defined frame is received in the order set by the user.
Chapter 8 Communication Functions 8-45 The last transmitting frame BCC Type setting The kinds of Input segment The value of sum check ASCII Type Hex Type ASCII Input 31 + 32 +33 +34 +04 = CE 05 31 32 33 34 04 43 41 05 31 32 33 34 04 CE Hex Input 12 + 34 +04 = 4A 05 12 34 04 34 41 05 12 34 04 4A (2) SUM 1 , XOR 1 or MUL 1 setting.
Chapter 8 Communication Functions 8-46 ④ Complement setting : Complement calculation as below example> 1’s and 2’s Complements of D3 b i t 7 b i t 0 1 1 0 1 0 0 1 1 b i t 7 b i t 0 0 0 1 0 1 .
Chapter 8 Communication Functions 8-47 8.2.3 Instruction 1) User defined communication instruction(SNDCOM) Available Device Flag Instruction M P K L F T C S D # D integer No.
Chapter 8 Communication Functions 8-48 3) Error code Code Error type explanation 06 Slave Device Busy It’s sending or waiting to receive 09 Parameter Error Communication parameter setting error, Link enable setting error 10 Frame Type Error Frame does not setting or frame does not ‘sending’ 8.
Chapter 8 Communication Functions 8-49 ③ Double click the number ‘0’ ④ Designate the header, segment, send/receive , tail as below and then click the BCC Setting.
Chapter 8 Communication Functions 8-50 ⑤ Designate BCC Setting as below and Click the OK button, then you can see the frame list window which is designated.
Chapter 8 Communication Functions 8-51 ⑥ Double click the number 1 frame ⑦ BCC Setting method is same frame 0. ⑧ After the frame setting and BCC setting completes, click the OK button. ⑨ You can see the frame list window which is designated as below.
Chapter 8 Communication Functions 8-52 ⑧ Program • When the data is received at frame no. 1, link relay L001 turns on during 1 scan. At that moment, M000 increases and the value of M000 moves output relay P004.
Chapter 8 Communication Functions 8-53 ③ Double click the frame list number ‘0’ ④ Click the BCC Setting after set the header , segment , tail as below.
Chapter 8 Communication Functions 8-54 ⑤ Click the OK button after BCC setting as below. Then you can see the frame list which is designated..
Chapter 8 Communication Functions 8-55 ⑥ Set the frame number ‘1’ as below and click the BCC Setting ⑦ BCC Setting method is same as master station.
Chapter 8 Communication Functions 8-56 ⑧ After the frame setting and BCC setting completes, click the OK button. ⑨ You can see the frame list window which is designated as below ⑩ Program • When the data is received at frame no. 0, link relay L000 turns on during 1 scan .
Chapter 8 Communication Functions 8-57 8.3 Modbus Protocol Communication 8.3.1 Introduction MASTER-K120S built-in communication supports Modbus, the Modicon product’s communication protocol. It supp orts ASCII mode, using ASCII data and RTU mode using Hex data.
Chapter 8 Communication Functions 8-58 3) Address area (1) Setting range is available from 1 to 247, but MASTER-K120S supports from 0 to 31. (2) Address 0 is used for broadcast address. Broadcast address is all slave device recognize and respond to like the self- address, which can't be supported by MASTER-K120S.
Chapter 8 Communication Functions 8-59 7) Function code types and memory mapping Code Function code name Modicon PLC Data address Remark 01 Read Coil Status 0XXXX(bit-output) Read bits 02 Read Input S.
Chapter 8 Communication Functions 8-60 10) Map of wiring MASTER- K120S main unit Quantum (9PIN) Pin no. Connecting no. and direction Pin no. Signal 1 1 CD 2 2 RXD 3 3 TXD 4 4 DTR 5 5 SG 6 6 DSR 7 7 RTS 8 8 CTS 9 9 • Use RS-485 connector when using channel 2.
Chapter 8 Communication Functions 8-61 (3) Set the contents as follows. Item Setting contents Station No. Set a number between 0 to 31 (Don’t assign no. 0 as broadcasting station lest it may be a cause for mistaken operation) Baud Rate Set one from 1200, 2400, 4800, 9600, 19200, 38400, or 57600 bps.
Chapter 8 Communication Functions 8-62 8.3.4 Instruction and example 1) MODBUS communication instruction(MODCOM) Available device Flag Instruction M P K L F T C S D # D integer No.
Chapter 8 Communication Functions 8-63 • S3 format is as below. b i t 1 5 b i t 8 b i t 1 b i t 0 • NDR : when the communication ends normally, this bit turns on during 1 scan. • Error bit : when communication error occurs, this bit turns on dur ing 1 scan.
Chapter 8 Communication Functions 8-64 2) Example program 1 It’s supposed that MASTER-K120S main unit is the master and it reads Coil Status of the station no. 17, a Modicon product. The master reads status of the Coil 00020 ~ 00056 of the slave station no.
Chapter 8 Communication Functions 8-65 3) Example program 2 It’s supposed that MASTER-K120S main unit is the master and it reads Coil Status of the station no. 17, a Modicon product. The master reads status of the input contact 10197 ~ 10218 of the slave station no.
Chapter 8 Communication Functions 8-66 4) Example program 3 The master writes data D1000 ~ D1003 to contact 40000 of the slave station no. 10. ① : It designates slave station and function code ( No .
Chapter 8 Communication Functions 8-67 8.4 No Protocol Communication 8.4.1 Introduction No protocol communication is useful when communication between MASTER-K120S main unit and other kind of devices with user defined protocol is impossible.
Chapter 8 Communication Functions 8-68 • Receiving format can be designated as below. Upper byte(hex) Lower byte(hex) H00(Receiving by Length of frame) H03 (R eceives when length of frame data is 3).
Chapter 8 Communication Functions 8-69 8.4.3 Instructions 1) No protocol receive(DRCV) Available Device Flag Instruction M P K L F T C S D # D Integer No.
Chapter 8 Communication Functions 8-70 1) No protocol send(DSND) Available Device Flag Instruction M P K L F T C S D # D Integer No. of step Error (F1 10) Zero ( F 111 ) Carry (F1 12) Ch ○ n ○ ○.
Chapter 8 Communication Functions 8-71 8.4.4 Examples Assume that a electrical weighing machine sends dat a which has unfixed size continuously. MASTER-K120S can communicates with it using no protocol. For no protocol communication, one of following ending condition is designated.
Chapter 8 Communication Functions 8-72 1) Communication Parameter Setting • Open a new project file from KGLWIN - K120S must be selected as PLC type. • After selecting communication parameter from KG LWIN and clicking twice, this window comes up. • Designate baud rate, data bit, parity bit, stop bit, and protocol.
Chapter 8 Communication Functions 8-73 8.5 Remote connection and communication I/F module 8.5.1 Remote connection MASTER-K120S series can connect to other PLC by built -in Cnet interface or communication I/F modules.
Chapter 8 Communication Functions 8-74 • Open a new project file from KGLWIN • After selecting menu-project-option, click ‘connection option’ • Click ‘Remote 1’ in depth of connection -. Type : Select GLOFA Cnet. -. Base : Select ‘0’.
Chapter 8 Communication Functions 8-75 • Dedicated modem and dial-up modem are both available and Set connection option of KGLWIN as below. 3) Remote connection by Fnet I/F module • Remote connect.
Chapter 8 Communication Functions 8-76 8.5.2 Communication I/F module MASTER-K120S series supports various kinds of communication I/F module. In this time, Built-In Cnet in main unit must be set to .
Chapter 8 Communication Functions 8-77 Wiring Example : RS-485 I/F 3) Usage of G7L-FUEA/RUEA G7L-FUEA and G7L-RUEA are Field Bus Interface module of LGIS and they support High speed link communication service by parameter setting.
Chapter 8 Communication Functions 8-78 • Clicking List button then this window comes up. • Designate self-station No. and set link items after double clicking entry list • For the details, refer.
Chapter 9 Installation and Wiring 9-1 Chapter 9. Installation and wiring 9.1 Installation 9.1.1 Installation Environment This unit has high reliability regardless of its installati on environment, but be sure to check the following for system rel iability.
Chapter 9 Installation and Wiring 9-2 4 ) Power consumption block diagram of PLC systems 5) Power consumption of each part (1) Power consumption of a power supply part Approximately 65% of the power supply module current is c onverted into power 35% of that 65% dissipated as heat, i.
Chapter 9 Installation and Wiring 9-3 (6) Power consumption of the special module • W S = I 5V X 5 + I 24V X 24 (W) (7 ) The sum of the above values is the power consumption of the entire PLC system.
Chapter 9 Installation and Wiring 9-4 (6) Wiring • Wiring I/O wires with high voltage cable or power supply line can cause malfunction or disorder. • Be sure that any wire does not pass across during input LED(I/O status will not be clearly identified).
Chapter 9 Installation and Wiring 9-5 (4) Mount the wire duct as it is needed. If the clearances are less than those in Fig below, follow the instructions shown below • If the wire duct is mounted on the upper part of the PLC, make the wiring duct clearance 50 or less for good ventilation.
Chapter 9 Installation and Wiring 9-6 9.1.3 Connection of expansion module The following explains the Connection of expansion modules to the main unit. (1) Open the connector cover of the main unit. (2) Insert the connector of the expansion module to the connector of the base unit.
Chapter 9 Installation and Wiring 9-7 9.2 Wiring The followings explains the wiring instructions for use of the system. 9.2.1 Power Supply Wiring (1) When voltage fluctuations are larger than the s pecified value, connect a constant-voltage transformer .
Chapter 9 Installation and Wiring 9-8 (7) As a measure against very large surge(e.g. due to lightening),connect a surge absorber as shown below. (8) Use a insulating transformer or noise filter for protection against noise. (9) Twist every input power supply wires as closely as possible.
Chapter 9 Installation and Wiring 9-9 9.2.3 Grounding (1) This PLC has sufficient protection against noise, so it can be used without grounding except for special much noise. Howeve r, when grounding it should be done conforming to below items . (2) Ground the PLC as independently as possible.
Chapter 10 Maintenance 10-1 Chapter 10 Maintenance Be sure to perform daily and periodic maintenance and inspection in order to maintain the PLC in the best conditions. 10.1 Maintenance and Inspection The I/O module mainly consist of semiconductor devices and its se rvice life is semi-permanent.
Chapter 10 Maintenance 10-2 10.3 Periodic Inspection Check the following items once or twice every si x months, and perform the needed corrective actions. Check Items Checking Methods Judgment Corrective Actions Ambient temperature 0 ~ 55 ° C Ambient Humidity 5 ~ 95%RH Ambient Environment Ambience -.
Chapter 11 Troubleshooting 11-1 Chapter 11 Troubleshooting The following explains contents, diagnosis and corrective actions for various errors that can occur during system operation. 11.1 Basic Procedures of Troubleshooting System reliability not only depends on reliable equipment but also on short downtimes in the event of faults.
Chapter 11 Troubleshooting 11-2 11.2.1 Troubleshooting flowchart used when the POWER LED turns OFF. The following flowchart explains correctiv e action procedure used when the power is supplied or the power led turns off during operation.
Chapter 11 Troubleshooting 11-3 11.2.2 Troubleshooting flowchart used when the ERR LED is flickering The following flowchart explains corrective action procedure use when the power is suppli ed starts or the ERR LED is flickering during operation. Though warning error appears, PLC system doesn’t stop but corre ctive action is needed promptly.
Chapter 11 Troubleshooting 11-4 11.2.3 Troubleshooting flowchart used when the RUN LED turns off. The following flowchart explains corrective action procedure to treat the lights-out of RUN LED when the power is supplied, operation starts or operation is in the process.
Chapter 11 Troubleshooting 11-5 11.2.4 Troubleshooting flowchart used when the I/O part doesn’t operate normally. The following flowchart explains corrective action pr ocedure used when the I/O module doesn’t operate normally. When the I/O module doesn’t work normally.
Chapter 11 Troubleshooting 11-6 Continue A re the indicator LED of the switch 1 and 2 on? No Check the status of the switch 1and 2 Yes Is input wiring correct? Separate the external wiring witch then .
Chapter 11 Troubleshooting 11-7 11.2.5 Troubleshooting flowchart used when a program cannot be written to the CPU part The following flowchart shows the corrective action procedure used when a program cannot be written to the PLC module. Program cannot be written to the PC CPU Yes Switch to the remote S TOP mode and execute the program write.
Chapter 11 Troubleshooting 11-8 11.3 Troubleshooting Questionnaire When problems have been met during operation of the MASTER-K120S series, please write down this Questionnaires and contact the service center via telephone or facsimile.
Chapter 11 Troubleshooting 11-9 ~ 11.4 Troubleshooting Examples Possible troubles with various circuits and their corrective actions are explained. 11.4.1 Input circuit troubl es and corrective actions The followings describe possible troubles with i nput circuits, as well as corrective actions.
Chapter 11 Troubleshooting 11-10 11.4.2 Output circuit troubles and corrective actions The following describes possible troubles with input circuits, as well as their corrective actions. Condition Cause Corrective Ac tion When the output is off, excessive voltage is applied to the load.
Chapter 11 Troubleshooting 11-11 Output circuit troubles and corrective actions (continued). Condition Cause Corrective actions The load off response time is long. y Over current at off state [The large solenoid current fluidic load (L/R is large) such as is directly driven with the transistor output.
Chapter 11 Troubleshooting 11-1 2 11.5 Error code list Error Code Message CPU state Message Cause Corrective Actions 0001h Internal system error Stop Sy stem Error Fault of s ome area of operating ROM, or H/W defect Contact the s ervice center. 0002h OS ROM error Stop OS ROM Error Internal system ROM is defected Contac t the service center.
Chapter 11 Troubleshooting 11-1 3 (continued) Error Code Error CPU state Message Cause Corrective Actions 0026h FMM 3 Parameter Error Stop FMM 3 PARA Error FMM 3 Parameter Error Correct the parameter. 0030h Operation Error Stop Operation Error • A digit of other than 0 to 9 has met during BCD conversion.
Appendix 1 System Definitions App1-1 Appendix 1. System Definitions 1) Option (1) Connect Option You should set the communication port (COM1 ∼ 4) to communicate with PLC. • Select the Project-Option-Connection Option in menu. • Default Connection is RS-232C interface.
Appendix 1 System Definitions App1-2 (2) Editor option • Monitor display type - Select the desired type in the monitor display type(4 types). • Source File Directory : - You can set directories for the files to be created in KGLWIN. - In Source Directory, KGLWIN saves sour ce program files of program, parameter etc.
Appendix 1 System Definitions App1-3 (3) Page setup You can select print option when the project print out .(margin, cover, footer).
Appendix 1 System Definitions App1-4 2) Basic Parameters The basic parameters are necessary for operation of the PLC. Set the ‘Latch area’, ‘Timer boundary’’ , ‘Watchdog ti mer’, ‘PLC operation mode’, ‘Input setting’, ‘Pulse catch’ (1) Latch area setting Set the retain area on the inner device.
Appendix 2 Flag List App2-1 Appendix 2. Flag List 1) Special relay (F) This flag is useful to edit user program. Relay Function Description F0000 RUN mode Turns on when the CPU in the RUN mode.
Appendix 2 Flag List App2-2 (Continued) Relay Function Description F0040 to F005F I/O error When the reserved I/O module (set by the parameter) dif fers from the real loaded I/O module or a I/O module has been mounted or dismounted, the corresponding bit turns on.
Appendix 2 Flag List App2-3 (Continued) Relay Function Description F190 to F193 Borrow flag for HSC Turn on when borrow is occurred on the HSC current value F200 to F20F Unit ID F0210 to F021F HSC err.
Appendix 2 Flag List App2-4 3) Data relay (D) When communication function is used, its status are stored in D register , and they can be monitored. And If correspond communication function is unused, these fl ags can be used as general data register .
Appendix 2 Flag List App2-5 (2) When communication mode is dedicated master mode (Channel 0) Relay Function Relay Function D4400 Communication Error Code of station 0 and1 D4432 Mode and Error of Slav.
Appendix 2 Flag List App2-6 (3) When communication mode is dedicated master mode (Channel 1) Relay Function Relay Function D4300 Communication Error Code of station 0 and1 D4332 Mode and Error of Slav.
Appendix 2 Flag List App2-7 (4) D register for Forced I/O setting I/O Forced I/O designation register Forced I/O data register P000 D4700 D4800 P001 D4701 D4801 P002 D4702 D4802 P003 D4703 D4803 P004 .
Appendix 2 Flag List App2-8 (5) System error history(when RTC module is attached) Rela y Descr iption D4900 Error pointer D4901 Year, Month D4902 Day, Time D4903 Minute, Second D4904 Error code (6) Cl.
Appendix 3 External Dimensions App3-1 Appendix 3 External Dimensions (unit: mm) 1) Main unit 2) Extension module (1) Standard type Model A B K7M-DR10/14UE 85 95 K7M-DR20/30UE K7M-DR(T)20/30U 135 145 K.
Appendix 3 External Dimensions App3-2 (2) Slim type(G7E-DC08A,G7E-RY 08A,G7F-ADHB,G7F-DA2V,G7F-RD2A).
Un point important après l'achat de l'appareil (ou même avant l'achat) est de lire le manuel d'utilisation. Nous devons le faire pour quelques raisons simples:
Si vous n'avez pas encore acheté LG Electronics 120S c'est un bon moment pour vous familiariser avec les données de base sur le produit. Consulter d'abord les pages initiales du manuel d'utilisation, que vous trouverez ci-dessus. Vous devriez y trouver les données techniques les plus importants du LG Electronics 120S - de cette manière, vous pouvez vérifier si l'équipement répond à vos besoins. Explorant les pages suivantes du manuel d'utilisation LG Electronics 120S, vous apprendrez toutes les caractéristiques du produit et des informations sur son fonctionnement. Les informations sur le LG Electronics 120S va certainement vous aider à prendre une décision concernant l'achat.
Dans une situation où vous avez déjà le LG Electronics 120S, mais vous avez pas encore lu le manuel d'utilisation, vous devez le faire pour les raisons décrites ci-dessus,. Vous saurez alors si vous avez correctement utilisé les fonctions disponibles, et si vous avez commis des erreurs qui peuvent réduire la durée de vie du LG Electronics 120S.
Cependant, l'un des rôles les plus importants pour l'utilisateur joués par les manuels d'utilisateur est d'aider à résoudre les problèmes concernant le LG Electronics 120S. Presque toujours, vous y trouverez Troubleshooting, soit les pannes et les défaillances les plus fréquentes de l'apparei LG Electronics 120S ainsi que les instructions sur la façon de les résoudre. Même si vous ne parvenez pas à résoudre le problème, le manuel d‘utilisation va vous montrer le chemin d'une nouvelle procédure – le contact avec le centre de service à la clientèle ou le service le plus proche.