SAFETY PRECAUTIONS (Always read these instructions before using this product.) Before using the MELSEC-Q series programmable controller, thoroughly read the manuals attached to the products and the relevant manuals introduced in the attached manuals. Also pay careful attention to safety and handle the products properly.
This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
INTRODUCTION Thank you for purchasing the Mitsubishi MELSEC-Q series programmable controller. Before using the product, thoroughly read this manual to develop full familiarity with the programming specifications to ensure correct use. Please forward this manual to the end user. CONTENTS SAFETY PRECAUTIONS ..........................A - 1...
Explains the programming method, types of programming languages, and other information required to create structured SH-080782ENG programs. (13JW06) (Sold separately) QCPU Structured Programming Manual (Common Instructions) Explains the specifications and functions of sequence instructions, basic instructions, and application instructions that can be SH-080783ENG (13JW07) used in structured programs.
Page 9
(3) Detailed specifications of instructions • Serial communication and modem interface instruction Manual number Manual name (Model code) Q Corresponding Serial Communication Module User s Manual (Basic) Explains the overview for use of the module, applicable system configuration, specifications, procedures before operation, SH-080006 (13JL86) fundamental data communication with external devices, maintenance, inspection, and troubleshooting.
Page 10
(13JR30) Q64TD and Q64TDV-GH. (Sold separately) • PID control instruction Manual number Manual name (Model code) QCPU(Q Mode)/QnACPU Programming Manual (PID Control Instructions) SH-080040 Explains the dedicated instructions for PID control. (13JF59) (Sold separately) • Positioning instruction Manual number Manual name...
PURPOSE OF THIS MANUAL This manual explains the instructions for the network module, intelligent function module, and PID control specifically, among common instructions and special instructions necessary for creating programs using the structured programming technique. Manuals for reference are listed in the following table according to their purpose. For information such as the contents and number of each manual, refer to the list of 'Related manuals'.
Page 12
(2) Programming User's Manual for intelligent QCPU(Q mode)/QnACPU function module/ QCPU Structured Programming Manual Reference Programming Manual Manual for network module Purpose Common Special Application Common PID Control Fundamentals Instructions Instructions Functions Instructions Instructions Learning the types and details of common...
Ethernet Abbreviation for the Ethernet network system CC-Link Abbreviation for Control & Communication Link CPU module Generic term for the High Performance model QCPU and Universal model QCPU ® Personal computer Generic term for personal computer on which Windows operates...
OVERVIEW Overview............1-2 Modules and Versions Applicable to Instructions .
Page 16
Overview This manual explains the programming methods and data used for control of the following modules and PID control using structured programming technique. Function/module for explaining an Processing performed by the instruction Reference instruction • Switches the mode. (Offset/gain setting mode or normal mode) Analog module Section 5.1...
Modules and Versions Applicable to Instructions This section explains the modules and versions applicable to the instructions explained in this manual. For details of applicable versions, refer to each instruction in Chapter 5. Function/module for explaining an instruction Applicable version/serial number Q64AD Q68ADV Q68ADI...
Page 18
• How to check the applicable version or serial number Intelligent function modules : User's Manual or Reference Manual for the module listed in 'Manuals' CPU modules supporting PID control: QCPU User's Manual (Function Explanation, Program Fundamentals) • Manual for reference 'MANUALS'...
How to Read Instruction Tables Instruction tables in Section 2.2 have the following form: Executing Classification Function name Argument Processing details Page condition G_OFFGAN Moves to the offset/gain setting mode. Mode switching Moves to the normal mode. GP_OFFGAN G_OGLOAD Read setting Reads the user range setting offset/gain value to value the programmable controller CPU.
GP_OGLOAD ○ ○ Un * 5-27 Restores the user range settings offset/gain G_OGSTOR ○ ○ Un * Setting value value stored in the programmable controller restoration 5-27 GP_OGSTOR ○ ○ Un * CPU. 2.2 QCPU Instruction Tables 2.2.1 Analog instruction...
Reads a user frames. 5-75 GP_GETE ○ ○ ○ Un * Switches the mode, transmission 5-77 – Mode switching Z_UINI specification, and host station ○ ○ Un * number. 2.2 QCPU Instruction Tables 2.2.2 Serial communication and modem interface instruction...
○ ○ ○ ○ 5-92 G_RLPASET ○ Network parameter Sets network parameter to the master station and setting starts up the data link. ○ ○ ○ ○ ○ Un * 5-92 GP_RLPASET ○ 2.2 QCPU Instruction Tables 2.2.3 CC-Link instruction...
Writes the QD75 parameters, positioning data, and 5-194 ZP_PFWRT ○ ○ Un * block start data to the flash ROM. Setting data 5-195 Z_PINIT Initializes the QD75 setting data. Un * ○ ○ initialization 2.2 QCPU Instruction Tables 2.2.6 PID control instruction (exact differential)
Configuration of Instructions and Data Specification Methods Instructions available in the CPU module can be divided into an instruction name and an argument. The application of an instruction name and an argument are as follows: • Instruction name..Indicates the function of the instruction. •...
Page 31
(c) The instructions explained in this manual use special data. Refer to the explanation for each instruction and use data correctly. For details of the configuration of instructions, refer to the following manual. QCPU Structured Programming Manual (Common Instructions) 3.1 Configuration of Instructions and Data Specification Methods...
Page 34
Chapter 5 provides detailed explanation on each instruction in the layout as shown below. Indicates a section number and an outline of an instruction. Indicates an instruction to be explained. Indicates the instruction execution target module. If one instruction is to be executed in two or more modules, applicable modules are indicated using icons.
Page 35
(Data range: T#-24d-0h31m23s648ms to Time T#24d20h31m23s647ms) *1 : Can be used for the Universal model QCPU only. *2 : The time type is used in time type operation instructions of application function. For details of application functions, refer to the following manual.
Page 36
*3 : For description of each device, refer to the following manuals: • QCPU User's Manual (Function Explanation, Program Fundamentals) *4 : FX and FY can be used in bit data only, and FD can be used in word data only in the PID control instruction.
Page 37
Indicates data such as control data, send data or receive data, that are used for an input argument or output argument in an instruction. Example: Control data to be used in the CC-Link instruction 'GP_RIRD' The setting side indicates the following: User : Data set by user before dedicated instruction execution System : Data stored by the programmable controller CPU after dedicated instruction execution...
G_OFFGAN Analog Instruction 5.1.1 OFFGAN instruction G_OFFGAN G(P)_OFFGAN P: Executing condition indicates any of the following instructions. Structured ladder G_OFFGAN G_OFFGAN GP_OFFGAN ENO:= (EN, Un*, s); G_OFFGAN Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits) Mode switching...
G_OGLOAD 5.1.2 OGLOAD instruction G_OGLOAD G(P)_OGLOAD P: Executing condition indicates any of the following instructions. Structured ladder G_OGLOAD G_OGLOAD GP_OGLOAD ENO:= (EN, Un*, s, d); G_OGLOAD Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data :Array of ANY16 [0..99]...
Page 42
G_OGLOAD Control Data (1) Q64AD Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. Completion status : Normal completion System – Other than 0 : Error completion (error code) Specify the voltage/current of the offset/gain values to be read.
Page 43
G_OGLOAD (2) Q68ADV Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) System area – –...
Page 44
G_OGLOAD (3) Q68ADI Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) System area – –...
Page 45
G_OGLOAD (4) Q64AD-GH Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) Specify the voltage/current of the offset/gain values to be read.
Page 46
G_OGLOAD (5) Q62AD-DGH Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) System area – –...
Page 47
G_OGLOAD (6) Q68AD-G Device Item Setting data Setting range Setting side Ñü System area – – The instruction completion status is stored. Completion status :Normal completion System – Other than 0 :Error completion (error code) Specify the voltage/current of the offset/gain values to be read.
Page 48
G_OGLOAD (7) Q66AD-DG Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. Completion status :Normal completion System – Other than 0 :Error completion (error code) – System area – – CH1 Industrial shipment settings offset value System –...
Page 49
G_OGLOAD (8) Q62DAN/Q62DA Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) Specify the voltage/current of the offset/gain values to be read.
Page 50
G_OGLOAD (9) Q64DAN/Q64DA Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) Specify the voltage/current of the offset/gain values to be read.
Page 51
G_OGLOAD (10) Q68DAVN/Q68DAV Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) System area – –...
Page 52
G_OGLOAD (11) Q68DAIN/Q68DAI Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) System area – –...
Page 53
G_OGLOAD (12) Q62DA-FG Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) Specify the user range setting to read the offset/gain values.
Page 54
G_OGLOAD (13) Q66DA-G Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. Completion status :Normal completion System – Other than 0 :Error completion (error code) Specify the user range setting to read the offset/gain values.
Page 55
G_OGLOAD (14) Q64RD/Q64RD-G Control data of Q64RD/Q64RD-G (1/5) Setting Setting Device Item Setting data range side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) System area –...
Page 56
G_OGLOAD Control data of Q64RD/Q64RD-G (2/5) Setting Setting Device Item Setting data range side 4-wire CH1 Factory default offset value (L) [16] System – – 4-wire CH1 Factory default offset value (H) [17] 4-wire CH1 Factory default gain value (L) [18] System –...
Page 57
G_OGLOAD Control data of Q64RD/Q64RD-G (3/5) Setting Setting Device Item Setting data range side 4-wire CH2 Factory default offset value (L) [40] System – – 4-wire CH2 Factory default offset value (H) [41] 4-wire CH2 Factory default gain value (L) [42] System –...
Page 58
G_OGLOAD Control data of Q64RD/Q64RD-G (4/5) Setting Setting Device Item Setting data range side 4-wire CH3 Factory default offset value (L) [64] System – – 4-wire CH3 Factory default offset value (H) [65] 4-wire CH3 Factory default gain value (L) [66] System –...
Page 59
G_OGLOAD Control data of Q64RD/Q64RD-G (5/5) Setting Setting Device Item Setting data range side 4-wire CH4 Factory default offset value (L) [88] System – – 4-wire CH4 Factory default offset value (H) [89] 4-wire CH4 Factory default gain value (L) [90] System –...
Page 60
G_OGLOAD (15) Q64TD/Q64TDV-GH Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion Completion status System – Other than 0 : Error completion (error code) System area – –...
Page 61
G_OGLOAD (16) Q68TD-G-H01 Control data of Q68TD-G-H01 (1/2) Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. :Normal completion Completion status System – Other than 0 :Error completion (error code) System area –...
Page 62
G_OGLOAD Control data of Q68TD-G-H01 (2/2) Device Item Setting data Setting range Setting side CH5 User range settings thermal EMF gain value (L) [42] System – – CH5 User range settings thermal EMF gain value (H) [43] System CH6 Factory default offset value –...
Page 63
G_OGLOAD (17) Q68RD3-G Control data of Q68RD3-G (1/2) Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. :Normal completion Completion status System – Other than 0 :Error completion (error code) System area –...
Page 64
G_OGLOAD Control data of Q68RD3-G (2/2) Device Item Setting data Setting range Setting side CH5 User range settings resistance gain value (L) [42] System – – CH5 User range settings resistance gain value (H) [43] System CH6 Factory default offset value –...
G_OGSTOR 5.1.3 OGSTOR instruction G_OGSTOR G(P)_OGSTOR P: Executing condition indicates any of the following instructions. Structured ladder G_OGSTOR G_OGSTOR GP_OGSTOR ENO:= (EN, Un*, s, d); G_OGSTOR Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data :Array of ANY16 [0..99]...
Page 66
G_OGSTOR Control Data (1) Q64AD Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. Completion status : Normal completion System – Other than 0 : Error completion (error code) The value set for pass data classification setting ○...
Page 67
G_OGSTOR (2) Q68ADV Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) System area – –...
Page 68
G_OGSTOR (3) Q68ADI Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) System area – –...
Page 69
G_OGSTOR (4) Q64AD-GH Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) The value set for pass data classification setting ○...
Page 70
G_OGSTOR (5) Q62AD-DGH Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) System area – –...
Page 71
G_OGSTOR (6) Q68AD-G Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. Completion status :Normal completion System – Other than 0 :Error completion (error code) Specify the voltage/current of the offset/gain values to be read.
Page 72
G_OGSTOR (7) Q66AD-DG Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. Completion status :Normal completion System – Other than 0 :Error completion (error code) System area – – – CH1 Industrial shipment settings offset value System –...
Page 73
G_OGSTOR (8) Q62DAN/Q62DA Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) The value set for pass data classification setting ○...
Page 74
G_OGSTOR (9) Q64DAN/Q64DA Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) The value set for pass data classification setting ○...
Page 75
G_OGSTOR (10) Q68DAVN/Q68DAV Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) System area – –...
Page 76
G_OGSTOR (11) Q68DAIN/Q68DAI Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) System area – –...
Page 77
G_OGSTOR (12) Q62DA-FG Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) The value set for pass data classification setting ○...
Page 78
G_OGSTOR (13) Q66DA-G Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. Completion status :Normal completion System – Other than 0 :Error completion (error code) The value set for pass data classification setting ○...
Page 79
G_OGSTOR (14) Q64RD/Q64RD-G Control data of Q64RD/Q64RD-G (1/5) Setting Setting Device Item Setting data range side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) System area –...
Page 80
G_OGSTOR Control data of Q64RD/Q64RD-G (2/5) Setting Setting Device Item Setting data range side 4-wire CH1 Factory default offset value (L) [16] System – – 4-wire CH1 Factory default offset value (H) [17] 4-wire CH1 Factory default gain value (L) [18] System –...
Page 81
G_OGSTOR Control data of Q64RD/Q64RD-G (3/5) Setting Setting Device Item Setting data range side 4-wire CH2 Factory default offset value (L) [40] System – – 4-wire CH2 Factory default offset value (H) [41] 4-wire CH2 Factory default gain value (L) [42] System –...
Page 82
G_OGSTOR Control data of Q64RD/Q64RD-G (4/5) Setting Setting Device Item Setting data range side 4-wire CH3 Factory default offset value (L) [64] System – – 4-wire CH3 Factory default offset value (H) [65] 4-wire CH3 Factory default gain value (L) [66] System –...
Page 83
G_OGSTOR Control data of Q64RD/Q64RD-G (5/5) Setting Setting Device Item Setting data range side 4-wire CH4 Factory default offset value (L) [88] System – – 4-wire CH4 Factory default offset value (H) [89] 4-wire CH4 Factory default gain value (L) [90] System –...
Page 84
G_OGSTOR (15) Q64TD/Q64TDV-GH Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion Completion status System – Other than 0 : Error completion (error code) System area – –...
Page 85
G_OGSTOR (16) Q68TD-G-H01 Control data of Q68TD-G-H01 (1/2) Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. :Normal completion Completion status System – Other than 0 :Error completion (error code) –...
Page 86
G_OGSTOR Control data of Q68TD-G-H01 (2/2) Device Item Setting data Setting range Setting side CH5 User range settings thermal EMF offset value (L) [40] System – – CH5 User range settings thermal EMF offset value (H) [41] CH5 User range settings thermal EMF gain value (L) [42] System –...
Page 87
G_OGSTOR (17) Q68RD3-G Control data of Q68RD3-G (1/2) Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. :Normal completion Completion status System – Other than 0 :Error completion (error code) System area –...
Page 88
G_OGSTOR Control data of Q68RD3-G (2/2) Device Item Setting data Setting range Setting side System CH5 User range settings gain value – – [39] CH5 User range settings resistance offset value (L) [40] System – – CH5 User range settings resistance offset value (H) [41] CH5 User range settings resistance gain value (L) [42]...
G_ONDEMAND Serial Communication and Modem Interface Instruction 5.2.1 ONDEMAND instruction G_ONDEMAND G(P)_ONDEMAND P: Executing condition indicates any of the following instructions. Structured ladder G_ONDEMAND G_ONDEMAND GP_ONDEMAND ENO:= (EN, Un*, s1, s2, d); G_ONDEMAND Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits)
Page 90
G_ONDEMAND Control Data Device Item Setting data Setting range Setting side Set the transmission channel. 1: Channel 1 (CH1 side) 1, 2 User Transmission channel 2: Channel 2 (CH2 side) The instruction completion status is stored. : Normal completion System Transmission result –...
G_OUTPUT 5.2.2 OUTPUT instruction G_OUTPUT G(P)_OUTPUT P: Executing condition indicates any of the following instructions. Structured ladder G_OUTPUT G_OUTPUT GP_OUTPUT ENO:= (EN, Un*, s1, s2, d); G_OUTPUT Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data...
Page 92
G_OUTPUT Control Data Device Item Setting data Setting range Setting side Set the transmission channel. Transmission channel 1: Channel 1 (CH1 side) 1, 2 User 2: Channel 2 (CH2 side) The instruction completion status is stored. Transmission result : Normal completion System –...
G_INPUT 5.2.3 INPUT instruction G_INPUT G(P)_INPUT P: Executing condition indicates any of the following instructions. Structured ladder G_INPUT G_INPUT GP_INPUT ENO:= (EN, Un*, s, d1, d2); G_INPUT Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data...
Page 94
G_INPUT Control Data Device Item Setting data Setting range Setting side Set the reception channel. 1: Channel 1 (CH1 side) 1, 2 User Reception channel 2: Channel 2 (CH2 side) The instruction completion status is stored. : Normal completion System Reception result –...
G_BIDOUT 5.2.4 BIDOUT instruction G_BIDOUT G(P)_BIDOUT P: Executing condition indicates any of the following instructions. Structured ladder G_BIDOUT G_BIDOUT GP_BIDOUT ENO:= (EN ,Un* ,s1 ,s2 ,d); G_BIDOUT Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data...
Page 96
G_BIDOUT Control Data Device Item Setting data Setting range Setting side Set the transmission channel. 1: Channel 1 (CH1 side) 1, 2 User Transmission channel 2: Channel 2 (CH2 side) The instruction completion status is stored. : Normal completion System Transmission result –...
G_BIDIN 5.2.5 BIDIN instruction G_BIDIN G(P)_BIDIN P: Executing condition indicates any of the following instructions. Structured ladder G_BIDIN G_BIDIN GP_BIDIN ENO:= (EN, Un*, s, d1, d2); G_BIDIN Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data...
Page 98
G_BIDIN Control Data Device Item Setting data Setting range Setting side Set the reception channel. 1: Channel 1 (CH1 side) 1, 2 User Reception channel 2: Channel 2 (CH2 side) The instruction completion status is stored. Reception result System – 0: Normal 1 or more System...
G_SPBUSY 5.2.6 SPBUSY instruction G_SPBUSY G(P)_SPBUSY P: Executing condition indicates any of the following instructions. Structured ladder G_SPBUSY G_SPBUSY GP_SPBUSY ENO:= (EN, Un*, d); G_SPBUSY Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits) Output argument ENO:...
ZP_CSET 5.2.7 CSET instruction (receive data clear) ZP_CSET ZP_CSET Executing condition indicates the following instruction. ZP_CSET Structured ladder ZP_CSET ENO:= (EN, Un*, s1, s2, d1, d2); ZP_CSET Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Channel number that requests receive data clear...
Page 101
ZP_CSET Control Data Device Item Setting data Setting range Setting side User Execution type Specify '0'. The instruction completion status is stored. Completion status : Normal completion System – Other than 0 : Error completion (error code) Specify the request. User Request type 4: Recive data clear request...
Z_BUFRCVS 5.2.8 BUFRCVS instruction Z_BUFRCVS Z_BUFRCVS indicates the following instruction. Z_BUFRCVS Structured ladder Z_BUFRCVS ENO:= (EN, Un*, s, d); Z_BUFRCVS Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Reception channel number :ANY16...
Page 103
Z_BUFRCVS Receive Data Device Item Setting data Setting range Setting side The number of data read from the number of receive 0 or more System Receive data length data storage area is stored. Data read from the receive data storage area are Receive data System –...
G_PRR 5.2.9 PRR instruction G_PRR G(P)_PRR P: Executing condition indicates any of the following instructions. Structured ladder G_PRR G_PRR GP_PRR ENO:= (EN, Un*, s, d); G_PRR Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data :Array of ANY16 [0..4]...
Page 105
G_PRR Control Data Device Item Setting data Setting range Setting side Set the transmission channel. 1: Channel 1 (CH1 side) 1, 2 User Transmission channel 2: Channel 2 (CH2 side) The instruction completion status is stored. : Normal completion System Transmission result –...
ZP_CSET 5.2.10 CSET instruction (initial setting) ZP_CSET ZP_CSET Executing condition : indicates the following instruction. ZP_CSET Structured ladder ZP_CSET ENO:= (EN, Un*, s1, s2, d1, d2); ZP_CSET Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Reception channel number...
Page 107
ZP_CSET Control Data Device Item Setting data Setting range Setting side Execution type Specify '0'. User The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) Specify the request. 1: Change of unit (word/byte) and buffer memory Request type assignment...
Page 108
ZP_CSET 5.2.11 CSET instruction (programmable controller CPU monitor) ZP_CSET ZP_CSET Executing condition : indicates the following instruction. ZP_CSET Structured ladder ZP_CSET ENO:= (EN, Un*, s1, s2, d1, d2); ZP_CSET Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits)
Page 109
ZP_CSET Control Data (1) Registering the programmable controller CPU monitoring Device Item Setting data Setting range Setting side User Execution type Specify '0'. The instruction completion status is stored. Completion status : Normal completion System – Other than 0 : Error completion (error code) Specify the request.
ZP_CSET Device Item Setting data Setting range Setting side Specify the code of the device to be monitored. to CC : No device monitored Device code [13] (Device code) Other than 0 : Device code [14] Specify the start number of the monitoring device in 0 or more Monitoring start device this block.
Page 111
ZP_CSET Device Item Setting data Setting range Setting side [103] [104] [105] Fixed value Specify a fixed value to monitor the CPU status. [106] [107] [108] Specify the start pointer of the to which the user frame number for condition agreement transmission for this block is set.
G_PUTE 5.2.12 PUTE instruction G_PUTE G(P)_PUTE P: Executing condition indicates any of the following instructions. Structured ladder G_PUTE G_PUTE GP_PUTE ENO:= (EN, Un*, s1, s2, d); G_PUTE Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data...
G_GETE 5.2.13 GETE instruction G_GETE GP_GETE P: Executing condition indicates any of the following instructions. Structured ladder G_GETE G_GETE GP_GETE ENO:= (EN, Un*, s1, s2, d); G_GETE Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data...
Page 114
G_GETE Control Data Device Item Setting data Setting range Setting side Dummy – – The instruction completion status is stored. : Normal completion System Read result – Other than 0 : Error completion (error code) 1000 to 1199 User Frame No. specification Specify the user frame number.
Z_UINI 5.2.14 UINI instruction Z_UINI Z_UINI Executing condition : indicates the following instruction. Z_UINI Structured ladder Z_UINI ENO:= (EN, Un*, s, d); Z_UINI Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data :Array of ANY16 [0..12]...
Page 116
Z_UINI Control Data Device Item Setting data Setting range Setting side For system Always specify '0'. User The instruction completion status is stored. : Normal completion System Execution result – Other than 0 : Error completion (error code) Specify the execution type. 0: Switches the execution type according to the Execution type 0, 1...
Page 117
Z_UINI [4] (CH1 Communication protocol setting) and [6] (CH1 Communication protocol ○ ○ setting) Setting No. Description Remarks Specify '0000 ' for the transmission specification GX Developer connection setting. Format 1 – Format 2 – MC protocol Format 3 – Format 4 –...
G_RIRD CC-Link Instruction 5.3.1 RIRD instruction G_RIRD GP_RIRD P: Executing condition indicates any of the following instructions. Structured ladder G_RIRD G_RIRD GP_RIRD ENO:= (EN, Un*, s, d1, d2); G_RIRD Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits)
Page 119
*3 : When reading device data from the programmable controller CPU other than the QCPU (Q mode), QCPU (A mode) or QnACPU/AnUCPU, the setting range shall be 1 to 32 words.
Page 120
G_RIRD (2) Device memory of the programmable controller CPU module Device type Device Name Unit Access code Attribute code Word Input relay Hexadecimal – Hexadecimal Output relay – Internal relay Decimal – Decimal Latch relay – Hexadecimal Link relay – Timer (contact) Decimal –...
G_RIWT 5.3.2 RIWT instruction G_RIWT G(P)_RIWT P: Executing condition indicates any of the following instructions. Structured ladder G_RIWT G_RIWT GP_RIWT ENO:= (EN, Un*, s1, s2, d); G_RIWT Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data...
Page 122
*3 : When writing device data to the programmable controller CPU other than the QCPU (Q mode), QCPU (A mode) or QnACPU/AnUCPU, the setting range shall be 1 to 10 words.
Page 123
G_RIWT (2) Device memory of the programmable controller CPU module Device type Device Name Unit Access code Attribute code Word Input relay Hexadecimal – Hexadecimal Output relay – Internal relay Decimal – Decimal Latch relay – Hexadecimal Link relay – Timer (contact) Decimal –...
G_RIRCV 5.3.3 RIRCV instruction G_RIRCV G(P)_RIRCV P: Executing condition indicates any of the following instructions. Structured ladder G_RIRCV G_RIRCV GP_RIRCV ENO:= (EN, Un*, s1, s2, d1, d2); G_RIRCV Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits)
Page 125
G_RIRCV Control Data Device Item Setting data Setting range Setting side The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) Specify the station number of the intelligent device 0 to 64 User Station No.
G_RISEND 5.3.4 RISEND instruction G_RISEND G(P)_RISEND P: Executing condition indicates any of the following instructions. Structured ladder G_RISEND G_RISEND GP_RISEND ENO:= (EN, Un*, s1, s2, d1, d2); G_RISEND Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits)
Page 127
G_RISEND Control Data Device Item Setting data Setting range Setting side The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) Specify the station number of the intelligent device 0 to 64 User Station No.
G_RIFR 5.3.5 RIFR instruction G_RIFR G(P)_RIFR P: Executing condition indicates any of the following instructions. Structured ladder G_RIFR GP_RIFR G_RIFR ENO:= (EN, Un*, n1, n2, n3, d); G_RIFR Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits)
G_RITO 5.3.6 RITO instruction G_RITO G(P)_RITO P: Executing condition indicates any of the following instructions. Structured ladder G_RITO GP_RITO G_RITO ENO:= (EN, Un*, n1, n2, n3, d); G_RITO Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits)
G_RLPASET 5.3.7 RLPASET instruction G_RLPASET G(P)_RLPASET P: Executing condition indicates any of the following instructions. G_RLPASET GP_RLPASET Structured ladder G_RLPASET ENO:= (EN, Un*, s1, s2, s3, s4, s5, d); G_RLPASET Input argument Executing condition :Bit Un*: Start I/O number of the module :ANY16 (00 to FE: Higher two digits when expressing the I/O number in three digits)
Page 131
G_RLPASET Control Data Device Item Setting data Setting range Setting side The instruction completion status is stored. Completion status : Normal completion System – Other than 0 : Error completion (error code) Specify the validity of each setting data from ○...
Page 132
G_RLPASET (1) Slave station setting data Device Item Setting data Setting range Setting side Set the slave station type, the number of occupied slave stations, and the station number as shown below. b12 b11 b8 b7 Station number – Number of occupied slave stations Type of slave station Default parameter setting is '0101...
Page 133
G_RLPASET (2) Reserved station specification data Device Item Setting data Setting range Setting side Specify the reserved station. 0: Not specified 1: Specified Specification for 1 to 64 S3 [0] User – stations S3 [1] S3 [2] S3 [3] 1 to 64 in the table indicates a station number. Default parameter setting is '0: Not specified' for all stations.
Page 134
G_RLPASET (4) Send/receive and auto-refresh buffer assignment data Device Item Setting data Setting range Setting side Specify the buffer memory size assignment at transient transmission for local stations and intelligent device stations. Send/receive buffer S5 [0] Send buffer size (no setting) S5 [1] Setting for the 1st module Receive buffer size...
J_READ, G_READ CC-Link IE Controller Network, MELSECNET/H, and Ethernet Instruction 5.4.1 READ instruction J_READ, G_READ J(P)_READ P: Executing condition G(P)_READ indicates any of the following Structured ladder instructions. J_READ JP_READ J_READ G_READ G_READ GP_READ ENO:= (EN, Jn*, s1, s2, d1, d2); J_READ ENO:= (EN, Un*, s1, s2, d1, d2);...
Page 136
J_READ, G_READ Control Data Device Item Setting data Setting range Setting side ① Error completion type (bit 7) Specify the clock data setup status at the time of error completion. 0001 User Error completion type 0: Clock data at the time of error completion is not set in the area 0081 starting from [11].
Page 137
D or later. (Specification is not possible for other modules. An access is always made to the target station CPU.) *2 : Specification is possible when the versions of the QCPU and the network module on the station and host the target station are as indicated below.
Page 139
J_SREAD, G_SREAD Function This instruction reads data from a word device of another station. Control Data For the control data of the SREAD instruction that reads the word device memory of another station, refer to READ instruction. The control data of the SREAD instruction are the same as those of the READ instruction. Accordingly, this section omits the explanation.
Page 141
J_WRITE, G_WRITE Control Data Device Item Setting data Setting range Setting side ② ① Execution type (bit 0) 0: Without arrival confirmation When the target station is on the same network... Completed when data are sent from the host station. Completed Execution source Target station...
Page 142
J_WRITE, G_WRITE Device Item Setting data Setting range Setting side Error completion type (bit 7) Specify the clock data setup status at the time of error completion. 0000 0: Clock data at the time of error completion is not set in the area Execution/Error completion 0001 User...
Page 143
1 to 120 CC-Link IE controller network High Performance model QCPU 1 to 64 To increase the data reliability when the station number is specified, executing the instruction with setting Execution/Error completion type [0]) to '1: With arrival confirmation' is recommended.
Page 144
(Specification is not possible for other modules. An access is always made to the target station CPU.) *2 : Specification is possible when the versions of the QCPU and the network module on the host station and the target station are as indicated below.
Page 146
J_SWRITE, G_SWRITE Function This instruction writes data to a word device of another station. Control Data For the control data of the SWRITE instruction that writes data to the word device memory of another station, refer to WRITE instruction. The control data of the SWRITE instruction are the same as those of the WRITE instruction. Accordingly, this section omits the explanation.
Page 148
J_SEND, G_SEND Control Data Device Item Setting data Setting range Setting side ② ① Execution type (bit 0) 0: Without arrival confirmation When the target station is on the same network... Completed when data are sent from the host station. Completed Execution source Target station...
Page 149
1 to 120 CC-Link IE controller network High Performance model QCPU 1 to 64 To increase the data reliability when the station number is specified, executing the instruction with setting Execution/Error completion type [0]) to '1: With arrival confirmation' is recommended.
Page 150
1 to 32767: 1 to 32767 0 to 32767 controller network seconds Specify the number of send data. Description Setting value Writing to the QCPU 1 to 960 Ethernet (word) Writing to the QnACPU Send data length 1 to 960...
Page 152
J_RECV, G_RECV Control Data Device Item Setting data Setting range Setting side ② ① Error completion type (bit 7) 0000 Specify the clock data setup status at the time of error completion. User Error completion type 0080 0: Clock data at the time of error completion is not set in the area starting from [11].
Page 153
J_RECV, G_RECV Device Item Setting data Setting range Setting side Clock data at the time of error completion are stored in BCD format. b8 b7 [12] Year (00 to 99 ) Last two digits [12 ] Month (01 to 12 Clock data at the time of System –...
Z_RECVS 5.4.7 RECVS instruction Z_RECVS Z_RECVS indicates the following instruction. Z_RECVS Structured ladder Z_RECVS ENO:= (EN, Un*, s, d1, d2); Z_RECVS Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data :Array of ANY16 [0..9]...
Page 155
Z_RECVS Control Data Device Item Setting data Setting range Setting side User Completion type 0 (Fixed) The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) Specify the channel of host station that stores receive data. Host station channel 1 to 8 User...
Page 157
MELSECNET/H CC-Link IE Universal model QCPU 1 to 120 controller network High Performance model QCPU 1 to 64 (2) Group specification to A0 : All stations in group numbers 1 to 32 (Available only at clock 1 to 120, data writing and remote RUN/STOP)
Page 158
J_REQ, G_REQ Device Item Setting data Setting range Setting side (Fixed value) User – For instruction execution 0 to 15 User Specify the number of resends when the instruction is not completed Number of resends within the monitoring time specified in [8].
Page 159
(Specification is not possible for other modules. An access is always made to the target station CPU.) *2 : Specification is possible when the versions of the QCPU and the network module on the host station and the target station are as indicated below.
Page 160
J_REQ, G_REQ (1) Remote RUN/STOP Request data (all set by the user) Remote Remote Device Item Description STOP 0010 : When station number is specified in ○ Request type 0030 : When all stations a group is specified in ○ 0001 : Remote RUN Sub-request type...
Page 161
J_REQ, G_REQ (2) Reading/writing the clock data Request data (all set by the user (indicated by ○ Read Write Device Item Setting data clock data clock data 0001 : Clock data read 0011 : Clock data write (When station number is specified in Request type [5]) ○...
Page 162
J_REQ, G_REQ Response data (all set by the system (indicated by ○ Read Write Device Item Setting data clock data clock data 0081 : Clock data read 0091 : Clock data write (When station number is specified in [5]) Request type ○...
Page 165
Z_RRUN_J, Z_RRUN_U Function This instruction remotely switches a CPU module on another station to RUN. Precautions This instruction is applicable with the QJ71LP21 or QJ71BR11 of function version B or later. 5.4 CC-Link IE Controller Network, MELSECNET/H, and Ethernet Instruction 5-127 5.4.10 RRUN instruction...
Page 167
Z_RSTOP_J, Z_RSTOP_U Function This instruction remotely switches a CPU module on another station to STOP. Precautions This instruction is applicable with the QJ71LP21 or QJ71BR11 of function version B or later. 5.4 CC-Link IE Controller Network, MELSECNET/H, and Ethernet Instruction 5-129 5.4.11 RSTOP instruction...
Page 169
Z_RTMRD_J, Z_RTMRD_U Function This instruction reads clock data from a CPU module on another station. Precautions This instruction is applicable with the QJ71LP21 or QJ71BR11 of function version B or later. 5.4 CC-Link IE Controller Network, MELSECNET/H, and Ethernet Instruction 5-131 5.4.12 RTMRD instruction...
Page 171
Z_RTMWR_J, Z_RTMWR_U Precautions This instruction is applicable with the QJ71LP21 or QJ71BR11 of function version B or later. 5.4 CC-Link IE Controller Network, MELSECNET/H, and Ethernet Instruction 5-133 5.4.13 RTMWR instruction...
Z_REMFR 5.4.14 REMFR instruction Z_REMFR Z(P)_REMFR P: Executing condition indicates any of the following Structured ladder instructions. Z_REMFR ZP_REMFR Z_REMFR ENO:= (EN, Jn*, n1, n2, n3, n4, n5, d1, d2); Z_REMFR Input argument Executing condition :Bit Jn*: Network number of the host station :String Channel number :ANY16...
Page 173
Z_REMFR Function This instruction reads data from the buffer memory of an intelligent function module on the remote I/O station. 5.4 CC-Link IE Controller Network, MELSECNET/H, and Ethernet Instruction 5-135 5.4.14 REMFR instruction...
Z_REMTO 5.4.15 REMTO instruction Z_REMTO Z(P)_REMTO P: Executing condition indicates any of the following Structured ladder instructions. Z_REMTO ZP_REMTO Z_REMTO ENO:= (EN, Jn*, n1, n2, n3, n4, n5, d1, d2); Z_REMTO Input argument Executing condition :Bit Jn*: Network number of the host station :String Channel number :ANY16...
Page 175
Z_REMTO Function This instruction writes data to the buffer memory of an intelligent function module on the remote I/ O station. 5.4 CC-Link IE Controller Network, MELSECNET/H, and Ethernet Instruction 5-137 5.4.15 REMTO instruction...
ZP_OPEN 5.4.16 OPEN instruction ZP_OPEN ZP_OPEN Executing condition indicates the following instruction. Structured ladder ZP_OPEN ZP_OPEN ENO:= (EN, Un*, s1, s2, d); ZP_OPEN Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Connection number (1 to 16) :ANY16...
Page 177
ZP_OPEN Control Data Device Item Setting data Setting range Setting side Specify whether to use the parameter values set by GX Works2 or the setting values of the following control data ( [2] to ) at open ○ ○ Execution type/ 0000 User processing of a connection.
ZP_CLOSE 5.4.17 CLOSE instruction ZP_CLOSE ZP_CLOSE Executing condition indicates the following instruction. Structured ladder ZP_CLOSE ZP_CLOSE ENO:= (EN, Un*, s1, s2, d); ZP_CLOSE Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Connection number (1 to 16) :ANY16...
ZP_BUFRCV 5.4.18 BUFRCV instruction ZP_BUFRCV ZP_BUFRCV Executing condition indicates the following instruction. Structured ladder ZP_BUFRCV ZP_BUFRCV ENO:= (EN, Un*, s1, s2, d1, d2); ZP_BUFRCV Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Connection number (1 to 16) :ANY16...
Page 180
ZP_BUFRCV Control Data Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) (1) Receive data Device Item Setting data...
Z_BUFRCVS 5.4.19 BUFRCVS instruction Z_BUFRCVS Z_BUFRCVS indicates the following instruction. Structured ladder Z_BUFRCVS Z_BUFRCVS ENO:= (EN, Un*, s, d); Z_BUFRCVS Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Connection number (1 to 16) :ANY16...
Page 182
Z_BUFRCVS Function This instruction reads receive data from external device in fixed buffer communication. This instruction is used in an interrupt program. (1) Receive data Device Item Setting data Setting range Setting side Data length of the data read from the fixed buffer data area is stored. (Data length becomes the number of words or the number of bytes –...
ZP_BUFSND 5.4.20 BUFSND instruction ZP_BUFSND ZP_BUFSND Executing condition indicates the following instruction. Structured ladder ZP_BUFSND ZP_BUFSND ENO:= (EN, Un*, s1, s2, s3, d1); ZP_BUFSND Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Connection number (1 to 16) :ANY16...
Page 184
ZP_BUFSND Control Data Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) (1) Send data Device Item Setting data...
ZP_ERRCLR 5.4.21 ERRCLR instruction ZP_ERRCLR ZP_ERRCLR Executing condition indicates the following instruction. Structured ladder ZP_ERRCLR ZP_ERRCLR ENO:= (EN, Un*, s, d); ZP_ERRCLR Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data :Array of ANY16 [0..7]...
Page 186
ZP_ERRCLR Control Data Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) Specify the error information to be cleared. 0000 : Initial error code 0001...
ZP_ERRRD 5.4.22 ERRRD instruction ZP_ERRRD ZP_ERRRD Executing condition indicates the following instruction. Structured ladder ZP_ERRRD ZP_ERRRD ENO:= (EN, Un*, s, d); ZP_ERRRD Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data :Array of ANY16 [0..7]...
Page 188
ZP_ERRRD Control Data Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) Specify the error information to be read. : Initial error code Read information User...
Z_UINI 5.4.23 UINI instruction Z_UINI Z(P)_UINI P: Executing condition indicates any of the following Structured ladder instructions. Z_UINI ZP_UINI Z_UINI ENO:= (EN, Un*, s, d); Z_UINI Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data :Array of ANY16 [0..5]...
Page 190
Z_UINI Control Data Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. : Normal completion System Completion status – Other than 0 : Error completion (error code) Ethernet Specify the parameter to be modified. b2 b1 b0 ②...
ZP_MRECV 5.4.24 MRECV instruction ZP_MRECV ZP_MRECV Executing condition indicates the following instruction. Structured ladder ZP_MRECV ZP_MRECV ENO:= (EN, Un*, s, d1, d2); ZP_MRECV Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data :Array of ANY16 [0..15]...
Page 192
ZP_MRECV Control Data Device Item Setting data Setting range Setting side b10 b9 ② ① Execution type (bit 9) Specify whether to inquire about existence of mails in the server after reading received mails. 0000 0: Not requested (not read) 0080 Execution/Error completion 1: Requested (read)
Page 193
ZP_MRECV Device Item Setting data Setting range Setting side Clock data at the time of error completion are stored in BCD format. b8 b7 [12] Year (00 to 99 ) Last two digits [12 ] Month (01 to 12 Clock data (set only when System –...
ZP_MSEND 5.4.25 MSEND instruction ZP_MSEND ZP_MSEND Executing condition indicates the following instruction. Structured ladder ZP_MSEND ZP_MSEND ENO:= (EN, Un*, s1, s2, d); ZP_MSEND Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data :Array of ANY16 [0..15]...
Page 195
ZP_MSEND Control Data Device Item Setting data Setting range Setting side ② ① Error completion type (bit 7) Specify the clock data setup status at the time of error completion. 0: Clock data at the time of error completion is not set in the area starting from [11].
Page 196
ZP_MSEND Device Item Setting data Setting range Setting side Valid/invalid status of the data in the area starting from [12] is stored. ○ System Clock set flag – [11] 0: Invalid 1: Valid Clock data at the time of error completion are stored in BCD format. b8 b7 [12] [12 ]...
S_PIDINIT PID Control Instruction (Inexact Differential) 5.5.1 PIDINIT instruction S_PIDINIT SP_PIDINIT P: Executing condition indicates any of the following instructions. Structured ladder S_PIDINIT S_PIDINIT SP_PIDINIT ENO:= (EN, s); S_PIDINIT Input argument Executing condition :Bit Start number of the device that stores PID control data :ANY16 Output argument ENO:...
Page 198
0. *1 : For the PID operational expressions to be set for Operational expression selection, refer to the following manual. QCPU (Q Mode)/QnACPU Programming Manual (PID Control Instructions) 5.5 PID Control Instruction (Inexact Differential) 5-160 5.5.1 PIDINIT instruction...
S_PIDINIT Setting range Processing when the Setting Device Data item Description setting data are outside the Without PID side With PID limits setting range limits Set the lower limit for the manipulated value (MV) calculated in PID operation in automatic MV lower limit -32768 to -50 to 2050...
Page 200
S_PIDINIT Setting range Processing when the Setting Device Data item Description setting data are outside the Without PID side With PID limits setting range limits (Fixed value) User – – Set a duration (delay in 0 to 32767 0 to 32767 action) for derivative (unit: 0.01) (unit: 0.01)
Page 201
The first five digits of the serial number are '05031' or lower. High Performance model QCPU The first five digits of the serial number are '05032' or higher. Universal model QCPU : Applicable, : Not applicable 5.5 PID Control Instruction (Inexact Differential) 5-163 5.5.1 PIDINIT instruction...
Page 202
S_PIDCONT 5.5.2 PIDCONT instruction S_PIDCONT S(P)_PIDCONT P: Executing condition indicates any of the following instructions. Structured ladder S_PIDCONT SP_PIDCONT S_PIDCONT ENO:= (EN, s); S_PIDCONT Input argument Executing condition :Bit Start number of the device that is assigned in I/O data area :ANY16 Output argument ENO:...
Page 203
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 the following manual. QCPU (Q Mode)/QnACPU Programming Manual (PID Control Instructions) 5.5 PID Control Instruction (Inexact Differential) 5-165...
S_PIDCONT Setting range Processing when the Setting Device Data name Description With PID Without PID setting data are outside the side limits limits setting range • Select whether the output to the D/A conversion module is a manual When other than 0 or 1 is 0: Automatic manipulated Manual/ manipulated value or...
Page 205
The first five digits of the serial number are '05031' or lower. High Performance model QCPU The first five digits of the serial number are '05032' or higher. Universal model QCPU : Applicable, : Not applicable 5.5 PID Control Instruction (Inexact Differential) 5-167 5.5.2 PIDCONT instruction...
'05031' or lower. High Performance model QCPU The first five digits of the serial number are '05032' or higher. Universal model QCPU : Applicable, : Not applicable 5.5 PID Control Instruction (Inexact Differential) 5-168 5.5.3 PIDSTOP instruction and PIDRUN instruction...
(unit: 10ms) (unit: 10ms) cycle. *1 : For the PID operational expressions set for Operational expression selection, refer to the following manual. QCPU (Q Mode)/QnACPU Programming Manual (PID Control Instructions) 5.5 PID Control Instruction (Inexact Differential) 5-169 5.5.4 PIDPRMW instruction...
Page 208
S_PIDPRMW Setting range Processing when the Setting Device Data item Description setting data are outside the Without PID side With PID limits setting range limits Proportional Proportional gain of PID 1 to 10000 1 to 10000 constant User operation (unit: 0.01) (unit: 0.01) 1 to 32767 1 to 32767...
Page 209
S_PIDPRMW Setting range Processing when the Setting Device Data item Description setting data are outside the Without PID With PID limits side setting range limits Set the variation limit between the previous In the case of "With PID MV and the present MV. limits", the PID operation is When the MV variation is performed after values are...
Page 210
The first five digits of the serial number are High Performance model '05031' or lower. QCPU The first five digits of the serial number are '05032' or higher. Universal model QCPU : Applicable, : Not applicable 5.5 PID Control Instruction (Inexact Differential) 5-172 5.5.4 PIDPRMW instruction...
PIDINIT PID Control Instruction (Exact Differential) 5.6.1 PIDINIT instruction PIDINIT PIDINIT(P) P: Executing condition indicates any of the following instructions. Structured ladder PIDINIT PIDINIT PIDINITP ENO:= (EN, s); PIDINIT Input argument Executing condition :Bit Start number of the device that stores PID control data :ANY16 Output argument ENO:...
Page 212
0. *1 : For the PID operational expressions set for Operational expression selection, refer to the following manual. QCPU(Q Mode)/QnACPU Programming Manual (PID Control Instructions) 5.6 PID Control Instruction (Exact Differential) 5-174 5.6.1 PIDINIT instruction...
PIDINIT Setting range Processing when the Setting Device Data item Description setting data are outside the Without PID side With PID limits setting range limits Set the lower limit for the manipulated value (MV) calculated in PID operation in automatic MV lower limit -32768 to -50 to 2050...
Page 214
PIDINIT Setting range Processing when the Setting Device Data item Description setting data are outside the Without PID side With PID limits setting range limits Setting data for No. 2 loop (device: +12 to +21) ○ ○ Operational expression selection Sampling cycle (TS) Proportional...
Page 215
PIDINIT Setting range Processing when the Setting Device Data item Description setting data are outside the Without PID With PID limits side setting range limits Operational expression +(m+0) selection Sampling cycle (TS) +(m+1) Proportional constant +(m+2) (KP) Integral constant +(m+3) (TI) Derivative constant...
Page 216
The first five digits of the serial number are '05031' or lower. High Performance model QCPU The first five digits of the serial number are '05032' or higher. Universal model QCPU : Applicable, : Not applicable 5.6 PID Control Instruction (Exact Differential) 5-178 5.6.1 PIDINIT instruction...
PIDCONT 5.6.2 PIDCONT instruction PIDCONT PIDCONT(P) P: Executing condition indicates any of the following instructions. Structured ladder PIDCONT PIDCONTP PIDCONT ENO:= (EN, s); PIDCONT Input argument Executing condition :Bit Start number of the device that is assigned in I/O data area :ANY16 Output argument ENO:...
Page 218
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 the following manual. QCPU(Q Mode)/QnACPU Programming Manual (PID Control Instructions) 5.6 PID Control Instruction (Exact Differential) 5-180...
Page 219
PIDCONT Setting range Processing when the Setting Device Data name Description setting data are outside With PID Without PID side the setting range limits limits In the case of "With PID limits", the PID operation is performed after values are •...
Page 220
PIDCONT Setting range Processing when the Setting Device Data name Description setting data are outside With PID Without PID side the setting range limits limits I/O data area for No. 2 loop (device: +28 to +45) ○ ○ Set value Process value Automatic...
Page 221
The first five digits of the serial number are '05031' or lower. High Performance model QCPU The first five digits of the serial number are '05032' or higher. Universal model QCPU : Applicable, : Not applicable 5.6 PID Control Instruction (Exact Differential) 5-183 5.6.2 PIDCONT instruction...
'05031' or lower. High Performance model QCPU The first five digits of the serial number are '05032' or higher. Universal model QCPU : Applicable, : Not applicable 5.6 PID Control Instruction (Exact Differential) 5-184 5.6.3 PIDSTOP instruction and PIDRUN instruction...
User (unit: 10ms) (unit: 10ms) cycle. *1 : For the PID operational expressions set for Operational expression selection, refer to the following manual. QCPU(Q Mode)/QnACPU Programming Manual (PID Control Instructions) 5.6 PID Control Instruction (Exact Differential) 5-185 5.6.4 PIDPRMW instruction...
Page 224
PIDPRMW Setting range Processing when the Setting Device Data item Description setting data are outside the Without PID side With PID limits setting range limits Proportional Proportional gain of PID 1 to 10000 1 to 10000 constant User operation (unit: 0.01) (unit: 0.01) (KP) 1 to 32767...
Page 225
The first five digits of the serial number are '05031' or lower. High Performance model QCPU The first five digits of the serial number are '05032' or higher. Universal model QCPU : Applicable, : Not applicable 5.6 PID Control Instruction (Exact Differential) 5-187 5.6.4 PIDPRMW instruction...
Z_ABRST1 Positioning Instruction 5.7.1 ABRST instruction Z_ABRST1 Z_ABRST1 Z_ABRST2 Executing condition: Z_ABRST3 Z_ABRST4 indicates any of the following instructions. Structured ladder Z_ABRST1 Z_ABRST1 Z_ABRST2 ENO:= (EN, Un*, s,d); Z_ABRST1 Z_ABRST3 Z_ABRST4 Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits)
Page 227
Z_ABRST1 Control Data Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. Completion status • 0 : Normal completion System – • Other than 0 : Error completion (error code) Write the following signal status read from the servo amplifier to the input module.
ZP_PSTRT1 5.7.2 PSTRT instruction ZP_PSTRT1 ZP_PSTRT1 ZP_PSTRT2 Executing condition : ZP_PSTRT3 ZP_PSTRT4 indicates any of the following instructions. Structured ladder ZP_PSTRT1 ZP_PSTRT1 ZP_PSTRT2 ENO:= (EN, Un*, s,d); ZP_PSTRT1 ZP_PSTRT3 ZP_PSTRT4 Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits)
Page 229
ZP_PSTRT1 Control Data Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. Completion status • 0 : Normal completion System – • Other than 0 : Error completion (error code) Specify the following data number to be started by the PSTRT instruction.
ZP_TEACH1 5.7.3 TEACH instruction ZP_TEACH1 ZP_TEACH1 ZP_TEACH2 Executing condition : ZP_TEACH3 ZP_TEACH4 indicates any of the following instructions. Structured ladder ZP_TEACH1 ZP_TEACH1 ZP_TEACH2 ENO:= (EN, Un*, s,d); ZP_TEACH1 ZP_TEACH3 ZP_TEACH4 Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits)
Page 231
ZP_TEACH1 Control Data Device Item Setting data Setting range Setting side System area – – – The instruction completion status is stored. Completion status • 0 : Normal completion System – • Other than 0 : Error completion (error code) Set the address (positioning address/circular address) to which the current feed value is written.
ZP_PFWRT 5.7.4 PFWRT instruction ZP_PFWRT ZP_PFWRT Executing condition : indicates the following instruction. ZP_PFWRT Structured ladder ZP_PFWRT ENO:= (EN, Un*, s,d); ZP_PFWRT Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data :Array of ANY16 [0..1]...
Z_PINIT 5.7.5 PINIT instruction Z_PINIT Z_PINIT Executing condition : indicates the following instruction. Z_PINIT Structured ladder Z_PINIT ENO:= (EN, Un*, s,d); Z_PINIT Input argument Executing condition :Bit Un*: Start I/O number of the module :String (00 to FE: Higher two digits when expressing the I/O number in three digits) Variable that stores control data :Array of ANY16 [0..1]...
Page 236
Modem interface instruction ........2-4 Modem interface module......... 1-3 ABRST (absolute position restoration)....5-188 Modules and Versions Applicable to Instructions..1-3 Analog instruction............ 2-3 MRECV (receiving e-mail)........5-153 Analog module ............1-3 MSEND (sending e-mail)........5-156 BIDIN (receiving data using bidirectional protocol Network number ............
Page 237
RSTOP (remote STOP) ........5-128 RTMRD (reading clock data)....... 5-130 RTMWR (writing clock data) ....... 5-132 SEND (sending data) .......... 5-109 Serial communication instruction ......2-4 Serial communication module ......... 1-3 Source..............3-3 SPBUSY (communication status check) ....5-61 SREAD (reading data from a word device) ..5-100 SWRITE (writing data to a word device) .....
Page 239
Gratis Warranty Term and Gratis Warranty Range If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term, the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company.
Page 240
Microsoft, Windows are registered trademarks of Microsoft Corporation in the United States and other countries. Ethernet is a registered trademark of Xerox Corporation in the United States. Other company names and product names used in this document are trademarks or registered trademarks of respective companies.
Page 242
QCPU Structured Programming Manual (Special Instructions) HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN NAGOYA WORKS : 1-14 , YADA-MINAMI 5-CHOME , HIGASHI-KU, NAGOYA , JAPAN When exported from Japan, this manual does not require application to the Ministry of Economy, Trade and Industry for service transaction permission.