Mitsubishi MELSEC-Q series Programming Manual
Mitsubishi MELSEC-Q series Programming Manual

Mitsubishi MELSEC-Q series Programming Manual

Process control instructions
Hide thumbs Also See for MELSEC-Q series:
Table of Contents

Advertisement

MELSEC-Q
Programming/Structured Programming Manual
(Process Control Instructions)

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi MELSEC-Q series

  • Page 1 MELSEC-Q Programming/Structured Programming Manual (Process Control Instructions)
  • Page 3: Safety Precautions

    SAFETY PRECAUTIONS (Always read these cautions before using the product) Before using MELSEC-Q series programmable controllers, please read the manuals included with each product and the relevant manuals introduced in those manuals carefully, and pay full attention to safety to handle the product correctly.
  • Page 4: Conditions Of Use For The Product

    CONDITIONS OF USE FOR THE PRODUCT (1) Mitsubishi programmable controller ("the PRODUCT") shall be used in conditions; i) where any problem, fault or failure occurring in the PRODUCT, if any, shall not lead to any major or serious accident; and ii) where the backup and fail-safe function are systematically or automatically provided outside of the PRODUCT for the case of any problem, fault or failure occurring in the PRODUCT.
  • Page 5: Introduction

    INTRODUCTION Thank you for purchasing the Mitsubishi MELSEC-Q series programmable controllers. Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the Q series programmable controller to handle the product correctly.
  • Page 6: Table Of Contents

    CONTENTS CONTENTS SAFETY PRECAUTIONS ............. 1 CONDITIONS OF USE FOR THE PRODUCT .
  • Page 7 CHAPTER 5 EXECUTION CONDITION SWITCHING AND FUNCTIONS Execution Condition Switching..........35 5.1.1 Loop RUN/STOP .
  • Page 8 9.14 S.LS Low Selector ......159 9.15 S.MID Middle Value Selection .....161 9.16 S.AVE Average Value .
  • Page 9 CHAPTER 14 ERROR CODES 14.1 List of Error Codes ............253 APPENDICES Appendix 1Program Example .
  • Page 10: Relevant Manuals

    RELEVANT MANUALS Manual number Manual name (model code) QCPU User's Manual (Hardware Design, Maintenance and Inspection) Specifications of the CPU modules, power supply modules, base units, extension cables, memory cards, SD memory SH-080483ENG cards, extended SRAM cassettes, and batteries, information on how to establish a system, maintenance and (13JR73) inspection, and troubleshooting (Sold separately)
  • Page 11: Terms

    TERMS Unless otherwise specified, this manual uses the following terms. Term Description QnPHCPU A generic term for the Q02PHCPU, Q06PHCPU, Q12PHCPU, and Q25PHCPU QnPRHCPU A generic term for the Q12PRHCPU and Q25PRHCPU QnUDPVCPU A generic term for the Q04UDPVCPU, Q06UDPVCPU, Q13UDPVCPU, and Q26UDPVCPU Instructions are written in three programming languages: ladder diagram for Simple projects, structured ladder/FBD and structured text language for Structured projects.
  • Page 12: Chapter 1 Overview

    CHAPTER 1 OVERVIEW This manual describes the process control instructions equipped for the CPU module. Features The process control instructions have the following features. (1) Use of floating-point data Capable of handling floating-point type real number data, the instructions can perform wide-range and accurate operations.
  • Page 13 (3) Free combination of process control instructions for application to a wide range of control As an option, a process control instruction can be inserted in a loop that links process control instructions. Add the square root operation instruction (S.SQR) to perform the square root operation of an input signal to provide an output signal as shown below.
  • Page 14 (5) PID algorithm using a velocity type incomplete differential format Partial differential has the following advantages over the complete differential format. (a) The differential gain is 1/ and the limit value can be set. (b) The output contains time amplitude, so the system actually responds to the operation edge so the derivative operation makes the movement valid.
  • Page 15: Pid Control Overview

    PID Control Overview PID control is applied to the process control of flow rate, speed, air volume, temperature, tension, compounding or like. In the following application, a value of a control target system can be kept at a set value with PID control. Subdivided (micro-blocked) processings Process control instructions of PID control...
  • Page 16: Pid Control Details

    PID Control Details This section explains "proportional operation", "integral operation" and "derivative operation" performed for PID control using the process control instructions. 1.4.1 Proportional operation (P operation) This section explains the control method using proportional operation. (1) Proportional operation is the action that compares the deviation (DV, difference between the set value and the process value) to find the manipulated value (MV).
  • Page 17: Integral Operation (I Operation)

    1.4.2 Integral operation (I operation) This section explains the control method using integral operation. (1) Integral operation is the operation that continuously changes the manipulated value to eliminate deviation when there is deviation. This operation can eliminate the offset that occurs during control performed by a proportional operation. (2) The time required for adjusting the manipulated value of the integral operation to the manipulated value of the proportional operation after the deviation is detected is called integral time (T (a) Increasing the integral time decreases the effect of integration.
  • Page 18: Derivative Operation (D Operation)

    1.4.3 Derivative operation (D operation) This section explains the control method using the derivative operation. (1) The derivative operation is an operation that adds the proportional manipulated value to the change speed to eliminate deviation when a deviation has occurred. The derivative operation can prevent large changes in the object control from disturbances.
  • Page 19: Pid Operation

    1.4.4 PID operation This section explains the control operation using combinations of proportional operation (P operation), integral operation (I operation), and derivative operation (D operation). (1) The PID operation controls the calculated manipulated value using (P + I + D) operation. (2) The PID operation in the case of a step response with a constant deviation will be as follows.
  • Page 20: Chapter 2 Structure And Combinations Of Process Control Instructions

    CHAPTER 2 STRUCTURE AND COMBINATIONS OF PROCESS CONTROL INSTRUCTIONS Structure of Instructions The instructions that can be used by the process control instructions can be divided into the "instruction part" and "device part". The instruction part and device part are as follows. •...
  • Page 21: How To Specify Data In Devices

    How to Specify Data in Devices The following 4 types of data can be used by the process control instructions. Data that can be used by the Bit data process control instructions Numeric data Integer data Word data Double word data Real number data (floating-point data) 2.2.1...
  • Page 22: In The Case Of Double Word (32-Bit) Data

    2.2.3 In the case of double word (32-bit) data Double word data is 32-bit numeric data. • Decimal constant......K-2147483648 to K2147483647 • Hexadecimal constant....H00000000 to HFFFFFFFF When using double word data, specify the word device to be used in the lower-order 16 bits. The 32-bit data is stored into the (specified word device number) and ((specified word device number) + 1).
  • Page 23: Operation Errors

    2.2.5 Operation errors Operation errors caused by process control instructions are stored in the following remote register. For errors other than operation errors, refer to the error codes listed in the QCPU User's Manual (Hardware Design, Maintenance and Inspection). (The error code is stored in SD0.) Remark The following errors (other than operation errors) are also stored in the special register.
  • Page 24: Basic Loop Types Available By Combinations Of Process Control Instructions

    Basic Loop Types Available by Combinations of Process Control Instructions Loop type Structure Application Used for general PID control (2-degree- 2-degree-of-freedom PID S.IN S.PHPL S.2PID S.OUT1 of-freedom). (velocity type) INPUT OUTPUT control Conducts PID operations for each (S2PID) control cycle. S.IN S.PHPL S.2PID...
  • Page 25 Loop type Structure Application Program setting device This is output in accordance with the S.PGS OUTPUT (SPGS) previously set value time change. Manual output This manually operates the operation S.MOUT OUTPUT (SMOUT) terminal end. This inputs the process value and Monitor detects process errors such as upper/ S.IN...
  • Page 26: Chapter 3 Data Used For Process Control Instructions And How To Specify Data

    CHAPTER 3 DATA USED FOR PROCESS CONTROL INSTRUCTIONS AND HOW TO SPECIFY DATA Process Control Instructions and Data Structure This section explains the data structure (data flow) used for process control instructions. (a) Configuration when using loop tag 1) The loop units have common storage areas that show the control information. This collection of common information is called a loop tag and the storage memory is called the loop tag memory.
  • Page 27 (b) Loop tag memory and operation constant locations in ladder diagram [Ladder diagram] Use name instruction common table. Loop tag memory (96 words) Loop tag memory setting Instruction Standard Item Data type used value setting Operation constant setting BIN16bit BIN16bit MODE Execution command BIN16bit...
  • Page 28: Local Work Memory

    Local Work Memory Local work memory is used as a temporary storage area in process control instruction operation. (The memory is used for each micro block.) The following instructions use the local work memory. Instruction Remarks S.LLAG (Lead-Lag) S.D (Derivative) S.DED (Dead time) The system stores the midway operation results.
  • Page 29: Data Used For Process Control Instructions

    Data Used for Process Control Instructions The following data are used for the process control instructions. • Loop tag memory Page 27, Section 3.3.1 • Input data Page 28, Section 3.3.2 • Block memory Page 29, Section 3.3.3 • Operation constant Page 29, Section 3.3.4 •...
  • Page 30: Input Data

    (3) Loop tag past value memory (a) The loop tag past value memory is an area used by the CPU module system at the time of process control instruction execution. The user cannot write data to this memory during run. If the user writes data to the loop tag past value memory during run, normal operation cannot be performed.
  • Page 31: Block Memory

    3.3.3 Block memory The block memory is an area that stores the output information of the corresponding process control instruction. The block memory has "block words" and "block bits". The application of the block memory changes depending on the used instruction. Refer to the explanation section of the corresponding instruction.
  • Page 32: Loop Tag Memory Allocation Contents

    3.3.5 Loop tag memory allocation contents The loop tag memory allocation contents are shown below. After setting some values are changed by Show the number of Instructions Abbreviated name the numbers from the operation results. words from the loop used in loop tag of each item (Highlighted areas) tag header...
  • Page 33 S: Stored by the system U: Set by the user Flag Name Abbreviation Description establishment conditions Shows the loop stop status. Changes the loop mode to manual. Stop alarm Conducts stop alarm processing for the output value (BW) and alarm signal.
  • Page 34 (c) MODE The process control instructions have the following operation modes that satisfy the following operations in a system connected to an operator station, programmable controller, host computer, machine side operation panel and like. For MODE make one of them a 1 bit only flag 1. Operation mode Description Application...
  • Page 35: Chapter 4 How To Execute Process Control Instructions

    CHAPTER 4 HOW TO EXECUTE PROCESS CONTROL INSTRUCTIONS Execution Cycle and Control Cycle (1) Execution cycle (a) An execution cycle is an interval at which the process control instruction is executed. (b) There are the following methods to execute the process control instruction in each execution cycle. 1) Method using timer A timer is used to measure the execution cycle and the process control instruction is executed when the timer times out.
  • Page 36: Concept Of Program

    Concept of Program [Program example using S.2PID instruction at execution cycle of 1s] Loop tag memory setting Loop tag memory setting Operation constant setting Operation constant setting Setting of data for S.IN, S.PHPL, S.2PID and S.OUT1 Execution (1s) command Execution cycle measurement PLS M0 MOV U0\GO D0 Input data (PV) setting...
  • Page 37: Execution Condition Switching

    CHAPTER 5 EXECUTION CONDITION SWITCHING AND FUNCTIONS Execution Condition Switching 5.1.1 Loop RUN/STOP If any loop component such as a detector or operation end other than the programmable controller fails, each loop can be run/ stopped to perform the maintenance of the corresponding loop. The "SPA"...
  • Page 38: Functions

    Functions 5.2.1 Tracking function The tracking function includes the "bumpless function" and "output limiter processing". (1) Bumpless function The bumpless function prevents manipulated value (MV) output stepping changes when switching from the automatic mode to manual mode and continuously controls MV output. (2) Output limiter processing function The output limiter processing function limits the upper limit and lower limit of the manipulated value (MV) output by the PID operation during the automatic mode.
  • Page 39: Loop Selector Tracking

    (2) Make the following settings to perform tracking. (Tracking is performed when the operation mode is switched to other than CAS, CSV or CCB.) For 2-degree-of-freedom PID (S.2PID), set the following operation constant items to specify tracking. Setting item Setting Tracking bit (TRK) 1 (Tracking performed) Set value pattern...
  • Page 40: Chapter 6 Instructions

    CHAPTER 6 INSTRUCTIONS How to Read the Instruction List Process control instructions are classified into six categories: I/O control instructions, control operation instructions, compensation operation instructions, arithmetic operation instructions, comparison operation instructions, and auto tuning instructions. I/O control instruction 3) 4) 1) Instructions are classified by their application.
  • Page 41 5) A written format in the structured text language Outputs an execution status. Inputs the execution condition of an instruction. ENO:=S_OUT2 (EN, s1, s2, d1, d2) Shows the destination side. Shows the source side. Shows the instruction symbol. 6) Details of processing performed by the instruction 7) The number of steps in the instruction.
  • Page 42: List Of Instructions

    List of Instructions 6.2.1 I/O control instructions Instruction Number of Category Symbol Processing details Reference symbol steps S.IN S1 D1 S2 D2 Conducts the input data (PV) Upper/ S_IN lower limit check, input limiter S.IN Page 54 processing, engineering value conversion, and digital filter processing.
  • Page 43: Control Operation Instructions

    Instruction Number of Category Symbol Processing details Reference symbol steps S.BC S1 D1 S2 D2 S_BC Compares the input data with the set S.BC value and outputs bit data as soon as Page 81 the input data reaches the set value. I/O control ENO:=S_BC(EN,s1,s2,d1,d2);...
  • Page 44 Instruction Number of Category Symbol Processing details Reference symbol steps S.SPI S1 D1 S2 D2 Judges between the operating time and hold time, and if it is the operating time, S_SPI performs SV setting processing, S.SPI Page 115 tracking processing, gain Kp operation processing, SPI operation and deviation check.
  • Page 45 Instruction Number of Category Symbol Processing details Reference symbol steps S1 D1 S2 D2 Conducts integral operations on the input data and outputs the operation Page 150 results. ENO:=S_I(EN,s1,s2,d1,d2); S1 D1 S2 D2 Conducts Derivative operations on the input data and outputs the operation Page 152 results.
  • Page 46 Instruction Number of Category Symbol Processing details Reference symbol steps S1 D1 S2 D2 S.AVE S_AVE Calculates and outputs the average S.AVE Page 164 value of the input data. ENO:=S_AVE(EN,s1,s2,d1,d2); S.LIMT S1 D1 S2 D2 S_LIMT S.LIMT Limits the output value with hysteresis. Page 166 ENO:=S_LIMT(EN,s1,s2,d1,d2);...
  • Page 47 Instruction Number of Category Symbol Processing details Reference symbol steps S.DBND S1 D1 S2 D2 S_DBND Provides a dead band and performs S.DBND Page 186 output processing. ENO:=S_DBND(EN,s1,s2,d1,d2); S.PGS S1 D1 S2 D2 S_PGS Provides a control output according to S.PGS Page 188 the SV and MV pattern.
  • Page 48: Compensation Operation Instructions

    6.2.3 Compensation operation instructions Instruction Number of Category Symbol Processing details Reference symbol steps S.FG S1 D1 S2 D2 S_FG Outputs the value that follows the S.FG function generator pattern whose input Page 205 data is specified. ENO:=S_FG(EN,s1,s2,d1,d2); S.IFG S1 D1 S2 D2 S_IFG Outputs the value that follows the S.IFG...
  • Page 49: Arithmetic Operation Instructions

    Instruction Number of Category Symbol Processing details Reference symbol steps S.IENG S1 D1 S2 D2 S_IENG Compensa- Reversely converts the input data from tion operation S.IENG the engineering value and outputs the Page 219 instruction result. ENO:=S_IENG(EN,s1,s2,d1,d2); 6.2.4 Arithmetic operation instructions Instruction Number of Category...
  • Page 50: Comparison Operation Instructions

    Instruction Number of Category Symbol Processing details Reference symbol steps S.SQR S1 D1 S2 D2 S_SQR Outputs the square root ( ) of the S.SQR Page 229 input data. Arithmetic ENO:=S_SQR(EN,s1,s2,d1,d2); operation instruction S.ABS S1 D1 S2 D2 S_ABS Outputs the absolute value of the input S.ABS Page 231 data.
  • Page 51: Auto Tuning Instructions

    Instruction Number of Category Symbol Processing details Reference symbol steps S1 D1 S2 D2 S_GE Compares the input data and outputs S. >= Page 239 the result of comparison. Comparison ENO:=S_GE(EN,s1,s2,d1,d2); operation instruction S1 D1 S2 D2 S_LE Compares the input data and outputs S.
  • Page 52: Chapter 7 How To Read Instruction Details

    CHAPTER 7 HOW TO READ INSTRUCTION DETAILS This chapter explains the page layout for chapters that describe instruction details (Chapter 8 to 13). The descriptions in this chapter are for explanation purpose only, and are different from the actual pages.
  • Page 53 1) A section number, instruction name, and instruction symbol 2) A written format in the ladder diagram and execution conditions Execution condition During on Symbol shown on the reference page 3) Written formats in the structured ladder/FBD and structured text language 4) Explanations of the setting data.
  • Page 54 7) The processing flow of the instruction 8) List of control data. S and U in the Set by column means: • S: Stored by the system • U: Set by the user...
  • Page 55 9) Processing details of the instruction 10) Error conditions and error codes For errors other than described here, refer to the QCPU User's Manual (Hardware Design, Maintenance and Inspection).
  • Page 56: Chapter 8 I/O Control Instructions

    S.IN CHAPTER 8 I/O CONTROL INSTRUCTIONS S.IN Analog Input Processing S.IN Ladder diagram Start contact S.IN S.IN Structured ladder/FBD Structured text language S_IN ENO:=S_IN(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of real data type (0..7) Output argument...
  • Page 57 S.IN Set Data Block diagram The processing block diagram of the S.IN instruction is shown below. (The numerals (1) to (5) in the diagram indicate the order of the processing.) HH, H, L, LL NMAX, NMIN EMAX, EMIN Engineering Range check Input limiter value reverse Digital filter...
  • Page 58 S.IN Standard Specified position Symbol Name Unit Data format Recommended range value Engineering Real EMAX conversion -999999 to 999999 100.0 number upper limit Engineering Real EMIN conversion -999999 to 999999 number lower limit Input upper Real NMAX -999999 to 999999 ––...
  • Page 59 S.IN Set Data Processing contents (1) Range check (a) A range check is performed on the input value (E1). An alarm is output if the input value (E1) exceeds the upper/lower limit value. Range check result (alarm output) Range check Condition BB1, SEA E1 ...
  • Page 60 S.IN (3) Engineering value reverse conversion The result (T1) of the input limiter is converted reversely from the engineering value according to the following expression. EMAX NMIN (EMAX EMIN) EMIN NMAX NMIN EMIN NMIN NMAX (4) Digital filter The input value (E1) is digitally filtered according to the following expression. The digital filter is used to reduce noise.
  • Page 61: S.out1

    S.OUT1 S.OUT1 Output Processing-1 with Mode Switching S.OUT1 Ladder diagram Start contact S.OUT1 S.OUT1 Structured ladder/FBD Structured text language S_OUT1 ENO:=S_OUT1(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of real data type (0..1) Output argument : Execution result...
  • Page 62 S.OUT1 Set Data Block diagram The processing block diagram of the S.OUT1 instruction is shown below. (The numerals (1) to (6) in the diagram indicate the order of the processing.) MH, ML, DML NMAX, NMIN or like Change rate, Output Mode Input addition upper/lower...
  • Page 63 S.OUT1 Set Data Set Data (1) Data specified in S.OUT1 instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input value Real Input data -999999 to 999999 –– number Real Output value (-999999 to 999999) –– –– number ––...
  • Page 64 S.OUT1 Standard Specified position Symbol Name Unit Data format Recommended range value Output upper Real -10 to 110 100.0 limit value number Output lower Real -10 to 110 limit value number Output change Real Loop tag rate 0 to 100 100.0 number limit value...
  • Page 65 S.OUT1 (2) Input addition processing The temporary MV (T) is calculated on the basis of the input value (E1 = MV). (a) When the tracking flag (TRKF) of the alarm detection inhibition (INH) is 1, the following processing is performed. 1) The manipulated value (MV) is stored into the MV internal operation value (MVP).
  • Page 66 S.OUT1 (4) Reset windup If the manipulated value (MV) exceeds the upper/lower limit value, the following operation is performed to return it to the upper/lower limit value and enable immediate response when the deviation is inverted. However, when the integral constant (T1) is 0, the reset windup processing is not performed. Condition Operation expression When T1 >...
  • Page 67: S.out2

    S.OUT2 S.OUT2 Output Processing-2 with Mode Switching S.OUT2 Ladder diagram Start contact S.OUT2 S.OUT2 Structured ladder/FBD Structured text language S_OUT2 ENO:=S_OUT2(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of real data type (0..1) Output argument : Execution result...
  • Page 68 S.OUT2 Set Data Block diagram The processing block diagram of the S.OUT2 instruction is shown below. (The numerals (1) to (4) in the diagram indicate the order of the processing.) MH, ML, DML NMAX, NMIN Change rate, Output Mode upper/lower conversion AUT or like judgment...
  • Page 69 S.OUT2 Set Data Set Data (1) Data specified in S.OUT2 instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input Real Input data -999999 to 999999 –– value(MV) number Real Output value (-999999 to 999999) –– –– number Alarm Block...
  • Page 70 S.OUT2 Set Data Processing contents (1) Mode judgment Either of the following processings is performed depending on the operation mode (MODE). (a) When the operation mode (MODE) is any of MAN, CMB, CMV and LCM (alarm clear processing) 1) MHA, MLA and DMLA of the alarm detection (ALM) are turned to 0. 2) BB1 to BB4 of BB are turned to 0.
  • Page 71 S.OUT2 (4) Loop stop processing (a) Setting 1 in SPA of the alarm detection (ALM) selects a loop stop. A loop stop performs the following processing and terminates the S.OUT2 instruction. 1) BW retains the last value. 2) DMLA, MHA and MLA of the alarm detection (ALM) are turned to 0. 3) The operation mode (MODE) is changed to MAN.
  • Page 72: S.mout

    S.MOUT S.MOUT Manual Output S.MOUT Ladder diagram Start contact S.MOUT S.MOUT Structured ladder/FBD Structured text language S_MOUT ENO:=S_MOUT(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Dummy device : Real data type : Operation constant start device : Array of real data type (0..1) Output argument : Execution result : Bit...
  • Page 73 S.MOUT Set Data Block diagram The processing block diagram of the S.MOUT instruction is shown below. (The numerals (1) to (3) in the diagram indicate the order of the processing.) NMAX, NMIN MAN or like Mode Output judgment conversion RUN(SPA 0) AUT or like Last BW Loop...
  • Page 74 S.MOUT Set Data Set Data (1) Data specified in S.MOUT instruction Standard Specified position Symbol Name Unit Data format Recommended range value Block Real Output value (-999999 to 999999) –– –– memory number Output Real NMAX conversion -999999 to 999999 ––...
  • Page 75 S.MOUT (3) Loop stop processing (a) Setting 1 in SPA of the alarm detection (ALM) selects a loop stop. A loop stop performs the following processing and terminates the S.MOUT instruction. 1) BW retains the last value. 2) The operation mode (MODE) is changed to MAN. (b) Setting 0 in SPA of the alarm detection (ALM) selects a loop run.
  • Page 76: S.duty

    S.DUTY S.DUTY Time Proportioning S.DUTY Ladder diagram Start contact S.DUTY S.DUTY Structured ladder/FBD Structured text language S_DUTY ENO:=S_DUTY(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Dummy device : Any 16-bit data Output argument : Execution result : Bit...
  • Page 77 S.DUTY Set Data Block diagram The processing block diagram of the S.DUTY instruction is shown below. (The numerals (1) to (7) in the diagram indicate the order of the processing.) MH, ML, DML CTDUTY or like Input Change rate, Output Mode Output Reset...
  • Page 78 S.DUTY Set Data Set Data (1) Data specified in S.DUTY instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input value Real Input data -999999 to 999999 –– number ( MV) –– Output bit –– –– 16Bit (0: OFF) (1: ON) Block...
  • Page 79 S.DUTY Standard Specified position Symbol Name Unit Data format Recommended range value Output upper Real -10 to 110 100.0 limit value number Output lower Real -10 to 110 limit value number Output Real change rate 0 to 100 100.0 Loop tag number limit value memory...
  • Page 80 S.DUTY Set Data Processing contents (1) Mode judgment Either of the following processings is performed depending on the operation mode (MODE). (a) When the operation mode (MODE) is any of MAN, CMB, CMV and LCM (alarm clear processing) 1) MHA, MLA and DMLA of the alarm detection (ALM) are turned to 0. 2) MHA2 and MLA2 of the alarm detection 2 (ALM2) are turned to 0.
  • Page 81 S.DUTY (4) Reset windup If the manipulated value (MV) exceeds the upper/lower limit value, the following operation is performed to return it to the upper/lower limit value and enable immediate response when the deviation is inverted. However, when the integral constant (T1) is 0, the reset windup processing is not performed. Condition Operation expression When T1 >...
  • Page 82 S.DUTY SM1501 = ON: Manipulated value (MV) will be held. Operation Error In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0. Error code Error definition QnPHCPU QnPRHCPU QnUDPVCPU When an operation error occurs ––...
  • Page 83: S.bc

    S.BC S.BC Batch Counter S.BC Ladder diagram Start contact S.BC S.BC Structured ladder/FBD Structured text language S_BC ENO:=S_BC(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Any 32-bit data : Dummy device : Any 16-bit data Output argument : Execution result : Bit...
  • Page 84 S.BC Set Data Set Data (1) Data specified in S.BC instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input data Input value 0 to 2147483647 –– –– 32Bit –– Output1 –– –– 16Bit Output2 (0: OFF) (1: ON) Block memory...
  • Page 85 S.BC Standard Specified position Symbol Name Unit Data format Recommended range value Loop tag +124 past value –– –– Used by the system as a work area. –– –– –– memory *2 *3 +127 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the system.
  • Page 86 S.BC (2) Change rate check processing Performs a change rate alarm check during the change rate alarm check time (CTIM) specified in the loop tag memory. The change rate alarm check compares the change of the input value (E1) with the change rate alarm value (DPL) in each execution cycle ( T).
  • Page 87: S.psum

    S.PSUM S.PSUM Pulse Integration S.PSUM Ladder diagram Start contact S.PSUM S.PSUM Structured ladder/FBD Structured text language S_PSUM ENO:=S_PSUM(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..2) : Operation constant start device : Array of any 16-bit data (0..4) Output argument : Execution result...
  • Page 88 S.PSUM (1) Operation performed when the integration pattern is set to "integrated value returns to 0 when the integration upper limit value is exceeded" Integration start Reset Start Reset Start Reset signal (e1) When e1 turns OFF e2 should also turn OFF. Integration hold Hold cancel Hold cancel...
  • Page 89 S.PSUM Set Data Set Data (1) Data specified in S.PSUM instruction Data Standard Specified position Symbol Name Unit Recommended range format value Use the ring counter of 16 bits or more. • 16-bit ring counter 00000000 0000FFFF 00000000 • 24-bit ring counter 00000000 00FFFFFF 00000000...
  • Page 90 S.PSUM Data Standard Specified position Symbol Name Unit Recommended range format value Loop tag past value +116 –– –– Used by the system as a work area. –– –– –– memory +117 *2 *3 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the system.
  • Page 91 S.PSUM (3) Output conversion In the output conversion, the following processing is performed for the integrated value (T2, T3). SUMPTN Condition BW1, SUM1 BW2, SUM2 BW1 = remainder of T2 / HILMT BW2 = T3 T2  HILMT SUM1 = remainder of T2 / HILMT SUM2 = T3 BW1 = T2 BW2 = T3...
  • Page 92: Chapter 9 Control Operation Instructions

    S.PID CHAPTER 9 CONTROL OPERATION INSTRUCTIONS S.PID Basic PID S.PID Ladder diagram Start contact S.PID S.PID Structured ladder/FBD Structured text language S_PID ENO:=S_PID(EN,s1,s2,s3,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of any 16-bit data (0..6) : When set value (E2) is used: Set value start device : Real data type...
  • Page 93 S.PID Set Data Block diagram The processing block diagram of the S.PID instruction is shown below. (The numerals (1) to (7) in the diagram indicate the order of the processing.) P, I, D, MTD, CT DVL, DVLS Gain Kp SV setting Tracking Deviation operation...
  • Page 94 S.PID Set Data Set Data (1) Data specified in S.PID instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input Real Input value -999999 to 999999 –– –– data number Output value Real (-999999 to 999999) –– ––...
  • Page 95 S.PID Standard Specified position Symbol Name Unit Data format Recommended range value 0 to FFFF Operation MODE –– mode 16bit 0 to FFFF Alarm 4000 –– detection 16bit DVLA,MHA,MLA 0:Loop RUN (0:Without alarm) 1:Loop STOP (1:With alarm) 0 to FFFF Alarm TRKF 4000...
  • Page 96 S.PID Standard Specified position Symbol Name Unit Data format Recommended range value Real Gap gain 0 to 999999 –– number Loop tag MV Inside memory Real operation (-999999 to 999999) number value Loop tag past value –– –– Used by the system as a work area. ––...
  • Page 97 S.PID Set Data Processing contents (1) SV setting processing Either of the following processings is performed depending on the operation mode (MODE) setting. (a) When the operation mode (MODE) is any of CAS, CCB and CSV 1) When the set value (E2) is specified, engineering value conversion is performed with the following expression and then "(2) Tracking processing"...
  • Page 98 S.PID (4) PID operation PID operation is performed with the following operation expression. Item Operation expression ×T CT×B When forward operation (PN=1) × {(PV - 2PV + PV ×CT+T ×T CT×B When reverse operation (PN=0) × { - (PV - 2PV + PV ×CT+T {(DV...
  • Page 99 S.PID (7) Control cycle judgment (a) If the specified control cycle is not reached, BW ( MV) is turned to 0 and the S.PID instruction is terminated. (b) When the specified control cycle is reached, "(1) SV setting processing" is performed. Operation Error In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
  • Page 100: S.2Pid

    S.2PID S.2PID 2-degree-of-freedom PID Control S.2PID Ladder diagram Start contact S.2PID S.2PID Structured ladder/FBD Structured text language S_2PID ENO:=S_2PID(EN,s1,s2,s3,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of any 16-bit data (0..6) : When set value (E2) is used: Set value start device : Real data type...
  • Page 101 S.2PID Set Data Block diagram The processing block diagram of the S.2PID instruction is shown below. (The numerals (1) to (7) in the diagram indicate the order of the processing.) RL, RH P, I, D, MTD, CT DVL, DVLS Gain Kp 2-degree-of- SV setting Tracking...
  • Page 102 S.2PID Set Data Set Data (1) Data specified in S.2PID instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input Real Input value -999999 to 999999 –– data number Output value Real (-999999 to 999999) –– number ( MV) ––...
  • Page 103 S.2PID Standard Specified position Symbol Name Unit Data format Recommended range value 0 to FFFF Operation MODE –– mode 16bit 0 to FFFF Alarm detection 4000 –– 16bit DVLA,DMLA,MHA,MLA 0:Loop RUN (0:Without alarm) 1:Loop STOP (1:With alarm) 0 to FFFF Alarm 4000 detection...
  • Page 104 S.2PID Standard Specified position Symbol Name Unit Data format Recommended range value Real Gap gain 0 to 999999 –– number MV inside Real (-999999 to 999999) operation value number Loop tag 2 degree-of- Real freedom 0 to 1 –– memory number parameter 2 degree-of-...
  • Page 105 S.2PID The control cycle counter rounds off the data to the nearest whole number. (2) Execution cycle ( T) Set the execution cycle in SD1500 and SD1501 as real numbers. Set Data Processing contents (1) SV setting processing Either of the following processings is performed depending on the operation mode (MODE) setting. (a) When the operation mode (MODE) is any of CAS, CCB and CSV 1) When the set value (E2) is specified, engineering value conversion is performed with the following expression and then "(2) Tracking processing"...
  • Page 106 S.2PID (4) 2-degree-of-freedom PID operation 2-degree-of-freedom PID operation is performed with the following operation expression. Item Operation expression ×T CT×B × {(DV - 2DV + DV ×CT+T - PV When forward operation (PN=1) When reverse operation (PN=0) - (PV - PV ×T CT×D When forward operation (PN=1)
  • Page 107 S.2PID (6) Loop stop processing (a) Setting 1 in SPA of the alarm detection (ALM) selects a loop stop. A loop stop performs the following processing and terminates the S.2PID instruction. 1) BW is turned to 0. 2) DVLA of the alarm detection (ALM) is turned to 0. 3) The operation mode (MODE) is changed to MAN.
  • Page 108: S.pidp

    S.PIDP S.PIDP Position Type PID Control S.PIDP Ladder diagram Start contact S.PIDP S.PIDP Structured ladder/FBD Structured text language S_PIDP ENO:=S_PIDP(EN,s1,s2,s3,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of any 16-bit data (0..10) : When set value (E2) is used: Set value start device : Real data type...
  • Page 109 S.PIDP Set Data Block diagram The processing block diagram of the S.PIDP instruction is shown below. (The numerals (1) to (10) in the diagram indicate the order of the processing.) MH, ML, P, I, D, MTD, CT DVL, DVLS RH, RL GW,GG NMIN, NMAX Change...
  • Page 110 S.PIDP Set Data Set Data (1) Data specified in S.PIDP instruction Standard Specified position Symbol Name Unit Data format Recommended range value Real Input data Input value -999999 to 999999 –– number Real Output value (-999999 to 999999) –– –– number ––...
  • Page 111 S.PIDP Standard Specified position Symbol Name Unit Data format Recommended range value 0 to FFFF Operation MODE –– mode 16bit 0 to FFFF Alarm detection 4000 –– 16bit DVLA,DMLA,MHA,MLA 0:Loop RUN (0:Without alarm) 1:Loop STOP (1:With alarm) 00 to FFFF Alarm 4000 detection...
  • Page 112 S.PIDP Standard Specified position Symbol Name Unit Data format Recommended range value Real Gain 0 to 999999 –– number Integral Real 0 to 999999 10.0 constant number Loop tag Derivative Real 0 to 999999 memory constant number Real Gap width 0 to 100 number Real...
  • Page 113 S.PIDP Set Data Processing contents (1) SV setting processing Either of the following processings is performed depending on the operation mode (MODE) setting. (a) When the operation mode (MODE) is any of CAS, CCB and CSV 1) When the set value (E2) is specified, engineering value conversion is performed with the following expression and then "(2) Tracking processing"...
  • Page 114 S.PIDP (4) PID operation PID operation is performed with the following operation expression. Item Operation expression When forward operation {(PV (PN = 1) When reverse operation (PN = 0) Kp×(DVn + In + Bn) : K × Gain (P), M : Derivative gain (MTD) : Integral constant (I), T : Derivative constant (D)
  • Page 115 S.PIDP (6) Mode judgment Either of the following processings is performed depending on the operation mode (MODE) setting. When the operation mode (MODE) is any of MAN, CMB, CMV and LCM (alarm clear processing) 1) MHA, MLA and DMLA of the alarm detection (ALM) are turned to 0. 2) MAH2 and MLA2 of the alarm detection 2 (ALM2) are turned to 0.
  • Page 116 S.PIDP Operation Error In the following cases, the error flag (SM0) turns ON and the error code is stored into SD0. Error code Error definition QnPHCPU QnPRHCPU QnUDPVCPU When an operation error occurs –– When the values of are either a non-numeric or 4100 ––...
  • Page 117: S.spi

    S.SPI S.SPI Sample PI Control S.SPI Ladder diagram Start contact S.SPI S.SPI Structured ladder/FBD Structured text language S_SPI ENO:=S_SPI(EN,s1,s2,s3,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of any 16-bit data (0..4) : When set value (E2) is used: Set value start device : Real data type...
  • Page 118 S.SPI Set Data Block diagram The processing block diagram of the S.SPI instruction is shown below. (The numerals (1) to (7) in the diagram indicate the order of the processing.) RL, RH P, I DVL, DVLS Gain Kp SV setting Tracking Deviation (When used)
  • Page 119 S.SPI Set Data Set Data (1) Data specified in S.SPI instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input Real Input value -999999 to 999999 –– data number Output value Real (-999999 to 999999) –– number ( MV) ––...
  • Page 120 S.SPI Standard Specified position Symbol Name Unit Data format Recommended range value 0 to FFFF Operation MODE –– mode 16Bit 0 to FFFF Alarm detection 4000 –– 16Bit DVLA,MHA,MLA 0:Loop RUN (0:Without alarm) 1:Loop STOP (1:With alarm) 00 to FFFF Alarm 4000 detection...
  • Page 121 S.SPI Standard Specified position Symbol Name Unit Data format Recommended range value Real Gap gain 0 to 999999 –– number Loop tag MV inside memory Real operation (-999999 to 999999) number value Loop tag past value –– –– Used by the system as a work area. ––...
  • Page 122 S.SPI (2) Tracking processing (a) The set value (SV) is converted reversely from the engineering value with the following operation expression to calculate SVn'. (b) When all of the following conditions hold, tracking processing is performed. 1) The tracking bit (TRK) of the operation constant is 1. 2) The set value (E2) is used.
  • Page 123 S.SPI (5) Deviation check A deviation check is made under the following condition and the result of the check is output to DVLA of the alarm detection (ALM) and the deviation large alarm (BB1) of the block memory. Condition Result DVL <...
  • Page 124: S.ipd

    S.IPD S.IPD I-PD Control S.IPD Ladder diagram Start contact S.IPD S.IPD Structured ladder/FBD Structured text language S_IPD ENO:=S_IPD(EN,s1,s2,s3,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of any 16-bit data (0..6) : When set value (E2) is used: Set value start device : Real data type When set value (E2) is not used: Dummy device...
  • Page 125 S.IPD Set Data Block diagram The processing block diagram of the S.IPD instruction is shown below. (The numerals (1) to (7) in the diagram indicate the order of the processing.) P, I, D, CT, MTD DVL, DVLS Gain Kp SV setting Tracking Deviation operation...
  • Page 126 S.IPD Set Data Set Data (1) Data specified in S.IPD instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input Real Input value -999999 to 999999 –– data number Output value Real (-999999 to 999999) –– number ––...
  • Page 127 S.IPD Data Standard Specified position Symbol Name Unit Recommended range format value 0 to FFFF Operation MODE –– mode 16bit 0 to FFFF Alarm detection 4000 –– 16bit DVLA,MHA,MLA 0:Loop RUN (0:Without alarm) 1:Loop STOP (1:With alarm) 00 to FFFF Alarm 4000 detection...
  • Page 128 S.IPD Standard Specified position Symbol Name Unit Data format Recommended range value Real Gap gain 0 to 999999 –– number Loop tag MV inside memory Real operation (-999999 to 999999) number value Loop tag past value –– –– Used by the system as a work area. ––...
  • Page 129 S.IPD Set Data Processing contents (1) SV setting processing Either of the following processings is performed depending on the operation mode (MODE) setting. (a) When the operation mode (MODE) is any of CAS, CCB and CSV 1) When the set value (E2) is specified, engineering value conversion is performed with the following expression and then "(2) Tracking processing"...
  • Page 130 S.IPD (4) I-PD operation I-PD operation is performed with the following operation expression. Item Operation expression When forward operation (PN = 1) {(PV When reverse operation (PN = 0) When forward operation (PN = 1) BW ( MV) When reverse operation (PN = 0) : K ×...
  • Page 131 S.IPD (7) Control cycle judgment (a) If the specified control cycle is not reached, BW ( MV) is turned to 0 and the S.IPD instruction is terminated. (b) When the specified control cycle is reached, "(1) SV setting processing" is performed. Operation Error In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
  • Page 132: Blend Pi Control

    S.BPI S.BPI Blend PI control S.BPI Ladder diagram Start contact S.BPI S.BPI Structured ladder/FBD Structured text language S_BPI ENO:=S_BPI(EN,s1,s2,s3,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of any 16-bit data (0..4) : When set value (E2) is used: Set value start device : Real data type...
  • Page 133 S.BPI Set Data Block diagram The processing block diagram of the S.BPI instruction is shown below. (The numerals (1) to (7) in the diagram indicate the order of the processing.) RL, RH P, I, CT DVL, DVLS Gain Kp SV setting Tracking Deviation operation...
  • Page 134 S.BPI Set Data Set Data (1) Data specified in S.BPI instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input Real Input value -999999 to 999999 –– data number Output value Real (-999999 to 999999) –– number ( MV) ––...
  • Page 135 S.BPI Standard Specified position Symbol Name Unit Data format Recommended range value 0 to FFFF Operation MODE –– mode 16bit 0 to FFFF Alarm detection 4000 –– 16bit DVLA,MHA,MLA 0:Loop RUN (0:Without alarm) 1:Loop STOP (1:With alarm) 00 to FFFF Alarm 4000 detection...
  • Page 136 S.BPI Standard Specified position Symbol Name Unit Data format Recommended range value Real Gap width 0 to 100 Loop tag number Memory Real Gap gain 0 to 999999 –– number Loop tag past value –– –– Used by the system as a work area. ––...
  • Page 137 S.BPI (2) Tracking processing (a) The set value (SV) is converted reversely from the engineering value with the following operation expression to calculate SVn'. (b) When all of the following conditions hold, tracking processing is performed. 1) The tracking bit (TRK) of the operation constant is 1. 2) The set value (E2) is used.
  • Page 138 S.BPI (5) Deviation check A deviation check is made under the following condition and the result of the check is output to DVLA of the alarm detection (ALM) and the deviation large alarm (BB1) of the block memory. Condition Result DVL ...
  • Page 139: Ratio

    Ratio Ladder diagram Start contact Structured ladder/FBD Structured text language ENO:=S_R(EN,s1,s2,s3,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of any 16-bit data (0..1) : When set value (E2) is used: Set value start device : Real data type When set value (E2) is not used: Dummy device Output argument...
  • Page 140 Set Data Block diagram The processing block diagram of the S.R instruction is shown below. (The numerals (1) to (6) in the diagram indicate the order of the processing.) RMIN, RMAX BIAS Engineering Tracking Change rate (When value Ratio operation processing limiter used)
  • Page 141 Set Data Set Data (1) Data specified in S.R instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input Real Input value -999999 to 999999 –– data number Block Real Output value (-999999 to 999999) –– memory number 0: Not trucked Tracking bit...
  • Page 142 Standard Specified position Symbol Name Unit Data format Recommended range value Rate upper Real RMAX -999999 to 999999 –– 100.0 limit value number Loop tag Rate lower Real RMIN -999999 to 999999 –– memory limit value number Rate current Real (-999999 to 999999) ––...
  • Page 143 (2) Change rate limiter In the change rate limiter, the following operation is performed and the result of the operation is stored into the current rate value (Rn). Condition Operation expression )  DR (SPR - R + DR )  - DR (SPR - R - DR |SPR - R...
  • Page 144: High/Low Limit Alarm

    S.PHPL S.PHPL High/Low Limit Alarm S.PHPL Ladder diagram Start contact S.PHPL S.PHPL Structured ladder/FBD Structured text language S_PHPL ENO:=S_PHPL(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Dummy device : Real data type Output argument : Execution result : Bit...
  • Page 145 S.PHPL Set Data Block diagram The processing block diagram of the S.PHPL instruction is shown below. (The numerals (1) to (5) in the diagram indicate the order of the processing.) RL, RH DPL, CTIM Engineering value reverse conversion Engineering HH' PL' value conversion Change rate...
  • Page 146 S.PHPL Set Data Set Data (1) Data specified in S.PHPL instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input Real Input value -999999 to 999999 –– data number Real Output value (-999999 to 999999) –– number ––...
  • Page 147 S.PHPL Standard Specified position Symbol Name Unit Data format Recommended range value Upper limit Real alarm set RL to RH –– 100.0 number value Lower limit Real RL to RH –– alarm value number Upper upper Real limit alarm RL to RH ––...
  • Page 148 S.PHPL (2) Upper/lower limit check The upper/lower limit checks of the input value (E1) are made under the following conditions. Check item Condition E1 > PH' –– PHA = 1 E1  PH' - HS Upper limit check PHA = 0 ––...
  • Page 149 S.PHPL (4) Engineering value conversion Engineering value conversion is made with the following expression. (5) Loop stop processing (a) Setting 1 in SPA of the alarm detection (ALM) selects a loop stop. A loop stop performs the following processing and terminates the S.PHPL instruction. 1) Engineering value reverse conversion is performed with the following expression.
  • Page 150: Lead-Lag

    S.LLAG S.LLAG Lead-Lag S.LLAG Ladder diagram Start contact S.LLAG S.LLAG Structured ladder/FBD Structured text language S_LLAG ENO:=S_LLAG(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..2) : Operation constant start device : Array of real data type (0..1) Output argument : Execution result...
  • Page 151 S.LLAG Set Data Set Data (1) Data specified in S.LLAG instruction Standard Specified position Symbol Name Unit Data format Recommended range value Real Input value -999999 to 999999 –– number Input data Actuating –– –– signal 16bit 0: With lead-lag compensation 1: Without lead-lag compensation Block Real...
  • Page 152: Integral

    9.10 Integral 9.10 Ladder diagram Start contact Structured ladder/FBD Structured text language ENO:=S_I(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..2) : Operation constant start device : Array of real data type (0..1) Output argument : Execution result : Bit...
  • Page 153 Set Data Set Data (1) Data specified in S.I instruction Standard Specified position Symbol Name Unit Data format Recommended range value Real Input value -999999 to 999999 –– –– number Input data Operation –– –– control signal 16bit 0: With integral operation 1: Without integral operation Real Block...
  • Page 154: Derivative

    9.11 Derivative 9.11 Ladder diagram Start contact Structured ladder/FBD Structured text language ENO:=S_D(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..2) : Operation constant start device : Array of real data type (0..1) Output argument : Execution result : Bit...
  • Page 155 Set Data Set Data (1) Data specified in S.D instruction Standard Specified position Symbol Name Unit Data format Recommended range value Real Input value -999999 to 999999 –– –– number Input data Operation –– –– control signal 16bit 0: With derivative operation 1: Without derivative operation Block Real...
  • Page 156: Dead Time

    S.DED 9.12 S.DED Dead Time 9.12 S.DED Ladder diagram Start contact S.DED S.DED Structured ladder/FBD Structured text language S_DED ENO:=S_DED(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..2) : Operation constant start device : Array of any 16-bit data (0..5) Output argument : Execution result...
  • Page 157 S.DED Set Data Set Data (1) Data specified in S.DED instruction Standard Specified position Symbol Name Unit Data format Set by Recommended range value Real Input value -999999 to 999999 –– –– number Input data Operation –– –– control signal 16bit 0: With dead time 1: Without dead time...
  • Page 158 S.DED (2) Execution cycle ( T) Set the execution cycle in SD1500 and SD1501 as real numbers. Set Data Processing contents (1) The S.DED instruction performs the following operation. OCHG Dead time None Up to SN E1 when e1 turns from 1 to 0 times Later than SN Oldest data...
  • Page 159: High Selector

    S.HS 9.13 S.HS High Selector 9.13 S.HS Ladder diagram Start contact S.HS S.HS Structured ladder/FBD Structured text language S_HS ENO:=S_HS(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..32) : Dummy device : Real data type Output argument : Execution result...
  • Page 160 S.HS Set Data Set Data (1) Data specified in S.HS instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input count 1 to 16 –– –– 16bit Input value 1 Input Input value 2 data Real -999999 to 999999 ––...
  • Page 161: S.ls Low Selector

    S.LS 9.14 S.LS Low Selector 9.14 S.LS Ladder diagram Start contact S.LS S.LS Structured ladder/FBD Structured text language S_LS ENO:=S_LS(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..32) : Dummy device : Real data type Output argument : Execution result...
  • Page 162 S.LS Set Data Set Data (1) Data specified in S.LS instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input count 1 to 16 –– –– 16bit Input value 1 Input Input value 2 data Real -999999 to 999999 ––...
  • Page 163: S.mid Middle Value Selection

    S.MID 9.15 S.MID Middle Value Selection 9.15 S.MID Ladder diagram Start contact S.MID S.MID Structured ladder/FBD Structured text language S_MID ENO:=S_MID(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..32) : Dummy device : Real data type Output argument...
  • Page 164 S.MID Set Data Set Data (1) Data specified in S.MID instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input count 1 to 16 –– –– 16bit Input value 1 Input Input value 2 data Real -999999 to 999999 ––...
  • Page 165 S.MID Operation Error In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0. Error code Error definition QnPHCPU QnPRHCPU QnUDPVCPU When the value of is either a non-numeric or non- –– normalized number 4100 When not 1 ...
  • Page 166: S.ave Average Value

    S.AVE 9.16 S.AVE Average Value 9.16 S.AVE Ladder diagram Start contact S.AVE S.AVE Structured ladder/FBD Structured text language S_AVE ENO:=S_AVE(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..32) : Dummy device : Real data type Output argument : Execution result...
  • Page 167 S.AVE Set Data Set Data (1) Data specified in S.AVE instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input count 1 to 16 –– –– 16bit Input value 1 Input Input value 2 data Real -999999 to 999999 ––...
  • Page 168: S.limt High/Low Limiter

    S.LIMT 9.17 S.LIMT High/Low Limiter 9.17 S.LIMT Ladder diagram Start contact S.LIMT S.LIMT Structured ladder/FBD Structured text language S_LIMT ENO:=S_LIMT(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of real data type (0..3) Output argument : Execution result...
  • Page 169 S.LIMT Set Data Set Data (1) Data specified in S.LIMT instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input Real Input value -999999 to 999999 –– data number Real Output value (-999999 to 999999) –– number ––...
  • Page 170: S.vlmt1 Variation Rate Limiter 1

    S.VLMT1 9.18 S.VLMT1 Variation Rate Limiter 1 9.18 S.VLMT1 Ladder diagram Start contact S.VLMT1 S.VLMT1 Structured ladder/FBD Structured text language S_VLMT1 ENO:=S_VLMT1(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of real data type (0..3) Output argument : Execution result...
  • Page 171 S.VLMT1 Set Data Set Data (1) Data specified in S.VLMT1 instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input Real Input value -999999 to 999999 –– data number Real Output value (-999999 to 999999) –– number ––...
  • Page 172 S.VLMT1 Operation Error In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0. Error code Error definition QnPHCPU QnPRHCPU QnUDPVCPU When an operation error occurs –– When the values of are either a non-numeric or non- 4100 ––...
  • Page 173: S.vlmt2 Variation Rate Limiter 2

    S.VLMT2 9.19 S.VLMT2 Variation Rate Limiter 2 9.19 S.VLMT2 Ladder diagram Start contact S.VLMT2 S.VLMT2 Structured ladder/FBD Structured text language S_VLMT2 ENO:=S_VLMT2(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of real data type (0..3) Output argument : Execution result...
  • Page 174 S.VLMT2 Set Data Set Data (1) Data specified in S.VLMT2 instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input Real Input value -999999 to 999999 –– data number Real Output value (-999999 to 999999) –– number ––...
  • Page 175 S.VLMT2 Operation Error In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0. Error code Error definition QnPHCPU QnPRHCPU QnUDPVCPU When an operation error occurs –– When the values of are either a non-numeric or non- 4100 ––...
  • Page 176: S.onf2 2-Position On/Off

    S.ONF2 9.20 S.ONF2 2-position ON/OFF 9.20 S.ONF2 Ladder diagram Start contact S.ONF2 S.ONF2 Structured ladder/FBD Structured text language S_ONF2 ENO:=S_ONF2(EN,s1,s2,s3,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of any 16-bit data (0..2) : When set value (E2) is used: Set value start device : Real data type...
  • Page 177 S.ONF2 Set Data Block diagram The processing block diagram of the S.ONF2 instruction is shown below. (The numerals (1) to (7) in the diagram indicate the order of the processing.) RL, RH SV setting Tracking (When MV output processing processing compensation used) When in control...
  • Page 178 S.ONF2 Set Data Set Data (1) Data specified in S.ONF2 instruction Standard Specified position Symbol Name Unit Data format Recommended range value Real Input data Input value -999999 to 999999 –– number Real Output value (-999999 to 999999) –– number ––...
  • Page 179 S.ONF2 Standard Specified position Symbol Name Unit Data format Recommended range value 0 to FFFF Alarm 4000 detection –– 16Bit inhibit TRKF (0: Without tracking) (1: With tracking) Manipulated Real -10 to 110 value number Real Set value RL to RH ––...
  • Page 180 S.ONF2 Set Data Processing contents (1) SV setting processing Either of the following processings is performed depending on the operation mode (MODE) setting. (a) When the operation mode (MODE) is any of CAS, CCB and CSV 1) When the set value (E2) is specified, engineering value conversion is performed with the following expression and then "(2) Tracking processing"...
  • Page 181 S.ONF2 (4) MV output The manipulated value (MV(BW)) is calculated under the following condition. Condition CMV, MAN, CMB, LCM BW = MVn BW = MV' CSV, CCB, CAB, CAS, AUT, LCC, LCA MVn = BW (5) 2-position ON/OFF control BB1 of BB is output under the following condition. Condition |BW| ...
  • Page 182: S.onf3 3-Position On/Off

    S.ONF3 9.21 S.ONF3 3-position ON/OFF 9.21 S.ONF3 Ladder diagram Start contact S.ONF3 S.ONF3 Structured ladder/FBD Structured text language S_ONF3 ENO:=S_ONF3(EN,s1,s2,s3,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of any 16-bit data (0..2) : When set value (E2) is used: Set value start device : Real data type...
  • Page 183 S.ONF3 Set Data Block diagram The processing block diagram of the S.ONF3 instruction is shown below. (The numerals (1) to (7) in the diagram indicate the order of the processing.) RL, RH SV setting Tracking (When MV output processing processing compensation used) When in control...
  • Page 184 S.ONF3 Set Data Set Data (1) Data specified in S.ONF3 instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input Real Input value -999999 to 999999 –– data number Real Output value (-999999 to 999999) –– number ––...
  • Page 185 S.ONF3 Standard Specified position Symbol Name Unit Data format Recommended range value 0 to FFFF Alarm 4000 detection –– 16Bit inhibit TRKF (0: Without tracking) (1: With tracking) Manipulated Real -10 to 110 value number Real Set value RL to RH ––...
  • Page 186 S.ONF3 Set Data Processing contents (1) SV setting processing Either of the following processings is performed depending on the operation mode (MODE) setting. (a) When the operation mode (MODE) is any of CAS, CCB and CSV 1) When the set value (E2) is specified, engineering value conversion is performed with the following expression and then "(2) Tracking processing"...
  • Page 187 S.ONF3 (5) 3-position ON/OFF control BB1 and BB2 of BB are output under the following condition. Condition BW  75% 25%  BW < 75% BW < 25% (6) Loop stop processing (a) Setting 1 in SPA of the alarm detection (ALM) selects a loop stop. A loop stop performs the following processing and terminates the S.ONF3 instruction.
  • Page 188: S.dbnd Dead Band

    S.DBND 9.22 S.DBND Dead Band 9.22 S.DBND Ladder diagram Start contact S.DBND S.DBND Structured ladder/FBD Structured text language S_DBND ENO:=S_DBND(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of real data type (0..1) Output argument : Execution result...
  • Page 189 S.DBND Set Data Set Data (1) Data specified in S.DBND instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input Real Input value -999999 to 999999 –– data number Real Output value (-999999 to 999999) –– number ––...
  • Page 190: S.pgs Program Setter

    S.PGS 9.23 S.PGS Program Setter 9.23 S.PGS Ladder diagram Start contact S.PGS S.PGS Structured ladder/FBD Structured text language S_PGS ENO:=S_PGS(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Dummy device : Real data type : Dummy device : Real data type Output argument : Execution result : Bit...
  • Page 191 S.PGS Set Data Block diagram The processing block diagram of the S.PGS instruction is shown below. (The numerals (2) to (5) in the diagram indicate the order of the processing.) MV, MV1 to SV, SV1 to TYPE ML, MH MV16 SV16 Output SV count-up...
  • Page 192 S.PGS Set Data Set Data (1) Data specified in S.PGS instruction Standard Specified position Symbol Name Unit Data format Recommended range value Output value (-999999 to 999999) –– Real number –– Block Alarm memory Output upper –– –– 16bit limit alarm (0: Without alarm) Output lower (1: With alarm)
  • Page 193 S.PGS Standard Specified position Symbol Name Unit Data format Recommended range value Output lower Real -10 to 110 limit value number Setting time 1 Real 0 to 999999 number Loop tag Setting time SV16 memory Setting output Real -10 to 110 number Setting output MV16...
  • Page 194 S.PGS (3) SV count-up processing SV count-up is performed with the following expression in each execution cycle. SV' = SV + (4) MV operation Type Hold Return Cyclic Mode AUT, CAB CAS, CCB, CSV SV < SV - MV  SV < SVn operation ×...
  • Page 195: S. Sel Loop Selector

    S. SEL 9.24 S. SEL Loop Selector 9.24 S. SEL Ladder diagram Start contact S.SEL S.SEL Structured ladder/FBD Structured text language S_SEL ENO:=S_SEL(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data 1 start device : Real data type : Operation constant start device : Array of any 16-bit data (0..5) : Input data 2 start device...
  • Page 196 S. SEL Set Data Block diagram The processing block diagram of the S. SEL instruction is shown below. (The numerals (1) to (7) in the diagram indicate the order of the processing.) RH, RL SLNO PV, PV1 to PV2 RH, RL NMAX, NMIN Engineering E1/E2...
  • Page 197 S. SEL Set Data Set Data (1) Data specified in S. SEL instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input data Real Input value 1 -999999 to 999999 –– number Real Output value (-999999 to 999999) ––...
  • Page 198 S. SEL Standard Specified position Symbol Name Unit Data format Recommended range value 0 to FFFF Operation MODE –– BIN 16bit mode 0 to FFFF Alarm 4000 –– detection 16bit DMLA, MHA, MLA (0: Without alarm) 0: Loop RUN 1: Loop STOP (1: With alarm) 0 to FFFF Alarm...
  • Page 199 S. SEL Set Data Processing contents (1) Engineering value conversion Engineering value conversion is performed with the following expression. RH RL (2) Input value 1 (E1) or input value 2 (E2) selection processing Whether the input value 1 (E1) or input value 2 (E2) will be used is selected depending on the e1 setting of the set value pattern (SVPTN).
  • Page 200 S. SEL (5) Output conversion processing Engineering value conversion is performed with the following expression. NMAX NMIN NMIN (6) Tracking processing (a) When all of the following conditions hold, the operation result is output to the input value 1 (E1) or input value 2 (E2).
  • Page 201: S.bump Bumpless Transfer

    S.BUMP 9.25 S.BUMP Bumpless Transfer 9.25 S.BUMP Ladder diagram Start contact S.BUMP S.BUMP Structured ladder/FBD Structured text language S_BUMP ENO:=S_BUMP(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..4) : Operation constant start device : Array of real data type (0..1) Output argument : Execution result...
  • Page 202 S.BUMP Set Data Set Data (1) Data specified in S. BUMP instruction Standard Specified position Symbol Name Unit Data format Recommended range value Output set Real -999999 to 999999 –– value number Output control Real -999999 to 999999 –– Input data value number Mode...
  • Page 203 S.BUMP Operation Error In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0. Error code Error definition QnPHCPU QnPRHCPU QnUDPVCPU When an operation error occurs –– 4100 When the values of are either a non-numeric or ––...
  • Page 204: S.amr Analog Memory

    S.AMR 9.26 S.AMR Analog Memory 9.26 S.AMR Ladder diagram Start contact S.AMR S.AMR Structured ladder/FBD Structured text language S_AMR ENO:=S_AMR(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..6) : Operation constant start device : Array of real data type (0..1) Output argument : Execution result...
  • Page 205 S.AMR Set Data Set Data (1) Data specified in S.AMR instruction Standard Specified position Symbol Name Unit Data format Recommended range value Output Real -999999 to 999999 –– –– addition value number Output Real subtraction -999999 to 999999 –– –– number value Output set...
  • Page 206 S.AMR Operation Error In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0. Error code Error definition QnPHCPU QnPRHCPU QnUDPVCPU When an operation error occurs –– 4100 When the values of are either a non-numeric or non- ––...
  • Page 207: Chapter 10 Compensation Operation Instructions

    S.FG CHAPTER 10 COMPENSATION OPERATION INSTRUCTIONS 10.1 S.FG Function Generator 10.1 S.FG Ladder diagram Start contact S.FG S.FG Structured ladder/FBD Structured text language S_FG ENO:=S_FG(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Any 16-bit data Output argument...
  • Page 208 S.FG Set Data Set Data (1) Data specified in S.FG instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input data Input value -999999 to 999999 –– Real number –– Block Output value (-999999 to 999999) –– Real number ––...
  • Page 209: S.ifg Inverse Function Generator

    S.IFG 10.2 S.IFG Inverse Function Generator 10.2 S.IFG Ladder diagram Start contact S.IFG S.IFG Structured ladder/FBD Structured text language S_IFG ENO:=S_IFG(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Any 16-bit data Output argument : Execution result...
  • Page 210 S.IFG Set Data Set Data (1) Data specified in S.IFG instruction Standard Specified position Symbol Name Unit Data format Recommended range value Input data Input value -999999 to 999999 –– Real number –– Block Output value (-999999 to 999999) –– Real number ––...
  • Page 211: S.flt Standard Filter

    S.FLT 10.3 S.FLT Standard Filter 10.3 S.FLT Ladder diagram Start contact S.FLT S.FLT Structured ladder/FBD Structured text language S_FLT ENO:=S_FLT(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of any 16-bit data (0..2) Output argument : Execution result...
  • Page 212 S.FLT Set Data Set Data (1) Data specified in S.FLT instruction Standard Specified position Symbol Name Unit Data format Recommended range value Real Input data Input value -999999 to 999999 –– –– number Real Output value (-999999 to 999999) –– ––...
  • Page 213 S.FLT Set Data Processing contents (1) The data update cycle is . (The decimal is rounded down.) (2) The data sufficiency bit (BB1) turns to 0 when the dead time table is filled with SN pieces of data. It turns to 1 when the dead time table is not filled. •...
  • Page 214: S.sum Summation

    S.SUM 10.4 S.SUM Summation 10.4 S.SUM Ladder diagram Start contact S.SUM S.SUM Structured ladder/FBD Structured text language S_SUM ENO:=S_SUM(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..2) : Operation constant start device : Array of any 16-bit data (0..4) Output argument : Execution result...
  • Page 215 S.SUM Set Data Set Data (1) Data specified in S.SUM instruction Standard Specified position Symbol Name Unit Data format Recommended range value Real Input value -999999 to 999999 –– –– number –– Input data Integration –– –– start signal 16Bit 0: Integration not executed 1: Integration executed Block...
  • Page 216: S.tpc Temperature/Pressure Correction

    S.TPC 10.5 S.TPC Temperature/Pressure Correction 10.5 S.TPC Ladder diagram Start contact S.TPC S.TPC Structured ladder/FBD Structured text language S_TPC ENO:=S_TPC(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..6) : Operation constant start device : Array of real data type (0..4) Output argument : Execution result...
  • Page 217 S.TPC Set Data Set Data (1) Data specified in S.TPC instruction Standard Specified position Symbol Name Unit Data format Recommended range value Differential Real -999999 to 999999 –– –– pressure number Measurement Real -999999 to 999999 –– –– temperature number Measured Real -999999 to 999999...
  • Page 218 S.TPC Operation Error In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0. Error code Error definition QnPHCPU QnPRHCPU QnUDPVCPU When an operation error occurs –– 4100 When the values of are either a non-numeric or non- ––...
  • Page 219: S.eng Engineering Value Conversion

    S.ENG 10.6 S.ENG Engineering Value Conversion 10.6 S.ENG Ladder diagram Start contact S.ENG S.ENG Structured ladder/FBD Structured text language S_ENG ENO:=S_ENG(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of real data type (0..1) Output argument : Execution result...
  • Page 220 S.ENG Set Data Set Data (1) Data specified in S.ENG instruction Standard Specified position Symbol Name Unit Data format Recommended range value Real Input data Input value -999999 to 999999 –– number Block Real Output value (-999999 to 999999) –– ––...
  • Page 221: S.ieng Inverse Engineering Value Conversion

    S.IENG 10.7 S.IENG Inverse Engineering Value Conversion 10.7 S.IENG Ladder diagram Start contact S.IENG S.IENG Structured ladder/FBD Structured text language S_IENG ENO:=S_IENG(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of real data type (0..1) Output argument : Execution result...
  • Page 222 S.IENG Set Data Set Data (1) Data specified in S.IENG instruction Specified Data Standard Symbol Name Unit Recommended range Position format value Real Input data Input value -999999 to 999999 –– –– number Block Real Output value (-999999 to 999999) ––...
  • Page 223: Chapter 11 Arithmetic Operation Instructions

    S.ADD CHAPTER 11 ARITHMETIC OPERATION INSTRUCTIONS 11.1 S.ADD Addition 11.1 S.ADD Ladder diagram Start contact S.ADD S.ADD Structured ladder/FBD Structured text language S_ADD ENO:=S_ADD(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..10) : Operation constant start device : Array of any 16-bit data (0..12) Output argument...
  • Page 224 S.ADD Set Data Set Data (1) Data specified in S.ADD instruction Specification Data Standard Symbol Name Unit Recommended range position format value Input count 0 to 5 –– –– 16Bit Input value 1 Input data Input value 2 Real -999999 to 999999 ––...
  • Page 225: S.sub Subtraction

    S.SUB 11.2 S.SUB Subtraction 11.2 S.SUB Ladder diagram Start contact S.SUB S.SUB Structured ladder/FBD Structured text language S_SUB ENO:=S_SUB(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..10) : Operation constant start device : Array of any 16-bit data (0..12) Output argument : Execution result...
  • Page 226 S.SUB Set Data Set Data (1) Data specified in S.SUB instruction Specification Data Standard Symbol Name Unit Recommended range position format value Input count 0 to 5 –– –– 16Bit Input value 1 Input data Input value 2 Real -999999 to 999999 ––...
  • Page 227: S.mul Multiplication

    S.MUL 11.3 S.MUL Multiplication 11.3 S.MUL Ladder diagram Start contact S.MUL S.MUL Structured ladder/FBD Structured text language S_MUL ENO:=S_MUL(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..10) : Operation constant start device : Array of any 16-bit data (0..12) Output argument : Execution result...
  • Page 228 S.MUL Set Data Set Data (1) Data specified in S.MUL instruction Specification Data Standard Symbol Name Unit Recommended range position format value Input count 0 to 5 –– –– 16Bit Input value 1 Input data Input value 2 Real -999999 to 999999 ––...
  • Page 229: S.div Division

    S.DIV 11.4 S.DIV Division 11.4 S.DIV Ladder diagram Start contact S.DIV S.DIV Structured ladder/FBD Structured text language S_DIV ENO:=S_DIV(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of real data type (0..1) : Operation constant start device : Array of real data type (0..5) Output argument : Execution result...
  • Page 230 S.DIV Set Data Set Data (1) Data specified in S.DIV instruction Specification Data Standard Symbol Name Unit Recommended range position format value Input value 1 Real -999999 to 999999 –– –– (Minute) number Input data Input value 2 Real -999999 to 999999 ––...
  • Page 231: S.sqr Square Root

    S.SQR 11.5 S.SQR Square Root 11.5 S.SQR Ladder diagram Start contact S.SQR S.SQR Structured ladder/FBD Structured text language S_SQR ENO:=S_SQR(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Operation constant start device : Array of real data type (0..1) Output argument : Execution result...
  • Page 232 S.SQR Set Data Set Data (1) Data specified in S.SQR instruction Specification Data Standard Symbol Name Unit Recommended range position format value Real Input data Input value 0 to 999999 –– –– number Block Real Output value (0 to 999999) ––...
  • Page 233: S.abs Absolute Value

    S.ABS 11.6 S.ABS Absolute Value 11.6 S.ABS Ladder diagram Start contact S.ABS S.ABS Structured ladder/FBD Structured text language S_ABS ENO:=S_ABS(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Real data type : Dummy device : Real data type Output argument : Execution result : Bit...
  • Page 234 S.ABS Set Data Set Data (1) Data specified in S.ABS instruction Specification Data Standard Symbol Name Unit Set by Recommended range position format value Input Real Input value -999999 to 999999 –– –– data number Real Output value (0 to 999999) ––...
  • Page 235: Chapter 12 Comparison Operation Instructions

    S. > CHAPTER 12 COMPARISON OPERATION INSTRUCTIONS 12.1 S. > Compare Greater Than 12.1 S. > Ladder diagram StartContact S.> S.> Structured ladder/FBD Structured text language S_GT ENO:=S_GT(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of real data type (0..1) : Operation constant start device : Array of real data type (0..1)
  • Page 236 S. > Set Data Set Data (1) Data specified in S. > instruction Specified Standard Symbol Name Unit Data format Recommended range position value Input value 1 -999999 to 999999 –– Real number –– Input data Input value 2 -999999 to 999999 ––...
  • Page 237: S. < Compare Less Than

    S. < 12.2 S. < Compare Less Than 12.2 S. < Ladder diagram StartContact S.< S.< Structured ladder/FBD Structured text language S_LT ENO:=S_LT(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of real data type (0..1) : Operation constant start device : Array of real data type (0..1) Output argument...
  • Page 238 S. < Set Data Set Data (1) Data specified in S. < instruction Specified Standard Symbol Name Unit Data format Recommended range position value Input value 1 -999999 to 999999 –– Real number –– Input data Input value 2 -999999 to 999999 ––...
  • Page 239: S. = Compare Equal Than

    S. = 12.3 S. = Compare Equal Than 12.3 S. = Ladder diagram StartContact Structured ladder/FBD Structured text language S_EQ ENO:=S_EQ(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of real data type (0..1) : Operation constant start device : Array of real data type (0..1) Output argument...
  • Page 240 S. = Set Data Set Data (1) Data specified in S. = instruction Specified Standard Symbol Name Unit Data format Recommended range position value Input value 1 -999999 to 999999 –– Real number –– Input data Input value 2 -999999 to 999999 ––...
  • Page 241: S. >= Compare Greater Or Equal

    S. >= 12.4 S. >= Compare Greater Or Equal 12.4 S. >= Ladder diagram Start contact S.>= S.>= Structured ladder/FBD Structured text language S_GE ENO:=S_GE(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of real data type (0..1) : Operation constant start device : Array of real data type (0..1) Output argument...
  • Page 242 S. >= Set Data Set Data (1) Data specified in S. >= instruction Specification Standard Symbol Name Unit Data format Recommended range position value Input value 1 -999999 to 999999 –– Real number –– Input data Input value 2 -999999 to 999999 ––...
  • Page 243: S. <= Compare Less Or Equal

    S. <= 12.5 S. <= Compare Less Or Equal 12.5 S. <= Ladder diagram Start contact S.<= S.<= Structured ladder/FBD Structured text language S_LE ENO:=S_LE(EN,s1,s2,d1,d2); Input argument : Execution condition : Bit : Input data start device : Array of real data type (0..1) : Operation constant start device : Array of real data type (0..1) Output argument...
  • Page 244 S. <= Set Data Set Data (1) Data specified in S. <= instruction Specification Standard Symbol Name Unit Data format Recommended range position value Input value 1 -999999 to 999999 –– Real number –– Input data Input value 2 -999999 to 999999 ––...
  • Page 245: Chapter 13 Auto Tuning

    CHAPTER 13 AUTO TUNING Auto tuning is designed to make the initial setting of the PID constants. The auto tuning of the CPU module can be used for processes that can be approximated with a primary delay plus dead time represented by the following expression.
  • Page 246 Auto tuning procedure Start Since the PID constants are overwritten at completion of auto tuning, record the PID constants as required. Set the loop tag and operation constants necessary for auto tuning. Change the operation mode (MODE) of the tuning target loop to Manual (MAN). Make sure that the process of the tuning target is stable.
  • Page 247 (1) Time chart from auto tuning start until normal completion Auto tuning start Auto tuning start signal e1 Auto tuning completion Auto tuning completion BB16 Various Alarm BB1 to BB8 MV + AT1STEPMV Manipulated value MV PID constants are set. (2) Time chart from auto tuning start until stop due to alarm occurrence Auto tuning start Auto tuning start signal e1...
  • Page 248: S. At1 Auto Tuning Instruction

    S. AT1 13.1 S. AT1 Auto tuning instruction 13.1 S. AT1 Ladder diagram Start contact S.AT1 S.AT1 Structured ladder/FBD Structured text language S_AT1 ENO:=S_AT1(EN,s1,s2,d1,d2,d3); Input argument : Execution condition : Bit : Input data start device : Array of any 16-bit data (0..2) : Operation constant start device : Any 16-bit data Output argument...
  • Page 249 S. AT1 Set Data Set Data (1) Data specified in S. AT1 instruction Specified Standard Symbol Name Unit Data format Recommended range position value Input value -999999 to 999999 Real number –– Input data Auto tuning +2 e1 –– start signal 16bit 0: Stop/end 1: Start...
  • Page 250 S. AT1 Data Standard Specified position Symbol Name Unit Recommended range format value Real Gain 0 to 999999 –– number Integral Real 0 to 999999 10.0 constant number Derivative Real 0 to 999999 constant number Step Real STEP manipulated -100 to 100 number Loop tag value for AT1...
  • Page 251 S. AT1 Set Data Processing contents (1) Start signal judgement processing Any of the following processings is performed depending on the statuses of the auto tuning start signal (e1) and auto tuning completed (BB16). BB16 Processing BB1 to BB8 of BB are turned to 0. When the stepped manipulated value preset flag is 1, the following processing is performed.
  • Page 252 S. AT1 (6) After maximum slope time-out judgment processing Whether the auto tuning processing has reached the AT1 after maximum slope time-out time (AT1TOUT2) or not is judged. However, if the after maximum slope time-out time counter initial preset flag is 0, the processing in (c) is performed. (a) If the AT1 after maximum slope time-out time (AT1TOUT2) is reached, "(10) Identification processing"...
  • Page 253 S. AT1 (9) Response waveform observation processing The following processing is performed for the input value (E1). (a) Response waveform observation 1) The counter from auto tuning start is incremented. 2) The following processing is performed according to the input value (E1) and last process value (PV Reverse operation (PN = 0) T2 = E1 - PV Forward operation (PN = 1)
  • Page 254 S. AT1 (11) PID constant calculation processing The response speed (R), equivalent dead time (L) and AT1 stepped manipulated value (AT1STEPMV) are assigned to the adjustment rule to calculate the PID constants. (a) Control system The control system is selected according to the integral constant T (I) and derivative constant T (D).
  • Page 255: List Of Error Codes

    CHAPTER 14 ERROR CODES This chapter describes the definitions of the errors that will occur in the CPU module and the compensation operation to be taken for the errors. 14.1 List of Error Codes There is the following process control instruction error. Definition Applicable CPU module Error code...
  • Page 256 Processing numbers of each instruction (The number is stored in SD1503.) Processing numbers stored in SD1503 Instruction Engineering Range Digital S. IN Input limiter value reverse check Filter conversion Change rate, Input addition Output S. OUT1 upper/lower Reset windup processing conversion limiter Change rate,...
  • Page 257: Appendices

    APPENDICES Appendix 1 Program Example In the following program, the operation mode at power-on is in manual mode. When X10 turns ON, the mode switches to automatic mode and the module starts PID control. MOVP R1001 Changes operation mode to AUTO. Changes Alarm Detection (ALM) to 0.
  • Page 258 End of subroutine program FEND Main routine program end SM400 Sets execution cycle to 0.1s. EMOV E0.1 SD1500 FMOV R100 K100 Clears S.IN, S.PHPL. S.PID, S.OUT1 output values to 0. FMOV R1000 K128 Clears loop tag to 0. R1000 R1001 H7C7 R1002 R1003...
  • Page 259 SM400 EMOV R1032 EMOV E100 R1034 EMOV R1036 EMOV E0.2 R1038 EMOV R1040 EMOV R1042 EMOV E100 R1044 EMOV R1046 Default value setting of loop tag EMOV E100 R1048 EMOV E100 R1050 EMOV R1052 EMOV R1054 EMOV R1056 EMOV R1058 EMOV R1060 EMOV...
  • Page 260 SM400 EMOV E100 R200 EMOV R202 EMOV E100 R204 EMOV R206 Operation constant setting of S.IN instruction EMOV E110 R208 EMOV E100 R210 EMOV R212 EMOV E-10 R214 SM400 EMOV R240 EMOV R242 R244 Operation constant setting of S.PID instruction R245 R246 SM400...
  • Page 261 Appendix 2 Loop Tag Memory List Appendix 2.1 PID control (SPID), 2-degree-of-freedom PID control (S2PID), sample PI control (SSPI) Data storage Instruction used Offset Item Name Recommended range Unit SPID SSPI S2PID –– –– –– –– –– –– 0 to FFFF Operation mode ––...
  • Page 262 Data storage Instruction used Offset Item Name Recommended range Unit SPID SSPI S2PID Output change rate limit S. OUT1/S.DUTY 0 to 100 value S. PID/S. 2PID/ Deviation limit value 0 to 100 S. SPI S. PID/S. 2PID/ Gain 0 to 999999 ––...
  • Page 263 Appendix 2.2 I-PD control (SIPD), blend PI control (SBPI) Data storage Instruction used Offset Item Name Recommended range Unit SIPD SBPI –– –– –– –– –– –– 0 to FFFF Operation mode –– MODE –– –– –– –– –– –– 0 to FFFF Alarm detection ––...
  • Page 264 Data storage Instruction used Offset Item Name Recommended range Unit SIPD SBPI Output change rate limit S. OUT1 0 to 100 value S. IPD/S. BPI Deviation limit value 0 to 100 S. IPD/S. BPI Gain 0 to 999999 –– S. IPD/S. BPI Integral constant 0 to 999999 S.
  • Page 265 Appendix 2.3 Manual output (SMOUT), monitor (SMON) Data storage Instruction used Offset Item Name Setting/Store range Unit SMOUT SMON –– –– –– –– –– –– 0 to FFFF Operation mode –– MODE –– –– –– –– –– –– 0 to FFFF Alarm detection ––...
  • Page 266 Appendix 2.4 Manual output with monitor (SMWM), PIDP control (SPIDP) Data storage Instruction used Offset Item Name Recommended range Unit SMWM SPIDP –– –– –– –– –– –– 0 to FFFF Operation mode –– MODE –– –– –– –– –– ––...
  • Page 267 Data storage Instruction used Offset Item Name Recommended range Unit SMWM SPIDP Output change rate limit S. PIDP 0 to 100 –– value S. PIDP Deviation limit value 0 to 100 –– S. PIDP Gain 0 to 999999 –– –– S.
  • Page 268: Appendix 2.52 Position On/Off Control (Sonf2), 3 Position On/Off Control (Sonf3)

    Appendix 2.5 2 position ON/OFF control (SONF2), 3 position ON/OFF control (SONF3) Data storage Instruction used Offset Item Name Recommended range Unit SONF2 SONF3 –– –– –– –– –– –– 0 to FFFF Operation mode –– MODE –– –– –– ––...
  • Page 269 Appendix 2.6 Batch counter (SBC) Data storage Instruction used Offset Item Name Recommended range Unit –– –– –– –– –– 0 to FFFF Operation mode –– MODE –– –– –– –– –– 0 to FFFF Alarm detection –– 0 to FFFF Alarm detection inhibition ––...
  • Page 270 Appendix 2.7 Ratio control (SR) Data storage Instruction used Offset Item Name Recommended range Unit –– –– –– –– –– 0 to FFFF Operation mode –– MODE –– –– –– –– –– 0 to FFFF Alarm detection –– 0 to FFFF Alarm detection inhibition ––...
  • Page 271 Data storage Instruction used Offset Item Name Recommended range Unit Output change rate limit S. OUT2 0 to 100 value S. R Change rate limit value 0 to 999999 –– S. R RMAX Ratio upper limit value -999999 to 999999 ––...
  • Page 272: Appendix 3.1Operation Processing Time Of Each Instruction

    Appendix 3 Operation Processing Time Appendix 3.1 Operation processing time of each instruction The operation processing time of each instruction is indicated in the table on this page and later. Since the operation processing time changes depending on the setting conditions, refer to the value in the table as the guideline of the processing time.
  • Page 273 Processing time(µs) Instruction Condition QnPHCPU/QnPRHCPU QnUDPVCPU S.PHPL Condition where ALM does not turn ON during loop run in AUT mode Input data = 50, With lead-lag guarantee S.LLAG Lead time = 1, Delay time = 1 Input data = 50, Integral time = 1 Output initial value = 0 Input data = 50, Derivative time = 1 Output initial value = 0...
  • Page 274 Processing time(µs) Instruction Condition QnPHCPU/QnPRHCPU QnUDPVCPU Output set value = 0, Output control value = 50 S.BUMP Mode selection signal = 1 Delay time = 1, Delay zone = 1 Output addition value = 50, Output subtraction value = 50 Output set value = 0, Output signal = 1 S.AMR Output addition signal = 1, Output subtraction signal = 0...
  • Page 275: Appendix 3.2Operation Processing Time Of 2-Degree-Of-Freedom Pid Control Loop

    Appendix 3.2 Operation processing time of 2-degree-of-freedom PID control loop This section gives an example of the operation constant of each instruction and the processing times taken when actual values are stored into the loop tag memory. (1) Conditions • Loop type: S2PID •...
  • Page 276 (3) Loop tag memory Offset Item Name Recommended range Setting –– –– –– 0 to FFFF MODE Operation mode –– –– –– 0 to FFFF Alarm detection 0 to FFFF Alarm detection inhibition –– –– –– –– –– –– –– ––...
  • Page 277: Index

    INDEX 0 to 9 ..98 ..217 2-degree-of-freedom PID Control (S.2PID) Engineering Value Conversion (S.ENG) ....174 .
  • Page 278 ..31 ..214 Negative direction change rate alarm (DPNA) Temperature/Pressure Correction (S.TPC) ....74 Time Proportioning(S.DUTY) .
  • Page 279: Instruction Index

    INSTRUCTION INDEX ........235 S. < ....... . . 241 S.
  • Page 280: Revisions

    Japanese Manual Version SH-080265-G 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.
  • Page 281: Warranty

    6. Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi. 7. Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user. 2. Onerous repair term after discontinuation of production (1) Mitsubishi shall accept onerous product repairs for seven (7) years after production of the product is discontinued.
  • Page 282 The company names, system names and product names mentioned in this manual are either registered trademarks or trademarks of their respective companies. In some cases, trademark symbols such as '™' or '®' are not specified in this manual. SH(NA)-080316E-H...
  • Page 284 SH(NA)-080316E-H(1810)MEE MODEL: QNPHCPU-P-PROCE-E MODEL CODE: 13JF67 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.

Table of Contents