LG Electronics 120S manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306

Ir para a página of

Bom manual de uso

As regras impõem ao revendedor a obrigação de fornecer ao comprador o manual com o produto LG Electronics 120S. A falta de manual ou informações incorretas fornecidas ao consumidor são a base de uma queixa por não conformidade do produto com o contrato. De acordo com a lei, pode anexar o manual em uma outra forma de que em papel, o que é frequentemente utilizado, anexando uma forma gráfica ou manual electrónicoLG Electronics 120S vídeos instrutivos para os usuários. A condição é uma forma legível e compreensível.

O que é a instrução?

A palavra vem do latim "Instructio" ou instruir. Portanto, no manual LG Electronics 120S você pode encontrar uma descrição das fases do processo. O objetivo do manual é instruir, facilitar o arranque, a utilização do equipamento ou a execução de determinadas tarefas. O manual é uma coleção de informações sobre o objeto / serviço, um guia.

Infelizmente, pequenos usuários tomam o tempo para ler o manual LG Electronics 120S, e um bom manual não só permite conhecer uma série de funcionalidades adicionais do dispositivo, mas evita a formação da maioria das falhas.

Então, o que deve conter o manual perfeito?

Primeiro, o manual LG Electronics 120S deve conte:
- dados técnicos do dispositivo LG Electronics 120S
- nome do fabricante e ano de fabricação do dispositivo LG Electronics 120S
- instruções de utilização, regulação e manutenção do dispositivo LG Electronics 120S
- sinais de segurança e certificados que comprovam a conformidade com as normas pertinentes

Por que você não ler manuais?

Normalmente, isso é devido à falta de tempo e à certeza quanto à funcionalidade específica do dispositivo adquirido. Infelizmente, a mesma ligação e o arranque LG Electronics 120S não são suficientes. O manual contém uma série de orientações sobre funcionalidades específicas, a segurança, os métodos de manutenção (mesmo sobre produtos que devem ser usados), possíveis defeitos LG Electronics 120S e formas de resolver problemas comuns durante o uso. No final, no manual podemos encontrar as coordenadas do serviço LG Electronics na ausência da eficácia das soluções propostas. Atualmente, muito apreciados são manuais na forma de animações interessantes e vídeos de instrução que de uma forma melhor do que o o folheto falam ao usuário. Este tipo de manual é a chance que o usuário percorrer todo o vídeo instrutivo, sem ignorar especificações e descrições técnicas complicadas LG Electronics 120S, como para a versão papel.

Por que ler manuais?

Primeiro de tudo, contem a resposta sobre a construção, as possibilidades do dispositivo LG Electronics 120S, uso dos acessórios individuais e uma gama de informações para desfrutar plenamente todos os recursos e facilidades.

Após a compra bem sucedida de um equipamento / dispositivo, é bom ter um momento para se familiarizar com cada parte do manual LG Electronics 120S. Atualmente, são cuidadosamente preparados e traduzidos para sejam não só compreensíveis para os usuários, mas para cumprir a sua função básica de informação

Índice do manual

  • Página 1

    User’s Manual LG Pro g rammable Lo g ic Controlle r MASTER-K 120S series LG Industrial S y stems - When using LGIS equipment, thoroughly read this datasheet and associated manuals introduced in this datasheet. Also pay careful attention to safety and handle the module properly. - Keep this datasheet within easy reach for quick reference[...]

  • Página 2

    SAFETY I NSTRUCTIONS T o Prevent injury and property damage, follow these instructions. Incorrect operation due to ignoring instructions will cause harm or damage, the seriousness of which is indicated by the following symbols . ■ The meaning of each symbol in this manual and on your equipment is as follow s . W ARNING CAUTION This s y mbol indic[...]

  • Página 3

    SAFETY I NSTRUCTIONS Design Precautions  Install a safety circuit external to the PLC that keeps the entire syste m safe even when there are problems wit h the external power supply o r the PLC module. Otherwise, seri ous trouble could result from erroneous output or erroneous operation. - Outside the PLC, construct mechanical damage preventing [...]

  • Página 4

    SAFETY I NSTRUCTIONS Design Precautions Inst allation Precautions  Do not bunch the control wires or communication cables with the main circuit or power wires, or install them close to each other . They should be installed 100mm (3.94inch) or more from each other . Not doing so could result in noise that would cause erroneous operation.  Use [...]

  • Página 5

    SAFETY I NSTRUCTIONS Wiring Precautions  Completely turn off the exter nal power supply when inst alling o r placing wiring. Not doing so could cause electric shock or damage to the product.  Make sure that all terminal covers are correctly attached. Not attaching the terminal cover could result in electric shock.  Be sure that wiring is d[...]

  • Página 6

    SAFETY I NSTRUCTIONS S t artup and Maintenance Precautions Disposal Precaution  Do not touch the terminals while power is on. Doing so could cause electric shock or erroneous operation.  Switch all phases of the external power supply off when cleaning the module or retightening the terminal or module mounting screws. Not doing so could result[...]

  • Página 7

    Revision History Date Code Revision history 2002.7. 10310000380 First edition is published 2003.5. 10310000380 A revised edition is published – Main unit and expansion modules are added – Built-in function are upgraded 2003.9 10310000380 A revised edition is published. - Main units are added - Built-in functions are upgraded.[...]

  • Página 8

    ◎ Contents ◎ Chapter 1. General 1.1 Guide to Use This Manual ················· 1 - 1 1.2 Features ······················· 1 - 2 1.3 T erminology ······················ 1 - 3 Chapter 2. System Configuration 2.1 Overall Configuration ··················· 2 - 1 2.1.1 B[...]

  • Página 9

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

  • Página 10

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

  • Página 11

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

  • Página 12

    Chapter 10. Maintenance 10.1 Maintenance and Inspection ················ 10 - 1 10.2 Daily Inspection ···················· 10 - 1 10.3 Periodic Inspection ··················· 10 - 2 Chapter 1 1. T roubleshooting 1 1.1 Basic Procedure of T roubleshooting ············· 11 - 1 1 1.2 T[...]

  • Página 13

    Chapter 1 General 1-1 Chapter 1. General 1.1 Guide to Use This Manual This manual includes specifications, functions and handli ng instructions for the MASTER-K120S series PLC. This manual is divided up into chapters as follows: No. Title Contents Chapter 1 General Describes configuration of this manual, unit's features and terminology. Chapte[...]

  • Página 14

    Chapter 1 General 1-2 1.2. Features 1) MASTER-K120S series is extremely compact, to fi t a wide range of applications and have following features. (1) High speed processing High speed processing of 0.1~0.9 µ s/step with an general purpose processor included . (2) Various built-in functions The main unit can perform many functions without using sep[...]

  • Página 15

    Chapter 1 General 1-3 1.3 Terminology The following table gives definition of terms used in this manual. Terms Definition Remarks Module A standard element that has a specified function which configures the system. Devices such as I/O board, which inserted onto the mo ther board or base unit. Example) CPU module Power Supply module I/O module Unit [...]

  • Página 16

    Chapter 1 General 1-4 Terms Definition Remarks Sink Input Current flows from the switch to the PLC input terminal if a input signal turns on. Source Input Current flows from the PLC input terminal to the switch after a input signal turns on. Sink Output Current flows from the load to the output terminal and the PLC output turn on. Source Output Cur[...]

  • Página 17

    Chapter 2 System Configuration 2-1 Chapter 2. System Configuration The MASTER-K120S series has suitable to configurati on of the basic, computer link and network systems. This chapter describes the configuration and features of each system. 2.1 Overall Configuration 2.1.1 Basic system Total I/O points • 10-120 points Standard Economic Digital I/O[...]

  • Página 18

    Chapter 2 System Configuration 2-2 2.1.2 Cnet I/F system Cnet I/F System is used for communication between the main unit and external devices using RS-232C/RS-422 Interface. The MK120S has a built-in RS-232C port, RS-485 port and has also G7L-CUEB for RS-232C, G7L-CUEC for RS-422. It is possible to construct communication systems on demand. 1) 1:1 [...]

  • Página 19

    Chapter 2 System Configuration 2-3 (3) RS-232C Communication over a long dist ance via modem by Cnet I/F modules 2) 1:n Communications system This method can connect between one computer and multiple main units for up to 32 stations Modem Modem Modem Modem G7L-CUEB G7L-CUEB G7L-CUEB MASTER-K120S MASTER-K120S MASTER-K120S RS-232C ⇔ RS-422 Converte[...]

  • Página 20

    Chapter 2 System Configuration 2-4 2.2 Product Functional Model The following describes functional model of the MASTER-K120Sseries. 2.2.1 Product Functional Block Product function block for the K120S series is as follows. Main Unit Expansion Modules Power supply Input signal Input signal Built-in RS-232C I/F Output signal Output signal Sub-system D[...]

  • Página 21

    Chapter 2 System Configuration 2-5 2.2.2 K120S Series System Equipment Product 1) Main Unit – Standard type Items Models I/O Point & Power Supply Built-in Function Remark K7M-DR20U 12 DC inputs(24VDC) 8 relay outputs 85~264 VAC K7M-DR30U 18 DC inputs(24VDC) 12 relay outputs 85~264 VAC K7M-DR40U 24 DC inputs(24VDC) 16 relay outputs 85~264 VAC [...]

  • Página 22

    Chapter 2 System Configuration 2-6 3) Expansion Modules Section Items Models Description Remark G7E-DR10A • 6 DC inputs / 4 relay outputs G7E-DR20A • 12 DC inputs / 8 relay outputs G7E-DC08A • 8 DC inputs Slim Type G7E-TR10A • 10 Transistor outputs G7E-RY08A • 8 relay outputs Slim Type Expansion module Digital I/O module G7E-DR08A • 4 D[...]

  • Página 23

    Chapter 3 General Specifications 3-1 Chapter 3. General Specifications 3.1 General Specifications The following table shows the general specif ications of the MASTER-K120S series. No. Item Specifications References 1 Operating ambient Temperature 0 ~ 55 ° C 2 Storage ambient Temperature − 25 ~ + 70 ° C 3 Operating ambient Humidity 5 ~ 95%RH, no[...]

  • Página 24

    Chapter 4 Names of Parts 4 -1 Chapter 4. Names of Parts 4.1 Main Unit - + RS-485 No. Name Description PWR LED Indicates status of power supply to the system y On : When the supplied power is normal y Of f : When the supplied power is abnormal RUN LED Indicates operating status of main unit y On : Indicates local key switch or remote running mode y [...]

  • Página 25

    Chapter 4 Names of Parts 4 -2 No Name Description  I/O LED Indicates operating status o f I /O  Built-in RS-485 connector (Except K7M-DR10/14UE) 2-pin connector for built-in RS-485 communications.  Key switch for mode creation .(Except economic type) Designates main unit’s operation mode y RUN : Run pr og r am operation y S T OP: Stop pr[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 31

    Chapter 4 Names of Parts 4 -8 4.2 Expansion I/O Module 4.2.1 20points I/O Module 1) G7E-DR20A 4.2.2 10points I/O Module 1) G7E-DR10A 1) G7E-TR10A No. Names ① Input LED ② Output LED ③ Input contact ④ Input common terminal ⑤ Output contact ⑥ Output common terminal ⑦ Expansion cable ⑧ Expansion Cable Connecting T erminal No. Names ① [...]

  • Página 32

    Chapter 4 Names of Parts 4 -9 4.2.3 8points I/O Module 1) G7E-DC08A 2) G7E-R Y08A No. Names ① Input LED ② Input contact ③ Input common terminal ④ Expansion cable ⑤ Expansion Cable Connecting T erminal No. Names ① Output LED ② Output contact ③ Output common terminal ④ Expansion cable ⑤ Expansion Cable Connecting T erminal ① ②[...]

  • Página 33

    Chapter 4 Names of Parts 4 -10 4.3 Special Module 4.3.1 A/D · D/A Combination Module 1) G7F-ADHA No. Names ① RUN LED ② Analog Output T erminal ③ Analog Input (V oltage/current) selecting jumper pin ④ Analog Input T erminal ⑤ External Power Supply T erminal (DC24V) ⑥ Expansion Cable ⑦ Expansion Cable Connecting T erminal 2) G7F-ADHB N[...]

  • Página 34

    Chapter 4 Names of Parts 4 -11 4.3.2 D/A Conversion Module 1) G7F-DA2I  No. Names ① RUN LED ② Analog Output T erminal ③ Expansion Cable ④ Expansion Cable Connecting T erminal  External Power Supply T erminal (DC24V) 2) G7F-DA2V No. Names  RUN LED  Analog Output T erminal  Expansion Cable  Expansion Cable Connecting T er[...]

  • Página 35

    Chapter 4 Names of Parts 4 -12 4.3.4 Analog timer Module No. Names ① RUN LED ② Analog Timer V olume Control Resistor ③ Expansion Cable ④ Expansion Cable Connecting T erminal 4.3.5 RTD Input Module No. Names ① RUN LED ② Analog Timer V olume Control Resistor ③ Expansion Cable ④ Expansion Cable Connecting T erminal ① ② ③ ④ ③ [...]

  • Página 36

    Chapter 4 Names of Parts 4 -13 4.4 Communication I/F Module 4.4.1 Cnet I/F Module 1) G7L-CUEB 2) G7L-CUEC 4.4.2 Fnet I/F Module 1) G7L-FUEA No. Names ① RS-232C connector ② Communication status LED ③ Expansion cable ④ Expansion cable connecting terminal ⑤ TM/TC selecting dip switch No. Names ① RS-422/485 connector ② Power supply/Commun[...]

  • Página 37

    Chapter 4 Names of Parts 4 -14 4.4.3 Pnet I/F Module 1) G7L-PBEA 4.4.4 DeviceNet I/F Module 1) G7L-DBEA 4.5 Option Module Option modules are attached the expansion slot of main unit or expansion unit, and supplies optional function s such as memory expansion or real time clock. MASTER-K120S series have two option modules – External memory module [...]

  • Página 38

    Chapter 5 Power Supply / CPU 5-1 Chapter 5. Power Supply / CPU 5.1 Power Supply Specifications 5.1.1. Standard Type Items K7M – DR/DRT/DT20U K7M – DR/DRT/DT30U K7M – DR/DRT/DT40U K7M – DR/DRT/DT60U Rated voltage 85 ~ 264 VAC Rated frequency 50 / 60 Hz (47 ~ 63 Hz) Rated current 0.5A(110VAC)/0.25A(220VAC) 0.6A(110VAC)/0.3A(220VAC) Inrush cur[...]

  • Página 39

    Chapter 5 Power Supply / CPU 5-2 5.2 CPU Specifications The following table shows the general specif ications of the MASTER-K120S series 5.2.1. Standard Type Specifications Items K7M-DR/DRT/DT20U K7M-DR/DRT/DT30U K7M-DR/DRT/DT40U K7M-DR/DR`T/DT60U Remarks Program control method Cyclic execution of stored progr am, Time-driven interrupt, Process-dri[...]

  • Página 40

    Chapter 5 Power Supply / CPU 5-3 (continued) Specifications Items K7M-DR/DRT/DT20U K7M-DR/DRT/DT30U K7M-DR/DRT/DT40U K7M-DR/DRT/DT60U Remarks PID control function Controlled by commands, Relay and PRC auto tuning, PWM output, manual output, adjustable operation scan time, Anti-windup, SV-Ramp, Delta MV, Position and Velocity algorithm Cnet I/F Func[...]

  • Página 41

    Chapter 5 Power Supply / CPU 5-4 5.2.2. Economic Type Specifications Items K7M-DR10UE K7M-DR14UE K7M-DR20UE K7M-DR30UE Remarks Program control method Cyclic execution of stored progr am, Time-driven interrupt, Process-driven interrupt I/O control method Indirect mode(Refresh method), Direct by program command Program language Instruction list, Ladd[...]

  • Página 42

    Chapter 5 Power Supply / CPU 5-5 (continued) Specifications Items K7M-DR10UE K7M-DR14UE K7M-DR20UE K7M-DR30UE Remarks Cnet I/F Function Dedicated protocol support MODBUS protocol support RS-232C - 1port User defined protocol support RS-485 - 1 port No protocol support RS-485 is available on K7M-DR10/14UE only Capacity 1 phase : 10 kHz-2 channel 2 p[...]

  • Página 43

    Chapter 5 Power Supply / CPU 5-6 5.3 Operation Processing 5.3.1 Operation Processing Method 1) Cyclic operation A PLC program is sequentially executed from the first step to the la st step, which is called scan. This sequential processing is called cyclic ope ratio n. Cyclic operation of the PLC cont inues as long as conditions do no t change for i[...]

  • Página 44

    Chapter 5 Power Supply / CPU 5-7 2) Interrupt operation method If a situation occurs which is requested to be urgently processed during execution of a PLC program, this opera tion method processes immediate ly the operation, which co rresponds to in terrupt program. The signal, which infor ms the CPU of those urgent conditions is called interr upt [...]

  • Página 45

    Chapter 5 Power Supply / CPU 5-8 5.3.3 Scan Time The processing time from a 0 step to the 0 step of next scan is called scan time. 1) Expression for scan time Scan time is the sum of the processing time of scan program that the user has written, of the task program processing time and the PLC internal processing time. (1) Scan time = Scan program p[...]

  • Página 46

    Chapter 5 Power Supply / CPU 5-9 5.3.5 Timer Processing The MASTER-K series use up count timer. There are 5 timer inst ructions such as on-delay (TON ), off-delay (TOFF), integral (TMR), monostable (TMON), and re-triggerable (TRTG) timer. The measuring range of 100msec timer is 0.1 ~ 6553.5 seconds, 10msec timer is 0.01 ~ 655.35 seconds, and that o[...]

  • Página 47

    Chapter 5 Power Supply / CPU 5 - 10 3) Integral timer In general, its operation is same as on-delay timer. Only t he difference is the current value will not be clear when the input condition of TMR instruction is turned off. It keeps the e lapsed value and restart to increase when the input condition is turned on again. When the current value reac[...]

  • Página 48

    Chapter 5 Power Supply / CPU 5 - 11 5) Retriggerable timer The operation of retriggerable timer is same as that of monostable timer. Only difference is that the retriggerable timer is not ignore the input condition of TRTG instruction while t he timer is operating (decreasing). The current value of retriggerable timer will be set as preset value wh[...]

  • Página 49

    Chapter 5 Power Supply / CPU 5 - 12 5.3.6 Counter Processing The counter counts the rising edges of pulses driving its input signal and counts once only when t he input signal is switched from off to on. MASTER-K series have 4 counter instructi ons such as CTU, CTD, CTUD, and CTR. The followings shows brief information for counter operation. Refer [...]

  • Página 50

    Chapter 5 Power Supply / CPU 5 - 13 4) Ring counter -. The current value is increased with the rising edge of the counter input signal, and the counter output relay is turned on when the current value reaches the preset value. Then the current value and counter output relay is cleared as 0 when the next counter input signal is applied. 5) Maximum c[...]

  • Página 51

    Chapter 5 Power Supply / CPU 5 - 14 5.4 Program 5.4.1 Classifications of Program All functional elements need to execute a certain control proc ess are called as a ‘program’. In MASTER-K120 series, a program is stored in the EEPROM mounted on a CPU module or fl ash memory of a external memory module. The following table shows the classification[...]

  • Página 52

    Chapter 5 Power Supply / CPU 5 - 15 1) Scan program -. The scan program is executed regularly in every scan from 0 step to last step. -. When interrupts has occurred, CPU pauses scan program and executes corresponding interrupt program first. -. When this interrupt program finished, scan program is to resume. 2) Interrupt program -. When an interru[...]

  • Página 53

    Chapter 5 Power Supply / CPU 5 - 16 2) parameter setting 3) Time driven interrupt TDI occurs periodically with the constant interval assigned in par ameter setting. The interrupt routine of TDI starts with the TDINT instruction and ends with the IRET instruction. When multiple interrupt factors occur simultaneously, interrupt r outines are executed[...]

  • Página 54

    Chapter 5 Power Supply / CPU 5 - 17 REMARK Total available interrupt points is 8(In standard type). -. Time driven interrupt + process driven in terrupt + high speed counter driven interrupt ≤ 8 points Interrupt signal is ignored when self-interrupt occurs more than 2 times during interrupt processing is executing. 5.4.4 Error Handling 1) Error C[...]

  • Página 55

    Chapter 5 Power Supply / CPU 5 - 18 (4) External device malfunction The PLC user program detects m alfunctions of ex ternal devices. If a fatal error is d etected the syste m ent ers into the STOP state, and if an ordinary erro r is detected the system continues its operation. REMARK 1) In occurrence of a error, the state is to be stored in the rep[...]

  • Página 56

    Chapter 5 Power Supply / CPU 5 - 19 5.5 Operation Modes The CPU operates in one of the four modes - RUN, STOP, PAUSE and DEBU G mode. The followi ng describes ope ration processing in each operation mode. 5.5.1 RUN Mode In this mode, programs are normally operated. 1) Processing when the operation mode is changed. Initialization of data area is exe[...]

  • Página 57

    Chapter 5 Power Supply / CPU 5 - 20 5.5.2 STOP mode In this mode, programs are not operated. 1) Processing when the operation mode is changed. The output image area is cleared and output refresh is executed. 2) Operation processing contents (1) I/O refresh is executed. (2) Normal or abnormal operation and mounting conditions of the loaded module ar[...]

  • Página 58

    Chapter 5 Power Supply / CPU 5 - 21 3) Debug operation conditions following four operation conditions can be specified. Operation conditions Description executed by one command. When executed, Stop operation after executing one instruction executed by break-point settings. When executed, Stop operation at designated break-point executed by the cond[...]

  • Página 59

    Chapter 5 Power Supply / CPU 5 - 22 3) Mode change Remote operation Remote operation mode change is available only when the operation mode is set to the remote STOP mode (i.e., the mode setting switch position is in the STOP → PAU/REM’). Mode setting switch position Mode Change Mode change by the KGLWIN Mode change using FAM or Cnet I/F, etc. R[...]

  • Página 60

    Chapter 5 Power Supply / CPU 5 - 23 5.6 Functions 5.6.1 Self-diagnosis 1) Functions (1) The self-diagnosis function permits t he CPU module to detect its own errors. (2) Self-diagnosis is carried out when an error occurs duri ng PLC power supply is turned on or operating process. If an error is detected, the system stops operation to prevent faulty[...]

  • Página 61

    Chapter 5 Power Supply / CPU 5 - 24 5.6.2 I/O Force On/Off function It is possible to input/output a designated data regardless of the program operation results. When used with OUTOFF instruction simultaneously, OUTOFF is prior to I/O Force On/Off. 1) Forced I/O setting method. -. I/O Force on/off setting is applied to input area and output area. -[...]

  • Página 62

    Chapter 5 Power Supply / CPU 5 - 25 -. When forced I/O set enables, forc ed I/O function is executing. Set ‘forced I/O data’ by bit Set ‘forced I/O data enable’ by bit Click[...]

  • Página 63

    Chapter 5 Power Supply / CPU 5 - 26 2) Special data register for forced I/O The contents of forced I/O setting is registered to special data register as below. It is possible to use ‘forced I/O function’ to program. Items Special Device All Forced I/O enable M1910 Forced I/O enable by bit D4700 ~ D4763 Forced I/O set data D4800 ~ D4863 3) Force[...]

  • Página 64

    Chapter 5 Power Supply / CPU 5 - 27 5.6.3 Direct I/O Operation function This function is useful when reads an input relay’s state direct ly during execution of a program and uses in the operation, or write the operation result directly to an output relay. Direct input/output is executed by the ‘IORF’ instruction. If this inst ruction is used,[...]

  • Página 65

    Chapter 5 Power Supply / CPU 5 - 28 5.7 Memory Configuration The CPU module includes tw o types of memory th at are available by the user. One is program memory, which i s used to store the user programs written to implement a sy stem by the user. The other is data memory, which sto res data during operation. Bit Data Area Word Data Area User Progr[...]

  • Página 66

    Chapter 5 Power Supply / CPU 5 - 29 5.8 I/O Address Allocation I/O No. allocation means to give an address to each module in order to read data from input m odules and output data to output modules. Mounting module Max. module can be mounted remark Expansion I/O module 3 2 modules in economic type A/D, D/A conversion module 3 Analog timer module 3 [...]

  • Página 67

    Chapter 5 Power Supply / CPU 5 - 30 5.9 Built-in Cnet Selection Switch 5.9.1 Structure You can see dip switches as shown when you open I/O terminal block cover. 5.9.2 Usage Dip switch position Description upper switch is for Cnet. Turn upper switch on to use built-in RS-232C communication Upper switch is for Cnet. Turn upper off switch to use exter[...]

  • Página 68

    Chapter 5 Power Supply / CPU 5 - 31 Dip switch for Built-in Cnet is placed in deep place to prevent a mistaken operation caused by terminal block cover, etc. Use a small driver to operate it. Terminal block cover Driver Dip switch[...]

  • Página 69

    Chapter 5 Power Supply / CPU 5 - 32 5.10 External Memory Module MK120S series supplies external memory module for the us er to save programs safely or download a program on the system and use it in case of a program is damaged. 5.10.1 Structure 5.10.2 Usage 1) Saving the user’s program on the external memory module. (1) Turn the power of the base[...]

  • Página 70

    Chapter 5 Power Supply / CPU 5 - 33 (6) Select Online – Flash memory – Write to external memory in menu, and the following message box will displayed. (7) Turn the power of the main unit off. (8) Remove the external memory module. Through the above steps a user can save a program into the external memory module. 2) Run the PLC with a program of[...]

  • Página 71

    Chapter 5 Power Supply / CPU 5 - 34 5.11 RTC Module MK120S series supplies RTC(Real Time Clo ck) module for the time-scheduling control. To use RTC function with K120S series, the RTC operation module should be attached to the expansion slot of main unit or expansion mo dule. Clock operation by the RTC function is continued with a super capacitor w[...]

  • Página 72

    Chapter 5 Power Supply / CPU 5 - 35 (2) Read RTC data from special register Description Special register Area (Word) Upper byte Lower byte Data (BCD format) F053 Lower 2 digits of year Month H0207 F054 Day Hour H2313 F055 Minute Second H5020 F056 Higher 2 digits of year Date H2002 Example : 2002. 07. 23. 13:50:20, Tuesday 2) Write RTC data There is[...]

  • Página 73

    Chapter 6 Input and Output Specification 6-1 Chapter 6 Input and Output Specification 6.1 Input / Output Specifications Digital input that offers to MASTER-K120S series are made to us e both of electric current sink and electric current source. To keep use coil load as an output module, maximum opening and shutting frequency is 1 second on and 1 se[...]

  • Página 74

    Chapter 6 Input and Output Specification 6-2 R R Internal circuit COM R R Internal circuit COM C 6.2 Digital Input Specification 6.2.1 Main unit 1) Specification Main unit Model Specification K7M-DR10UE K7M-DR14UE K7M- DR/DRT/DT20U K7M-DR20UE K7M- DR/DRT/DT30U K7M-DR30UE K7M- DR/DRT/DT40U K7M-DRT40U K7M- DR/DRT/DT60U K7M-DRT60U Number of input poin[...]

  • Página 75

    Chapter 6 Input and Output Specification 6-3 3) Input wiring Main unit’s wiring method is as follows. DC input specificati ons offered by MASTER-K120S is to be used for both electric current sink and electric current source. (1) Main unit DC24V DC24V[...]

  • Página 76

    Chapter 6 Input and Output Specification 6-4 4) Example of external devices. To connect with external device of DC output type into DC input module, wire depending on the type of the external device as shown. External device Input Contact points NPN open collector output type NPN current output type PNP current output type Relay IN COM Sensor IN CO[...]

  • Página 77

    Chapter 6 Input and Output Specification 6-5 6.2.2 Expansion Module 1) Specifications Expansion Module Model Specification G7E-DR10A G7E-DC08A G7E-DR20A Number of input points 6 points 8 points 12 points Insulation method Photo coupler Rated input voltage DC 24V Rated input current 7 mA Operating voltage range DC 20.4 ~ 28.8V (ripple: less than 5%)[...]

  • Página 78

    Chapter 6 Input and Output Specification 6-6 6.3 Digital Output Specification 6.3.1 Main unit (Relay Output) 1) Specification (1) Standard type Main Unit Model Specifications K7M-DR20U (K7M-DRT20U) K7M-DR30U (K7M-DRT30U) K7M-DR40U (K7M-DRT40U) K7M-DR60U (K7M-DRT60U) Output point 8 points(4 points) 12 points(8 points) 16 points(12 points) 24 points([...]

  • Página 79

    Chapter 6 Input and Output Specification 6-7 (2) Economic type Main Unit Model Specifications K7M-DR10UE K7M-DR14UE K7M-DR20UE K7M-DR30UE Output point 4 points 6 points 8 points 12 points Insulation method Relay insulation Rated load voltage/current DC24V / 2A (r/load), AC220V / 2A (COS Ψ = 1)/1 point , 5A / 1COM Min. load Voltage/current DC5V / 1[...]

  • Página 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[...]

  • Página 81

    Chapter 6 Input and Output Specification 6-9 6.3.2 Main unit (TR Output : DRT/DT type only) 1) Specification Main Unit Model Specifications K7M-DRT/DT20U K7M-DRT/DT30U K7M-DRT/DT40U K7M-DRT/DT60U Output point 4 points / 8 point 4 points / 12 point 4 points / 16 point 4 points / 24 point Insulation method Photo coupler insulation Rated load voltage [...]

  • Página 82

    Chapter 6 Input and Output Specification 6-10 2) Output wiring AC100-240 V FG COM0 P40 COM1 P41 COM2 P42 COM3 P43 P L L L L DC12V/24V[...]

  • Página 83

    Chapter 6 Input and Output Specification 6-11 6.3.3 Expansion Module 1) Specifications Expansion Module Model Specifications G7E-DR10A G7E-DR08A G7E-RY08A G7E-DR20A Output point 4 points 8 points Insulation method Relay insulation Rated load Voltage/current DC24V / 2A (Resistive load), AC220V / 2A (COS Ψ = 1) / 1 point 5A / 1COM Min. load Voltage/[...]

  • Página 84

    Chapter 6 Input and Output Specification 6-12 Expansion Module Model Specifications G7E-TR10A Output point 10 points Insulation method Photo coupler insulation Rated load Voltage/current DC12V/24V Operating load voltage range DC10.2 ~ 26.4V Max. load current 0.5A/1 point, 4A/1COM Current leakage when off 0.1mA or lower Max. inrush current 4A/10ms o[...]

  • Página 85

    Chapter 7 Usage of Various Functions 7-1 Chapter 7. Usage of Various Functions 7.1 Built-in Functions 7.1.1 High-speed counter function This chapter describes the specification, handling, and progr amming of built-in high speed counter of MASTER-K120S. The built-in high speed counter of MASTER-K120S(hereafter called HSC) has the following features;[...]

  • Página 86

    Chapter 7 Usage of Various Functions 7-2 3) Names of wiring terminals Names Usage No. T erminal No. 1Phase 2Phase 1Phase 2Phase  P 00 Ch0 Input Ch0 A Phase Input Counter input terminal A Phase Input terminal  P 01 Ch1 Input Ch0 B Phase Input Counter input terminal B Phase Input terminal  P 02 Ch2 Input Ch2 A Phase Input Counter input termi[...]

  • Página 87

    Chapter 7 Usage of Various Functions 7-3 4) External interface circuit Signal name I/O Internal circuit Termi nal No. 1Phase 2Phase Operati on Input warranted voltage On 20.4~28.8V P00 Ch0 Input pulse Ch0 A Phase Input Off 6V or lower On 20.4~28.8V P01 Ch1 Input pulse Ch0 B Phase Input Off 6V or lower On 20.4~28.8V P02 Ch2 Input pulse Ch2 A Phase I[...]

  • Página 88

    Chapter 7 Usage of Various Functions 7-4 6) Wiring example (1) Voltage output pulse generator Pulse Generator CHSC A B COM 24V 24VG (2) Open collector output pulse generator Pulse Generator CHSC A B COM 24V 24VG Pulse Generator Pulse Generator[...]

  • Página 89

    Chapter 7 Usage of Various Functions 7-5 7) Instruction(HSCST) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S  SV           CV         7/9  S Channel which is designated at parameter(0~3) SV Set value (binary 32 bits) Ra[...]

  • Página 90

    Chapter 7 Usage of Various Functions 7-6 8) Parameter Setting (1) Format setting (a) Linear counter • If HSC is designate as Linear counter, it can counts from -2,147,483,648 to 2,147,483,647. • The carry flag F18*(* is channel number) turns on when the cu rrent value of high speed counter is overflow during up counting and HSC stop counting. ?[...]

  • Página 91

    Chapter 7 Usage of Various Functions 7-7 (2) Mode setting (a) 1-phase operation mode - Current value increases by 1 at the rising edge of input pulse. (b) 1-phase pulse + direction mode - Current value increases by 1 at the ri sing edge of A-Phase pulse when B-phase is ‘low’ state. - Current value decreases by 1 at the risi ng edge of A-Phase p[...]

  • Página 92

    Chapter 7 Usage of Various Functions 7-8 (d) 2-phase multiplication mode (MUL4) - Up or Down is set automatically by the phase difference between A and B phase. • Up counter - At the rising edge of A-Phase pulse when B-phase is ‘low’. - At the falling edge of A-Phase pulse when B-phase is ‘high’. - At the rising edge of B-Phase pulse when[...]

  • Página 93

    Chapter 7 Usage of Various Functions 7-9 (4) Latch Counter setting   If this function is enabled, Current value of high speed counter is always retained. (5) Comparison Output setting  (a) Comparison set - When current value of HSC is equal to SV1, corresponding output point turns on. - P40 ~ P47 are available for comparison output point. [...]

  • Página 94

    Chapter 7 Usage of Various Functions 7-10 (b) Zone Comparison Set - When current value of HSC isn’t less than SV1 and more than SV2. corresponding output point turns on. - P40 ~ P47 are available for comparison output point. - If SV2 is less than SV1, SV2 setting error(h’12) occurs and zone comparison set is disabled. (c) Comparison Task - If C[...]

  • Página 95

    Chapter 7 Usage of Various Functions 7-11 (6) RPM setting - Can calculates RPM of input pulse - RPM is stored in designated device.   - The RPM is expressed as:  cycle[ms] refresh rotate per Pulses 60,000 Value) Last - Value (Current RPM × × = (a) Examples of Program - Refresh cycle : 1000ms, Pulses per rotate : 60, RPM save area : D0 ?[...]

  • Página 96

    Chapter 7 Usage of Various Functions 7-12 9) Programming example (1) Parameter setting • Channel : Ch0 • Counter format : Ring counter ( 0 ~ 100,000) • Counter mode : 2-phase multiplication mode - P0 : A-phase pulse input, P1 : B-phase pulse input • Preset - Preset type : internal preset (M100) - Preset value : 0 • Last counter setting - [...]

  • Página 97

    Chapter 7 Usage of Various Functions 7-13  (2) Programming • When M0 turns on, HSC starts its operation • If current value is not less than 50,000, F170 turns on. • Current value is saved in D0(double word).   Remark The contact point which is designated as HSC input c an’t be used for pulse catch or external interrupt. Duplicated [...]

  • Página 98

    Chapter 7 Usage of Various Functions 7-14   7.1.2. Pulse Catch Function In the main unit, 4(economic type) or 8(standard type) points of pu lse cat ch input contact points are internalized. Through usi ng this contact point, short pulse signal short can be taken which can not be executed by general digital input. 1) Usage When narrow width of[...]

  • Página 99

    Chapter 7 Usage of Various Functions 7-15 1) Pulse catch input contact points operate as general digita l input if they are not designated as pulse catch input. 2) Do not designate HSC input points as pulse catch input. Remark[...]

  • Página 100

    Chapter 7 Usage of Various Functions 7-16 7.1.3 Input Filter Function External input of MASTER-K120S selects input on/off del ay time from the range of 0-1000ms of KGLWIN. Credibility secured system may be established by adjustment of input correction no. through using environment. 1) Usage Input signal status affects to the credibility of system i[...]

  • Página 101

    Chapter 7 Usage of Various Functions 7-17 7.1.4 External Interrupt Function MASTER-K120S Series can perform max 4(economic) or 8(standard) points of external contact interrupt by using input of main unit without special interrupt module. 1) Usage This function is useful to execute a hi gh speed execution regardless of scan time. 2) Minimum processi[...]

  • Página 102

    Chapter 7 Usage of Various Functions 7-18 5) Usage (1) Click twice the parameter on the project window of KGLWIN. (2) Designate contact point, no. of priority and movement conditi on of the task program which is moved by interrupt inputting. (3) For the details , refer to KGLWIN manual. interrupt input contact No. interrupt input e xecuting conditi[...]

  • Página 103

    Chapter 7 Usage of Various Functions 7-19 7.1.5 PID control function(Standard type only) 1) Introduction This chapter will provide information about the built-in PID (P roportional Integral Derivative) function of MASTER-K120S main unit. The MASTER-K120S series does not have separated PID module like MASTER-K300S and MASTER- K1000S series, and the [...]

  • Página 104

    Chapter 7 Usage of Various Functions 7-20 2) Specification (1) Control operation (a) Proportional operation (P operation)  P action means a control action that obtain a manipulate val ue which is proportional to the deviation (E : the difference between SV and PV)  The deviation (E) is obtained by difference between SV and PV and the fo[...]

  • Página 105

    Chapter 7 Usage of Various Functions 7-21 (b) Integral operation (I operation)  With integral operation, the manipulate value (MV) is increased or decreased continuous ly in accordance time in order to eliminate the deviation between the SV and PV. When the deviation is very small, the proportional operation can not produce a proper manipulat[...]

  • Página 106

    Chapter 7 Usage of Various Functions 7-22 Fig. 2.5 The system response when a long integration time given Fig. 7.4 The system response when a long integration time given Fig. 2.6 The system response when a short integration time given Fig. 7.5 The system response when a short integration time given (c) Derivative operation (D action)  When a [...]

  • Página 107

    Chapter 7 Usage of Various Functions 7-23   The D action when a constant deviation occurred is shown as Fig. 7.6 Fig. 7.6 Derivative action with a constant deviation   The expression of D action is as following; dt dE Td Kp MV × =  Derivative action is used only in PID action in which P and I actions combine with D action. [...]

  • Página 108

    Chapter 7 Usage of Various Functions 7-24 (e) Integral windup All devices to be controlled, actuator, has limitation of operat ion. The motor has speed limit, the valve can not flow over the maximum value. When the control system has wide PV range, the PV can be over the maximum output value of actuator. At this time, the actuator keeps the maximum[...]

  • Página 109

    Chapter 7 Usage of Various Functions 7-25 (2) Realization of PID control on the PLC In this chapter, it will described that how to get the digitized formula of the P, I, and D terms. (a) P control The digitized formula of P control is as following; [] ) ( ) ( ) ( n PV n SV K n P − = n : sampling number K : proportional gain constant b : reference[...]

  • Página 110

    Chapter 7 Usage of Various Functions 7-26 (4) parameter setting and explanation (a) PID8 instruction parameter setting and explanation.   Scan time Scan time is the period of reading data (sampling), and also 10 times scaled up. The range of sa mpling time is 0.1 ~ 10 seconds, and actual input range is 0 ~ 100. Generally, Scan time of Digi[...]

  • Página 111

    Chapter 7 Usage of Various Functions 7-27    Proportional gain The MASTER-K120S can handle only integer, not the floating point type. Therefore, to enhance the accuracy of PID operation, the PID8 instruction is designed to input the P_GAIN data as the 100 times scaled up. For example, if the designated P_GAIN is 98, actual input data of[...]

  • Página 112

    Chapter 7 Usage of Various Functions 7-28  SV Ramp If a large amount of SV changes during PID operation, The deviation(E) changes rapidly. Then manipulation value(MV) is changed rapidly also. This can cause damage on load or actuator. To prevent this situation, SV can be changed step by step by parameter setting. Setting range is 1~4000(Default [...]

  • Página 113

    Chapter 7 Usage of Various Functions 7-29 (b) PID8AT instruction parameter setting and explanation.  Scan time S_TIME is the period of reading data (samp ling), and 10 times scaled up for more precious operation. The range of sampling time is 0.1 ~ 10 seconds, and actual input range is 0 ~ 100.  Control target(SV) SV (set value : the de[...]

  • Página 114

    Chapter 7 Usage of Various Functions 7-30  Relay response method. • PID parameters are obtained by On/Off oper ation during 1 cycle of PV variation. • PID parameters are obtained by amplitude and period of oscillation • The On/Off operation will be occur at the SV value.  Process reaction curve method(PRC method). • PID parameters [...]

  • Página 115

    Chapter 7 Usage of Various Functions 7-31 5) instruction (1) PID8 Available device Flag Instruction M P K L F T C S D # D integer No. of Steps Error (F110) Zero (F111) Carry (F112) n   S1  5  n Registration No. at parameter(0~7) Error (F110) Error flag turns on when designati ng area is over and the instruction isn’t exec uted. S1 Exe[...]

  • Página 116

    Chapter 7 Usage of Various Functions 7-32 (2) PID8AT      Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) n   S1  5  n Registration No. at parameter(0~7) Error (F110) Error flag turns on when designati ng area is over and the instruction isn’t exec uted.[...]

  • Página 117

    Chapter 7 Usage of Various Functions 7-33 6) Program Example (1) System configuration (2) In case of using PID function only KGL-WIN V3.5 above RS-232C TPR Heater Electric Oven (PV : temperature)  MASTER-K120S G7F-DA2I G7F- RD2A  When PWM set i s selected, Scan time param ete r is disabled and this value is[...]

  • Página 118

    Chapter 7 Usage of Various Functions 7-34 a) PID operation explanation (without A/T function) • Measure current temperature (-200~600 ° C) by RTD module then digital conversion value(0 ~ 4000) is stored to D4780 • PID8 instruction will calculate manipulate value (M V : 0 ~ 4000) based on PID parameter settings (P_GAIN, I_TIME, D_TIME, etc.) an[...]

  • Página 119

    Chapter 7 Usage of Various Functions 7-35 e) Program Explanation • When the input condition M0 turns on, PID operation executes at no.0 parameter. • PID execution status registrate D0000 and the output value of control result registrate D0001 • If SV Ramp is designated, current SV is registrate D0005 • D/A module converts the MV to analog s[...]

  • Página 120

    Chapter 7 Usage of Various Functions 7-36 c) operation parameters • Scan time : S_TIME=5 (sampling time = 0.5 seconds) • Auto / Manual operation setting : Auto • Output limit : Max. = 4000, Min = 0 • High frequency noise removal ratio : 10 • SV setting : 1300(60 ° C ),1350(70 ° C ),1400(80 ° C ),1500(100 ° C) • Current value setting[...]

  • Página 121

    Chapter 7 Usage of Various Functions 7-37 f) Program Explanation • When the input condition M2 turns on, PID auto tuning operation executes at no.0 parameter. • When auto tuning finished, PID operation ex ecutes with calculated P,I,D parameter. • PID execution status registrate D0000 and the output value of control result registrate D0001 •[...]

  • Página 122

    Chapter 7 Usage of Various Functions 7-38  6) Error code list (1) PID8AT Error Code Description Corrective ac tion H0100 Scan time setting range error Set scan time to available s etting range H0200 PV setting range error Set PV setting to available setting range H0300 SV setting range error Set SV to available setting range SV If PRC identifica[...]

  • Página 123

    Chapter 7 Usage of Various Functions 7-39  7 . 2 Special module The special module and allocated data registers are as followings. Item Combination module A/D Conversion module D/A Conversion module Analog timer RTD input module Data Register Expansion G7F-ADHA G7F-ADHB G7F-AD2A G7F-DA2I G7F-DA2V G7F-AT2A G7F-RD2A D4980 CH0 A/D value CH0 A/D val[...]

  • Página 124

    Chapter 7 Usage of Various Functions 7-40 7.2.1 A/D  D/A Combination module 1) Performance specification The performance specification of the analog mixture module are following . Specifications Item G7F-ADHA G7F-ADHB Voltage DC 0  10V (input resistance more than 1  ) Input range Current DC 0  20  (input resistance 250  ) DC 4 [...]

  • Página 125

    Chapter 7 Usage of Various Functions 7-41  2) Names of parts and functions Explain about names of parts and functions (1) G7F-ADHA No Contents. RUN LED  Indicate the operating status the G7F-ADHA Analog input terminal Voltage Input Current input  When current input is used, short the V and I terminal. Jumper pin of analog input  Ri g ht[...]

  • Página 126

    Chapter 7 Usage of Various Functions 7-42 (2) G7F-ADHB No Contents. RUN LED  Indicate the operating status the G7F-ADHB Analog input terminal Voltage Input Current input  When current input is used, short the V and I terminal. Dip switch of analog input  Right : current input Left : voltage input Analog output terminal Voltage output Curre[...]

  • Página 127

    Chapter 7 Usage of Various Functions 7-43 3) Parameter setting (1) Scaling function This function convert automatically range when the inout/output range is not matched. In case that input/output is current , this function is useful that external equapment’ range is not matched each other. (MASTER-K120S series converts range automatically as foll[...]

  • Página 128

    Chapter 7 Usage of Various Functions 7-44 4) Wiring (1) Caution for wiring •  Make sure that external input signal of the mixture module of AC and analog I/O is not affected by induction noise or occurs from the AC through using another cable. •  Wire is adopted with consideration about per ipheral temperature and electric current allowan[...]

  • Página 129

    Chapter 7 Usage of Various Functions 7-45 5) I/O converstion characteristics (1) Analog input characteristics a) Voltage input In voltage input, digital amount 0 is output by 0V input and 4,000 is output by 10V input. Therefore input 2.5mV equ als to digital amount 1, but value less than 2.5mV can’t be converted. b) Current input Current input 0m[...]

  • Página 130

    Chapter 7 Usage of Various Functions 7-46 (2) Analog output characteristics a) Voltage output Input of digital amount 0 outputs analog amount 0V, 4000 does 10V.Digital input 1 equals to 2.5mV of analog amount. b) Current output In current output, digital amount 0 exchanges to 0mA, and 4,000 does 20mA. Analog amount of digital input 1 equals to 5 ?[...]

  • Página 131

    Chapter 7 Usage of Various Functions 7-47 6) Program example (1) Distinction program of A/D conversion value a) Program explanation - When digital value of channel 0 is less than 2000, P090 is on. - when digital value of channel 0 is more than 3000, P091 is on. - When digital value of channel 0 is more or same than 2000 or lesser than 3000, P092 is[...]

  • Página 132

    Chapter 7 Usage of Various Functions 7-48 (2) Program which controls speed of inverter by analog output voltage of 5 steps a) Program explanation -.When P80 becomes On, 2000 (5V) is output. -. When P81 becomes On, 2400 (6V) is output. -.When P82 becomes On, 2800 (7V) is output. -.When P83 becomes On, 3200 (8V) is output. -.When P84 becomes On, 3600[...]

  • Página 133

    Chapter 7 Usage of Various Functions 7-49   7.2.2 A/D Conversion module 1) Performance specifications The performance specifications of the analog input module are following . Item Specifications Voltage 0  10VDC ( input resistance 1  ) Current DC 4  20  ( input resistance 250  ) DC 0  20  ( input resistance 250  )) An[...]

  • Página 134

    Chapter 7 Usage of Various Functions 7-50   2) Names of parts and functions The Names of parts and functions of the analog input module are following .  No Contents RUN LED  Indicate the operating status the G7F-AD2A Analog input terminal Voltage input Current input   When current input is used, short the V and I terminal. Jumper [...]

  • Página 135

    Chapter 7 Usage of Various Functions 7-51   3) Parameter setting  (1) Scaling function The scaling function is the same that of A/D, D/A combination module . 4) Wiring (1) Caution for wiring •  Make sure that external input signal of the mixture modul e of AC and analog I/O is not affected by induction noise or occurs from the AC thro[...]

  • Página 136

    Chapter 7 Usage of Various Functions 7-52 5) Analog/Digital conversion characteristics (1) Analog input characteristics a) Voltage input In voltage input, digital amount 0 is output by 0V input and 4,000 is output by 10V input. Therefore input 2.5mV equals to digital amount 1, but value less than 2.5mV can’t be converted. b) Current input Current[...]

  • Página 137

    Chapter 7 Usage of Various Functions 7-53 6) Program example (1) Distinction program of A/D conversion value(Analog input range: DC4  20  , 0~10VDC) (a) Program explanation • When digital value of channel 0 is the same or more than 2000 and the same or less than 3000, P090 is on.  •  When digital value of channel 1 is the same or mo[...]

  • Página 138

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

  • Página 139

    Chapter 7 Usage of Various Functions 7-55  7.2.3 D/A Conversion module 1) Performance specifications The performance specifications of the analog output module are following . Specifications Item G7F-DA2I G7F-DA2V Output Range DC 0  20  ( Load resistance 510  ) DC 4  20  ( Load resistance 510  ) Classified by parameter DC 0 ~ 1[...]

  • Página 140

    Chapter 7 Usage of Various Functions 7-56   2) Names of parts and functions The Names of parts and functions of the analog input module are following .     Indicate the operating status the G7F-DA2I   Analog output terminal      External p[...]

  • Página 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[...]

  • Página 142

    Chapter 7 Usage of Various Functions 7-58  5) Scaling function The scaling function is the same that of A/D, D/A combination module. 6) Wiring (1) Caution for wiring • Make sure that external input signal of the mixture module of AC and analog I/O is not affected by induction noise or occurs from the AC through using another cable. • Wire is[...]

  • Página 143

    Chapter 7 Usage of Various Functions 7-59 7) Digital/Analog conversion characteristics (1) G7F-DA2I a) 0~20mA output Digital amount 0 outputs analog amount 0mA, 4000 does 20mA.Digital input 1 equals to 5  of analog amount. b) 4~20mA output   Digital amount 0 outputs analog amount 4mA, 4000 does 20mA.Digital input 1 equals to 6.25  of an[...]

  • Página 144

    Chapter 7 Usage of Various Functions 7-60 8) Program example (1) Program which controls speed of inverter by analog output voltage of 5 steps(0 ~ 20mA output) a) Program explanation •  When P80 becomes On, 2000 (10mA) is output. •  When P81 becomes On, 2400 (12mA) is output. •  When P82 becomes On, 2800 (14mA) is output. •  When[...]

  • Página 145

    Chapter 7 Usage of Various Functions 7-61 7.2.4 Analog timer 1) Performance specification The performance specification of the analog timer module are following. Item Specification Number of channels 4 Output value range 8 Bit (Digital output range: 0  200) Setting type Setting by variable resistance Accuracy of timer  2.0% (Accuracy about ma[...]

  • Página 146

    Chapter 7 Usage of Various Functions 7-62  3) Program example (1) Program explanation Program which controls on-delay time of output c ontact point within 0 to 20 sec. By analog timer module. (2) System configuration Main Unit Analog timer module (3) Program  A/T conversion data is moved D000 always[...]

  • Página 147

    Chapter 7 Usage of Various Functions 7-63 7.2.5 RTD input module( Standard type only) 1) Performance specification The performance specification of the RTD input module are following . Item Specification Connectable RTD Pt 100 (JIS C1640-1989, DIN 43760-1980) JPt100 (KS C1603-1991, JIS C1604-1981) Temperature input range Pt 100 : -200 ~ 600  (18[...]

  • Página 148

    Chapter 7 Usage of Various Functions 7-64  3) Parameter setting 4) Digital conversion value register  Ch. Detected T emperature value Digital conversion value Data register Remark          ?[...]

  • Página 149

    Chapter 7 Usage of Various Functions 7-65 6) T emperature conversion characteristics  The RTD input module, as shown below, linearlizes the non-linear characteristic resistance input of the RTD 7) Digital conversion value The RTD input module, as shown below, outputs digital conv erted value of detected temperature value.(Range 0 ~ 4000) Digital[...]

  • Página 150

    Chapter 7 Usage of Various Functions 7-66 8) Burn-out detection function The RTD input module has the function of burn- out detection on the Pt100, JPt100 or cable. •  As shown below, if disconnection occurs in the RTD or cable then a voltage outside the measurable range voltage is inputted by the internal burn-out detection circ uit and burn-[...]

  • Página 151

    Chapter 7 Usage of Various Functions 7-67 9) Wiring (1) Caution for wiring • Make sure that external input signal of the mixture module of AC and analog I/O is not affected by induction noise or occurs from the AC through using another cable. • Wire is adopted with consideration about peripheral temperature and electric current allowanc e. Thic[...]

  • Página 152

    Chapter 7 Usage of Various Functions 7-68   10) Program example (1) A program for output of detected temperature value as a BCD value a) Program explanation The present A/D conversion value of the detected temperatur e value which is detected from the temperature-measuring resistor Pt 100 is displayed on the BCD digital display b y us e of ch[...]

  • Página 153

    Chapter 7 Usage of Various Functions 7-69 7.3 Positioning Function(DRT/DT type only) The DRT/DT ty pe of MASTER-K120S series support 2 axes of pos itioning function. The purpose of positioning function is to transfer the moving objects by setting speed from the current position and stop them on the setting position correctly . And it also control t[...]

  • Página 154

    Chapter 7 Usage of Various Functions 7-70 2) Output Specification(P40, P41) Signal Name Rated load voltage Load voltage range Max. load c urrent Max . voltage drop during On DC 12/24V DC 10.2 ∼ 26.4V 100 ㎃ ≤ DC 0.3V Forward direction Reverse direction Positioning CW/Pulse CCW/Directio n 3) Names of wiring terminal No. Terminal No. Name Usage [...]

  • Página 155

    Chapter 7 Usage of Various Functions 7-71 4) Internal circuit and wiring example P41 – pulse output(Ch1) P - Power supply(DC 12/24V) R COM1 – Output common 1 R P40 – pulse output(Ch0) Internal circuit R R COM0 – Output common 0 P42 – Direction pulse(Ch0) P43 – Direction pulse(Ch1) COM2 – Output common 2 R R R R R R Motor driver For Ch[...]

  • Página 156

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

  • Página 157

    Chapter 7 Usage of Various Functions 7-73 (2) Speed Control (Uniform Speed Operation) • This controls the speed by the setting speed until decelerat ion stop command(POSCTR) is entered after execution by POSVEL command.. • The speed can be changed by the speed override instruction(POSSOR) • Speed control contains 2 types of start method : For[...]

  • Página 158

    Chapter 7 Usage of Various Functions 7-74 2) Operation pattern • Operation pattern describes various configuration for how to operate the positioning data using several operation step no and how to determine the speed of position data. • Operation mode types are as follows Operation mode Remark End One operation step is executed with one start [...]

  • Página 159

    Chapter 7 Usage of Various Functions 7-75 3) Operation Mode (1) End Operation A) With one time start command(rising edge of POSIST comm and), the position ing to the goal position is execut ed and the positioning shall be completed at the same time as the dwell time proceeds. B) This operation mode can be used as last positioning data of pattern op[...]

  • Página 160

    Chapter 7 Usage of Various Functions 7-76 (2) Keep Operation A) With one time Start command(POSIST), the positioning to the goal position of operation step is executed and the positioning shall be completed at the same time as dwell time proceeds and without additional start command, the positioning of operation step for (current operation step no.[...]

  • Página 161

    Chapter 7 Usage of Various Functions 7-77 (3) Continuous Operation A) With one time Start command, the positioning for operation step set by continuous operation mode is executed to the goal position without stop and the positioning shall be completed at the same time as dwell time proceeds. B) If you want to operate with the position and speed of [...]

  • Página 162

    Chapter 7 Usage of Various Functions 7-78 4) Operation Method (1) Repeat Operation A) With one time start command, the positioning to the goal po sition is executed and the positioning shall be comp leted at the same time as the dwell time proceeds. B) The operation type of Repeat operation mode is same as that of Single operation but the different[...]

  • Página 163

    Chapter 7 Usage of Various Functions 7-79 5) Positioning start (1) Direct start(POSDST) • This is used to operate directly by setting the axis, goal position address, operation speed without parameter setting. • Refer to the ‘7.3.4 Instruction’ for details. (2) Indirect start(POSIST) • This is used to operate by setting the operation step[...]

  • Página 164

    Chapter 7 Usage of Various Functions 7-80 7) Return to Origin(POSORG : Rising edge ↑ ) • Return to Origin (homing) is carried out to conf irm the origin of the machine when applying the power. • In case of Return to Origin, it is required to set Return to Origin parameter for each axis. • If the origin position is determined by origin retur[...]

  • Página 165

    Chapter 7 Usage of Various Functions 7-81 (3) Origin Detection after Deceleration when Approximate origin turns on This is the method using the approximate origin and origin signal and the action by origin return command is as follows. (A) It accelerates to the setting origin return direction and acts by origin return high speed. (B) In this case, [...]

  • Página 166

    Chapter 7 Usage of Various Functions 7-82 8) JOG Operation (POSJOG : Level input) (1) JOG operation • Carries out the positioning control by Jog command(POSJOG). • Carries out the monitoring when the positioning ac ts by JOG command and the position address is changed. • This is used when acting without origin determination. (2) Acceleration/[...]

  • Página 167

    Chapter 7 Usage of Various Functions 7-83 10) External Input Stroke High/Low Limit • External input stroke limit includes External input high limit signal and External input low limit signal. • This is used to stop the positioning function promptly before reaching Stroke limit/Stroke End of the Driver by installing the stroke limit inside Strok[...]

  • Página 168

    Chapter 7 Usage of Various Functions 7-84 • Timing diagram 1) Unused the M Code Output 2) Use the M Code 12) Error and Output Prohibition • Error includes Light failure error and Heavy failure error. • If light failure error occurs, the positioning operation will continue and only error will occur. • In case of heavy failure error, if the e[...]

  • Página 169

    Chapter 7 Usage of Various Functions 7-85 7.3.3 Positioning parameter and operation data 1) Positioning parameter • Positioning parameter setting • Parameter should be assigned for each axis (1) Basic parameter (A) Acceleration/Deceleration time • This is applied at the starting/ending point of positioning operation, return to origin high spe[...]

  • Página 170

    Chapter 7 Usage of Various Functions 7-86 (B) Backlash Compensation Amount • The tolerance that the machine does not work by the wear when the rotation direction changes in case that a gear, screw etc is combined to run at the motor axle, is called as ‘Backlash”. Therefore, when you change the rotation direction, it is required to add the bac[...]

  • Página 171

    Chapter 7 Usage of Various Functions 7-87 (2) Origin return parameter (A) Origin return method • For the details, please refer to ‘7) Return to Origin’ in chapter 7.3.2 (B) DOG, origin signal Ch 0 Ch 1 DOG P0005 P0007 Origin P0004 P0006 (C) Origin return speed • The speed when returning to the origin by origin return command : high speed an[...]

  • Página 172

    Chapter 7 Usage of Various Functions 7-88 (3) JOG speed (A) JOG High Speed • JOG high speed operation has operation pattern as accelerati on, constant speed, deceleration section. Therefore, acceleration section and deceleration section is c ontrolled by JOG acceleration/deceleration time. • JOG high speed setting range : 5 ∼ 100,000(unit: 1p[...]

  • Página 173

    Chapter 7 Usage of Various Functions 7-89 (2) Coordinate • The coordinate of position data includes Absolute and Incremental (A) Absolute Coordinate (Control by Absolute method) ① This carries out the positioning control from the current position to the goal position (the goal position assig ned by positioning data). ② Positioning control is [...]

  • Página 174

    Chapter 7 Usage of Various Functions 7-90 ( 6) Speed • Operation speed can be assigned for each operation step No. • Setting range of operation speed : 5 ~ 100,000( Setting unit: 1pps ) • The change of speed value is available when assigned by D area (7) Dwell Time • This is the waiting time before carrying out the next positioning operatio[...]

  • Página 175

    Chapter 7 Usage of Various Functions 7-91 7.3.4 Instructions 1) Positioning Indirect start(POSIST) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ n ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 5 ○ S Channel which is designated at parameter(0~1) Starting step No.(0~20) Error (F11[...]

  • Página 176

    Chapter 7 Usage of Various Functions 7-92 2) JOG Operation(POSJOG) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ n1 ○ ○ ○ ○ ○ ○ ○ n2 ○ ○ ○ ○ ○ ○ ○ 7 ○ S Ch. for JOG operation(0~1) n1 Direction( 0 : Forward, 1: Backward) Error (F110) Error flag t[...]

  • Página 177

    Chapter 7 Usage of Various Functions 7-93 3) Positioning Control Instruction(POSCTR) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ n1 ○ ○ ○ ○ ○ ○○ ○ ○ ○ ○ 5 ○ S Channel designation(0~1) Error (F110) Error flag turns on when designating area is over n1[...]

  • Página 178

    Chapter 7 Usage of Various Functions 7-94 4) Current position preset (POSPRS) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ SV1 ○ ○ ○ ○ ○ ○○ ○ ○ ○ ○ 5/7 ○ S Channel designation(0~1) Error (F110) Error flag turns on when designating area is over SV1 Pr[...]

  • Página 179

    Chapter 7 Usage of Various Functions 7-95 5) PWM output (PWM) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ SV1 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ SV2 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 7 ○ S Ch. for PWM output(0~1) SV1 PWM output period( 1 ~ 20000)[ms] Error (F1[...]

  • Página 180

    Chapter 7 Usage of Various Functions 7-96 6) Speed control operation (POSVEL) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ n1 ○ ○ ○ ○ ○○○○ SV ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 7/9 ○ S Ch. for speed control(0~1) n1 Operation direction(0:Forward, 1:Rev[...]

  • Página 181

    Chapter 7 Usage of Various Functions 7-97 7) Speed override (POSSOR) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ SV ○ ○ ○ ○ ○○○ ○ ○ ○ 5/7 ○ S Ch. for speed override(0~1) Error (F110) Error flag turns on when designati ng area is over and the instructi[...]

  • Página 182

    Chapter 7 Usage of Various Functions 7-98 8) Positioning direct start(POSDST) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ n1 ○ ○ ○ ○ ○○○○ SV1 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ SV2 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 9/11/13 ○ S Ch. for positioni[...]

  • Página 183

    Chapter 7 Usage of Various Functions 7-99 9) Return to origin(POSORG) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F110) Zero (F111) Carry (F112) S ○ n1 ○ SV ○ 7 ○ S Ch. for origin return(0~1) n1 Operation direction(0:Forward, 1:Reverse) Error (F110) Error flag turns on when designati ng area is over a[...]

  • Página 184

    Chapter 7 Usage of Various Functions 7-100 7.3.5 Flag list and Error codes 1) Flag list Device Function Description F0280 Operating flag Operation status of Ch0 (0: stop, 1:Busy) F0281 Error status Error status of Ch0 (0: normal, 1: error) F0282 End of positioning Indicates end of operation for Ch0 (0: operating, 1: End) *1Scan On F0283 End of Orig[...]

  • Página 185

    Chapter 7 Usage of Various Functions 7-101 Device Function Description F0310 Position control Position control operation of Ch1 F0311 Speed control Speed control operation of Ch1 F0312 Return to origin Return to origin operation of Ch1 F0313 JOG low speed JOG low speed operation of Ch1 F0314 JOG high speed JOG high speed operation of Ch1 F0315 PWM [...]

  • Página 186

    Chapter 7 Usage of Various Functions 7-102 2) Error code Error code Condition Operation Corrective action H10 Acceleration time of basic parameter is out of range Stop Set Acceleration time within 0~10,000 range H11 Deceleration time of basic parameter is out of range Stop Set Deceleration time within 0~10,000 range H12 Speed limit of basic paramet[...]

  • Página 187

    Chapter 7 Usage of Various Functions 7-103 Error code Condition Operation Corrective action H44 POSSOR command can’t be ex ecuted during decelerating Operating Check if positioning is in the decelerating section when POSSOR signal occur. H45 POSORG command can’t be executed during operation Operating Check if positioning operation is executing [...]

  • Página 188

    Chapter 7 Usage of Various Functions 7-104 7.3.6 Wiring with servo and steppi ng motor driver (Open Collector) 1) Wiring with stepping motor driver(DC 5V) 2) Wiring with stepping motor driver (DC 24V) Remark 1 ) In case of VEXTA RK series, TIMMING output turns on when a motor rotates at every 7.2 degree. For exact ‘return to origin’, we suggest[...]

  • Página 189

    Chapter 7 Usage of Various Functions 7-105 3) Wiring with servo motor driver(MR-J2/J2S- □ A) Remark 1) The rated input for the origin of K120S is DC 24V. 2) Input points for origin, approximate origin point, and upper/l ower limit signal are fixed but, if they’re not used you able to use them general input point. You c an use emergency stop wit[...]

  • Página 190

    Chapter 7 Usage of Various Functions 7-106 4) Wiring with Servo motor driver(FDA-5000 AC Servo Driver) Remark 1) The rated input for the origin of K120S is DC 24V. Li nedriver output, wire a DC SSR and return to origin by DOG signal or using a origin sensor of original signal. 2) Input points for origin, approximate origin point, and upper/l ower l[...]

  • Página 191

    Chapter 8 Communication Functions 8-1 Chapter 8. Communication Functions 8.1 Dedicated Protocol Communication 8.1.1 Introduction MASTER-K120S’s built-in Cnet communication uses only MASTER-K120S main unit for a dedicated communication. That is, it doesn’t need a separate Cnet I/F module to facilitate the user-i ntended communication system by u[...]

  • Página 192

    Chapter 8 Communication Functions 8-2 8.1.2 System configuration method According to the method of connection, the system using MASTER-K120S built-in communication can be composed. 1) Connecting system configurat ion (link between MASTER-K’s) (1) 1:1 connection with general PC a) Communication program made by C or BASIC computer language on the u[...]

  • Página 193

    Chapter 8 Communication Functions 8-3 (2) 1:1 connection with a monitoring device like PMU PMU MASTER-K120S main unit Pin No. Pin assignment and direction Pin no. Signal 1 1 5V 2 2 RXD1 3 3 TXD1 4 4 RXD2 5 5 SG 6 6 5V 7 7 TXD2 8 8 SG 9 9 SG PMU Connection method and signal direction MASTER-K120S main unit 485+ 485+ 485- 485- 1 2 3 4 5 6 7 8 9 PMU(L[...]

  • Página 194

    Chapter 8 Communication Functions 8-4 . (3) 1:1 connection with other MASTER-K120S MASTER-K120S main unit MASTER-K120S main unit Pin no. Pin assignment and direction Pin no. Signal 1 1 5V 2 2 RXD1 3 3 TXD1 4 4 RXD2 5 5 SG 6 6 5V 7 7 TXD2 8 8 SG 9 9 SG MASTER-K120S main unit Connection method and signal direction MASTER-K120S main unit 485+ 485+ 485[...]

  • Página 195

    Chapter 8 Communication Functions 8-5 8.1.3 Frame Structure 1) Base Format (1) Request frame(external communication device → MASTER-K120S main unit), (Max. 256 Bytes) Header (ENQ) Station number Command Command type Structurized data area Tail (EOT) Frame check (BCC) (2) ACK Response frame (MASTER-K120S main unit → external communication device[...]

  • Página 196

    Chapter 8 Communication Functions 8-6 Remark 1) The numerical data of all frames are ASCII codes equal to hexadecimal value, if there’s no clear statement. The terms in hexadecimal are as follows. • Station No. • When the main command is R(r) or W (w) and t he command type is numeric al (means a data type) • All of the terms indicating size[...]

  • Página 197

    Chapter 8 Communication Functions 8-7 8.1.4 List of commands Command Main command Command type Classification Items Code ASCII code Code ASCII code Treatment Individual r(R) H72 (H52) SS 5353 Reads data from device of Bit, Byte, Word type. Readin g device Continuous r(R) H72 (H52) SB 5342 Reads device Word in block unit. (Continuous reading Bit is [...]

  • Página 198

    Chapter 8 Communication Functions 8-8 8.1.5 Data type It’s possible to read and write device in built-in communi cation. When device is used, be aware of data type. 1) Data type of variable • Available types of device Device Name Explanation Read/Write Bit/Byte/Word Assignment P Input/Output relay Available All M Auxiliary relay Available All L[...]

  • Página 199

    Chapter 8 Communication Functions 8-9 8.1.6 Execution of commands 1) Individual reading of device(R(r)SS) (1) Introduction This is a function that reads PLC device specif ied in accord with memory data type. Separate device memory can be read up to 16 at a time. (2) PC request format Format name Header Station No. Command Command type Number of blo[...]

  • Página 200

    Chapter 8 Communication Functions 8-10 (3) Response format (ACK response) Format name Header Station No. Command Command type Number of blocks Number of data data Tail Frame check Ex. of frame ACK H20 R(r) SS H01 H02 HA9F3 ...... ETX BCC ASCII value H06 H3230 H52(72) H5353 H3031 H3032 H41394633 H04 1 block(max. 16 blocks possible) Item Explanation [...]

  • Página 201

    Chapter 8 Communication Functions 8-11 (4) Response format (NAK response) Format name Header Station No. Command Command type Error code (Hex 2 Byte) Tail Frame check Ex. of frame NAK H20 R(r) SS H1132 ETX BCC ASCII value H15 H3230 H 52(72) H5353 H31313332 H03 Item Explanation BCC When command is lowercase(r), only one lower byte of the value resul[...]

  • Página 202

    Chapter 8 Communication Functions 8-12 ③ For NAK response after execution of command(PC ← MASTER-K120S main Unit) Format name Header Station No. Command Command type Error code Tail Frame check Ex. of frame NAK H01 r SS Error code (2 bytes) ETX BCC ASCII value H15 H3031 H72 H5353 Error code (4 bytes) H03 2) Continuous reading(R(r)SB) of device [...]

  • Página 203

    Chapter 8 Communication Functions 8-13 (3) MASTER-K120S Main unit response format (MASTER-K120S of ACK response) Format name Header Station No. Command Command type Number of blocks Number of data data Tail Frame check Ex. of frame ACK H10 R(r) SB H01 H02 H1122 EOT BCC ASCII value H06 H3130 H52(72) H5342 H3031 H3134 H31313232 H03 Item Explanation B[...]

  • Página 204

    Chapter 8 Communication Functions 8-14 (4) Response format (NAK response) Format name Header Station No. Command Command type Error code (Hex 2 Byte) Tail Frame check Ex. of frame NAK H10 r SB H1132 ETX BCC ASCII value H15 H3130 H72 H 5342 H31313332 H03 Item Explanation BCC When command is lowercase(r), only one lower byte of the value resulted by [...]

  • Página 205

    Chapter 8 Communication Functions 8-15 3) Individual writing of device(W(w)SS) (1) Introduction This is a function that writes the PLC device memory directly specified in accord with memory data type. (2) PC request format Format name Header Station No. Command Command type Number of blocks Device Length Device Name Data Tail Frame check Frame (Exa[...]

  • Página 206

    Chapter 8 Communication Functions 8-16 (3) Response format (ACK response) Format name Header Station No. Command Command type Tail Frame check Frame (Example) ACK H20 W(w) SS ETX BCC ASCII value H06 H3230 H57(77) H5353 H03 Item Explanation BCC When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each to ASCII val[...]

  • Página 207

    Chapter 8 Communication Functions 8-17 (5) Example This example supposes that "HFF" is written in M230 of station No. 1 and BCC value is checked. ① Computer request format (PC → MASTER-K120S main unit) Format name Header Station No. Command Command type Number of blocks Device Length Device Name Data Tail Frame check Frame (Example) E[...]

  • Página 208

    Chapter 8 Communication Functions 8-18 4) Continuous writing of device(W(w)SB) (1) Introduction This is a function that directly specifies PLC device memory and continuously writes data from specified address as much a s specified length. (2) Request format Format name Header Station No. Comman d Comma nd type Device Length Device Number of data (M[...]

  • Página 209

    Chapter 8 Communication Functions 8-19 (3) Response Format (ACK response) Format name Header Station No. Command Command type Tail Frame check Frame (Example) ACK H10 W(w) SB ETX BCC ASCII value H06 H3130 H57(77) H5342 H03 Item Explanation BCC When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each to ASCII val[...]

  • Página 210

    Chapter 8 Communication Functions 8-20 (5) Example This example supposes that 2 byte H’AA15 is written in D000 of station No. 1 and BCC value is checked. ① Computer request Format (PC → MASTER-K120S main unit) Format name Header Station No. Command Command type Device Length Device Number of data Data Tail Frame check Frame (Example) ENQ H01 [...]

  • Página 211

    Chapter 8 Communication Functions 8-21 5) Monitor register(X##) (1) Introduction Monitor register can separately register up to 10 in combination with actual variable reading com mand, and carries out the registered one through monitor command after registration. (2) PC request Format Format name Header Station No. Command Registration No. Registra[...]

  • Página 212

    Chapter 8 Communication Functions 8-22 (3) Response Format (ACK response) Format name Header Station No. Command Registration No. Tail Frame check Frame (Example) ACK H10 X(x) H09 ETX BCC ASCII value H06 H3130 H58(78) H3039 H03 Item Explanation BCC When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each to ASCI[...]

  • Página 213

    Chapter 8 Communication Functions 8-23 (5) Example This example supposes that device M000 of station NO. 1 is monitor registered. ① Computer request Format (PC → MASTER-K120S main unit) Registration Format Format name Header Station No. Command Registration No. R## Number of blocks Device length Device name Tail F rame check Frame (Example) ENQ[...]

  • Página 214

    Chapter 8 Communication Functions 8-24 6) Monitor execution(Y##) (1) Introduction This is a function that carries out the reading of the variable registered by monitor register. Th is also specifies a registere d number and carries out reading of the variable registered by the number. (2) PC request Format Format name Header Station No. Command Reg[...]

  • Página 215

    Chapter 8 Communication Functions 8-25 (4) Response Format (NAK response) Format name Header Station No. Command Registration No. Error code (Hex 2Byte) Tail Frame check Frame (Example) NAK H10 Y(y) H09 H1132 ETX BCC ASCII value H15 H3130 H 59(79) H3039 H31313332 H03 Item Explanation BCC When command is lowercase(y), only one lower byte of the valu[...]

  • Página 216

    Chapter 8 Communication Functions 8-26 7) Reading PLC Status(RST) (1) Introduction This is a function that reads flag list including operating status of PLC and error information. (2) PC request Format Format name Header Station No. Command Command type Tail Frame check Frame (Example) ENQ H0A R(r) ST EOT BCC ASCII value H05 H3041 H52(72) H5354 H04[...]

  • Página 217

    Chapter 8 Communication Functions 8-27 (4) Response Format ( NAK response) Format name Header Station No. Command Command type Error code (Hex 2 Byte) Tail Frame check Frame (Example) NAK H0A R(r) ST H1132 ETX BCC ASCII value 15 3041 5272 5354 31313332 03 * When command is one of lower case(r), only one lower byte of the value resulted by adding 1 [...]

  • Página 218

    Chapter 8 Communication Functions 8-28 8.1.7 1:1, 1:n Built-in comm unication between MASTER-K120S's 1) Introduction 1:1 built-in communication between MASTER-K120S's is that which constitutes a built-in communication system with the method of 1(master) : 1(slave). Setting Base parameter and comm unication parameter in KGLWIN can easily c[...]

  • Página 219

    Chapter 8 Communication Functions 8-29 2) Parameter setting (1) Communication Parameter Setting • Open a new project file from KGLWIN - MASTER-K120S must be selected as PLC type. • After selecting communication parameter from KG LWIN and clicking twice, this window comes up. (a) When uses Ch.0 : Built-in RS-232C or External Cnet I/F module (b) [...]

  • Página 220

    Chapter 8 Communication Functions 8-30 • Set according to the following table Item Contents Station No. Sets one of station from 0 to 31. Baud rate Sets one of 1200, 2400, 4800, 9600, 19200, 38400, 57600 bps Data bit Sets one of 7 or 8 Bits Parity bit Sets one of none, Even, Odd Stop bit Sets one of 1 or 2 Bit(s) Communication channel • RS232C [...]

  • Página 221

    Chapter 8 Communication Functions 8-31 • Click the ‘List’ button to open the registration list window. • Total 64 data blocks can be assigned. But it's not possible to set a register number. • Sending and receiving data size can be set up to 60 Words. • Set device area - Sending: reading device area P,M,L,K,T,C,D,S saving device ar[...]

  • Página 222

    Chapter 8 Communication Functions 8-32 3) Flag related with operating status (1) Sending/receiving error count fo r each station (total 32 stations) Error code is saved following area according to station Station Device Station Device Remarks 0,1 D4400 16,17 D4408 2,3 D4401 18,19 D4409 4,5 D4401 20,21 D4410 6,7 D4403 22,23 D4411 8,9 D4404 24,25 D44[...]

  • Página 223

    Chapter 8 Communication Functions 8-33 • Error bit b 7 b 6 b 5 b 4 b 3 b 2 b 1 b 0 (4) Status flag of the master PLC Status Information of master PLC is saved in D4448 b15 b3 b2 b1 b0 - - - - - - - - - - - b1 : be set in case station is duplicated b2 : be set in case device area over (5) Max/min/current sending/receiving cycle of set parameter Co[...]

  • Página 224

    Chapter 8 Communication Functions 8-34 4) Example • Device M000 is increased by program per 1 second. • Writing M000 to output area P004 of slave • Reading slave’s output area P004 • Writing it to master’s output area P009 The following example uses the above diagram to explain the operation of MASTER-K120S main unit. • The data of th[...]

  • Página 225

    Chapter 8 Communication Functions 8-35 ④ Set parameters as the following table. Communication Method Protocol and mode Comm- unication Station no. Baud rate Data bit Parity bit Stop bit Communication channel Timeout Dedicated Enable 0 19200 8 None 1 RS232C null modem or RS422/485 500ms Master ⑤ Click ‘List’ button to activate registration l[...]

  • Página 226

    Chapter 8 Communication Functions 8-36 ⑧ The registration list ‘0’ registered in the registrati on list can be confirmed through a window like the following. ⑨ Double click the No. 1 for receive parameter setting and Se t parameters like the following table and click ‘OK’ button. Station No. Size Mode Area to read(From) Area to save(to)[...]

  • Página 227

    Chapter 8 Communication Functions 8-37 (2) Program (2) Parameter setting for slave station. ① Set parameters as the following table. Communication Method Protocol and mode Commu- nication Station no. Baud rate Data bit Parity bit Stop bit Communication channel Timeout Dedicated Enable 31 19200 8 None 1 RS232C null modem or RS422/485 - slave ② S[...]

  • Página 228

    Chapter 8 Communication Functions 8-38 8.1.8 Error code Error code Error type Error condition and causes Treatment H0001 PLC system error Interface with PLC is impossible. Off/On the power H0011 Data error Errors occurred when exchanging ASCII data to numbers. Check if other letters t han capitals/small letters, numbers, and (‘%’,’_’,’ .?[...]

  • Página 229

    Chapter 8 Communication Functions 8-39 8.2 User Defined Protocol Communication 8.2.1 Introduction User Defined Protocol Communication allows users who do communication between MASTER-K120S main unit and other kind of device to define the other company’s protocol at MASTER-K PLC. There’re a number of kinds of protocols made by many companies, th[...]

  • Página 230

    Chapter 8 Communication Functions 8-40 2) Setting frame (1) Click “List” button to activate the following window. (2) Select one of 1 ∼ 15 in frame list to open the following window. ① Frame specification • Header - Used in [Header] type. - Possible characters, as headers are 1 alphabet letter, 1 numeric number, or control characters as b[...]

  • Página 231

    Chapter 8 Communication Functions 8-41 Example 1) [NUL] , [ENQ] , [1] , [A] : Possible Example 2) NUL, ENQ , [12] , [ABC] : impossible - It is allowed to be only 3 consecutive characters. Example 3) [ENQ][STX][NUL] : Possible Example 4) [A][NUL][ENQ][STX] : impossible • Send / Receive - Not defined : It is the initial value that doesn’t declare[...]

  • Página 232

    Chapter 8 Communication Functions 8-42 Item Contents It is a radio button to select the input type of commands. There’re 2 kinds as hex or ASCII value. Ex1) ASCII : 1 0 R S B 0 6 % M W 1 0 0 Ex2) Hex : 31 30 52 53 42 30 36 25 57 44 31 30 30 If ARRAY is set, it asks whether it woul d convert data to ASC II to send (at send frame), or convert to he[...]

  • Página 233

    Chapter 8 Communication Functions 8-43 • BCC setting: set BCC when it is needed. I t e m Contents Data Type ASCII adds 2 bytes BCC value in ASCII type to frame. Hex adds 1 byte BCC value in Hex type to frame. For the detailed setting BCC, refer to 8.1.6 “Execution of Commands”. Default It is that sum all the data from 2 nd data to the data be[...]

  • Página 234

    Chapter 8 Communication Functions 8-44 • Frame size - ASCII communication : max. 128 bytes - Hex communication : max. 256 bytes • Link relay (L) - It’s a flag to indicate whether a user defined frame is received in the order set by the user. - If the received frame is matched with the declared frame in frame list number 3, L003 starts blinkin[...]

  • Página 235

    Chapter 8 Communication Functions 8-45 The last transmitting frame BCC Type setting The kinds of Input segment The value of sum check ASCII Type Hex Type ASCII Input 31 + 32 +33 +34 +04 = CE 05 31 32 33 34 04 43 41 05 31 32 33 34 04 CE Hex Input 12 + 34 +04 = 4A 05 12 34 04 34 41 05 12 34 04 4A (2) SUM 1 , XOR 1 or MUL 1 setting. ① SUM 1 The last[...]

  • Página 236

    Chapter 8 Communication Functions 8-46 ④ Complement setting : Complement calculation as below example> 1’s and 2’s Complements of D3 b i t 7 b i t 0 1 1 0 1 0 0 1 1 b i t 7 b i t 0 0 0 1 0 1 1 0 0 b i t 7 b i t 0 0 0 1 0 1 1 0 1 ⑤ Mask setting : Masking method is as below b i t 7 b i t 0 1 1 0 1 0 0 1 1 b i t 7 b i t 0 1 1 1 1 1 1 1 1 b [...]

  • Página 237

    Chapter 8 Communication Functions 8-47 8.2.3 Instruction 1) User defined communication instruction(SNDCOM) Available Device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F1 10) Zero (F1 11) Carry (F1 12) Ch ○ n1 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ D ○ ○ ○ ○ ○ ○ 7 ○ Ch Designated communication channel n1 Fram[...]

  • Página 238

    Chapter 8 Communication Functions 8-48 3) Error code Code Error type explanation 06 Slave Device Busy It’s sending or waiting to receive 09 Parameter Error Communication parameter setting error, Link enable setting error 10 Frame Type Error Frame does not setting or frame does not ‘sending’ 8.2.4 Example of Usage This example is supposed that[...]

  • Página 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[...]

  • Página 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[...]

  • Página 241

    Chapter 8 Communication Functions 8-51 ⑥ Double click the number 1 frame ⑦ BCC Setting method is same frame 0. ⑧ After the frame setting and BCC setting completes, click the OK button. ⑨ You can see the frame list window which is designated as below.[...]

  • Página 242

    Chapter 8 Communication Functions 8-52 ⑧ Program • When the data is received at frame no. 1, link relay L001 turns on during 1 scan. At that moment, M000 increases and the value of M000 moves output relay P004. • The new value of M000 is sending again ever y 1 second period (F092 is 1second period flag) • The number of sending normally stor[...]

  • Página 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.[...]

  • Página 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.[...]

  • Página 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.[...]

  • Página 246

    Chapter 8 Communication Functions 8-56 ⑧ After the frame setting and BCC setting completes, click the OK button. ⑨ You can see the frame list window which is designated as below ⑩ Program • When the data is received at frame no. 0, link relay L000 turns on during 1 scan . At that moment P004 increases and the value of P004 moves M000. • T[...]

  • Página 247

    Chapter 8 Communication Functions 8-57 8.3 Modbus Protocol Communication 8.3.1 Introduction MASTER-K120S built-in communication supports Modbus, the Modicon product’s communication protocol. It supp orts ASCII mode, using ASCII data and RTU mode using Hex data. Functi on code used in Modbus is supported by instruction and especially function code[...]

  • Página 248

    Chapter 8 Communication Functions 8-58 3) Address area (1) Setting range is available from 1 to 247, but MASTER-K120S supports from 0 to 31. (2) Address 0 is used for broadcast address. Broadcast address is all slave device recognize and respond to like the self- address, which can't be supported by MASTER-K120S. 4) Function code area (1) MAST[...]

  • Página 249

    Chapter 8 Communication Functions 8-59 7) Function code types and memory mapping Code Function code name Modicon PLC Data address Remark 01 Read Coil Status 0XXXX(bit-output) Read bits 02 Read Input Status 1XXXX(bit-input) Read bits 03 Read Holding Registers 4XXXX(word-output) Read words 04 Read Input Registers 3XXXX(word-input) Read words 05 Force[...]

  • Página 250

    Chapter 8 Communication Functions 8-60 10) Map of wiring MASTER- K120S main unit Quantum (9PIN) Pin no. Connecting no. and direction Pin no. Signal 1 1 CD 2 2 RXD 3 3 TXD 4 4 DTR 5 5 SG 6 6 DSR 7 7 RTS 8 8 CTS 9 9 • Use RS-485 connector when using channel 2. 8.3.3 Parameters Setting 1) Setting communication parameter (1) Open a new project file a[...]

  • Página 251

    Chapter 8 Communication Functions 8-61 (3) Set the contents as follows. Item Setting contents Station No. Set a number between 0 to 31 (Don’t assign no. 0 as broadcasting station lest it may be a cause for mistaken operation) Baud Rate Set one from 1200, 2400, 4800, 9600, 19200, 38400, or 57600 bps. Data Bit Set 7 or 8. ASCII mode: Set as 7 bits.[...]

  • Página 252

    Chapter 8 Communication Functions 8-62 8.3.4 Instruction and example 1) MODBUS communication instruction(MODCOM) Available device Flag Instruction M P K L F T C S D # D integer No. of steps Error (F1 10) Zero ( F 111 ) Carry (F1 12) C h ○ S1 ○ ○ ○ ○ ○ ○ ○ ○ ○ S2 ○ ○ ○ ○ ○ ○ ○ ○ S3 ○ ○ ○ ○ ○ ○ ○ ○ [...]

  • Página 253

    Chapter 8 Communication Functions 8-63 • S3 format is as below. b i t 1 5 b i t 8 b i t 1 b i t 0 • NDR : when the communication ends normally, this bit turns on during 1 scan. • Error bit : when communication error occurs, this bit turns on dur ing 1 scan. At that time error code stores bit 8 ~ bit 15. • Error code is as follow Code Error [...]

  • Página 254

    Chapter 8 Communication Functions 8-64 2) Example program 1 It’s supposed that MASTER-K120S main unit is the master and it reads Coil Status of the station no. 17, a Modicon product. The master reads status of the Coil 00020 ~ 00056 of the slave station no. 17. The Coil of the slave station is su pposed to be as follows and the data that are read[...]

  • Página 255

    Chapter 8 Communication Functions 8-65 3) Example program 2 It’s supposed that MASTER-K120S main unit is the master and it reads Coil Status of the station no. 17, a Modicon product. The master reads status of the input contact 10197 ~ 10218 of the slave station no. 17. The input contact of the slave station is supposed to be as follows and the d[...]

  • Página 256

    Chapter 8 Communication Functions 8-66 4) Example program 3 The master writes data D1000 ~ D1003 to contact 40000 of the slave station no. 10. ① : It designates slave station and function code ( No . of station : h0A(10) , function code : h10 ) ② : Address setting Address ‘0’ of function code ‘16’ at MODBUS protocol means address ‘400[...]

  • Página 257

    Chapter 8 Communication Functions 8-67 8.4 No Protocol Communication 8.4.1 Introduction No protocol communication is useful when communication between MASTER-K120S main unit and other kind of devices with user defined protocol is impossible. User defined protocol is very convenie nt when there are enough interval between frames or a kind of frame i[...]

  • Página 258

    Chapter 8 Communication Functions 8-68 • Receiving format can be designated as below. Upper byte(hex) Lower byte(hex) H00(Receiving by Length of frame) H03 (R eceives when length of frame data is 3) H01(Receiving by last byte) H03 (Rec eives when last frame data is 03(ETX)) - When designated as length of frame : Stores receiv ed data to devices w[...]

  • Página 259

    Chapter 8 Communication Functions 8-69 8.4.3 Instructions 1) No protocol receive(DRCV) Available Device Flag Instruction M P K L F T C S D # D Integer No. of step Error (F1 10) Zero ( F 111 ) Carry (F1 12) Ch ○ Cw ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ D ○ ○ ○ ○ ○ ○ ○ ○ SS ○ ○ ○ ○ ○ ○ ○ ○ 9 ○ Ch Designated commu[...]

  • Página 260

    Chapter 8 Communication Functions 8-70 1) No protocol send(DSND) Available Device Flag Instruction M P K L F T C S D # D Integer No. of step Error (F1 10) Zero ( F 111 ) Carry (F1 12) Ch ○ n ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ S ○ ○ ○ ○ ○ ○ ○ ○ SS ○ ○ ○ ○ ○ ○ ○ ○ 9 ○ Ch Designated communication channel n Numb[...]

  • Página 261

    Chapter 8 Communication Functions 8-71 8.4.4 Examples Assume that a electrical weighing machine sends dat a which has unfixed size continuously. MASTER-K120S can communicates with it using no protocol. For no protocol communication, one of following ending condition is designated. One is size of received data and the other is w hether it has some p[...]

  • Página 262

    Chapter 8 Communication Functions 8-72 1) Communication Parameter Setting • Open a new project file from KGLWIN - K120S must be selected as PLC type. • After selecting communication parameter from KG LWIN and clicking twice, this window comes up. • Designate baud rate, data bit, parity bit, stop bit, and protocol. 2) Program • Save sending [...]

  • Página 263

    Chapter 8 Communication Functions 8-73 8.5 Remote connection and communication I/F module 8.5.1 Remote connection MASTER-K120S series can connect to other PLC by built -in Cnet interface or communication I/F modules. 1) Remote connection by built-in Cnet I/F Remote connection by built-in Cnet I/F is avail able by dedicated communication protocol on[...]

  • Página 264

    Chapter 8 Communication Functions 8-74 • Open a new project file from KGLWIN • After selecting menu-project-option, click ‘connection option’ • Click ‘Remote 1’ in depth of connection -. Type : Select GLOFA Cnet. -. Base : Select ‘0’. -. Clot : set to 0 when uses channel 0, and ‘1’ when uses channel 1 -. Station No. : Input sl[...]

  • Página 265

    Chapter 8 Communication Functions 8-75 • Dedicated modem and dial-up modem are both available and Set connection option of KGLWIN as below. 3) Remote connection by Fnet I/F module • Remote connection by Fnet interface is available by setting connection option of KGLWIN as below G7L-FUEA G7L-FUEA[...]

  • Página 266

    Chapter 8 Communication Functions 8-76 8.5.2 Communication I/F module MASTER-K120S series supports various kinds of communication I/F module. In this time, Built-In Cnet in main unit must be set to ‘Off’ as below and only one communication module can be extended 1) Usage of G7L-CUEB Using G7L-CUEB, MASTER-K120S can connect to other PLC by dedic[...]

  • Página 267

    Chapter 8 Communication Functions 8-77 Wiring Example : RS-485 I/F 3) Usage of G7L-FUEA/RUEA G7L-FUEA and G7L-RUEA are Field Bus Interface module of LGIS and they support High speed link communication service by parameter setting. But communicati on by command(Read, Write) are not available • After selecting communication parameter from KGLWIN an[...]

  • Página 268

    Chapter 8 Communication Functions 8-78 • Clicking List button then this window comes up. • Designate self-station No. and set link items after double clicking entry list • For the details, refer to User’s manual of Fnet I/F module 4) Usage of G7L-PBEA/DBEA G7L-PBEA support profibus slave function on ly and G7L-DBEAsupports DeviceNet slave i[...]

  • Página 269

    Chapter 9 Installation and Wiring 9-1 Chapter 9. Installation and wiring 9.1 Installation 9.1.1 Installation Environment  This unit has high reliability regardless of its installati on environment, but be sure to check the following for system rel iability. 1) Environment requirements Avoid installing this unit in locations which are subjected o[...]

  • Página 270

    Chapter 9 Installation and Wiring 9-2 4 ) Power consumption block diagram of PLC systems 5) Power consumption of each part (1) Power consumption of a power supply part Approximately 65% of the power supply module current is c onverted into power 35% of that 65% dissipated as heat, i.e., 3.5/6.5 of the output power is actually used. • W pw = 3.5 /[...]

  • Página 271

    Chapter 9 Installation and Wiring 9-3 (6) Power consumption of the special module • W S = I 5V X 5 + I 24V X 24 (W) (7 ) The sum of the above values is the power consumption of the entire PLC system. • W = W PW + W 5V + W 24V + W out + W in + W s (W) (8) Check the temperature rise within the control panel wi th calculation of that total power c[...]

  • Página 272

    Chapter 9 Installation and Wiring 9-4 (6) Wiring • Wiring I/O wires with high voltage cable or power supply line can cause malfunction or disorder. • Be sure that any wire does not pass across during input LED(I/O status will not be clearly identified). • If an ind uctive load has been connected to output part, con nec t parallel surge killer[...]

  • Página 273

    Chapter 9 Installation and Wiring 9-5 (4) Mount the wire duct as it is needed. If the clearances are less than those in Fig below, follow the instructions shown below • If the wire duct is mounted on the upper part of the PLC, make the wiring duct clearance 50  or less for good ventilation. Also, allow the distance enough to press the hook in [...]

  • Página 274

    Chapter 9 Installation and Wiring 9-6 9.1.3 Connection of expansion module The following explains the Connection of expansion modules to the main unit. (1) Open the connector cover of the main unit. (2) Insert the connector of the expansion module to the connector of the base unit. (3) Close the connector cover of the main unit . ③: expansion mod[...]

  • Página 275

    Chapter 9 Installation and Wiring 9-7 9.2 Wiring The followings explains the wiring instructions for use of the system. 9.2.1 Power Supply Wiring (1) When voltage fluctuations are larger than the s pecified value, connect a constant-voltage transformer . (2) Use a power supply which generates minimal noise acro ss wire and across PLC and ground. (W[...]

  • Página 276

    Chapter 9 Installation and Wiring 9-8 (7) As a measure against very large surge(e.g. due to lightening),connect a surge absorber as shown below. (8) Use a insulating transformer or noise filter for protection against noise. (9) Twist every input power supply wires as closely as possible. Do not allow the transformer or noise filter across the duct.[...]

  • Página 277

    Chapter 9 Installation and Wiring 9-9 9.2.3 Grounding (1) This PLC has sufficient protection against noise, so it can be used without grounding except for special much noise. Howeve r, when grounding it should be done conforming to below items . (2) Ground the PLC as independently as possible. Class 3 grounding should be used (grounding resistance [...]

  • Página 278

    Chapter 10 Maintenance 10-1 Chapter 10 Maintenance Be sure to perform daily and periodic maintenance and inspection in order to maintain the PLC in the best conditions. 10.1 Maintenance and Inspection The I/O module mainly consist of semiconductor devices and its se rvice life is semi-permanent. However, periodic inspection is requested for ambient[...]

  • Página 279

    Chapter 10 Maintenance 10-2 10.3 Periodic Inspection Check the following items once or twice every si x months, and perform the needed corrective actions. Check Items Checking Methods Judgment Corrective Actions Ambient temperature 0 ~ 55 ° C Ambient Humidity 5 ~ 95%RH Ambient Environment Ambience -. Measure with thermometer and hygrometer -. meas[...]

  • Página 280

    Chapter 11 Troubleshooting 11-1 Chapter 11 Troubleshooting The following explains contents, diagnosis and corrective actions for various errors that can occur during system operation. 11.1 Basic Procedures of Troubleshooting System reliability not only depends on reliable equipment but also on short downtimes in the event of faults. The short disco[...]

  • Página 281

    Chapter 11 Troubleshooting 11-2 11.2.1 Troubleshooting flowchart used when the POWER LED turns OFF. The following flowchart explains correctiv e action procedure used when the power is supplied or the power led turns off during operation. Power LED is turned OFF Is the power supply operating? Is the voltage within the rated power? Is the fuse blown[...]

  • Página 282

    Chapter 11 Troubleshooting 11-3 11.2.2 Troubleshooting flowchart used when the ERR LED is flickering The following flowchart explains corrective action procedure use when the power is suppli ed starts or the ERR LED is flickering during operation. Though warning error appears, PLC system doesn’t stop but corre ctive action is needed promptly. If [...]

  • Página 283

    Chapter 11 Troubleshooting 11-4 11.2.3 Troubleshooting flowchart used when the RUN LED turns off. The following flowchart explains corrective action procedure to treat the lights-out of RUN LED when the power is supplied, operation starts or operation is in the process. RUN LED is off. No Yes Contact the nearest service center. Complete Turn the po[...]

  • Página 284

    Chapter 11 Troubleshooting 11-5 11.2.4 Troubleshooting flowchart used when the I/O part doesn’t operate normally. The following flowchart explains corrective action pr ocedure used when the I/O module doesn’t operate normally. When the I/O module doesn’t work normally. Check the status of P40 by KGLWIN Is the indicator LED of the P40 on? No R[...]

  • Página 285

    Chapter 11 Troubleshooting 11-6 Continue A re the indicator LED of the switch 1 and 2 on? No Check the status of the switch 1and 2 Yes Is input wiring correct? Separate the external wiring witch then check the status by forced input Correct the wiring Check the status of the switch 1 and 2 Unit replacement is needed Check the status of the switch 1[...]

  • Página 286

    Chapter 11 Troubleshooting 11-7 11.2.5 Troubleshooting flowchart used when a program cannot be written to the CPU part The following flowchart shows the corrective action procedure used when a program cannot be written to the PLC module. Program cannot be written to the PC CPU Yes Switch to the remote S TOP mode and execute the program write. Is th[...]

  • Página 287

    Chapter 11 Troubleshooting 11-8 11.3 Troubleshooting Questionnaire When problems have been met during operation of the MASTER-K120S series, please write down this Questionnaires and contact the service center via telephone or facsimile. y For errors relating to special or communication modules, use the questionnaire included in the User’s manual [...]

  • Página 288

    Chapter 11 Troubleshooting 11-9 ~ 11.4 Troubleshooting Examples Possible troubles with various circuits and their corrective actions are explained. 11.4.1 Input circuit troubl es and corrective actions The followings describe possible troubles with i nput circuits, as well as corrective actions. Condition Cause Corrective Actions Input signal doesn[...]

  • Página 289

    Chapter 11 Troubleshooting 11-10 11.4.2 Output circuit troubles and corrective actions The following describes possible troubles with input circuits, as well as their corrective actions. Condition Cause Corrective Ac tion When the output is off, excessive voltage is applied to the load. y Load is half-wave rectifie d inside (in some cases , it is t[...]

  • Página 290

    Chapter 11 Troubleshooting 11-11 Output circuit troubles and corrective actions (continued). Condition Cause Corrective actions The load off response time is long. y Over current at off state [The large solenoid current fluidic load (L/R is large) such as is directly driven with the transistor output. y The off response time can be delayed by one o[...]

  • Página 291

    Chapter 11 Troubleshooting 11-1 2 11.5 Error code list Error Code Message CPU state Message Cause Corrective Actions 0001h Internal system error Stop Sy stem Error Fault of s ome area of operating ROM, or H/W defect Contact the s ervice center. 0002h OS ROM error Stop OS ROM Error Internal system ROM is defected Contac t the service center. 0003h O[...]

  • Página 292

    Chapter 11 Troubleshooting 11-1 3 (continued) Error Code Error CPU state Message Cause Corrective Actions 0026h FMM 3 Parameter Error Stop FMM 3 PARA Error FMM 3 Parameter Error Correct the parameter. 0030h Operation Error Stop Operation Error • A digit of other than 0 to 9 has met during BCD conversion. • An operand value is outside the define[...]

  • Página 293

    Appendix 1 System Definitions App1-1 Appendix 1. System Definitions 1) Option (1) Connect Option You should set the communication port (COM1 ∼ 4) to communicate with PLC. • Select the Project-Option-Connection Option in menu. • Default Connection is RS-232C interface. • For the detail information about Connection Option , refer to KGLWIN Ma[...]

  • Página 294

    Appendix 1 System Definitions App1-2 (2) Editor option • Monitor display type - Select the desired type in the monitor display type(4 types). • Source File Directory : - You can set directories for the files to be created in KGLWIN. - In Source Directory, KGLWIN saves sour ce program files of program, parameter etc. • Auto save - This functio[...]

  • Página 295

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

  • Página 296

    Appendix 1 System Definitions App1-4 2) Basic Parameters The basic parameters are necessary for operation of the PLC. Set the ‘Latch area’, ‘Timer boundary’’ , ‘Watchdog ti mer’, ‘PLC operation mode’, ‘Input setting’, ‘Pulse catch’ (1) Latch area setting Set the retain area on the inner device. (2) Timer boundary setting S[...]

  • Página 297

    Appendix 2 Flag List App2-1 Appendix 2. Flag List 1) Special relay (F) This flag is useful to edit user program. Relay Function Description F0000 RUN mode Turns on when the CPU in the RUN mode. F0001 Program mode Turns on when the CPU in the Program mode F0002 Pause mode T urns on when the CPU in the Pause mode F0003 Debug mode Turns on when the CP[...]

  • Página 298

    Appendix 2 Flag List App2-2 (Continued) Relay Function Description F0040 to F005F I/O error When the reserved I/O module (set by the parameter) dif fers from the real loaded I/O module or a I/O module has been mounted or dismounted, the corresponding bit turns on. F0060 to F006F Storing error code Stores the system error code, (See Section 2.9) F00[...]

  • Página 299

    Appendix 2 Flag List App2-3 (Continued) Relay Function Description F190 to F193 Borrow flag for HSC Turn on when borrow is occurred on the HSC current value F200 to F20F Unit ID F0210 to F021F HSC error code Stores error of HSC Ch0 F0220 to F022F HSC error code Stores error of HSC Ch1 F0230 to F023F HSC error code Stores error of HSC Ch2 F0240 to F[...]

  • Página 300

    Appendix 2 Flag List App2-4 3) Data relay (D) When communication function is used, its status are stored in D register , and they can be monitored. And If correspond communication function is unused, these fl ags can be used as general data register . (1) When FNET module is connected Relay Keyword Function Description D4500 D4502 _C0STNOL _C0STNOH[...]

  • Página 301

    Appendix 2 Flag List App2-5 (2) When communication mode is dedicated master mode (Channel 0) Relay Function Relay Function D4400 Communication Error Code of station 0 and1 D4432 Mode and Error of Slav e station 0 and 1 D4401 Communication Error Code of station 2 and 3 D4433 Mode and Error of Slave station 2 and 3 D4401 Communication Error Code of s[...]

  • Página 302

    Appendix 2 Flag List App2-6 (3) When communication mode is dedicated master mode (Channel 1) Relay Function Relay Function D4300 Communication Error Code of station 0 and1 D4332 Mode and Error of Slave station 0 and 1 D4301 Communication Error Code of station 2 and 3 D4333 Mode and Error of Slave station 2 and 3 D4301 Communication Error Code of st[...]

  • Página 303

    Appendix 2 Flag List App2-7 (4) D register for Forced I/O setting I/O Forced I/O designation register Forced I/O data register P000 D4700 D4800 P001 D4701 D4801 P002 D4702 D4802 P003 D4703 D4803 P004 D4704 D4804 P005 D4705 D4805 P006 D4706 D4806 P007 D4707 D4807 P008 D4708 D4808 P009 D4709 D4809 P010 D4710 D4810 P011 D4711 D4811 P012 D4712 D4812 P0[...]

  • Página 304

    Appendix 2 Flag List App2-8 (5) System error history(when RTC module is attached) Rela y Descr iption D4900 Error pointer D4901 Year, Month D4902 Day, Time D4903 Minute, Second D4904 Error code (6) Clock data Relay Description D4990 Year, Month D4991 Day, Time D4992 Minute, Second D4993 Day of week, Century[...]

  • Página 305

    Appendix 3 External Dimensions App3-1 Appendix 3 External Dimensions (unit: mm) 1) Main unit 2) Extension module (1) Standard type Model A B K7M-DR10/14UE 85 95 K7M-DR20/30UE K7M-DR(T)20/30U 135 145 K7M-DR(T)40U 165 175 K7M-DR(T)60U 215 225 95 105 115 A B 73 73 95 95 105 115 5[...]

  • Página 306

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