Manual LG Electronics 120S

306 pages 5.59 mb
Download

Go to site of 306

Summary
  • LG Electronics 120S - page 1

    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. - Keep this datasheet within easy reach for quick reference ...

  • LG Electronics 120S - page 2

    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 . W ARNING CAUTION This s y mbol indic ...

  • LG Electronics 120S - page 3

    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. - Outside the PLC, construct mechanical damage preventing ...

  • LG Electronics 120S - page 4

    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 . Not doing so could result in noise that would cause erroneous operation.  Use ...

  • LG Electronics 120S - page 5

    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. Not attaching the terminal cover could result in electric shock.  Be sure that wiring is d ...

  • LG Electronics 120S - page 6

    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. Not doing so could result ...

  • LG Electronics 120S - page 7

    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. - Main units are added - Built-in functions are upgraded. ...

  • LG Electronics 120S - page 8

    ◎ 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.1 Overall Configuration ··················· 2 - 1 2.1.1 B ...

  • LG Electronics 120S - page 9

    4.4 Communication I/F Module ················· 4 - 13 4.4.1 Cnet I/F Module ···························································································· 4 - 13 4.4.2 Fnet I/F Module ·····················? ...

  • LG Electronics 120S - page 10

    5.9.2 Usage ········································································································ 5 - 30 5.10 External Memory Module ················· 5 - 32 5.10.1 Structure ·················? ...

  • LG Electronics 120S - page 11

    Chapter 8. Communication Function 8.1 Dedicated Protocol Communication ·············· 8 - 1 8.1.1 Introduction ·································································································· 8 - 1 8.1.2 System configura ...

  • LG Electronics 120S - page 12

    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.1 Basic Procedure of T roubleshooting ············· 11 - 1 1 1.2 T ...

  • LG Electronics 120S - page 13

    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. Chapte ...

  • LG Electronics 120S - page 14

    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 . (2) Various built-in functions The main unit can perform many functions without using sep ...

  • LG Electronics 120S - page 15

    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. Example) CPU module Power Supply module I/O module Unit ...

  • LG Electronics 120S - page 16

    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. Source Output Cur ...

  • LG Electronics 120S - page 17

    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.1.1 Basic system Total I/O points • 10-120 points Standard Economic Digital I/O ...

  • LG Electronics 120S - page 18

    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. It is possible to construct communication systems on demand. 1) 1:1 ...

  • LG Electronics 120S - page 19

    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 main units for up to 32 stations Modem Modem Modem Modem G7L-CUEB G7L-CUEB G7L-CUEB MASTER-K120S MASTER-K120S MASTER-K120S RS-232C ⇔ RS-422 Converte ...

  • LG Electronics 120S - page 20

    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. Main Unit Expansion Modules Power supply Input signal Input signal Built-in RS-232C I/F Output signal Output signal Sub-system D ...

  • LG Electronics 120S - page 21

    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(24VDC) 8 relay outputs 85~264 VAC K7M-DR30U 18 DC inputs(24VDC) 12 relay outputs 85~264 VAC K7M-DR40U 24 DC inputs(24VDC) 16 relay outputs 85~264 VAC ...

  • LG Electronics 120S - page 22

    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 DC inputs Slim Type G7E-TR10A • 10 Transistor outputs G7E-RY08A • 8 relay outputs Slim Type Expansion module Digital I/O module G7E-DR08A • 4 D ...

  • LG Electronics 120S - page 23

    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. No. Item Specifications References 1 Operating ambient Temperature 0 ~ 55 ° C 2 Storage ambient Temperature − 25 ~ + 70 ° C 3 Operating ambient Humidity 5 ~ 95%RH, no ...

  • LG Electronics 120S - page 24

    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 Of f : When the supplied power is abnormal RUN LED Indicates operating status of main unit y On : Indicates local key switch or remote running mode y ...

  • LG Electronics 120S - page 25

    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.  Key switch for mode creation .(Except economic type) Designates main unit’s operation mode y RUN : Run pr og r am operation y S T OP: Stop pr ...

  • LG Electronics 120S - page 26

    Chapter 4 Names of Parts 4 -3 2) K7M-DRT60U 3) K7M-DT60U 4.1.2 40-points main unit (Standard) 1) K7M-DR40U ...

  • LG Electronics 120S - page 27

    Chapter 4 Names of Parts 4 -4 2) K7M-DRT40U 3) K7M-DT40U 4.1.3 30-points main unit (Standard) 1) K7M-DR30U ...

  • LG Electronics 120S - page 28

    Chapter 4 Names of Parts 4 -5 2) K7M-DRT30U 3) K7M-DT30U 4.1.4 20-points main unit (Standard) 1) K7M-DR20U ...

  • LG Electronics 120S - page 29

    Chapter 4 Names of Parts 4 -6 2) K7M-DRT20U 3) K7M-DT20U 4.1.5 30-points main unit (Economic) 1) K7M-DR30UE ...

  • LG Electronics 120S - page 30

    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 ...

  • LG Electronics 120S - page 31

    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. Names ① ...

  • LG Electronics 120S - page 32

    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. Names ① Output LED ② Output contact ③ Output common terminal ④ Expansion cable ⑤ Expansion Cable Connecting T erminal ① ② ...

  • LG Electronics 120S - page 33

    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 pin ④ Analog Input T erminal ⑤ External Power Supply T erminal (DC24V) ⑥ Expansion Cable ⑦ Expansion Cable Connecting T erminal 2) G7F-ADHB N ...

  • LG Electronics 120S - page 34

    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. Names  RUN LED  Analog Output T erminal  Expansion Cable  Expansion Cable Connecting T er ...

  • LG Electronics 120S - page 35

    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.3.5 RTD Input Module No. Names ① RUN LED ② Analog Timer V olume Control Resistor ③ Expansion Cable ④ Expansion Cable Connecting T erminal ① ② ③ ④ ③ ...

  • LG Electronics 120S - page 36

    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. Names ① RS-422/485 connector ② Power supply/Commun ...

  • LG Electronics 120S - page 37

    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. MASTER-K120S series have two option modules – External memory module ...

  • LG Electronics 120S - page 38

    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.5A(110VAC)/0.25A(220VAC) 0.6A(110VAC)/0.3A(220VAC) Inrush cur ...

  • LG Electronics 120S - page 39

    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-DR/DRT/DT30U K7M-DR/DRT/DT40U K7M-DR/DR`T/DT60U Remarks Program control method Cyclic execution of stored progr am, Time-driven interrupt, Process-dri ...

  • LG Electronics 120S - page 40

    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 auto tuning, PWM output, manual output, adjustable operation scan time, Anti-windup, SV-Ramp, Delta MV, Position and Velocity algorithm Cnet I/F Func ...

  • LG Electronics 120S - page 41

    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 interrupt, Process-driven interrupt I/O control method Indirect mode(Refresh method), Direct by program command Program language Instruction list, Ladd ...

  • LG Electronics 120S - page 42

    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 - 1port User defined protocol support RS-485 - 1 port No protocol support RS-485 is available on K7M-DR10/14UE only Capacity 1 phase : 10 kHz-2 channel 2 p ...

  • LG Electronics 120S - page 43

    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. Cyclic operation of the PLC cont inues as long as conditions do no t change for i ...

  • LG Electronics 120S - page 44

    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. The signal, which infor ms the CPU of those urgent conditions is called interr upt ...

  • LG Electronics 120S - page 45

    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. (1) Scan time = Scan program p ...

  • LG Electronics 120S - page 46

    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.1 ~ 6553.5 seconds, 10msec timer is 0.01 ~ 655.35 seconds, and that o ...

  • LG Electronics 120S - page 47

    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. When the current value reac ...

  • LG Electronics 120S - page 48

    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). The current value of retriggerable timer will be set as preset value wh ...

  • LG Electronics 120S - page 49

    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. The followings shows brief information for counter operation. Refer ...

  • LG Electronics 120S - page 50

    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. 5) Maximum c ...

  • LG Electronics 120S - page 51

    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. The following table shows the classification ...

  • LG Electronics 120S - page 52

    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. 2) Interrupt program -. When an interru ...

  • LG Electronics 120S - page 53

    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. When multiple interrupt factors occur simultaneously, interrupt r outines are executed ...

  • LG Electronics 120S - page 54

    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. 5.4.4 Error Handling 1) Error C ...

  • LG Electronics 120S - page 55

    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. REMARK 1) In occurrence of a error, the state is to be stored in the rep ...

  • LG Electronics 120S - page 56

    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. 1) Processing when the operation mode is changed. Initialization of data area is exe ...

  • LG Electronics 120S - page 57

    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. (2) Normal or abnormal operation and mounting conditions of the loaded module ar ...

  • LG Electronics 120S - page 58

    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. When executed, Stop operation at designated break-point executed by the cond ...

  • LG Electronics 120S - page 59

    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. R ...

  • LG Electronics 120S - page 60

    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. If an error is detected, the system stops operation to prevent faulty ...

  • LG Electronics 120S - page 61

    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. -. I/O Force on/off setting is applied to input area and output area. - ...

  • LG Electronics 120S - page 62

    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 ...

  • LG Electronics 120S - page 63

    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. It is possible to use ‘forced I/O function’ to program. Items Special Device All Forced I/O enable M1910 Forced I/O enable by bit D4700 ~ D4763 Forced I/O set data D4800 ~ D4863 3) Force ...

  • LG Electronics 120S - page 64

    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. Direct input/output is executed by the ‘IORF’ instruction. If this inst ruction is used, ...

  • LG Electronics 120S - page 65

    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. Bit Data Area Word Data Area User Progr ...

  • LG Electronics 120S - page 66

    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. Mounting module Max. module can be mounted remark Expansion I/O module 3 2 modules in economic type A/D, D/A conversion module 3 Analog timer module 3 ...

  • LG Electronics 120S - page 67

    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. Turn upper off switch to use exter ...

  • LG Electronics 120S - page 68

    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. Use a small driver to operate it. Terminal block cover Driver Dip switch ...

  • LG Electronics 120S - page 69

    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. (1) Turn the power of the base ...

  • LG Electronics 120S - page 70

    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. 2) Run the PLC with a program of ...

  • LG Electronics 120S - page 71

    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. Clock operation by the RTC function is continued with a super capacitor w ...

  • LG Electronics 120S - page 72

    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. 07. 23. 13:50:20, Tuesday 2) Write RTC data There is ...

  • LG Electronics 120S - page 73

    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. To keep use coil load as an output module, maximum opening and shutting frequency is 1 second on and 1 se ...

  • LG Electronics 120S - page 74

    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-DR10UE K7M-DR14UE K7M- DR/DRT/DT20U K7M-DR20UE K7M- DR/DRT/DT30U K7M-DR30UE K7M- DR/DRT/DT40U K7M-DRT40U K7M- DR/DRT/DT60U K7M-DRT60U Number of input poin ...

  • LG Electronics 120S - page 75

    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. (1) Main unit DC24V DC24V ...

  • LG Electronics 120S - page 76

    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. External device Input Contact points NPN open collector output type NPN current output type PNP current output type Relay IN COM Sensor IN CO ...

  • LG Electronics 120S - page 77

    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.4 ~ 28.8V (ripple: less than 5%) ...

  • LG Electronics 120S - page 78

    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) K7M-DR30U (K7M-DRT30U) K7M-DR40U (K7M-DRT40U) K7M-DR60U (K7M-DRT60U) Output point 8 points(4 points) 12 points(8 points) 16 points(12 points) 24 points( ...

  • LG Electronics 120S - page 79

    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. load Voltage/current DC5V / 1 ...

  • LG Electronics 120S - page 80

    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 ...

  • LG Electronics 120S - page 81

    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 Output point 4 points / 8 point 4 points / 12 point 4 points / 16 point 4 points / 24 point Insulation method Photo coupler insulation Rated load voltage ...

  • LG Electronics 120S - page 82

    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 ...

  • LG Electronics 120S - page 83

    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. load Voltage/ ...

  • LG Electronics 120S - page 84

    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.5A/1 point, 4A/1COM Current leakage when off 0.1mA or lower Max. inrush current 4A/10ms o ...

  • LG Electronics 120S - page 85

    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. The built-in high speed counter of MASTER-K120S(hereafter called HSC) has the following features; ...

  • LG Electronics 120S - page 86

    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 Input terminal  P 01 Ch1 Input Ch0 B Phase Input Counter input terminal B Phase Input terminal  P 02 Ch2 Input Ch2 A Phase Input Counter input termi ...

  • LG Electronics 120S - page 87

    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.4~28.8V P02 Ch2 Input pulse Ch2 A Phase I ...

  • LG Electronics 120S - page 88

    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 COM 24V 24VG Pulse Generator Pulse Generator ...

  • LG Electronics 120S - page 89

    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           CV         7/9  S Channel which is designated at parameter(0~3) SV Set value (binary 32 bits) Ra ...

  • LG Electronics 120S - page 90

    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. ? ...

  • LG Electronics 120S - page 91

    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. - Current value decreases by 1 at the risi ng edge of A-Phase p ...

  • LG Electronics 120S - page 92

    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’. - At the rising edge of B-Phase pulse when ...

  • LG Electronics 120S - page 93

    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. - P40 ~ P47 are available for comparison output point. ...

  • LG Electronics 120S - page 94

    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. (c) Comparison Task - If C ...

  • LG Electronics 120S - page 95

    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 Pulses 60,000 Value) Last - Value (Current RPM × × = (a) Examples of Program - Refresh cycle : 1000ms, Pulses per rotate : 60, RPM save area : D0 ? ...

  • LG Electronics 120S - page 96

    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 - P0 : A-phase pulse input, P1 : B-phase pulse input • Preset - Preset type : internal preset (M100) - Preset value : 0 • Last counter setting - ...

  • LG Electronics 120S - page 97

    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. Duplicated ...

  • LG Electronics 120S - page 98

    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. 1) Usage When narrow width of ...

  • LG Electronics 120S - page 99

    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. 2) Do not designate HSC input points as pulse catch input. Remark ...

  • LG Electronics 120S - page 100

    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. through using environment. 1) Usage Input signal status affects to the credibility of system i ...

  • LG Electronics 120S - page 101

    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. 2) Minimum processi ...

  • LG Electronics 120S - page 102

    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. interrupt input contact No. interrupt input e xecuting conditi ...

  • LG Electronics 120S - page 103

    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. The MASTER-K120S series does not have separated PID module like MASTER-K300S and MASTER- K1000S series, and the ...

  • LG Electronics 120S - page 104

    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 is proportional to the deviation (E : the difference between SV and PV)  The deviation (E) is obtained by difference between SV and PV and the fo ...

  • LG Electronics 120S - page 105

    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. When the deviation is very small, the proportional operation can not produce a proper manipulat ...

  • LG Electronics 120S - page 106

    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. 2.6 The system response when a short integration time given Fig. 7.5 The system response when a short integration time given (c) Derivative operation (D action)  When a ...

  • LG Electronics 120S - page 107

    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. ...

  • LG Electronics 120S - page 108

    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. At this time, the actuator keeps the maximum ...

  • LG Electronics 120S - page 109

    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. (a) P control The digitized formula of P control is as following; [] ) ( ) ( ) ( n PV n SV K n P − = n : sampling number K : proportional gain constant b : reference ...

  • LG Electronics 120S - page 110

    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.1 ~ 10 seconds, and actual input range is 0 ~ 100. Generally, Scan time of Digi ...

  • LG Electronics 120S - page 111

    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. For example, if the designated P_GAIN is 98, actual input data of ...

  • LG Electronics 120S - page 112

    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. Setting range is 1~4000(Default ...

  • LG Electronics 120S - page 113

    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.1 ~ 10 seconds, and actual input range is 0 ~ 100.  Control target(SV) SV (set value : the de ...

  • LG Electronics 120S - page 114

    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.  Process reaction curve method(PRC method). • PID parameters ...

  • LG Electronics 120S - page 115

    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. S1 Exe ...

  • LG Electronics 120S - page 116

    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. ...

  • LG Electronics 120S - page 117

    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)  MASTER-K120S G7F-DA2I G7F- RD2A  When PWM set i s selected, Scan time param ete r is disabled and this value is ...

  • LG Electronics 120S - page 118

    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.) an ...

  • LG Electronics 120S - page 119

    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 output value of control result registrate D0001 • If SV Ramp is designated, current SV is registrate D0005 • D/A module converts the MV to analog s ...

  • LG Electronics 120S - page 120

    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. = 4000, Min = 0 • High frequency noise removal ratio : 10 • SV setting : 1300(60 ° C ),1350(70 ° C ),1400(80 ° C ),1500(100 ° C) • Current value setting ...

  • LG Electronics 120S - page 121

    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. • When auto tuning finished, PID operation ex ecutes with calculated P,I,D parameter. • PID execution status registrate D0000 and the output value of control result registrate D0001 • ...

  • LG Electronics 120S - page 122

    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 H0200 PV setting range error Set PV setting to available setting range H0300 SV setting range error Set SV to available setting range SV If PRC identifica ...

  • LG Electronics 120S - page 123

    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 module Analog timer RTD input module Data Register Expansion G7F-ADHA G7F-ADHB G7F-AD2A G7F-DA2I G7F-DA2V G7F-AT2A G7F-RD2A D4980 CH0 A/D value CH0 A/D val ...

  • LG Electronics 120S - page 124

    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 . Specifications Item G7F-ADHA G7F-ADHB Voltage DC 0  10V (input resistance more than 1  ) Input range Current DC 0  20  (input resistance 250  ) DC 4  ...

  • LG Electronics 120S - page 125

    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. Jumper pin of analog input  Ri g ht ...

  • LG Electronics 120S - page 126

    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. Dip switch of analog input  Right : current input Left : voltage input Analog output terminal Voltage output Curre ...

  • LG Electronics 120S - page 127

    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. (MASTER-K120S series converts range automatically as foll ...

  • LG Electronics 120S - page 128

    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. •  Wire is adopted with consideration about per ipheral temperature and electric current allowan ...

  • LG Electronics 120S - page 129

    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.5mV can’t be converted. b) Current input Current input 0m ...

  • LG Electronics 120S - page 130

    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. Analog amount of digital input 1 equals to 5 ? ...

  • LG Electronics 120S - page 131

    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. - When digital value of channel 0 is more or same than 2000 or lesser than 3000, P092 is ...

  • LG Electronics 120S - page 132

    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. -.When P83 becomes On, 3200 (8V) is output. -.When P84 becomes On, 3600 ...

  • LG Electronics 120S - page 133

    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 . Item Specifications Voltage 0  10VDC ( input resistance 1  ) Current DC 4  20  ( input resistance 250  ) DC 0  20  ( input resistance 250  )) An ...

  • LG Electronics 120S - page 134

    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. Jumper ...

  • LG Electronics 120S - page 135

    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 . 4) Wiring (1) Caution for wiring •  Make sure that external input signal of the mixture modul e of AC and analog I/O is not affected by induction noise or occurs from the AC thro ...

  • LG Electronics 120S - page 136

    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.5mV can’t be converted. b) Current input Current ...

  • LG Electronics 120S - page 137

    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.  •  When digital value of channel 1 is the same or mo ...

  • LG Electronics 120S - page 138

    Chapter 7 Usage of Various Functions 7-54 (c) Program ...

  • LG Electronics 120S - page 139

    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 . Specifications Item G7F-DA2I G7F-DA2V Output Range DC 0  20  ( Load resistance 510  ) DC 4  20  ( Load resistance 510  ) Classified by parameter DC 0 ~ 1 ...

  • LG Electronics 120S - page 140

    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 .     Indicate the operating status the G7F-DA2I   Analog output terminal      External p ...

  • LG Electronics 120S - page 141

    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 ...

  • LG Electronics 120S - page 142

    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. • Wire is ...

  • LG Electronics 120S - page 143

    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.Digital input 1 equals to 6.25  of an ...

  • LG Electronics 120S - page 144

    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. •  When P82 becomes On, 2800 (14mA) is output. •  When ...

  • LG Electronics 120S - page 145

    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.0% (Accuracy about ma ...

  • LG Electronics 120S - page 146

    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. By analog timer module. (2) System configuration Main Unit Analog timer module (3) Program  A/T conversion data is moved D000 always ...

  • LG Electronics 120S - page 147

    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 . Item Specification Connectable RTD Pt 100 (JIS C1640-1989, DIN 43760-1980) JPt100 (KS C1603-1991, JIS C1604-1981) Temperature input range Pt 100 : -200 ~ 600  (18 ...

  • LG Electronics 120S - page 148

    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          ? ...

  • LG Electronics 120S - page 149

    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.(Range 0 ~ 4000) Digital ...

  • LG Electronics 120S - page 150

    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. •  As shown below, if disconnection occurs in the RTD or cable then a voltage outside the measurable range voltage is inputted by the internal burn-out detection circ uit and burn- ...

  • LG Electronics 120S - page 151

    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. Thic ...

  • LG Electronics 120S - page 152

    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 the detected temperatur e value which is detected from the temperature-measuring resistor Pt 100 is displayed on the BCD digital display b y us e of ch ...

  • LG Electronics 120S - page 153

    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 . And it also control t ...

  • LG Electronics 120S - page 154

    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. Terminal No. Name Usage ...

  • LG Electronics 120S - page 155

    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 circuit R R COM0 – Output common 0 P42 – Direction pulse(Ch0) P43 – Direction pulse(Ch1) COM2 – Output common 2 R R R R R R Motor driver For Ch ...

  • LG Electronics 120S - page 156

    Chapter 7 Usage of Various Functions 7-72 7.3.2 Positioning function 1) Positioning function Positioning Control includes position control, speed control. (1) Position control Positioning control from start address (present stopped positi on) to goal address (transfer amount) for the assigned axis A) Control by Absolute method (Absolute coordinate) ...

  • LG Electronics 120S - page 157

    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.. • The speed can be changed by the speed override instruction(POSSOR) • Speed control contains 2 types of start method : For ...

  • LG Electronics 120S - page 158

    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. • Operation mode types are as follows Operation mode Remark End One operation step is executed with one start ...

  • LG Electronics 120S - page 159

    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. B) This operation mode can be used as last positioning data of pattern op ...

  • LG Electronics 120S - page 160

    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. ...

  • LG Electronics 120S - page 161

    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. B) If you want to operate with the position and speed of ...

  • LG Electronics 120S - page 162

    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. B) The operation type of Repeat operation mode is same as that of Single operation but the different ...

  • LG Electronics 120S - page 163

    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. (2) Indirect start(POSIST) • This is used to operate by setting the operation step ...

  • LG Electronics 120S - page 164

    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. • If the origin position is determined by origin retur ...

  • LG Electronics 120S - page 165

    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. (B) In this case, ...

  • LG Electronics 120S - page 166

    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. • This is used when acting without origin determination. (2) Acceleration/ ...

  • LG Electronics 120S - page 167

    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. • This is used to stop the positioning function promptly before reaching Stroke limit/Stroke End of the Driver by installing the stroke limit inside Strok ...

  • LG Electronics 120S - page 168

    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. • In case of heavy failure error, if the e ...

  • LG Electronics 120S - page 169

    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) Basic parameter (A) Acceleration/Deceleration time • This is applied at the starting/ending point of positioning operation, return to origin high spe ...

  • LG Electronics 120S - page 170

    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”. Therefore, when you change the rotation direction, it is required to add the bac ...

  • LG Electronics 120S - page 171

    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.3.2 (B) DOG, origin signal Ch 0 Ch 1 DOG P0005 P0007 Origin P0004 P0006 (C) Origin return speed • The speed when returning to the origin by origin return command : high speed an ...

  • LG Electronics 120S - page 172

    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. • JOG high speed setting range : 5 ∼ 100,000(unit: 1p ...

  • LG Electronics 120S - page 173

    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). ② Positioning control is ...

  • LG Electronics 120S - page 174

    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 change of speed value is available when assigned by D area (7) Dwell Time • This is the waiting time before carrying out the next positioning operatio ...

  • LG Electronics 120S - page 175

    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.(0~20) Error (F11 ...

  • LG Electronics 120S - page 176

    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. for JOG operation(0~1) n1 Direction( 0 : Forward, 1: Backward) Error (F110) Error flag t ...

  • LG Electronics 120S - page 177

    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. of steps Error (F110) Zero (F111) Carry (F112) S ○ n1 ○ ○ ○ ○ ○ ○○ ○ ○ ○ ○ 5 ○ S Channel designation(0~1) Error (F110) Error flag turns on when designating area is over n1 ...

  • LG Electronics 120S - page 178

    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 ○ SV1 ○ ○ ○ ○ ○ ○○ ○ ○ ○ ○ 5/7 ○ S Channel designation(0~1) Error (F110) Error flag turns on when designating area is over SV1 Pr ...

  • LG Electronics 120S - page 179

    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. for PWM output(0~1) SV1 PWM output period( 1 ~ 20000)[ms] Error (F1 ...

  • LG Electronics 120S - page 180

    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. for speed control(0~1) n1 Operation direction(0:Forward, 1:Rev ...

  • LG Electronics 120S - page 181

    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. for speed override(0~1) Error (F110) Error flag turns on when designati ng area is over and the instructi ...

  • LG Electronics 120S - page 182

    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. for positioni ...

  • LG Electronics 120S - page 183

    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. for origin return(0~1) n1 Operation direction(0:Forward, 1:Reverse) Error (F110) Error flag turns on when designati ng area is over a ...

  • LG Electronics 120S - page 184

    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 Error status of Ch0 (0: normal, 1: error) F0282 End of positioning Indicates end of operation for Ch0 (0: operating, 1: End) *1Scan On F0283 End of Orig ...

  • LG Electronics 120S - page 185

    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 origin Return to origin operation of Ch1 F0313 JOG low speed JOG low speed operation of Ch1 F0314 JOG high speed JOG high speed operation of Ch1 F0315 PWM ...

  • LG Electronics 120S - page 186

    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~10,000 range H11 Deceleration time of basic parameter is out of range Stop Set Deceleration time within 0~10,000 range H12 Speed limit of basic paramet ...

  • LG Electronics 120S - page 187

    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. H45 POSORG command can’t be executed during operation Operating Check if positioning operation is executing ...

  • LG Electronics 120S - page 188

    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.2 degree. For exact ‘return to origin’, we suggest ...

  • LG Electronics 120S - page 189

    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. You c an use emergency stop wit ...

  • LG Electronics 120S - page 190

    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. 2) Input points for origin, approximate origin point, and upper/l ower l ...

  • LG Electronics 120S - page 191

    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. That is, it doesn’t need a separate Cnet I/F module to facilitate the user-i ntended communication system by u ...

  • LG Electronics 120S - page 192

    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. 1) Connecting system configurat ion (link between MASTER-K’s) (1) 1:1 connection with general PC a) Communication program made by C or BASIC computer language on the u ...

  • LG Electronics 120S - page 193

    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. Signal 1 1 5V 2 2 RXD1 3 3 TXD1 4 4 RXD2 5 5 SG 6 6 5V 7 7 TXD2 8 8 SG 9 9 SG PMU Connection method and signal direction MASTER-K120S main unit 485+ 485+ 485- 485- 1 2 3 4 5 6 7 8 9 PMU(L ...

  • LG Electronics 120S - page 194

    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. Signal 1 1 5V 2 2 RXD1 3 3 TXD1 4 4 RXD2 5 5 SG 6 6 5V 7 7 TXD2 8 8 SG 9 9 SG MASTER-K120S main unit Connection method and signal direction MASTER-K120S main unit 485+ 485+ 485 ...

  • LG Electronics 120S - page 195

    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. 256 Bytes) Header (ENQ) Station number Command Command type Structurized data area Tail (EOT) Frame check (BCC) (2) ACK Response frame (MASTER-K120S main unit → external communication device ...

  • LG Electronics 120S - page 196

    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. The terms in hexadecimal are as follows. • Station No. • When the main command is R(r) or W (w) and t he command type is numeric al (means a data type) • All of the terms indicating size ...

  • LG Electronics 120S - page 197

    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. (Continuous reading Bit is ...

  • LG Electronics 120S - page 198

    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. 1) Data type of variable • Available types of device Device Name Explanation Read/Write Bit/Byte/Word Assignment P Input/Output relay Available All M Auxiliary relay Available All L ...

  • LG Electronics 120S - page 199

    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. (2) PC request format Format name Header Station No. Command Command type Number of blo ...

  • LG Electronics 120S - page 200

    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. 16 blocks possible) Item Explanation ...

  • LG Electronics 120S - page 201

    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. of frame NAK H20 R(r) SS H1132 ETX BCC ASCII value H15 H3230 H 52(72) H5353 H31313332 H03 Item Explanation BCC When command is lowercase(r), only one lower byte of the value resul ...

  • LG Electronics 120S - page 202

    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. of frame NAK H01 r SS Error code (2 bytes) ETX BCC ASCII value H15 H3031 H72 H5353 Error code (4 bytes) H03 2) Continuous reading(R(r)SB) of device ...

  • LG Electronics 120S - page 203

    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. of frame ACK H10 R(r) SB H01 H02 H1122 EOT BCC ASCII value H06 H3130 H52(72) H5342 H3031 H3134 H31313232 H03 Item Explanation B ...

  • LG Electronics 120S - page 204

    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. of frame NAK H10 r SB H1132 ETX BCC ASCII value H15 H3130 H72 H 5342 H31313332 H03 Item Explanation BCC When command is lowercase(r), only one lower byte of the value resulted by ...

  • LG Electronics 120S - page 205

    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. Command Command type Number of blocks Device Length Device Name Data Tail Frame check Frame (Exa ...

  • LG Electronics 120S - page 206

    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 H3230 H57(77) H5353 H03 Item Explanation BCC When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each to ASCII val ...

  • LG Electronics 120S - page 207

    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. ① Computer request format (PC → MASTER-K120S main unit) Format name Header Station No. Command Command type Number of blocks Device Length Device Name Data Tail Frame check Frame (Example) E ...

  • LG Electronics 120S - page 208

    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. Comman d Comma nd type Device Length Device Number of data (M ...

  • LG Electronics 120S - page 209

    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 H3130 H57(77) H5342 H03 Item Explanation BCC When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each to ASCII val ...

  • LG Electronics 120S - page 210

    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. ① Computer request Format (PC → MASTER-K120S main unit) Format name Header Station No. Command Command type Device Length Device Number of data Data Tail Frame check Frame (Example) ENQ H01 ...

  • LG Electronics 120S - page 211

    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. (2) PC request Format Format name Header Station No. Command Registration No. Registra ...

  • LG Electronics 120S - page 212

    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 H06 H3130 H58(78) H3039 H03 Item Explanation BCC When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each to ASCI ...

  • LG Electronics 120S - page 213

    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. R## Number of blocks Device length Device name Tail F rame check Frame (Example) ENQ ...

  • LG Electronics 120S - page 214

    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. (2) PC request Format Format name Header Station No. Command Reg ...

  • LG Electronics 120S - page 215

    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) H09 H1132 ETX BCC ASCII value H15 H3130 H 59(79) H3039 H31313332 H03 Item Explanation BCC When command is lowercase(y), only one lower byte of the valu ...

  • LG Electronics 120S - page 216

    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. (2) PC request Format Format name Header Station No. Command Command type Tail Frame check Frame (Example) ENQ H0A R(r) ST EOT BCC ASCII value H05 H3041 H52(72) H5354 H04 ...

  • LG Electronics 120S - page 217

    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 H1132 ETX BCC ASCII value 15 3041 5272 5354 31313332 03 * When command is one of lower case(r), only one lower byte of the value resulted by adding 1 ...

  • LG Electronics 120S - page 218

    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). Setting Base parameter and comm unication parameter in KGLWIN can easily c ...

  • LG Electronics 120S - page 219

    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. (a) When uses Ch.0 : Built-in RS-232C or External Cnet I/F module (b) ...

  • LG Electronics 120S - page 220

    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, 57600 bps Data bit Sets one of 7 or 8 Bits Parity bit Sets one of none, Even, Odd Stop bit Sets one of 1 or 2 Bit(s) Communication channel • RS232C ...

  • LG Electronics 120S - page 221

    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. • Set device area - Sending: reading device area P,M,L,K,T,C,D,S saving device ar ...

  • LG Electronics 120S - page 222

    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 station Station Device Station Device Remarks 0,1 D4400 16,17 D4408 2,3 D4401 18,19 D4409 4,5 D4401 20,21 D4410 6,7 D4403 22,23 D4411 8,9 D4404 24,25 D44 ...

  • LG Electronics 120S - page 223

    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 - - - - - - - - - - - b1 : be set in case station is duplicated b2 : be set in case device area over (5) Max/min/current sending/receiving cycle of set parameter Co ...

  • LG Electronics 120S - page 224

    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. • The data of th ...

  • LG Electronics 120S - page 225

    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 Communication channel Timeout Dedicated Enable 0 19200 8 None 1 RS232C null modem or RS422/485 500ms Master ⑤ Click ‘List’ button to activate registration l ...

  • LG Electronics 120S - page 226

    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. Station No. Size Mode Area to read(From) Area to save(to) ...

  • LG Electronics 120S - page 227

    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. Baud rate Data bit Parity bit Stop bit Communication channel Timeout Dedicated Enable 31 19200 8 None 1 RS232C null modem or RS422/485 - slave ② S ...

  • LG Electronics 120S - page 228

    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. Check if other letters t han capitals/small letters, numbers, and (‘%’,’_’,’ .? ...

  • LG Electronics 120S - page 229

    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. There’re a number of kinds of protocols made by many companies, th ...

  • LG Electronics 120S - page 230

    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. ① Frame specification • Header - Used in [Header] type. - Possible characters, as headers are 1 alphabet letter, 1 numeric number, or control characters as b ...

  • LG Electronics 120S - page 231

    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. Example 3) [ENQ][STX][NUL] : Possible Example 4) [A][NUL][ENQ][STX] : impossible • Send / Receive - Not defined : It is the initial value that doesn’t declare ...

  • LG Electronics 120S - page 232

    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. Ex1) ASCII : 1 0 R S B 0 6 % M W 1 0 0 Ex2) Hex : 31 30 52 53 42 30 36 25 57 44 31 30 30 If ARRAY is set, it asks whether it woul d convert data to ASC II to send (at send frame), or convert to he ...

  • LG Electronics 120S - page 233

    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.1.6 “Execution of Commands”. Default It is that sum all the data from 2 nd data to the data be ...

  • LG Electronics 120S - page 234

    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. - If the received frame is matched with the declared frame in frame list number 3, L003 starts blinkin ...

  • LG Electronics 120S - page 235

    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. ① SUM 1 The last ...

  • LG Electronics 120S - page 236

    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 1 0 0 b i t 7 b i t 0 0 0 1 0 1 1 0 1 ⑤ Mask setting : Masking method is as below b i t 7 b i t 0 1 1 0 1 0 0 1 1 b i t 7 b i t 0 1 1 1 1 1 1 1 1 b ...

  • LG Electronics 120S - page 237

    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. of steps Error (F1 10) Zero (F1 11) Carry (F1 12) Ch ○ n1 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ D ○ ○ ○ ○ ○ ○ 7 ○ Ch Designated communication channel n1 Fram ...

  • LG Electronics 120S - page 238

    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.2.4 Example of Usage This example is supposed that ...

  • LG Electronics 120S - page 239

    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 ...

  • LG Electronics 120S - page 240

    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 ...

  • LG Electronics 120S - page 241

    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. ...

  • LG Electronics 120S - page 242

    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. • The new value of M000 is sending again ever y 1 second period (F092 is 1second period flag) • The number of sending normally stor ...

  • LG Electronics 120S - page 243

    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. ...

  • LG Electronics 120S - page 244

    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. ...

  • LG Electronics 120S - page 245

    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. ...

  • LG Electronics 120S - page 246

    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 . At that moment P004 increases and the value of P004 moves M000. • T ...

  • LG Electronics 120S - page 247

    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. Functi on code used in Modbus is supported by instruction and especially function code ...

  • LG Electronics 120S - page 248

    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. 4) Function code area (1) MAST ...

  • LG Electronics 120S - page 249

    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 Status 1XXXX(bit-input) Read bits 03 Read Holding Registers 4XXXX(word-output) Read words 04 Read Input Registers 3XXXX(word-input) Read words 05 Force ...

  • LG Electronics 120S - page 250

    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. 8.3.3 Parameters Setting 1) Setting communication parameter (1) Open a new project file a ...

  • LG Electronics 120S - page 251

    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. Data Bit Set 7 or 8. ASCII mode: Set as 7 bits. ...

  • LG Electronics 120S - page 252

    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. of steps Error (F1 10) Zero ( F 111 ) Carry (F1 12) C h ○ S1 ○ ○ ○ ○ ○ ○ ○ ○ ○ S2 ○ ○ ○ ○ ○ ○ ○ ○ S3 ○ ○ ○ ○ ○ ○ ○ ○ ...

  • LG Electronics 120S - page 253

    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. At that time error code stores bit 8 ~ bit 15. • Error code is as follow Code Error ...

  • LG Electronics 120S - page 254

    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. 17. The Coil of the slave station is su pposed to be as follows and the data that are read ...

  • LG Electronics 120S - page 255

    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. 17. The input contact of the slave station is supposed to be as follows and the d ...

  • LG Electronics 120S - page 256

    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 . of station : h0A(10) , function code : h10 ) ② : Address setting Address ‘0’ of function code ‘16’ at MODBUS protocol means address ‘400 ...

  • LG Electronics 120S - page 257

    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. User defined protocol is very convenie nt when there are enough interval between frames or a kind of frame i ...

  • LG Electronics 120S - page 258

    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) H01(Receiving by last byte) H03 (Rec eives when last frame data is 03(ETX)) - When designated as length of frame : Stores receiv ed data to devices w ...

  • LG Electronics 120S - page 259

    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. of step Error (F1 10) Zero ( F 111 ) Carry (F1 12) Ch ○ Cw ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ D ○ ○ ○ ○ ○ ○ ○ ○ SS ○ ○ ○ ○ ○ ○ ○ ○ 9 ○ Ch Designated commu ...

  • LG Electronics 120S - page 260

    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 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ S ○ ○ ○ ○ ○ ○ ○ ○ SS ○ ○ ○ ○ ○ ○ ○ ○ 9 ○ Ch Designated communication channel n Numb ...

  • LG Electronics 120S - page 261

    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. One is size of received data and the other is w hether it has some p ...

  • LG Electronics 120S - page 262

    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. 2) Program • Save sending ...

  • LG Electronics 120S - page 263

    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. 1) Remote connection by built-in Cnet I/F Remote connection by built-in Cnet I/F is avail able by dedicated communication protocol on ...

  • LG Electronics 120S - page 264

    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’. -. Clot : set to 0 when uses channel 0, and ‘1’ when uses channel 1 -. Station No. : Input sl ...

  • LG Electronics 120S - page 265

    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 connection by Fnet interface is available by setting connection option of KGLWIN as below G7L-FUEA G7L-FUEA ...

  • LG Electronics 120S - page 266

    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 ‘Off’ as below and only one communication module can be extended 1) Usage of G7L-CUEB Using G7L-CUEB, MASTER-K120S can connect to other PLC by dedic ...

  • LG Electronics 120S - page 267

    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. But communicati on by command(Read, Write) are not available • After selecting communication parameter from KGLWIN an ...

  • LG Electronics 120S - page 268

    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 to User’s manual of Fnet I/F module 4) Usage of G7L-PBEA/DBEA G7L-PBEA support profibus slave function on ly and G7L-DBEAsupports DeviceNet slave i ...

  • LG Electronics 120S - page 269

    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. 1) Environment requirements Avoid installing this unit in locations which are subjected o ...

  • LG Electronics 120S - page 270

    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.e., 3.5/6.5 of the output power is actually used. • W pw = 3.5 / ...

  • LG Electronics 120S - page 271

    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. • W = W PW + W 5V + W 24V + W out + W in + W s (W) (8) Check the temperature rise within the control panel wi th calculation of that total power c ...

  • LG Electronics 120S - page 272

    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). • If an ind uctive load has been connected to output part, con nec t parallel surge killer ...

  • LG Electronics 120S - page 273

    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. Also, allow the distance enough to press the hook in ...

  • LG Electronics 120S - page 274

    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. (3) Close the connector cover of the main unit . ③: expansion mod ...

  • LG Electronics 120S - page 275

    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 . (2) Use a power supply which generates minimal noise acro ss wire and across PLC and ground. (W ...

  • LG Electronics 120S - page 276

    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. Do not allow the transformer or noise filter across the duct. ...

  • LG Electronics 120S - page 277

    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. Class 3 grounding should be used (grounding resistance ...

  • LG Electronics 120S - page 278

    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. However, periodic inspection is requested for ambient ...

  • LG Electronics 120S - page 279

    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 -. Measure with thermometer and hygrometer -. meas ...

  • LG Electronics 120S - page 280

    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. The short disco ...

  • LG Electronics 120S - page 281

    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. Power LED is turned OFF Is the power supply operating? Is the voltage within the rated power? Is the fuse blown ...

  • LG Electronics 120S - page 282

    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. If ...

  • LG Electronics 120S - page 283

    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. RUN LED is off. No Yes Contact the nearest service center. Complete Turn the po ...

  • LG Electronics 120S - page 284

    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. Check the status of P40 by KGLWIN Is the indicator LED of the P40 on? No R ...

  • LG Electronics 120S - page 285

    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 check the status by forced input Correct the wiring Check the status of the switch 1 and 2 Unit replacement is needed Check the status of the switch 1 ...

  • LG Electronics 120S - page 286

    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. Is th ...

  • LG Electronics 120S - page 287

    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. y For errors relating to special or communication modules, use the questionnaire included in the User’s manual ...

  • LG Electronics 120S - page 288

    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. Condition Cause Corrective Actions Input signal doesn ...

  • LG Electronics 120S - page 289

    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. y Load is half-wave rectifie d inside (in some cases , it is t ...

  • LG Electronics 120S - page 290

    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. y The off response time can be delayed by one o ...

  • LG Electronics 120S - page 291

    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. 0003h O ...

  • LG Electronics 120S - page 292

    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. • An operand value is outside the define ...

  • LG Electronics 120S - page 293

    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. • For the detail information about Connection Option , refer to KGLWIN Ma ...

  • LG Electronics 120S - page 294

    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. • Auto save - This functio ...

  • LG Electronics 120S - page 295

    Appendix 1 System Definitions App1-3 (3) Page setup You can select print option when the project print out .(margin, cover, footer) ...

  • LG Electronics 120S - page 296

    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. (2) Timer boundary setting S ...

  • LG Electronics 120S - page 297

    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. F0001 Program mode Turns on when the CPU in the Program mode F0002 Pause mode T urns on when the CPU in the Pause mode F0003 Debug mode Turns on when the CP ...

  • LG Electronics 120S - page 298

    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. F0060 to F006F Storing error code Stores the system error code, (See Section 2.9) F00 ...

  • LG Electronics 120S - page 299

    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 error code Stores error of HSC Ch0 F0220 to F022F HSC error code Stores error of HSC Ch1 F0230 to F023F HSC error code Stores error of HSC Ch2 F0240 to F ...

  • LG Electronics 120S - page 300

    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 . (1) When FNET module is connected Relay Keyword Function Description D4500 D4502 _C0STNOL _C0STNOH ...

  • LG Electronics 120S - page 301

    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 e station 0 and 1 D4401 Communication Error Code of station 2 and 3 D4433 Mode and Error of Slave station 2 and 3 D4401 Communication Error Code of s ...

  • LG Electronics 120S - page 302

    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 Slave station 0 and 1 D4301 Communication Error Code of station 2 and 3 D4333 Mode and Error of Slave station 2 and 3 D4301 Communication Error Code of st ...

  • LG Electronics 120S - page 303

    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 D4704 D4804 P005 D4705 D4805 P006 D4706 D4806 P007 D4707 D4807 P008 D4708 D4808 P009 D4709 D4809 P010 D4710 D4810 P011 D4711 D4811 P012 D4712 D4812 P0 ...

  • LG Electronics 120S - page 304

    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) Clock data Relay Description D4990 Year, Month D4991 Day, Time D4992 Minute, Second D4993 Day of week, Century ...

  • LG Electronics 120S - page 305

    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 K7M-DR(T)40U 165 175 K7M-DR(T)60U 215 225 95 105 115 A B 73 73 95 95 105 115 5 ...

  • LG Electronics 120S - page 306

    Appendix 3 External Dimensions App3-2 (2) Slim type(G7E-DC08A,G7E-RY 08A,G7F-ADHB,G7F-DA2V,G7F-RD2A) ...

Manufacturer LG Electronics Category Universal Remote

Documents that we receive from a manufacturer of a LG Electronics 120S can be divided into several groups. They are, among others:
- LG Electronics technical drawings
- 120S manuals
- LG Electronics product data sheets
- information booklets
- or energy labels LG Electronics 120S
All of them are important, but the most important information from the point of view of use of the device are in the user manual LG Electronics 120S.

A group of documents referred to as user manuals is also divided into more specific types, such as: Installation manuals LG Electronics 120S, service manual, brief instructions and user manuals LG Electronics 120S. Depending on your needs, you should look for the document you need. In our website you can view the most popular manual of the product LG Electronics 120S.

A complete manual for the device LG Electronics 120S, how should it look like?
A manual, also referred to as a user manual, or simply "instructions" is a technical document designed to assist in the use LG Electronics 120S by users. Manuals are usually written by a technical writer, but in a language understandable to all users of LG Electronics 120S.

A complete LG Electronics manual, should contain several basic components. Some of them are less important, such as: cover / title page or copyright page. However, the remaining part should provide us with information that is important from the point of view of the user.

1. Preface and tips on how to use the manual LG Electronics 120S - At the beginning of each manual we should find clues about how to use the guidelines. It should include information about the location of the Contents of the LG Electronics 120S, FAQ or common problems, i.e. places that are most often searched by users in each manual
2. Contents - index of all tips concerning the LG Electronics 120S, that we can find in the current document
3. Tips how to use the basic functions of the device LG Electronics 120S - which should help us in our first steps of using LG Electronics 120S
4. Troubleshooting - systematic sequence of activities that will help us diagnose and subsequently solve the most important problems with LG Electronics 120S
5. FAQ - Frequently Asked Questions
6. Contact detailsInformation about where to look for contact to the manufacturer/service of LG Electronics 120S in a specific country, if it was not possible to solve the problem on our own.

Do you have a question concerning LG Electronics 120S?

Use the form below

If you did not solve your problem by using a manual LG Electronics 120S, ask a question using the form below. If a user had a similar problem with LG Electronics 120S it is likely that he will want to share the way to solve it.

Copy the text from the picture

Comments (0)