Gebruiksaanwijzing /service van het product MELSEC Q series MELSEC L series van de fabrikant Mitsubishi Electronics
Ga naar pagina of 412
MELSEC-Q/L S tructured Programming Manual (S pecial Instructions).
.
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 .
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 , .
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.
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.
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.
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 .
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 .
A-8 5.4.23 REMTO instruction ........................ ................ .................... ................ ................... ......... ............ 5 - 212 5.4.24 CCPASET instruction .......... ................. ...................................
A-9 8.2 Counter Function Ded icated Instruction 8 - 18 8.2.1 ICCNTRD instruction ................ ................... ................. ................... ................ ................ .......... .. 8 - 18 8.2.2 ICRNGWR instruction ............ .
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.
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.
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 sp.
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 or.
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) QnU.
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.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-.
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.
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 Progra.
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.
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.
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.
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.
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 t.
1-10 MEMO.
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.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 .
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.
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.
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.
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 Applic.
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.
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.
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 .
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.
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.
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 Instr.
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.
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.
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 .
2-16 MEMO.
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 .
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.
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 . . . . . .
3-4 MEMO.
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 INSTR.
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.
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.
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.
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 .
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.
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.
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.
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.
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.
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.
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 .
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.
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.
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.
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.
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.
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.
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.
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 v.
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 -.
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 v.
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 -.
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.
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.
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 ga.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 .
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.
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.
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.
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.
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.
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.
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.
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 v.
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 .
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 v.
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 .
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.
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.
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 f.
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.
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.
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.
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.
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.
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.
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.
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.
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 .
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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_Fl.
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.
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.
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.
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.
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.
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 t.
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.
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.
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 .
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.
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.
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.
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.
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.
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_Contr.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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'.
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.
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.
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 c.
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 s.
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((.
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.
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.
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.
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(T.
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.
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.
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.
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.
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.
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.
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.
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 reque.
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 .
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 st.
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.
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.
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.
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.
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.
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.
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.
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 memo.
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.
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.
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 au.
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.
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.
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.
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.
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.
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.
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.
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 Se.
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, .
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.
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.
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].
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 .
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).
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]).
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.
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.
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.
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].
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.
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.
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].
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.
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.
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.
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 *) M.
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.
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.
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.
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 .
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.
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 .
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.
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.
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 .
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).
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 .
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(.
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).
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.
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.
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, .
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 er.
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) .
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.
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 c.
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.
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.
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.
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.
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.
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).
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.
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).
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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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 .
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 ,.
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.
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 .
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.
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.
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_Cloc.
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.
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.
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.
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.
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).
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.
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]).
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 in.
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.
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_Cont.
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.
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/ Co.
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.
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 si.
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.
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.
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 .
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.
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.
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.
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 s.
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.
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.
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.
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.
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.
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 .
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.
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.
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_.
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.
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.
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.
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.
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.
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 .
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.
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.
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.
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.
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) .
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.
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.
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.
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).
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.
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.
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 .
5-258 MEMO.
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.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.
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).
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 set.
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.
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).
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.
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).
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.
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).
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.
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 .
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.
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 .
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).
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.
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).
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.
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.
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).
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.
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).
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.
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.
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).
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'.
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 o.
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.
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).
6-30 MEMO.
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.
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.
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.
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.
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.
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 .
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.
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.
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 .
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.
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.
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 .
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.
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 .
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.
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.
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 .
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)THE.
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.
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 .
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.
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.
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 .
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.
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 .
7-26 MEMO.
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-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.
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.
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.
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, .
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.
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).
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.
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).
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.
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.
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.
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).
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 s.
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.
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 .
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.
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).
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.
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.
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).
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 .
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 .
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).
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.
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.
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 .
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).
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.
8-30 MEMO.
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 9.1 LOGTRG Instruction, LOGTRGR Instruction LOGTRG 9.1 LOGTRG Instruction, LOGTRGR Instruction LOGTRG LOGTRG LOGTRGR Executing condition : indicates any of the following instructions.
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'.
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.
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 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.
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 .
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.
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 .
10-6 MEMO.
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.
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) .
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) ..... ... ..
Index-4 MEMO.
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.
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.
.
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.
Een belangrijk punt na aankoop van elk apparaat Mitsubishi Electronics MELSEC Q series MELSEC L series (of zelfs voordat je het koopt) is om de handleiding te lezen. Dit moeten wij doen vanwege een paar simpele redenen:
Als u nog geen Mitsubishi Electronics MELSEC Q series MELSEC L series heb gekocht dan nu is een goed moment om kennis te maken met de basisgegevens van het product. Eerst kijk dan naar de eerste pagina\'s van de handleiding, die je hierboven vindt. Je moet daar de belangrijkste technische gegevens Mitsubishi Electronics MELSEC Q series MELSEC L series vinden. Op dit manier kan je controleren of het apparaat aan jouw behoeften voldoet. Op de volgende pagina's van de handleiding Mitsubishi Electronics MELSEC Q series MELSEC L series leer je over alle kenmerken van het product en krijg je informatie over de werking. De informatie die je over Mitsubishi Electronics MELSEC Q series MELSEC L series krijgt, zal je zeker helpen om een besluit over de aankoop te nemen.
In een situatie waarin je al een beziter van Mitsubishi Electronics MELSEC Q series MELSEC L series bent, maar toch heb je de instructies niet gelezen, moet je het doen voor de hierboven beschreven redenen. Je zult dan weten of je goed de alle beschikbare functies heb gebruikt, en of je fouten heb gemaakt die het leven van de Mitsubishi Electronics MELSEC Q series MELSEC L series kunnen verkorten.
Maar de belangrijkste taak van de handleiding is om de gebruiker bij het oplossen van problemen te helpen met Mitsubishi Electronics MELSEC Q series MELSEC L series . Bijna altijd, zal je daar het vinden Troubleshooting met de meest voorkomende storingen en defecten #MANUAl# samen met de instructies over hun opplosinge. Zelfs als je zelf niet kan om het probleem op te lossen, zal de instructie je de weg wijzen naar verdere andere procedure, bijv. door contact met de klantenservice of het dichtstbijzijnde servicecentrum.