Mitsubishi Electronics MELSEC Q series MELSEC L series инструкция обслуживания

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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412

Идти на страницу of

Хорошее руководство по эксплуатации

Законодательство обязывает продавца передать покупателю, вместе с товаром, руководство по эксплуатации Mitsubishi Electronics MELSEC Q series MELSEC L series. Отсутствие инструкции либо неправильная информация, переданная потребителю, составляют основание для рекламации в связи с несоответствием устройства с договором. В законодательстве допускается предоставлении руководства в другой, чем бумажная форме, что, в последнее время, часто используется, предоставляя графическую или электронную форму инструкции Mitsubishi Electronics MELSEC Q series MELSEC L series или обучающее видео для пользователей. Условием остается четкая и понятная форма.

Что такое руководство?

Слово происходит от латинского "instructio", тоесть привести в порядок. Следовательно в инструкции Mitsubishi Electronics MELSEC Q series MELSEC L series можно найти описание этапов поведения. Цель инструкции заключается в облегчении запуска, использования оборудования либо выполнения определенной деятельности. Инструкция является набором информации о предмете/услуге, подсказкой.

К сожалению немного пользователей находит время для чтения инструкций Mitsubishi Electronics MELSEC Q series MELSEC L series, и хорошая инструкция позволяет не только узнать ряд дополнительных функций приобретенного устройства, но и позволяет избежать возникновения большинства поломок.

Из чего должно состоять идеальное руководство по эксплуатации?

Прежде всего в инструкции Mitsubishi Electronics MELSEC Q series MELSEC L series должна находится:
- информация относительно технических данных устройства Mitsubishi Electronics MELSEC Q series MELSEC L series
- название производителя и год производства оборудования Mitsubishi Electronics MELSEC Q series MELSEC L series
- правила обслуживания, настройки и ухода за оборудованием Mitsubishi Electronics MELSEC Q series MELSEC L series
- знаки безопасности и сертификаты, подтверждающие соответствие стандартам

Почему мы не читаем инструкций?

Как правило из-за нехватки времени и уверенности в отдельных функциональностях приобретенных устройств. К сожалению само подсоединение и запуск Mitsubishi Electronics MELSEC Q series MELSEC L series это слишком мало. Инструкция заключает ряд отдельных указаний, касающихся функциональности, принципов безопасности, способов ухода (даже то, какие средства стоит использовать), возможных поломок Mitsubishi Electronics MELSEC Q series MELSEC L series и способов решения проблем, возникающих во время использования. И наконец то, в инструкции можно найти адресные данные сайта Mitsubishi Electronics, в случае отсутствия эффективности предлагаемых решений. Сейчас очень большой популярностью пользуются инструкции в форме интересных анимаций или видео материалов, которое лучше, чем брошюра воспринимаются пользователем. Такой вид инструкции позволяет пользователю просмотреть весь фильм, не пропуская спецификацию и сложные технические описания Mitsubishi Electronics MELSEC Q series MELSEC L series, как это часто бывает в случае бумажной версии.

Почему стоит читать инструкции?

Прежде всего здесь мы найдем ответы касательно конструкции, возможностей устройства Mitsubishi Electronics MELSEC Q series MELSEC L series, использования отдельных аксессуаров и ряд информации, позволяющей вполне использовать все функции и упрощения.

После удачной покупки оборудования/устройства стоит посвятить несколько минут для ознакомления с каждой частью инструкции Mitsubishi Electronics MELSEC Q series MELSEC L series. Сейчас их старательно готовят или переводят, чтобы они были не только понятными для пользователя, но и чтобы выполняли свою основную информационно-поддерживающую функцию.

Содержание руководства

  • Страница 1

    MELSEC-Q/L S tructured Programming Manual (S pecial Instructions)[...]

  • Страница 2

    [...]

  • Страница 3

    A-1 SAFETY PRECAUTIONS (Read these precautions bef o re using this product.) Before using M ELSEC-Q or -L series progr ammable co ntrol lers, please read the manuals included with each product and the relevant ma nuals introduced in those man u als carefully , and pay full attention to s afety to ha ndle the product cor rectly . Make sure that the [...]

  • Страница 4

    A-2 CONDITIONS OF USE FOR THE PRODUCT (1) Mitsubishi programmable controller ("th e PRODUCT") shall be used in conditions; i) where any problem, fault or failure occurring in th e PRODUCT , if any , shall not lead to any major or serious accident; and ii) where the backup and fail-safe function are systematically or auto matically provide[...]

  • Страница 5

    A-3 REVISIONS The manual number is written at the bottom left of the back cover . Print date Manual number Revision Jul., 2008 SH(NA)-080785ENG-A First edi tion Jan., 2009 SH(NA)-080785ENG-B Q00UCPU, Q01UCPU, Q10UDHCP U, Q10UDEHCPU, Q20UDHCPU, Q20UDEHCPU MANUALS, Section 2.2.5, Section 5.5 GENERIC TERMS AND ABBREVIA TIONS IN THIS MANUAL, Section 1.[...]

  • Страница 6

    A-4 Print date Manual number Revision Apr ., 2010 SH(NA)-080785ENG-E Q50UDEHCPU, Q100UDEHCPU Section 2.2.2, Section 5. 2.15, Section 5.4.15, Sect ion 5.4.16, Section 5.4.17 MANUALS, Section 1.2, Section 1.4, Section 2.2.4, Chapter 4, Section 5.3 .7, Section 5.4, Section 5.4.1, Section 5.4.3 , Section 5.4.5, Section 5.4.6, Section 5.4.7, Section 5.4[...]

  • Страница 7

    A-5 Japanese manual version SH-080738-P  2008 MITSUBISHI ELECTRIC CORPORA TION Print date Manual number Revision Jul., 201 1 SH(NA)-080785ENG-I L02CPU-P , L26CPU-PBT Section 1.2, Section 1.4, Chapter 4, Section 5.3.2, Sect ion 5.3.4, Section 5.3.15, Section 5.4.16, Section 5.4. 17, Section 5.4.18, Secti on 5.4.21, Sect ion 5.4.22, Section 5.4.23[...]

  • Страница 8

    A-6 INTRODUCTION Thank you for purchasing the Mit subishi MELSEC-Q or -L series programm able controllers. Before using this product, please read this manual and the rele vant manuals carefully an d develop familiarity with the programming specifications to handle the product corr ectly . When applying the program exampl es introduced in this man u[...]

  • Страница 9

    A-7 5. MODULE DEDICATED IN STRUCTION 5 - 1 to 5 - 258 5.1 Analog Instruction 5 - 2 5.1.1 OFFGAN instruction .............. ................ ................ .................... ................ ................ ...... .............. 5 - 2 5.1.2 OGLOAD instruction ........................... ................ ................ ................... ...[...]

  • Страница 10

    A-8 5.4.23 REMTO instruction ........................ ................ .................... ................ ................... ......... ............ 5 - 212 5.4.24 CCPASET instruction .......... ................. ................................................................ ........... ..... ..... 5 - 214 5.4.25 OPEN instruction ........... .[...]

  • Страница 11

    A-9 8.2 Counter Function Ded icated Instruction 8 - 18 8.2.1 ICCNTRD instruction ................ ................... ................. ................... ................ ................ .......... .. 8 - 18 8.2.2 ICRNGWR instruction ............ ................... ................ .................... ................ ................... . ...[...]

  • Страница 12

    A-10 MANUALS The manuals related to this product are listed below . Order each manual as n eeded, referrin g to the follow ing lists. (1) S tructured programming (2) Operation of GX Works2 Operating manuals in PDF format are stored on the CD- ROM of the softwa re package. Printe d manuals are sold sep arately . T o order manuals, please provide the[...]

  • Страница 13

    A-11 (3) Detailed specificat ions of instructions • Analog instruction Manual name Manual number (model code) Analog-Digital Conve rter Module User 's Manual System config uration, perfo rmance specifi cations, func tions, handli ng, wiring, and tr oubleshooti ng of the Q64AD, Q68AD V , and Q68ADI (Sold sep arately) SH-080055 (13JR03) Channe[...]

  • Страница 14

    A-12 • Positioning instruction • Serial commu nication MELSEC-L Dua l Channel Isolate d High Resolution An alog-Digital Conv erter Module User 's Manual System config uration, perf ormance specif ications, fun ctions, handl ing, wiring, and troubleshoot ing of the L60AD4- 2GH (Sold separately) SH-081 103ENG (13JZ72) MELSEC-L Dig ital- Anal[...]

  • Страница 15

    A-13 • Network dedicated instruction • PID control instruction Manual name Manual number (model code) MELSEC-Q CC-Link System Master/Loc al Module User's Manual System config uration, perf ormance specif ications, fu nctions, handl ing, wiring, an d troubleshoot ing of the QJ61BT1 1N (Sold sep arately) SH-080394E (13JR64) MELSEC-L CC-Link [...]

  • Страница 16

    A-14 • Socket communica tion function instruction • Built-in I/O function instruction • Data logging fun ction instructio n • SFC control Instruction Manual name Manual number (model code) QnUCPU User' s Manual (Commu nication via B uilt-in Ether net Port) Functions for the communica tion via built-i n Ethernet por t of the CPU module [...]

  • Страница 17

    1 OVERVI EW 2 INSTRUCTION TA B L E S 3 CONFIGURA TION OF INSTRUCTIONS 4 HOW TO READ INSTRUCTIONS 5 MODULE DEDICA TED INSTRUCTION 6 PID CONTROL INSTRUCTION 7 SOCKET COMMUNICA T ION FUNCTION INSTRUCTION 1 1-1 OVER VIEW 1.1 Purpose of This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 1.2 T erms . . . .[...]

  • Страница 18

    1-2 1.1 Purpose of This Manual 1.1 Purpose of This Manual This manual explains the instructions for the network module , intelligent function module, PID control, socket communication function, built- in I/O function, and data logging function among common instructions and special instructions necessary for creating prog rams using the structured p[...]

  • Страница 19

    1.1 Purpose of This Manual 1-3 1 OVERVI EW (2) Operations in each programming language For details of instru ctions used in ea ch prog ramming language, refer to the section 3 on the next page Purpose GX Works2 Beginner's Manual GX Works2 V ersion 1 Operating Manual Simple Project Structured Project Simple Project Structured Project Simple Pro[...]

  • Страница 20

    1-4 1.1 Purpose of This Manual (3) Details of instructions in each programmin g language Purpose MELSEC- Q/L/F Structured Programming Manual MELSEC-Q/L Structured Programming Manual MELSEC- Q/L Programming Manual MELSEC-Q/L/QnA Programming Manual MELSEC-Q Programming /Structured Programming Manual Manual for module to be used Fundamentals Common In[...]

  • Страница 21

    1.2 Terms 1-5 1 OVERVI EW 1.2 T erms This manual uses the generic terms an d abbreviatio ns listed in the following table to discuss the software p ackages and pro grammable controller CPUs. Corr esponding module models a re also listed if needed. Te r m Description GX Works2 Product name of the software package for t he MELSEC programmabl e contro[...]

  • Страница 22

    1-6 1.3 Explanation Content in This Manua l 1.3 Explanation Content in This Manual This manual explains the progr amming methods and da ta used for co ntrol of the following modules and PID control using structu red programming tech nique. Function/module for explainin g an instruction Processing performed b y the instruction Reference Analog mo du[...]

  • Страница 23

    1.3 Explanation Content in This Manual 1-7 1 OVERVI EW • Precautions on using instructions For details of the specifications, func tions, and operatin g timing of each instruction, refer to the rela ted manuals of each modu le. 'MANUALS' Function/module fo r explaining an instruction Processing perfo rmed by the instruction Reference Bu[...]

  • Страница 24

    1-8 1.4 Modules and Versions Applicable to Instructions 1.4 Modules and V ersions Applicable to Instructions This section expla ins the modules and ve rsions applicable to the instructions explained in this manual. For details of applicable versions, refe r to each instruct ion in Chapter 5. Function/module for explaining an instruction Applicable [...]

  • Страница 25

    1.4 Modules and Versions Applicable to Instructions 1-9 1 OVERVI EW • How to check the applicable version or serial number Intelligent function modules : User's Manual or Reference Manual for the module listed in 'Manuals' CPU modules suppor ting PID control: User's Manu al (Function Explanat ion, Program Fu ndamentals) of the[...]

  • Страница 26

    1-10 MEMO[...]

  • Страница 27

    2 2-1 1 OVERVI EW 2 INSTRUCTION T ABLES 3 CONFIGURA TION OF INSTRUCTIONS 4 HOW TO READ INSTRUCTIONS 5 MODULE DEDICA TED INSTRUCTION 6 PID CONTROL INSTRUCTION 7 SOCKET COMMUNICA T ION FUNCTION INSTRUCTION INSTRUCTION T ABLES 2.1 How to Read Instruction T ables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 2.2 Module Ded[...]

  • Страница 28

    2-2 2.1 How to Read Instruction Tab les 2.1 How to Read Instruction T ables Instruction t ables in Section 2.2 have t he following form: Description Classifies instructions by application. Indicates th e instruction s used in a pr ogram. Indicates th e arguments of th e instruction . , : Source ............ . S tores data before operation. , : Dest[...]

  • Страница 29

    2.2 Module Dedicate d Instruction 2.2.1 Analog instruction 2-3 2 INSTRUCTION T ABLES 2.2 Module Dedicated Instruction 2.2.1 Analog instruction Classification Instruction nam e Argument Processing details Executing condition Page Mode switchin g G_OFFGAN , Moves to the offset /gain settin g mode. Moves to the norm al mode. 5-2 GP_OFFGAN , Setting va[...]

  • Страница 30

    2-4 2.2 Module Dedicated Instructi on 2.2.2 Positionin g instruction 2.2.2 Positioning instruction Classification Instructi on name Argument Processing details Executing condition Page Absolute p osition restorat ion Z_ABRST1 , , Restores the absolu te positio n of the sp ecified a xis. 5-53 Z_ABRST2 , , Z_ABRST3 , , Z_ABRST4 , , Position ing start[...]

  • Страница 31

    2.2 Module Dedicate d Instruction 2.2.3 Serial communication 2-5 2 INSTRUCTION T ABLES 2.2.3 Serial communication Classification Instruction na me Argument Processing details Executing condition Applicable module Page On-demand functio n transmissi on G_ONDEMAND , , , Sends dat a using the on-d emand function of MC protoc ol. 5-66 GP_ONDEMAND , , ,[...]

  • Страница 32

    2-6 2.2 Module Dedicated Instructi on 2.2.4 Network d edicated instruction 2.2.4 Network dedicated instruction Classification Instruction n ame Argu ment Processing details Execu ting condition Applicable module Page Reading fro m the buffer memory of an intellige nt device st ation J_RIRD , , , Reads dat a for the spe cified number of points from [...]

  • Страница 33

    2.2 Module Dedicate d Instruction 2.2.4 Network dedicated instruction 2-7 2 INSTRUCTION T ABLES Network p arameter setting G_RLP ASET , , , , , , Sets net work para meter to the master station and starts up the data link. 5-139 GP_RLP ASET , , , , , , Device data read/ write J_READ , , , , Reads data from a word device of another s tation. 5-146 JP[...]

  • Страница 34

    2-8 2.2 Module Dedicated Instructi on 2.2.4 Network d edicated instruction T ransient request to another station J_REQ , , , , Executes remote RUN/STOP for another statio n. Reads/wr ites clock da ta from another statio n. 5-183 JP_REQ , , , , G_REQ , , , , GP_REQ , , , , Read from oth er statio n devices J_ZNRD , n1, , n2, , Reads data from a devi[...]

  • Страница 35

    2.2 Module Dedicate d Instruction 2.2.4 Network dedicated instruction 2-9 2 INSTRUCTION T ABLES Reading fro m buffer memory of intellig ent function module on remote I/O station Z_REMFR , n1, n2, n3, n4, n5, , Reads data from the buffer memory of an intell igent funct ion module o n the remote I /O station . 5-210 ZP_REMFR , n 1, n2, n3, n4 , n5, ,[...]

  • Страница 36

    2-10 2.3 PID Contro l Instruction 2.3.1 PID control instructio n (inexact differen tial) 2.3 PID Control Instruction 2.3.1 PID control instruction (inexact differential) 2.3.2 PID control instruction (exact differential) Classification Instructi on name Argument Processing details Executing condition Page Data se tting S_PIDINIT Sets data to be use[...]

  • Страница 37

    2.4 Socket Communication Function Instruction 2-11 2 INSTRUCTION T ABLES 2.4 Socket Communication Function Instruction Classification Instruction name Argument Processing details Executin g condition Page Opening/ closing connection SP_SOCOPEN , , , Establ ishes a conn ection. 7-2 SP_SOCCLOSE , , , Shuts a co nnection off. 7-5 Reading re ceive data[...]

  • Страница 38

    2-12 2.5 Built-in I/O Function Instruction 2.5.1 Positionin g function dedicated instruction 2.5 Built-in I/O Function Instruction 2.5.1 Positioning function dedicated instruction Classification Instruction name Argument Processing details Executing condition Page Position ing start IPPSTRT1 n S pecifies a data number to be executed fr om "Pos[...]

  • Страница 39

    2.5 Built-in I/O Function In struction 2.5.2 Counter functi on dedicated instruction 2-13 2 INSTRUCTION T ABLES 2.5.2 Counter function dedicated instruction Classification Instruction nam e Argument Processing details Executing condition Page Current valu e read ICCNTRD1 - S tore s the most r ecent valu e for the current value of the sp ecified CH.[...]

  • Страница 40

    2-14 2.5 Built-in I/O Function Instruction 2.5.2 Counter function dedicated instructio n Classification Instruction name Argument Processing details Executing condition Page Pulse measurement read ICPLSRD1 S tores the measure d pulse va lue of th e specified CH. 8-27 ICPLSRD1P ICPLSRD2 ICPLSRD2P PWM output ICPWM1 , Outputs the PWM wavef orm of the [...]

  • Страница 41

    2.6 Data Logging Function Instruction 2-15 2 INSTRUCTION T ABLES 2.6 Dat a Logging Function Instruction 2.7 SFC Control Instruction Classification Instruction name Argument Processing details Executin g condition Page T rigger logg ing set/reset LOGTRG n Generates th e trigger con ditions in a tr igger logging . S tores the data sampli ng results t[...]

  • Страница 42

    2-16 MEMO[...]

  • Страница 43

    3 3-1 1 OVERVI EW 2 INSTRUCTION TA B L E S 3 CONFIGURA TION OF INSTRUCTIONS 4 HOW TO READ INSTRUCTIONS 5 MODULE DEDICA TED INSTRUCTION 6 PID CONTROL INSTRUCTION 7 SOCKET COMMUNICA T ION FUNCTION INSTRUCTION CONFIGURA TION OF INSTRUCTIONS 3.1 Configuration of Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 44

    3-2 3.1 Configuration of Instructions 3.1 Configuration of Instructions Instructions available in the CPU module can be divid ed into an instruction name and an argument . The application of an instruction na me and an argum ent are as follows: • Instruction name..... Indicates the function of the instruction. • Argument .............. Indicate[...]

  • Страница 45

    3.1 Configuration of Instructions 3-3 3 CONFIGURA TION OF INSTRUCTIONS (2) Sou rce (a) A so urce is data used in an operat ion. (b) The following source types are available depen ding on the device specified in an instruction: • Constant . . . . . . . . . . . . . . . . . . . . . S pecifies a numeric value used in an operation. Constants are set d[...]

  • Страница 46

    3-4 MEMO[...]

  • Страница 47

    4 4-1 1 OVERVI EW 2 INSTRUCTION TA B L E S 3 CONFIGURA TION OF INSTRUCTIONS 4 HOW TO READ INSTRUCTIONS 5 MODULE DEDICA TED INSTRUCTION 6 PID CONTROL INSTRUCTION 7 SOCKET COMMUNICA T ION FUNCTION INSTRUCTION HOW T O READ INSTRUCTIONS[...]

  • Страница 48

    4-2 Chapter 5 provides det ailed explanation on eac h instruction in th e layout as sh own below . Indicates a section numbe r and an outline of an instruction. Indicates an instr uction to be explained.[...]

  • Страница 49

    4-3 4 HOW TO READ INSTRUCTIONS Indicates the instruction execution t arget module. If one instruction is to be executed in two or more modules, applicable modules are indica ted using icons. Indicates the instruction name and ex ecuting condition of the instruction. Indicates the instruction names that can be described. Written format s in the stru[...]

  • Страница 50

    4-4 Indicates th e processin g performed by the instruc tion. Indicates data such as control dat a, send dat a or receive data, that are used for an input argument or output argument in an instr uction. Example: Control dat a to be used in the CC-Link instruction 'GP_RIRD' The setting side indicates the following: User : Data set by user [...]

  • Страница 51

    5 5-1 1 OVERVI EW 2 INSTRUCTION TA B L E S 3 CONFIGURA TION OF INSTRUCTIONS 4 HOW TO READ INSTRUCTIONS 5 MODULE DEDICA TED INSTRUCTION 6 PID CONTROL INSTRUCTION 7 SOCKET COMMUNICA T ION FUNCTION INSTRUCTION MODULE DEDICA TED INSTRUCTION 5.1 Analog Ins truction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 52

    5-2 5.1 Analog Instruction 5.1.1 OFFGAN instruction G_OFFGAN 5.1 Analog Instruction 5.1.1 OFFGAN instruction G_OFFGAN *1: Local devices and file registers per program cannot be used as setting data. Function This instruction converts the mode of ana log modules. (no rmal mode to offset/gain setting mode, offset/gain setting mod e to normal mode) G([...]

  • Страница 53

    5.1 Analog Instruction 5.1.1 OFFG AN instruction 5-3 5 MODULE DEDICA TED INSTRUCTION G_OFFGAN G_OFFGAN Program Example The following program conve rts the mod e of the A/D converter mo dule mounted on the I/O numbers from X/Y00 to X/Y0F to the of fset/gain setting m ode when V ar_Flag turns ON, and gets it back to the normal mo de when V ar_Flag t [...]

  • Страница 54

    5-4 5.1 Analog Instruction 5.1.2 OGLOAD instruction G_OGLOAD 5.1.2 OGLOAD instruction G_OGLOAD *1: Local devices and file registers per program cannot be used as setting data. Function This instruction reads the user rang e settings of fset/gain values of analog modules to the CPU. G(P)_OGLOAD P: Executing conditi on : indicates any of th e followi[...]

  • Страница 55

    5.1 Analog Instruction 5.1.2 OGLO AD instructio n 5-5 5 MODULE DEDICA TED INSTRUCTION G_OGLOAD G_OGLOAD Contro l Data (1) Q64AD/Q64DAN/Q64DA/Q64DAH/L60AD4/L60DA4 *1 Device Item Setting data Setting range Setting side [0] System area –– – [1] Completion status The instru ction comple tion st atus is s tored. 0 : N ormal completion Other than 0[...]

  • Страница 56

    5-6 5.1 Analog Instruction 5.1.2 OGLOAD instruction G_OGLOAD (2) Q68ADV/Q68ADI/Q68DA VN/Q6 8DA V/Q68DAIN/Q68DAI/Q68CT *1 Device Item Setting data Setting range Setting side [0] System ar ea –– – [1] Completion s tatus The instr uction compl etion st atus is stored. 0 : Normal completion Other than 0 : Error completio n (error code) – System[...]

  • Страница 57

    5.1 Analog Instruction 5.1.2 OGLO AD instructio n 5-7 5 MODULE DEDICA TED INSTRUCTION G_OGLOAD G_OGLOAD (3) Q64AD-GH/Q 64ADH/L60AD4- 2GH *1 Control dat a of Q64AD-GH/Q64ADH/L60AD4-2GH (1 /2) Device Item Setting data Setting range Setting side [0] System area –– – [1] Completion status The instru ction comple tion st atus is s tored. 0 : N orm[...]

  • Страница 58

    5-8 5.1 Analog Instruction 5.1.2 OGLOAD instruction G_OGLOAD Control data of Q64AD-GH/Q64ADH/L60AD4-2GH (2/2) Device Item Setting data Setting range Setting side [30] CH3 User range se ttings gain va lue (L) –– System [31] CH3 User range se ttings gain va lue (H) [32] CH4 User range se ttings offset valu e (L) –– System [33] CH4 User range [...]

  • Страница 59

    5.1 Analog Instruction 5.1.2 OGLO AD instructio n 5-9 5 MODULE DEDICA TED INSTRUCTION G_OGLOAD G_OGLOAD (4) Q62AD-DGH *1 Device Item Setting data Setting range Setting side [0] System area –– – [1] Completion status The instru ction comple tion st atus is s tored. 0 : N ormal completion Other than 0 : Error comp letion (error code) – System[...]

  • Страница 60

    5-10 5.1 Analog Instruction 5.1.2 OGLOAD instruction G_OGLOAD (5) Q68AD-G *1 Device Item Setting data Setting range Setting side [0] System ar ea – – – [1] Completion s tatus The instr uction compl etion st atus is stored. 0 :Normal completion Other than 0 :Error completion (error code) – System [2] Pass data c lassificat ion setting S peci[...]

  • Страница 61

    5.1 Analog Instruction 5.1.2 OGLO AD instructio n 5-11 5 MODULE DEDICA TED INSTRUCTION G_OGLOAD G_OGLOAD (6) Q66AD-DG *1 Device Item Setting data Setting range Setting side [0] System area –– – [1] Completion status The instru ction comple tion st atus is s tored. 0 :N ormal completion Other than 0 :Error completion (error code) – System [2[...]

  • Страница 62

    5-12 5.1 Analog Instruction 5.1.2 OGLOAD instruction G_OGLOAD (7) Q62DAN/Q62DA *1 Device Item Setting data Setting range Setting side [0] System ar ea –– – [1] Completion s tatus The instr uction compl etion st atus is stored. 0 : Normal completion Other than 0 : Error completio n (error code) – System [2] Pass data c lassificat ion setting[...]

  • Страница 63

    5.1 Analog Instruction 5.1.2 OGLO AD instructio n 5-13 5 MODULE DEDICA TED INSTRUCTION G_OGLOAD G_OGLOAD (8) Q62DA-F G *1 Device Item Setting data Setting range Setting side [0] System area –– – [1] Completion status The instru ction comple tion st atus is s tored. 0 : N ormal completion Other than 0 : Error comp letion (error code) – Syste[...]

  • Страница 64

    5-14 5.1 Analog Instruction 5.1.2 OGLOAD instruction G_OGLOAD (9) Q66DA-G *1 Device Item Setting data Setting range Setting side [0] System area –– – [1] Completion s tatus The instr uction compl etion st atus is stored. 0 :Normal completion Other than 0 :Error completion (error code) – System [2] Pass data c lassificat ion setting S pecify[...]

  • Страница 65

    5.1 Analog Instruction 5.1.2 OGLO AD instructio n 5-15 5 MODULE DEDICA TED INSTRUCTION G_OGLOAD G_OGLOAD (10) Q64RD/Q64RD-G *1 Control data of Q64RD/Q64RD-G (1/5) Device Item Setting data Setting range Setting side [0] System ar ea –– – [1] Completion s tatus The instruct ion completi on status is stored. 0: N o r m a l completion Other than [...]

  • Страница 66

    5-16 5.1 Analog Instruction 5.1.2 OGLOAD instruction G_OGLOAD Control data of Q64RD/Q64RD-G (2/5) Device Item Setting data Setting range Setting side Q64RD -G [16] 4-wire CH1 Fact ory default offset value (L) –– System [17] 4-wire CH1 Fact ory default offset value (H) [18] 4-wire CH1 Fact ory default gai n value (L) –– System [19] 4-wire CH[...]

  • Страница 67

    5.1 Analog Instruction 5.1.2 OGLO AD instructio n 5-17 5 MODULE DEDICA TED INSTRUCTION G_OGLOAD G_OGLOAD Control data of Q64RD/Q64RD-G (3/5) Device Item Setting data Setting range Setting side Q64RD -G [40] 4-wire CH2 Fact ory default offset va lue (L) –– System [41] 4-wire CH2 Fact ory default offset va lue (H) [42] 4-wire CH2 Factory default [...]

  • Страница 68

    5-18 5.1 Analog Instruction 5.1.2 OGLOAD instruction G_OGLOAD Control data of Q64RD/Q64RD-G (4/5) Device Item Setting data Setting range Setting side Q64RD -G [64] 4-wire CH3 Fact ory default offset value (L) –– System [65] 4-wire CH3 Fact ory default offset value (H) [66] 4-wire CH3 Fact ory default gai n value (L) –– System [67] 4-wire CH[...]

  • Страница 69

    5.1 Analog Instruction 5.1.2 OGLO AD instructio n 5-19 5 MODULE DEDICA TED INSTRUCTION G_OGLOAD G_OGLOAD Control data of Q64RD/Q64RD-G (5/5) Device Item Setting data Setting range Setting side Q64RD -G [88] 4-wire CH4 Fact ory default offset va lue (L) –– System [89] 4-wire CH4 Fact ory default offset va lue (H) [90] 4-wire CH4 Factory default [...]

  • Страница 70

    5-20 5.1 Analog Instruction 5.1.2 OGLOAD instruction G_OGLOAD (1 1) Q64TD/Q64TDV -GH *1 Device Item Setting data Setting range Setting side [0] System ar ea –– – [1] Completion s tatus The instr uction compl etion status is stored. 0 : Normal comple tion Other than 0 : Error completion (error code) – System [2] System ar ea –– – [3] [[...]

  • Страница 71

    5.1 Analog Instruction 5.1.2 OGLO AD instructio n 5-21 5 MODULE DEDICA TED INSTRUCTION G_OGLOAD G_OGLOAD (12) Q68TD-G-H02(H01) *1 Control data of Q68TD-G-H02(H01) (1/2) Device Item Setting data Setting r ange Setting side [0] System ar ea –– – [1] Completion status The instru ction completi on status is st ored. 0 :Normal comp letion Other th[...]

  • Страница 72

    5-22 5.1 Analog Instruction 5.1.2 OGLOAD instruction G_OGLOAD Control data of Q68TD-G-H02(H01) (2/2) Device Item Setting data Setting r ange Setting side [42] CH5 User r ange settin gs thermal E MF gain v alue (L) –– System [43] CH5 User r ange settin gs thermal E MF gain v alue (H) [44] CH6 Factor y default offs et value –– System [45] CH6[...]

  • Страница 73

    5.1 Analog Instruction 5.1.2 OGLO AD instructio n 5-23 5 MODULE DEDICA TED INSTRUCTION G_OGLOAD G_OGLOAD (13) Q68RD3-G *1 Control data of Q68RD3-G (1/2) Device Item Setting dat a Setting range Setting side [0] System ar ea –– – [1] Completion status The ins truction co mpletion status is stor ed. 0 :Normal completion Other than 0 :Error compl[...]

  • Страница 74

    5-24 5.1 Analog Instruction 5.1.2 OGLOAD instruction G_OGLOAD Control data of Q68RD3-G (2/2) Device Item Setting data Setting range Setting side [42] CH5 User range se ttings resis tance gain value (L) –– System [43] CH5 User range se ttings resis tance gain value (H) [44] CH6 Factor y default offs et value –– System [45] CH6 Factor y defau[...]

  • Страница 75

    5.1 Analog Instruction 5.1.2 OGLO AD instructio n 5-25 5 MODULE DEDICA TED INSTRUCTION G_OGLOAD G_OGLOAD (14) Q61LD *1 Control data of Q61LD (1/2) Device Item Setting dat a Setting range Setting side [0] System ar ea –– System [1] Completion status The ins truction co mpletion status is stor ed. 0 :Normal completion Other than 0 :Error completi[...]

  • Страница 76

    5-26 5.1 Analog Instruction 5.1.2 OGLOAD instruction G_OGLOAD Control data of Q61LD (2/2) Device Item Setting data Setting range Setting side [56] 1.0mV/V sp an calib ration valu e (L) –– System [57] 1.0mV/V sp an calib ration valu e (H) –– System [58] 2.0mV/V zer o calibratio n value (L ) –– System [59] 2.0mV/V zer o calibratio n value[...]

  • Страница 77

    5.1 Analog Instruction 5.1.2 OGLO AD instructio n 5-27 5 MODULE DEDICA TED INSTRUCTION G_OGLOAD G_OGLOAD Program Example The following program reads ou t the offset/gain va lue of th e A/D converter module mounted on the I/O numbers from X/Y00 to X/Y0F when the flag turns ON. [Structured ladder/FBD] [ST] IF(V ar_Flag_ Inst=TRUE)THEN (* Instruction [...]

  • Страница 78

    5-28 5.1 Analog Instruction 5.1.3 OGSTOR instruction G_OGSTOR 5.1.3 OGSTOR instruction G_OGST OR *1: Local devices and file registers per program cannot be used as setting data. Function This instruction restores the user range se ttings of fset/gain values stored in the programmable controller CPU to the analog modules. G(P)_OGSTOR P: Executing co[...]

  • Страница 79

    5.1 Analog Instruction 5.1.3 OGSTOR instruction 5-29 5 MODULE DEDICA TED INSTRUCTION G_OGSTOR G_OGSTOR Contro l Data (1) Q64AD/Q64DAN/Q64DA/Q64DAH Device Item Setting data Setting range Setting side [0] System area –– – [1] Completion status The instru ction comple tion st atus is s tored. 0 : Normal completion Other than 0 : Error comp letio[...]

  • Страница 80

    5-30 5.1 Analog Instruction 5.1.3 OGSTOR instruction G_OGSTOR (2) Q68ADV/Q68ADI/Q68DA VN/Q6 8DA V/Q68DAIN/ Q68DAI/Q68CT Device Item Setting data Setting range Setting side [0] System ar ea –– – [1] Completion s tatus The instr uction compl etion st atus is stored. 0 : Normal completion Other than 0 : Error completio n (error code) – System [...]

  • Страница 81

    5.1 Analog Instruction 5.1.3 OGSTOR instruction 5-31 5 MODULE DEDICA TED INSTRUCTION G_OGSTOR G_OGSTOR (3) Q64AD-GH/L60AD4 -2GH Control data of Q64AD-GH/L 60AD4-2GH (1/2) Device Item Setting data Setting range Setting side [0] System area –– – [1] Completion status The instru ction comple tion st atus is s tored. 0 : N ormal completion Other [...]

  • Страница 82

    5-32 5.1 Analog Instruction 5.1.3 OGSTOR instruction G_OGSTOR Control data of Q6 4AD-GH/L60AD4- 2GH (2/2) Device Item Setting data Setting range Setting side [30] CH3 User range se ttings gain va lue (L) –– System [31] CH3 User range se ttings gain va lue (H) [32] CH4 User range se ttings offset valu e (L) –– System [33] CH4 User range se t[...]

  • Страница 83

    5.1 Analog Instruction 5.1.3 OGSTOR instruction 5-33 5 MODULE DEDICA TED INSTRUCTION G_OGSTOR G_OGSTOR (4) Q62AD-DGH Device Item Setting data Setting range Setting side [0] System area –– – [1] Completion status The instru ction comple tion st atus is s tored. 0 : N ormal completion Other than 0 : Error comp letion (error code) – System [2][...]

  • Страница 84

    5-34 5.1 Analog Instruction 5.1.3 OGSTOR instruction G_OGSTOR (5) Q68AD-G /Q64ADH Device Item Setting data Setting range Setting side [0] System area –– – [1] Completion s tatus The instr uction compl etion st atus is stored. 0 :Normal completion Other than 0 :Error completion (error code) – System [2] Pass data c lassificat ion setting S p[...]

  • Страница 85

    5.1 Analog Instruction 5.1.3 OGSTOR instruction 5-35 5 MODULE DEDICA TED INSTRUCTION G_OGSTOR G_OGSTOR (6) Q66AD-DG *1 Device Item Setting data Setting range Setting side [0] System ar ea –– – [1] Completion status The instru ction comple tion st atus is s tored. 0 :N ormal completion Other than 0 :Error completion (error code) – System [2][...]

  • Страница 86

    5-36 5.1 Analog Instruction 5.1.3 OGSTOR instruction G_OGSTOR (7) Q62DAN/Q62DA Device Item Setting data Setting range Setting side [0] System ar ea –– – [1] Completion s tatus The instr uction compl etion st atus is stored. 0 : Normal completion Other than 0 : Error completio n (error code) – System [2] Pass data c lassificat ion setting Th[...]

  • Страница 87

    5.1 Analog Instruction 5.1.3 OGSTOR instruction 5-37 5 MODULE DEDICA TED INSTRUCTION G_OGSTOR G_OGSTOR (8) Q62DA-F G Device Item Setting data Setting range Setting side [0] System area –– – [1] Completion status The instru ction comple tion st atus is s tored. 0 : N ormal completion Other than 0 : Error comp letion (error code) – System [2][...]

  • Страница 88

    5-38 5.1 Analog Instruction 5.1.3 OGSTOR instruction G_OGSTOR (9) Q66DA-G *1 Device Item Setting data Setting range Setting side [0] System area –– – [1] Completion s tatus The instr uction compl etion st atus is stored. 0 :Normal completion Other than 0 :Error completion (error code) – System [2] Pass data c lassificat ion setting The valu[...]

  • Страница 89

    5.1 Analog Instruction 5.1.3 OGSTOR instruction 5-39 5 MODULE DEDICA TED INSTRUCTION G_OGSTOR G_OGSTOR (10) Q64RD/Q64RD-G *1 Control data of Q64RD/Q64RD-G (1/5) Device Item Setting data Setting range Setting side [0] System ar ea –– – [1] Completion s tatus The instruct ion completi on status is stored. 0: N o r m a l completion Other than 0 [...]

  • Страница 90

    5-40 5.1 Analog Instruction 5.1.3 OGSTOR instruction G_OGSTOR Control data of Q64RD/Q64RD-G (2/5) Device Item Setting data Setting range Setting side Q64RD -G [16] 4-wire CH1 Fact ory default offset value (L) –– System [17] 4-wire CH1 Fact ory default offset value (H) [18] 4-wire CH1 Fact ory default gai n value (L) –– System [19] 4-wire CH[...]

  • Страница 91

    5.1 Analog Instruction 5.1.3 OGSTOR instruction 5-41 5 MODULE DEDICA TED INSTRUCTION G_OGSTOR G_OGSTOR Control data of Q64RD/Q64RD-G (3/5) Device Item Setting data Setting range Setting side Q64RD -G [40] 4-wire CH2 Fact ory default offset va lue (L) –– System [41] 4-wire CH2 Fact ory default offset va lue (H) [42] 4-wire CH2 Factory default ga[...]

  • Страница 92

    5-42 5.1 Analog Instruction 5.1.3 OGSTOR instruction G_OGSTOR Control data of Q64RD/Q64RD-G (4/5) Device Item Setting data Setting range Setting side Q64RD -G [64] 4-wire CH3 Fact ory default offset value (L) –– System [65] 4-wire CH3 Fact ory default offset value (H) [66] 4-wire CH3 Fact ory default gai n value (L) –– System [67] 4-wire CH[...]

  • Страница 93

    5.1 Analog Instruction 5.1.3 OGSTOR instruction 5-43 5 MODULE DEDICA TED INSTRUCTION G_OGSTOR G_OGSTOR Control data of Q64RD/Q64RD-G (5/5) Device Item Setting data Setting range Setting side Q64RD -G [88] 4-wire CH4 Fact ory default offset va lue (L) –– System [89] 4-wire CH4 Fact ory default offset va lue (H) [90] 4-wire CH4 Factory default ga[...]

  • Страница 94

    5-44 5.1 Analog Instruction 5.1.3 OGSTOR instruction G_OGSTOR (1 1) Q64TD/Q64T DV -GH Device Item Setting data Setting range Setting side [0] System ar ea –– – [1] Completion s tatus The instr uction compl etion status is stored. 0 : Normal comple tion Other than 0 : Error completion (error code) – System [2] System ar ea –– – [3] [4][...]

  • Страница 95

    5.1 Analog Instruction 5.1.3 OGSTOR instruction 5-45 5 MODULE DEDICA TED INSTRUCTION G_OGSTOR G_OGSTOR (12) Q68TD-G-H02(H01) Control data of Q68TD-G-H02(H01) (1/2) Device Item Setting data Setting range Setting side [0] System ar ea –– – [1] Completion status The instruct ion completion status i s stored. 0 :Normal comp letion Other than 0 :E[...]

  • Страница 96

    5-46 5.1 Analog Instruction 5.1.3 OGSTOR instruction G_OGSTOR Control data of Q68TD-G-H02(H01) (2/2) Device Item Setting data Setting range Setting side [40] CH5 User r ange settin gs thermal EMF of fset valu e (L) –– System [41] CH5 User r ange settin gs thermal EMF of fset valu e (H) [42] CH5 User r ange settin gs thermal E MF gain v alue (L)[...]

  • Страница 97

    5.1 Analog Instruction 5.1.3 OGSTOR instruction 5-47 5 MODULE DEDICA TED INSTRUCTION G_OGSTOR G_OGSTOR (13) Q68RD3-G Control data of Q68RD3-G (1/2) Device Item Setting dat a Setting range Setting side [0] System ar ea –– – [1] Completion status The ins truction co mpletion status is stor ed. 0 :Normal completion Other than 0 :Error completion[...]

  • Страница 98

    5-48 5.1 Analog Instruction 5.1.3 OGSTOR instruction G_OGSTOR Control data of Q68RD3-G (2/2) Device Item Setting data Setting range Setting side [39] CH5 User range se ttings gain va lue –– System [40] CH5 User range se ttings resis tance offset value (L) –– System [41] CH5 User range se ttings resis tance offset value (H) [42] CH5 User ran[...]

  • Страница 99

    5.1 Analog Instruction 5.1.3 OGSTOR instruction 5-49 5 MODULE DEDICA TED INSTRUCTION G_OGSTOR G_OGSTOR (14) Q61LD *1 Control data of Q61LD (1/2) Device Item Setting dat a Setting range Setting side [0] System ar ea –– System [1] Completion status The ins truction co mpletion status is stor ed. 0 :Normal completion Other than 0 :Error completion[...]

  • Страница 100

    5-50 5.1 Analog Instruction 5.1.3 OGSTOR instruction G_OGSTOR Control data of Q61LD (2/2) Device Item Setting data Setting range Setting side [56] 1.0mV/V sp an calib ration valu e (L) –– System [57] 1.0mV/V sp an calib ration valu e (H) – – System [58] 2.0mV/V zer o calibratio n value (L ) –– System [59] 2.0mV/V zer o calibratio n valu[...]

  • Страница 101

    5.1 Analog Instruction 5.1.3 OGSTOR instruction 5-51 5 MODULE DEDICA TED INSTRUCTION G_OGSTOR G_OGSTOR (15) L60AD4/L60DA4 Device Item Setting data Setting range Setting side [0] System area –– – [1] Completion status The instru ction comple tion st atus is s tored. 0 : Normal completion Other than 0 : Error comp letion (error code) – System[...]

  • Страница 102

    5-52 5.1 Analog Instruction 5.1.3 OGSTOR instruction G_OGSTOR Program Example The following pr ogram restores the offset/gai n setting value to the A/D converter module mounted on the I/O numbe rs from X/Y10 to X/Y1F when the flag tu rns ON. [Structured ladder/FBD] [ST] IF(V ar_Flag_In st=TRUE)THEN (* Instruc tion flag ON *) SET(TRUE, V ar_Flag_Exe[...]

  • Страница 103

    5.2 Positioning Instruction 5.2.1 ABRST instruction 5-53 Z_ABRST1 5 MODULE DEDICA TED INSTRUCTION Z_ABRST1 5.2 Positioning Instruction 5.2.1 ABRST instruction Z_ABRST1 Function This instruction restores th e absolute position of the specified axis. (Refer to the following) • Z_ABRST1: Axis 1 • Z_ABRST2: Axis 2 • Z_ABRST3: Axis 3 • Z_ABRST4:[...]

  • Страница 104

    5-54 5.2 Positioning Instruction 5.2.1 ABRST instruction Z_ABRST1 Contro l Data Device Item Setting data Setting range Setting side [0] System ar ea –– – [1] Completion s tatus The instru ction comple tion status is stor ed. • 0 : Normal completion • Other than 0 : Error co mpletion (error code) – System [2] Receive sign al from servo a[...]

  • Страница 105

    5.2 Positioning Instruction 5.2.1 ABRST instruction 5-55 Z_ABRST1 5 MODULE DEDICA TED INSTRUCTION Z_ABRST1 Program Example The following p rogram rest ores the abso lute position o f the axis 1. The devices from X47 to X49 and fr om Y50 to Y52 are used for the communi cation with the servo amplifier . X47: ABS data bit0 X48: ABS data bit1 X49: Send[...]

  • Страница 106

    5-56 5.2 Positioning Instruction 5.2.1 ABRST instruction Z_ABRST1 [ST] PLS(SM400, V ar_Flag_Inst); (* Absolute position r estoration pulse *) IF((V ar_Flag _Inst=TRUE) & (X0=F AL SE))THEN SET(TRUE, V ar_Flag_Mem); (* T urns abso lute position restoration memory ON *) MOV(TRUE, 0, V ar_ControlDat a[4]); (* Clears completion status *) END_IF; IF([...]

  • Страница 107

    5.2 Positioning Instruction 5.2.2 PSTRT instru ction 5-57 ZP_PSTRT1 5 MODULE DEDICA TED INSTRUCTION ZP_PS TRT1 5.2.2 PSTR T instruction ZP_PSTR T1 Function This instruction st arts po sitioning of t he specified axis. (Refer to the following.) • ZP_PSTRT1: Axis 1 • ZP_PSTRT2: Axis 2 • ZP_PSTRT3: Axis 3 • ZP_PSTRT4: Axis 4 ZP_PSTRT1 ZP_PSTRT[...]

  • Страница 108

    5-58 5.2 Positioning Instruction 5.2.2 PSTRT instruction ZP_PSTRT1 Contro l Data Program Example The following program executes the positioning start of th e positioning dat a number 1 when X100 turns ON. [Structured ladder/FBD] [ST] PLS(X100, V ar_Flag_In st); (* Positioning start pu lse *) IF(V ar_Flag_In st=TRUE)THEN MOVP(TRUE, 1, V ar_ControlDa[...]

  • Страница 109

    5.2 Positioning Instruction 5.2.3 TEACH instruction 5-59 ZP_TEACH1 5 MODULE DEDICA TED INSTRUCTION ZP_TEACH1 5.2.3 TEACH instruction ZP_TEACH1 Function This instruction pe rforms teaching for th e specified axis. (Refer to the following) • ZP_TEACH1: A xis 1 • ZP_TEACH2: Axis 2 • ZP_TEACH3: Axis 3 • ZP_TEACH4: Axis 4 ZP_TEACH1 ZP_TEACH2 ZP_[...]

  • Страница 110

    5-60 5.2 Positioning Instruction 5.2.3 TEACH instruction ZP_TEACH1 Contro l Data Device Item Setting data Setting range Setting side [0] System ar ea – –– [1] Completion s tatus The instruct ion comple tion st atus is stor ed. • 0 : Normal completion • Other than 0 : Error completion (error code) – System [2] T eaching data selectio n S[...]

  • Страница 111

    5.2 Positioning Instruction 5.2.3 TEACH instruction 5-61 ZP_TEACH1 5 MODULE DEDICA TED INSTRUCTION ZP_TEACH1 Program Example The following program perfor ms teaching for the po sitioning data number 3 of the axis 1 when X39 turns ON. [Structured ladder/FBD] [ST] PLS(X39, V ar_Flag_Inst); (* T eaching instruction pulse *) IF((V ar_Flag_Ins t=TRUE)&a[...]

  • Страница 112

    5-62 5.2 Positioning Instruction 5.2.4 PFWRT instruction ZP_PFWRT 5.2.4 PFWRT instruction ZP_PFWR T Function This instruction writes the QD75 pa rameters, posi tioning data, and block st art dat a to the flash ROM. Contro l Data ZP_PFWR T Executing condition : indicates the followin g instru ction. ZP_PFWR T Input argume nt EN: Executing condit ion[...]

  • Страница 113

    5.2 Positioning Instruction 5.2.4 PFWRT instruction 5-63 ZP_PFWR T 5 MODULE DEDICA TED INSTRUCTION ZP_PFW RT Program Example The following program writes the p arameters, positio ning data, and block star t data sto red in buffe r memory to the flash ROM when X3D turns ON. [Structured ladder/FBD] [ST] PLS(X3D, V ar_Flag_Inst); (* Write to flash ROM[...]

  • Страница 114

    5-64 5.2 Positioning Instruction 5.2.5 PINIT instruction ZP_PINIT 5.2.5 PINIT instruction ZP_PINIT Function This instruction initializes the QD75 s etting data. Contro l Data ZP_PINIT Execu ting condition : indicates the followin g instru ction. ZP_PINIT Input argume nt EN: Executing condit ion :Bit Un*: S t art I/O number of the module (00 to FE: [...]

  • Страница 115

    5.2 Positioning Instruction 5.2.5 PINIT instruction 5-65 ZP_PINIT 5 MODULE DEDICA TED INSTRUCTION ZP_PINIT Program Example The following program initializes the parameters of b uffer memory and tho se of flash RO M when X3C turns ON. [Structured ladder/FBD] [ST] PLS(X3C, V ar_Flag_Inst); (* Paramete r initialization in struction pulse *) IF((V ar_F[...]

  • Страница 116

    5-66 5.3 Serial Communication 5.3.1 ONDEMAND instruction G_ONDEMAND 5.3 Serial Communication 5.3.1 ONDEMAND instruction G_ONDEMAND *1: Local devices and file registers per program cannot be used as setting data. Function This instruction sends data using th e on-demand function of MC protocol. G(P)_ONDEMAND P: Executing conditi on : indicates any o[...]

  • Страница 117

    5.3 Serial Communication 5.3.1 ONDEMAND instruction 5-67 G_ONDEMAND 5 MODULE DEDICA TED INSTRUCTION G_ONDEMAND Contro l Data Device Item Setting data Setting range Setting side [0] Transmission channel Set the tra nsmission channe l. 1: Channel 1 (CH1 side) 2: Channel 2 (CH2 side) 1, 2 User [1] Transmission result The ins truction co mpletion statu[...]

  • Страница 118

    5-68 5.3 Serial Communication 5.3.1 ONDEMAND instruction G_ONDEMAND Program Example The following program sends data of device s from D10 to D1 1 using the on-demand function. (For the Q series C24 whose I/O signals ar e X/Y00 to X/Y1F) [Structured ladder/FBD] On-demand transmission instruction pulse Sets transmission channel to 1 Sets send data to[...]

  • Страница 119

    5.3 Serial Communication 5.3.1 ONDEMAND instruction 5-69 G_ONDEMAND 5 MODULE DEDICA TED INSTRUCTION G_ONDEMAND [ST] PLS(X53, V ar_Flag _Inst); (* On-demand transmission instruction pulse *) IF(V ar_Flag_ Inst=TRUE)THEN (* Instruction flag ON *) MOV(TRUE, 1, V ar_ControlData[0]); (* Sets transmission channel to 1 *) MOV(TRUE, 2, V ar_Contr olData[2][...]

  • Страница 120

    5-70 5.3 Serial Communication 5.3.2 OUTPUT instruction G_OUTPUT 5.3.2 OUTPUT instruction G_OUTPUT *1: Local devices and file registers per program cannot be used as setting data. Function This instruction sends data in th e message format specified b y the user using the nonprocedural protocol. G(P)_OUTPUT P: Executing conditi on : indicates any of[...]

  • Страница 121

    5.3 Serial Communication 5.3.2 OUTPUT instruction 5-71 G_OUTPUT 5 MODULE DEDICA TED INSTRUCTION G_OUTPUT Contro l Data Program Example The following program sends dat a of devices from D1 1 to D15 using the nonprocedural protocol. (For the Q s eries C24 whose I/O signals ar e X/Y00 to X/Y1F) [S tructured ladder/FBD] Device Item Setting data Setting[...]

  • Страница 122

    5-72 5.3 Serial Communication 5.3.2 OUTPUT instruction G_OUTPUT [ST] PLS(X20, V ar_Flag_Inst); (* T ran smission instruction pu lse*) IF (V ar_Flag_Inst=TRUE) THEN MOV(TRUE, H4241, D1 1); (* Sets send dat a *) MOV(TRUE, H444 3, D12); MOV(TRUE, H464 5, D13); MOV(TRUE, H004 7, D14); MOV(TRUE, H0AD, D15); MOV(TRUE, 1, V ar_ControlDat a[0]); (* Sets tr[...]

  • Страница 123

    5.3 Serial Communication 5.3.3 INPUT instruction 5-73 G_INPUT 5 MODULE DEDICA TED INSTRUCTION G_INPUT 5.3.3 INPUT instruction G_INPUT *1: Local devices and file registe rs per program cannot be used as setting dat a. Function This instruction receives data in the mess age format specified by the user using the nonprocedur al protocol. G_INPUT indic[...]

  • Страница 124

    5-74 5.3 Serial Communication 5.3.3 INPUT instruction G_INPUT Contro l Data Program Example The following program stores data which are rece ived using the nonprocedural protocol in the devices starting from D10. (For the Q series C24 whose I/O signals ar e X/Y00 to X/Y1F) [Structured ladder/FBD] Device Item Setting data Setting range Setting side [...]

  • Страница 125

    5.3 Serial Communication 5.3.3 INPUT instruction 5-75 G_INPUT 5 MODULE DEDICA TED INSTRUCTION G_INPUT [ST] IF((X3=TRUE) OR (X4=TRUE))THEN MOVP(TRUE, 1, V ar_ControlDa ta[0]); (* Sets receive channel to 1 *) MOVP(TRUE, 10, V ar_ ControlData[3]); (* Set s allowable number of words for receive da ta to 10 words *) G_INPUT(TRUE, H0, V ar_Cont rolData, [...]

  • Страница 126

    5-76 5.3 Serial Communication 5.3.4 BIDOUT instruction G_BIDOUT 5.3.4 BIDOUT instruction G_BIDOUT *1: Local devices and file registers per program cannot be used as setting data. Function This instruction sends dat a us ing th e bidirectional protocol. G(P)_BIDOUT P: Executing conditi on : indicates any of th e following instruction s. G_BIDOUT GP_[...]

  • Страница 127

    5.3 Serial Communication 5.3.4 BIDOUT instruction 5-77 G_BIDOUT 5 MODULE DEDICA TED INSTRUCTION G_BIDOUT Contro l Data Program Example The following progr am sends desired da ta stored in devices from D1 1 to D15 using the bidirectiona l protocol. (For the Q s eries C24 whose I/O signals ar e X/Y00 to X/Y1F) [Structured ladder/FBD] Device Item Sett[...]

  • Страница 128

    5-78 5.3 Serial Communication 5.3.4 BIDOUT instruction G_BIDOUT [ST] PLS(X20, V ar_Flag_Inst); (* T ran smission instruction pulse *) IF(V ar_Flag_In st=TRUE)THEN MOV(TRUE, H4241, D1 1); (* Sets send dat a *) MOV(TRUE, H444 3, D12); MOV(TRUE, H464 5, D13); MOV(TRUE, H004 7, D14); MOV(TRUE, H0AD, D15); MOV(TRUE, 1, V ar_ControlDat a[0]); (* Sets tr [...]

  • Страница 129

    5.3 Serial Communication 5.3.5 BIDIN instruction 5-79 G_BIDI N 5 MODULE DEDICA TED INSTRUCTION G_BIDIN 5.3.5 BIDIN instruction G_BIDIN *1: Local devices and file registe rs per program cannot be used as setting dat a. Function This instruction receives data using the bidirection al protocol. G(P)_BIDIN P: Executing condition : indicates any of the [...]

  • Страница 130

    5-80 5.3 Serial Communication 5.3.5 BIDIN instruction G_BIDIN Contro l Data Program Example The following pr ogram receives dat a using the b idirectional protocol and stores the dat a in the devices starting from D10. (For the Q series C24 whose I/O signals ar e X/Y00 to X/Y1F) [Structured ladder/FBD] [ST] IF(X3=TRUE)THEN MOVP(TRUE, 1, V ar_Contro[...]

  • Страница 131

    5.3 Serial Communication 5.3.6 SPBUSY instruction 5-81 G_SPBUSY 5 MODULE DEDICA TED INSTRUCTION G_SPBUSY 5.3.6 SPBUSY instruction G_SPBUSY Function This instruction reads the dat a transmission/rece ption status. Program Example The following program reads ou t the communication st atus of the target module. (For the Q s eries C24 whose I/O signals[...]

  • Страница 132

    5-82 5.3 Serial Communication 5.3.7 CSET instruction (receive da ta clear) ZP_CSET 5.3.7 CSET instruction (receive data clear) ZP_CSET *1: Local devices and file registers per program cannot be used as setting data. Function Clears receive data without stop ping transmi ssion using the nonprocedural protocol. ZP_CSET Executing condition : indicates[...]

  • Страница 133

    5.3 Serial Communication 5.3.7 CSET instruction (receive data cle ar) 5-83 ZP_CSET 5 MODULE DEDICA TED INSTRUCTION ZP_CSET Contro l Data Program Example The following program clears the rece ive data in the Q series C24 side. (For the Q s eries C24 whose I/O signals ar e X/Y00 to X/Y1F) [Structured ladder/FBD] Device Item Setting data Setting range[...]

  • Страница 134

    5-84 5.3 Serial Communication 5.3.7 CSET instruction (receive da ta clear) ZP_CSET [ST] IF(X20=TRUE) THEN MOVP(TRUE, 0, V ar_ControlDat a[0]); (* Clears execution type to 0 *) MOVP(TRUE, 4, V ar_ControlDat a[2]); (* Sets request typ e *) ZP_CSET(TRUE, "U0", 1, V ar_Cont rolData, V ar_Dummy , V ar_Result); (* Clears dat a *) END_IF; IF(V a[...]

  • Страница 135

    5.3 Serial Communication 5.3.8 BUFRCVS instruction 5-85 Z_BUFRCVS 5 MODULE DEDICA TED INSTRUCTION Z_BUFRCV S 5.3.8 BUFRCVS instruction Z_BUFRCVS *1: Local devices and file registers per program cannot be used as setting data. Function This instruction receives data with an interr upt program duri ng communicatio n using the nonproced ural protocol [...]

  • Страница 136

    5-86 5.3 Serial Communication 5.3.8 BUFRCVS instruction Z_BUFRCVS Rece i ve Data Program Example The following program receives dat a with an interrupt program. [Structured ladder/FBD] [ST] (* Set the normal/error co nfirmation flag for the main program *) (* The main program reset s flags *) SET(DX3, V ar_Flag_Norma l); (* Tu rns normal comple tio[...]

  • Страница 137

    5.3 Serial Communication 5.3.9 PRR instruction 5-87 G_PRR 5 MODULE DEDICA TED INSTRUCTION G_PRR 5.3.9 PRR instruction G_PRR *1: Local devices and file registe rs per program cannot be used as setting dat a. Function This instruction sends da ta by user frame according to th e specification in user frame specification area for tran smission duri ng [...]

  • Страница 138

    5-88 5.3 Serial Communication 5.3.9 PRR instruction G_PRR Contro l Data Device Item Setting data Setting range Setting side [0] T ransmiss ion channe l Set the tr ansmission c hannel. 1: Channel 1 (CH1 side) 2: Channel 2 (CH2 side) 1, 2 U ser [1] Transmission result The instr uction compl etion st atus is stored. 0 : Normal completion Other than 0 [...]

  • Страница 139

    5.3 Serial Communication 5.3.9 PRR instruction 5-89 G_PRR 5 MODULE DEDICA TED INSTRUCTION G_PRR Program Example The following pro gram sends desired data and the user frames from number 1 to number 5 which are registered in the transmission frame setting. (For the Q s eries C24 wh ose I/O signals are X/Y80 to X/Y9F) [Structured ladder/FBD] T ransmi[...]

  • Страница 140

    5-90 5.3 Serial Communication 5.3.9 PRR instruction G_PRR [ST] PLS(X50, V ar_Flag_Inst); (* T ran smission instruction pulse *) IF((V ar_F lag_Inst=TRU E) & (X 9E=TRUE) & (X9F=F ALSE))THEN MOV(TRUE, 4, V ar_T ransData[0]); (* Set s number of send dat a *) MOV(TRUE, H1234, V ar_Tr ansData [1]); (* Sets desir ed send data *) MOV(TRUE, H56AB, [...]

  • Страница 141

    5.3 Serial Communication 5.3.10 CSET instruction (initial setting) 5-91 ZP_CSET 5 MODULE DEDICA TED INSTRUCTION ZP_CSET 5.3.10 CSET instruction (initial setting) ZP_CSET *1: Local devices and file registe rs per program cannot be used as setting dat a. Function This instruction changes the settin g values fo r sending/r eceiving data usin g communi[...]

  • Страница 142

    5-92 5.3 Serial Communication 5.3.10 CSET instruction (initial setting) ZP_CSET Contro l Data Device Item Setting data Setting range Setting side [0] Execution t ype S pecify '0'. 0U s e r [1] Completion s tatus The instruct ion comple tion st atus is stor ed. 0 : N ormal completion Other than 0 : Error completion (error code) – System [...]

  • Страница 143

    5.3 Serial Communication 5.3.10 CSET instruction (initial setting) 5-93 ZP_CSET 5 MODULE DEDICA TED INSTRUCTION ZP_CSET Program Example The following p rogram chan ges the send buffer area of the CH1 side inte rface. (For the Q s eries C24 whose I/O signals ar e X/Y00 to X/Y1F) • Sets send buf fer to C00H to FFFH. • Sets receive buffer to 600H [...]

  • Страница 144

    5-94 5.3 Serial Communication 5.3.10 CSET instruction (initial setting) ZP_CSET [ST] IF(V ar_Flag_In st=TRUE)THEN FMOVP(TRUE,0,1 12, V ar_ControlDat a[0] ); (* Resets D0 to D1 1 1 to 0 *) MOVP(TRUE, 0, V ar_ControlDa ta[0]) ; (* Sets execution type *) MOVP(TRUE, 1, V ar_ControlData [2]); (* Sets re quest type *) MOVP(TRUE, 1, V ar_ControlData[3]); [...]

  • Страница 145

    5.3 Serial Communication 5.3.11 CSET instruction (programmable controller CPU monitor) 5-95 ZP_CSET 5 MODULE DEDICA TED INSTRUCTION ZP_CSET 5.3.1 1 CSET instruction (programm able controller CPU monitor) ZP_CSET *1: Local devices and file registe rs per program cannot be used as setting dat a. Function This instruction registers and ca ncels th e p[...]

  • Страница 146

    5-96 5.3 Serial Communication 5.3.11 CSET instruction (programmable controller CPU mo nitor) ZP_CSET Contro l Data (1) Registering the programmable contr oller CPU monitoring Device Item Setting data Setting range Setting side [0] Execution t ype S pe cify '0'. 0U s e r [1] Completion s tatus The instr uction compl etion st atus is stored[...]

  • Страница 147

    5.3 Serial Communication 5.3.11 CSET instruction (programmable controller CPU monitor) 5-97 ZP_CSET 5 MODULE DEDICA TED INSTRUCTION ZP_CSET [13] Programmable controller C PU monitoring setting 1st * 1st block Device code S pecify the cod e of the device to be monitored. 0 : No device monitored Other than 0 : Device code 90 H to CC H (Device code) U[...]

  • Страница 148

    5-98 5.3 Serial Communication 5.3.11 CSET instruction (programmable controller CPU mo nitor) ZP_CSET (2) Canceling the program mable controller CPU monito ring [103] CPU status monitoring setting * Error monitoring 11 t h * 1 1t h block Condition agreement transmission Fixed valu e S pec ify a fixed value to monitor the CPU st atus. 1 User [104] 0 [...]

  • Страница 149

    5.3 Serial Communication 5.3.11 CSET instruction (programmable controller CPU monitor) 5-99 ZP_CSET 5 MODULE DEDICA TED INSTRUCTION ZP_CSET Program Example (1) Program to reg ister the pr ogrammable controller CPU monitor ing The following pr ogram registers the progr ammabl e controller CPU monitor ing and sends the monitoring result from the CH1 [...]

  • Страница 150

    5-100 5.3 Serial Communication 5.3.11 CSET instruction (programmable controller CPU mo nitor) ZP_CSET Sets number of registered word blocks Sets number of registered bit blocks Sets device code Sets start number of monitoring device Sets number of registered points Sets device code Sets start number of monitoring device Sets number of registered po[...]

  • Страница 151

    5.3 Serial Communication 5.3.11 CSET instruction (programmable controller CPU monitor) 5-101 ZP_CSET 5 MODULE DEDICA TED INSTRUCTION ZP_CSET [ST] PLS(X24, V ar_Flag_Inst); (* Instruction pulse *) IF((V a r_Flag_Inst=TRUE) & (V ar_Flag_Nor mal=F ALSE))THEN MOV(TRUE, 0, V ar_Contro lData[0]); (* Sets execution type *) MOV(TRUE, 2, V ar_ControlDat[...]

  • Страница 152

    5-102 5.3 Serial Communication 5.3.11 CSET instruction (programmable controller CPU mo nitor) ZP_CSET (2) Program to cancel the prog rammable controller CPU monito ring The following program can cels the programmab le controller CPU monitoring of the CH1 side interface. (For the Q series C24 whose I/O signals are X/Y00 to X/Y1F) [Structured ladder/[...]

  • Страница 153

    5.3 Serial Communication 5.3.12 PUTE instruction 5-103 G_PUTE 5 MODULE DEDICA TED INSTRUCTION G_PUTE 5.3.12 PUTE instruction G_PUTE *1: Local devices and file registe rs per program cannot be used as setting dat a. Function This instruction registers a user fr ame. Contro l Data G(P)_PUTE P: Executing condition : indicates any of the follo wing ins[...]

  • Страница 154

    5-104 5.3 Serial Communication 5.3.12 PUTE instruction G_PUTE Program Example The following program registers a user frame as the registration number 3E8H. (For the Q series C24 whose I/O signals ar e X/Y80 to X/Y9F) [Structured ladder/FBD] Registration request pulse Sets registration request Sets user frame number Sets number of registered bytes U[...]

  • Страница 155

    5.3 Serial Communication 5.3.12 PUTE instruction 5-105 G_PUTE 5 MODULE DEDICA TED INSTRUCTION G_PUTE [ST] PLS(X50, V ar_Flag _Inst); (* Registration request pulse *) IF(V ar_Flag_ Inst=TRUE)THEN MOV(TRUE, 1, V ar_ControlData[0]); (* Sets reg istration request * ) MOV(TRUE, H3E8, V ar_ControlData[2]) ; (* Sets user frame number *) MOV(TRUE, 10, V ar[...]

  • Страница 156

    5-106 5.3 Serial Communication 5.3.13 GETE instruction G_GETE 5.3.13 GETE instruction G_GETE *1: Local devices and file registers per program cannot be used as setting data. Function This instruction reads a user frame. G(P)_GETE P: Executing conditi on : indicates any of th e following instruction s. G_GETE GP_GETE Input argume nt EN: Executing co[...]

  • Страница 157

    5.3 Serial Communication 5.3.13 GETE instruction 5-107 G_GETE 5 MODULE DEDICA TED INSTRUCTION G_GETE Contro l Data Program Example The following program read s out the registration dat a of the user frame num ber 3E8H. (For the Q s eries C24 whose I/O signals ar e X/Y80 to X/Y9F) [Structured ladder/FBD] Device Item Setting data Setting range Settin[...]

  • Страница 158

    5-108 5.3 Serial Communication 5.3.13 GETE instruction G_GETE [ST] PLS(X51, V ar_Flag_Inst); (* Read request pulse *) IF(V ar_Flag_In st=TRUE)THEN MOV(TRUE, 0, V ar_ControlDat a[0]); MOV(TRUE, H3E8, V ar_ControlData[2]); (* Sets user frame numb er *) MOV(TRUE, 80, V ar_ControlData[3]); (* Sets allowab le number of bytes for read dat a *) FMOV(TRUE,[...]

  • Страница 159

    5.3 Serial Communication 5.3.14 UINI instruction 5-109 ZP_UINI 5 MODULE DEDICA TED INSTRUCTION ZP_UINI 5.3.14 UINI instruction ZP_UINI *1: Local devices and file registe rs per program cannot be used as setting dat a. Function This instruction switches the mode , transmission specification, an d host st ation numbe r of the Q series C24. ZP_UINI Ex[...]

  • Страница 160

    5-110 5.3 Serial Communication 5.3.14 UINI instruction ZP_UINI Contro l Data (1) [3] (CH1 T ransmission specification setti ng) and [5] (CH2 Transm ission specification setting) *1 (a) Communication speed *1 : S pecify '0000 H ' at the CH side for which "MELSOFT connection" is specified in the communication protocol setting. Dev[...]

  • Страница 161

    5.3 Serial Communication 5.3.14 UINI instruction 5-111 ZP_UINI 5 MODULE DEDICA TED INSTRUCTION ZP_UINI (2) [4] (CH1 Communication protocol setting) and [6] (CH2 Communication protocol setting) Precaut i ons The UINI instruction is applicab le to the QJ71C24N (-R2/R4) of which the function version is B and the first five digits of the serial nu mber[...]

  • Страница 162

    5-112 5.3 Serial Communication 5.3.14 UINI instruction ZP_UINI [Structured ladder/FBD] *1 : Create a program so that the data communication process does not run whil e the interlock signal for communication stop is ON. UINI instruction command Always sets 0 Clears control data to 0 Sets execution type Sets CH1 transmission specification Sets CH1 co[...]

  • Страница 163

    5.3 Serial Communication 5.3.14 UINI instruction 5-113 ZP_UINI 5 MODULE DEDICA TED INSTRUCTION ZP_UINI [ST] IF(LDP(TRUE,X20) (* UINI instruction command *) &(Y2=F ALSE) (* CH1 mode switching request *) &(Y9=F ALSE) (* CH2 mode switching request *) &(X6=F ALSE) (* CH1 mode switching *) &(X0D=F ALSE))THEN (* CH 2 mode switching *) (* [...]

  • Страница 164

    5-114 5.3 Serial Communication 5.3.15 C PRTCL instructio n G_CPRTCL 5.3.15 CPR TCL instruction G_CPR TCL *1: Local devices and file registers per program cannot be used as setting data. Function This instruction executes the pr otocols and functional pr otocols written to the flash RO M by pre- defined protocol support function . G(P)_CPRTCL P: Exe[...]

  • Страница 165

    5.3 Serial Communication 5.3.15 CPRTCL instruction 5-115 G_CPRTCL 5 MODULE DEDICA TED INSTRUCTION G_CPRTCL Contro l Data *1 : When executing multiple protocols, if an error occurs to the nth protocol, the pr otocols after the nth protocol are not executed. *2 : For details of the error code at the error co mp letion, refer to Q Corr esponding Seria[...]

  • Страница 166

    5-116 5.3 Serial Communication 5.3.15 C PRTCL instructio n G_CPRTCL Program Example This instruction executes the protocol specif ied in V a r_ControlData[2 ] when X20 turns ON. [Structured ladder/FBD] [ST] IF((X20=TRUE) & (X1D=TRUE))THEN MOV(TRUE, 0, V ar_ControlData[1 ]; (* Store th e s et va lue to th e se nd da ta s to rag e a re a *) MOV(T[...]

  • Страница 167

    5.4 Network Dedicated Instruction 5.4.1 RIRD instruction 5-117 J_RIRD, G_RIRD 5 MODULE DEDICA TED INSTRUCTION J_RIRD, G_RIRD 5.4 Network Dedicated Instruction 5.4.1 RIRD instruction J_RIRD, G_RIRD *1: Local devices and file registe rs per program cannot be used as setting dat a. Function This instruction reads data for the specified numbe r of poin[...]

  • Страница 168

    5-118 5.4 Network Dedicated Instruction 5.4.1 RIRD instruction J_RIRD, G_RIRD Contro l Data *1 : For G(P)_RIRD, the setting range shall b e 0 to 64. *2 : For details, refer to the manual for the local stat ion or the intelligent device station from which data are read. When the random access buffer is specified, spec ify the start address of the ra[...]

  • Страница 169

    5.4 Network Dedicated Instruction 5.4.1 RIRD instruction 5-119 J_RIRD, G_RIRD 5 MODULE DEDICA TED INSTRUCTION J_RIRD, G_RIRD (2) Device memory of the programma ble controller CPU module *1 : Devices other than those listed above cannot be accessed. When accessing a bit device, specify it with 0 or a multiple of 16. *2 : For access code/attribute co[...]

  • Страница 170

    5-120 5.4 Network Dedicated Instruction 5.4.1 RIRD instruction J_RIRD, G_RIRD Program Example The following pro gram reads out 10-wo rd data, which start from D1000 of the num ber 1 local station co nnected to the master module mounted on the I/O numbers fro m X/Y40 to X/Y5F , and stores the data in the devices st ar ting from D0 when X0 turns ON. [...]

  • Страница 171

    5.4 Network Dedicated Instruction 5.4.1 RIRD instruction 5-121 J_RIRD, G_RIRD 5 MODULE DEDICA TED INSTRUCTION J_RIRD, G_RIRD [ST] IF(X0=TRUE) &(V ar_Flag_Exe=F ALSE) (* Execution flag *) &(SW80.0=F ALSE))THEN (* Data link status of station number 1 *) MOV(TRUE,1, V ar_ControlData[1 ]) ; (* Sets station num ber *) MOV(TRUE,H0405, V ar_Contro[...]

  • Страница 172

    5-122 5.4 Network Dedicated Instruction 5.4.2 RIWT instruction J_RIWT , G_RIWT 5.4.2 RIWT instruction J_RIWT , G_RIWT *1: Local devices and file registers per program cannot be used as setting data. Function This instructio n writes the data for the spec ified number of points to the buffer memo ry of the CC - Link module or the de vice of the prog[...]

  • Страница 173

    5.4 Network Dedicated Instruction 5.4.2 RIWT instruction 5-123 J_RIWT , G_RI WT 5 MODULE DEDICA TED INSTRUCTION J_RIWT , G_RIWT Contro l Data *1 : For G(P)_RIWT , the setting range shall be 0 to 64. *2 : For details, refer to the manual for the local stat ion or the intelligent device station to which data are written. When the random access buffer[...]

  • Страница 174

    5-124 5.4 Network Dedicated Instruction 5.4.2 RIWT instruction J_RIWT , G_RIWT (2) Devic e memory of the pr ogrammable co ntroller CPU module *1 : Devices other than those list ed above cannot be accessed. When accessing a bit device, specify it with 0 or a multiple of 16. *2 : For access code/attribute code when target station is anything other th[...]

  • Страница 175

    5.4 Network Dedicated Instruction 5.4.2 RIWT instruction 5-125 J_RIWT , G_RI WT 5 MODULE DEDICA TED INSTRUCTION J_RIWT , G_RIWT Program Example The following program stores 10-wo rd data, which are stor ed in the devices starting from D0, to the devices star ting from D1000 of the number 1 local sta tion connected to the master mod ule mounted on t[...]

  • Страница 176

    5-126 5.4 Network Dedicated Instruction 5.4.2 RIWT instruction J_RIWT , G_RIWT [ST] IF(X0=TRUE) &(V ar_Flag_Exe=F ALSE) (* Execution flag *) &(SW80.0=F ALSE))THEN (* Data link status of st ation number 1 *) MOV(TRUE, 1, V ar_ControlDat a[1]); (* Sets st ation numbe r *) MOV(TRUE, H0405, V ar_ControlData[2]); (* Se ts access code and attribu[...]

  • Страница 177

    5.4 Network Dedicated Instruction 5.4.3 RIRCV instruction 5-127 G_RIRCV 5 MODULE DEDICA TED INSTRUCTION G_RIRCV 5.4.3 RIRCV instruction G_RIRCV *1: Local devices and file registe rs per program cannot be used as setting dat a. Function This instruction automa tically performs handsh aking with an intelligent device st ation and reads data from the [...]

  • Страница 178

    5-128 5.4 Network Dedicated Instruction 5.4.3 RIRCV instruction G_RIRCV Contro l Data *1 : For details, refer to the manual for the in telligent device station from which data are read. *2 : The value indicates the maximum number of data to be read. S pecify the value within the buf fer memory capacity of the intelligent device station or the recei[...]

  • Страница 179

    5.4 Network Dedicated Instruction 5.4.3 RIRCV instruction 5-129 G_RIRCV 5 MODULE DEDICA TED INSTRUCTION G_RIRCV Program Example The following program read s 1 1-word dat a, which are store d in buffer memo ry starting from the buffe r memory address 400H of the number 63 intelligent device st ation (AJ65BT -R2(N)) connected to the master module mou[...]

  • Страница 180

    5-130 5.4 Network Dedicated Instruction 5.4.3 RIRCV instruction G_RIRCV [ST] IF((V ar_Fl ag_Inst=TRU E) (* Read requ est ON *) &(V ar_Flag_Exe=F ALSE) (* Execution flag *) &(SW83.E=F ALSE))THEN (* Dat a link status of st ation number 63 *) (* Sets control dat a *) MOV(TRUE, 63, V ar_ControlData[1 ]); (* Sets sta tion number *) MOV(TRUE,H4, [...]

  • Страница 181

    5.4 Network Dedicated Instruction 5.4.4 RISEND instruction 5-131 G_RISEND 5 MODULE DEDICA TED INSTRUCTION G_RISEND 5.4.4 RISEND instruction G_RISEND *1: Local devices and file registe rs per program cannot be used as setting dat a. Function This instruction au tomatically performs ha ndshak ing with an in telligent device st ation and writes data t[...]

  • Страница 182

    5-132 5.4 Network Dedicated Instruction 5.4.4 RISEND instruction G_RISEND Contro l Data *1 : For details, refer to the manual for the in telligent device station to which data are written. *2 : The value indicates the maximum number of data to be written. S pecify the value within the buf fer memory capacity of the intelligent device station or the[...]

  • Страница 183

    5.4 Network Dedicated Instruction 5.4.4 RISEND instruction 5-133 G_RISEND 5 MODULE DEDICA TED INSTRUCTION G_RISEND Program Example The following program writes 1-wo rd data of D10 to the buf f er memory address 1 1 1H of the number 63 intelligent device stat ion (AJ65BT -R2(N)) which is co nnected to the master module mounted on the I/O numbers fro[...]

  • Страница 184

    5-134 5.4 Network Dedicated Instruction 5.4.4 RISEND instruction G_RISEND [ST] IF((V ar_Flag_Inst=TRUE) (* Write request ON *) &(V ar_Flag_Exe=F ALSE) (* Execution flag *) &(SW83.E=F ALSE))THEN (* Dat a link status of st ation number 63 *) (* Sets control dat a *) MOV(TRUE, 63, V ar_ControlData[1 ]); (* Sets sta tion number *) MOV(TRUE, H4,[...]

  • Страница 185

    5.4 Network Dedicated Instruction 5.4.5 RIFR instruction 5-135 G_RIFR 5 MODULE DEDICA TED INSTRUCTION G_RIFR 5.4.5 RIFR instruction G_RIFR *1: Local devices and file registe rs per program cannot be used as setting dat a. Function This instruction reads dat a from the auto -refresh buf fer of the sp ecified station. The instruction is applicable wi[...]

  • Страница 186

    5-136 5.4 Network Dedicated Instruction 5.4.5 RIFR instruct ion G_RIFR Program Example The following program read s out 10-word dat a from buf fer memory star ting from the of fset value 100 of the auto-refresh buffer of the master module (400H in the intelligent device station) and stores the data in the devices st ar ting from D0 when X0 turns ON[...]

  • Страница 187

    5.4 Network Dedicated Instruction 5.4.6 RITO instruction 5-137 G_RIT O 5 MODULE DEDICA TED INSTRUCTION G_RITO 5.4.6 RIT O instruction G_RIT O *1: Local devices and file registe rs per program cannot be used as setting dat a. Function This instruction writes the data to the auto-re fresh buf fer of the specified st ation. The instruction is applicab[...]

  • Страница 188

    5-138 5.4 Network Dedicated Instruction 5.4.6 RITO instruction G_RITO Program Example The following program write 10-word data which are sto red in the devices st arting from D0 into buff er memory st arting the of fset value 100 of th e auto-refresh b uffe r of the master module (400H in the intelligent device stat ion) when X0 turns ON. (When the[...]

  • Страница 189

    5.4 Network Dedicated Instruction 5.4.7 RLPASET instruction 5-139 G_RLP ASET 5 MODULE DEDICA TED INSTRUCTION G_RLP ASET 5.4.7 RLP ASET instruction G_RLP ASET *1: Local devices and file registe rs per program cannot be used as setting dat a. Function This instruction set s the network p arameters to the master st ation and star ts up the da ta link.[...]

  • Страница 190

    5-140 5.4 Network Dedicated Instruction 5.4.7 RLPASET instruction G_RLP ASET Contro l Data *1 : For the setting da ta for which invalid is specified, default parameter is applied. *2 : Setting a value outside the setting range results in error completion of the instruction. Device Item Setting data Sett ing r ange *2 Setting side [0] Completion sta[...]

  • Страница 191

    5.4 Network Dedicated Instruction 5.4.7 RLPASET instruction 5-141 G_RLP ASET 5 MODULE DEDICA TED INSTRUCTION G_RLP ASET (1) Slave station setting data *3 : Set the same number which was set for Number of connected modules in the contr ol data. *4 : Setting a value outside the setting range in the setting of slave station type results in error compl[...]

  • Страница 192

    5-142 5.4 Network Dedicated Instruction 5.4.7 RLPASET instruction G_RLP ASET (2) Reserved sta tion specification dat a *5 : Set the parameter up to the largest station number set in the slave station setting data. *6 : Set the parameter only to the start station number of the module for the remote station/local station/ intelligent device station t[...]

  • Страница 193

    5.4 Network Dedicated Instruction 5.4.7 RLPASET instruction 5-143 G_RLP ASET 5 MODULE DEDICA TED INSTRUCTION G_RLP ASET (4) Send/receive and auto -refresh buf fer assignmen t data *9 : Set the assignment data, in ascending order , for the stations set for a local st ation or intelligent device station in the slave station setting data. *10 : Keep t[...]

  • Страница 194

    5-144 5.4 Network Dedicated Instruction 5.4.7 RLPASET instruction G_RLP ASET [Structured ladder/FBD] Reads SB0040 to SB01FF Reads SW0040 to SW01FF Parameter setting command Clears completion status Sets all of setting flags to V alid Sets number of connected modules Sets number of retries Sets number of automatic return modules Sets operation speci[...]

  • Страница 195

    5.4 Network Dedicated Instruction 5.4.7 RLPASET instruction 5-145 G_RLP ASET 5 MODULE DEDICA TED INSTRUCTION G_RLP ASET [ST] FROM(TRUE, H0, H5E4, 28, K4SB40) ; (* Reads SB0040 to SB01FF *) FROM(TRUE, H0, H640, 448, SW40); (* Reads SW0040 to SW01FF*) IF((SM402=TRUE) & (SB6E=TRUE))THEN SET(TRUE, V ar_Fl ag_Inst); (* Parameter settin g command *) [...]

  • Страница 196

    5-146 5.4 Network Dedicated Instruction 5.4.8 READ instruction J_READ, G_READ 5.4.8 READ instruction J_READ, G_READ *1 : Local devices and file registers per program cannot b e used as setting data. *2 : Only CC-Link IE Field Network When the target station is LCPU, Universal model QC PU, or Basic model QCPU, the digit specification of the bit devi[...]

  • Страница 197

    5.4 Network Dedicated Instruction 5.4.8 READ instructi on 5-147 J_READ, G_R EAD 5 MODULE DEDICA TED INSTRUCTION J_READ, G_READ Contro l Data Device Item Setting data Setting range Setting side [0] Error comple tion type Error comple tion type (bit 7) S pec ify the cloc k dat a setup st atus a t the time of error co mpletion. 0: Clock data at the ti[...]

  • Страница 198

    5-148 5.4 Network Dedicated Instruction 5.4.8 READ instruction J_READ, G_READ [7] Number of rese nds For inst ruction e xecution S pecify the numb er of instructi on resends when t he instructi on is not completed with in the monito ring time sp ecified in [8]. 0 to 15 User At instru ction comple tion The number of rese nds (resul t) is stored. –[...]

  • Страница 199

    5.4 Network Dedicated Instruction 5.4.8 READ instructi on 5-149 J_READ, G_R EAD 5 MODULE DEDICA TED INSTRUCTION J_READ, G_READ *1 : S pecification is possible when the host station is a network module or Ethernet module of function version D or later . (S pecification is not possible for other modules. An access is always made to the target station[...]

  • Страница 200

    5-150 5.4 Network Dedicated Instruction 5.4.8 READ instruction J_READ, G_READ Program Example The following program re ads out dat a from the devices from D250 to D254 in the station numb er 4 (tar get station ) and stores the dat a to the dev ices from D700 to D704 of the station number 1 (host station). [Structured ladder/FBD] Sets error completi[...]

  • Страница 201

    5.4 Network Dedicated Instruction 5.4.8 READ instructi on 5-151 J_READ, G_R EAD 5 MODULE DEDICA TED INSTRUCTION J_READ, G_READ [ST] IF (LDP(TRUE,V ar_Flag_Inst) THEN MOV(TRUE,H81,V ar_ControlDa ta[0]); (* Sets error completion type *) MOV(TRUE,1,V ar_ControlDat a[2]); (* Sets channel used by host station *) MOV(TRUE,H0,V ar_ControlData[3]); (* Se t[...]

  • Страница 202

    5-152 5.4 Network Dedicated Instruction 5.4.9 SREAD instruction J_SREAD, G_SREA D 5.4.9 SREAD instruction J_SREAD, G_SREAD *1: Local devices and file registers per program cannot be used as setting data. J(P)_SREAD G(P)_SREAD P: Executing conditi on : indicates any of th e following instruction s. J_SREAD JP_SREAD G_SREAD G P_SREA D Input argume nt[...]

  • Страница 203

    5.4 Network Dedicated Instruction 5.4.9 SREAD instructi on 5-153 J_SREAD, G_SRE AD 5 MODULE DEDICA TED INSTRUCTION J_SREAD, G_SREAD Function This instruction reads dat a from a word device of anothe r station. Contro l Data For the control dat a of the SREAD instruction th at reads the wor d device memory of anothe r station, refer to READ instruct[...]

  • Страница 204

    5-154 5.4 Network Dedicated Instruction 5.4.9 SREAD instruction J_SREAD, G_SREA D Program Example The following program example of the SREAD instruction is dif ferent fro m that of the READ instruction by assigning the read notifica tion de vice at the end of arguments. [Structured ladder/FBD] d 3 Sets error completion type Sets channel used by hos[...]

  • Страница 205

    5.4 Network Dedicated Instruction 5.4.9 SREAD instructi on 5-155 J_SREAD, G_SRE AD 5 MODULE DEDICA TED INSTRUCTION J_SREAD, G_SREAD [ST] IF (V ar_Flag_Inst=TRUE) THEN MOV(TRUE,H81,V ar_ControlDa ta[0]); (* Sets error completion type *) MOV(TRUE,1,V ar_ControlDat a[2]); (* Sets channel used by host station *) MOV(TRUE,H0,V ar_ControlData[3]); (* Se [...]

  • Страница 206

    5-156 5.4 Network Dedicated Instruction 5.4.10 WRITE instruction J_WRITE, G_WRITE 5.4.10 WRITE instruction J_WRITE, G_WRITE Function This instruction writes data to a word d evice of another station. J(P)_WRITE G(P)_WRITE P: Executing conditi on : indicates any of th e following instruction s. J_WRITE JP_WRITE G_WRITE GP_WRITE Input argume nt EN: E[...]

  • Страница 207

    5.4 Network Dedicated Instruction 5.4.10 WRITE instruction 5-157 J_WRITE, G_WRIT E 5 MODULE DEDICA TED INSTRUCTION J_WRITE, G_ WRITE Contro l Data Device Item Setting dat a Setting r ange Setting side [0] Execution/ Error co mpletion type Execution t ype (bit 0) 0000 H , 0001 H , 0080 H , 0081 H User Ethernet 0: Without a rrival conf irmation When [...]

  • Страница 208

    5-158 5.4 Network Dedicated Instruction 5.4.10 WRITE instruction J_WRITE, G_WRITE [0] Execution/Er ror comple tion type Error comple tion type ( bit 7) S pecify the clock data setup status at the t ime of error complet ion. 0: Clock data at th e time of error com pletion is not set in the area startin g from [1 1]. 1: Clock dat a at the time of er [...]

  • Страница 209

    5.4 Network Dedicated Instruction 5.4.10 WRITE instruction 5-159 J_WRITE, G_WRIT E 5 MODULE DEDICA TED INSTRUCTION J_WRITE, G_ WRITE [5] T arget station No. S pecify the station number of the target statio n. (1) S t ation number sp ecificati on T o increase the data relia bility when the station number is spec ified, executing the instructi on wit[...]

  • Страница 210

    5-160 5.4 Network Dedicated Instruction 5.4.10 WRITE instruction J_WRITE, G_WRITE *1 : S pecification is possible when th e host station is a network module or Ethernet module of function version D or later . (S pecification is not possible for ot her modules. An access is alwa ys made to the target station CPU.) *2 : Specification is possible when[...]

  • Страница 211

    5.4 Network Dedicated Instruction 5.4.10 WRITE instruction 5-161 J_WRITE, G_WRIT E 5 MODULE DEDICA TED INSTRUCTION J_WRITE, G_ WRITE Program Example The following program writes dat a which are stored in the devices from D750 to D753 of the station number 2 (ho st station) to the devices fr om D300 to D303 of the st ation number 3 (targe t station)[...]

  • Страница 212

    5-162 5.4 Network Dedicated Instruction 5.4.10 WRITE instruction J_WRITE, G_WRITE [ST] IF (V ar_Flag_Inst=TRUE) THEN MOV(TRUE ,H81,V ar_ControlDa ta[0]); (* Sets execution/erro r completion t ype *) MOV(TRUE ,2,V ar_ControlD ata[2]); (* Sets channel use d by host station *) MOV(TRUE,H0,V ar_ControlData[3]); (* Se ts target st ation's CPU type [...]

  • Страница 213

    5.4 Network Dedicated Instruction 5.4.11 SWRITE instruction 5-163 J_SWRITE, G_SWRITE 5 MODULE DEDICA TED INSTRUCTION J_SWRITE, G_SWRITE 5.4.1 1 SWRITE instruction J_SWRITE, G_SWRITE *1: Local devices and file registe rs per program cannot be used as setting dat a. J(P)_SWRITE G(P)_SWRITE P: Executing condition : indicates any of the follo wing inst[...]

  • Страница 214

    5-164 5.4 Network Dedicated Instruction 5.4.11 SWRITE instruction J_SWRITE, G_SWRITE Function This instruction writes data to a word d evice of another station. Contro l Data For the co ntrol data of the SWRIT E instruction th at writes data to the w ord device me mory of another station, refer to WRITE instruction. The control dat a of the SWRITE [...]

  • Страница 215

    5.4 Network Dedicated Instruction 5.4.11 SWRITE instruction 5-165 J_SWRITE, G_SWRITE 5 MODULE DEDICA TED INSTRUCTION J_SWRITE, G_SWRITE Program Example The following program example of the SWRITE inst ruction is differ ent from that of the WRITE instruction by assigning the wr ite notificati on device at the end of arguments. [Structured ladder/FBD[...]

  • Страница 216

    5-166 5.4 Network Dedicated Instruction 5.4.11 SWRITE instruction J_SWRITE, G_SWRITE (2) Program on the request target (st ation number 3) of the SWRITE instruction [ST] (1) Program on the request so urce (sta tion number 2) of the SWRITE instruction IF (V ar_Flag_Inst=TRUE) THEN MOV(TRUE ,H81,V ar_ControlDa ta[0]); (* Sets execution/erro r complet[...]

  • Страница 217

    5.4 Network Dedicated Instruction 5.4.12 SEND instruction 5-167 J_SEND, G_SEND 5 MODULE DEDICA TED INSTRUCTION J_SEND, G_SEND 5.4.12 SEND instruction J_SEND, G_SEND *1: Local devices and file registe rs per program cannot be used as setting dat a. Function This instruction sends da ta to anoth er station. J(P)_SEND G(P)_SEND P: Executing condition [...]

  • Страница 218

    5-168 5.4 Network Dedicated Instruction 5.4.12 SEND instruction J_SEND, G_SEND Contro l Data Device Item Setting data Setting range Setting side [0] Execution/Er ror comple tion type Execution ty pe (bit 0) 0000 H , 0001 H , 0080 H , 0081 H User Ethernet 0: Without arri val confirmat ion When the target station is on the same networ k ... Co mplete[...]

  • Страница 219

    5.4 Network Dedicated Instruction 5.4.12 SEND instruction 5-169 J_SEND, G_SEND 5 MODULE DEDICA TED INSTRUCTION J_SEND, G_SEND [0] Execution/ Error co mpletion type Error comple tion type (bit 7) S pecify the clock data setup status at the t ime of error complet ion. 0: Clock data at th e time of error com pletion is not set in the area startin g fr[...]

  • Страница 220

    5-170 5.4 Network Dedicated Instruction 5.4.12 SEND instruction J_SEND, G_SEND [5] T arget station No. S pecify the station nu mber of the target stati on. (1) S tation number spec ification T o increase the dat a reliab ility when t he stati on number is s pecified, executing t he instructio n with setting Execution/Err or completion t ype ( [0]) [...]

  • Страница 221

    5.4 Network Dedicated Instruction 5.4.12 SEND instruction 5-171 J_SEND, G_SEND 5 MODULE DEDICA TED INSTRUCTION J_SEND, G_SEND *1 : Data are stored only when 1 is set in bit 7 of Error completion type ( [0]). *2 : Logical channel setting is not avail able for the CC-Link IE network module . [8] Arrival moni toring time S pecify the mon itoring time [...]

  • Страница 222

    5-172 5.4 Network Dedicated Instruction 5.4.12 SEND instruction J_SEND, G_SEND Program Example The following program sends data of the devices from D750 to D753 of the st ation number 1 (host station) to the channel 5 of th e station nu mber 2 (t arget st ation). For the method for readin g the data , which are sent by the SEND instruction, from th[...]

  • Страница 223

    5.4 Network Dedicated Instruction 5.4.12 SEND instruction 5-173 J_SEND, G_SEND 5 MODULE DEDICA TED INSTRUCTION J_SEND, G_SEND [Structured ladder/FBD] Sets execution/error completion type Sets channel used by host station Sets target station channel Sets target station network number Sets target station number Sets number of resends Sets monitoring [...]

  • Страница 224

    5-174 5.4 Network Dedicated Instruction 5.4.12 SEND instruction J_SEND, G_SEND [ST] IF (V ar_Flag_Inst=TRUE) THEN MOV(TRUE ,H81,V ar_ControlDa ta[0]); (* Sets execution/erro r completion t ype *) MOV(TRUE ,3,V ar_ControlD ata[2]); (* Sets channel use d by host station *) MOV(TRUE,H5,V ar_ControlDat a[3]); (* Sets tar get station chan nel *) MOV(TRU[...]

  • Страница 225

    5.4 Network Dedicated Instruction 5.4.13 RECV instruction 5-175 J_RECV , G_RECV 5 MODULE DEDICA TED INSTRUCTION J_RECV , G_RECV 5.4.13 RECV instruction J_RECV , G_RECV *1: Local devices and file registe rs per program cannot be used as setting dat a. Function This instruction reads rece ived data (for main pro gram). J(P)_RECV G(P)_RECV P: Executin[...]

  • Страница 226

    5-176 5.4 Network Dedicated Instruction 5.4.13 RECV instruction J_RECV , G_RECV Contro l Data Device Item Setting data Setting range Setting side [0] Error complet ion type Error co mpletion ty pe (bit 7) S pec ify the cloc k dat a setup st atus at the time of error co mpletion. 0: Clock data at the time of error compl etion is n ot set in th e are[...]

  • Страница 227

    5.4 Network Dedicated Instruction 5.4.13 RECV instruction 5-177 J_RECV , G_RECV 5 MODULE DEDICA TED INSTRUCTION J_RECV , G_RECV *1 : Data are stored only when 1 is set in bit 7 of Error completion type ( [0]). [9] Receive da ta leng th The number of re ceived data stored i n to + n is stor ed. 0 : No receive da ta 1 to 960 : Number of words of rece[...]

  • Страница 228

    5-178 5.4 Network Dedicated Instruction 5.4.13 RECV instruction J_RECV , G_RECV Program Example The following program reads out data, which is sent from the st ation number 1 by the SEND instruction, from the channel 5 of the sta tion number 2 (host statio n) and stores the data to the devices from D770 to D773 of the sta tion number 2 (host st ati[...]

  • Страница 229

    5.4 Network Dedicated Instruction 5.4.13 RECV instruction 5-179 J_RECV , G_RECV 5 MODULE DEDICA TED INSTRUCTION J_RECV , G_RECV [ST] IF (SM400=TRUE) THEN MOV(TRUE,H80,V ar_ControlDa ta[0]); (* Sets error completion type *) MOV(TRUE,5,V ar_ControlDat a[2]); (* Sets host station channel *) MOV(TRUE,0,V ar_ControlData[6]); MOV(TRUE,0,V ar_ControlData[[...]

  • Страница 230

    5-180 5.4 Network Dedicated Instruction 5.4.14 RECVS instruction Z_RECVS 5.4.14 RECVS instruction Z_RECVS *1: Local devices and file registers per program cannot be used as setting data. Function This instruction reads received dat a (for interrupt program) . Z_RECVS indicates the followin g instru ction. Z_RECV S Input argume nt EN: Executing cond[...]

  • Страница 231

    5.4 Network Dedicated Instruction 5.4.14 RECVS instruction 5-181 Z_RECVS 5 MODULE DEDICA TED INSTRUCTION Z_REC VS Contro l Data Device Item Setting data Setting range Setting side [0] Completion type 0U s e r [1] Completion status The instru ction comple tion st atus is st ored. 0 : Normal completion Other than 0 : Error completion (error code) –[...]

  • Страница 232

    5-182 5.4 Network Dedicated Instruction 5.4.14 RECVS instruction Z_RECVS Program Example The following program reads data, which is sent from the st ation nu mber 1 by the SEND instruction, from the channel 5 of the sta tion number 2 (host statio n) and stores the data to the devices from D770 to D773 of the sta tion number 2 (host st ation) when a[...]

  • Страница 233

    5.4 Network Dedicated Instruction 5.4.15 REQ instruction 5-183 J_REQ, G_REQ 5 MODULE DEDICA TED INSTRUCTION J_REQ, G _REQ 5.4.15 REQ instruction J_REQ, G_REQ *1: Local devices and file registe rs per program cannot be used as setting dat a. Function Remotely runs or stops a pr ogrammable contro ller on another st ation. Also, reads/writes clock dat[...]

  • Страница 234

    5-184 5.4 Network Dedicated Instruction 5.4.15 REQ instruction J_REQ, G_REQ C ontro l D ata Device Item Setting data Setting range Setting side [0] Error complet ion type Error comple tion type (bit 7) S pecify the cloc k data setup status at the time of error comple tion. 0: Clock da ta at the time of er ror comple tion is not s et in the ar ea st[...]

  • Страница 235

    5.4 Network Dedicated Instruction 5.4.15 REQ instruction 5-185 J_REQ, G_REQ 5 MODULE DEDICA TED INSTRUCTION J_REQ, G _REQ [5] T arget station No. S pecify the statio n number of the targe t station. (1) S tation number specification (2) Group spe cification (target station is anyt hing other than CC-Link IE Field Netwo rk) 81 H to A0 H : All statio[...]

  • Страница 236

    5-186 5.4 Network Dedicated Instruction 5.4.15 REQ instruction J_REQ, G_REQ *1 : S pecification is possible when th e host station is a network module or Ethernet module of function version D or later . (S pecification is not possible for ot her modules. An access is alwa ys made to the target station CPU.) *2 : Specification is possible when the v[...]

  • Страница 237

    5.4 Network Dedicated Instruction 5.4.15 REQ instruction 5-187 J_REQ, G_REQ 5 MODULE DEDICA TED INSTRUCTION J_REQ, G _REQ (1) Remote RUN/STOP Request dat a (all set by the user) Response da ta *1 (all set by the system) *1 : When "all stations or a group (81 H to A0 H, FF H )" is specified in [5], no respon se data will be stored. Device [...]

  • Страница 238

    5-188 5.4 Network Dedicated Instruction 5.4.15 REQ instruction J_REQ, G_REQ (2) Rea ding/writing the clock data Request dat a (all set by the user ) *1 : This function cannot change the first two dig its of year data. T o change the yea r data including the first two digits , set the clock data using another function (such as GX Works2). Device Ite[...]

  • Страница 239

    5.4 Network Dedicated Instruction 5.4.15 REQ instruction 5-189 J_REQ, G_REQ 5 MODULE DEDICA TED INSTRUCTION J_REQ, G _REQ Response dat a (all set by the system) *2 : When "all stations or a group (81 H to A0 H, FF H )" is specified in [5], no respon se data will be stored. *3 : Last two digits of year data Device Item Setting data Read cl[...]

  • Страница 240

    5-190 5.4 Network Dedicated Instruction 5.4.15 REQ instruction J_REQ, G_REQ Program Example The following program performs remote STOP to the QCPU, which is the st ation numbe r 2 (targe t station). [Structured ladder/FBD] S et s exe c ution/error c ompletion type S et s c hannel u s e d by ho s t s tation S et s target s tation' s CPU type S [...]

  • Страница 241

    5.4 Network Dedicated Instruction 5.4.15 REQ instruction 5-191 J_REQ, G_REQ 5 MODULE DEDICA TED INSTRUCTION J_REQ, G _REQ [ST] IF (V ar_Flag_Inst=TRUE) THEN MOV(TRUE,H91,V ar_Contro lData[0]); (* Sets execution/err or completion type *) MOV(TRUE,3,V ar_ControlDat a[2]); (* Sets channel used by host station *) MOV(TRUE,H0,V ar_ControlData[3]); (* Se[...]

  • Страница 242

    5-192 5.4 Network Dedicated Instruction 5.4.16 ZNRD instruction J_ZNRD 5.4.16 ZNRD instruction J_ZNRD *1: Local devices and file registers per program cannot be used as setting dat a. *2: In additio n to the setting data , the ZNRD instru ction is executed using the following fixed values. Channel used by host station: Channel 1 Arrival monitoring [...]

  • Страница 243

    5.4 Network Dedicated Instruction 5.4.16 ZNRD instruction 5-193 J_ZNRD 5 MODULE DEDICA TED INSTRUCTION J_ZNRD Fun c tion This instruction reads dat a from devices of a progra mmable controller CPU on anothe r station. (In units of words) 1. S pecify devices o f the targ et station' s CPU within the ran ge allowed for the ho st station CPU when[...]

  • Страница 244

    5-194 5.4 Network Dedicated Instruction 5.4.16 ZNRD instruction J_ZNRD Program Example In this program example, when M101 turn s ON, data in D250 to D254 of st ation No.4 (t arget station) a re read out to D700 to D704 o f station No.1 (host st ation). [Structured ladder/FBD] [ST] IF((M101=TRUE) &( SB47=F AL SE) & (SW0A0.3=F ALSE)) THEN JP_[...]

  • Страница 245

    5.4 Network Dedicated Instruction 5.4.17 ZNWR instruction 5-195 J_ZNWR 5 MODULE DEDICA TED INSTRUCTION J_ZNWR 5.4.17 ZNWR instruction J_ZNWR J(P)_ZNWR P: Executing condition : indicates any of the follo wing instruct ions. J_ZNWR JP_ZNW R Input argument EN: Executing condition :Bit Jn*: Network number of the host station (1 to 239) :ANY16 n1: T arg[...]

  • Страница 246

    5-196 5.4 Network Dedicated Instruction 5.4.17 ZNWR instruction J_ZNWR *1: Local devices and file re gisters per program cannot be used as a device whi ch is used in setting data. *2: In addition to the setting data, the ZNWR instru ctio n is executed using t he following fixed va lues. Channel used by host station: Channel 2 Arrival monitoring tim[...]

  • Страница 247

    5.4 Network Dedicated Instruction 5.4.17 ZNWR instruction 5-197 J_ZNWR 5 MODULE DEDICA TED INSTRUCTION J_ZNWR Program Example In this program example, when M1 12 turn s ON, data in D750 to D753 of station No.2 (host statio n) are written to D300 to D303 of st ation No.3 (target st ation). [Structured ladder/FBD] Per f orm s w riting S tore s d ata [...]

  • Страница 248

    5-198 5.4 Network Dedicated Instruction 5.4.17 ZNWR instruction J_ZNWR [ST] IF(M1 1 1=TRUE )THEN (* Instruction flag ON *) MOV( TRUE, 10, D750); MOV( TRUE, 20, D751); MOV( TRUE, 30, D752 ); MOV( TRUE, 40, D753 ); (* S tores data to be wr itten to D750 to D753 *) END_IF; IF((M1 12=TRUE) &(SB47=F ALSE) & (SW0A0.2=F ALSE)) THEN JP_ZNWR(TRUE,1,[...]

  • Страница 249

    5.4 Network Dedicated Instruction 5.4.18 RRUN instruction 5-199 Z_RRUN_J, Z_RRUN_U 5 MODULE DEDICA TED INSTRUCTION Z_RRUN_J, Z_RRUN_U 5.4.18 RRUN instruction Z_RRUN_J, Z_RRUN_U Z(P)_RRUN_J Z(P)_RRUN_U P: Executing condition : indicates any of the follo wing instruct ions. Z_RRUN_J ZP_RRUN_J Z_RRUN_U ZP_RRUN_U Input argument EN: Executing condition [...]

  • Страница 250

    5-200 5.4 Network Dedicated Instruction 5.4.18 RRUN instruction Z_RRUN_J, Z_RRUN_U *1: Local devices and file registers per program cannot be used as setting data. Fun c tion This instruction remotely switches a CPU module on another station to RUN. Pre c aut i on s This instruction is applicable to the QJ71LP21 or QJ71BR1 1 with the function versi[...]

  • Страница 251

    5.4 Network Dedicated Instruction 5.4.18 RRUN instruction 5-201 Z_RRUN_J, Z_RRUN_U 5 MODULE DEDICA TED INSTRUCTION Z_RRUN_J, Z_RRUN_U [ST] IF((V ar_Flag_Exe=TRUE) AND (SB47=F A LSE) AND (SW0A0.1=F ALSE)) THEN Z_RRUN_J(TRUE,"J1",3,2,H3FF ,H1,V ar_ Result);(* Performs remote RUN *) END_IF; IF(V ar_Result[0]=TRUE)THEN (* Execution finished *[...]

  • Страница 252

    5-202 5.4 Network Dedicated Instruction 5.4.19 RSTOP instruction Z_RST OP_J, Z_ RSTO P_U 5.4.19 RST OP instruction Z_RST OP_J, Z_RSTOP_U Z(P)_RSTOP_J Z(P)_RSTOP_U P: Executing condition : indicates any of th e following instruction s. Z_RSTOP_J ZP_RSTOP_J Z_RSTOP_U ZP_RSTOP_U Input argume nt EN: Executing condit ion :Bit Jn*: Network number of the [...]

  • Страница 253

    5.4 Network Dedicated Instruction 5.4.19 RSTOP instruction 5-203 Z_RSTOP_J, Z_RST OP_U 5 MODULE DEDICA TED INSTRUCTION Z_RST OP_J, Z_RST OP_U *1: Local devices and file registe rs per program cannot be used as setting dat a. Fun c tion This instruction remotely switches a CPU module on another station to ST OP . Pre c aut i on s This instruction is[...]

  • Страница 254

    5-204 5.4 Network Dedicated Instruction 5.4.19 RSTOP instruction Z_RST OP_J, Z_ RSTO P_U [ST] IF((V ar_Flag_E xe=TRUE) AND (S B47= F ALSE) AND (SW0A0.1=F ALSE)) THEN ZP_RSTOP_J(TRUE,"J1",3 ,2,H3FF ,H1,V ar_Result) ;(* Performs remote STOP *) END_IF; IF(V ar_Result[ 0]=TRUE)THEN (* Execution fini shed *) IF(V ar_Result[ 1]=F ALSE)T HEN (* [...]

  • Страница 255

    5.4 Network Dedicated Instruction 5.4.20 RTMRD instruction 5-205 Z_RT MR D_J , Z _RT MR D_U 5 MODULE DEDICA TED INSTRUCTION Z_RTMRD_J, Z_RTMRD_U 5.4.20 R TMRD instruction Z_ RT M R D _ J, Z _ RT M R D _ U *1: Local devices and file registe rs per program cannot be used as setting dat a. Z(P)_RTMRD_J Z(P)_RTMRD_U P: Executing condition : indicates a[...]

  • Страница 256

    5-206 5.4 Network Dedicated Instruction 5.4.20 RTMRD instruction Z_RTMRD_J, Z_R TMRD_U Fun c tion This instruction reads clock data fro m a CPU module on another st ation. Pre c aut i on s This instruction is applicable to the QJ71LP21 or QJ71BR1 1 with the function version B or later . Program Example The following program reads out clock data fro[...]

  • Страница 257

    5.4 Network Dedicated Instruction 5.4.21 RTMWR instruction 5-207 Z_RTMWR_J, Z_R TMWR_U 5 MODULE DEDICA TED INSTRUCTION Z_R TMWR_J, Z_R TMWR_ U 5.4.21 R TMWR instruction Z_ RT M W R _ J , Z _ RT M W R _U Z(P)_RTMWR_J Z(P)_RTMWR_U P: Executing condition : indicates any of the follo wing instruct ions. Z_ RTMW R_ J ZP _RT MWR _J Z_ RTMW R_ U ZP _RT MW[...]

  • Страница 258

    5-208 5.4 Network Dedicated Instruction 5.4.21 RTMWR instruction Z_RTMWR_J, Z_RTMWR_U *1: Local devices and file registers per program cannot be used as setting data. Fun c tion This instruction writes clock dat a to a CPU module on another st ation. Pre c aut i on s This instruction is applicable to the QJ71LP21 or QJ71BR1 1 with the function vers[...]

  • Страница 259

    5.4 Network Dedicated Instruction 5.4.21 RTMWR instruction 5-209 Z_RTMWR_J, Z_R TMWR_U 5 MODULE DEDICA TED INSTRUCTION Z_R TMWR_J, Z_R TMWR_ U [ST] IF (V ar_Flag_Inst=TRUE) THEN MOV(TRUE,H38,V ar_ClockData[0 ]); (* Sets clock data *) MOV(TRUE,H0,V ar_ClockDat a[1]); MOV(TRUE,H8,V ar_ClockDat a[2]); MOV(TRUE,H3000,V a r_ClockData[3]) ; MOV(TRUE,H0,V[...]

  • Страница 260

    5-210 5.4 Network Dedicated Instruction 5.4.22 REMFR instruction Z_REMFR 5.4.22 REMFR instruction Z_REMFR *1: Local devices and file registers per program cannot be used as setting data. Z(P)_REMFR P: Executing conditi on : indicates any of th e following instruction s. Z_REMFR ZP_REMFR Input argume nt EN: Executing condit ion :Bit Jn*: T arget n e[...]

  • Страница 261

    5.4 Network Dedicated Instruction 5.4.22 REMFR instruction 5-211 Z_REMFR 5 MODULE DEDICA TED INSTRUCTION Z_REMF R Fun c tion This instruction reads data from the buf fer memory of an i nte lligent function module to the host station’ s word device (startin g from ) on the intelligent device station/remote I/O station. Program Example The followin[...]

  • Страница 262

    5-212 5.4 Network Dedicated Instruction 5.4.23 REMTO instruction Z_REMTO 5.4.23 REMT O instruction Z_REMT O *1: Local devices and file registers per program cannot be used as setting data. Z(P)_REMTO P: Executing condition : indicates any of th e following instruction s. Z_REMTO ZP_REMTO Input argume nt EN: Executing condit ion :Bit Jn*: Network nu[...]

  • Страница 263

    5.4 Network Dedicated Instruction 5.4.23 REMTO instruction 5-213 Z_REMTO 5 MODULE DEDICA TED INSTRUCTION Z_REMT O Fun c tion This instruction writes data to the buffer memory of an inte lligent function module on the intelligent device station/remote I/O station. Program Example The following program make s the A/D conversion enable setting on chan[...]

  • Страница 264

    5-214 5.4 Network Dedicated Instruction 5.4.24 CCPASET instruction G_CCP ASET 5.4.24 CCP ASET instruction G_CCP ASET *1: Local devices and file registers per program cannot be used as setting data. Fun c tion This instruction sets parameters for master/local module (master st ation). G(P)_CCP ASET P: Executing condition : indicates any of th e foll[...]

  • Страница 265

    5.4 Network Dedicated Instruction 5.4.24 CCPASET instruction 5-215 G_CCP ASET 5 MODULE DEDICA TED INSTRUCTION G_CCP ASET Contro l Data Device Item Setting data Setting range Setting side [0] Completion status The instruction completion status is stored. 0 : Normal completion Other than 0 : Error completion (error code) -S y s t e m [1] Setting flag[...]

  • Страница 266

    5-216 5.4 Network Dedicated Instruction 5.4.24 CCPASET instruction G_CCP ASET (1) Net work configura tion setting da ta Set the network configuration settings when network configuration setting da ta (b0) is enabled in the setting flag ( [1]). (2) Reserved sta tion specification dat a Set the slav e station as the r eserved station w hen reserved s[...]

  • Страница 267

    5.4 Network Dedicated Instruction 5.4.24 CCPASET instruction 5-217 G_CCP ASET 5 MODULE DEDICA TED INSTRUCTION G_CCP ASET (3) Error invalid st ation setting dat a Set the slave st ation as the error invalid st ation when error invalid station setting da ta(b2) is enabled in t he setting f lag ( [1]) *1 : Reserved station specification has a priority[...]

  • Страница 268

    5-218 5.4 Network Dedicated Instruction 5.4.24 CCPASET instruction G_CCP ASET P rogram E xamp l e The following program sets pa rameters for master st ation of network No.1 when V ar_Flag _Exe turns ON. (T ot al number of slave st ations is 3.) [S tructured ladder/FBD] P er f orms w r i t i ng T urns execut i on fl ag O FF Set contro l data P roces[...]

  • Страница 269

    5.4 Network Dedicated Instruction 5.4.24 CCPASET instruction 5-219 G_CCP ASET 5 MODULE DEDICA TED INSTRUCTION G_CCP ASET [ST] IF( V ar_Flag_Exe = TRUE ) (* Execution flag *) MOV( TRUE, H107, V ar_ControlData [1]); (* Sets control dat a *) MOV( TRUE, 3, V ar_ControlData[2]); MOV( TRUE, 0, V ar_ControlData[3]); (* Sets data of network configuration s[...]

  • Страница 270

    5-220 5.4 Network Dedicated Instruction 5.4.25 OPEN instruction ZP_OPEN 5.4.25 OPEN instruction ZP_OPEN *1: Local devices and file registers per program cannot be used as setting data. F unct i on This instruction establishes (o pens) a connection with exte rnal device for data communicatio n. ZP_OPEN Executing condition : indicates the followin g [...]

  • Страница 271

    5.4 Network Dedicated Instruction 5.4.25 OPEN instruction 5-221 ZP_OPEN 5 MODULE DEDICA TED INSTRUCTION ZP_OPE N Control Data Device Item Setting data Setting range Setting side [0] Execution type/ Completion type S pecify whethe r to use the parameter v alues set by GX Works2 or the setting va lues of the following c ontrol dat a ( [2] to [9] ) at[...]

  • Страница 272

    5-222 5.4 Network Dedicated Instruction 5.4.25 OPEN instruction ZP_OPEN P rogram E xamp l e The following program o pens the connection 1 fo r TCP/IP communication using the Active open process. (The I/O signals of the Ethernet module are X/Y0 0 to X/Y1F) [Structured ladder/FBD] *1 : For divisions of and in the program, is nec essary when the [Open[...]

  • Страница 273

    5.4 Network Dedicated Instruction 5.4.25 OPEN instruction 5-223 ZP_OPEN 5 MODULE DEDICA TED INSTRUCTION ZP_OPE N [ST] IF(SM400=TRUE)THEN (* Always ON *) MOV(TRUE,U0G 20480,K4M 0); (* Open completed sig nal/connection 1 open co mpletion signal *) MOV(TRUE,U0G 20482,K4M 20); (* Open request sign al/connection 1 open request signal *) END_IF; IF(V a[...]

  • Страница 274

    5-224 5.4 Network Dedicated Instruction 5.4.26 CLOSE instruction ZP_CLOSE 5.4.26 CLOSE instruction ZP_CLOSE *1: Local devices and file registers per program cannot be used as setting data. F unct i on This instruction shuts of f (closes) a connection with extern al device during dat a communication. Control Data ZP_CLOSE Executing condition : indic[...]

  • Страница 275

    5.4 Network Dedicated Instruction 5.4.26 CLO SE instruction 5-225 ZP_CLOSE 5 MODULE DEDICA TED INSTRUCTION ZP_CLOSE P rogram E xamp l e The following program closes the co nnection 1. (The I/O signals of the Ethernet module are X/Y00 to X/Y1F) [Structured ladder/FBD] Connect i on 1 c l ose t i m i ng T urns execut i on fl ag O N T urns norma l comp[...]

  • Страница 276

    5-226 5.4 Network Dedicated Instruction 5.4.26 CLOSE instruction ZP_CLOSE [ST] IF(V ar_Flag _Open=TRUE)THEN (* Connection 1 ope n completion signal *) PLF(TRUE,V ar_F lag_CloseTiming); (* Conn ection 1 clos e timing *) END_IF; IF((V ar_Flag_C loseT iming=TRUE) AN D (V ar_Flag_Ope nOK=TRUE))TH EN (* Connection 1 close timing/o pen instruction normal[...]

  • Страница 277

    5.4 Network Dedicated Instruction 5.4.27 BUFRCV instruction 5-227 ZP_BUFRCV 5 MODULE DEDICA TED INSTRUCTION ZP_BUFRCV 5.4.27 BUFRCV instruction ZP_BUFRCV *1: Local devices and file registe rs per program cannot be used as setting dat a. F unct i on This instruction reads receive dat a from exte rnal device in fixed buffer communication. This instru[...]

  • Страница 278

    5-228 5.4 Network Dedicated Instruction 5.4.27 BUFRCV instruction ZP_BUFRCV Control Data Device Item Setting data Setting range Setting side [0] System ar ea –– – [1] Completion s tatus The instr uction compl etion st atus is s tored. 0 : Normal comp letion Other than 0 : Error completion (error code) – System Device Item Setting data Setti[...]

  • Страница 279

    5.4 Network Dedicated Instruction 5.4.27 BUFRCV instruction 5-229 ZP_BUFRCV 5 MODULE DEDICA TED INSTRUCTION ZP_BUFRCV P rogram E xamp l e The following program reads ou t receive data from the fixed buf fer of the connection 1. (The I/O signals of the Ethernet module are X/Y00 to X/Y1F) [Structured ladder/FBD] Connect i on 1 open comp l et i on s i[...]

  • Страница 280

    5-230 5.4 Network Dedicated Instruction 5.4.27 BUFRCV instruction ZP_BUFRCV [ST] IF(SM400=TRUE)THEN (* Always ON *) MOV(TRUE,U0G20480,K4M0); (* Open complet ion signal/connec tion 1 open complet ion signal *) MOV(TRUE,U0G20482,K4M20); (* Open request sig nal/connection 1 open request signal *) MOV(TRUE,U0G20485,K4M40); (* Fixed buf fer receive s[...]

  • Страница 281

    5.4 Network Dedicated Instruction 5.4.28 BUF RCVS instruction 5-231 Z_BUFRCVS 5 MODULE DEDICA TED INSTRUCTION Z_BUFRCV S 5.4.28 BUFRCVS instruction Z_BUFRCVS *1: Local devices and file registe rs per program cannot be used as setting dat a. Z_BUFRCVS indicates t he following instruction. Z_BUFRCVS Input argument EN: Executing condition :Bit Un*: S [...]

  • Страница 282

    5-232 5.4 Network Dedicated Instruction 5.4.28 BUFRCVS instruction Z_BUFRCVS F unct i on This instruction reads receive dat a from external device in fixe d buffer communication. This instruction is used in an interrupt prog ram. P rogram E xamp l e The following program reads receive data from the fixed buf fer of the connection 2. (The I/O signal[...]

  • Страница 283

    5.4 Network Dedicated Instruction 5.4.29 BUFSND instruction 5-233 ZP_BUFSND 5 MODULE DEDICA TED INSTRUCTION ZP_BUFSND 5.4.29 BUFSND instruction ZP_BUFSND *1: Local devices and file registe rs per program cannot be used as setting dat a. F unct i on This instruction sends da ta to extern al device in fixed buf fer communication. ZP_BUFSND Executing [...]

  • Страница 284

    5-234 5.4 Network Dedicated Instruction 5.4.29 BUFSND instruction ZP_BUFSND Control Data (1) Send dat a Device Item Setting data Setting range Setting side [0] System ar ea –– – [1] Completion s tatus The instr uction compl etion st atus is s tored. 0 : Normal comp letion Other than 0 : Error completion (error code) – System Device Item Set[...]

  • Страница 285

    5.4 Network Dedicated Instruction 5.4.29 BUFSND instruction 5-235 ZP_BUFSND 5 MODULE DEDICA TED INSTRUCTION ZP_BUFSND P rogram E xamp l e The following p rogram send s data from the fix ed buffer of the conn ection 1. (The I/O signals of the Ethernet module are X/Y00 to X/Y1F) [Structured ladder/FBD] Send i nstruct i on 1 PL S Sets send data Sets d[...]

  • Страница 286

    5-236 5.4 Network Dedicated Instruction 5.4.29 BUFSND instruction ZP_BUFSND [ST] IF((X19=TRUE) AND (V ar _Flag_ Open=TRUE))THEN (* Initialization normal completion sig nal/connection 1 open completio n signal*) PLS(TRUE,V ar_Flag_In st); (* Send instruction 1PLS *) END_IF; IF(V ar_Flag_In st=TRUE)THEN (* Send instruction 1PLS *) MOV(TRUE,3,D300); ([...]

  • Страница 287

    5.4 Network Dedicated Instruction 5.4.30 ERRCLR instruction 5-237 ZP_ERRCLR 5 MODULE DEDICA TED INSTRUCTION ZP_ERRCLR 5.4.30 ERRCLR instruction ZP_ERRCLR *1: Local devices and file registe rs per program cannot be used as setting dat a. F unct i on This instruction turns OFF the LED on Ethernet module and clears error informa tion stored in the buf[...]

  • Страница 288

    5-238 5.4 Network Dedicated Instruction 5.4.30 ERRCLR instruction ZP_ERRCLR Control Data P rogram E xamp l e The following program clears the open error cod e of the connection 1. (The I/O signals of the Ethernet module are X/Y0 0 to X/Y1F) [Structured ladder/FBD] Device Item Setting data Setting range Setting side [0] System ar ea –– – [1] C[...]

  • Страница 289

    5.4 Network Dedicated Instruction 5.4.30 ERRCLR instruction 5-239 ZP_ERRCLR 5 MODULE DEDICA TED INSTRUCTION ZP_ERRCLR [ST] IF((V a r_Flag_Inst=TRUE) AND (V ar_Flag_Exe=F ALSE))THEN MOVP(TRUE,H1, V ar_ControlData[2]); (* Sets clear target *) MOVP(TRUE,H0,V ar_ControlData[3]); (* Set s clear function *) SET(TRUE,V ar_Flag_ Exe); (* Turns execution fl[...]

  • Страница 290

    5-240 5.4 Network Dedicated Instruction 5.4.31 ERRRD instruction ZP_ERRRD 5.4.31 ERRRD instruction ZP_ERRRD *1: Local devices and file registers per program cannot be used as setting data. F unct i on This instruction reads the error informa tion stored in the buf fer memory of the Ethernet mod ule. ZP_ERRRD Executing conditio n : indicates the fol[...]

  • Страница 291

    5.4 Network Dedicated Instruction 5.4.31 ERRRD instruction 5-241 ZP_ERRRD 5 MODULE DEDICA TED INSTRUCTION ZP_ERRRD Control Data P rogram E xamp l e The following program read s the open error co de of the connection 1. (The I/O signals of the Ethernet module are X/Y00 to X/Y1F) [Structured ladder/FBD] Device Item Setting data Setting range Setting [...]

  • Страница 292

    5-242 5.4 Network Dedicated Instruction 5.4.31 ERRRD instruction ZP_ERRRD [ST] IF((V ar_Flag_I nst=TRUE) A ND (V ar_Flag_Exe=F ALSE))THEN MOVP(TRUE,H1,V ar_ControlData[2]); (* Sets open e rror code of connection number 1 *) MOVP(TRUE,H0,V ar_ControlData[3]); (* Sets latest error information *) SET(TRUE,V ar_Flag_Exe); (* T urns execution fla g ON*)[...]

  • Страница 293

    5.4 Network Dedicated Instruction 5.4.32 UINI instruction 5-243 Z_UINI 5 MODULE DEDICA TED INSTRUCTION Z_UINI 5.4.32 UINI instruction Z_UINI *1: Local devices and file registe rs per program cannot be used as setting dat a. F unct i on Ethernet: This instruction rein itializes the Ethernet module. CC-Link IE Controller Network: For Universal mo del[...]

  • Страница 294

    5-244 5.4 Network Dedicated Instruction 5.4.32 UINI instruction Z_UINI Control Data (1) Ethernet Device Item Setting data Setting range Setting side [0] System ar ea –– – [1] Completion s tatus The instr uction compl etion st atus is s tored. 0 : Normal comp letion Other than 0 : Error completion (error code) – System [2] Modificat ion spec[...]

  • Страница 295

    5.4 Network Dedicated Instruction 5.4.32 UINI instruction 5-245 Z_UINI 5 MODULE DEDICA TED INSTRUCTION Z_UINI (2) CC-link IE Controller Network The UINI instru ction can be executed on l y once. The UINI instruction cann ot be executed again after d etermination of station num ber . (It caused an error completio n.) However , in the case of the UIN[...]

  • Страница 296

    5-246 5.4 Network Dedicated Instruction 5.4.32 UINI instruction Z_UINI P rogram E xamp l e The following program sets the st ation number 2. The following is an example for Ethernet. [S tructured ladder/FBD] [ST] IF (V ar_Flag_Inst=TRUE) THEN MOV(TRUE,H1,V ar_ControlData[2]) ; (* Set s change t arget *) MOV(TRU E,ZR0,V ar_Contr olData[3]);(* Sets h[...]

  • Страница 297

    5.4 Network Dedicated Instruction 5.4.33 MRECV instruction 5-247 ZP_MRECV 5 MODULE DEDICA TED INSTRUCTION ZP_MRECV 5.4.33 MRECV instruction ZP_MRECV *1: Local devices and file registe rs per program cannot be used as setting dat a. F unct i on This instruction re ads rece ived e-mail. ZP_MRECV Executing condition : indicates t he following instruct[...]

  • Страница 298

    5-248 5.4 Network Dedicated Instruction 5.4.33 MRECV instruction ZP_MRECV Control Data Device Item Setting data Setting range Setting side [0] Execution/Er ror comple tion type Error comple tion type (b it 7) S pec ify the cloc k dat a setup st atus at the time of error co mpletion. 0: Clock data at the time of error completion is not set in the ar[...]

  • Страница 299

    5.4 Network Dedicated Instruction 5.4.33 MRECV instruction 5-249 ZP_MRECV 5 MODULE DEDICA TED INSTRUCTION ZP_MRECV *1 : The following table shows the processing that depends on the selection of the execution type after executing the MRECV instruction. [12] to [15] Clock dat a (set only wh en errors occ ur) Clock data at the time of error completi o[...]

  • Страница 300

    5-250 5.4 Network Dedicated Instruction 5.4.33 MRECV instruction ZP_MRECV P rogram E xamp l e The following program performs the e-mail receiving process by the receive instruction (X21) . (The I/O signals of the Ethernet module are X/Y0 0 to X/Y1F) [Structured ladder/FBD] Sets to read t h e fi rst ma il Sets to ad j ust data l engt h to t h at o f[...]

  • Страница 301

    5.4 Network Dedicated Instruction 5.4.33 MRECV instruction 5-251 ZP_MRECV 5 MODULE DEDICA TED INSTRUCTION ZP_MRECV [ST] IF (X21=TRUE) THEN SET(TRUE,V ar_Flag_ Exe); END_IF; IF((V a r_Flag_Exe=TRUE) AND (U0G9858.F=TRUE))THEN MOVP(TRUE,H200,V ar_ControlData[0]); (* Sets to inquire to server *) MOVP(TRUE,0,V ar_ControlData[2]); (* Sets to read the fi[...]

  • Страница 302

    5-252 5.4 Network Dedicated Instruction 5.4.34 MSEND instruction ZP_MSEND 5.4.34 MSEND instruction ZP_MSEND *1: Local devices and file registers per program cannot be used as setting data. F unct i on This instruction sends an e-mail. ZP_MSEND Executing condition : indicates the followin g instru ction. ZP_MSEN D Input argume nt EN: Executing condi[...]

  • Страница 303

    5.4 Network Dedicated Instruction 5.4.34 MSEND instruction 5-253 ZP_MSEND 5 MODULE DEDICA TED INSTRUCTION ZP_MSEND Control Data Device Item Setting data Setting range Setting side [0] Execution/ Error co mpletion type Send dat a form at Error comple tion type (bit 7) S pecify the clock data setup status at the t ime of error complet ion. 0: Clock d[...]

  • Страница 304

    5-254 5.4 Network Dedicated Instruction 5.4.34 MSEND instruction ZP_MSEND (1) Send dat a P rogram E xamp l e The following program performs e-mail sending process by the se nd instruction (X20). (The I/O signals of the Ethernet module are X/Y0 0 to X/Y1F) (1) Sen ding the data as an attached file [1 1] Clock set flag V alid/invalid status of the da[...]

  • Страница 305

    5.4 Network Dedicated Instruction 5.4.34 MSEND instruction 5-255 ZP_MSEND 5 MODULE DEDICA TED INSTRUCTION ZP_MSEND [ST] IF(X20=TRUE)THEN MOVP(TRUE,H800,V ar_ControlData[0]); (* Sets ASCII as send data format *) MOVP(TRUE,1,V ar_ControlData[2]); (* Sets tran smission destination number *) MOVP(TRUE,10,V ar_Contro lData[9]) ; (* Sets send data length[...]

  • Страница 306

    5-256 5.4 Network Dedicated Instruction 5.4.34 MSEND instruction ZP_MSEND (2) Sen ding the data as a text [S tructured ladder/FBD] Sets text as send data f ormat Sets send data l engt h Sets sub j ect l engt h Sets sub j ect Sets text Sends e - ma il Sets transm i ss i on dest i nat i on number N orma l comp l et i on E rror comp l et i on P rocess[...]

  • Страница 307

    5.4 Network Dedicated Instruction 5.4.34 MSEND instruction 5-257 ZP_MSEND 5 MODULE DEDICA TED INSTRUCTION ZP_MSEND [ST] IF(X20=TRUE)THEN MOVP(TRUE,H1000,V ar_ControlData[0]); (* Sets text as send dat a format *) MOVP(TRUE,1,V ar_ControlData[2]); (* Sets tran smission destination number *) MOVP(TRUE,16,V ar_Contro lData[9]) ; (* Sets send data lengt[...]

  • Страница 308

    5-258 MEMO[...]

  • Страница 309

    6 6-1 1 OVERVI EW 2 INSTRUCTION TA B L E S 3 CONFIGURA TION OF INSTRUCTIONS 4 HOW TO READ INSTRUCTIONS 5 MODULE DEDICA TED INSTRUCTION 6 PID CONTROL INSTRUCTION 7 SOCKET COMMUNICA T ION FUNCTION INSTRUCTION PID CONTROL INSTRUCTION 6.1 PID Control Instruc tion (Inexact Differential) . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2 6.2 PID Con[...]

  • Страница 310

    6-2 6.1 PID Control Instructi on (Inexact Differential) 6.1.1 PIDINIT instruction S_PIDINIT 6.1 PID Control Instruction (Inexact Dif ferential) 6.1.1 PIDINIT instruction S_PIDINIT F unct i on This instruct ion enables PID control by re gistering the PI D control data for the number of loops to be used to the CPU module in batch. S(P)_PIDINIT P: Exe[...]

  • Страница 311

    6.1 PID Control Instruct ion (Inexact Differential) 6.1.1 PIDINIT instruction 6-3 6 PID CONTROL INSTRUCTION S_PIDINIT S_PIDIN IT (1) PID contr ol data *1 : For the PID operational expressions to b e set for Operational expression selection, refer to MELSEC-Q/L/ QnA Programming Manual (PID Control Instructions). Device Data item Description Setting [...]

  • Страница 312

    6-4 6.1 PID Control Instructi on (Inexact Differential) 6.1.1 PIDINIT instruction S_PIDINIT Device Data item Description Setting range Setting side Processing when the setting data are outside the setting range With PID limits Without PID limits +8 MV lower limit (MVLL) Set the lower li mit for the manipulate d value (M V) calculated in PID operati[...]

  • Страница 313

    6.1 PID Control Instruct ion (Inexact Differential) 6.1.1 PIDINIT instruction 6-5 6 PID CONTROL INSTRUCTION S_PIDINIT S_PIDIN IT Device Data item Description Setting range Setting side Processing when the setting data are outside the setting range With PID limits Without PID limits +12 (Fixed value) – 00 U s e r – +13 Derivati ve gain (K D ) Se[...]

  • Страница 314

    6-6 6.1 PID Control Instructi on (Inexact Differential) 6.1.1 PIDINIT instruction S_PIDINIT m=(n-1) 14+2 n: number of loops P recautions The following t able shows the CPU modules applicab le to the PID control instructions (inexact dif ferential) and the PID control in structions (exact dif ferential). : Applicable, : Not applicable Device Data it[...]

  • Страница 315

    6.1 PID Control Instruct ion (Inexact Differential) 6.1.2 PIDCONT instruction 6-7 6 PID CONTROL INSTRUCTION S_PIDCONT S_PIDCONT 6.1.2 PIDCONT instruction S_PIDCONT F unct i on (1) This instruction measures sampling cycle and perfor ms PID oper ation at instruction execution. (2) This instruction performs PID oper ation based on the se t value (SV) [...]

  • Страница 316

    6-8 6.1 PID Control Instructi on (Inexact Differential) 6.1.2 PIDCONT instruction S_PIDCONT (1) I/O data *1 : For Process value after filtering (PVf), the val ue calculated based on the proces s value of input data are stored. For the operational expression, refer to MELSEC-Q/L/Q n A Programming Manual (PID Control Instructions). Device Data name D[...]

  • Страница 317

    6.1 PID Control Instruct ion (Inexact Differential) 6.1.2 PIDCONT instruction 6-9 6 PID CONTROL INSTRUCTION S_PIDCONT S_PIDCONT Device Data name Description Setting range Se tting side Processing when the setting data are out side the setting range With PID limits Without PID limits +15 Manual/ automatic selection MAN/ AUTO • Select whether the o[...]

  • Страница 318

    6-10 6.1 PID Control Instructi on (Inexact Differential) 6.1.2 PIDCONT instruction S_PIDCONT m=(n-1) 23+10 n: number of loops P recautions The following t able shows the CPU modules applicab le to the PID control instructions (inexact dif ferential) and the PID control in structions (exact dif ferential). : Applicable, : Not applicable Device Data [...]

  • Страница 319

    6.1 PID Control Instruct ion (Inexact Differential) 6.1.3 PIDSTOP instruction and PIDRUN instruction 6-11 6 PID CONTROL INSTRUCTION S_PIDSTOP , S_PIDRUN S_PIDSTOP , S_PIDRUN 6.1.3 PIDST OP instruction and PIDRUN instruction S_PIDSTOP , S_PIDRUN F unct i on (1) S(P)_PIDSTOP This instruction stop s the PID operatio n for th e loop number specified by[...]

  • Страница 320

    6-12 6.1 PID Control Instructi on (Inexact Differential) 6.1.4 PIDPRMW instruction S_PIDPRMW 6.1.4 PIDPRMW instruction S_PIDPRMW F unct i on This instruction changes the operation parameter o f the loop number specified by 'n' to the PID control data sto red in the devices st arting from the device number specified by . (1) PID c ontrol d[...]

  • Страница 321

    6.1 PID Control Instruct ion (Inexact Differential) 6.1.4 PIDPRMW instruction 6-13 6 PID CONTROL INSTRUCTION S_PIDPRMW S_PIDPRMW Device Data item Description Setting range Setting side Processing when the setting data are outside the setting range With PID limits Without PID limits +2 Proportional constant (K P ) Proportio nal gain of PID operation[...]

  • Страница 322

    6-14 6.1 PID Control Instructi on (Inexact Differential) 6.1.4 PIDPRMW instruction S_PIDPRMW Device Data item Description Setting range Setting side Processing when the setting data are outside the setting range With PID limits Without PID limits +8 MV change rate limit ( MVL) Set the variati on limit between th e previous MV and the presen t MV . [...]

  • Страница 323

    6.1 PID Control Instruct ion (Inexact Differential) 6.1.4 PIDPRMW instruction 6-15 6 PID CONTROL INSTRUCTION S_PIDPRMW S_PIDPRMW P recautions The following table shows the CPU modules applicab le to the PID control instructions (inexact diff erential) and th e PID control in structions (exact differential). : Applicable, : No t applicable CPU modul[...]

  • Страница 324

    6-16 6.2 PID Control Instruction (Exact Differential) 6.2.1 PIDINIT instruction PIDINIT 6.2 PID Control Instruction (Exact Dif ferential) 6.2.1 PIDINIT instruction PIDINIT F unct i on This instruct ion enables PID control by re gistering the PI D control data for the number of loops to be used to the CPU module in batch. PIDINIT(P) P: Executing con[...]

  • Страница 325

    6.2 PID Control Instruction (Exact Differential ) 6.2.1 PIDINIT instruction 6-17 PIDINIT 6 PID CONTROL INSTRUCTION PIDINIT (1) PID contr ol data *1 : For the PID operational expressions set for Ope rat ional expression selection, refer to MELSEC-Q/L/QnA Programming Manual (PID Control Instr uctions). Device Data item Description Setting range Setti[...]

  • Страница 326

    6-18 6.2 PID Control Instruction (Exact Differential) 6.2.1 PIDINIT instruction PIDINIT Device Data item Description Setting range Setting side Processing when the setting data are outside the setting range With PID limits Without PID limits +8 MV lower limit (MVLL) Set the lower li mit for the manipulate d value (M V) calculated in PID operation i[...]

  • Страница 327

    6.2 PID Control Instruction (Exact Differential ) 6.2.1 PIDINIT instruction 6-19 PIDINIT 6 PID CONTROL INSTRUCTION PIDINIT m=(n-1) 10+2 n: number of loops Device Data item Description Setting range Setting side Processing when the setting data are outside the setting range With PID limits Without PID limits Setting dat a for N o. 2 loop (d evice: +[...]

  • Страница 328

    6-20 6.2 PID Control Instruction (Exact Differential) 6.2.1 PIDINIT instruction PIDINIT P recautions The following t able shows the CPU modules applicab le to the PID control instructions (inexact dif ferential) and the PID control in structions (exact dif ferential). : Applicable, : No t applicable CPU module model Inexact differential Exact diffe[...]

  • Страница 329

    6.2 PID Control Instruction (Exact Differential ) 6.2.2 PIDCONT instruction 6-21 PIDCONT 6 PID CONTROL INSTRUCTION PIDCONT 6.2.2 PIDCONT instruction PIDCONT F unct i on (1) This instruction measures sa mpling cycle and performs PID operation at instruction execution. (2) This instruction perfor ms PID operation b ased on the set va lue (SV) and pro[...]

  • Страница 330

    6-22 6.2 PID Control Instruction (Exact Differential) 6.2.2 PIDCONT instruction PIDCONT (1) I/O data *1 : For process value after filtering (PVf), the value calculated based on the process value of input data are stored. For the operational expression, refer to MELSEC-Q/L/Q n A Programming Manual (PID Control Instructions). Device Data name Descrip[...]

  • Страница 331

    6.2 PID Control Instruction (Exact Differential ) 6.2.2 PIDCONT instruction 6-23 PIDCONT 6 PID CONTROL INSTRUCTION PIDCONT Device Data name De scriptio n Setting range Setting side Processing when the setting data are outside the setting range With PID limits Without PID limits +14 Manual manipulated value MV MAN • S tore the data output from the[...]

  • Страница 332

    6-24 6.2 PID Control Instruction (Exact Differential) 6.2.2 PIDCONT instruction PIDCONT m=(n-1) 18+10 n: number of loops Device Data name Description Setting range Setting side Processing when the setting data are outside the setting range With PID limits Without PID limits I/O data ar ea for No. 2 loop (dev ice: +28 to +45) +28 Set value SV The sa[...]

  • Страница 333

    6.2 PID Control Instruction (Exact Differential ) 6.2.2 PIDCONT instruction 6-25 PIDCONT 6 PID CONTROL INSTRUCTION PIDCONT P recautions The following table shows the CPU modules applicab le to the PID control instructions (inexact diff erential) and th e PID control in structions (exact differential). : Applicable, : No t applicable CPU module mode[...]

  • Страница 334

    6-26 6.2 PID Control Instruction (Exact Differential) 6.2.3 PIDSTOP instruction and PIDRUN instruction PIDSTOP , PIDRUN 6.2.3 PIDSTOP instruction and PIDRUN instruction PIDST OP , PIDRUN F unct i on (1) PIDSTOP(P) This instruction stops the PID operation for the loo p number specified by 'n'. (2) PIDRUN(P) This instruction starts the PID [...]

  • Страница 335

    6.2 PID Control Instruction (Exact Differential ) 6.2.4 PIDPRMW instruction 6-27 PIDPRMW 6 PID CONTROL INSTRUCTION PIDPRMW 6.2.4 PIDPRMW instruction PIDPRMW F unct i on This instruction changes th e operation p arameter of the loop number specified by 'n' to the PID control data sto red in the devices st arting from the device number spec[...]

  • Страница 336

    6-28 6.2 PID Control Instruction (Exact Differential) 6.2.4 PIDPRMW instruction PIDPRMW Device Data item Description Setting range Setting side Processing when the setting data are outside the setting range With PID limits Without PID limits +2 Proportional constant (K P ) Proportional gain of PID operation 1 to 10000 (unit: 0.01) 1 to 10000 (unit:[...]

  • Страница 337

    6.2 PID Control Instruction (Exact Differential ) 6.2.4 PIDPRMW instruction 6-29 PIDPRMW 6 PID CONTROL INSTRUCTION PIDPRMW P recautions The following table shows the CPU modules applicab le to the PID control instructions (inexact diff erential) and th e PID control in structions (exact differential). : Applicable, : No t applicable Device Data ite[...]

  • Страница 338

    6-30 MEMO[...]

  • Страница 339

    7 7-1 1 OVERVI EW 2 INSTRUCTION TA B L E S 3 CONFIGURA TION OF INSTRUCTIONS 4 HOW TO READ INSTRUCTIONS 5 MODULE DEDICA TED INSTRUCTION 6 PID CONTROL INSTRUCTION 7 SOCKET COMMUNICA TI ON FUNCTION INSTRUCTION SOCKET COMMUNICA TION FUNCTION INSTRUCTION 7.1 SOCOPEN Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 340

    7-2 7.1 SOCOPEN Instruction SP_SOCOPEN 7.1 SOCOPEN Instruction SP_SOCOPEN *1: Local devices and file registers per program cannot be used as setting data. F unct i on This instruction establishes a con nection. SP_SOCOPEN Executing condition : indicates the followin g instru ction. SP_SOCOPEN Input argume nt EN: Executing condit ion :Bit Un: Dummy [...]

  • Страница 341

    7.1 SOCOPEN Instruction 7-3 7 SOCKET COMMUNICA TI ON FUNCTION INSTRUCTION SP_SOCOPEN SP_SOCOPEN Control Data *1 : "Destination IP address" and "Destinati on po rt No" are neglected at Unpassive open. Precautions (1) Use the Built-in Ethernet port QCPU of which the function versio n is B or later and the first five digits of the [...]

  • Страница 342

    7-4 7.1 SOCOPEN Instruction SP_SOCOPEN Pro g ra m Ex a mpl e The following program opens the connection 1. [Structured ladder/FBD] [ST] IF((LDP(TRUE, V ar_Flag_Inst)) &(SD1282.0=F ALSE) &(SD1284.0= F ALSE) &(SD1288.A=TRUE))THEN MOVP(TRUE, H0, V ar_ControlDa ta[0] ); (* Sets execution type/completion type to 0 H *) SP_SOCOPEN(TRUE, "[...]

  • Страница 343

    7.2 SOCCLOSE Instruction 7-5 7 SOCKET COMMUNICA TI ON FUNCTION INSTRUCTION SP_SOCCLOSE SP_SOCCLOSE 7.2 SOCCLOSE Instruction SP_SOCCLOSE *1: Local devices and file registe rs per program cannot be used as setting dat a. F unct i on This instruction shut s of f a specified connection. SP_SOCCLOSE Executing condition : indicates t he following instruc[...]

  • Страница 344

    7-6 7.2 SOCCLOSE Instruction SP_SOCCLOSE Control Data Precautions (1) Use the Built-in Ethernet port QCPU of which th e function version is B or later and the first five digits of the serial number are '1 1012' or higher . (2) Use the LCPU other than L02SCPU and L02SCPU-P . Pro g ra m Ex a mpl e The following program shuts of f the connec[...]

  • Страница 345

    7.2 SOCCLOSE Instruction 7-7 7 SOCKET COMMUNICA TI ON FUNCTION INSTRUCTION SP_SOCCLOSE SP_SOCCLOSE [ST] IF(LDF(TRUE, SD1282.0)&(SD1 284.0=TRUE))THEN (* When ope n completion s ignal turns OF F *) PLS(TRUE, V ar_Flag ); (* Turns fla g ON *) END_IF; IF(((LDP(TR UE, V ar_Flag_Inst) & SD1282.0) OR V ar_Flag) & (NOT V ar_Flag _Exe)) THEN SP_[...]

  • Страница 346

    7-8 7.3 SOCRCV Instruction SP_SOCRCV 7.3 SOCRCV Instruction SP_SOCRCV *1: Local devices and file registers per program cannot be used as setting data. F unct i on This instruction reads receive dat a of a spec ified connection from the socke t communication receive data are a at the end process pe r formed af ter the instruction execution. SP_SOCRC[...]

  • Страница 347

    7.3 SOCRCV Instruction 7-9 7 SOCKET COMMUNICA TI ON FUNCTION INSTRUCTION SP_SOCRCV SP_SOCRCV Control Data Precautions (1) Use the Built-in Ethernet port QCPU of which the function versio n is B or later and the first five digits of the seri al number are '1 1012' or higher . (2) Use the LCPU other than L02SCPU and L0 2SCPU-P . Device Item[...]

  • Страница 348

    7-10 7.3 SOCRCV Instruction SP_SOCRCV Pro g ra m Ex a mpl e The following program reads dat a received fr om the external device. [Structured ladder/FBD] [ST] IF((V ar_Flag _Inst=TRUE ) &(SD 1282.0=TRUE) &(SD1286.0=TRUE) &(V ar_Re sult[0]=F ALSE) )THEN SP_SOCRCV (TRUE, "U0", 1, V ar_ ControlData, D500, V ar_Result); (* Reads d[...]

  • Страница 349

    7.4 SOCRCVS Instruction 7-11 7 SOCKET COMMUNICA TI ON FUNCTION INSTRUCTION S_SOCRCVS S_SOCRCVS 7.4 SOCRCVS Instruction S_SOCRCVS F unct i on This instruction reads rece ive data of a specified connection from the socket commu nication receive data ar ea. Control Data S_SOCRCVS Executing condition : indicates t he following instruction. S_SOCRCVS In[...]

  • Страница 350

    7-12 7.4 SOCRCVS Instruction S_SOCRCVS Precautions (1) Use the Built-in Ethernet port QCPU of which th e function version is B or later and the first five digits of the serial number are '1 1012' or higher . (2) Use the LCPU other than L02SCPU and L02SCPU-P . Pro g ra m Ex a mpl e The following program reads dat a received fr om the exter[...]

  • Страница 351

    7.5 SOCSND Instruction 7-13 7 SOCKET COMMUNICA TI ON FUNCTION INSTRUCTION SP_SOCSND SP_SOCSND 7.5 SOCSND Instruction SP_SOCSND *1: Local devices and file registe rs per program cannot be used as setting dat a. F unct i on This instruction sends dat a to the external de vice of a specified connection. SP_SOCSND Executing condition : indicates t he f[...]

  • Страница 352

    7-14 7.5 SOCSND Instruction SP_SOCSND Control Data Precautions (1) Use the Built-in Ethernet port QCPU of which th e function version is B or later and the first five digits of the serial number are '1 1012' or higher . (2) Use the LCPU other than L02SCPU and L02SCPU-P . Device Item Setting data Setting range Setting side [0] System area [...]

  • Страница 353

    7.5 SOCSND Instruction 7-15 7 SOCKET COMMUNICA TI ON FUNCTION INSTRUCTION SP_SOCSND SP_SOCSND Pro g ra m Ex a mpl e The following program sends dat a (1234, 5678, and 8901) to the external de vice using the socket communication function. [Structured ladder/FBD] [ST] IF((V ar_Flag_Inst=T RUE) &(SD1282.0=TRUE))THEN MOVP(TRUE, 6, V ar_SendDat a[0][...]

  • Страница 354

    7-16 7.6 SOCCINF Instruction SP_SOCCINF 7.6 SOCCINF Instruction SP_SOCCINF F unct i on This instruction reads connection in formation of a specified con nection. SP_SOCCINF Executing conditi on : indicates the followin g instru ction. SP_SOCCINF Input argume nt EN: Executing condit ion :Bit Un: Dummy ("U0") :S tring s1: Connection number [...]

  • Страница 355

    7.6 SOCCINF Instruction 7-17 7 SOCKET COMMUNICA TI ON FUNCTION INSTRUCTION SP_SOCCINF SP_SOCCINF Control Data Precautions (1) Use the Built-in Ethernet port QCPU of which the function versio n is B or later and the first five digits of the seri al number are '1 1012' or higher . (2) Use the LCPU other than L02SCPU and L0 2SCPU-P . Device [...]

  • Страница 356

    7-18 7.6 SOCCINF Instruction SP_SOCCINF Pro g ra m Ex a mpl e The following pr ogram reads conne ction information of the connection number 1 . [Structured ladder/FBD] [ST] IF(V ar_Flag_In st=TRUE)THEN SP_SOCCINF(TRUE, "U0", 1, V ar_ ControlData, V ar_Connection); (* Reads data from the connection number 1 *) END_IF; R eads data f ro m t [...]

  • Страница 357

    7.7 SOCCSET Instruction 7-19 7 SOCKET COMMUNICA TI ON FUNCTION INSTRUCTION SP_SOCCSET SP_SOCCSE T 7.7 SOCCSET Instruction SP_SOCCSET F unct i on This instruction changes th e IP address and port number of the external de vice of a specified connection. (Ava ilable only with a UDP/IP connection) SP_SOCCSET Executing condition : indicates t he follow[...]

  • Страница 358

    7-20 7.7 SOCCSET Instruction SP_SOCCSET Control Data Precautions (1) Use the Built-in Ethernet port QCPU of which th e function version is B or later and the first five digits of the serial number are '1 1012' or higher . (2) Use the LCPU other than L02SCPU and L02SCPU-P . Device Item Setting data Setting range Setting side [0] System ar [...]

  • Страница 359

    7.7 SOCCSET Instruction 7-21 7 SOCKET COMMUNICA TI ON FUNCTION INSTRUCTION SP_SOCCSET SP_SOCCSE T Pro g ra m Ex a mpl e The following p rogram chan ges the dest ination (des tination IP add ress and por t number) of the connection number 1 which is being open. [Structured ladder/FBD] [ST] IF((LDP(TRUE, V ar_Flag_Inst)) &(SD1282.0 =TRUE) THEN MO[...]

  • Страница 360

    7-22 7.8 SOCRMODE Instruction SP_SOCRMODE 7.8 SOCRMODE Instruction SP_SOCRMODE F unct i on This instruction changes the TCP rece ive mode (unavailable for a UDP connection) and receive data size. SP_SOCRMODE Executing conditi on : indicates the followin g instru ction. SP_SOCRMODE Input argume nt EN: Executing condit ion :Bit Un: Dummy ("U0&qu[...]

  • Страница 361

    7.8 SOCRMODE Instruction 7-23 7 SOCKET COMMUNICA TI ON FUNCTION INSTRUCTION SP_SOCRMODE SP_SOCRMODE Control Data *1: Unavailable for a UDP connection. Precautions (1) Use the Built-in Ethernet port QCPU of which the function versio n is B or later and the first five digits of the seri al number are '1 1012' or higher . (2) Use the LCPU ot[...]

  • Страница 362

    7-24 7.9 SOCRDATA Instruction S_SOCRDA T A 7.9 SOCRDA T A Instruction S_SOCRDA T A F unct i on This instruction reads dat a for the specified number of words from the socket communication receive data area of a spe cified connection, and stores it. S(P)_SOCRDA T A P: Executing condition : indicate s the followi ng instruct ions. S_SOCRDA T A SP_SOC[...]

  • Страница 363

    7.9 SOCRDATA Instruction 7-25 7 SOCKET COMMUNICA TI ON FUNCTION INSTRUCTION S_SOCRDA T A S_SOCRDA T A Control Data Precautions (1) Use the Built-in Ethernet port QCPU of which the function versio n is B or later and the first five digits of the seri al number are '1 1012' or higher . (2) Use the LCPU other than L02SCPU and L0 2SCPU-P . Pr[...]

  • Страница 364

    7-26 MEMO[...]

  • Страница 365

    8 BUIL T -IN I/O FUNCTI ON INSTRUCTI ON 9 DA T A LOGGING FUNCTION INSTRUCTION 10 SFC CONTROL INSTRUCTION I INDEX 8 8-1 8.1 Positioning Function Dedicated Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2 8.2 Counter Function Dedicated Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-18 BUIL T[...]

  • Страница 366

    8-2 8.1 Positioning Functi on Dedicated Instruction 8.1.1 IPPSTRT instruction IPPSTR T1, IPP STRT2 8.1 Positioning Function Dedicated Instruction 8.1.1 IPPSTRT instruction IPPSTR T1, IPPSTR T2 F unct i on This instruction specifies a data num ber to be exec uted for 'n' from the position ing data No. 1 to No. 10 which are prev iously set [...]

  • Страница 367

    8.1 Position ing Func tion Dedic ated Instru ction 8.1.2 IPDSTRT instruction 8-3 8 BUIL T -IN I/O FUNCTI ON INSTRUCTI ON IPDST RT1 , IPDSTR T2 IPDSTRT1, IPDSTRT2 8.1.2 IPDSTR T instruction IPDSTR T1, IPDSTR T2 F unct i on Regardless of "Positioning Data" No. 1 to No. 10 which are previou sly se t in GX Works2, this instruction st arts th [...]

  • Страница 368

    8-4 8.1 Positioning Functi on Dedicated Instruction 8.1.2 IPDSTRT instruction IPDSTRT1, IPDSTRT2 Control Data Pro g ra m Ex a mpl e The following program sets the following position ing dat a and sta rts the axis 1 wh en M0 turns ON. Device Item Setting data Setting range Setting side [0] Control system 1: Position ing control (AB S) 2: Positionin [...]

  • Страница 369

    8.1 Position ing Func tion Dedic ated Instru ction 8.1.2 IPDSTRT instruction 8-5 8 BUIL T -IN I/O FUNCTI ON INSTRUCTI ON IPDST RT1 , IPDSTR T2 IPDSTRT1, IPDSTRT2 [S tructured ladder/FBD] [ST] MOV(M0, 1, D0); MOV(M0, 1000, D1); MOV(M0, 1000, D2); MOV(M0, 0, D3); DMOV(M0, 20000, D4 ); DMOV(M0, 100000, D6); IPDSTRT1P(M0, D0 );[...]

  • Страница 370

    8-6 8.1 Positioning Functi on Dedicated Instruction 8.1.3 IPSIMUL instruction IPSIMUL 8.1.3 IPSIMUL instruction IPSIMUL F unct i on This instruction simult aneously sta rts the pos itioning of the axis 1 positioning da ta numbe r specified by n1 and the axis 2 positio ning dat a number specified by n2. Pro g ra m Ex a mpl e The following program si[...]

  • Страница 371

    8.1 Position ing Func tion Dedic ated Instru ction 8.1.4 IPOPR instruction 8-7 8 BUIL T -IN I/O FUNCTI ON INSTRUCTI ON IPOPR1, IPOPR2 IPOPR1, IPOPR2 8.1.4 IPOPR instruction IPOPR1, IPOPR2 F unct i on This instruction st arts the OPR of which type is specified by on the specified axis (refer to the following). • IPOPR1(P): Axis 1 • IPOPR2(P): Ax[...]

  • Страница 372

    8-8 8.1 Positioning Functi on Dedicated Instruction 8.1.4 IPOPR instruction IPOPR1, IPOPR2 Pro g ra m Ex a mpl e The following program start s the machine OPR of the axis 1 when M0 turns ON. [S tructured ladder/FBD] [ST] MOV(M0, 1, D0); DMOV(M0, 0, D1); IPOPR1P(M0, D0) ; Device Item Setting data D0 OPR type Machine OPR D1, D2 Standby address 0 (Ign[...]

  • Страница 373

    8.1 Position ing Func tion Dedic ated Instru ction 8.1.5 IPJOG instruction 8-9 8 BUIL T -IN I/O FUNCTI ON INSTRUCTI ON IPJOG1, IPJOG2 IPJOG1, IPJOG2 8.1.5 IPJOG instruction IPJOG1, IPJOG2 F unct i on This instruction st arts the JOG operation of the specified axis (ref er to the following). • IPJOG1: Axis 1 • IPJOG2: Axis 2 The JOG operation is[...]

  • Страница 374

    8-10 8.1 Positioning Functi on Dedicated Instruction 8.1.5 IPJOG instruction IPJOG1, IPJOG2 Control Data Pro g ra m Ex a mpl e The following program start s the forward JOG operation when M0 tur ns ON, and start s the reverse JOG operation when M1 turns ON. [S tructured ladder/FBD] [ST] DMOV(SM402, 1000 0, D0); MOV(SM402, 1000, D2); MOV(SM402, 1000[...]

  • Страница 375

    8.1 Position ing Func tion Dedic ated Instru ction 8.1.6 IPABRST instruction 8-11 8 BUIL T -IN I/O FUNCTI ON INSTRUCTI ON IP ABRST1, I P ABRST2 IP ABRST1, IP ABRST2 8.1.6 IP ABRST instruction IP ABRST1, IP ABRST2 F unct i on This instruction executes the absolute po sition restoration of the specified axis (refer to the following) by communicating [...]

  • Страница 376

    8-12 8.1 Positioning Functi on Dedicated Instruction 8.1.6 IPABRST instruction IP ABRST 1, IP ABRS T2 (2) Signals exported to servo amplifier Pro g ra m Ex a mpl e This instruction executes the absolute position restoration of the axis 1 when M0 turns ON. • X20 to X22: Signals imported from the servo amplifier • Y30 to Y32: Signals exported to [...]

  • Страница 377

    8.1 Position ing Func tion Dedic ated Instru ction 8.1.7 IPSTOP instruction 8-13 8 BUIL T -IN I/O FUNCTI ON INSTRUCTI ON IPSTOP1, IPSTOP2 IPSTOP1, IPST OP2 8.1.7 IPST OP instruction IPST OP1, IPST OP2 F unct i on This instruction stops th e positioning of t he specified axis (r ef er to the following). • IPST OP1: Axis 1 • IPST OP2: Axis 2 Pro [...]

  • Страница 378

    8-14 8.1 Positioning Functi on Dedicated Instruction 8.1.8 IPSPCHG instruction IPSPCHG1, IPSP CHG2 8.1.8 IPSPCHG instruction IPSPCHG1, IPSPCHG2 F unct i on This instruction changes the sp eed of the specified axis (ref er to the following) using the acceleration/deceler ation time at speed change, deceleration stop time a t speed change , and new s[...]

  • Страница 379

    8.1 Position ing Func tion Dedic ated Instru ction 8.1.8 IPSPCHG instruction 8-15 8 BUIL T -IN I/O FUNCTI ON INSTRUCTI ON IPSPCHG1, IPSPCHG2 IPSPCHG1, IPSPCHG2 Pro g ra m Ex a mpl e The following program change s the speed of the axis 1 when M0 turns ON. [S tructured ladder/FBD] [ST] MOV(M0, 2000, D0); MOV(M0, 1000, D1); DMOV(M0, 20000, D2 ); IPSPC[...]

  • Страница 380

    8-16 8.1 Positioning Functi on Dedicated Instruction 8.1.9 IPTPCHG instruction IPTPCHG1, IPTPCHG2 8.1.9 IPTPCHG instruction IPTPCHG1, IPTPCHG2 F unct i on This instruction changes the position of the specifie d axis (refer to the following) to the ne w targ et position spec ified by . • IPTPCHG1(P): Axis 1 • IPTPCHG2(P): Axis 2 Control Data IPT[...]

  • Страница 381

    8.1 Position ing Func tion Dedic ated Instru ction 8.1.9 IPTPCHG instruction 8-17 8 BUIL T -IN I/O FUNCTI ON INSTRUCTI ON IPTPCHG1, IPTPCH G2 IPTPCHG1, IPTPCHG2 Pro g ra m Ex a mpl e The following program changes the target position of th e axis 1 to 2000 when M0 turns ON. [S tructured ladder/FBD] [ST] IPTPCHG1P(M0, 2000);[...]

  • Страница 382

    8-18 8.2 Counter Function Dedicated Instruction 8.2.1 ICCNTRD instruction ICCNTRD1, ICCNTRD2 8.2 Counter Function Dedicated Instruction 8.2.1 ICCNTRD instruction ICCNTRD1, ICCNTRD2 F unct i on This instruction stores a value at the time of instruction execution to the current value of the specified CH (refer to the following). Pro g ra m Ex a mpl e[...]

  • Страница 383

    8.2 Counter Function Dedicated Instruction 8.2.2 ICRNGWR instruction 8-19 8 BUIL T -IN I/O FUNCTI ON INSTRUCTI ON ICRNGWR1, IC RNGWR2 ICRNGWR1, IC RNGWR2 8.2.2 ICRNGWR instruction ICRNGWR1, ICRNGWR2 F unct i on This instruction sets the ring co unter lower limit value and the ring counter up per limit value of the specified CH (refer to the followi[...]

  • Страница 384

    8-20 8.2 Counter Function Dedicated Instruction 8.2.2 ICRNGWR instruction ICRNGWR1, ICRNGWR2 Pro g ra m Ex a mpl e The following pr ogram set s -100000 for the ring counter lower limit valu e and 100000 fo r the ring counter upper limit value of CH 1 when M0 turns ON. [S tructured ladder/FBD] [ST] ICRNGWR1P(M0, -10 0000, 100000);[...]

  • Страница 385

    8.2 Counter Function Dedicated Instruction 8.2.3 ICPREWR instruction 8-21 8 BUIL T -IN I/O FUNCTI ON INSTRUCTI ON ICPREWR1, ICPREWR2 ICPREWR1, ICPREW R2 8.2.3 ICPREWR instruction ICPREWR1, ICPREWR2 F unct i on This instruction sets a preset value of the specified CH (ref er to the fo llowing). • ICPREWR1(P): CH1 • ICPREWR2(P): CH2 Pro g ra m Ex[...]

  • Страница 386

    8-22 8.2 Counter Function Dedicated Instruction 8.2.4 ICLTHRD instruction ICL THRD1, ICL THRD2 8.2.4 ICL THRD instruction ICL THRD1, ICL THRD2 F unct i on This instruction stores a latch count value n of the specified CH (refer to the following) to . • ICL THRD1(P): CH1 • ICL THRD2(P): CH2 Pro g ra m Ex a mpl e The following program stores the [...]

  • Страница 387

    8.2 Counter Function Dedicated Instruction 8.2.5 ICSMPRD instruction 8-23 8 BUIL T -IN I/O FUNCTI ON INSTRUCTI ON ICSMPRD1, ICSMPRD2 ICSMPRD1, IC SMPRD2 8.2.5 ICSMPRD instruction ICSMPRD1, ICSMPRD2 F unct i on This instruction stores a sampling count value of th e specified CH (refer to the following) to . • ICSMPRD1(P): CH1 • ICSMPRD2(P): CH2 [...]

  • Страница 388

    8-24 8.2 Counter Function Dedicated Instruction 8.2.6 ICCOVWR instruction ICCOVWR1, IC COVWR2 8.2.6 ICCOVWR instruction ICCOVWR1, ICCOVWR2 F unct i on This instructio n stores a co incidence ou tput No. n point of the sp ecified CH (refe r to the following). • ICCOVWR1(P): CH1 • ICCOVWR2(P): CH2 Pro g ra m Ex a mpl e The following p rogram set [...]

  • Страница 389

    8.2 Counter Function Dedicated Instruction 8.2.7 ICFCNT instruction 8-25 8 BUIL T -IN I/O FUNCTI ON INSTRUCTI ON ICFCNT1, IC FCNT2 ICFCNT1, ICFCNT2 8.2.7 ICFCNT instruction ICFCNT1, ICFCNT2 F unct i on This instruct ion measures a frequency of the specified CH (refer to the following) a ccording to the settings such as the frequency me asurement un[...]

  • Страница 390

    8-26 8.2 Counter Function Dedicated Instruction 8.2.8 ICRCNT instruction ICRCNT1, ICRCNT2 8.2.8 ICRCNT instruction ICRCNT1, ICRCNT2 F unct i on This instruction measures a rota tion speed of the specified CH (refer to th e following) according to the settings such as the rot ation speed measurement unit time settin g. • ICRCNT1: CH1 • ICRCNT2: [...]

  • Страница 391

    8.2 Counter Function Dedicated Instruction 8.2.9 ICPLSRD instruction 8-27 8 BUIL T -IN I/O FUNCTI ON INSTRUCTI ON ICPLSRD1, ICPLSRD2 ICPLSRD1, ICP LSRD2 8.2.9 ICPLSRD instruction ICPLSRD1, ICPLSRD2 F unct i on This instruction stores a measur ed pulse value of the specified CH (refer to the followin g) to . • ICPLSRD1(P): C H1 • ICPLSRD2(P): C [...]

  • Страница 392

    8-28 8.2 Counter Function Dedicated Instruction 8.2.10 ICPWM instruction ICPWM1, I CPWM2 8.2.10 ICPWM instruction ICPWM1, ICPWM2 F unct i on This instruction output s a PWM waveform of the specified CH (refer to the following). • ICPWM1: CH1 • ICPWM2: CH2 The PWM waveform with the ON time ( ) and the cycle time ( ) is output from the coincidenc[...]

  • Страница 393

    8.2 Counter Function Dedicated Instruction 8.2.10 ICPWM instruction 8-29 8 BUIL T -IN I/O FUNCTI ON INSTRUCTI ON ICPWM1, ICPWM2 ICPWM1, ICP WM2 Pro g ra m Ex a mpl e The following program outputs the PWM waveform with 1µs ON time and 5µs cycle time from CH 1 while M0 is ON. [S tructured ladder/FBD] [ST] ICPWM1(M0, 10, 50);[...]

  • Страница 394

    8-30 MEMO[...]

  • Страница 395

    9 9-1 8 BUIL T-IN I/O FUNCTION INSTRUCTION 9 DA TA LOGGING FUNCTION INSTRUCTION 10 SFC CONTROL INSTRUCTION I INDEX 9.1 LOGTRG Instruction, LOGTRGR Instruction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-2 DA T A LOGGING FUNCTION INSTRUCTION[...]

  • Страница 396

    9-2 9.1 LOGTRG Instruction, LOGTRGR Instruction LOGTRG 9.1 LOGTRG Instruction, LOGTRGR Instruction LOGTRG LOGTRG LOGTRGR Executing condition : indicates any of the following instructions. LOGTRG LOGTRGR Input argument EN: Executing condit ion :Bit n: Data logging co nfiguration number :ANY16 Output argument ENO: Execution result :Bit Setting data I[...]

  • Страница 397

    9.1 LOGTRG Instruction, LOGTRGR Instruction 9-3 9 DA TA LOGGING FUNCTION INSTRUCTION LOGTRG LOGTRG F unct i on LOGTRG (1) The LOGTRG instruction ge nerates a trigger in the tr igger logging of the dat a logging configuration number sp ecified by 'n'. (2) A value from 1 to 10 is set for 'n'. (3) When the LOGTRG instruction is exe[...]

  • Страница 398

    9-4 9.1 LOGTRG Instruction, LOGTRGR Instruction LOGTRG Pro g ra m Ex a mpl e The following program executes the LOGTRG instruction on the data log ging configuration No. 1 when X0 turns ON, and resets the trig ger condition with the LOGTRGR instruction when X1 tur ns ON. [S tructured ladder/FBD] [ST] LOGTRG(X0,1); LOGTRGR(X1,1);[...]

  • Страница 399

    10 10-1 8 BUIL T-IN I/O FUNCTION INSTRUCTION 9 DA T A LOGGING FUNCTION INSTRUCTION 10 SFC CONTROL INSTRUCTION I INDEX 10.1 SFC Control Instru ction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-2 SFC CONTROL INSTRUCTION[...]

  • Страница 400

    10-2 10.1 SFC Control Instruction 10.1.1 SFCSCOMR instruction S_SFCSCOMR 10.1 SFC Control Instruction 10.1.1 SFCSCOMR instruction S_SFCSCOMR *1: Local device cannot be used . S(P)_SFCSCOMR P: Executing condition : indicates any of the following instructions. S_SFCSCOMR SP_SFCSCOMR Input argume nt EN: Executing condition :Bit n1: Bl ock No. of an SF[...]

  • Страница 401

    10.1 SFC Control Instruction 10.1.1 SFCSCOMR instruction 10-3 10 SFC CONTROL INSTRUCTION S_SFCSCOMR S_SFCSCOMR F unct i on This function read s step comments being activate d in the SFC block specified at , by the number of comment specified at , and stores t hose to the device number of af ter specified at . Caution • For High Performance model [...]

  • Страница 402

    10-4 10.1 SFC Control Instruction 10.1.2 SFCTCOMR instruction S_SFCTCOMR 10.1.2 SFCTCOMR instruction S_SFCTCOMR *1: Local device cannot be used . S(P)_SFCTCOMR P: Executing condition : indicates any of the following instructions. S_SFCTCOMR SP_SFCTCOMR Input argume nt EN: Executing condition :Bit n1: Bl ock No. of an SFC progr am that read comments[...]

  • Страница 403

    10.1 SFC Control Instruction 10.1.2 SFCTCOMR instruction 10-5 10 SFC CONTROL INSTRUCTION S_SFCTCOMR S_SFCTCOMR F unct i on This function reads comments of th e transition cond ition 1 associated with step s activated in the SFC block specified at with the number of co mments specified at , and stores those to the device numbe r of after specified a[...]

  • Страница 404

    10-6 MEMO[...]

  • Страница 405

    I Index-1 8 BUIL T-IN I/O FUNCTION INSTRUCTION 9 DA T A LOGGING FUNCTION INSTRUCTION 10 SFC CONTROL INSTRUCTION I INDE X INDEX[...]

  • Страница 406

    Index - 2 [A] ABRST (absolute position restorat ion) ................. . 5-53 Analog instruction ........... ... ............. ................ ......... 2-3 Analog module ........... ................ .................... ......... 1-8 [B] BIDIN (re ceiving data usin g bidirectional protocol communication) .............. ................... .......[...]

  • Страница 407

    Index-3 I INDE X PUTE (user frame registrati on) .............. ............. 5-103 [R] READ (reading data from a word device) ........... 5-146 RECV (receiving data) ....... ................ ................. 5-175 RECVS (receiving data) ..... ... .................... .......... 5-180 REMFR (reading data from buffer memory) ........ 5-210 REMTO (w[...]

  • Страница 408

    Index-4 MEMO[...]

  • Страница 409

    W A RRANTY Please confirm the fol lowing product warranty det ails bef ore using this product. 1. Gratis W arranty T erm a nd Gratis W arranty Range If any fault s or defects (herein after "Failu re") found to be the respon sibility of Mit subishi occurs during use of the product within th e gratis warranty term, the product shal l be rep[...]

  • Страница 410

    Microsoft, Windows, Windows Vista, Windows NT , Windows XP , Window s Server , Visio, Excel, PowerPoint, Visual Basic, Visual C++, and Access are either regist ered trademarks or trademarks of Micros oft Corporation in the United S t ates, Japan, and other countries. Intel, Pentium, and Celeron are trademarks of Intel Corporat ion in the United St [...]

  • Страница 411

    [...]

  • Страница 412

    SH(NA)-080785ENG-K( 1306)KWIX MODEL: Q-KP-TM-E MODEL CODE: 1 3JW09 Specifications subject to change without notice. When exported from Japan, this manual does not require application to the Ministry of Economy, Trade and Industry for service transaction permission. HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN NA[...]