Page 2 - SAFETY INSTRUCTIONS; WARNING
SAFETY INSTRUCTIONS To 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 f...
Page 3 - Design Precautions; the PLC module. Otherwise, serious trouble could result from; However, one or more outputs could be turned on when there are; rating of output module.; or erroneous operation.; main module power is turned on.; output or erroneous operation.; Warning
SAFETY INSTRUCTIONS Design Precautions Install a safety circuit external to the PLC that keeps the entire system safe even when there are problems with the external power supply or the PLC module. Otherwise, serious trouble could result from erroneous output or erroneous operation. - Outside the PLC...
Page 4 - contained in this manual or datasheet.; Using the PLC in an environment outside the range of the general; Make sure all modules are loaded correctly and securely.; Not doing so could cause a malfunction, failure or drop.; Make sure I/O and extension connector are installed correctly.; Poor connection could cause an input or output failure.; When install the PLC in environment of much vibration, be sure to; Caution
SAFETY INSTRUCTIONS Design Precautions Installation 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...
Page 5 - Wiring Precautions; Not doing so could cause electric shock or damage to the product.
SAFETY INSTRUCTIONS Wiring Precautions Completely turn off the external power supply when installing or 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 electr...
Page 6 - Startup and Maintenance Precautions; Doing so could cause electric shock or erroneous operation.
SAFETY INSTRUCTIONS Startup 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 mou...
Page 7 - Revision History
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...
Page 8 - Contents; Guide to Use This Manual; Chapter 2. System Configuration; Overall Configuration; Chapter 3. General Specifications; General Specifications; Chapter 4. Names of Parts; D/A Combination Module
◎ Contents ◎ Chapter 1. General 1.1 Guide to Use This Manual ················· 1 - 1 1.2 Features ······················· 1 - 2 1.3 Terminology ······················ 1 - 3 Chapter 2. System Configuration 2.1 Overall Configuration ··················· 2 - 1 2.1.1 Basic System ························...
Page 9 - Operation Processing at Momentary Power Failure Occurrence; Memory Configuration
4.4 Communication I/F Module ················· 4 - 13 4.4.1 Cnet I/F Module ···························································································· 4 - 13 4.4.2 Fnet I/F Module ···························································································· 4 - 13 4....
Page 10 - External Memory Module; Chapter 6. Input and Output Modules; Digital Input Specifications; Chapter 7. Usage of Various Functions
5.9.2 Usage ········································································································ 5 - 30 5.10 External Memory Module ················· 5 - 32 5.10.1 Structure ··································································································· 5 - 32...
Page 11 - Chapter 8. Communication Function; Dedicated Protocol Communication; Chapter 9. Installation and Wiring
Chapter 8. Communication Function 8.1 Dedicated Protocol Communication ·············· 8 - 1 8.1.1 Introduction ·································································································· 8 - 1 8.1.2 System configuration method ··················································...
Page 12 - Troubleshooting flowchart used when the power LED turns off; Appendix
Chapter 10. Maintenance 10.1 Maintenance and Inspection ················ 10 - 1 10.2 Daily Inspection ···················· 10 - 1 10.3 Periodic Inspection ··················· 10 - 2 Chapter 11. Troubleshooting 11.1 Basic Procedure of Troubleshooting ············· 11 - 1 11.2 Troubleshooting ········...
Page 13 - Chapter 1 General; This manual is divided up into chapters as follows:; Title; REMARK
Chapter 1 General 1-1 Chapter 1. General 1.1 Guide to Use This Manual This manual includes specifications, functions and handling 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 man...
Page 17 - Chapter 2 System Configuration; Chapter 2. System Configuration
Chapter 2 System Configuration 2-1 Chapter 2. System Configuration The MASTER-K120S series has suitable to configuration 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 point...
Page 18 - possible to construct communication systems on demand.
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 ...
Page 19 - * Refer to ‘chapter 8. communication function’ for details.
Chapter 2 System Configuration 2-3 (3) RS-232C Communication over a long distance 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 MAST...
Page 20 - Product Functional Model; Main Unit
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...
Page 23 - Chapter 3 General Specifications; Chapter 3. General Specifications; Item
Chapter 3 General Specifications 3-1 Chapter 3. General Specifications 3.1 General Specifications The following table shows the general specifications of the MASTER-K120S series. No. Item Specifications References 1 Operating ambient Temperature 0 ~ 55 ° C 2 Storage ambient Temperature − 25 ~ + 70 °...
Page 24 - Chapter 4 Names of Parts; Chapter 4. Names of Parts
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 Off : When the supplied power is abnormal RUN LED Indicates operating status of main unit y On : Ind...
Page 34 - Names
Chapter 4 Names of Parts 4 -11 4.3.2 D/A Conversion Module 1) G7F-DA2I No. Names ① RUN LED ② Analog Output Terminal ③ Expansion Cable ④ Expansion Cable Connecting Terminal ⑤ External Power Supply Terminal (DC24V) 2) G7F-DA2V No. Names ① RUN LED ② Analog Output Terminal ③ Expansion Cable ④ Expansion ...
Page 38 - Chapter 5 Power Supply / CPU; Power Supply Specifications; PWR LED On when power supply is normal
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(22...
Page 39 - CPU Specifications
Chapter 5 Power Supply / CPU 5-2 5.2 CPU Specifications The following table shows the general specifications 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 st...
Page 42 - only
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...
Page 43 - Operation Processing; operation
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 last step, which is called scan. This sequential processing is called cyclic operation. Cyclic operation of the PLC contin...
Page 44 - ) Interrupt operation method; ) Momentary power failure within 10 ms
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 immediately the operation, which corresponds to interrupt program. The signal, which infor ms the CPU o...
Page 45 - ) Expression for scan time
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 intern...
Page 46 - turned off when the current value reaches 0.
Chapter 5 Power Supply / CPU 5-9 5.3.5 Timer Processing The MASTER-K series use up count timer. There are 5 timer instructions 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, 1...
Page 47 - timer; The current value can be cleared by the RST instruction only.; Monostable timer
Chapter 5 Power Supply / CPU 5-10 3) Integral timer In general, its operation is same as on-delay timer. Only the difference is the current value will not be clear when the input condition of TMR instruction is turned off. It keeps the elapsed value and restart to increase when the input condition i...
Page 48 - Timer input condition
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 the timer is operating (decreasing). The current value of ret...
Page 49 - counter
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 the input signal is switched from off to on. MASTER-K series have 4 counter instructions such as CTU, CTD, CTUD, and CTR. The followings shows b...
Page 50 - the next counter input signal is applied.; ) Maximum counting speed; If T1
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 ne...
Page 52 - program
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...
Page 53 - ) parameter setting; TDINT instruction and ends with the IRET instruction.; ) HSC driven interrupt
Chapter 5 Power Supply / CPU 5-16 2) parameter setting 3) Time driven interrupt TDI occurs periodically with the constant interval assigned in parameter setting. The interrupt routine of TDI starts with the TDINT instruction and ends with the IRET instruction. When multiple interrupt factors occur s...
Page 54 - ) Error Classification
Chapter 5 Power Supply / CPU 5-17 REMARK Total available interrupt points is 8(In standard type). -. Time driven interrupt + process driven interrupt + high speed counter driven interrupt ≤ 8 points Interrupt signal is ignored when self-interrupt occurs more than 2 times during interrupt processing ...
Page 56 - Operation Modes; ration processing in each operation mode.; ) Processing when the operation mode is changed.; is decided with check on its effectiveness.; ) Operation processing contents
Chapter 5 Power Supply / CPU 5-19 5.5 Operation Modes The CPU operates in one of the four modes - RUN, STOP, PAUSE and DEBUG mode. The following 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 ...
Page 58 - ) Debug operation conditions
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 operatio...
Page 59 - ) Mode change Remote operation
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 KGLW...
Page 61 - Click
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 set...
Page 62 - Set ‘forced I/O data’ by bit
Chapter 5 Power Supply / CPU 5-25 -. When forced I/O set enables, forced I/O function is executing. Set ‘forced I/O data’ by bit Set ‘forced I/O data enable’ by bit Click
Page 63 - ) Force on/ off Processing timing and method
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 ~ D476...
Page 64 - ) Special data register for error history; ) Description of each word
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 directly 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’ i...
Page 65 - Memory Configuration; Bit Data Area
Chapter 5 Power Supply / CPU 5-28 5.7 Memory Configuration The CPU module includes two types of memory that are available by the user. One is program memory, which is used to store the user programs written to implement a system by the user. The other is data memory, which sto res data during operat...
Page 68 - a small driver to operate it.
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
Page 69 - system and use it in case of a program is damaged.; ) Saving the user’s program on the external memory module.; Online –Read Information – I/O Information
Chapter 5 Power Supply / CPU 5-32 5.10 External Memory Module MK120S series supplies external memory module for the user 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 ...
Page 70 - Online – Flash memory – Write to external memory; ) Run the PLC with a program of external memory module
Chapter 5 Power Supply / CPU 5-33 (6) Select Online – Flash memory – Write to external memory in menu, and the following message box will displayed. (7) Turn the power of the main unit off. (8) Remove the external memory module. Through the above steps a user can save a program into the external mem...
Page 71 - Online –Write Information – Set PLC Clock
Chapter 5 Power Supply / CPU 5-34 5.11 RTC Module MK120S series supplies RTC(Real Time Clock) 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 module. Clock operation by the RTC ...
Page 73 - Chapter 6 Input and Output Specification; The following diagram shows maximum life relay for relay output.
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 use both of electric current sink and electric current source. To keep use coil load as an output module, maximum openi...
Page 74 - Digital Input Specification
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...
Page 75 - current sink and electric current source.
Chapter 6 Input and Output Specification 6-3 3) Input wiring Main unit’s wiring method is as follows. DC input specifications offered by MASTER-K120S is to be used for both electric current sink and electric current source. (1) Main unit DC24V DC24V
Page 76 - External device; Voltage output type
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...
Page 77 - Expansion Module
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 vo...
Page 78 - Digital Output Specification
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) 1...
Page 82 - L L
Chapter 6 Input and Output Specification 6-10 2) Output wiring AC100-240V FG COM0 P40 COM1 P41 COM2 P42 COM3 P43 P L L L L DC12V/24V
Page 83 - Output wiring
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 (...
Page 85 - Chapter 7 Usage of Various Functions; Chapter 7. Usage of Various Functions; ) Performance Specifications
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 programming of built-in high speed counter of MASTER-K120S. The built-in high speed counter of MASTER-K120S(...
Page 86 - ) Names of wiring terminals
Chapter 7 Usage of Various Functions 7-2 3) Names of wiring terminals Names Usage No. Terminal No. 1Phase 2Phase 1Phase 2Phase ① P00 Ch0 Input Ch0 A Phase Input Counter input terminal A Phase Input terminal ② P01 Ch1 Input Ch0 B Phase Input Counter input terminal B Phase Input terminal ③ P02 Ch2 Inp...
Page 87 - ) External interface circuit; Internal circuit; ) Wiring instructions
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 low...
Page 88 - Pulse Generator; COM; Pulse Generator
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
Page 89 - HSCST S SV CV; Designation
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 3...
Page 90 - ) Parameter Setting
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 current value of high speed counter is overflo...
Page 94 - - P40 ~ P47 are available for comparison output point.
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 comparis...
Page 95 - - Can calculates RPM of input pulse
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 pe...
Page 96 - ) Programming example; Counter mode : 2-phase multiplication mode
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) - Pr...
Page 97 - When M0 turns on, HSC starts its operation
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 can’t be used for pulse catch or ex...
Page 98 - ) Operating Explanation
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 pulse catch input contact points are internalized. Through using this contact point, short pulse signal short can be taken which can not be executed by general digit...
Page 99 - ) Do not designate HSC input points as pulse catch input.; Remark
Chapter 7 Usage of Various Functions 7-15 1) Pulse catch input contact points operate as general digital input if they are not designated as pulse catch input. 2) Do not designate HSC input points as pulse catch input. Remark
Page 100 - ) Operating Explanation; (1) Click twice the basic parameter on the project window of KGLWIN.; input signal
Chapter 7 Usage of Various Functions 7-16 7.1.3 Input Filter Function External input of MASTER-K120S selects input on/off delay 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 sig...
Page 102 - (1) Click twice the parameter on the project window of KGLWIN.; xecuting; ◎ Rising
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 condition of the task program which is moved by interrupt inputting. (3) For the details , refer to KGLWIN manual. interrupt inp...
Page 104 - PV; Fig 7.1 MV by P operation; Time
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 value which is proportional to the deviation (E : the difference between SV and PV) ② The deviation (E) is obtained by ...
Page 105 - P action is called Integration time and represented as Ti.
Chapter 7 Usage of Various Functions 7-21 (b) Integral operation (I operation) ① With integral operation, the manipulate value (MV) is increased or decreased continuously in accordance time in order to eliminate the deviation between the SV and PV. When the deviation is very small, the proportional ...
Page 107 - The D action when a constant deviation occurred is shown as Fig. 7.6; dt; Fig. 7.7 PID action with a constant deviation
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 actio...
Page 108 - normal operating state after the windup was occurred.
Chapter 7 Usage of Various Functions 7-24 (e) Integral windup All devices to be controlled, actuator, has limitation of operation. 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 actua...
Page 109 - ds
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 nu...
Page 113 - Temp
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 (sampling), 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. ② Co...
Page 114 - Ts; Period
Chapter 7 Usage of Various Functions 7-30 ⓐ Relay response method. • PID parameters are obtained by On/Off operation 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 met...
Page 115 - PID8 n S1
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 designating area is over and ...
Page 116 - PID8AT n S1
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 designating area is over and the instructi...
Page 117 - TPR; When PWM set is selected, Scan time parameter
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) (MV: 4~20mA) MASTER-K120S G7F-DA2I G7F- RD2A When PWM set is selected, Scan time parameter is disabled a...
Page 121 - Explanation
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 executes with calculated P,I,D parameter. • PID execution status registrate D0000 and the output v...
Page 122 - Description
Chapter 7 Usage of Various Functions 7-38 6) Error code list (1) PID8AT Error Code Description Corrective action H0100 Scan time setting range error Set scan time to available setting range H0200 PV setting range error Set PV setting to available setting range H0300 SV setting range error Set SV to ...
Page 125 - ) Names of parts and functions
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 termin...
Page 128 - from the AC through using another cable.; Voltage input
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 peripheral tem...
Page 129 - digital amount 1, but value less than 2.5mV can’t be converted.; Input Current
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 equals to digital amount 1, but value less than 2.5mV can’t ...
Page 130 - output; Digital input value
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 20m...
Page 131 - a) Program explanation
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 m...
Page 133 - ) Performance specifications
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 ㎃ ( in...
Page 135 - setting
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 module of AC and analog I/O is not affected by induction n...
Page 136 - ) Analog/Digital conversion characteristics; to digital amount 1, but value less than 2.5mV can’t be converted.; A/D Conversion Characteristics (Current Input 0
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....
Page 137 - Analog input
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 va...
Page 140 - ) Names of parts and functions; RUN LED
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 . RUN LED ① Indicate the operating status the G7F-DA2I Analog output terminal ② Current output External power input terminal ③ ▶ External voltage 24VDC ...
Page 141 - ) Parameter setting; ) Specify the kind of special module
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
Page 143 - ) Digital/Analog conversion characteristics; Output c
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....
Page 145 - ) Performance specification
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 resistan...
Page 146 - ) Program example; Main Unit Analog timer module
Chapter 7 Usage of Various Functions 7-62 3) Program example (1) Program explanation Program which controls on-delay time of output contact 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
Page 147 - Each of three wires at every channel has detection function.
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) Te...
Page 148 - ) Digital conversion value register; Special module; bF bE bD bC bB bA b9 b8
Chapter 7 Usage of Various Functions 7-64 3) Parameter setting 4) Digital conversion value register Ch. Detected Temperature value Digital conversion value Data register Remark 0 D4980 D4780 1 D4981 D4781 D4880 2 D4982 D4782 3 D4983 D4783 D4881 Special module #1 0 D4984 D4784 1 D4985 D4785 D4882 2 D...
Page 149 - ) Temperature conversion characteristics
Chapter 7 Usage of Various Functions 7-65 6) Temperature 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 converted value of detecte...
Page 152 - (1) A program for output of detected temperature value as a BCD value; Turns on when temperature
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 temperature value which is detected from the temperature-measuring resistor Pt 100 is displayed ...
Page 153 - Specification
Chapter 7 Usage of Various Functions 7-69 7.3 Positioning Function(DRT/DT type only) The DRT/DT type of MASTER-K120S series support 2 axes of positioning function. The purpose of positioning function is to transfer the moving objects by setting speed from the current position and stop them on the se...
Page 154 - ) Names of wiring terminal; Pulse output; Direction pulse
Chapter 7 Usage of Various Functions 7-70 2) Output Specification(P40, P41) Signal Name Rated load voltage Load voltage range Max. load current 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/Direction 3) Names of wir...
Page 155 - ) Internal circuit and wiring example
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 comm...
Page 156 - ) Positioning function
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 position) to goal address (transfer amount) for the assigned axis A)...
Page 158 - ) Operation pattern
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 ...
Page 159 - End Operation
Chapter 7 Usage of Various Functions 7-75 3) Operation Mode (1) End Operation A) With one time start command(rising edge of POSIST command), the positioning to the goal position is executed and the positioning shall be completed at the same time as the dwell time proceeds. B) This operation mode can...
Page 160 - Operation
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...
Page 161 - Continuous Operation
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 y...
Page 162 - Repeat
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 position is executed and the positioning shall be completed at the same time as the dwell time proceeds. B) The operation type of Repeat operation mode is sa...
Page 163 - ) Positioning start; The speed can be changed by the speed override instruction(POSSOR)
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 ...
Page 164 - Origin return method; Method by approximate origin (approach DOG); (2) Origin Detection when Approximate origin turns off
Chapter 7 Usage of Various Functions 7-80 7) Return to Origin(POSORG : Rising edge ↑ ) • Return to Origin (homing) is carried out to confirm 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 orig...
Page 165 - determined and it stops.; Origin Detection by approximate origin; This is the method using the approximate origin signal only.
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 ac...
Page 167 - Point
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 Driv...
Page 169 - ) Positioning parameter
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 posi...
Page 170 - Backlash Compensation Amount
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 rotat...
Page 171 - rigin return-Low speed; Dwell Time
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 origi...
Page 172 - ) Positioning parameter
Chapter 7 Usage of Various Functions 7-88 (3) JOG speed (A) JOG High Speed • JOG high speed operation has operation pattern as acceleration, constant speed, deceleration section. Therefore, acceleration section and deceleration section is controlled by JOG acceleration/deceleration time. • JOG high ...
Page 173 - Operation Mode is divided into following three kinds.; Control method
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 assigned by p...
Page 174 - Operation speed can be assigned for each operation step No.
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 ...
Page 175 - POSIST S n
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...
Page 176 - Available device; POSJOG S n1 n2; POSIST Positioning Indirect Start
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 (...
Page 177 - POSCTR S n1
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 de...
Page 178 - POSPRS S SV1
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 design...
Page 179 - PWM S SV1 SV2
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] Err...
Page 180 - POSVEL S n1 SV
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:F...
Page 181 - POSSOR S SV
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 designating are...
Page 182 - POSDST S n1 SV1 SV2
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 positioning dire...
Page 183 - POSORG S n1 SV; 플래그; Set; 영역설정
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...
Page 184 - Device
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 ...
Page 186 - Error
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 with...
Page 191 - Chapter 8 Communication Functions; Chapter 8. Communication Functions
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 facilitat...
Page 196 - All contents of data; ) Sequence of command frame
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 the command type is numerical (means a data ...
Page 197 - Continuous
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. Reading device Continuous r(R) H72 (H52) SB 5342 Reads devic...
Page 198 - ) Data type of variable
Chapter 8 Communication Functions 8-8 8.1.5 Data type It’s possible to read and write device in built-in communication. 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 Av...
Page 205 - ASCII
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 L...
Page 207 - Computer request format (PC
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 ...
Page 210 - Computer request Format (PC
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 Da...
Page 217 - from NAK to ETX is converted into ASCII and added to BCC, and sent.
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...
Page 219 - ) Parameter setting; Open a new project file from KGLWIN
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 KGLWIN and clicking twice, this window comes up. (a) When uses Ch.0 : Buil...
Page 222 - ) Flag related with operating status
Chapter 8 Communication Functions 8-32 3) Flag related with operating status (1) Sending/receiving error count for 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,2...
Page 223 - Error bit
Chapter 8 Communication Functions 8-33 • Error bit b7 b6 b5 b4 b3 b2 b1 b0 (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 sen...
Page 226 - Size
Chapter 8 Communication Functions 8-36 ⑧ The registration list ‘0’ registered in the registration list can be confirmed through a window like the following. ⑨ Double click the No. 1 for receive parameter setting and Set parameters like the following table and click ‘OK’ button. Station No. Size Mode...
Page 227 - Set parameters as the following table.
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 Non...
Page 228 - Error code
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 than capitals/sm...
Page 229 - User Defined Protocol Communication; ) Setting Communications Parameter; (1) Open a new project file from KGLWIN and select K120S as PLC type
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...
Page 230 - frame; (1) Click “List” button to activate the following window.
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 nu...
Page 231 - - It is allowed to be only 3 consecutive characters.; byte
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 ...
Page 233 - Check Rul
Chapter 8 Communication Functions 8-43 • BCC setting: set BCC when it is needed. Item 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 a...
Page 234 - Frame size; BCC calculation example>; When frame is set as below, the result of calculation is as follow.
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...
Page 237 - ■ SNDCOM Ch n1 D; Flag Set
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 (F110) Zero (F111) Carry (F112) Ch ○ n1 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ D ○ ○ ○ ○ ○ ○ 7 ○ Ch Designated communication chan...
Page 239 - Double click the number ‘0’
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
Page 241 - Double click the number 1 frame
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.
Page 242 - Program; ) Setting and program of slave station; Make the new project file and setting new parameter.
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 every 1 second period (F092 is 1second period fl...
Page 243 - Double click the frame list number ‘0’
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.
Page 245 - Set the frame number ‘1’ as below and click the BCC Setting
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.
Page 246 - You can see the frame list window which is designated as below
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 increase...
Page 247 - Modbus Protocol Communication
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 supports ASCII mode, using ASCII data and RTU mode using Hex data. Function code used in Modbus is support...
Page 248 - area; (3) Response frame uses data area as response data or error code.
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...
Page 249 - ) Modbus addressing rules
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 Inp...
Page 250 - ) Setting communication parameter
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 commu...
Page 252 - Ch; MODCOM Ch S1 S2 S3
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 (F110) Zero (F111) Carry (F112) Ch ○ S1 ○ ○ ○ ○ ○ ○ ○ ○ ○ S2 ○ ○ ○ ○ ○ ○ ○ ○ S3 ○ ○ ○ ○ ○ ○ ○ ○ 7 ○ Ch D...
Page 254 - ) Example program 1
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 suppo...
Page 255 - ) Example program 2
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 slav...
Page 256 - ) Example program 3; Writing number setting ( Writing number is 4); ) Example program 4; Writing number setting ( Writing number is 1)
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...
Page 257 - No Protocol Communication; Operands; Data; The ending condition can be designated by following two kinds.
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 convenient when there are en...
Page 258 - Receiving format can be designated as below.; (1) Open a new project file from KGLWIN and select MK120S as PLC type
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 (Receives when length of frame data is 3) H01(Receiving by last byte) H03 (Receives when last frame data is 03(ETX)) - When designated as length...
Page 259 - DRCV Ch Cw D SS
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 (F110) Zero (F111) Carry (F112) Ch ○ Cw ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ D ○ ○ ○ ○ ○ ○ ○ ○ SS ○ ○ ○ ○ ○ ○ ○ ○ 9 ○ Ch Designated communication ch...
Page 260 - DSND Ch n S SS
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 (F110) Zero (F111) Carry (F112) Ch ○ n ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ S ○ ○ ○ ○ ○ ○ ○ ○ SS ○ ○ ○ ○ ○ ○ ○ ○ 9 ○ Ch Designated communication channel n Number of data ...
Page 261 - In this example, assume that received data is as following.
Chapter 8 Communication Functions 8-71 8.4.4 Examples Assume that a electrical weighing machine sends data 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 rece...
Page 262 - ) Communication Parameter Setting
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 KGLWIN and clicking twice, this window comes up. • Designate baud rate, data bit, parity bit, stop bit,...
Page 263 - Remote connection and communication I/F module; Master station
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 ...
Page 264 - Remote connection by modem; Modem
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...
Page 265 - Remote connection by Fnet I/F module
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
Page 267 - Master
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 communication by command(Read, Write) are not available • After s...
Page 268 - Clicking List button then this window comes up.
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...
Page 269 - Chapter 9 Installation and Wiring; Chapter 9. Installation and wiring; Environment; ) Environment requirements; (6) Relative humidity outside the range of 5 to 95; ) Precautions during installing; (2) Install it on locations that are convenient for operation.; ) Heat protection design of control box; heat generated by the PLC itself and other devices.
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 installation environment, but be sure to check the following for system reliability. 1) Environment requirements Avoid installing ...
Page 270 - ) Power consumption block diagram of PLC systems; VDC line
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 converted into power 35% of that 65% dissipated as heat, i.e., 3.5/6.5 of th...
Page 271 - ) Main unit or Expansion Module handling instructions
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 ...
Page 272 - ) Mounting instructions
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 inductive load has been connected to o...
Page 274 - Main
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 con...
Page 276 - Surge absorber for lightening
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 allo...
Page 277 - Other device
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. However, when grounding it should be done conforming to below items . (2) Ground the PLC as independently as possible. Class ...
Page 278 - Chapter 10 Maintenance; Maintenance and Inspection
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 service life is semi-permanent. Howe...
Page 279 - Periodic Inspection; Check Items
Chapter 10 Maintenance 10-2 10.3 Periodic Inspection Check the following items once or twice every six 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 -....
Page 280 - Chapter 11 Troubleshooting; Basic Procedures of Troubleshooting
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...
Page 281 - Power LED is turned OFF
Chapter 11 Troubleshooting 11-2 11.2.1 Troubleshooting flowchart used when the POWER LED turns OFF. The following flowchart explains corrective 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 ...
Page 282 - ERR LED goes flickering.; Is ERR LED still flicking
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 supplied starts or the ERR LED is flickering during operation. Though warning error appears, PLC system doesn’t stop...
Page 283 - operation starts or operation is in the process.; Contact the nearest service center.; Complete; Turn the power unit off and on.
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 Contac...
Page 284 - When the I/O module doesn’t work normally.
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 procedure 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 KGLW...
Page 286 - Program cannot be written to the PC CPU; Is the mode-setting switch set the re
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 remo...
Page 287 - Troubleshooting
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 ...
Page 288 - Troubleshooting Examples; Input circuit troubles and corrective actions
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 troubles and corrective actions The followings describe possible troubles with input circuits, as well as corrective actions. Condi...
Page 289 - Output circuit troubles and corrective actions
Chapter 11 Troubleshooting 11-10 11.4.2 Output circuit troubles and corrective actions The following describes possible troubles with input circuits, as well as their corrective actions. Condition Cause Corrective Action When the output is off, excessive voltage is applied to the load. y Load is hal...
Page 290 - Sink type transistor output
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 outpu...
Page 291 - Message
Chapter 11 Troubleshooting 11-12 11.5 Error code list Error Code Message CPU state Message Cause Corrective Actions 0001h Internal system error Stop System Error Fault of some area of operating ROM, or H/W defect Contact the service center. 0002h OS ROM error Stop OS ROM Error Internal system ROM is...
Page 293 - Appendix 1 System Definitions; Appendix 1. System Definitions; You should set the communication port (COM1; Connection Option
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 ab...
Page 296 - ) Basic Parameters; The basic parameters are necessary for operation of the PLC.
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 timer’, ‘PLC operation mode’, ‘Input setting’, ‘Pulse catch’ (1) Latch area setting Set the retain area on the inner device. (2) T...
Page 297 - Appendix 2 Flag List; Appendix 2. Flag List
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 Turns on when the CPU in the...
Page 300 - Relay; Indicates operation state of communications module with a word.
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 flags can be used as general data register. (1) When FNET module is connected Relay Keyword Fun...
Page 303 - Forced I/O designation register
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 P01...
Page 305 - Appendix 3 External Dimensions; Model
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