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 1: ...series LG Industrial Systems 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 ...
Page 2: ... each symbol in this manual and on your equipment is as follows WARNING CAUTION This symbol indicates the possibility of death or serious injury This symbol indicates the possibility of injury or damage to property This is the safety alert symbol Read and follow instructions carefully to avoid dangerous situation This symbol alerts the user to the presence of dangerous voltage inside the product t...
Page 3: ... or other hardware errors However one or more outputs could be turned on when there are problems that the PLC CPU cannot detect such as malfunction of output device relay transistor etc itself or I O controller Build a fail safe circuit exterior to the PLC that will make sure the equipment operates safely at such times Also build an external monitoring circuit that will monitor any single outputs ...
Page 4: ...tion and damage to or deterioration of the product Completely turn off the power supply before loading or unloading the module Not doing so could result in electric shock or damage to the product 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 ...
Page 5: ...the product s rated voltage and the terminal layout Incorrect wiring could result in fire damage or erroneous operation Tighten the terminal screws with the specified torque If the terminal screws are loose it could result in short circuits fire or erroneous operation Be sure to ground the FG or LG terminal to the protective ground conductor Not doing so could result in erroneous operation Be sure...
Page 6: ...uit or solder the battery Mishandling of battery can cause overheating or cracks which could result in injury and fires Do not disassemble or modify the modules Doing so could cause trouble erroneous operation injury or fire Switch all phases of the external power supply off before mounting or removing the module Not doing so could cause failure or malfunction of the module Use a cellular phone or...
Page 7: ...00380 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 ...
Page 8: ...in Unit 4 1 4 1 1 60 Points Main Unit Standard 4 2 4 1 2 40 Points Main Unit Standard 4 3 4 1 3 30 Points Main Unit Standard 4 4 4 1 4 20 Points Main Unit Standard 4 5 4 1 5 30 Points Main Unit Economic 4 6 4 1 6 20 Points Main Unit Economic 4 7 4 1 7 14 Points Main Unit Economic 4 7 4 1 8 10 Points Main Unit Economic 4 7 4 2 Expansion I O Module 4 8 4 2 1 20 Point I O Module 4 8 4 2 2 10 Point I ...
Page 9: ...5 3 3 Scan Time 5 8 5 3 4 Scan Watchdog Timer 5 8 5 3 5 Timer Processing 5 9 5 3 6 Counter Processing 5 12 5 4 Program 5 14 5 4 1Classifications of Program 5 14 5 4 2 Program Execution Procedure 5 14 5 4 3 Interrupt Programs 5 15 5 4 4 Error Handling 5 17 5 5 Operation Modes 5 19 5 5 1 RUN Mode 5 19 5 5 2 STOP Mode 5 20 5 5 3 PAUSE Mode 5 20 5 5 4 DEBUG Mode Standard Type Only 5 20 5 5 5 Operation...
Page 10: ...nctions 7 1 Built in Functions 7 1 7 1 1 High Speed Counter Function 7 1 7 1 2 Pulse Catch Function 7 14 7 1 3 Input Filter Function 7 16 7 1 4 External Interrupt Function 7 17 7 1 5 PID Control Function Standard Type Only 7 19 7 2 Special Module 7 39 7 2 1 A D D A Combination Module 7 40 7 2 2 A D Conversion Module 7 49 7 2 3 D A Conversion Module 7 55 7 2 4 Analogue Timer 7 61 7 2 5 RTD input Mo...
Page 11: ...mmunication 8 57 8 3 1 Introduction 8 57 8 3 2 Basic Specifications 8 57 8 3 3 Parameter Setting 8 60 8 3 4 Instruction and examples 8 62 8 4 No Protocol Communication 8 67 8 4 1 Introduction 8 67 8 4 2 Parameter Setting 8 68 8 4 3 Instructions 8 69 8 4 4 Examples 8 71 8 5 Remote Connection and Communication I F module 8 73 8 5 1 Remote Connection 8 73 8 5 2 Communication I F Module 8 76 Chapter 9...
Page 12: ... 2 3 Troubleshooting flowchart used when the RUN LED turns off 11 4 11 2 4 Troubleshooting flowchart used when the I O devices doesn t operate normally 11 5 11 2 5 Troubleshooting flowchart used when a program can t be written to the CPU 11 7 11 3 Troubleshooting Questionnaire 11 8 11 4 Troubleshooting Examples 11 9 11 4 1 Input circuit troubles and corrective actions 11 9 11 4 2 Output circuit tr...
Page 13: ...apter 6 Input and Output Chapter 7 Usage of Various Functions Describes each kind of manufactured goods usage Chapter 8 Communication Function Describes built in communication functions Chapter 9 Installation and Wiring Describes installation wiring and handling instructions for reliability of the PLC system Chapter 10 Maintenance Describes the check items and method for long term normal operation...
Page 14: ...nstructed without using separate PID module Using built in Positioning function position control system can be constructed without using separate position control module only DRT DT type has built in positioning function 3 Battery less The user s program can be saved permanently because it is stored to EEPROM 4 When program is edited during processing it is stored to EEPROM automatically 5 Open ne...
Page 15: ...control the system KGLWIN A program and debugging tool for the MASTER K series It executes program creation edit compile and debugging A computer software KLD 150S A hand held loader used for program creation edit compile and debugging for MASTER K series I O Image Area Internal memory area of the CPU module which used to hold I O statuses Watch Dog Timer Supervisors the pre set execution times of...
Page 16: ...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 Current flows from the output terminal to the load and the PLC output turn on Output Contact Output Contact ...
Page 17: ...3 modules 2 modules Maximum number of expansion modules Cnet I F module 1 module 1 modules Economic K7M DR10 14 20 30UE Main unit Standard K7M DR DRT DT20 30 40 60U Digital I O module G7E DR10A G7E DR20A G7E TR10A G7E DC08A G7E RY08A Analog I O module G7F ADHA G7F ADHB G7F AD2A G7F DA2I G7F DA2V Analog timer G7F AT2A Expansion module Resistance Temperature Detactor G7F RD2A Cnet I F modules G7L CU...
Page 18: ...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 Communications system 1 1 1 ratio of an external device computer to main unit using a built in port 2 1 1 ratio of an external device monitoring unit to main unit using a built in RS 485 port RS 485 MASTER K120S RS 232C RS 485 MASTER K120S MASTER K120S RS 232C Monitoring Dev...
Page 19: ...ter 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 Converter Can be connected Max 32 stations G7L CUEC G7L CUEC MASTER K120S RS 232C RS 485 Converter Built in RS 485 Built in RS 485 Built in RS 485 Refer to chapter 8 communication function for details MASTER K120S MASTER K120S ...
Page 20: ...memory function Data storage memory function Application program execution function Input The input signals obtained from the machine process to appropriate signal levels for processing Output The output signals obtained from the signal processing function to appropriate signal levels to drive actuators and or displays Power Supply Provides for conversion and isolation of the PLC system power from...
Page 21: ...relay outputs 4 24 TR outputs 85 264 VAC Program capacity 10 k steps Max expansion 3 modules High speed counter 1 Phase 100 kHz 1channel 20 kHz 2channel 2 Phase 50 kHz 1channel 10 kHz 1channel Pulse catch pulse width 10 2 points 50 6 points External interrupt 10 2 points 50 6 points Input filter 0 1000ms can be designated with groups PID control function RS 232C communication RS 485 communication ...
Page 22: ...hannel G7F DA2I D A 4 channel current output D A conversion module G7F DA2V D A 4 channel voltage output Slim Type Analog timermodule G7F AT2A Points 4points Digital output range 0 200 RTD module G7F RD2A Resistance temperature detactor 4 channel Pt100 JPt100 Slim Type Standard type only G7L CUEB RS 232C 1 channel G7L CUEC RS 422 1 channel G7L DBEA DeviceNet I F module Slave G7L FUEA FieldBus I F ...
Page 23: ...IEC 61131 2 Square wave Impulse noise 1 500 V LGIS Internal Standard Electronic discharge Voltage 4 kV Discharge by contact IEC 61131 2 IEC 1000 4 2 Radiated electromagnetic field noise 27 500 MHz 10 V m IEC 61131 2 IEC 1000 4 3 Item Power supply Digital I O 24V and up Digital I O less than24V Analog I O Interface 7 Noise Immunity Fast transient burst noise Voltage 2kV 1kV 0 25kV IEC 61131 2 IEC 1...
Page 24: ...ED Indicates operating status of main unit y On Indicates local key switch or remote running mode y Off with the followings LED turns off When the supplied power to the main unit is abnormal While key switch is on stop mode Detecting an error which makes operation stop CPU Condition LED ERR LED Indicates operating status of CPU y Flickering self inspected error y Off CPU is working normal PAU REM ...
Page 25: ...TOP Stop program operation y PAU REM usage of each modules are as follows PAUSE temporary stopping program operation REMOTE designates remote driving Dip switch for Cnet I F See Chapter 5 RS 232C connector 9 pin DIN connector to connect with external devices like KGLWIN Expansion connector cover Connector cover to connect with expansion unit Terminal block cover Protection cover for wiring of term...
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 ...
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 ...
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 ...
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 ...
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 ...
Page 31: ...terminal Output contact Output common terminal Expansion cable Expansion Cable Connecting Terminal No Names Input LED Output LED Input contact Input common terminal Output contact Output common terminal Expansion cable Expansion Cable Connecting Terminal No Names Output LED Output contact Output common terminal External Power Supply Terminal DC24V Expansion cable Expansion Cable Connecting Termina...
Page 32: ... Module 1 G7E DC08A 2 G7E RY08A No Names Input LED Input contact Input common terminal Expansion cable Expansion Cable Connecting Terminal No Names Output LED Output contact Output common terminal Expansion cable Expansion Cable Connecting Terminal ...
Page 33: ...minal Analog Input Voltage current selecting jumper pin Analog Input Terminal External Power Supply Terminal DC24V Expansion Cable Expansion Cable Connecting Terminal 2 G7F ADHB No Names RUN LED Analog Input Terminal Analog Output Terminal External Power Supply Terminal DC24V Expansion Cable Expansion Cable Connecting Terminal ...
Page 34: ...N LED Analog Output Terminal Expansion Cable Expansion Cable Connecting Terminal External Power Supply Terminal DC24V 4 3 3 A D Conversion Module No Names RUN LED Analog Input Terminal Analog Input Voltage current selecting jumper pin External Power Supply Terminal DC24V Expansion Cable Expansion Cable Connecting Terminal 24V 24G Input Select Input CH3 CH2 CH1 CH0 CH0 I0 CH1 CH2 CH3 V0 COM I1 V1 C...
Page 35: ...imer Module No Names RUN LED Analog Timer Volume Control Resistor Expansion Cable Expansion Cable Connecting Terminal 4 3 5 RTD Input Module No Names RUN LED Analog Timer Volume Control Resistor Expansion Cable Expansion Cable Connecting Terminal ...
Page 36: ...ommunication status LED Expansion cable Expansion cable connecting terminal TM TC selecting dip switch No Names RS 422 485 connector Power supply Communication status LED Expansion cable Expansion cable connecting terminal No Names Station No selecting switch Fnet cable connector 1 and 2 Expansion cable Expansion cable connecting terminal Communication status LED ...
Page 37: ...n or real time clock MASTER K120S series have two option modules External memory module and RTC module No Names Option module Connector No Names Station No selecting switch Pnet cable connector Expansion cable Expansion cable connecting terminal Communication status LED No Names Station No selecting switch NA DeviceNet cable connector Expansion cable Expansion cable connecting terminal Baud rate s...
Page 38: ...ge DC 5V Output 1 Output current 1 2A 2A Output voltage DC 24V Output 2 Output current 0 2A Power supply status indication PWR LED On when power supply is normal 5 1 2 Economic Type Items K7M DR10UE K7M DR14UE K7M DR20UE K7M DR30UE Rated voltage 85 264 VAC Rated frequency 50 60 Hz 47 63 Hz Rated current 0 3A 110VAC 0 15A 220VAC 0 5A 110VAC 0 25A 220VAC Inrush current Up to 30A Efficiency 65 min ra...
Page 39: ... Basic 30 Application 277 Processing speed 0 1µs step Program capacity 10ksteps I O points 20 30 40 60 P P000 P63F I O relay TR M M000 M191F Auxiliary relay K K000 K31F Keep relay L L000 L63F Link relay F F000 F63F Special relay T 100msec T000 T191 192 points 10msec T192 T250 59 points 1msec T251 T255 5 points Adjustable by parameter setting Timer C C000 C255 Counter S S00 00 S99 99 Step controlle...
Page 40: ... function Internal External preset function Latch Counter function RPM function Comparison Output function Operation Specification N0 of control axis 2 Axis Control method Point to Point Speed Control Control unit Pulse Positioning data 20 data axis Operation step N0 1 20 Positioning Positioning method Absolute Incremental Operation method Single Repeat Operation mode End Keep Continuous Address r...
Page 41: ...am capacity 2ksteps I O points 10 14 20 30 P P000 P63F I O relay M M000 M191F Auxiliary relay K K000 K31F Keep relay L L000 L63F Link relay F F000 F63F Special relay T 100msec T000 T191 192 points 10msec T192 T250 59 points 1msec T251 T255 5 points Adjustable by parameter setting Timer C C000 C255 Counter S S00 00 S99 99 Step controller Memory device D D0000 D4999 Data register Operation modes RUN...
Page 42: ...Capacity 1 phase 10 kHz 2 channel 2 phase 5 kHz 1 channel Counter function 4 different counter modes as following 1 phase operation mode 2 phase CW CCW mode 1 phase Pulse Direction mode 2 phase Multiplication mode MUL4 High speed counter Additional function Internal External preset function Latch Counter function RPM function Comparison Output function Pulse catch Minimum pulse width 50 4 points E...
Page 43: ... a scan processing it is executed only one time when the power is applied or reset is executed It executes the following processing I O reset Execution of self diagnosis Data clear Allocating I O address and type Program is sequentially executed from the first step to the last step Program operation processing The contents stored in the output image area is output to output part when operation pro...
Page 44: ...ut line voltage to the power supply falls down below the rated voltage When momentary power failure within 10ms occurs the CPU maintain operation processing But If is exceeds 10ms CPU stop processing and all output turns off And The re start process is executed as the power is re applied 1 Momentary power failure within 10 ms 2 Momentary power failure exceeding 10 ms REMARK 1 Momentary power failu...
Page 45: ...me Communications service processing time 2 Scan time differs in accordance with the execution or non execution of interrupt programs and communications processing etc 2 Flags Scan time is stored in the following system flag area F50 Maximum scan time unit 1 ms F51 Minimum scan time unit 1 ms F52 Current scan time unit 1 ms 5 3 4 Scan Watchdog Timer 1 Watchdog timer is used to detect a delay which...
Page 46: ...en the current value reaches the preset value the timer output relay turns on When the timer input condition is turned off the current value becomes 0 and the timer output relay is turned off 2 Off delay timer The current value of timer set as preset value and the timer output relay is turned on when the input condition of TOFF instruction turns on When the input condition is turned off the curren...
Page 47: ... on The current value can be cleared by the RST instruction only 4 Monostable timer In general its operation is same as off delay timer However the change of input condition is ignored while the timer is operating decreasing When current value reaches preset value the timer output relay is turned off and current value is cleared Timer input condition Timer output relay Preset value Current value T...
Page 48: ...ndition of TRTG instruction while the timer is operating decreasing The current value of retriggerable timer will be set as preset value whenever the input condition of TRTG instruction is turned on REMARK The Maximum timing error of timers of MASTER K series is 1 scan time the time from 0 step to timer instruction Timer input condition Timer output relay Preset value PV Current value PT On operat...
Page 49: ...ent value reaches the preset value When the reset input is turned on the counter output relay and current value is cleared as 0 2 Down counter CTD When the CPU is switched to the RUN mode the current value is set as preset value The current value is decreased by 1 with the rising edge of counter input signal The counter output relay is turned on when the current value reaches 0 3 Up down counter T...
Page 50: ...en the next counter input signal is applied 5 Maximum counting speed 1 The maximum counting speed of counter is determined by the length of scan time Counting is possible only when the on off switching time of the counter input signal is longer than scan time times sec 1 100 C speed counting Maximum max s t n where n duty ts scan time 2 Duty Duty is the ratio of the input signal s on time to off t...
Page 51: ...specified with parameter setting Process driven interrupt program PDI The PDI programs are executed when external interrupt input is applied and the corresponding interrupt routine is enabled by EI instruction High speed counter driven interrupt program HSCDI This interrupt programs are executed when comparison task signal is applied Standard Type only Subroutine program The subroutine programs ar...
Page 52: ...sponding interrupt routine should be written after END instruction Refer chapter 4 for details If interrupt routines are not matched with parameter settings an error occurs and the operation of CPU will be stopped 2 To execute an interrupt routine use the EI instruction to enable the corresponding interrupt The interrupt routine is not executed if an interrupt factor occurs before execution of an ...
Page 53: ...types of MK120S series Available TDI is P000 P007 8 points assigned in parameter setting and period can be designated for each other In economic types Available TDI is P000 P003 4 points 4 Process driven interrupt In standard types of MK120S series Available PDI is P000 P007 8 points assigned in parameter setting In the parameter setting window TDINT indicates time driven interrupt and INT indicat...
Page 54: ...rnal device malfunction 2 Operation mode at error occurrence In case of error occurrence the PLC system write the error contents the corresponding flags and stops or conti nues its operation complying with its operation mode 1 PLC hardware defect The system enters into the STOP state if a fatal error such as the CPU module defect has occurred and continues its operation if an ordinary error such a...
Page 55: ...al devices If a fatal error is detected the system ent ers into the STOP state and if an ordinary error is detected the system continues its operation REMARK 1 In occurrence of a error the state is to be stored in the representative system error flag F006 2 For details of flags refer to Chapter 11 Troubleshooting ...
Page 56: ...n processing contents I O Refresh and program operation are executed 1 Interrupt programs are executed with the detection of their start up conditions 2 Normal or abnormal operation and mounting conditions of the loaded module are checked 3 Communications service or other internal operations are processed The first scan start in the RUN mode Initialize data area according to the preset restart mod...
Page 57: ...l operation and mounting conditions of the loaded module are checked 3 Communications service or other internal operations are processed 5 5 4 DEBUG mode Standard type only In this mode errors of a program are searched and the operation sequence is traced Changing into this mode is only possible from the STOP mode In this mode a program can be checked with examination on its executi on state and c...
Page 58: ...9 5 5 5 Operation Mode Change 1 Operation mode change methods The following method is used to change the operation mode 1 Change by the mode setting switch of CPU module Standard type only 2 Change by the KGLWIN connected with the CPU module communications port 3 Change by the KGLWIN connected to the remote CPU module through Cnet I F 4 Change by the STOP instruction during program execution 5 Cha...
Page 59: ...U REM Mode setting switch position Mode Change Mode change by the KGLWIN Mode change using FAM or Cnet I F etc Remote STOP Æ Remote RUN Remote STOP Æ Remote PAUSE X X Remote STOP Æ DEBUG Remote RUN Æ Remote PAUSE Remote RUN Æ Remote STOP Remote RUN Æ DEBUG X X Remote PAUSE Æ Remote RUN Remote PAUSE Æ Remote STOP Remote PAUSE Æ Remote DEBUG X X DEBUG Æ Remote STOP DEBUG Æ Remote RUN X X PAU REM DEB...
Page 60: ... step 0 is executed after the END processing is finished When the END instruction has not been executed within the set value due to an error occurred in the PLC or the delay of a sequence program the watch dog timer will times out When a watch dog timer error is occurred all outputs of the PLC are turned OFF and the ERR LED of the CPU will flickers RUN LED will be turned OFF Therefore when use FOR...
Page 61: ...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 I O Force on off should be set for each input and output the setting operates from the time that Force I O setting enable is set This setting can be done when I O modules are not really loaded Select the set forced I O from KGLWIN Select the I O area and then double cli...
Page 62: ...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: ...utput When a user program has finished its execution the output image area has the operation results At the time of output refresh the data of the junctions which have been set to force on off will be replaced with force se tting data and the replaced data will be output However the force on off setting does not change the output image area data while it changes the input image area data 3 Precaut...
Page 64: ...opped by error occurrence the CPU stores the error occurrence time and error code to the special data register area The most recent 16 error occurring times and error codes are stored in the special data register 1 Special data register for error history Data area Description D4901 D4904 The 1st error information The 17th error information D4905 D4908 The 2nd error information Device D4961 D4964 T...
Page 65: ...ts M Keep relay 512 points K Special relay 1 024 points F Link relay 1 024 points L P00 M000 M189 M190 M191 K00 K31 F00 F63 L00 L63 Data Register D D0000 D4500 Reserved for special usage Timer preset value 256 words T000 T255 T000 Timer elapsed value 256 words Counter preset value 256 words Counter elapsed value 256 words T255 C000 C255 C000 C255 Parameter setting area Word User Program Area 10kst...
Page 66: ...odule 1 1 I O No allocation method Basically I O allocation is fixed point method the area which is not used can be used internal relay The special module is not allocated Module I O Allocation Remark Input P000 P03F Fixed 64 points Main Output P040 P07F Fixed 64 points Input P080 P08F Fixed 16 points Expansion 1 Output P090 P09F Fixed 16 points Input P100 P10F Fixed 16 points Expansion 2 Output P...
Page 67: ...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 external communication modules The lower switch is for O S download setting Don t handle this switch BUILT_IN CNET ON ROM MODE OFF Terminal block cover ON ROM MODE OFF ON ROM MODE OFF ...
Page 68: ...ower 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: ...program on the external memory module 1 Turn the power of the base unit off 2 Install the memory module When only main unit is used Connect to the expansion connector of the basic unit When expansion units are used Connect to the expansion connector of the last connected expansion unit 3 Turn the power of the main unit on 4 Connect KGLWIN and PLC 5 Select Online Read Information I O Information in...
Page 70: ...1 Turn the power of the main unit off 2 Install the memory module When only main unit is used connect to the expansion connector of the main unit And when expansion unit is used connect to the expansion connector of the last connected expansion unit 3 Turn on the power of the main unit Through the above steps the user can operate the PLC with program stored in the external memory module 1 When the...
Page 71: ...eration module should be attached to the expansion slot of main unit or expansion module Clock operation by the RTC function is continued with a super capacitor when the CPU is powered off 5 11 1 Structure 5 11 2 Usage 1 Read RTC data 1 Read RTC data from KGLWIN Select Online Write Information Set PLC Clock in menu Following message box will be displayed Installation connector ...
Page 72: ...llowings are the memory address of preset data and an example program Description Data register Area Word Upper byte Lower byte Data BCD format D4993 Lower 2 digits of year Month H0207 D4994 Day Hour H1011 D4995 Minute Second h5324 D4996 Higher 2 digits of year Date H2001 Example 2002 7 10 11 53 24 Monday M1904 RTC data change bit When the M1904 bit is switched on the new data in D4993 D4996 will ...
Page 73: ... to use 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 second off The following diagram shows maximum life relay for relay output Frequency 10 000 100 50 30 20 10 100 A 10 5 3 2 1 0 5 Opening shutting of electric current AC 125V r load DC 30V r load AC 250V r load ...
Page 74: ... P3 9mA Economic Type P0 P1 9mA Operating voltage range DC20 4 28 8V ripple less than 5 Max simultaneous input points 100 simultaneously On On voltage On current DC19V or higher 5 7 mA or higher Off voltage Off current DC6V or lower 1 8 mA or lower Input impedance Approx 3 3 kΩ Standard Type P0 P3 2 7 kΩ Economic Type P0 P1 2 7 kΩ Off On 0 1 2 5 10 20 50 100 200 500 1000ms Default 10ms Response ti...
Page 75: ...utput 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 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 COM Power for sensor Output 0V IN COM Power for sensor Output 0V Voltage output type IN COM Output 0V Power for sensor 7mA Power for sensor IN COM Output 0V Constant current Same power for sensor and input 7mA 7mA 7mA ...
Page 77: ...le less than 5 Max Simultaneous input points 100 simultaneously On On voltage On current DC19V or higher 5 7 mA or higher Off voltage Off current DC6V or lower 1 8 mA or lower Input impedance Approx 3 3 kΩ Off On 0 1 2 5 10 20 50 100 200 500 1000ms Default 10ms Response time On Off 0 1 2 5 10 20 50 100 200 500 1000ms Default 10ms Common terminal 6 points com 4 points com 12 points com Operating in...
Page 78: ...d voltage current DC24V 2A r load AC220V 2A COS Ψ 1 1 point 5A 1COM Min load Voltage current DC5V 1mA Max load voltage current AC250V DC110V Current leakage when off 0 1mA AC220V 60Hz Max On off frequency 1 200 times hr Surge Absorber None Mechanical More than 20 000 000 Rated on off voltage current load 100 000 or more AC200V 1 5A AC240V 1A COSΨ 0 7 100 000 or more AC200V 1A AC240V 0 5A COSΨ 0 35...
Page 79: ...mA Max load voltage current AC250V DC110V Current leakage when off 0 1mA AC220V 60Hz Max On off frequency 1 200 times hr Surge Absorber None Mechanical More than 20 000 000 Rated on off voltage current load 100 000 or more AC200V 1 5A AC240V 1A COSΨ 0 7 100 000 or more AC200V 1A AC240V 0 5A COSΨ 0 35 100 000 or more Life Electrical DC24V 1A DC100V 0 1A L R 7ms 100 000 or more Off On 10 ms or lower...
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 ...
Page 81: ... DRT Type P40 P43 0 1A 1point DT Type P40 P41 0 1A 1point Current leakage when off Less than 0 1mA Voltage drop when on Less than DC0 3V Surge Absorber Zener diode Inrush current Less than 4A 10ms Off On 0 2 ms or lower Response time On Off 0 2 ms or lower Operation indication LED is on at on status of output R2 R 3 24V TR1 P40 P41 Internal Circuit P C R2 R 3 24V TR1 P42 P43 Internal Circuit 1 Out...
Page 82: ...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: ...0V Current leakage when off 0 1mA AC220V 60Hz Max on off frequency 1 200 times hr Surge Absorber None Mechanical More than 20 000 000 Rated on off voltage current load 100 000 or more AC200V 1 5A AC240V 1A COSΨ 0 7 100 000 or more AC200V 1A AC240V 0 5A COSΨ 0 35 100 000 or more Life Electrical DC24V 1A DC100V 0 1A L R 7ms 100 000 or more Off On 10 ms or lower Response time On Off 12 ms or lower Op...
Page 84: ...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 or lower Max Voltage drop when on DC 1 5V or lower Surge Absorber Clamp diode Off On 2 ms or lower Response time On Off 2 ms or lower Common method 10 points 1COM Operation indication LED is on at on status of output REMARK 1 Refer to 7 2 Special Functions for the special modules L...
Page 85: ... comparison value turns on the output contact points or executes interrupt program Additional function RPM function Calculate the RPM Rotates Per Minute of input pulse 1 Performance Specifications Items Specifications Standard Type Economic Type Points 1 phase 4 points 2 Phase 2 points 1 phase 2 points 2 Phase 1 points Max counting speed 1 phase 100kHz 2 phase 50kHz Ch0 Ch1 1 phase 20kHz 2 phase 1...
Page 86: ...nput terminal P05 Ch1 Preset 24V Preset input terminal P06 Ch2 Preset 24V Ch2 Preset 24V Preset input terminal Preset input terminal P07 Ch3 Preset 24V Preset input terminal COM0 Input Common Input common terminal Standard Type 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...
Page 87: ... input Ch2 Preset input Off 6V or lower On 20 4 28 8V P07 Ch3 Preset input Off 6V or lower Input COM 0 Common 5 Wiring instructions A high speed pulse input is sensitive to the external noise and should be handled with special care When wiring the built in high speed counter of MASTER K120S take the following precautions against wiring noise 1 Be sure to use shielded twisted pair cables Also provi...
Page 88: ... 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: ...set value If current value is greater than 2 147 483 647 carry flag F18 turns on and and it turns off when input condition turns off If HSC designated as ring counter carry flag is set when current value reaches set value If current value is smaller than 2 147 483 648 borrow flag F19 turns on and and turns off when input condition turns off If designated as ring counter if current value is 0 borro...
Page 90: ...ts from 0 to set value The carry flag turns on when the current value of high speed counter reaches set value during up counting and current value is changed to 0 The borrow flag turns on when the current value of high speed counter is reaches 0 during down counting and current value is changed to set value 1 When set value is out of range 2 2 147 483 647 Ring counter setting error h 11 occurs and...
Page 91: ...value decreases by 1 at the rising edge of A Phase pulse when A phase is High state c 2 phase CW CCW mode Current value increases by 1 at the rising edge of A Phase pulse when B phase is low state Current value increases by 1 at the rising edge of B Phase pulse when A phase is low state A phase input pulse Current value B phase input pulse Current value A phase input pulse 1 2 3 4 5 B phase input ...
Page 92: ...edge of A Phase pulse when B phase is low At the rising edge of B Phase pulse when A phase is low At the falling edge of B Phase pulse when A phase is high 3 Preset setting a Internal Preset Set internal preset area and preset value Current value of high speed counter is replaced with preset value at the rising edge of internal preset device b External Preset Set external preset area and preset va...
Page 93: ...mparison 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 Latches CV 0 Current value Time Latches CV When power supply is off When is Stop or Pause When input condition of HSCST is off Current value Output Contact Input pulse 98 99 100 101 102 ...
Page 94: ... point If SV2 is less than SV1 SV2 setting error h 12 occurs and zone comparison set is disabled c Comparison Task If Comparison Task is selected in parameter window corresponding interrupts is enabled When current value of HSC is equal to SV1 corresponding interrupt program is executed For the details about programming refer to KGLWIN User s Manual Current value Input pulse 999 1000 2000 2001 Out...
Page 95: ...urrent RPM a Examples of Program Refresh cycle 1000ms Pulses per rotate 60 RPM save area D0 ⓐ Last value 500 Assumption Current value 1000 RPM 1000 500 60 000 60 1000 500 ⓑ Last value 1000 Current value 2000 RPM 2000 1000 60 000 60 1000 1000 ⓒ Last value 2000 Current value 4000 RPM 4000 2000 60 000 60 1000 2000 1000ms 2000ms 3000ms ⓐ 500 ⓑ 1000 ⓒ 2000 Current value Time Input pulse D0 D1 1000 2000...
Page 96: ...0 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 None Comparison output Output mode Zone comparison set SV1 10 000 SV2 20 000 Output point P43 RPM setting Refresh cycle 100 10ms Pulses per rotate 60 RPM save area D100 ...
Page 97: ...n 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 external interrupt Duplicated designation may cause faults ...
Page 98: ...n this case through pulse catch function even narrow interval of pulse signal as 10 min can be detected 2 Minimum input pulse width Type Standard Economic 10 2 points P0 P1 None 50 6 points P2 P7 4 points P0 P3 3 Operating Explanation input signal input image data step executing contents scan1 CPU senses input when pulse signal min 10 is input then saves the status scan2 used to turn on the region...
Page 99: ...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: ...the trouble by miss operation of input signal may be prevented because the signal which is shorter than set up value is not adopted 2 Operating Explanation narrower width pulse than input correction no is not considered as input signal 3 Using method 1 Click twice the basic parameter on the project window of KGLWIN 2 The value of filter can be set up as one of 0 1 2 5 10 20 50 100 200 500 1000ms t...
Page 101: ...ernal interrupt is decreased by using other interrupt time driven interrupt and HSC driven task 3 The execution conditions of external interrupt is divided into following 3 kinds Rising edge Interrupt occurs at rising edge of external Interrupt contact point Falling edge Interrupt occurs at falling edge of external Interrupt contact point Rising falling edge Interrupt occurs at both edge of extern...
Page 102: ...GLWIN 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 input contact No interrupt input executing condition Rising Falling Rising Falling Time driven Interrupt execution periodic set ...
Page 103: ...ions that are proportional P integral I and derivative D The characteristics of the PID function of MASTER K120S is as following the PID function is integrated into the CPU module Therefore all PID control action can be performed with instruction PID8 PID8AT without any separated PID control module P operation PI operation PID operation and On Off operation can be selected easily PWM Pulse Width M...
Page 104: ... to the SV swiftly but it may causes a bad effect like oscillations If the Kp is too small oscillation will not occur However the PV reaches to the SV slowly and an offset may appear between PV and SV shown in the Fig 7 2 The manipulation value MV varies from 0 to 4 000 User can define the maximum value of MV MV_MAX and minimum value MV_MIN within the range 0 4 000 When an offset remains after the...
Page 105: ...urred is shown as the following Fig 7 3 Fig 7 3 The integral action with constant deviation The expression of I action is as following As shown in the expression Integral action can be made stronger or weaker by adjusting integration time Ti in I action That is the more the integration time the longer the integration time as shown in Fig 7 4 the lesser the quantity added to or subtracted from the ...
Page 106: ...viation by producing MV which is proportioned with the change velocity a velocity whose deviation changes at every constant interval in order to eliminate the deviation D action gives quick response to control action and has an effect to reduce swiftly the deviation by applying a large control action in the direction that the deviation will be eliminated at the earlier time that the deviation occu...
Page 107: ...sion 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 d PID action PID action controls the control object with the manipulation quantity produced by P I D action PID action when a given deviation has occurred is shown as the following Fig 7 7 Fig 7 7 PID action with a constant deviation ...
Page 108: ...ormal operating state after the windup was occurred The Fig 7 8 shows the PV and MV of PI control system when the windup occurs As shown as the Fig 7 8 the actuator is saturated because of the large initial deviation The integral term increase until the PV reaches to the SV deviation 0 and then start to decrease while the PV is larger than SV deviation 0 However the MV keeps the saturated status u...
Page 109: ...rm K proportional gain constant Ti integral time e s deviation value By derivation about t we can obtain e Ti K dt dI where e SV PV deviation value The digitized formula is as following 1 n e Ti K h n I n I where h sampling period 1 n e Ti Kh n I n I c D control The continuous formula of derivative term is as following dt dy KTd D D dt d N Td N high frequency noise depression ration y the object t...
Page 110: ... state Operation mode Select automatic or manual operating mode Manual operate range When manual operation is designates manual operation value designates input range 0 4000 Output limit value Designate minimum and maximum values of available manipulate value range 0 4000 High frequency noise removal ratio high frequency noise removal ratio is used for derivative control operation and shows the ra...
Page 111: ...sable 0 disable P operation 2 1 enable 1 enable 0 disable PI operation 3 1 enable 1 enable 1 enable 0 disable PID operation 4 1 enable 0 disable 0 disable P operation PWM output 5 1 enable 1 enable 0 disable PI operation PWM output 6 1 enable 1 enable 1 enable 1 enable PID operation PWM output 7 0 disable 0 disable 0 disable 0 disable On Off operation PWM set PWM Pulse Width Modulation is a output...
Page 112: ...s that The actual range of Bias is 2000 2000 namely 0 2000 represents 0 2000 and 2001 4000 represents 1 2000 Example If offset SV PV is 100 Bias should be 100 If offset SV PV is 100 Bias should be 2100 SV Target and PV Current SV setting value the designated value and PV process value present value of MK120S PID operation have the range 0 4000 The range is set with the consideration of the resolut...
Page 113: ...tc to digital value that are the output of A D convert module ⓐ When using sensor and A D conversion module Assume that PID control is used for temperature control with Pt100 operation range 200 C 600 C and the goal value is 100 C The equivalent digital output of A D module current input range 4 20mA is 1500 if the A D module outputs 0 4mA with 200 C and 4000 20mA with 600 C Therefore the input of...
Page 114: ...ation will be occur at the SV value ⓑ Process reaction curve method PRC method PID parameters are obtained by step response of process It is useful fo r time 1st order time delay system expressed as following 1 Ts e K Ls Obtained parameters may not accurate if the process can t approximated to 1st order system In this case use relay response method SV Period Amplitude MV 80 of SV MV 4000 Time dela...
Page 115: ...cution status registration area PID8 n S1 a Usage when the condition of execution is on PID operation executes n is registration No at parameter 0 7 b Example program When the input condition M0 turns on PID operation executes at no 2 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 Done ...
Page 116: ...n of execution is on PID auto tuning operation executes and calculates P I D constant n is registration No at parameter 0 7 S1 is execution status and P I D constant registration area b Example program When the input condition M0 turns on PID operation executes at no 2 parameter PID execution status stores D0000 and the output value of control result stores D0001 and P I D constant sequentially st...
Page 117: ...ing 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 and this value is ignored When PWM is designated this window is activated and PID function operates by PWM period ...
Page 118: ...e 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 D4780 Digital value of RTD module Ch0 BIAS setting 0 If only P control is used input proper value other 0 EN_P EN_I EN_D setting input proper values PWM setting If enabled input proper values SV Ramp setting Inp...
Page 119: ...onversion value 0 4000 is stored to D4780 PID8AT instruction will calculate manipulate value MV 0 4000 based on the SV and PV from RTD module Simultaneously the PID8AT instruction will calculate P I and D parameters The END bit of auto tuning status device will be 1 when the auto tuning is completed Then MASTER K120S will start PID operation with PID parameters that are calculated by A T module b ...
Page 120: ...lue other 0 EN_P EN_I EN_D setting input proper values PWM setting If enabled input proper values SV Ramp setting Input proper values Delta MV setting Input proper values PID Algorithm setting Select proper algorithm d RTD module setting Channel setting use channel 0 RTD Type setting Pt100 Digital conversion data registration area D4780 e D A module setting Channel setting use channel 0 output ran...
Page 121: ...0 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 signal and output to the actuator power converter When the input condition M2 turns off output 0 to the D A conversion module When M0002 turns on auto tuning starts Calculated P I D parameters are saved to D0002 D0003 D0004 When auto tuning ends M00...
Page 122: ...put limit value to available setting range and Set it greater than minimum output limit value H0500 High frequency noise removal ratio setting error Set this parameter to available setting range H0600 Mode command set error Available mode command set are P PI PID PWM for each On Off only H0700 PWM period setting error Set PWM period to available setting range H0800 P gain setting error Set P gain ...
Page 123: ...alue CH1 temperature D4986 CH0 D A value CH0 D A value CH2 A D value CH2 D A value CH2 D A value CH2 A T value CH2 temperature D4987 2 CH1 D A value CH3 A D value CH3 D A value CH3 D A value CH3 A T value CH3 temperature D4988 CH0 A D value CH0 A D value CH0 A D value CH0 D A value CH0 D A value CH0 A T value CH0 temperature D4989 CH1 A D value CH1 A D value CH1 A D value CH1 D A value CH1 D A val...
Page 124: ...og Input Absolute max input Current DC 24 Voltage DC 0 10V External load resistance 2 1 Output range Current DC 0 20 External load resistance 510Ω DC 4 20 External load resistance 510Ω Classified by parameter Digital Input 12Bit 0 4000 Voltage Current selection Separated from terminal No of channel 1Channel 1 module 1Channel 2 module Voltage DC 12V Analog output Absolute max output Current DC 24 V...
Page 125: ...ng Voltage Input Connect upper parts by jumper pins Current Input Connect lower parts by jumper pins Analog output terminal Voltage output Current output Only one type of output Current or Voltage is available on a module External power input terminal External voltage 24VDC needs to this terminal Extension cable This cable is used to connect while analog mixture module is used Extension cable conn...
Page 126: ...t Only one type of output Current or Voltage is available on a module External power input terminal External voltage 24VDC needs to this terminal Extension cable This cable is used to connect while analog mixture module is used Extension cable connector The connector connects extension cable when extended module is used V0 I0 COM0 C V0 I0 COM0 CH0 INPUT V V I I OUTPUT V V I I OUTPUT Input Select C...
Page 127: ...onversion method is as below scaling conversion value A D conversion data of 0 20 800 x 4000 3200 example in case of 8 input at range 0 20 before the scaling conversion 8 5 1600 after the scaling conversion 1600 800 x 1 25 1000 scaling conversion value D A conversion data of 4 20 x 3200 4000 800 example in case of 1000 output at range 4 20 current output value before the scaling conversion 1000 x ...
Page 128: ... with oil for a long time it may cause of electric leakage so that it gets broken or miss operation during wiring Be sure to connect with care of polarity while connecting to external 24V DC power supply In case of wiring with high voltage line or generation line it makes induction failure so then it may cause of miss operation and out of order 2 Wiring example a Analog input b Analog output 1 Be ...
Page 129: ...ent input 0mA becomes output 0 10mA does 2000 and 20mA does 4000 therefore input 5 equals to digital amount 1 but value less tan 5 can t be converted So abandon it Digital output value 2004 2002 2001 2000 2003 5 000V 5 0025V Input Voltage Digital output value 4000 2000 0 0V 5V 10V Analog input voltage A D conversion characteristics voltage input 2004 2002 2001 2000 2003 10 000 10 005 Input Current...
Page 130: ...exchanges to 0mA and 4 000 does 20mA Analog amount of digital input 1 equals to 5 Analog output current D A conversion characteristic voltage output Analog output voltage 10V 5V 0V 0V 0 2000 4000 Digital input value 200 2000 2001 2002 200 Digital input 200 5 0025 5V 2 5 D A conversion characteristic Current output Analog output current 20 10 0 0V 0 2000 4000 Digital input value 200 2000 2001 2002 ...
Page 131: ...090 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 on b System configuration Main Unit A D D A combination module Expansion module c Program I O allocation Main unit input P000 P03F Main unit output P050 P07F Expansion module input P080 P08F Expansion module output P090 P09F ...
Page 132: ... 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 9V is output b System configuration Main Unit A D D A combination module Expansion module c Program ...
Page 133: ...binary 0 4000 0 10VDC 2 5 1 4000 DC 0 20 5 1 4000 Maximum resolution DC 4 20 5 1 3200 Overall accuracy 0 5 Full Scale Max conversion speed 1 CH scan time Max absolute input Voltage 15V Current 25 Number of analog input point 4channels 1module Isolation Between input terminal and PLC power supply Photo coupler isolation No isolation between channels Terminal connected 2 points 16 points terminal bl...
Page 134: ... Voltage input Connect left parts by jumper pins Current input Connect right parts by jumper pins External power input terminal External voltage 24VDC needs to this terminal Extension cable This cable is used to connect while analog input module is used Extension cable connector The connector connects extension cable when extended module is used 24V 24G Input Select Input CH3 CH2 CH1 CH0 CH0 I0 CH...
Page 135: ...ic current allowance Thicker than Max size of wire AWG22 0 3 is better If wire is put near to high temp radiated device or contacted with oil for a long time it may cause of electric leakage so that it gets broken or miss operation during wiring Be sure to connect with care of polarity while connecting to external 24V DC power supply In case of wiring with high voltage line or generation line it m...
Page 136: ...rrent input 0mA becomes output 0 10mA does 2000 and 20mA does 4000 therefore input 5 equals to digital amount 1 but value less tan 5 can t be converted So abandon it Digital Output Value 2004 2002 2001 2000 2003 5 000V 5 0025V Voltage Input Digital Output Value 4000 2000 0 0V 5V 10V Analog Input Voltage A D Conversion Characteristics Voltage Input 2004 2002 2001 2000 2003 10 000 10 005 Current Inp...
Page 137: ...3000 P091 is on When digital value of channel 2 is the same or more than 2000 and the same or less than 3000 P092 is on When digital value of channel 3 is the same or more than 2000 and the same or less than 3000 P093 is on b System configuration ⓐ Analog input channel 0 1 Voltage input 0 10VDC channel 2 3 Current input DC 4 20 ⓑ Parameter setting ⓒ System configuration Main Unit A D conversion mo...
Page 138: ...Chapter 7 Usage of Various Functions 7 54 c Program ...
Page 139: ...tal Output 12bit 0 4000 Number of output 4channels 1module Max absolute output DC 24 DC 12V DC 0 20 5 1 4000 Maximum resolution DC 4 20 6 25 1 3200 2 5 1 4000 Overall accuracy 0 5 Full Scale Max conversion speed 0 5 CH scan time 1 CH scan time Isolation Between input terminal and PLC power supply Photo coupler isolation No isolation between channels Terminal connected 16 points terminal block 8 po...
Page 140: ...ut External power input terminal External voltage 24VDC needs to this terminal Extension cable This cable is used to connect while analog output module is used Extension cable connector The connector connects extension cable when extended module is used 24V 24G CH0 24V I I I I I I I I CH1 CH2 CH3 G7F DA2I PROGRAMMABLE LOGIC CONTROLLER V0 V0 V1 V1 V2 V2 V3 V3 G7F DA2V PROGRAMMABLE LOGIC CONTROLLER ...
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 ...
Page 142: ...to high temp radiated device or contacted with oil for a long time it may cause of electric leakage so that it gets broken or miss operation during wiring Be sure to connect with care of polarity while connecting to external 24V DC power supply In case of wiring with high voltage line or generation line it makes induction failure so then it may cause of miss operation and out of order 2 Wiring 1 B...
Page 143: ...t 0 outputs analog amount 4mA 4000 does 20mA Digital input 1 equals to 6 25 of analog amount Output voltage D A conversion characteristics Current output Output voltage 20mA 12mA 4mA 0V 0 2000 4000 Digital nput 2004 2000 2001 2002 2003 Digital input 2005 12 006 12 000 6 25 Output current D A conversion characteristics Current output Output current 20 10 0 0V 0 2000 4000 Digital input 2004 2000 200...
Page 144: ...2000 10mA is output When P81 becomes On 2400 12mA is output When P82 becomes On 2800 14mA is output When P83 becomes On 3200 16mA is output When P84 becomes On 3600 18mA is output b System configuration Main Unit D A conversion module Expansion module c Program I O allocation Main unit input P000 P03F Main unit output P040 P07F Expansion module input P080 P08F Expansion module output P090 P09F ...
Page 145: ...nce Accuracy of timer 2 0 Accuracy about max value Operation method Storing data register automatically Internal current consumption 50 Number of module installment Max 3 modules Weight 200g 2 Names of parts and functions No Name Contents RUN LED Indicate the operating status the G7F AT2A On normal operating Off DC 5V power off or the G7F AT2A module fault Channel Setting up the length of timer th...
Page 146: ... 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: ...ature input device points 4Channel 1module Insulation method Photo coupler insulation between the input terminal and the PLC power supply non insulation between channels Connection terminal block 8 point terminal block 2 Current consumption 25 Voltage DC21 6 26 4V External power supply Current 70 Weight 240g 2 Names of parts and functions No Name Contents RUN LED Indicate the operating status the ...
Page 148: ...ror code D4880 D4885 Error code Description Corrective action 0 Normal run status 16 10h A disconnection detected Fix the A disconnection between RTD input module and RTD 17 11h B disconnection detected Fix the A disconnection between RTD input module and RTD 18 12h b disconnection detected A and B disconnection detected simultaneously Fix the A disconnection between RTD input module and RTD Or Fi...
Page 149: ...Digital conversion value The RTD input module as shown below outputs digital converted value of detected temperature value Range 0 4000 Digital Conversion value Detected Temp value 2000 2 Example Assume that Detected temperature value D4980 is 2345 then real temperature 234 5 and Digital conversion value D4770 is 2345 2000 2 2172 4000 2000 6000 Digital conversion value Detected temp value 0 ...
Page 150: ...ection is possible only in the channels enabled If disconnection is detected in two or more wires first disconnection error code is generated by b and then disconnection error code is generated by A or b sequentially If disconnection is detected simultaneously in A and B only disconnection error code is generated by b Connection Method Connection Example Remark 2 wire type 3 wire type 4 wire type ...
Page 151: ...ethod of connection between Pt and RTD input module are three that is 2 wired type 3 wired type and 4 w wired type The resistance of the wires used to connect Pt to RTD input module should be 10 Ω or less per wire The same wire in thickness length and kind etc should be used for each channel Connection Method Connection Example Wire Conditions 2 wired type 3 wired type 4 wired type wire resistance...
Page 152: ...is displayed on the BCD digital display by use of channel 0 of the temperature measuring resistor input module The lamp turns on when the detected temperature value is a negative number and turns off when it is a positive number b System configuration and parameter setting c Program RTD input module Main unit input contact P000 P023 Main unit output contact P040 P057 Turns on when temperature valu...
Page 153: ...ethod Address range 2 147 483 648 2 147 483 647 Speed Max 100kpps Speed setting range 5 100 000pps unit of pulse Acceleration Deceleration method Operation pattern Trapezoidal method Acceleration time 0 10 000 unit of 1ms Deceleration time 0 10 000 unit of 1ms Backlash compensation 0 1 000 Pulse Bias speed 5 100 000pps Positioning Speed limit 5 100 000pps Operation mode End Keep Continuous operati...
Page 154: ...ction output terminal P043 Direction pulse Ch1 Direction output terminal COM0 COM1 COM2 Common Common terminal P 24V External 24V supply terminal Positioning function is sensitive to the external noise and should be handled with special care 1 Be sure to use shielded twisted pair cables Also provide Class 3 grounding 2 Do not run a twisted pair cable in parallel with power cables or other I O line...
Page 155: ...tput 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 Ch0 24V DC 24V R R Motor driver For Ch1 24V P Internal circuit P40 pulse output Ch0 COM0 Output common 0 P41 pulse output Ch1 COM1 Output common 1 P42 Direction pulse Ch0 P43 Direction pulse Ch1 COM2 Output common 2 ...
Page 156: ...Items of positioning data Step No Coordinate Operation mode Operation method Goal address Speed pps Dwell time Setting 1 Absolute End Single 8 000 5 000 100 B Control by Incremental method Relative coordinate ⓐ Positioning control as much as the goal transfer amount from start address ⓑ Transfer direction shall be determined by the sign of transfer amount When transfer direction is or no sign forw...
Page 157: ...ypes of start method Forward direction start and Reverse direction start Forward direction when position address is positive number 0 included Reverse direction when position address is negative number Forward direction Reverse direction Set second operand of POSVEL instruction to 0 Set second operand of POSVEL instruction to 1 Timing diagram Please refer to the 7 3 4 Instruction for details Speed...
Page 158: ...ation step without additional start command Continuous When one operation step has over executes next operation step without Deceleration Operation methods are as follows Operation method Remark Single When one operation step is over executes next operation step No automatically Repeat When one operation step is over executes assigned step No repeatedly Step No can be assigned within 1 20 Items of...
Page 159: ...Operation action is trapezoid type operation that has acceleration constant deceleration section according to the setting speed and position data Example End operation Parameter setting No of program start command Step No Coordinate Operation mode Operation method Goal address Speed pps Dwell time 1 1 Absolute End Single 10 000 50 000 0 2 2 Absolute End Single 20 000 20 000 0 3 3 Absolute End Sing...
Page 160: ...eration mode is available to execute several operation step in order C Operation direction shall be determined by position address Example Keep operation Parameter setting No of program start command Step No Coordinate Operation mode Operation method Goal address Speed pps Dwell time 1 1 Absolute Keep Single 10 000 50 000 10 2 Absolute Keep Single 20 000 20 000 10 3 Absolute End Single 30 000 50 0...
Page 161: ...us operation command is available C With Next Move continuous operation command the operation in the acceleration constant speed deceleration section of Continuous operation is available D Operation direction shall be determined by position address and should be same direction If operation direction is not same error occurs Refer to 7 3 5 error flags Example Continuous operation Parameter setting ...
Page 162: ...peat step no change command after positioning completion of Repeat operation mode C Operation direction shall be determined by position address Example Repeat pattern Parameter setting No of program start command Step No Coordinate Operation mode Operation method Goal address Speed pps Dwell time 1 3 1 Incremental End Single 10 000 50 000 0 2 4 2 Incremental End Repeat 1 20 000 20 000 0 3 Absolute...
Page 163: ...ion stop POSCTR If encounters deceleration stop command during operation it stop operation after deceleration In case of deceleration stop by deceleration stop command in acceleration or constant speed section starts to operate current operation step again by Start command and operation step In case of deceleration stop by deceleration stop command in deceleration speed section starts to operate c...
Page 164: ...he origin return from parameter are as follows A Origin return speed high speed low speed B Origin return dwell time 2 Origin Detection when Approximate origin turns off This is the method using the approximate origin and origin signal and the action by origin return command POSORG is as follows A It accelerates to the setting origin return direction and acts by origin return high speed B In this ...
Page 165: ... stops 4 Origin Detection by approximate origin This is the method using the approximate origin signal only Speed Time Origin return low speed Origin signal Approximate origin signal Transfer amount after approximate origin ON 1 rotation of SERVO motor PG1 rotation Origin return command Deceleration when approximate return ON When origin return speed decelerates by approximate origin the origin wi...
Page 166: ...leration deceleration B If speed operand of POSJOG command as device not constant JOG speed can be changed from low speed to high speed or high speed to low speed during operation C If Jog speed is set out of the setting range error will occur and the operation does not work Jog high speed operation 5 100 000 pps Setting range Jog low speed operation 5 100 000 pps Setting unit 1pps 9 Speed Overrid...
Page 167: ...llowings F284 Ch0 Off External input stroke Low limit has not detected On External input stroke Low limit has detected F285 Ch0 Off External input stroke High limit has not detected On External input stroke High limit has detected F304 Ch1 Off External input stroke Low limit has not detected On External input stroke Low limit has detected F305 Ch1 Off External input stroke High limit has not detec...
Page 168: ...re error occurs during operation the operation will stop If external high low limit external emergency stop during the positioning operation are detected during the positioning operation it stops promptly and becomes the pulse output prohibition status Thus it is required to release the pulse output prohibition by Error reset command POSCTR For further information please refer to Error code list C...
Page 169: ...m the bias speed to the speed limit which is set by parameter Deceleration time the time required to reach from the speed limit set by parameter to the speed 0 stop state In case of using BIAS it is the time required to reach from the speed limit set by parameter to the setting bias speed Actual deceleration time Acceleration time Actual acceleration time Time Setting speed Speed limit Speed Decel...
Page 170: ...ion in command to smooth the rotation of motor and reduce the positioning time The speed to be set at this time is called Bias Speed The setting range is 5 10 000 unit 1pps at each axis Bias speed shall be used for the main axis of positioning operation by setting command origin return operation JOG operation D Speed Limit max Speed available to set for positioning operation The setting range is 5...
Page 171: ...e 5 100 000 unit 1pps Origin return Low speed The speed that acts to the constant speed section via deceleration section by origin return command Origin return low speed setting range 5 100 000 unit 1pps Remark When setting the origin return speed it is recommended to set the origin return low speed as low speed as possible If setting the low speed as too fast it may cause the incorrect origin sig...
Page 172: ...speed setting range 5 100 000 unit 1pps notices when setting the high speed Bias speed Jog high speed Speed limit B JOG Low Speed JOG low speed operation has only constant speed operation pattern JOG low speed setting range 5 100 000 unit 1pps 2 Positioning parameter Here describes Positioning parameter 1 Step No The setting range of positioning data as serial no is 1 20 Remark If step No set to 0...
Page 173: ... sign of transfer amount When transfer direction is or no sign normal direction positioning position increase direction When transfer direction is reverse direction positioning position decrease direction 3 Operation Mode End Keep Continuous Operation Mode is divided into following three kinds For the details please refer to 3 Operation mode in chapter 7 3 2 Control method Operation mode End Keep ...
Page 174: ...igned by D area 7 Dwell Time This is the waiting time before carrying out the next positioning operation after completing one positioning operation Setting range is 0 10 000 setting unit 1 Especially in case of using SERVO motor this is the data to set the waiting time by the stable stop state as positioning module is in the stop state but actual SERVO motor does not reach to the goal position or ...
Page 175: ...ep No 0 20 Error F110 Error flag turns on when designating area is over and the instruction isn t executed n When designated as 0 starting step is increased automatically POSIST S n 1 Functions When input condition turns on corresponding positioning control starts from assigned step No Positioning operation is edge triggered 2 Example program When input condition turns on Ch 0 starts positioning f...
Page 176: ... isn t executed n2 Speed 0 Low speed 1 High speed POSJOG S n1 n2 1 Functions When input condition turns on corresponding Ch Starts JOG operation If input condition turns off corresponding Ch stops JOG operation The speed can be changed during operation but the direction can t be changed 2 Example program When input condition M0000 turns on Ch 1 starts JOG operation by designated direction M0001 an...
Page 177: ...n designation 0 Deceleration stop 1 Emergency stop 2 Error reset POSCTR S n1 1 Functions Operates designated control operation at the rising edge of input condition Deceleration stop Stops positioning after deceleration Emergency stop Stops positioning immediately without deceleration Error Reset Resets occurred error and output prohibition signal 2 Example program When input condition M0000 turns...
Page 178: ...S Channel designation 0 1 Error F110 Error flag turns on when designating area is over SV1 Preset value designation 2 147 483 648 2 147 483 647 POSPRS S SV1 1 Functions Current address is changed to preset value at the rising edge of input condition 2 Example program When input condition M0000 turns on Address of Ch 0 is changed to 100 000 POSPRS Current position preset Designation Flag set ...
Page 179: ... on when designating area is over and the instruction isn t executed SV2 Off Duty 0 100 PWM S SV1 SV2 1 Functions When input condition turns on Output pulses which have period as SV1 Duty ratio of pulses is assigned by SV2 When input condition turns off PWM operation stops 2 Example program When input condition turns on Output pulses as below PWM PWM Pulse Width Modulation output Designation Flag ...
Page 180: ...en designating area is over and the instruction isn t executed SV Speed 5 100 000pps POSVEL S n1 SV 1 Functions When input condition turns on Rising edge Corresponding Ch Starts speed control by designated direction and speed 2 Example program When input condition M0000 turns on Ch 0 starts speed control by designated direction M0001 and 10kpps Speed can be changed by POSSOR instruction Operation ...
Page 181: ... over and the instruction isn t executed SV Speed 5 100 000pps POSSOR S SV 1 Functions When input condition turns on Rising edge Operation speed of corresponding Ch changed to designated speed This instruction is valid to current operating channel only Speed changing within deceleration section is not available 2 Example program When input condition M0000 turns on Operation speed of Ch 0 is change...
Page 182: ... 647 Error F110 Error flag turns on when designating area is over and the instruction isn t executed SV2 Positioning speed 0 100 000pps POSDST S n1 SV1 SV2 1 Functions When input condition turns on Rising edge corresponding Ch starts positioning by designated coordinate address and speed 2 Example program When input condition M0000 turns on Ch 0 outputs 100 000 pulses by designated coordinate M000...
Page 183: ... over and the instruction isn t executed SV Address 5 100 000pps POSORG S n1 SV 1 Functions When input condition turns on corresponding origin return operation starts Rising edge trigger After operation Current address is preset to designated origin address 2 Example program When input condition M0000 turns on Ch 0 operates return to origin function by designated direction and address After return...
Page 184: ...F0290 Position control Position control operation of Ch0 F0291 Speed control Speed control operation of Ch0 F0292 Return to origin Return to origin operation of Ch0 F0293 JOG low speed JOG low speed operation of Ch0 F0294 JOG high speed JOG high speed operation of Ch0 F0295 PWM operation PWM output operation of Ch0 F0300 Operating flag Operation status of Ch1 0 stop 1 Busy F0301 Error status Error...
Page 185: ...nt Step No Current step No of Ch0 F0330 F033F Error code Error code of Ch0 F0340 F035F Current address Current position address of Ch0 F0360 F037F Current speed Current speed of Ch0 F0400 F040F Current Step No Current step No of Ch0 F0410 F041F Error code Error code of Ch0 F0420 F043F Current address Current position address of Ch0 F0440 F045F Current speed Current speed of Ch0 M1911 M Code Enable...
Page 186: ...an t be over 20 Stop Set step No within 0 20 H34 POSDST command can t be executed during operation Operating Check if positioning operation is executing when POSDST signal occur H35 POSDST command can t be executed when output is prohibited Stop Check if output is prohibited when POSDST signal occur Output can be enabled by POSCTR command H36 POSDST command can t be executed when origin is not det...
Page 187: ...mmand occur H50 POSPRS command can t be executed during operation Operating Check if positioning operation is executing when POSPRS signal occur H51 Direction can t be changed in continuous operation Stop Set operation mode as end or keep mode H52 Emergency stop error Stop Remove the causes of emergency stop and clear error by POSCTR command H53 Stroke high limit error Stop Get rid of the external...
Page 188: ...are fixed but if they re not used you able to use them general input point You can use emergency stop with the command POSCTR 4 Positioning phase of K120S is as follow Set the input mode of a step mode driver to 1 phase input mode because motor operation mode is determined by rotating direction input CW CW CCW CCW TIMING COM DC24V Max 2m Stepping Motor Driver Pulse DC24V P40 P41 Signal name Ch0 Ch...
Page 189: ... position Limit 3 3 RA1 RA2 RA3 Power 3Phase 200VAC NF RD SD GND GND RS CS DR ER L1 L2 L3 L11 L21 CTE2 D P CN1A PP 3 SG 10 NP 2 OPC 11 COM 9 EMG 15 SON 5 RES 14 PC 8 TL 9 LSP 16 LSN 17 SG 10 SG 20 VDD 3 COM 13 ALM 18 ZSP 19 TLC 6 P15R 11 TLA 12 LG 1 SD Plate CN1E TE11 MR J2S A U V W PE PE HC MF HA FF Series motor U V W E EMG 24VDC CN2 B1 B2 SM 2 1 12 TxD RxD LG 11 5 15 LG LG LG 4 3 14 13 Plate GND...
Page 190: ...r 1 5K 1 2W to driver in series 4 Positioning phase of K120S is as follow Set the input mode of a step mode driver to 1 phase input mode because motor operation mode is determined by rotating direction input PFIN PPFIN PRIN PPRIN PZO PZO RDY INPOS 10 11 12 9 5 30 21 22 0 SPEED BRAKE ALARM A_CODE0 A_CODE1 47 48 20 45 19 A_CODE2 44 GND24 GND24 CCWLIM 24 25 SVONEN CLR 18 38 15 P24V 24G Max 2m FDA 500...
Page 191: ...ction link between MASTER K s system configuration MASTER K120S main unit RS 232C Remark MASTER K120S built in communication function supports Cnet communication without any separate Cnet I F module It must be used under the following instructions 1 Channel 0 of MASTER K120S main unit supports 1 1 communication only For 1 N system having master slave Format use RS 485 communication in channel 1 or...
Page 192: ...ion with general PC a Communication program made by C or BASIC computer language on the user s computer or utility program like FAM or CIMON can be used b Wiring method PC 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 TXD1 RXD1 are for loader communication and TXD2 RXD2 are for Cnet 1 2 3 4 5 6 7 8 9 ...
Page 193: ...ain 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 LGIS RS 232C interface Female Type MASTER K120S main unit RS 485 interface ...
Page 194: ...n 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 485 RS 232C interface Male Type 1 2 3 4 5 6 7 8 9 MASTER K120S main unit MASTER K120S main unit RS 485 interface ...
Page 195: ... ETX Frame check BCC 3 NAK Response frame MASTER K120S main unit external communication device when receiving data abnormally max 256 Bytes Header NAK Station number Command Command type Error code ASCII 4 Byte Tail ETX Frame check BCC Remark 1 Used control codes are as follows Be familiar with the following control codes Because they are importantly used for communication Codes Hex value Name Con...
Page 196: ...f the terms indicating size of all data in the Formatted data area Monitoring registration and command registration number of execution commands All contents of data 2 If it is hexadecimal H is attached in front of the number of frames like H01 H12345 H34 H12 and H89AB 2 Sequence of command frame 1 Sequence of command request frame ENQ Station No Command Fomatted data EOT BCC PLC ACK response ACK ...
Page 197: ...type Writing device Continuous w W H77 H57 SB 5342 Writes data to Byte and Word type in block unit Continuous reading Bit is unavailable CPU Status reading r R H73 H53 ST 5354 Reads flag list like PLC operation status and error information Command Main command Register No Classification Item Code ASCII code Register no ASCII code Treatment Monitoring variable register x X H78 H58 H00 H09 3030 3039...
Page 198: ...ord D Data Register Available Byte Word S Step relay Available Byte Word F Special relay Read Only All When variable is used attach 25H in front of the marking characters Data type Marking characters Examples Bit X 58H PX000 MX000 LX000 KX000 CX000 TX000 FX000 Byte B 42H PB000 MB000 LB000 KB000 CB000 TB000 FB000 Word W 57H PW000 MW000 LW000 KW000 CW000 TW000 FW000 DW000 SW000 Remark 1 Timer Counte...
Page 199: ... H4D H57 H31 H30 H30 H04 H03A4 Therefore BCC value is A4 Number of Blocks This specifies how much of the blocks composed of device length device name are in this request format This can be set up to 16 Therefore the value of Number of blocks must be set between H01 ASCII value 3031 H10 ASCII value 3030 Device length Length of device name This indicates the number of name s characters that means de...
Page 200: ... X B W included in device name of computer request Format Number of data in accordance with its data type is as follows Data In data area there are the values of hex data converted to ASCII code saved Ex 1 The fact that number of data is H04 ASCII code value H3034 means that there is hex data of 4 bytes in data Hex data of 4 bytes is converted into ASCII code in data Ex 2 If number of data is H04 ...
Page 201: ...1 address of station No 1 are read and BCC value is checked Also it is supposed that H1234 is entered in M20 and data of H5678 is entered in P001 Computer request format PC MASTER K120S main Unit Format name Header Station No Command Command type Number of blocks Variable length Format name Device length Format name Tail Frame check Ex of frame ENQ H01 r SS H02 H05 MW20 H06 PW001 EOT BCC ASCII val...
Page 202: ...030 H3035 H04 Remark 1 Number of data specifies the number to read according to the type of data Namely if the data type of device is word and number is 5 it means that 5 words should be read 2 Max of MW in number of data can be used up to 120 240bytes 3 Protocol of RSB doesn t have number of blocks 4 R r SB command of bit devices is not available Item Explanation BCC When command is lowercase r o...
Page 203: ... determined by multiplying the data number of computer request Format by the data size in below table according to memory type B W D included in variable name of computer request Format Data In data area there are the values of hex data converted to ASCII code saved Ex 1 When memory type included in variable name of computer request Format is W Word and data number of computer request Format is 03...
Page 204: ... is supposed that data in M000 and in M001 is as follow M000 H1234 M001 H5678 Computer request format PC MASTER K120S Main Unit Format name Header Station No Command Command type Device length Device name Number of data Tail Frame check Frame Example ENQ H0A r SB H06 MW000 H02 EOT BCC ASCII value H05 H3041 H72 H5342 H3036 H254D5730 3030 H3032 H04 For ACK response after execution of command PC MAST...
Page 205: ...31 H10 ASCII value 3030 Device length Name length of device This indicates the number of name s characters that means device which is allowable up to 16 characters This value is one of ASCII converted from hex type and the range is from H01 ASCII value 3031 to H10 ASCII value 3130 device Address to be actually read is entered This must be ASCII value within 16 characters and in this name digits up...
Page 206: ...is converted into ASCII and added to BCC and sent 4 Response format NAK response Format name Header Station No Command Command type Error code Hex 2 Byte Tail Frame check Frame Example NAK H20 W w SS H4252 ETX BCC ASCII value H15 H3230 H57 77 H5353 H34323532 H03 Item Explanation BCC When command is lowercase r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from NAK...
Page 207: ...W230 H00FF EOT BCC ASCII value H05 H3031 H77 H5353 H3031 H3036 H254D5732 3330 H30304646 H04 For ACK response after execution of command PC MASTER K120S main unit Format name Header Station No Command Command type Tail Frame check Frame Example ACK H01 w SS ETX BCC ASCII value H06 H3031 H77 H5353 H03 For NAK response after execution of command PC MASTER K120S main Unit Format name Header Station No...
Page 208: ...e type of device Namely if the data type of device is WORD and number of data is 5 it means that 5 WORDs should be written 2 Number of data can be used up to 240Bytes 120 Words Item Explanation BCC When command is lowercase r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and added to BCC Device length Name length of variable...
Page 209: ...is converted into ASCII and added to BCC and sent 4 Response Format NAK response Format name Header Station No Command Command type Error code Hex 2 Byte Tail Frame check Frame Example ENQ H10 W w SB H1132 EOT BCC ASCII value H05 H3130 H57 77 H5342 H31313332 H03 Item Explanation BCC When command is lowercase r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from NAK...
Page 210: ... HAA15056F EOT BCC ASCII value H05 H3031 H77 H5342 H3036 H254457303030 H3031 H414131353 0353646 H04 For ACK response after execution of command PC MASTER K120S main unit Format name Header Station No Command Command type Tail Frame check Frame Example ACK H01 W SB ETX BCC ASCII value H06 H3031 H77 H5342 H03 For NAK response after execution of command PC MASTER K120S main unit Format name Header St...
Page 211: ...lower byte of the value resulted by adding 1 byte each to ASCII values from ENQ to EOT is converted into ASCII added to BCC Register No This can be registered up to 10 0 to 9 H00 H09 and if an already registered No is registered again the one currently being executed is registered Register Format This is used to before EOT in command of Formats of separate reading of variable continuous reading an...
Page 212: ...onverted into ASCII and added to BCC and sent 4 Response Format NAK response Format name Header Station No Command Registration No Error code Hex 2Byte Tail Frame check Frame Example ACK H10 X x H09 H1132 ETX BCC ASCII value H06 H3130 H58 78 H3039 H31313332 H03 Item Explanation BCC When command is one of lower case r only one lower byte of the value resulted by adding 1 Byte each to ASCII values f...
Page 213: ...H06 MW000 EOT BCC ASCII value H05 H3031 H78 H3031 H525353 H3031 H3036 H255457 303030 H04 For ACK response after execution of command PC MASTER K120S main unit Format name Header Station No Command Registration No Tail Frame check Frame Example ACK H01 x H01 ETX BCC ASCII value H06 H3031 H78 H3031 H03 For NAK response after execution of command PC MASTER K120S main unit Format name Header Station N...
Page 214: ...BCC When command is lower case y only one lower byte of the value resulted by adding 1 byte each to ASCII values from ENQ to EOT is converted into ASCII added to BCC 3 Response Format ACK response In case that the register Format of register No is the Individual reading of device Format name Header Station No Command Registratio n No Number of Blocks Number of data Data Tail Frame check Frame Exam...
Page 215: ...d BCC value is checked And it is supposed that device M000 is registered and the number of blocks is 1 Computer request Format PC MASTER K120S Main Unit Format name Header Station No Command Registration No Tail Frame check Frame Example ENQ H01 y H01 EOT BCC ASCII value H05 H3031 H79 H3031 H04 For ACK response after execution of command PC MASTER K120S Main Unit Format name Header Station No Comm...
Page 216: ...ame Example ACK H0A R r ST Status data Format ETX BCC ASCII value H06 H3041 H52 72 H5354 1 H03 Item Explanation BCC When command is lowercase r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and added to BCC and sent 1 PLC status data data Format is 20 bytes in hex Format and converted into ASCII code Its contents are constit...
Page 217: ...at the status of MASTER K120S Main unit of station No 1 is read Computer request Format PC MASTER K120S Main Unit Format name Header Station No Command Command type Tail Frame check Frame Example ENQ H01 R r ST EOT BCC ASCII value H05 H3031 H52 72 H5354 H04 For ACK response after execution of command PC MASTER K120S Main Unit Format name Header Station No Command Command type Status data Tail Fram...
Page 218: ...device area into 64 data access blocks by WORD unit and set a communication time out limit for each block It can reestablish flag in relation with error codes and slave PLC operating mode according to parameter setting It can reset flag related with error codes and sending receiving error frequency of each parameter It monitors communication status using monitoring function of KGLWIN This communic...
Page 219: ...ameter 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 Built in RS 232C or External Cnet I F module b When uses Ch 1 Built in RS 485 ...
Page 220: ...dule G7L CUEC Notes RS232C dedicated modem and RS232C dial up modem communication can be processed only by Cnet I F module G7L CUEC supporting RS 232C not Cnet I F module G7L CUEC supporting RS 422 485 Timeout in Master Mode It s an interval waiting after sending request frame from Master MASTER K120S before receiving a response default value is 500ms Setting must be done in consideration of maxim...
Page 221: ... L K T C D S Designate station no size mode area in following windows Station no set the number of the slave or opponent station Mode click send for writing data on the slave station or receive for reading from it Size data size for reading and writing of the master station can be specified up to 60 words Area Item Sending mode Receiving mode Area from that is in the master station to temporarily ...
Page 222: ...al 32 stations Error count number is saved following area according to station Station Device Station Device Remarks 0 1 D4416 16 17 D4424 2 3 D4417 18 19 D4425 4 5 D4418 20 21 D4426 6 7 D4419 22 23 D4427 8 9 D4420 24 25 D4428 10 11 D4421 26 27 D4429 12 13 D4422 28 29 D4430 14 15 D4423 30 31 D4431 Each device contains the Information of 2 station The information of each station is saved in 1byte 3...
Page 223: ...ed b2 be set in case device area over 5 Max min current sending receiving cycle of set parameter Contents the interval between after sending and before receiving Saved area Channel 0 Saved area Channel 1 Max D4449 D4450 D4349 D4350 Min D4451 D4452 D4351 D4352 Current D4453 D4454 D4353 D4354 Error status of slave PLC 1 Error 0 Normal Reserved Operation mode of slave PLC b4 STOP b5 RUN b6 PAUSE b7 D...
Page 224: ... the master MASTER K120S main unit reads the data that is written on the output contact point of the slave MASTER K120S to write them on the output contact point of extended digital input output module G7E DR10A 1 Setting communication parameter of the master station and its program Work on the master station 0 Open a new project file and a new program for the master station Double click parameter...
Page 225: ...l Timeout Dedicated Enable 0 19200 8 None 1 RS232C null modem or RS422 485 500ms Master Click List button to activate registration list window double click list number 0 in List window then following window for Private 1 item 0 edit is open Set parameters like the following table and click OK button Station No Size Mode Area to read From Area to save to 31 1 Send M000 See the above P004 See the ab...
Page 226: ...tration 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 Area to read From Area to save to 31 1 Receive P004 See the above P009 See the above ...
Page 227: ...le 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 Slave station does not need program Baud rate parity bit data bit stop bit setting must be same with master station ...
Page 228: ...ASTER K120S When use b B d D at MASTER K120S Ex1 Use commands like DB or DD Check data type and execute again H7132 Device request Format error When omit Check Format correct and execute again H2232 Area exceeding error When exceed assigned area Ex1 MX2000 or DW5000 Correct the size within the assigned area and execute again H0190 Monitor execution error Exceeding limit of register No Rearrange th...
Page 229: ...ntents of the protocol defined by the user is vital in making the communication possible KGLWIN can download a user defined protocol frame into MASTER K120S main unit and it is saved it is not erased by power s off on For using user defined mode he she should program with instruction controlling sending of PLC as well as edit frames This section explains User Defined Protocol Communication setting...
Page 230: ...er Used in Header type Possible characters as headers are 1 alphabet letter 1 numeric number or control characters as below Available Control Code NUL H00 SOH H01 STX H02 ETX H03 EOT H04 ENQ H05 ACK H06 BEL H07 BS H08 HT H09 LF H0A VT H0B FF H0C CR H0D SO H0E S1 H0F DLE H10 DC1 H11 DC2 H12 DC3 H13 DC4 H14 NAK H15 SYN H16 ETB H17 CAN H18 EM H19 SUB H1A ESC H1B FS H1C GS H1D RS H1E US H1F DEL H7F ...
Page 231: ...ST declares commands and fixed data that are used for communication frame and ARRAY is used to input and save the data needed for interactive communication ARRAY type must be always set by byte This field is to declare commands and fixed data that will be used in communication frame and constant data to be declared by inputting ASCII input must be done within 10 characters and hex within 20 charac...
Page 232: ... headers are 1 alphabet letter 1 numeric number or control characters as below Available Control Code NUL H00 SOH H01 STX H02 ETX H03 EOT H04 ENQ H05 ACK H06 BEL H07 BS H08 HT H09 LF H0A VT H0B FF H0C CR H0D SO H0E S1 H0F DLE H10 DC1 H11 DC2 H12 DC3 H13 DC4 H14 NAK H15 SYN H16 ETB H17 CAN H18 EM H19 SUB H1A ESC H1B FS H1C GS H1D RS H1E US H1F DEL H7F Example 1 NUL ENQ 1 A Possible Example 2 NUL EN...
Page 233: ...th XOR 1 but it s used when the user masks any value to the last BCC value MUL 1 BCC method is MULTIPLY that is multiplication Check Rule MUL 2 BCC method is the same with MUL 1 but it s used when the user masks any value to the last BCC value Range H signifies header S is for segment and T is for tail Ex1 When header is set as ENQ STX tail is set as EOT ETX and the range of setting BCC is to be f...
Page 234: ...ed frame is matched with the declared frame in frame list number 3 L003 starts blinking 0 1 0 When frame receiving is done MASTER K120S main unit check if there s any match between the received frame and the declared frame in frame list If there is let the Link relay L n flag blink and save the received data in the assigned area BCC calculation example When frame is set as below the result of calc...
Page 235: ... 31 32 33 34 04 D3 05 31 32 33 34 04 44 33 05 31 32 33 34 04 D3 Hex Input 05 12 34 04 4F 05 12 34 04 34 46 05 12 34 04 4F XOR 1 The last transmitting frame BCC Type setting The kinds of segment input The value of sum check ASCII Type Hex Type ASCII Input 05 31 32 33 34 04 05 05 31 32 33 34 04 30 35 05 31 32 33 34 04 05 Hex Input 05 12 34 04 27 05 12 34 04 32 37 05 12 34 04 27 MUL 1 The last transm...
Page 236: ... 0 1 1 0 1 Mask setting Masking method is as below bit 7 bit 0 1 1 0 1 0 0 1 1 bit 7 bit 0 1 1 1 1 1 1 1 1 bit 7 bit 0 1 1 0 1 0 0 1 1 bit 7 bit 0 1 1 0 1 0 0 1 1 bit 7 bit 0 0 0 1 0 1 1 0 0 h D3 sum check value 1 complement h 2C the last sum check value 2 complement 1 complement 1 h 2D the last sum check l h D3 sum check value hFF masking value AND masking hD3 OR masking hFF Exclusive OR masking ...
Page 237: ...n starts with protocol at parameter which is designated early Ch is communication channel and n is a frame number at parameter which is designated D is a device which the communication status is stored 2 example of program When input condition is on channel 1 stars communication with protocol at user defined parameter rnumber 3 The communication state is stored M000 and the format of M000 Iis as b...
Page 238: ...with the one of 1 1 dedicated protocol communication The data in M area of the master station is sent to the slave station and the slave station saves received data in M area output as direct variable and sends the data back to the master This process repeats between the master and the slave 1 The Programming and setting communication parameter of the master station Select the communication parame...
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 ...
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 ...
Page 241: ...ation 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: ...ves output relay P004 The new value of M000 is sending again every 1 second period F092 is 1second period flag The number of sending normally stores D000 When error occurs the number of sending error stored in D001 2 Setting and program of slave station Make the new project file and setting new parameter Click the list after set the communication method and communication channel ...
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 ...
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 ...
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 ...
Page 246: ...d 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 The new value of P004 is sending again every 1 second period F092 is 1second period flag The number of sending normally is stored in D000 When error occurs the number of sending error is stored in D001 ...
Page 247: ...a LRC Tail CR LF Size 1 byte 2 bytes 2 bytes n bytes 2 bytes 2 bytes 2 RTU mode 1 It communicates using hex data 2 There s no header and tail It starts with address and finishes frame with CRC 3 It has at least 3 5 character times between two frames 4 It ignores the current frame when 1 5 character times elapse between characters 5 It checks errors using 16 bit CRC 6 Frame structure hex data Item ...
Page 248: ...only function code part Because only function codes are different Request 0000 0011 H03 Confirm 0000 0011 H03 Confirm 1000 0011 H83 5 Data area 1 It sends data using ASCII data ASCII mode or hex RTU mode 2 Data is changed according to each function code 3 Response frame uses data area as response data or error code 6 LRC Check CRC Check area 1 LRC Longitudinal Redundancy Check It works in ASCII mo...
Page 249: ... h1000 M area h2000 L area h2000 L area h3000 K area h3000 K area h4000 F area h4000 F area h5000 T area h5000 T area current value area h6000 C area h6000 C area current value area h7000 S area h8000 D area 8 Modbus addressing rules MASTER K120S main unit starts its address from 0 and matches with 1 of Modicon products data address So MASTER K120S s address n matches n 1 of Modicon products addre...
Page 250: ...9 Use RS 485 connector when using channel 2 8 3 3 Parameters Setting 1 Setting communication parameter 1 Open a new project file at KGLWIN K120S should be selected in PLC types Open a new project file for each of the master and the slave 2 Select a communication parameter at KGLWIN and double click to open the following window 1 2 3 4 5 6 7 8 9 Male Type If communication mode is ASCII Be sure to s...
Page 251: ...ication using an dedicated modem with Cnet I F module G7L CUEB S232C Dial Up Modem It s to be selected for the general communication connecting through the telephone line by dial up modem and Cnet I F module G7L CUEB Note Using Cnet I F module G7L CUEB supporting RS232C RS232C dedicated or dial up modem communication can be done but not through Cnet I F module G7L CUEC supporting RS422 485 Time ou...
Page 252: ...n when designating area is over and the instruction isn t executed S3 Device which stored communication status MODCOM Ch S1 S2 S3 1 Example program Designate slave station No function code address No of reading When input condition M0020 turns on MODBUS communication starts Receiving data are stored D1000 and communication status is stored to M100 When operates as slave MASTER K120S responses to m...
Page 253: ...ding code of the slave station for the master station to prevent the master station time out error when request command processing takes time The master station marks an error code and waits for a certain time without making any second request 06 Slave Device Busy Error when request command processing takes too much time The master should request again 07 Time Out Error when exceeds the time limit...
Page 254: ...are redundancy Data is sent starting from the low bit by byte unit If the deficient bit of a byte is filled with 0 An example of sending the above data is as Following example 1 Example 1 CD B2 0E 1B It designates slave station and function code No of station h11 17 function code h01 Address setting Address 0 at MODBUS protocol means address 1 actually So if you want to designate address 20 write ...
Page 255: ...99 10198 10197 Status 1 0 1 1 1 0 1 0 1 1 0 0 Hex B A C The status of input contact 10219 10220 are redundancy Data is sent starting from the low bit by byte unit If the deficient bit of a byte is filled with 0 An example of sending the above data is as follows Example 2 AC DB 35 It designates slave station and function code No of station h11 17 function code h02 Address setting Address 0 at MODBU...
Page 256: ...protocol means address 40000 actually Writing number setting Writing number is 4 This is MODBUS Communication instruction 5 Example program 4 The master writes data in D1000 to contact 40000 of the slave station no 10 It designates slave station and function code No of station h0A 10 function code h06 Address setting Address 0 of function code 16 at MODBUS protocol means address 40000 actually Wri...
Page 257: ...ignated when using this communication mode This section explains No protocol Communication setting usage 1 Sending Data Command DSND Sends stored data in designated device at the rising edge of input condition Data and the number of character must be stored in designated device before they are sent Operands a First operand Designates communication channel b Second operand Number of data to sending...
Page 258: ...f received byte is equal to designated lower byte value of receiving format setting range 1 255 When designated last byte Stores received data to devices when receives designated ending byte 8 4 2 Parameter setting 1 Setting Communications Parameter 1 Open a new project file from KGLWIN and select MK120S as PLC type 2 After selecting communication parameter at KGLWIN Double click it to activate th...
Page 259: ...hich is displayed communication status DRCV Ch Cw D SS 1 Function When the execution condition is on the communication starts with No protocol Received data is stored in device D If received data is not match to the designated format by Cw data is not saved to D The communication status is saved in SS 2 Example program When the execution condition M0000 is on the communication starts with channel ...
Page 260: ... on the No protocol communication starts n represents the number of data to send unit of byte and Sending data is stored in device D Ch is designated communication channel and Communication status is saved in SS 2 Example program When the execution condition P0040 is on the communication starts with channel 1 Length of sending data which is stored in D0100 is 10 byte and the communication status i...
Page 261: ...pre defined data In this example assume that received data is as following ENQ 1Byte Station No 1Byte Data 1 10 Words EOT 1Byte When above frame is received Received framed is saved to designated device If designated Receiving Format Cw is h0104 and decides if use these data or not After that sends data which is in sending device if required Assume that the sending data format is as following ACK ...
Page 262: ...LC type After selecting communication parameter from KGLWIN and clicking twice this window comes up Designate baud rate data bit parity bit stop bit and protocol 2 Program Save sending data to D0100 ack 0 OK ETX If h 04 EOT is received h3004 is saved to D0000 and Weight data to D0111 1 Word Sending 5bytes in D0100 using DSND instruction ...
Page 263: ...uilt in Cnet I F is available by dedicated communication protocol only If KGLWIN and Master station is connected physically it can connect to each slave station using remote connection function RS 422 485 I F Master station RS 485 I F Ch 1 RS 485 multi drop system Using built in Cnet Ch 0 RS 422 485 multi drop system Using G7L CUEC G7L CUEC G7L CUEC Ch0 Slave station 2 Ch 1 Slave station 2 Ch 1 Sl...
Page 264: ... GLOFA Cnet Base Select 0 Clot set to 0 when uses channel 0 and 1 when uses channel 1 Station No Input slave station number to connect Click OK Remote connection is available by dedicated protocol only 2 Remote connection by modem Remote connection by modem is available by G7L CUEB I F module In this time TM TC switch of G7L CUEB module must be set to On Modem Modem G7L CUEB G7L CUEB ...
Page 265: ...ated 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 266: ...TM TC switch to Off when uses data communication function Data communication and remote connection function are not allowed simultaneously Data communication mode supports every communication protocol but In remote connection function supports dedicated protocol only 2 Usage of G7L CUEC Channel 0 can be used as RS 422 485 I F by using G7L CUEC I F module Operating method is same as built in Cnet i...
Page 267: ...and they support High speed link communication service by parameter setting But communication by command Read Write are not available After selecting communication parameter from KGLWIN and select FIELDBUS MASTER as below RDA RDB SDA SDB SG Master Slave Slave Slave RDA RDB SDA SDB SG RDA RDB SDA SDB SG RDA RDB SDA SDB SG Station number setting switch ...
Page 268: ...A G7L PBEA support profibus slave function only and G7L DBEAsupports DeviceNet slave interface function only After selecting communication parameter from KGLWIN and select FIELDBUS slave as below Clicking List button then this window comes up After double clicking entry list 0 designate from to area Pnet For maximum Sending Receiving data size is 244 byte and that of DeviceNet are 30 32 byte For t...
Page 269: ...ammable gases 2 Precautions during installing 1 During drilling or wiring do not allow any wire scraps to enter into the PLC 2 Install it on locations that are convenient for operation 3 Make sure that it is not located on the same panel that high voltage equipment located 4 Make sure that the distance from the walls of duct and external equipment be 50mm or more 5 Be sure to be grounded to locati...
Page 270: ...tal power consumption of all modules is the average power of the DC24V output circuit of the power supply part W24V I24V 24 W 4 Average power consumption by voltage drop of output part with points simultaneously switched ON Wout Iout Vdrop output points the rate of points switched on simultaneously W Iout output current actual operating current A Vdrop voltage dropped across each output load V 5 A...
Page 271: ...any foreign matter like wire scraps should not enter into the upper side of the PLC If any foreign matter has entered into it always eliminate it 1 Main unit or Expansion Module handling instructions The followings explains instructions for handling or installing the Base unit or Expansion Module 1 I O specifications re check Re check the input voltage for the input part if a voltage over the maxi...
Page 272: ...rt 8 Do not separate the PCB from its case 2 Mounting instructions The following explains instructions for mounting the PLC onto the control panel 1 Allow sufficient distance from upper part of the Unit for easy module replacement and ventilation 2 Make sure that MASTER K120S is installed in figure below for most effective heat radiation 3 Do not mount the base board together with a large sized el...
Page 273: ...upper part of the PLC If the wire duct is mounted on the lower part of the PLC make optic or coaxial cables contact it and consider the minimum diameter of the cable 5 To protect the PLC from radiating noise or heat allow 100 or more clearances between it and parts Left or right clearance and clearance from other device in the left or right side should be 100 or more 6 MASTER K120S has hooks for D...
Page 274: ...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 module Main unit expansion cable Connector cover ...
Page 275: ...nnect an insulating transformer 4 When wiring separate the PLC power supply from those for I O and power device as shown below T1 T2 constant voltage transformer 5 To minimize voltage drop use the thickest max 2 wires possible 6 Do not bundle the 100 VAC and 24VDC cables with main circuit high voltage large current wires or the I O signal wires If possible provide more than 80 distance between the...
Page 276: ...or is 0 18 to 2 However it is recommended to use wire of 0 5 for convenience 2 Separate the input and output lines 3 I O signal wires must be at least 100 3 94 in away from high voltage and large current circuit wires 4 When the I O signal wires cannot be separated from the main circuit wires and power wires ground on the PLC side with batch shielded cables Under some conditions it may be preferab...
Page 277: ...d be as near as possible to the PLC to minimize the distance of grounding cable 9 2 4 Cable Specifications for wiring The specifications for wiring is as follows Cable Specifications Kinds of external connection Minimum Maximum Digital Input 0 18 AWG24 1 5 AWG16 Digital Output 0 18 AWG24 2 0 AWG14 Analog Input Output 0 18 AWG24 1 5 AWG16 Communication 0 18 AWG24 1 5 AWG16 Main power 1 5 AWG16 2 5 ...
Page 278: ...l screws Change rate of input voltage 15 to 10 Hold it with the allowable range Spare parts Check the number of Spare parts and their Store conditions Cover the shortage and improve the conditions 10 2 Daily Inspection The following table shows the inspection and items which are to be checked daily Check Items Check Points Judgement Corrective Actions check for loose mounting screws Screws should ...
Page 279: ...gress The module should be move the unit The module should be mounted securely PLC Conditions dust or foreign material Visual check No dust or foreign material Retighten screws Loose terminal screws Re tighten screws Screws should not be loose Retighten Distance between terminals Visual check Proper clearance Correct Connecting conditions Loose connectors Visual check Connectors should not be loos...
Page 280: ...I O LED After checking them connect peripheral devices and check the operation status of the PLC and the program contents 2 Trouble Check Observe any change in the error conditions during the following Switch to the STOP position and then turn the power on and off 3 Narrow down the possible causes of the trouble where the fault lies i e Inside or outside of the PLC I O module or another module PLC...
Page 281: ...the power supply cable connected Over current protection device activated Write down the troubleshooting questionnaire and contact the nearest service center Supply the power Does the power led turn on See the power supply be within AC 85 264 V Replace the fuse Connect the power cable correctly Does the power led turn on Does the power led turn on Does the power led turn on 1 Eliminate the excess ...
Page 282: ...during operation Though warning error appears PLC system doesn t stop but corrective action is needed promptly If not it may cause the system failure ERR LED goes flickering No Warning error No Check the error code with connected KGLWIN IsERRLEDstillflicking Write down the Troubleshooting Questionnaires and contact the nearest service center See App 2 System Warning Flag and remove the cause of th...
Page 283: ...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 Contactthenearestservicecenter Complete Turn the power unit off and on Is RUN LED off ...
Page 284: ...f P40 by KGLWIN Is the indicator LED of the P40 on No Replace the connector of the terminal board Measure the voltage of power supply in P40 Correct wiring Is the voltage of power supply for load applied Is the output wiring correct Is the terminal connector connector appropriate Is it normal condition Separate the external wiring than check the condition of output module Is it normal condition Ch...
Page 285: ...ct the wiring Check the status of the switch 1 and 2 Unit replacement is needed Check the status of the switch 1and 2 Is input wiring correct Is the terminal screw tighten securely Is input wiring correct Correct wiring Retighten the terminal screw Replace the terminal board connector Unit replacement is needed Check from the beginning Is the condition of the terminal board connector appropriate Y...
Page 286: ...he 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 STOP mode and execute the program write Is the mode setting switch set the re mote STOP No Is ERR LED blinking After reading error code by using peripheral device correct the contents Yes Complete No ...
Page 287: ... compile programs 4 General description of the device or system used as the control object 5 The kind of the base unit Operation by the mode setting switch Operation by the KGLWIN or communications External memory module operation 6 Is the ERR LED of the CPU module turned ON Yes No 7 KGLWIN error message 8 Used initialization program initialization program 9 History of corrective actions for the e...
Page 288: ...t value Recommended value C 0 1 0 47 R 47 120 Ω 1 2W Or make up another independent display circuit Input signal doesn t turn off Leakage current due to line capacity of wiring cable y Locate the power supply on the external device side as shown below Input signal doesn t turn off Leakage current of external device Drive by switch with LED indicator y Connect an appropriate register which will mak...
Page 289: ... circuit which is connected to output element in parallel y Connect C and R across the load which are of registers of tens KΩ When the wiring distance from the output module to the load is long there may be a leakage current due to the line capacity When the load is C R type timer time constant fluctuates y Leakage current by surge absorbing circuit which is connected to output element in parallel...
Page 290: ...layed by one or more second as some loads make the current flow across the diode at the off time of the transistor output y Insert a small L R magnetic contact and drive the load using the same contact Output transistor is destroyed Surge current of the white lamp A surge current of 10 times or more when turned on y To suppress the surge current make the dark current of 1 3 to 1 5 rated current fl...
Page 291: ...the flash memory 0010h I O slot error Stop I O Slot Error Mounting dismounting of I O units during operation or connection fault I O unit defect or extension cable defect Turn the power off and mount the unit firmly and restart the system Replace the I O unit or extension cable 0011h Maximum I O error Stop MAX I O Error Points of mounted I O units overrun the maximum I O points FMM mounting number...
Page 292: ...ng the END instruction in the program Stop Miss END Error The program does not have the END instruction Insert the END instruction at the bottom of the program 0042h Missing the RET instruction in the program Stop Miss RET Error The subroutine does not has the RET instruction at its bottom Insert the END instruction at the bottom of the program 0043h Missing the SBRT instruction in the subroutine ...
Page 293: ...ons 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 Manual ...
Page 294: ... program parameter etc Auto save This function is to set the time interval for Auto saving Range 0 60 min Automatically saved file is saved in the current directory The file is automatically deleted when the program window is closed Therefore if a program cannot be saved by Program Error before program is not saved you can recover some program by loading auto saved file This function is to set the...
Page 295: ...Appendix 1 System Definitions App1 3 3 Page setup You can select print option when the project print out margin cover footer ...
Page 296: ...10mstimerareset therestoftimerareaisallocated1msautomatically 3 Watchdog timer setting For the purpose of the watch of normal program execution This parameter is used to set the maximum allowable execution time of a user program in order to supervisor its normal or abnormal operation Setting range is 10ms 6000ms 4 Input setting set the input filter constant and input catch contact point 5 Remote a...
Page 297: ... is operated in the Debug mode F0021 Breakpoint run Turns on when the breakpoint run is operated in the Debug mode F0022 Scan run Turns on when the scan run is operated in the Debug mode F0023 Coincident contact value run Turns on when the coincident contact run is operated in the Debug mode F0024 Coincident word value run Turns on when the coincident word run is operated in the Debug mode F0025 t...
Page 298: ...eration error has occurred F0111 Zero flag Turns on when the operation result is 0 F0112 Carry flag Turns on when a carry occurs due to the operation F0113 All outputs off Turns on when an output instruction is executed F0115 Operation error flag Latch Turns on when an operation error has occurred Latch F0116 Overflow error flag Turns on when overflow has occurred F0117 to F011F Unused F0120 LT fl...
Page 299: ...00 to F050F Maximum scan time Stores the maximum scan time F0510 to F051F Minimum scan time Stores the minimum scan time F0520 to F052F Present scan time Stores the present scan time F0530 to F053F Clock data year month Clock data year month F0540 to F054F Clock data day hour Clock data day hour F0550 to F055F Clock data minute second Clock data minute second F0560 to F056F Clock data day of the w...
Page 300: ...e D4507 _C0SCANMX Maximum communications scan time unit 1 ms Indicates the maximum time that is spent until every station connected to network has the token at least one time and sends a sending frame D4508 _C0SCANAV Average communications scan time unit 1 ms Indicates the average time that is spent until every station connected to network has the token at least one time and sends a sending frame ...
Page 301: ... Mode and Error of Slave station 18 and 19 D4410 Communication Error Code of station 20 and 21 D4442 Mode and Error of Slave station 20 and 21 D4411 Communication Error Code of station 22 and 23 D4443 Mode and Error of Slave station 22 and 23 D4412 Communication Error Code of station 24 and 25 D4444 Mode and Error of Slave station 24 and 25 D4413 Communication Error Code of station 26 and 27 D4445...
Page 302: ... Mode and Error of Slave station 18 and 19 D4310 Communication Error Code of station 20 and 21 D4342 Mode and Error of Slave station 20 and 21 D4311 Communication Error Code of station 22 and 23 D4343 Mode and Error of Slave station 22 and 23 D4312 Communication Error Code of station 24 and 25 D4344 Mode and Error of Slave station 24 and 25 D4313 Communication Error Code of station 26 and 27 D4345...
Page 303: ...4707 D4807 P008 D4708 D4808 P009 D4709 D4809 P010 D4710 D4810 P011 D4711 D4811 P012 D4712 D4812 P013 D4713 D4813 P014 D4714 D4814 P015 D4715 D4815 P016 D4716 D4816 P017 D4717 D4817 P018 D4718 D4818 P019 D4719 D4819 P020 D4720 D4820 P021 D4721 D4821 P022 D4722 D4822 P023 D4723 D4823 P024 D4724 D4824 P025 D4725 D4825 P026 D4726 D4826 P027 D4727 D4827 P028 D4728 D4828 P029 D4729 D4829 P030 D4730 D483...
Page 304: ...tory when RTC module is attached Relay Description 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 ...
Page 305: ...3 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 ...
Page 306: ...Appendix 3 External Dimensions App3 2 2 Slim type G7E DC08A G7E RY08A G7F ADHB G7F DA2V G7F RD2A ...