Melsec-Q Programming/Structured Programming Manual (Process Control Instructions)
Melsec-Q Programming/Structured Programming Manual (Process Control Instructions)
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.
Make sure that the end users read the manuals included with each product, and keep the manuals in a safe
place for future reference.
1
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.
(2) The PRODUCT has been designed and manufactured for the purpose of being used in general
industries.
MITSUBISHI SHALL HAVE NO RESPONSIBILITY OR LIABILITY (INCLUDING, BUT NOT
LIMITED TO ANY AND ALL RESPONSIBILITY OR LIABILITY BASED ON CONTRACT,
WARRANTY, TORT, PRODUCT LIABILITY) FOR ANY INJURY OR DEATH TO PERSONS OR
LOSS OR DAMAGE TO PROPERTY CAUSED BY the PRODUCT THAT ARE OPERATED OR
USED IN APPLICATION NOT INTENDED OR EXCLUDED BY INSTRUCTIONS, PRECAUTIONS,
OR WARNING CONTAINED IN MITSUBISHI'S USER, INSTRUCTION AND/OR SAFETY
MANUALS, TECHNICAL BULLETINS AND GUIDELINES FOR the PRODUCT.
("Prohibited Application")
Prohibited Applications include, but not limited to, the use of the PRODUCT in;
• Nuclear Power Plants and any other power plants operated by Power companies, and/or any
other cases in which the public could be affected if any problem or fault occurs in the PRODUCT.
• Railway companies or Public service purposes, and/or any other cases in which establishment of
a special quality assurance system is required by the Purchaser or End User.
• Aircraft or Aerospace, Medical applications, Train equipment, transport equipment such as
Elevator and Escalator, Incineration and Fuel devices, Vehicles, Manned transportation,
Equipment for Recreation and Amusement, and Safety devices, handling of Nuclear or
Hazardous Materials or Chemicals, Mining and Drilling, and/or other applications where there is a
significant risk of injury to the public or property.
2
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.
When applying the program examples introduced in this manual to an actual system, ensure the applicability and confirm that
it will not cause system control problems.
Remark
In this manual, instructions are written in three programming languages:
ladder diagram for Simple projects, structured ladder/FBD and structured text language for Structured projects.
Please use GX Works2 with the version 1.98C or later for Structured projects.
3
CONTENTS
CONTENTS
SAFETY PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
CONDITIONS OF USE FOR THE PRODUCT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
CONTENTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
RELEVANT MANUALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
TERMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
CHAPTER 1 OVERVIEW 10
1.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.2 PID Control Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.3 Forward Operation and Reverse Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.4 PID Control Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.4.1 Proportional operation (P operation) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
1.4.2 Integral operation (I operation) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
1.4.3 Derivative operation (D operation) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
1.4.4 PID operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
4
CHAPTER 5 EXECUTION CONDITION SWITCHING AND FUNCTIONS 35
5.1 Execution Condition Switching. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.1.1 Loop RUN/STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
5.2 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.2.1 Tracking function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
5.2.2 Cascade loop tracking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
5.2.3 Loop selector tracking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
CHAPTER 6 INSTRUCTIONS 38
6.1 How to Read the Instruction List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.2 List of Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
6.2.1 I/O control instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40
6.2.2 Control operation instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
6.2.3 Compensation operation instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46
6.2.4 Arithmetic operation instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47
6.2.5 Comparison operation instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
6.2.6 Auto tuning instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49
5
9.14 S.LS Low Selector . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159
6
CHAPTER 14 ERROR CODES 253
14.1 List of Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
APPENDICES 255
Appendix 1Program Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
Appendix 2Loop Tag Memory List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Appendix 2.1PID control (SPID), 2-degree-of-freedom PID control (S2PID), sample PI control (SSPI)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .259
Appendix 2.2I-PD control (SIPD), blend PI control (SBPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .261
Appendix 2.3Manual output (SMOUT), monitor (SMON) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .263
Appendix 2.4Manual output with monitor (SMWM), PIDP control (SPIDP) . . . . . . . . . . . . . . . . . . . . .264
Appendix 2.52 position ON/OFF control (SONF2), 3 position ON/OFF control (SONF3) . . . . . . . . . .266
Appendix 2.6Batch counter (SBC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .267
Appendix 2.7Ratio control (SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .268
INDEX 275
REVISIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
WARRANTY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
7
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)
Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals)
SH-080808ENG
Functions, methods, and devices for programming
(13JZ28)
(Sold separately)
MELSEC-Q/L Programming Manual (Common Instruction)
SH-080809ENG
How to use sequence instructions, basic instructions, and application instructions
(13JW10)
(Sold separately)
MELSEC-Q/L/QnA Programming Manual (SFC)
System configuration, performance specifications, functions, programming, debugging, and error codes for SFC SH-080041
(MELSAP3) programs (13JF60)
(Sold separately)
MELSEC-Q/L Programming Manual (MELSAP-L)
SH-080076
Programming methods, specifications, and functions for SFC (MELSAP-L) programs
(13JF61)
(Sold separately)
MELSEC-Q/L/F Structured Programming Manual (Fundamentals)
SH-080782ENG
Methods and languages for structured programming
(13JW06)
(Sold separately)
MELSEC-Q/L Structured Programming Manual (Common Instructions)
Specifications and functions of common instructions, such as sequence instructions, basic instructions, and SH-080783ENG
application instructions, that can be used in structured programs (13JW07)
(Sold separately)
8
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
9
CHAPTER 1 OVERVIEW
This manual describes the process control instructions equipped for the CPU module.
1.1 Features
Example) Process control instructions used to carry out 2-degree-of-freedom PID control
Execution command K1
T0
T0
PLS M0
M0
CALL P1
RST T0
FEND
P1 Always executed
FLT D0 R0
INT R160 D1
RET
10
(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.
1
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.
FIC Regulator 2
FE flow meter
4
Liquid
Diaphragm valve 3
[Example of adding square root operation instruction (S.SQR) to process control instructions]
6
Loop tag memory setting
1.1
Process control instruction Normal ON
S.2PID instruction
(2-degree-of-freedom PID S.2PID R40 R140 R240 R1000 R300
control instruction)
Features
(4) Automatic detection of various alarms
A system can be configured safely since various alarms are detected automatically in the system.
11
(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.
Deviation
DV
PID
Manipulated
variable
Time(t)
12
1.2 PID Control Overview
1
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.
3
Manual
MV
3
A/D
converter Sensor
module 6
PID control compares the value measured in the detection section (process value: PV) with the preset value (set value: SV)
and adjust the output value (manipulated value: MV) to eliminate the difference between the process value and set value. 7
In PID control, proportional operation (P), integral operation (I) and derivative operation (D) are combined to calculate the
manipulated value that will make the process value equal to the set value fast and precisely.
8
• If the difference between the process value and set value is large, the manipulated value is increased to make it close to
the set value fast.
• When the difference between the process value and set value has reduced, the manipulated value is decreased to make it
1.2
equal to the set value slowly and precisely.
(1) Forward operation is the action that increases the manipulated value when the process value increases more than the
set value.
(2) Reverse operation is the action that increases the manipulated value when the process value is decreasing more than
the set value.
(3) Forward operation and reverse operation make the manipulated value larger as the difference between the set value and
the process value becomes larger.
(4) The following figure shows an example of process control in forward operation and reverse operation.
Temperature
Temperature Set value
Process value
Set value
Process value
Time Time
Forward operation (for air conditioning) Reverse operation (for heating)
13
1.4 PID Control Details
This section explains "proportional operation", "integral operation" and "derivative operation" performed for PID control using
the process control instructions.
(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).
(2) The proportional term is given by:
MV = KP • DV
KP is a proportional gain constant.
(3) The proportional operation in the case of a step response with a constant deviation will be as follows.
Deviation
DV
Time
Manipulated
value
K P DV
Time
14
1.4.2 Integral operation (I operation)
(1) Integral operation is the operation that continuously changes the manipulated value to eliminate deviation when there is
deviation. 2
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 (TI).
3
(a) Increasing the integral time decreases the effect of integration.
(It will take time to stabilize.)
4
(b) Decreasing the integral time increases the effect of integration.
However, since the integral operation will be stronger, hunting may become greater.
(3) The integral operation in the case of a step response with a constant deviation will be as follows. 3
Deviation
DV 6
Time
Time
(4) The integral operation is used as the PI operation that is combined with the proportional operation or as the PID
1.4.2
1.4 PID Control Details
operation that is combined with the proportional operation and the derivative operation.
Control cannot be carried out by merely performing the integral operation.
15
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.
(2) The time required for adjusting the manipulated value of the derivative operation to the manipulated value of the
proportional operation after the deviation is detected is called derivative time (TD).
Increasing the derivative time makes the derivative operation stronger.
(3) The derivative operation in the case of a step response with a constant deviation will be as follows.
Deviation
DV
Time
Manipulated
value
TD
Time
(4) The derivative operation can be used as PD operation in combination with a proportional operation or as a PID operation
in combination with the proportional operation and integral operation.
Control cannot be carried out by merely performing the derivative operation.
16
1.4.4 PID operation
This section explains the control operation using combinations of proportional operation (P operation), integral operation (I 1
operation), and derivative operation (D operation).
(1) The PID operation controls the calculated manipulated value using (P + I + D) operation. 2
(2) The PID operation in the case of a step response with a constant deviation will be as follows.
3
Deviation
Time
4
3
Manipulated value
PID operation
PI
operation
I operation
P operation
6
D operation
Time 7
1.4.4
1.4 PID Control Details
PID operation
17
CHAPTER 2 STRUCTURE AND COMBINATIONS OF
PROCESS CONTROL 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.
• Instruction part.......This shows the functions for these instructions.
• Device part.............This shows the data required for operations and the storage destination of the stored operation results.
The device part is classified as the source device and destination device.
For the structure of instructions used in structured programs, refer to the MELSEC-Q/L Structured Programming Manual
(Common Instructions).
18
2.2 How to Specify Data in Devices
1
The following 4 types of data can be used by the process control instructions.
Specify the bit of the word device in the form of " Word device . Bit No. ".
8
(Specify the bit number in hexadecimal.)
For example, specify the bit 5 (b5) of D0 as D0.5, and the bit 10 (b10) of D0 as D0.A.
However, you cannot specify the bits of the timer (T), retentive timer (ST), counter (C) and index register (Z). (Example: You
cannot specify Z0.0.)
2.2.1
2.2 How to Specify Data in Devices
2.2.2 In the case of word (16-bit) data
ALM 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
4 0 0 0
19
2.2.3 In the case of double word (32-bit) data
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).
Example) When D10 is specified for double word data, D10 and D11 are used.
D11 D10
(BW1)H (BW1)L
The data required for operations and the operation results are 32-bit floating-point data.
Floating-point data is displayed as follows using 2 word devices.
The bit configuration when the floating-point data is expressed internally and its meaning are as follows.
• Fixed-point part sign This shows the fixed-point part sign in b31.
0: Positive
1: Negative
• Exponent part This shows the 2n's n and b23 to b30.
The n from b23 to b30's BIN value is as follows.
b23 to b30 FFH FEH FDH 81H 80H 7FH 7EH 02H 01H 00H
Non-numeric Non-numeric
n 127 126 2 1 0 -1 -125 -126
data data
• Fixed-point part This shows the value of XXXXXX... in the 23 bits, b0 to b22, when 1.XXX XXX... is represented in binary.
20
2.2.5 Operation errors
Operation errors caused by process control instructions are stored in the following remote register. 1
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.)
2
Remark
(1) The following errors (other than operation errors) are also stored in the special register. 3
• Error code 4002..........The name of the specified instruction is incorrect.
• Error code 4003..........The number of devices used in the process control instruction is incorrect.
• Error code 4004..........A device that cannot be used in the instruction is specified.
• Error code 4100..........The instruction cannot process the data. 4
(2) For the error code 4100, the detailed information is stored in special register (SD1502 and SD1503). Values in
SD1502 and SD1503 are set to 0 when other than the process control instruction operation error.
For details, refer to Page 253, CHAPTER 14.
4
7
2.2.7 Number of steps
The number of process control instruction steps differs depending upon the number of instruction characters, the device used, 8
and whether or not an indirect setting is valid.
The basic number of steps for the extension instruction are as follows.
2.2.5
2.2 How to Specify Data in Devices
Number of steps in process control instruction = 2 + + number of devices
2
*1 The number of characters is calculated by adding 1 when the number is odd. (For example when rounding up the results of a
Operation errors
division.)
1Step 1Step
The "S." of the instruction code is not 1Step 1Step 1Step
included in the number of characters.
2+2/2+4=7Step
For details, refer to the MELSEC-Q/L Structured Programming Manual (Common Instructions).
Index modification available for the process control instructions is the same as the one available for the basic instructions of
the CPU module.
21
2.3 Basic Loop Types Available by Combinations of Process
Control Instructions
SET SV
22
Loop type Structure Application
Program setting device MV This is output in accordance with the
1
S.PGS OUTPUT
(SPGS) previously set value time change.
Manual output MV This manually operates the operation
S.MOUT OUTPUT
(SMOUT) terminal end.
Monitor PV
This inputs the process value and
detects process errors such as upper/
2
INPUT S.IN S.PHPL OUTPUT
(SMON)
lower limit alarms.
This inputs the process value and
Manual output with monitor PV MV
conducts manual operation while
3
INPUT S.IN S.PHPL S.MOUT OUTPUT
(SMWM)
checking that no errors occur.
Selector
(SSEL)
INPUT1
INPUT2
S.SEL OUTPUT This is used to select signals. 4
2.3
Basic Loop Types Available by Combinations of Process Control Instructions
23
CHAPTER 3 DATA USED FOR PROCESS CONTROL
INSTRUCTIONS AND HOW TO SPECIFY
DATA
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.
2) By monitoring the loop tag, you can monitor and tune the loop (control unit).
[Block diagram]
24
(b) Loop tag memory and operation constant locations in ladder diagram
[Ladder diagram] 1
Use name instruction common table.
P1 Normal execution
6
FLT D0 R0
+46 S.2PID CT 1.0 Real number
+48 S.OUT1 DML 100.0 Real number
S.IN R0 R100 R200 R1000
+50 S.2PID DVL 100.0 Real number
+52 S.2PID P 1.0 Real number
EMOV R100 R20
+54 S.2PID I 10.0 Real number 7
+56 S.2PID D 0.0 Real number
S.PHPL R20 R120 R220 R1000 +58 S.2PID GW 0.0 Real number
8
+60 S.2PID GG 1.0 Real number
EMOV R120 R40 +62 S.OUT1 MVP 0.0 Real number
+64 S.2PID 0.0 Real number
S.2PID R40 R140 R240 R1000 R300 +66 S.2PID 1.0 Real number
3.1
+94 0.0 Real number
S.OUT1 R60 R160 R260 R1000
RET
25
3.2 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.
S.FLT (Standard filter) (For system use only)
S.BUMP (Bumpless transfer)
S.AT1 (Auto tuning)
S.FG (Function generator) The user stores the coordinate values (Xn, Yn) of a function
S.IFG (Inverse function generator) generator. Operations are performed based on these values.
[Block diagram]
Input data setting Operation constant setting
Operation result
Block memory
[Ladder diagram]
The application of the local work memory changes depending on the used instruction. Refer to the explanation section of the
corresponding instruction.
26
3.3 Data Used for Process Control Instructions
1
The following data are used for the process control instructions.
• Loop tag memory Page 27, Section 3.3.1
•
•
Input data
Block memory
Page 28, Section 3.3.2
Page 29, Section 3.3.3
2
• Operation constant Page 29, Section 3.3.4
• Local work memory Page 26, Section 3.2
3
3.3.1 Loop memory
(b) The loop memory has the "loop tag memory" and "loop tag past value memory" areas.
6
(c) The loop memory consists of 128 words (word device: 128 points).
When setting the loop memory areas, specify the device that can occupy 128 words consecutively.
Loop memory 7
Specified device +0
+95
8
+96
Loop tag past value memory
(Usage possible on the user's 32word
side.)
+127
3.3.1
3.3 Data Used for Process Control Instructions
(2) Loop tag memory
(a) The loop tag memory is an area that stores the data used commonly by the process control instructions specified as
Loop memory
the loop type indicated in Page 22, Section 2.3.
(c) Refer to Page 259, Appendix 2 (Loop tag memory list) for the applications of the area used by the process control
instructions in the loop tag memory.
27
(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.
(b) The loop tag past value memory is a 32-word area after the loop tag memory.
(c) At the start of the process control instruction, write "0" to the loop tag past value memory.
(1) Input data is variable data given to each process control instruction.
(2) The input data uses the block word of the block memory that stores the operation result of the process control instruction
executed previously.
Process control instruction Process control instruction
28
3.3.3 Block memory
The block memory is an area that stores the output information of the corresponding process control instruction. 1
The block memory has "block words" and "block bits".
The application of the block memory changes depending on the used instruction.
2
Refer to the explanation section of the corresponding instruction.
Block memory
Specified device number 0
1
Block word
(2 words)
2 words are used when real number
is stored into block word. 3
2 Block bit As block bit, each bit of one word
is used to store ON/OFF data.
(b) As the input data of the next process control instruction linked by the loop, the data stored in the block word is used.
Process control instruction Process control instruction
6
Operation result Operation result
S.IN S.PHPL
6
Input data Block word Input data Block word
Block bit Block bit
Transferred by user 7
(2) Block bit (BB)
The block bit is an area that stores the corresponding alarm data at process control instruction execution.
As the block bits, 16 bits of b0 to b15 are represented as BB1 to BB16. 8
The b0 (BB1) in the block bits stores "1" if any of b1 to b15 (BB2 to BB16) on each instruction stores an alarm data.
b15 b12 b8 b4 b0
B B B B B B B B B B B B B B B B
B B B B B B B B B B B B B B B B
Block bit 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1
3.3.3
3.3 Data Used for Process Control Instructions
6 5 4 3 2 1 0
3.3.4
Block memory
Operation constant
(1) The operation constant is an area that stores the data used by only one process control instruction.
(2) The application of the operation constant changes depending on the used instruction. Refer to the explanation section of
the corresponding instruction.
29
3.3.5 Loop tag memory allocation contents
Instruction Standard
Offset Item Setting range Data type
used value setting
0
For PID control (S2PID loop) 1 MODE 0 to FFFFH 8H BIN16bit
All commonly set in the same 3 ALM 0 to FFFFH 4000H BIN16bit
loop tag
4 INH 0 to FFFFH 4000H BIN16bit
S.PHPL 10 PV RL to RH 0.0 Real number
S.OUT1 12 MV -10 to 110 0.0 Real number
S.2PID 14 SV RL to RH 0.0 Real number
S.2PID 16 DV -110 to 110 0.0 Real number
S.OUT1 18 MH -10 to 110 100.0 Real number
S.OUT1 20 ML -10 to 110 0.0 Real number
S.PHPL 22 RH -999999 to 999999 100.0 Real number
S.PHPL 24 RL -999999 to 999999 0.0 Real number
S.PHPL 26 PH RL to RH 100.0 Real number
S.PHPL 28 PL RL to RH 0.0 Real number
S.PHPL 30 HH RL to RH 100.0 Real number
S.PHPL 32 LL RL to RH 0.0 Real number
Sets the offset position
for each instruction S.IN 38 0 to 1 0.2 Real number
S.PHPL 40 HS 0 to 999999 0.0 Real number
S.PHPL 42 CTIM 0 to 999999 0.0 Real number
S.PHPL 44 DPL 0 to 100 100.0 Real number
S.2PID 46 CT 0 to 999999 1.0 Real number
S.OUT1 48 DML 0 to 100 100.0 Real number
S.2PID 50 DVL 0 to 100 100.0 Real number
S.2PID 52 P 0 to 999999 1.0 Real number
S.2PID 54 I 0 to 999999 10.0 Real number
S.2PID 56 D 0 to 999999 0.0 Real number
S.2PID 58 GW 0 to 100 0.0 Real number
S.2PID 60 GG 0 to 999999 1.0 Real number
S.OUT1 62 MVP -999999 to 999999 0.0 Real number
S.2PID 64 0 to 1 0.0 Real number
S.2PID 66 0 to 1 1.0 Real number
(1) Shows the contents of the bit pack using the loop tag data.
(a) ALM
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 The standard value setting
S D O S H L P D D D M 4000H is shown when manual
P M
P M O E H L H L P P V H L operation is conducted using
A L P A A A A A P N L A A the loop step status. Use 0000H
A A A A A
30
S: Stored by the system
U: Set by the user
3.3.5
3.3 Data Used for Process Control Instructions
are larger than the input upper limit value an alarm is output.
A check is conducted by an upper/lower limiter and if the limiter results
Output lower limit alarm MLA S
are smaller than the input lower limit value an alarm is output.
(b) INH
This prohibits alarm detection for each item. In addition, the alarms prohibited by INH are not detected. (The INH
bits 0 to 11 correspond to the bits 0 to 11 of ALM.)
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
E T D O S H L P P D D D M M
R R M O E H L H L P P V H L
R K L P I I I I I P N L I I
I F I I I I I
Trucking flag
(We ask the user not touch this.)
31
(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.
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
C C C C C C A M L L L
S M C A M A U A C C C
V V B B B S T N C A M
32
CHAPTER 4 HOW TO EXECUTE PROCESS CONTROL
INSTRUCTIONS 1
4.1
The S.2PID or similar instruction uses the value of the control cycle specified in the loop tag memory to perform PID
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 (s)
Execution cycle
1s 1s 1s 1s 1s
5s 5s 5s
Control cycle
(Execution cycle) N
S.2PID instruction performs processing at intervals of 5s.
When the control cycle is set to an integral multiple of the execution cycle, monitoring such as a PV check can be
performed in each execution cycle.
33
4.2 Concept of Program
Execution (1s)
command K10
Execution cycle measurement T0
T0
PLS M0
M0
MOV U0\GO D0
Input data (PV) setting
Import of data (PV) from
A/D converter module or like
CALL P1
RST T0
SM400
P1
FLT D0 R0
INT R160 D1
RET
34
CHAPTER 5 EXECUTION CONDITION SWITCHING
AND FUNCTIONS 1
5.1.1
5.1 Execution Condition Switching
Loop RUN/STOP
35
5.2 Functions
The tracking function includes the "bumpless function" and "output limiter processing".
The process control loops that comprise a cascade loop use the manipulated value (MV) of a primary loop (Loop 0) as the set
value (SV) of a secondary loop (Loop 1).
Tracking is performed to prevent the sudden variation of the set value (SV) when the operation mode of the secondary loop
(Loop 1) is changed.
(1) The cascade PID loop Tracking processing is shown in the diagram below.
[Processing concept diagram]
SV
PID
PV1
Trucking data transmission
MV
Loop 0
SV
(a) In cascade operation, the manipulated value (MV) of Loop 0 is transferred to the set value (SV) of Loop 1.
(b) When cascade operation is not performed, the set value (SV) of Loop 1 is transferred to the manipulated value (MV)
of Loop 0.
(Tracking to the source specified as the input terminal of the set value (SV) of Loop 1)
36
(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. 1
Setting item Setting
Tracking bit (TRK) 1 (Tracking performed)
5.2.3
5.2 Functions
Operation constant
Tracking bit S2 +4 1 0: Tracking not performed.
37
CHAPTER 6 INSTRUCTIONS
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
1) 2) 3) 4) 5) 6) 7) 8)
S.OUT2 S1 D1 S2 D2
S2 d2
38
5) A written format in the structured text language
Outputs an execution status.
6.1
How to Read the Instruction List
39
6.2 List of Instructions
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.IN S1 D1 S2 D2
ENO:=S_IN(EN,s1,s2,d1,d2);
S.OUT1 S1 D1 S2 D2
ENO:=S_OUT1(EN,s1,s2,d1,d2);
S.OUT2 S1 D1 S2 D2
S_OUT2
Performs change rate, upper/lower
I/O control
S.OUT2 EN ENO limiter processing and output on time 8 Page 65
instruction
s1 d1 conversion from the input data (MV).
s2 d2
ENO:=S_OUT2(EN,s1,s2,d1,d2);
S.MOUT S1 D1 S2 D2
S_MOUT
Reads the MV of the loop tag memory
S.MOUT EN ENO and performs output conversion and 8 Page 70
s1 d1 alarm clear processing.
s2 d2
ENO:=S_MOUT(EN,s1,s2,d1,d2);
S.DUTY S1 D1 S2 D2
S_DUTY
Changes the ON/OFF rate within a
S.DUTY EN ENO given cycle in proportion to the input 8 Page 74
s1 d1 data (0 to 100%) and outputs the result.
s2 d2
ENO:=S_DUTY(EN,s1,s2,d1,d2);
40
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.BC S1 D1 S2 D2 1
S_BC
Compares the input data with the set
S.BC EN
s1
ENO
d1
value and outputs bit data as soon as
the input data reaches the set value.
7 Page 81
2
s2 d2
S_PSUM 4
Integrates the number of input pulses
S.PSUM EN ENO 8 Page 85
and outputs the result.
s1 d1
s2 d2 4
ENO:=S_PSUM(EN,s1,s2,d1,d2);
6
6.2.2 Control operation instructions
Category
Instruction
Symbol Processing details
Number of
Reference
7
symbol steps
S.PID S1 D1 S2 D2 S3
Conducts process value derivative type 8
S_PID PID operations. (Incomplete derivative)
Performs SV setting processing,
S.PID EN ENO 9 Page 90
s1 d1 tracking processing, gain Kp operation
s2 d2 processing, PID operation and deviation
s3
check.
6.2.2
6.2 List of Instructions
ENO:=S_PID(EN,s1,s2,s3,d1,d2);
ENO:=S_2PID(EN,s1,s2,s3,d1,d2);
Performs position type PID operation.
S.PIDP S1 D1 S2 D2 S3
Performs SV setting processing,
tracking processing, gain Kp operation
S_PIDP
processing, PID operation, deviation
EN ENO
check and operation mode judgment.
S.PIDP s1 d1 9 Page 106
s2 d2 According to the result, performs
s3 change rate, upper/lower limiter and
output on time conversion or performs
alarm clear processing and output on
ENO:=S_PIDP(EN,s1,s2,s3,d1,d2);
time conversion.
41
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.SPI S1 D1 S2 D2 S3
Judges between the operating time and
S_SPI hold time, and if it is the operating time,
performs SV setting processing,
S.SPI EN ENO 9 Page 115
s1 d1 tracking processing, gain Kp operation
s2 d2 processing, SPI operation and deviation
s3
check.
ENO:=S_SPI(EN,s1,s2,s3,d1,d2);
S.IPD S1 D1 S2 D2 S3
ENO:=S_IPD(EN,s1,s2,s3,d1,d2);
S.BPI S1 D1 S2 D2 S3
Control
ENO:=S_BPI(EN,s1,s2,s3,d1,d2);
operation
instruction S.R S1 D1 S2 D2 S3
S_R
Performs engineering value conversion,
S.R EN ENO tracking processing, change rate limiter 8 Page 137
s1 d1
and ratio operation on the input data.
s2 d2
s3
ENO:=S_R(EN,s1,s2,s3,d1,d2);
S.PHPL S1 D1 S2 D2
S_PHPL
Conducts an Upper limit value/lower
S.PHPL EN ENO limit value check of the PV output by the 8 Page 142
s1 d1 S.IN instruction.
s2 d2
ENO:=S_PHPL(EN,s1,s2,d1,d2);
S.LLAG S1 D1 S2 D2
S_LLAG
Conducts lead-lag compensation for
S.LLAG EN ENO input data and outputs the operation 8 Page 148
s1 d1 results.
s2 d2
ENO:=S_LLAG(EN,s1,s2,d1,d2);
42
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.I S1 D1 S2 D2 1
S_I
Conducts integral operations on the
S.I EN
s1
ENO
d1
input data and outputs the operation
results.
7 Page 150
2
s2 d2
ENO:=S_I(EN,s1,s2,d1,d2); 3
S.D S1 D1 S2 D2
S_D
Conducts Derivative operations on the 4
S.D EN ENO input data and outputs the operation 7 Page 152
s1 d1 results.
s2 d2 4
ENO:=S_D(EN,s1,s2,d1,d2);
S.DED S1 D1 S2 D2
6
S_DED
Delays the input data by the specified
S.DED EN ENO 8 Page 154
s1 d1
dead time and then outputs it. 7
s2 d2
Control
operation
ENO:=S_DED(EN,s1,s2,d1,d2);
8
instruction S.HS S1 D1 S2 D2
S_HS
Outputs the maximum value among the
S.HS EN ENO 7 Page 157
input data.
6.2.2
6.2 List of Instructions
s1 d1
s2 d2
S.LS S1 D1 S2 D2
S_LS
Outputs the minimum value among the
S.LS EN ENO 7 Page 159
input data.
s1 d1
s2 d2
ENO:=S_LS(EN,s1,s2,d1,d2);
S.MID S1 D1 S2 D2
S_MID
Outputs the middle value between the
EN ENO
S.MID maximum value and minimum value 8 Page 161
s1 d1 among the input data.
s2 d2
ENO:=S_MID(EN,s1,s2,d1,d2);
43
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.AVE S1 D1 S2 D2
S_AVE
Calculates and outputs the average
S.AVE EN ENO 8 Page 164
value of the input data.
s1 d1
s2 d2
ENO:=S_AVE(EN,s1,s2,d1,d2);
S.LIMT S1 D1 S2 D2
S_LIMT
S.LIMT EN ENO Limits the output value with hysteresis. 8 Page 166
s1 d1
s2 d2
ENO:=S_LIMT(EN,s1,s2,d1,d2);
S.VLMT1 S1 D1 S2 D2
S_VLMT1
Limits the varying speed of the output
S.VLMT1 EN ENO 9 Page 168
value.
s1 d1
s2 d2
Control
ENO:=S_VLMT1(EN,s1,s2,d1,d2);
operation
instruction S.VLMT2 S1 D1 S2 D2
S_VLMT2
Limits the varying speed of the output
S.VLMT2 EN ENO 9 Page 171
value.
s1 d1
s2 d2
ENO:=S_VLMT2(EN,s1,s2,d1,d2);
S.ONF2 S1 D1 S2 D2 S3
ENO:=S_ONF2(EN,s1,s2,s3,d1,d2);
S.ONF3 S1 D1 S2 D2 S3
Performs three-position ON/OFF
S_ONF3 control.
Performs SV setting processing,
S.ONF3 EN ENO 9 Page 180
s1 d1 tracking processing, MV compensation,
s2 d2 MV output and three-position ON/OFF
s3
control.
ENO:=S_ONF3(EN,s1,s2,s3,d1,d2);
44
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.DBND S1 D1 S2 D2 1
S_DBND
Provides a dead band and performs
S.DBND EN
s1
ENO
d1
output processing.
8 Page 186
2
s2 d2
ENO:=S_DBND(EN,s1,s2,d1,d2); 3
S.PGS S1 D1 S2 D2
S_PGS 4
Provides a control output according to
S.PGS EN ENO 8 Page 188
the SV and MV pattern.
s1 d1
s2 d2 4
ENO:=S_PGS(EN,s1,s2,d1,d2);
S.SEL S1 D1 S2 D2 S3
6
Outputs the value selected by the
S_SEL
Control selection signal out of the input data in
operation S.SEL EN ENO the automatic mode, or outputs the MV 9 Page 193
instruction
s1 d1
of the loop tag memory in the manual
7
s2 d2
s3 mode.
ENO:=S_SEL(EN,s1,s2,s3,d1,d2);
8
S.BUMP S1 D1 S2 D2
6.2.2
6.2 List of Instructions
s1 d1 signal is switched from manual to
s2 d2 automatic.
S.AMR S1 D1 S2 D2
S_AMR
Increases or decreases the output value
S.AMR EN ENO 8 Page 202
at the fixed rate.
s1 d1
s2 d2
ENO:=S_AMR(EN,s1,s2,d1,d2);
45
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 EN ENO function generator pattern whose input 7 Page 205
s1 d1 data is specified.
s2 d2
ENO:=S_FG(EN,s1,s2,d1,d2);
S.IFG S1 D1 S2 D2
S_IFG
Outputs the value that follows the
S.IFG EN ENO inverse function generator pattern 8 Page 207
s1 d1 whose input data is specified.
s2 d2
ENO:=S_IFG(EN,s1,s2,d1,d2);
S.FLT S1 D1 S2 D2
S_FLT
Outputs the average value of n pieces
S.FLT EN ENO of data sampled at the specified data 8 Page 209
s1 d1 collection intervals.
s2 d2
Compensa-
ENO:=S_FLT(EN,s1,s2,d1,d2);
tion operation
instruction S.SUM S1 D1 S2 D2
S_SUM
Integrates the input data and outputs
S.SUM EN ENO 8 Page 212
the result.
s1 d1
s2 d2
ENO:=S_SUM(EN,s1,s2,d1,d2);
S.TPC S1 D1 S2 D2
S_TPC
Makes temperature/pressure
S.TPC EN ENO correction to the input data and 8 Page 214
s1 d1 outputs the result.
s2 d2
ENO:=S_TPC(EN,s1,s2,d1,d2);
S.ENG S1 D1 S2 D2
S_ENG
Converts the input data into an
S.ENG EN ENO 8 Page 217
engineering value.
s1 d1
s2 d2
ENO:=S_ENG(EN,s1,s2,d1,d2);
46
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.IENG S1 D1 S2 D2
1
S_IENG
Compensa- Reversely converts the input data from
tion operation
instruction
S.IENG EN
s1
ENO
d1
the engineering value and outputs the
result.
8 Page 219
2
s2 d2
ENO:=S_IENG(EN,s1,s2,d1,d2); 3
6.2.4 Arithmetic operation instructions
4
Instruction Number of
Category Symbol Processing details Reference
symbol steps
4
S.ADD S1 D1 S2 D2
S_ADD
6
S.ADD EN ENO Adds the input data with coefficients. 8 Page 221
s1 d1
s2 d2
7
ENO:=S_ADD(EN,s1,s2,d1,d2);
S.SUB S1 D1 S2 D2
8
S_SUB
Subtracts the input data with
S.SUB EN ENO 8 Page 223
coefficients.
s1 d1
s2 d2
6.2.4
6.2 List of Instructions
Arithmetic
ENO:=S_SUB(EN,s1,s2,d1,d2);
operation
S_MUL
Multiplies the input data with
S.MUL EN ENO 8 Page 225
coefficients.
s1 d1
s2 d2
ENO:=S_MUL(EN,s1,s2,d1,d2);
S.DIV S1 D1 S2 D2
S_DIV
S.DIV EN ENO Divides the input data with coefficients. 8 Page 227
s1 d1
s2 d2
ENO:=S_DIV(EN,s1,s2,d1,d2);
47
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 EN ENO 8 Page 229
input data.
s1 d1
s2 d2
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 EN ENO 8 Page 231
data.
s1 d1
s2 d2
ENO:=S_ABS(EN,s1,s2,d1,d2);
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S. S1 D1 S2 D2
S_GT
Compares the input data and outputs
S. > EN ENO 7 Page 233
the result of comparison.
s1 d1
s2 d2
ENO:=S_GT(EN,s1,s2,d1,d2);
S. S1 D1 S2 D2
S_LT
Comparison
Compares the input data and outputs
operation S. < EN ENO 7 Page 235
the result of comparison.
instruction s1 d1
s2 d2
ENO:=S_LT(EN,s1,s2,d1,d2);
S. S1 D1 S2 D2
S_EQ
Compares the input data and outputs
S. = EN ENO 7 Page 237
the result of comparison.
s1 d1
s2 d2
ENO:=S_EQ(EN,s1,s2,d1,d2);
48
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S. S1 D1 S2 D2
1
S_GE
Compares the input data and outputs
S. >= EN
s1
ENO
d1
the result of comparison.
7 Page 239
2
s2 d2
Comparison
operation
ENO:=S_GE(EN,s1,s2,d1,d2); 3
instruction S. S1 D1 S2 D2
S_LE 4
Compares the input data and outputs
S. <= EN ENO 7 Page 241
the result of comparison.
s1 d1
s2 d2 4
ENO:=S_LE(EN,s1,s2,d1,d2);
6
6.2.6 Auto tuning instructions
Category
Instruction
Symbol Processing details
Number of
Reference
7
symbol steps
S.AT1 S1 D1 S2 D2 D3
8
S_AT1
Auto Tuning Performs auto tuning and makes the
S.AT1 EN ENO 9 Page 246
Instruction s1 d1 initial setting of the PID constants.
s2 d2
d3
6.2.6
6.2 List of Instructions
ENO:=S_AT1(EN,s1,s2,d1,d2,d3);
49
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.
1)
2)
3)
4)
5)
6)
50
1) A section number, instruction name, and instruction symbol
51
7)
8)
52
1
9)
2
10) 4
53
S.IN
8.1 S.IN
Ladder diagram
Start contact
S.IN S.IN S1 D1 S2 D2
S_IN
EN ENO
ENO:=S_IN(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
Converts the input value (E1) of the device specified in S1 into an engineering value, and stores the result into the device
specified in D1 .
Also performs the range check, input limiter processing and digital filter processing of the input value (E1) at this time.
54
S.IN
Set Data
Block diagram
1
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.)
(5)
RUN(SPA 0) 4
Upper limit alarm
BB1
SPA
OR
7
SEA
ERRI SEI
(5)
Last BW 8
Loop stop All OFF
MAN processing
MODE
8.1
Set Data
S.IN
(1) Data specified in S.IN instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0
Input data E1 Input value -999999 to 999999 –– Real number –– U
+1
D1 +0
BW Output value (-999999 to 999999) % Real number –– S
+1
BB ––
55
S.IN
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
Engineering
S2 +0 Real
EMAX conversion -999999 to 999999 % 100.0 U
+1 number
upper limit
Engineering
+2 Real
EMIN conversion -999999 to 999999 % 0.0 U
+3 number
lower limit
+4 Input upper Real
NMAX -999999 to 999999 –– 100.0 U
+5 limit number
+6 Input lower Real
NMIN -999999 to 999999 –– 0.0 U
+7 limit number
Operation Upper limit
+8 Real
constant HH range error -999999 to 999999 –– 110.0 U
+9 number
occurrence
Upper limit
+10 Real
H range error -999999 to 999999 –– 100.0 U
+11 number
return
Lower limit
+12 Real
L range error -999999 to 999999 –– 0.0 U
+13 number
return
Lower limit
+14 Real
LL range error -999999 to 999999 –– -10.0 U
+15 number
occurrence
0 to FFFFH
Operation b15 b12 b8 b4 b0 BIN
D1 +1 MODE C C C C C C A M L L L –– 8H S/U
mode S M C A M A U A C C C 16bit
V V B B B S T N C A M
0 to FFFFH
b15 b12 b8 b4 b0
S S
P E
Alarm A A
BIN
+3 ALM –– 0H S/U
detection 16bit
Loop tag SPA SEA
*2 0: Loop RUN (0: Without alarm)
memory
1: Loop STOP (1: With alarm)
0 to FFFFH
b15 b12 b8 b4 b0
Alarm E S
R E BIN
+4 INH detection R I –– 0H S/U
I 16bit
inhibition
0: Alarm enable
1: Alarm inhibit
+38 Filter Real
0 to 1 –– 0.2 U
+39 coefficient number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
56
S.IN
8.1
E1 NMAX NMAX
E1 NMIN NMIN
S.IN
NMIN < E1 < NMAX E1
57
S.IN
EMAX
T1 NMIN
T2 (EMAX EMIN) EMIN
NMAX NMIN
EMIN
NMIN NMAX T1
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
58
S.OUT1
8.2 S.OUT1
1
Ladder diagram
Start contact 2
S.OUT1 S.OUT1 S1 D1 S2 D2
EN ENO
ENO:=S_OUT1(EN,s1,s2,d1,d2);
s1 d1 4
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
8.2
Function
S.OUT1
Calculates the manipulated value (MV) by performing input addition processing from the input value (E1 = MV) of the device
specified in S1 , and stores the result into the device specified in D1 .
Also performs the change rate, upper/lower limiter, reset windup and output conversion processings of the calculated
manipulated value (MV) at this time.
59
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.)
RUN(SPA 0)
(6) MAN or like
Loop STOP(SPA 1)
stop Alarm clear
judgment processing
Upper limit alarm
Lower limit alarm
SPA
MHA
MLA
DMLA
TRKF OR BB1
MODE
(6)
Last BW
All OFF Loop stop
MAN processing All OFF
60
S.OUT1
Set Data
1
(1) Data specified in S.OUT1 instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0 Input value Real 2
Input data E1 -999999 to 999999 % –– U
+1 ( MV) number
D1 +0 Real
+1
BW Output value (-999999 to 999999) ––
number
–– S
3
BB ––
BB1 Alarm
Block
memory
BB2
Output upper
limit alarm
b15 b12 b8 b4
B B B
b0
B 4
B B B B
+2 4 3 2 1 BIN
Output lower –– –– S
BB3 16bit
limit alarm (0: Without alarm)
Output change (1: With alarm) 4
BB4
rate alarm
Output
+0 Real
6
S2
NMAX conversion -999999 to 999999 –– 100.0 U
+1 number
Operation upper limit
constant Output
+2 Real
NMIN conversion -999999 to 999999 –– 0.0 U
+3
lower limit
number
7
0 to FFFFH
Operation b15 b12 b8 b4 b0 BIN
8H
D2 +1 MODE
mode
C
S
V
C C C C C A M L L L
M C A M A U A C C C
V B B B S T N C A M
––
16bit
S/U
8
0 to FFFFH
b15 b12 b8 b4 b0
S D S M M
8.2
P M E H L
A L A A A
A
S.OUT1
Alarm BIN
+3 ALM SPA –– 4000H S/U
detection 16bit
0: Loop RUN
1: Loop STOP
Loop tag DMLA, SEA, MHA, MLA
memory *2 (0: Without alarm)
(1: With alarm)
0 to FFFFH
b15 b12 b8 b4 b0
E T D M M
R R M H L
R K L I I
I F I
Alarm
BIN
+4 INH detection TRKF –– 4000H S/U
(0: Without tracking) 16bit
inhibition
(1: With tracking)
ERRI, DMLI, MHI, MLI
0: Alarm enable
1: Alarm inhibit
+12 Manipulated Real
MV -10 to 110 % 0.0 S/U
+13 value number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
61
S.OUT1
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
D2 +18 Output upper Real
MH -10 to 110 % 100.0 U
+19 limit value number
+20 Output lower Real
ML -10 to 110 % 0.0 U
+21 limit value number
Output change
+48 Real
Loop tag DML rate 0 to 100 % 100.0 U
+49 number
memory *2 limit value
+54 Integral Real
I 0 to 999999 s 10.0 U
+55 constant number
MV inside
+62 Real
MVP operation (-999999 to 999999) % 0.0 S
+63 number
value
Loop tag
past value
D2 +116 –– –– Used by the system as a work area. –– –– –– S
memory *2
*3
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
*3 The application of the loop tag past value memory are indicated below.
Specified position Description
Alarm detection 2 (ALM2)
b15 b12 b8 b4 b0
M M
L H
D2 +116 A A
2 2
MHA2,MLA2
(0: Without alarm)
(1: With alarm)
When control is to be started from the initial status, the data must be cleared with the sequence program.
(b) When the operation mode (MODE) is any of AUT, CAB, CAS, CCB, CSV, LCA and LCC, "(2) Input addition
processing" is performed.
However, when SEA of the alarm detection (ALM) is 1 and SM1501 is ON (with hold), BB1 to BB4 are turned to 0
and the S.OUT1 instruction is terminated.
62
S.OUT1
(b) The upper/lower limiter performs the following operation and outputs the result of the operation to BB2, BB3, MHA, 8
MLA, MHA2, and MLA2.
Condition BB3, MLA, MLA2 BB2, MHA, MHA2 MV
T1 > MH 0 *2 MH
1
T1 < ML *3 0 ML
1
8.2
ML T1 MH 0 0 T1
S.OUT1
*2 When MHI or ERRI in the alarm detection inhibition (INH) is set to 1, MHA and BB2 show 0 since the alarm is prohibited.
However, even if MHI and/or ERRI in the alarm detection inhibition (INH) is set to 1, MHA2 holds 1.
*3 When MLI or ERRI in the alarm detection inhibition (INH) is set to 1, MLA and BB3 show 0 since the alarm is prohibited.
However, even if MLI and/or ERRI in the alarm detection inhibition (INH) is set to 1, MLA2 holds 1.
63
S.OUT1
T T
When T1 > MH, 1 MVP (MH T) T
TI TI
T T
When T1 < ML, 1 MVP (ML T) T
TI TI
(b) Setting 0 in SPA of the alarm detection (ALM) selects a loop run.
A loop run performs "(1) Mode judgment".
(7) Hold processing
Used to specify whether the output value will be held or not by the S.OUT1 instruction at sensor error occurrence
(detected by the S.IN instruction).
A hold processing is performed when the value is determined as RUN at "Loop stop judgement".
Use SM1501 to select whether the manipulated value (MV) will be held or not at sensor alarm occurrence.
• SM1501 = OFF: Manipulated value (MV) will not be held.
• 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.
64
S.OUT2
8.3 S.OUT2
1
Ladder diagram
Start contact 2
S.OUT2 S.OUT2 S1 D1 S2 D2
EN ENO
ENO:=S_OUT2(EN,s1,s2,d1,d2);
s1 d1 4
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
8.3
Function
S.OUT2
Converts the input value (E1 = MV) of the device specified in S1 into an output, and stores the result into the device specified
in D1 .
Also performs the change rate, upper/lower limiter processing and output conversion processing of the input value at this
time.
65
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.)
E1
(1) (2) (3)
Change rate, Output
Mode upper/lower conversion
judgment AUT or like BW
limiter processing
(4) RUN(SPA 0)
MAN or like Alarm clear
Loop processing
STOP(SPA 1)
stop
judgment Upper limit alarm
Lower limit alarm
SPA
MHA
MLA
DMLA
OR BB1
MODE
(4)
Last BW
All OFF Loop stop
MAN processing All OFF
66
S.OUT2
Set Data
1
(1) Data specified in S.OUT2 instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0 Input Real 2
Input data E1 -999999 to 999999 % –– U
+1 value(MV) number
D1 +0 Real
+1
BW Output value (-999999 to 999999) ––
number
–– S
3
BB
BB1 Alarm
Block
memory
BB2
Output upper
limit alarm
b15 b12 b8 b4
B
B
B B
B B
b0
B
B
4
+2 4 3 2 1 BIN
Output lower –– –– S
BB3 16bit
limit alarm (0: Without alarm)
BB4
Output change (1: With alarm) 4
rate alarm
Output
+0 Real
6
S2
NMAX conversion -999999 to 999999 –– 100.0 U
+1 number
Operation upper limit
constant Output
+2 Real
NMIN conversion -999999 to 999999 –– 0.0 U
+3
lower limit
number
7
0 to FFFFH
Operation b15 b12 b8 b4 b0 BIN
8H
D2 +1 MODE
mode
C
S
V
C C C C C A M L L L
M C A M A U A C C C
V B B B S T N C A M
––
16bit
S/U
8
0 to FFFFH
b15 b12 b8 b4 b0
S D S M M
8.3
P M E H L
A L A A A
A
S.OUT2
Alarm BIN
+3 ALM –– 4000H S/U
detection SPA 16bit
0: Loop RUN
1: Loop STOP
DMLA, SEA, MHA, MLA
Loop tag (0: Without alarm)
*2 (1: With alarm)
memory
0 to FFFFH
b15 b12 b8 b4 b0
Alarm E D M M
R M H L BIN
+4 INH detection R L I I –– 4000H S/U
I I 16bit
inhibition
0: Alarm enable
1: Alarm inhibit
+12 Manipulated Real
MV -10 to 110 % 0.0 S/U
+13 value number
+18 Output upper Real
MH -10 to 110 % 100.0 U
+19 limit value number
+20 Output lower Real
ML -10 to 110 % 0.0 U
+21 limit value number
+48 Output change Real
DML 0 to 100 % 100.0 U
+49 rate limit value number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
67
S.OUT2
(b) When the operation mode (MODE) is any of AUT, CAB, CAS, CCB, CSV, LCA and LCC, "(2) Change rate, upper/
lower limiter" is performed.
However, when SEA of the alarm detection (ALM) is 1 and SM1501 is ON (with hold), BB1 to BB4 are turned to 0
and the S.OUT2 instruction is terminated.
(2) Change rate, upper/lower limiter
The change rate and upper/lower limits are checked for the input value (E1), and the data after the limiter processing and
an alarm are output.
(a) The change rate limiter performs the following operation and outputs the result of the operation to BB4 and DMLA.
Condition BB4, DMLA Result (T1)
|E1 - MV| DML 0 E1
(E1 - MV) > DML *1 MV + DML
1
(E1 - MV) < - DML 1 *1 MV - DML
*1 When DMLI or ERRI in the alarm detection inhibition (INH) is set to 1, DMLA and BB4 show 0 since the alarm is prohibited.
(b) The upper/lower limiter performs the following operation and outputs the result of the operation to BB2, BB3, MHA
and MLA.
Condition BB3, MLA BB2, MHA MV
T1 > MH 0 1 *2 MH
T1 < ML 1 *3 0 ML
ML T1 MH 0 0 T1
*2 When MHI or ERRI in the alarm detection inhibition (INH) is set to 1, MHA and BB2 show 0 since the alarm is prohibited.
*3 When MLI or ERRI in the alarm detection inhibition (INH) is set to 1, MLA and BB3 show 0 since the alarm is prohibited.
68
S.OUT2
6
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
7
Error code Error definition QnPHCPU QnPRHCPU QnUDPVCPU
When an operation error occurs ––
4100 When the values of S1 , S2 , D2
non-normalized number
are either a non-numeric or
–– 8
When the values of S1 , S2 , D2 are either a non-numeric or
4140 –– ––
non-normalized number
4141 When an operation error occurs –– ––
8.3
S.OUT2
69
S.MOUT
8.4 S.MOUT
Ladder diagram
Start contact
S.MOUT S.MOUT S1 D1 S2 D2
S_MOUT
EN ENO
ENO:=S_MOUT(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
Converts the manipulated value (MV) specified in D2 into an output, and stores the result into the device specified in D1 .
70
S.MOUT
Set Data
Block diagram
1
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.)
MV NMAX, NMIN
2
(1)
MAN or like
(2)
3
Mode Output
judgment conversion BW
(3)
RUN(SPA 0) AUT or like
Last BW
4
Loop
stop STOP(SPA 1)
judgment 4
(3)
6
SPA
Loop stop Last BW
MAN processing
MODE
7
8.4
S.MOUT
71
S.MOUT
Set Data
(1) Data specified in S.MOUT instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
Block D1 +0 Real
BW Output value (-999999 to 999999) –– –– S
memory +1 number
Output
S2 +0 Real
NMAX conversion -999999 to 999999 –– 100.0 U
+1 number
Operation upper limit
constant Output
+2 Real
NMIN conversion -999999 to 999999 –– 0.0 U
+3 number
lower limit
0 to FFFFH
b15 b12 b8 b4 b0
Operation C C C C C C A M L L L BIN
D2 +1 MODE S M C A M A U A C C C –– 8H S/U
mode V V B B B S T N C A M 16bit
0 to FFFFH
Loop tag
b15 b12 b8 b4 b0
memory *2 S
P
Alarm A
BIN
+3 ALM –– 4000H S/U
detection 16bit
SPA
0: Loop RUN
1: Loop STOP
+12 Manipulated Real
MV -10 to 110 % 0.0 U
+13 value number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
72
S.MOUT
Operation Error 3
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
4
Error code Error definition QnPHCPU QnPRHCPU QnUDPVCPU
When an operation error occurs ––
4100 When the values of
normalized number
S2 , D2 are either a non-numeric or non-
–– 4
When the values of S2 , D2 are either a non-numeric or non-
4140 –– ––
normalized number
4141 When an operation error occurs –– –– 6
8.4
S.MOUT
73
S.DUTY
8.5 S.DUTY
Ladder diagram
Start contact
S.DUTY S.DUTY S1 D1 S2 D2
S_DUTY
EN ENO
ENO:=S_DUTY(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
Calculates the manipulated value (MV) by performing input addition processing from the input value (E1 = MV) of the device
specified in S1 . Turns ON/OFF the device specified in D1 in proportion to the manipulated value (MV).
The ON/OFF time is a value on the assumption that the time specified as the control output cycle (CTDUTY) is 100%.
The ON/OFF time is changed in each execution cycle.
Also performs the change rate, upper/lower limiter and reset windup of the calculated manipulated value (MV) at this time.
Manipulated
value
70
50
30
Time
ON
Output Value (BW)
OFF
(Device specified in D1 )
30 50 70
70 50 30
74
S.DUTY
Set Data
Block diagram
1
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.)
2
MH, ML, DML MV MVP CTDUTY
(1)
AUT
or like (2) (3) (4) (5) (6)
3
E1
Input Change rate, Output
Mode Reset Output
addition upper/lower ON time
4
judgment windup conversion BW
processing limiter conversion
ERRI DMLI
AND BB4
8.5
S.DUTY
MHA
MLA
DMLA
TRKF OR BB1
MODE
(7)
Last BW
All OFF Loop stop
MAN processing All OFF
75
S.DUTY
Set Data
(1) Data specified in S.DUTY instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0 Input value Real
Input data E1 -999999 to 999999 % –– U
+1 ( MV) number
BW ––
b15 b12 b8 b4 b0
B
W
D1 +0 1 BIN
BW1 Output bit –– –– S
16Bit
(0: OFF)
(1: ON)
Block BB
memory BB1 Alarm
Output upper
BB2 b15 b12 b8 b4 b0
limit alarm B B B B
B B B B
+1 Output lower 4 3 2 1 BIN
BB3 –– –– S
limit alarm 16Bit
Output (0: Without alarm)
(1: With alarm)
BB4 change rate
alarm
0 to FFFFH
Operation b15 b12 b8 b4 b0 BIN
D2 +1 MODE C C C C C C A M L L L –– 8H S/U
mode S M C A M A U A C C C 16Bit
V V B B B S T N C A M
0 to FFFFH
b15 b12 b8 b4 b0
S D S M M
P M E H L
A L A A A
A
Alarm BIN
+3 ALM –– 4000H S/U
detection SPA 16Bit
0: Loop RUN
1: Loop STOP
Loop tag DLMA, SEA, MHA, MLA
memory *2 (0: Without alarm)
(1: With alarm)
0 to FFFFH
b15 b12 b8 b4 b0
E T D M M
R R M H L
R K L I I
I F I
Alarm
BIN
+4 INH detection TRKF –– 4000H S/U
(0: Without tracking) 16Bit
inhibition
(1: With tracking)
ERRI, DMLI, MHI, MLI
0: Alarm enable
1: Alarm inhibit
+12 Manipulated Real
MV -10 to 110 % 0.0 S/U
+13 value number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
76
S.DUTY
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
+20
ML
Output lower
-10 to 110 %
Real
0.0 U 2
+21 limit value number
Output
+48 Real
DML change rate 0 to 100 % 100.0 U
Loop tag +49
limit value
number 3
memory *2
+54 Integral Real
I 0 to 999999 s 10.0 U
+55 constant number
+62
MV inside
Real
4
MVP operation (-999999 to 999999) % 0.0 S
+63 number
value
+68
CTDUTY
Control
0 to 999999 Note that
CTDUTY
32767 s
Real
1.0 U 4
+69 output cycle T number
D2 +116
Loop tag
past value
–– –– Used by the system as a work area. –– –– –– S 6
memory
*2 *3
+121
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the 7
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
*3 The applications of the loop tag past value memory are indicated below. 8
Specified position Description
Alarm detection 2 (ALM2)
b15 b12 b8 b4 b0
M M
L H
D2 +116 A A
8.5
2 2
MHA2,MLA2
S.DUTY
(0: Without alarm)
(1: With alarm)
77
S.DUTY
(b) When the operation mode (MODE) is any of AUT, CAB, CAS, CCB, CSV, LCA and LCC, "(2) Input addition
processing" is performed.
However, when SEA of the alarm detection (ALM) is 1 and SM1501 is ON (with hold), BB1 to BB4 are turned to 0
and the S.DUTY instruction is terminated.
(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).
2) The input value (E1) is changed to 0. ( MV = 0)
3) The tracking flag (TRKF) of the alarm detection inhibition (INH) is turned to 0.
4) The temporary MV (T) is calculated with the following expression.
T = E1 + MVP
MVP = T
(b) When the tracking flag (TRKF) of the alarm detection inhibition (INH) is 0, the temporary MV (T) is calculated with
the following expression.
T = E1 + MVP
MVP = T
(3) Change rate, upper/lower limiter
The change rate and upper/lower limits are checked for a difference between the temporary MV (T) and manipulated
value (MV), and the data after the limiter processing and an alarm are output.
(a) The change rate limiter performs the following operation and outputs the result of the operation to BB4 and DMLA.
Condition BB4, DMLA Result (T1)
|T - MV| DML 0 T
(T - MV) > DML 1 *1 MV + DML
(T - MV) < - DML 1 *1 MV - DML
*1 When DMLI or ERRI in the alarm detection inhibition (INH) is set to 1, DMLA and BB4 show 0 since the alarm is prohibited.
(b) The upper/lower limiter performs the following operation and outputs the result of the operation to BB2, BB3, MHA,
MLA, MHA2, and MLA2..
Condition BB3, MLA, MLA2 BB2, MHA, MHA2 MV
T1 > MH 0 *2 MH
1
T1 < ML *3 0 ML
1
ML T1 MH 0 0 T1
*2 When MHI or ERRI in the alarm detection inhibition (INH) is set to 1, MHA and BB2 show 0 since the alarm is prohibited.
However, even if MHI and/or ERRI in the alarm detection inhibition (INH) is set to1, MHA2 holds 1.
*3 When MLI or ERRI in the alarm detection inhibition (INH) is set to 1, MLA and BB3 show 0 since the alarm is prohibited.
However, even if MLI and/or ERRI in the alarm detection inhibition (INH) is set to1, MLA2 holds 1.
78
S.DUTY
(b) When the control output cycle (CTDUTY) is not reached, the output counter is incremented by 1 and "(6) Output
6
conversion processing" is performed.
(6) Output conversion processing
In the output conversion processing, the following processing is performed. 7
Condition BW
Output counter < output ON counter 1 (ON)
Output counter output ON counter 0 (OFF)
8
(7) 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.DUTY instruction.
8.5
1) BW is output at the last ON/OFF rate.
2) DMLA, MHA and MLA of the alarm detection (ALM) are turned to 0.
S.DUTY
3) MHA2 and MLA2 of the alarm detection 2 (ALM2) are turned to 0.
4) The operation mode (MODE) is changed to MAN.
5) BB1 to BB4 of BB are turned to 0.
(b) Setting 0 in SPA of the alarm detection (ALM) selects a loop run.
A loop run performs "(1) Mode judgment".
(8) Hold processing
Used to specify whether the output value will be held or not by the S. DUTY instruction at sensor error occurrence
(detected by the S.IN instruction).
A hold processing is performed when the value is determined as RUN at "Loop stop judgement".
Use SM1501 to select whether the manipulated value (MV) will be held or not at sensor alarm occurrence.
• SM1501 = OFF: Manipulated value (MV) will not be held.
79
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.
80
S.BC
8.6 S.BC
1
Ladder diagram
Start contact
2
S.BC S.BC S1 D1 S2 D2
EN ENO
ENO:=S_BC(EN,s1,s2,d1,d2);
s1 d1 4
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
8.6
S.BC
Function
Compares the input value (E1) with the set value 1 (SV1)/set value 2 (SV2), and outputs bit data as soon as the input value
(E1) reaches the set value 1 (SV1)/set value 2 (SV2).
Also performs the upper limit check processing, change rate check processing and output conversion processing of the input
value (E1) at this time.
81
S.BC
Set Data
(1) Data specified in S.BC instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0 BIN
Input data E1 Input value 0 to 2147483647 –– –– U
+1 32Bit
BW ––
b15 b12 b8 b4 b0
BW1 Output1 B B
W W
D1 +0 2 1 BIN
–– –– S
16Bit
BW2 Output2 (0: OFF)
Block (1: ON)
memory BB ––
BB1 Alarm b15 b12 b8 b4 b0
B B B
Upper limit B B B
+1 BB2 BIN
alarm 3 2 1
–– –– S
16Bit
Change rate (0: Without alarm)
BB3
alarm (1: With alarm)
0 to FFFFH
b15 b12 b8 b4 b0
P D
H P
Alarm A P BIN
D2 +3 ALM A –– 4000H S/U
detection 16Bit
PHA, DPPA
(0: Without alarm)
(1: With alarm)
0 to FFFFH
b15 b12 b8 b4 b0
Alarm E P D
R H P BIN
+4 INH detection R I P –– 4000H S/U
I I 16Bit
inhibition
Loop tag 0: Alarm enable
memory *2 1: Alarm inhibit
+14 BIN
SV1 Set value1 0 to 2147483647 –– 0 U
+15 32Bit
+16 BIN
SV2 Set value2 0 to 2147483647 –– 0 U
+17 32Bit
Upper limit
+26 BIN
PH alarm set 0 to 2147483647 –– 0 U
+27 32Bit
value
Change rate
+42 CTIM Real
CTIM alarm check 0 to 999999 Note that 32767 s 0.0 U
+43 T number
time
+44 Change rate BIN
DPL 0 to 2147483647 –– 0 U
+45 alarm value 32Bit
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
82
S.BC
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
Loop tag D2 +124 1
past value
–– –– Used by the system as a work area. –– –– –– S
memory
*2 *3
+127 2
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.) 3
*3 The applications of the loop tag past value memory are indicated below.
Specified position Description
D2 +124 Change rate monitor counter initial preset flag 4
+125 Change rate monitor counter*4
+126
Xn-m
+127
4
When control is to be started from the initial status, the data must be cleared with the sequence program.
*4 The change rate monitor 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.
6
8.6
S.BC
83
S.BC
The change rate alarm counter (m) is calculated with the following expression.
CTIM
Change rate alarm counter (m)
T
The change rate alarm counter (m) varies from 1 to m.
However, when the change rate alarm counter (m) = 0, no processing is performed.
Example) When the change rate alarm counter (m) = 4, processing is perform as shown below.
DPL Xn
Input value (E1) Xn-1
Xn-2
Xn-3 Xn-m
Xn-4
Xn-5 Xn-m
DPL
Xn-6
Xn-7
DPL Xn-8
Xn-9
Xn-11 Xn-10
Xn-12
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
84
S.PSUM
8.7 S.PSUM
1
Ladder diagram
Start contact
2
S.PSUM S.PSUM S1 D1 S2 D2
EN ENO
ENO:=S_PSUM(EN,s1,s2,d1,d2);
s1 d1 4
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
8.7
Function
S.PSUM
Integrates the input value (E1) of the device specified in S1 , and stores the result into the device specified in D1 .
The integration upper limit value and integration pattern can be used to select whether the integrated value will be returned to
0 or retained at the upper limit value if the output value exceeds the integration upper limit value.
The integration start signal and integration hold signal can be used to start and suspend the integration of the input value.
85
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 upper
limit value HILMT
(2) Operation performed when the integration pattern is set to " integrated value is retained at the integration upper limit
value when the upper limit value is exceeded"
integration upper
limit value HILMT
86
S.PSUM
Set Data
1
(1) Data specified in S.PSUM instruction
Data Standard Set
Specified position Symbol Name Recommended range *1 Unit
format value by
Use the ring counter of 16 bits or more. 2
• 16-bit ring counter
00000000H 0000FFFFH 00000000H
S1 +0
• 24-bit ring counter
BIN
3
E1 Input value 00000000H 00FFFFFFH 00000000H pulse –– U
+1 32Bit
• 32-bit ring counter
00000000H FFFFFFFFH 00000000H
Set 32767 (7FFFH) or less as a pulse
4
increment at each instruction execution.
Input data e ––
b15 b12 b8 b4 b0
4
e e
2 1
Integration
+2
e1
start signal Integration start signal BIN
6
0: Integration stop/reset –– –– U
16Bit
1: Integration start
Integration
Integration hold signal
0: Integration hold cancel
7
e2
hold signal 1: Integration hold
Output value
D1 +0
+1
BW1 (Integer (0 to 2147483647) ––
BIN
32Bit
–– S 8
Block part)
memory Output value
+2 BIN
BW2 (Fraction (0 to 2147483647) –– –– S
+3 32Bit
part)
8.7
Weight per BIN
S2 +0 W 1 to 999 –– 1 U
pulse 16Bit
S.PSUM
Unit
BIN
+1 U conversion 1, 10, 100, 1000 –– 1 U
16Bit
constant
Operation Integration
+2 BIN 21474836
constant HILMT upper limit 1 to 2147483647 –– U
+3 32Bit 47
value
0: Returns to 0 when the integration upper
limit value (HILMT) is exceeded.
Integration BIN
+4 SUMPTN 1: Retains the integration upper limit value –– 0 U
pattern 16Bit
when the integration upper limit value
(HILMT) is exceeded.
Integration
+10 value BIN
SUM1 (0 to 2147483647) –– 0 S
+11 (Integer 32Bit
Loop tag part)
memory *2 Integration
+12 value BIN
SUM2 (0 to 2147483647) –– 0 S
+13 (Fraction 32Bit
part)
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
87
S.PSUM
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
*3 The applications of the loop tag past value memory are indicated below.
Specified position Description
D2 +116
E1n-1 (Last input value)
+117
When control is to be started from the initial status, the data must be cleared with the sequence program.
88
S.PSUM
Operation Error 4
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
8.7
S.PSUM
89
S.PID
9.1 S.PID
Ladder diagram
Start contact
S.PID S.PID S1 D1 S2 D2 S3
S_PID
EN ENO
ENO:=S_PID(EN,s1,s2,s3,d1,d2);
s1 d1
s2 d2
s3
Function
Performs PID operation when the specified control cycle is reached. (PID operation is of velocity type/process value derivative
type (incomplete derivative type).)
Also performs SV setting processing, tracking processing, gain (Kp) operation processing and deviation check processing at
this time.
90
S.PID
Set Data
Block diagram
9
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.)
2
GW,
RL, RH DV P, I, D, MTD, CT DVL, DVLS
GG
E1
(1) (2) (3) (4) (5) 3
E2 Gain Kp
SV setting Tracking Deviation
(When used) operation PID operation BW
processing processing check
processing
4
(7) When in control
CT Control cycle
cycle
AND
BB1 4
judgment
(6) RUN(SPA=0)
Loop
stop
STOP(SPA=1) When not in control cycle 6
judgment
BW=0
(6)
7
SPA BW=0
Loop stop
MAN processing OFF
MODE
8
ERRI∩DVLI
DVLA
9.1
S.PID
91
S.PID
Set Data
(1) Data specified in S.PID instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
Input S1 +0 Real
E1 Input value -999999 to 999999 –– –– U
data +1 number
D1 +0 Output value Real
BW (-999999 to 999999) –– –– S
+1 ( MV) number
BB ––
Block b15 b12 b8 b4 b0
B
memory B
+2 Deviation 1
BIN
BB1 –– –– S
large alarm 16bit
(0: Without alarm)
(1: With alarm)
S2 +0 Real
MTD Derivative gain 0 to 999999 –– 8.0 U
+1 number
Deviation
+2 Real
DVLS large alarm 0 to 100 % 2.0 U
+3 number
hysteresis
Operation 0: Reverse operation BIN
+4 PN –– 0 U
mode 1: Forward operation 16bit
Tracking 0: Not trucked BIN
+5 TRK –– 0 U
bit 1: Trucked 16bit
Operation
0 to 3
constant
b15 b12 b8 b4 b0
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 Specify whether the set value (E2) is to be used or not.
*3 Specify whether the MV of the upper loop is to be used or not as the set value (E2).
92
S.PID
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
0 to FFFFH 9
Operation b15 b12 b8 b4 b0 BIN
D2 +1 MODE C C C C C C A M L L L –– 8H S/U
mode S M C A M A U A C C C 16bit
V V B B B S T N C A M
2
0 to FFFFH
b15 b12 b8 b4 b0
Alarm
S
P
D M M
V H L
BIN 3
+3 ALM A L A A
A –– 4000H S/U
detection 16bit
SPA DVLA,MHA,MLA
0:Loop RUN
1:Loop STOP
(0:Without alarm)
(1:With alarm)
4
0 to FFFFH
b15
E
R
T
R
b12 b8 b4 b0
D M M
V H L
4
R K L I I
Alarm I F I
TRKF BIN
+4 INH detection –– 4000H S/U
inhibition (0 : Without tracking) 16bit 6
(1 : With tracking)
ERRI, DVLI, MHI, MLI
Loop 0 : Alarm enable
1 : Alarm inhibit
7
tag
+14 Real
memory *2 SV Set value RL to RH –– 0.0 U
+15 number
+16
DV Deviation (-110 to 110) %
Real
0.0 S
8
+17 number
Engineering
+22 Real
RH value upper -999999 to 999999 –– 100.0 U
+23 number
limit
9.1
Engineering
+24 Real
RL value lower -999999 to 999999 –– 0.0 U
+25 number
S.PID
limit
+46 CT Real
CT Control cycle 0 to 999999 Note that 32767 s 1.0 U
+47 T number
+50 Deviation limit Real
DVL 0 to 100 % 100.0 U
+51 value number
+52 Real
P Gain 0 to 999999 –– 1.0 U
+53 number
+54 Integral Real
I 0 to 999999 s 10.0 U
+55 constant number
+56 Derivative Real
D 0 to 999999 s 0.0 U
+57 constant number
+58 Real
GW Gap width 0 to 100 % 0.0 U
+59 number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
93
S.PID
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
D2 +60 Real
GG Gap gain 0 to 999999 –– 1.0 U
+61 number
Loop tag
MV Inside
memory *2 +62 Real
MVP operation (-999999 to 999999) % 0.0 S
+63 number
value
Loop tag D2 +96
past value –– –– Used by the system as a work area. –– –– –– S
memory *2 *3 +116
S3 +0 Real
Set value *4 E2 Set value -10 to 110 % 0.0 U
+1 number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
*3 The applications of the loop tag past value memory are indicated below.
Specified position Description
D2 +96 Control cycle counter initial preset flag
+97 Control cycle counter*5
+102
Bn-1 (Last value)
+103
+104
PVn (Process value)
+105
+106
PVn-1 (Last process value)
+107
+108
PVn-2 (Process value before last)
+109
+110
DVn-1 (Last deviation value)
+111
MHA2,MLA2
(0: Without alarm)
(1: With alarm)
When control is to be started from the initial status, the data must be cleared with the sequence program.
*4 The set value (E2) becomes valid when the set value pattern (SVPTN) is set to "E2 is used".
When using the MV of the upper loop as the set value (E2), specify the device where the manipulated value (MV) of the upper
loop is set (offset + 12: MV).
When not using E2 as the set value, make sure to specify a dummy device.
(Special register SD1506 can be specified as a dummy device.)
*5 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.
94
S.PID
SVn
RH RL
100
E2 RL 3
2) When the set value (E2) is not specified, "(2) Tracking processing" is performed without the engineering value
conversion being performed.
(b) When the operation mode (MODE) is any of MAN, AUT, CMV, CMB, CAB, LCM, LCA and LCC, "(2) Tracking
4
processing" is performed.
(2) Tracking processing
4
(a) The set value (SV) is converted reversely from the engineering value with the following operation expression to
calculate SVn'.
SVn'
100
RH RL
(SVn RL) 6
(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.
7
3) The operation mode (MODE) is any of MAN, AUT, CMV, CMB, CAB, LCM, LCA and LCC.
E2=SVn'
8
(c) When the set value (E2) is the manipulated value (MV) of the upper loop, the tracking flag (TRKF) of the alarm
detection inhibition (INH) in the upper loop turns to 1.
(3) Gain (Kp) operation processing
(a) The deviation (DV) is calculated under the following condition.
9.1
Condition Operation expression
Forward operation(PN=1) DV=E1 - SVn'
S.PID
Reverse operation(PN=0) DV=SVn' - E1
(b) The output gain (K) is calculated under the following condition.
Condition Operation expression
When |DV| GW K=GG
(1 GG) GW
When |DV| > GW K 1
|DV|
95
S.PID
In the following case, however, note that special processing will be performed.
Condition
QnPHCPU/QnPRHCPU (First 5 digits of QnPHCPU/QnPRHCPU (First 5 digits of Processing
QnUDPVCPU
the serial No. : 07031 or earlier) the serial No. : 07032 or later)
Bn = 0
In either of the following cases 1, 2
(However, the loop tag
1. Derivative constant (D) = 0 (TD = 0)
past value memory is
2. Operation mode (MODE) is any of MAN, LCM and CMV
set.)
In any of the following cases 1, 2, 3
1. Integral constant (I) = 0 (TI = 0) In any of the following cases 1, 2, 3
2. When either of MHA or MLA is turned 1. Integral constant (I) = 0 (TI = 0)
to 1 2. When either of MHA2 or MLA2 is turned to 1
CT CT CT
(MVP > MH) and ( DVn 0) (MVP > MH) and ( DVn 0) DVn 0
TI TI TI
3. When either of MHA or MLA is turned 3. When either of MHA2 or MLA 2 is turned to 1
to 1 CT
(MVP < ML) and ( DVn 0)
CT TI
(MVP < ML) and ( DVn 0)
TI
96
S.PID
Operation Error
2
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
9.1
S.PID
97
S.2PID
9.2 S.2PID
Ladder diagram
Start contact
S.2PID S.2PID S1 D1 S2 D2 S3
S_2PID
EN ENO
ENO:=S_2PID(EN,s1,s2,s3,d1,d2);
s1 d1
s2 d2
s3
Function
Performs 2-degree-of-freedom PID operation when the specified control cycle is reached.
Also performs SV setting processing, tracking processing, gain (Kp) operation processing and deviation check processing at
this time.
98
S.2PID
Set Data
Block diagram
9
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.)
GW,
2
RL, RH DV P, I, D, MTD, CT DVL, DVLS
GG
E1
(1) (2) (3) (4) (5) 3
E2 Gain Kp 2-degree-of-
SV setting Tracking Deviation
(When used) operation freedom BW
processing processing check
processing PID operation
4
(7) When in control
CT Control cycle
cycle
AND
BB1 4
judgment
(6) RUN(SPA=0)
Loop
stop
STOP(SPA=1) When not in control cycle 6
judgment
BW=0
(6)
7
SPA BW=0
Loop stop
MAN processing OFF
8
MODE
ERRI∩DVLI
DVLA
9.2
S.2PID
99
S.2PID
Set Data
(1) Data specified in S.2PID instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
Input S1 +0 Real
E1 Input value -999999 to 999999 % –– U
data +1 number
D1 +0 Output value Real
BW (-999999 to 999999) % –– S
+1 ( MV) number
BB ––
Block b15 b12 b8 b4 b0
B
memory B
+2 Deviation large 1 BIN
BB1 –– –– S
alarm 16Bit
(0: Without alarm)
(1: With alarm)
S2 +0 Real
MTD Derivative gain 0 to 999999 –– 8.0 U
+1 number
Deviation large
+2 Real
DVLS alarm 0 to 100 % 2.0 U
+3 number
hysteresis
Operation 0: Reverse operation BIN
+4 PN –– 0 U
mode 1: Forward operation 16bit
0: Not tracked BIN
+5 TRK Tracking bit –– 0 U
1: Tracked 16bit
Operation 0 to 3
constant
b15 b12 b8 b4 b0
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 Specify whether the set value (E2) is to be used or not.
*3 Specify whether the MV of the upper loop is to be used or not as the set value (E2).
100
S.2PID
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
0 to FFFFH 9
Operation b15 b12 b8 b4 b0 BIN
D2 +1 MODE C C C C C C A M L L L –– 8H S/U
mode S M C A M A U A C C C 16bit
V V B B B S T N C A M
2
0 to FFFFH
b15 b12 b8 b4 b0
4
E T D D M M
R R M V H L
R K L L I I
Alarm I F I I
9.2
+23 number
limit
S.2PID
Engineering
+24 Real
RL value lower -999999 to 999999 –– 0.0 U
+25 number
limit
+46 CT Real
CT Control cycle 0 to 999999 Note that 32767 s 1.0 U
+47 T number
+50 Deviation limit Real
DVL 0 to 100 % 100.0 U
+51 value number
+52 Real
P Gain 0 to 999999 –– 1.0 U
+53 number
+54 Integral Real
I 0 to 999999 s 10.0 U
+55 constant number
+56 Derivative Real
D 0 to 999999 s 0.0 U
+57 constant number
+58 Real
GW Gap width 0 to 100 % 0.0 U
+59 number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
101
S.2PID
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
D2 +60 Real
GG Gap gain 0 to 999999 –– 1.0 U
+61 number
+62 MV inside Real
MVP (-999999 to 999999) % 0.0 S
+63 operation value number
Loop tag 2 degree-of-
+64 Real
memory *2 freedom 0 to 1 –– 0.0 U
+65 *5
number
parameter
2 degree-of-
+66 Real
freedom 0 to 1 –– 1.0 U
+67 *6
number
parameter
Loop tag +96
past value
–– –– Used by the system as a work area. –– –– –– S
memory *2
+116
*3
S3 +0 Real
Set value *4 E2 Set value -10 to 110 % 0.0 U
+1 number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
*3 The applications of the loop tag past value memory are indicated below.
Specified position Description
D2 +96 Control cycle counter initial preset flag
+97 Control cycle counter *7
+102
Bn-1 (Last value)
+103
+104
PVn (Process value)
+105
+106
PVn-1 (Last process value)
+107
+108
PVn-2 (Process value before last)
+109
+110
DVn-1 (Last deviation value)
+111
+112
DVn-2 (Deviation value before last)
+113
+114
Dn-1 (Last value)
+115
MHA2,MLA2
(0: Without alarm)
(1: With alarm)
When control is to be started from the initial status, the data must be cleared with the sequence program.
*4 The set value (E2) becomes valid when the set value pattern (SVPTN) is set to "E2 is used".
When using the MV of the upper loop as the set value (E2), specify the device where the manipulated value (MV) of the upper
loop is set (offset + 12: MV).
When not using E2 as the set value, make sure to specify a dummy device.
(Special register SD1506 can be specified as a dummy device.)
*5 Increasing decreases the manipulated value variation relative to the set value change.
(It will take time to stabilize.)
Decreasing increases the manipulated value variation relative to the set value change.
However, since a compensation operation will be stronger, hunting may become greater.
*6 Increasing decreases the effect of derivative on the set value change.
Decreasing increases the effect of derivative on the set value change.
102
S.2PID
*7 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.
9
Set Data contents
Processing
(1) SV setting processing
2
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
3
and then "(2) Tracking processing" is performed.
RH RL
SVn
100
E2 RL 4
2) When the set value (E2) is not specified, "(2) Tracking processing" is performed without the engineering value
conversion being performed.
4
(b) When the operation mode (MODE) is any of MAN, AUT, CMV, CMB, CAB, LCM, LCA and LCC, "(2) Tracking
processing" is performed.
(2) Tracking processing 6
(a) The set value (SV) is converted reversely from the engineering value with the following operation expression to
calculate SVn'.
SVn'
100
(SVn RL)
7
RH RL
(b) When all of the following conditions hold, tracking processing is performed.
1) The tracking bit (TRK) of the operation constant is 1. 8
2) The set value (E2) is used.
3) The operation mode (MODE) is any of MAN, AUT, CMV, CMB, CAB, LCM, LCA and LCC.
E2=SVn'
(c) When the set value (E2) is the manipulated value (MV) of the upper loop, the tracking flag (TRKF) of the alarm
9.2
detection inhibition (INH) in the upper loop turns to 1.
S.2PID
(3) Gain (Kp) operation processing
(a) The deviation (DV) is calculated under the following condition.
Condition Operation expression
Forward operation (PN=1) DV=E1 - SVn'
Reverse operation (PN=0) DV=SVn' - E1
(b) The output gain (K) is calculated under the following condition.
Condition Operation expression
When |DV| GW K=GG
103
S.2PID
MD×TD CT×Bn-1
Bn Bn-1 + × {(DVn - 2DVn-1 + DVn-2) - }
MD×CT+TD TD
MD×TD CT×Dn-1
When forward operation (PN=1) Dn-1 + × {(PVn - 2PVn-1 + PVn-2) - }
MD×CT+TD TD
Dn
MD×TD CT×Dn-1
When reverse operation (PN=0) Dn-1 + × { - (PVn - 2PVn-1 + PVn-2) - }
MD×CT+TD TD
BW ( MV) s
In the following case, however, note that special processing will be performed.
Condition
QnPHCPU/QnPRHCPU (First 5 digits of QnPHCPU/QnPRHCPU (First 5 digits of Processing
QnUDPVCPU
the serial No. : 07031 or earlier) the serial No. : 07032 or later)
Bn = 0, Dn = 0
In either of the following cases 1, 2
(However, the loop tag
1. Derivative constant (D) = 0 (TD = 0)
past value memory is
2. Operation mode (MODE) is any of MAN, LCM and CMV
set.)
In any of the following cases 1, 2, 3
1. Integral constant (I) = 0 (TI = 0) In any of the following cases 1, 2, 3
2. When either of MHA or MLA is turned 1. Integral constant (I) = 0 (TI = 0)
to 1 2. When either of MHA2 or MLA2 is turned to 1
CT CT CT
(MVP > MH) and ( DVn 0) (MVP > MH) and ( DVn 0) DVn 0
TI TI TI
3. When either of MHA or MLA is turned 3. When either of MHA2 or MLA 2 is turned to 1
to 1 CT
(MVP < ML) and ( DVn 0)
CT TI
(MVP < ML) and ( DVn 0)
TI
104
S.2PID
Operation Error 4
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
9.2
S.2PID
105
S.PIDP
9.3 S.PIDP
Ladder diagram
Start contact
S.PIDP S.PIDP S1 D1 S2 D2 S3
S_PIDP
EN ENO
ENO:=S_PIDP(EN,s1,s2,s3,d1,d2);
s1 d1
s2 d2
s3
Function
Performs position type PID operation when the specified control cycle is reached.
Also performs SV setting processing, tracking processing, gain (Kp) operation processing, deviation check processing and
operation mode (MODE) judgment at this time.
Performs change rate, upper/lower limiter and output processings or alarm clear processing and output conversion according
to the result of the judgment.
106
S.PIDP
Set Data
Block diagram
9
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.)
E2
(1) (2) (3)
Gain K p
(4) (5) (7)
Change
(8)
3
SV setting Tracking PID Deviation rate, Output BW
operation check
(When processing processing operation upper/lower conversion
processing
used) limiter
(6)
SPA
Loop stop
MAN processing All OFF
7
MODE
8
ERRI DVLI
DVLA
ERRI MHI
AND BB3
9.3
ERRI MLI
S.PIDP
ERRI DMLI AND BB4
MHA
AND BB5
MLA
DMLA
BB1
OR
107
S.PIDP
Set Data
(1) Data specified in S.PIDP instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0 Real
Input data E1 Input value -999999 to 999999 % –– U
+1 number
D1 +0 Real
BW Output value (-999999 to 999999) –– –– S
+1 number
BB ––
BB1 Alarm
Deviation
BB2
Block large alarm b15 b12 b8 b4 b0
B B B B B
memory Output upper B B B B B
+2 BB3 5 4 3 2 1 BIN
limit alarm –– –– S
16bit
Output lower
BB4 (0: Without alarm)
limit alarm (1: With alarm)
Output change
BB5
rate alarm
S2 +0 Real
MTD Derivative gain 0 to 999999 –– 8.0 U
+1 number
Deviation
+2 Real
DVLS large alarm 0 to 100 % 2.0 U
+3 number
hysteresis
Operation 0: Reverse operation BIN
+4 PN –– 0 U
mode 1: Forward operation 16bit
Tracking 0: Not trucked BIN
+5 TRK –– 0 U
bit 1: Trucked 16bit
0 to 3
b15 b12 b8 b4 b0
Operation
constant
Set value BIN
+6 SVPTN –– 3 U
pattern 16bit
Output
+7 Real
NMAX conversion -999999 to 999999 –– 100.0 U
+8 number
upper limit
Output
+9 Real
NMIN conversion -999999 to 999999 –– 0.0 U
+10 number
lower limit
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 Specify whether the set value (E2) is to be used or not.
*3 Specify whether the MV of the upper loop is to be used or not as the set value (E2).
108
S.PIDP
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
0 to FFFFH 9
Operation b15 b12 b8 b4 b0 BIN
D2 +1 MODE C C C C C C A M L L L –– 8H S/U
mode S M C A M A U A C C C 16bit
2
V V B B B S T N C A M
0 to FFFFH
+3 ALM
Alarm
detection
b15
S
b12
D
b8 b4 b0
D M M 3
P M V H L
A L L A A BIN
A A –– 4000H S/U
16bit
SPA DVLA,DMLA,MHA,MLA 4
0:Loop RUN (0:Without alarm)
1:Loop STOP (1:With alarm)
00 to FFFFH 4
b15 b12 b8 b4 b0
E T D D M M
R R M V H L
Alarm
R
I
K
F
L
I
L I I
I 6
BIN
+4 INH detection TRKF –– 4000H S/U
16bit
inhibition (0 : Without tracking)
(1 : With tracking) 7
ERRI, DMLI, DVLI, MHI, MLI
Loop
0 : Alarm enable
tag
memory *2
+12 Manipulated
1 : Alarm inhibit
Real
8
MV -10 to 110 % 0.0 S/U
+13 value number
+14 Real
SV Set value RL to RH –– 0.0 U
+15 number
+16 Real
DV Deviation (-110 to 110) % 0.0 S
9.3
+17 number
+18 Output upper Real
S.PIDP
MH -10 to 110 % 100.0 U
+19 limit value number
+20 Output lower Real
ML -10 to 110 % 0.0 U
+21 limit value number
Engineering
+22 Real
RH value upper -999999 to 999999 –– 100.0 U
+23 number
limit
Engineering
+24 Real
RL value lower -999999 to 999999 –– 0.0 U
+25 number
limit
+46 CT Real
CT Control cycle 0 to 999999 Note that 32767 s 1.0 U
+47 T number
Output
+48 Real
DML change rate 0 to 100 % 100.0 U
+49 number
limit value
+50 Deviation limit Real
DVL 0 to 100 % 100.0 U
+51 value number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
109
S.PIDP
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
D2 +52 Real
P Gain 0 to 999999 –– 1.0 U
+53 number
+54 Integral Real
I 0 to 999999 s 10.0 U
+55 constant number
Loop tag +56 Derivative Real
D 0 to 999999 s 0.0 U
memory *2 +57 constant number
+58 Real
GW Gap width 0 to 100 % 0.0 U
+59 number
+60 Real
GG Gap gain 0 to 999999 –– 1.0 U
+61 number
Loop tag D2 +96
past value
–– –– Used by the system as a work area. –– –– –– S
memory *2
+116
*3
S3 +0 Real
Set value *4 E2 Set value -10 to 110 % 0.0 U
+1 number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
*3 The applications of the loop tag past value memory are indicated below.
Specified position Description
D2 +96 Control cycle counter initial preset flag
+97 Control cycle counter *5
+100
In-1 (Last value)
+101
+102
Bn-1 (Last value)
+103
+104
PVn (Process value)
+105
+106
PVn-1 (Last process value)
+107
Alarm detection 2 (ALM2)
b15 b12 b8 b4 b0
M M
L H
+116 A A
2 2
MHA2,MLA2
(0: Without alarm)
(1: With alarm)
When control is to be started from the initial status, the data must be cleared with the sequence program.
*4 The set value (E2) becomes valid when the set value pattern (SVPTN) is set to "E2 is used".
When using the MV of the upper loop as the set value (E2), specify the device where the manipulated value (MV) of the upper
loop is set (offset + 12: MV).
When not using E2 as the set value, make sure to specify a dummy device.
(Special register SD1506 can be specified as a dummy device.)
*5 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.
110
S.PIDP
SVn
RH RL
100
E2 RL 3
2) When the set value (E2) is not specified, "(2) Tracking processing" is performed without the engineering value
conversion being performed.
4
(b) When the operation mode (MODE) is any of MAN, AUT, CMV, CMB, CAB, LCM, LCA and LCC, "(2) Tracking
processing" is performed.
(2) Tracking processing 4
(a) The set value (SV) is converted reversely from the engineering value with the following operation expression to
calculate SVn'.
SVn'
100
RH RL
(SVn RL) 6
(b) When all of the following conditions hold, tracking processing is performed.
1) The tracking bit (TRK) of the operation constant is 1. 7
2) The set value (E2) is used.
3) The operation mode (MODE) is any of MAN, AUT, CMV, CMB, CAB, LCM, LCA and LCC.
E2=SVn' 8
(c) When the set value (E2) is the manipulated value (MV) of the upper loop, the tracking flag (TRKF) of the alarm
detection inhibition (INH) in the upper loop turns to 1.
(3) Gain (Kp) operation processing
(a) The deviation (DV) is calculated under the following condition.
9.3
Condition Operation expression
S.PIDP
Forward operation (PN=1) DV=E1 - SVn'
Reverse operation (PN=0) DV=SVn' - E1
(b) The output gain (K) is calculated under the following condition.
Condition Operation expression
When |DV| GW K=GG
(1 GG) GW
When |DV| > GW K 1
|DV|
111
S.PIDP
CT
In In-1 DVn
TI
T Kp×(DVn + In + Bn)
KP: K × Gain (P), MD: Derivative gain (MTD)
TI: Integral constant (I), TD: Derivative constant (D)
In the following case, however, note that special processing will be performed.
Condition
QnPHCPU (First 5 digits of the serial No. QnPHCPU (First 5 digits of the serial No. Processing
QnUDPVCPU
: 07031 or earlier) : 07032 or later)
Bn = 0
In either of the following cases 1, 2
(However, the loop tag
1. Derivative constant (D) = 0 (TD = 0)
past value memory is
2. Operation mode (MODE) is any of MAN, LCM and CMV
set.)
In any of the following cases 1, 2, 3, 4
In any of the following cases 1, 2, 3 1. Integral constant (I) = 0 (TI = 0)
1. Integral constant (I) = 0 (TI = 0) 2. When MHA2 is turned to 1
2. When MHA is turned to 1 CT
DVn 0
CT TI CT
DVn 0 DVn 0
TI 3. When MLA2 is turned to 1 TI
3. When MLA is turned to 1 CT
DVn 0
CT TI
DVn 0
TI 4. When operating mode (MODE) is any of MAN, LCM, and
CMV.
All the following conditions 1, 2, 3 are satisfied
1. When b0 of SD1508 is turned to 1
2. When tracking flag (TRKF) in alarm detection inhibition (INH) MV
In-1 = - (DVn + Bn)
–– Kp
is turned to 1.
TRKF=0
3. When operating mode (MODE) is other than MAN, LCM, and
CMV.
112
S.PIDP
(b) When the operation mode (MODE) is any of AUT, CAB, CAS, CCB, CSV, LCA and LCC, "(7) Change rate, upper/
3
lower limiter" is executed.
(7) Change rate, upper/lower limiter
4
The change rate and upper/lower limits are checked for the input value (E1), and the data after the limiter processing and
an alarm are output.
(a) The change rate limiter performs the following operation and outputs the result of the operation to BB5 and DMLA. 4
Condition BB5, DMLA T1
|T - MV| DML 0 T
(T - MV) > DML 1 *1 MV + DML
(T - MV) < - DML 1 *1 MV - DML
6
*1 When DMLI or ERRI in the alarm detection inhibition (INH) is set to 1, DMLA and BB5 show 0 since the alarm is prohibited.
(b) The upper/lower limiter performs the following operation and outputs the result of the operation to BB3, BB4, MHA, 7
MLA, MHA2 and MLA2.
Condition BB4, MLA, MLA2 BB3, MHA, MHA2 MV
T1 > MH 0 1 *2 MH
8
T1 < ML 1 *3 0 ML
ML T1 MH 0 0 T1
*2 When MHI or ERRI in the alarm detection inhibition (INH) is set to 1, MHA and BB3 show 0 since the alarm is prohibited.
However, even if MHI and/or ERRI in the alarm detection inhibition (INH) is set to 1, MHA2 holds 1.
*3 When MLI or ERRI in the alarm detection inhibition (INH) is set to 1, MLA and BB4 show 0 since the alarm is prohibited.
9.3
However, even if MLI and/or ERRI in the alarm detection inhibition (INH) is set to 1, MLA2 holds 1.
S.PIDP
(8) Output conversion
In the output conversion, the output value is calculated from the following formula.
NMAX NMIN NMIN
BW MV
100
113
S.PIDP
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored into SD0.
114
S.SPI
9.4 S.SPI
9
Ladder diagram
Start contact 2
S.SPI S.SPI S1 D1 S2 D2 S3
EN ENO
ENO:=S_SPI(EN,s1,s2,s3,d1,d2);
s1
s2
d1
d2
4
s3
D2 : Loop tag memory start device : Array of any 16-bit data (0..127)
9.4
D2 –– ––
S3 –– ––
S.SPI
*1 Special register SD1506 can be specified as a dummy device.
Function
Performs normal PI operation during operating time (ST).
Judges between operating time (ST) or hold time (HT), and if it is the operating time, performs SV setting processing, tracking
processing, gain (Kp) operation processing, SPI operation and deviation check.
MV
t
ST HT ST HT ST HT
115
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 GW,
DV P, I DVL, DVLS
GG
E1
(1) (2) (3) (4) (5)
E2 Gain Kp
SV setting Tracking Deviation
(When used) operation SPI operation BW
processing processing check
processing
(7)
Operating time
ST BB1
Operating AND
STHT
time monitor
(6) RUN(SPA=0)
Loop
STOP(SPA=1) Hold time
stop
judgment
BW=0
(6)
SPA
BW=0
Loop stop
MAN processing OFF
MODE
ERRI∩DVLI
DVLA
116
S.SPI
Set Data
9
(1) Data specified in S.SPI instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
Input S1 +0 Real 2
E1 Input value -999999 to 999999 % –– U
data +1 number
D1 +0 Output value Real
+1
BW
( MV)
(-999999 to 999999) %
number
–– S
3
BB ––
Block b15 b12 b8 b4 b0
4
B
memory B
+2 Deviation 1 BIN
BB1 –– –– S
large alarm 16bit
(0: Without alarm)
(1: With alarm)
Deviation
4
S2 +0 Real
DVLS large alarm 0 to 100 % 2.0 U
+1 number
hysteresis
+2 PN
Operation 0: Reverse operation
––
BIN
0 U
6
mode 1: Forward operation 16bit
Tracking 0: Not trucked BIN
+3 TRK –– 0 U
bit 1: Trucked
0 to 3
16bit
7
Operation
constant b15 b12 b8 b4 b0
8
Set value BIN
+4 SVPTN –– 3 U
pattern 16bit
9.4
0: E2 is upper loop MV. 0: E2 is used.
1: E2 is not upper loop MV. 1: E2 is not used.
S.SPI
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 Specify whether the set value (E2) is to be used or not.
*3 Specify whether the MV of the upper loop is to be used or not as the set value (E2).
117
S.SPI
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
0 to FFFFH
Operation b15 b12 b8 b4 b0 BIN
D2 +1 MODE C C C C C C A M L L L –– 8H S/U
mode S M C A M A U A C C C 16Bit
V V B B B S T N C A M
0 to FFFFH
b15 b12 b8 b4 b0
E T D M M
R R V H L
R K L I I
I F I
Alarm
BIN
+4 INH detection TRKF –– 4000H S/U
16Bit
inhibition (0 : Without tracking)
(1 : With tracking)
ERRI, DVLI, MHI, MLI
Loop tag 0 : Alarm enable
memory *2 1 : Alarm inhibit
+14 Real
SV Set value RL to RH –– 0.0 U
+15 number
+16 Real
DV Deviation (-110 to 110) % 0.0 S
+17 number
Engineering
+22 Real
RH value upper -999999 to 999999 –– 100.0 U
+23 number
limit
Engineering
+24 Real
RL value lower -999999 to 999999 –– 0.0 U
+25 number
limit
+46 Real
ST Operating time 0 to 999999 Note that ST 32767 s 0.0 U
+47 T number
+50 Deviation limit Real
DVL 0 to 100 % 100.0 U
+51 value number
+52 Real
P Gain 0 to 999999 –– 1.0 U
+53 number
+54 Integral Real
I 0 to 999999 s 10.0 U
+55 constant number
+56 STHT Real
STHT Sample cycle 0 to 999999 Note that 32767 s 0.0 U
+57 T number
+58 Real
GW Gap width 0 to 100 % 0.0 U
+59 number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
118
S.SPI
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
D2 +60
GG Gap gain 0 to 999999 ––
Real
1.0 U
9
+61 number
Loop tag
MV inside
memory *2 +62 Real
+63
MVP operation
value
(-999999 to 999999) %
number
0.0 S
2
Loop tag D2 +96
past value
memory *2
–– –– Used by the system as a work area. –– –– –– –– 3
+116
*3
S3 +0 Real
Set value *4 E2 Set value -10 to 110 % 0.0 U
+1 number 4
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.) 4
*3 The applications of the loop tag past value memory are indicated below.
Specified position Description
D2 +96 Control cycle counter initial preset flag 6
+97 Sample counter*5
+98 Operation counter*5
+99 Hold counter 7
+100
DVn-1 (Last deviation value)
+101
MHA2,MLA2
(0: Without alarm)
9.4
(1: With alarm)
When control is to be started from the initial status, the data must be cleared with the sequence program.
S.SPI
*4 The set value (E2) becomes valid when the set value pattern (SVPTN) is set to "E2 is used".
When using the MV of the upper loop as the set value (E2), specify the device where the manipulated value (MV) of the upper
loop is set (offset + 12: MV).
When not using E2 as the set value, make sure to specify a dummy device.
(Special register SD1506 can be specified as a dummy device.)
*5 The sample counter and operation counter round off the data to the nearest whole number.
(2) Execution cycle ( T)
Set the execution cycle in SD1500 and SD1501 as real numbers.
119
S.SPI
(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.
3) The operation mode (MODE) is any of MAN, AUT, CMV, CMB, CAB, LCM, LCA and LCC.
E2=SVn'
(c) When the set value (E2) is the manipulated value (MV) of the upper loop, the tracking flag (TRKF) of the alarm
detection inhibition (INH) in the upper loop turns to 1.
(3) Gain (Kp) operation processing
(a) The deviation (DV) is calculated under the following condition.
Condition Operation expression
Forward operation(PN = 1) DV = E1 - SVn'
Reverse operation(PN = 0) DV = SVn' - E1
(b) The output gain (K) is calculated under the following condition.
Condition Operation expression
When |DV| GW K = GG
(1 GG) GW
When |DV| > GW K 1
|DV|
KP: K × Gain (P), TI: Integral constant (I), BT: Execution cycle ( T)
In the following case, however, note that special processing will be performed.
Condition
QnPHCPU/QnPRHCPU (First 5 digits of the QnPHCPU/QnPRHCPU (First 5 digits of the Processing
QnUDPVCPU
serial No. : 07031 or earlier) serial No. : 07032 or later)
In any of the following cases 1, 2, 3 In any of the following cases 1, 2, 3
1. Integral constant (I) = 0 (TI = 0) 1. Integral constant (I) = 0 (TI = 0)
2. When either of MHA or MLA is turned to 1 2. When either of MHA2 or MLA2 is turned to 1
BT CT
BT BT
(MVP > MH) and ( DVn 0) (MVP > MH) and ( DVn 0 0) DVn 0
TI TI TI
3. When either of MHA or MLA is turned to 1 3. When either of MHA2 or MLA 2 is turned to 1
BT BT
(MVP < ML) and ( DVn 0) (MVP < ML) and ( DVn 0)
TI TI
120
S.SPI
9.4
When the integer part of STHT is 0, no processing is performed. ( MV also remains unchanged.)
T
S.SPI
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
121
S.IPD
9.5 S.IPD
Ladder diagram
Start contact
S.IPD S.IPD S1 D1 S2 D2 S3
S_IPD
EN ENO
ENO:=S_IPD(EN,s1,s2,s3,d1,d2);
s1 d1
s2 d2
s3
Function
Performs I-PD control when the specified control cycle is reached.
Also performs SV setting processing, tracking processing, gain (Kp) operation processing and deviation check at this time.
122
S.IPD
Set Data
Block diagram
9
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.)
GW,
2
RL, RH DV P, I, D, CT, MTD DVL, DVLS
GG
E1
(1) (2) (3) (4) (5) 3
E2 Gain Kp
SV setting Tracking Deviation
(When used) operation IPD operation BW
processing processing check
processing
4
(7) When in control
CT Control cycle
cycle
AND
BB1 4
judgment
(6) RUN(SPA=0)
Loop
stop
STOP(SPA=1) When not in control cycle 6
judgment
BW=0
(6)
7
SPA
BW=0
Loop stop
MAN processing OFF
8
MODE
ERRI∩DVLI
DVLA
9.5
S.IPD
123
S.IPD
Set Data
(1) Data specified in S.IPD instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
Input S1 +0 Real
E1 Input value -999999 to 999999 % –– U
data +1 number
D1 +0 Output value Real
BW (-999999 to 999999) % –– S
+1 ( MV) number
BB ––
Block b15 b12 b8 b4 b0
B
memory B
+2 Deviation 1 BIN
BB1 –– –– S
large alarm 16bit
(0: Without alarm)
(1: With alarm)
S2 +0 Real
MTD Derivative gain 0 to 999999 –– 8.0 U
+1 number
Deviation
+2 Real
DVLS large alarm 0 to 100 % 2.0 U
+3 number
hysteresis
Operation 0: Reverse operation BIN
+4 PN –– 0 U
mode 1: Forward operation 16bit
Tracking 0: Not trucked BIN
+5 TRK –– 0 U
bit 1: Trucked 16bit
Operation
0 to 3
constant
b15 b12 b8 b4 b0
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 Specify whether the set value (E2) is to be used or not.
*3 Specify whether the MV of the upper loop is to be used or not as the set value (E2).
124
S.IPD
0 to FFFFH
2
Alarm b15 b12 b8 b4 b0
+3 ALM
detection
S
P
A
D M M
V H L
L A A BIN 3
A –– 4000H S/U
16bit
SPA DVLA,MHA,MLA
0:Loop RUN (0:Without alarm) 4
1:Loop STOP (1:With alarm)
00 to FFFFH
b15
E T
b12 b8 b4 b0
D M M
4
R R V H L
R K L I I
I F I
Alarm
+4 INH detection TRKF ––
BIN
16bit
4000H S/U 6
inhibition (0 : Without tracking)
(1 : With tracking)
Loop
ERRI, DVLI, MHI, MLI
0 : Alarm enable
7
tag 1 : Alarm inhibit
memory *2 +14 Real
+15
SV Set value RL to RH ––
number
0.0 U
8
+16 Real
DV Deviation (-110 to 110) % 0.0 S
+17 number
Engineering
+22 Real
RH value upper -999999 to 999999 –– 100.0 U
+23 number
9.5
limit
Engineering
S.IPD
+24 Real
RL value lower -999999 to 999999 –– 0.0 U
+25 number
limit
+46 CT Real
CT Control cycle 0 to 999999 Note that 32767 s 1.0 U
+47 T number
+50 Deviation limit Real
DVL 0 to 100 % 100.0 U
+51 value number
+52 Real
P Gain 0 to 999999 –– 1.0 U
+53 number
+54 Integral Real
I 0 to 999999 s 10.0 U
+55 constant number
+56 Derivative Real
D 0 to 999999 s 0.0 U
+57 constant number
+58 Real
GW Gap width 0 to 100 % 0.0 U
+59 number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
125
S.IPD
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
D2 +60 Real
GG Gap gain 0 to 999999 –– 1.0 U
+61 number
Loop tag
MV inside
memory *2 +62 Real
MVP operation (-999999 to 999999) % 0.0 S
+63 number
value
Loop tag D2 +96
past value
–– –– Used by the system as a work area. –– –– –– S
memory *2
+116
*3
S3 +0 Real
Set value *4 E2 Set value -10 to 110 % 0.0 U
+1 number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
*3 The applications of the loop tag past value memory are indicated below.
Specified position Description
D2 +96 Control cycle counter initial preset flag
+97 Control cycle counter*5
+102
Bn-1 (Last value)
+103
+104
PVn (Process value)
+105
+106
PVn-1 (Last process value)
+107
+108
PVn-2 (Process value before last)
+109
Alarm detection 2 (ALM2)
b15 b12 b8 b4 b0
M M
L H
+116 A A
2 2
MHA2,MLA2
(0: Without alarm)
(1: With alarm)
When control is to be started from the initial status, the data must be cleared with the sequence program.
*4 The set value (E2) becomes valid when the set value pattern (SVPTN) is set to "E2 is used".
When using the MV of the upper loop as the set value (E2), specify the device where the manipulated value (MV) of the upper
loop is set (offset + 12: MV).
When not using E2 as the set value, make sure to specify a dummy device.
(Special register SD1506 can be specified as a dummy device.)
*5 The counrol 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.
126
S.IPD
SVn
RH RL
100
E2 RL 3
2) When the set value (E2) is not specified, "(2) Tracking processing" is performed without the engineering value
conversion being performed.
4
(b) When the operation mode (MODE) is any of MAN, AUT, CMV, CMB, CAB, LCM, LCA and LCC, "(2) Tracking
processing" is performed.
(2) Tracking processing 4
(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. 7
2) The set value (E2) is used.
3) The operation mode (MODE) is any of MAN, AUT, CMV, CMB, CAB, LCM, LCA and LCC.
E2 = SVn' 8
(c) When the set value (E2) is the manipulated value (MV) of the upper loop, the tracking flag (TRKF) of the alarm
detection inhibition (INH) in the upper loop turns to 1.
(3) Gain (Kp) operation processing
9.5
(a) The deviation (DV) is calculated under the following condition.
Condition Operation expression
S.IPD
Forward operation (PN = 1) DV = E1 - SVn'
Reverse operation (PN = 0) DV = SVn' - E1
(b) The output gain (K) is calculated under the following condition.
Condition Operation expression
When |DV| GW K = GG
(1 GG) GW
When |DV| > GW K 1
|DV|
127
S.IPD
CT
When forward operation (PN = 1) KP { DVn (PVn PVn-1) Bn}
TI
BW ( MV)
CT
When reverse operation (PN = 0) KP { DVn (PVn PVn-1) Bn}
TI
In the following case, however, note that special processing will be performed.
Condition
QnPHCPU/QnPRHCPU (First 5 digits of QnPHCPU/QnPRHCPU (First 5 digits of Processing
QnUDPVCPU
the serial No. : 07031 or the serial No. : 07032 or later)
Bn = 0
In either of the following cases 1, 2
(However, the loop tag
1. Derivative constant (D) = 0 (TD = 0)
past value memory is
2. Operation mode (MODE) is any of MAN, LCM and CMV
set.)
In any of the following cases 1, 2, 3
1. Integral constant (I) = 0 (TI = 0) In any of the following cases 1, 2, 3
2. When either of MHA or MLA error is 1. Integral constant (I) = 0 (TI = 0)
turned to 1 2. When either of MHA2 or MLA2 is turned to 1
CT CT CT
(MVP > MH) and ( DVn 0) (MVP > MH) and ( DVn 0) DVn 0
TI TI TI
3. When either of MHA or MLA error is 3. When either of MHA2 or MLA 2 is turned to 1
turned to 1 CT
(MVP < ML) and ( DVn 0)
CT TI
(MVP < ML) and ( DVn 0)
TI
(DVL - DVLS) < |DV| DVL DVLA = BB1 = Last value status hold *1
|DV| (DVL - DVLS) DVLA = BB1 = 0
*1 When DVLI or ERRI in the alarm detection inhibition (INH) is set to 1, DVLA and BB1 show 0 since the alarm is prohibited.
128
S.IPD
Operation Error
2
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
9.5
S.IPD
129
S.BPI
9.6 S.BPI
Ladder diagram
Start contact
S.BPI S.BPI S1 D1 S2 D2 S3
S_BPI
EN ENO
ENO:=S_BPI(EN,s1,s2,s3,d1,d2);
s1 d1
s2 d2
s3
Function
Performs BPI operation when the specified control cycle is reached.
Also performs SV setting processing, tracking processing, gain (Kp) operation processing and deviation check at this time.
130
S.BPI
Set Data
Block diagram
9
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.)
2
GW,
RL, RH DV P, I, CT DVL, DVLS
GG
E1
(1) (2) (3) (4) (5)
3
E2 Gain Kp
SV setting Tracking Deviation
(When used) operation BPI operation BW
processing processing check
4
processing
CT Control cycle
cycle
AND
BB1 4
judgment
(6) RUN(SPA=0)
Loop
stop
STOP(SPA=1) When not in control cycle 6
judgment
7
BW=0
(6)
SPA BW=0
Loop stop
MAN OFF
MODE processing
8
ERRI∩DVLI
DVLA
9.6
S.BPI
131
S.BPI
Set Data
(1) Data specified in S.BPI instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
Input S1 +0 Real
E1 Input value -999999 to 999999 % –– U
data +1 number
D1 +0 Output value Real
BW (-999999 to 999999) % –– S
+1 ( MV) number
BB ––
Block b15 b12 b8 b4 b0
B
memory B
+2 Deviation 1 BIN
BB1 –– –– S
large alarm 16bit
(0: Without alarm)
(1: With alarm)
Deviation
S2 +0 Real
DVLS large alarm 0 to 100 % 2.0 U
+1 number
hysteresis
Operation 0: Reverse operation BIN
+2 PN –– 0 U
mode 1: Forward operation 16bit
Tracking 0: Not trucked BIN
+3 TRK –– 0 U
bit 1: Trucked 16bit
0 to 3
Operation
constant b15 b12 b8 b4 b0
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 Specify whether the set value (E2) is to be used or not.
*3 Specify whether the MV of the upper loop is to be used or not as the set value (E2).
132
S.BPI
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
0 to FFFFH 9
Operation b15 b12 b8 b4 b0 BIN
D2 +1 MODE C C C C C C A M L L L –– 8H S/U
mode S M C A M A U A C C C 16bit
V V B B B S T N C A M
2
0 to FFFFH
b15 b12 b8 b4 b0
4
E T D M M
R R V H L
R K L I I
I F I
Alarm
+4 INH detection TRKF ––
BIN
4000H S/U
6
16bit
inhibition (0 : Without tracking)
(1 : With tracking)
Loop ERRI, DVLI, MHI, MLI 7
tag 0 : Alarm enable
memory *2 1 : Alarm inhibit
+14
+15
SV Set value RL to RH ––
Real
number
0.0 U 8
+16 Real
DV Deviation (-110 to 110) % 0.0 S
+17 number
Engineering
+22 Real
RH value upper -999999 to 999999 –– 100.0 U
9.6
+23 number
limit
Engineering
S.BPI
+24 Real
RL value lower -999999 to 999999 –– 0.0 U
+25 number
limit
+46 CT Real
CT Control cycle 0 to 999999 Note that 32767 s 1.0 U
+47 T number
+50 Deviation limit Real
DVL 0 to 100 % 100.0 U
+51 value number
+52 Real
P Gain 0 to 999999 –– 1.0 U
+53 number
+54 Integral Real
I 0 to 999999 s 10.0 U
+55 constant number
DV cumulative
+56 Real
SDV value (-999999 to 999999) % 0.0 S
+57 number
( DV)
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
133
S.BPI
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
D2 +58 Real
GW Gap width 0 to 100 % 0.0 U
Loop tag +59 number
Memory *2 +60 Real
GG Gap gain 0 to 999999 –– 1.0 U
+61 number
Loop tag D2 +96
past value
–– –– Used by the system as a work area. –– –– –– S
Memory *2
+99
*3
S3 +0 Real
Set value *4 E2 Set value -10 to 110 % 0.0 U
+1 number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
*3 The applications of the loop tag past value memory are indicated below.
Specified position Description
D2 +96 Control cycle counter initial preset flag
+97 Control cycle counter*5
+98 CT
DVI
+99 TI
When control is to be started from the initial status, the data must be cleared with the sequence program.
*4 The set value (E2) becomes valid when the set value pattern (SVPTN) is set to "E2 is used".
When using the MV of the upper loop as the set value (E2), specify the device where the manipulated value (MV) of the upper
loop is set (offset + 12: MV).
When not using E2 as the set value, make sure to specify a dummy device.
(Special register SD1506 can be specified as a dummy device.)
*5 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.
2) When the set value (E2) is not specified, "(2) Tracking processing" is performed without the engineering value
conversion being performed.
(b) When the operation mode (MODE) is any of MAN, AUT, CMV, CMB, CAB, LCM, LCA and LCC, "(2) Tracking
processing" is performed.
134
S.BPI
(b) When all of the following conditions hold, tracking processing is performed. 2
1) The tracking bit (TRK) of the operation constant is 1.
2) The set value (E2) is used.
3) The operation mode (MODE) is any of MAN, AUT, CMV, CMB, CAB, LCM, LCA and LCC. 3
E2 = SVn'
(c) When the set value (E2) is the manipulated value (MV) of the upper loop, the tracking flag (TRKF) of the alarm
detection inhibition (INH) in the upper loop turns to 1. 4
(3) Gain (Kp) operation processing
(a) The deviation (DV) is calculated under the following condition.
Condition Operation expression 4
Forward operation (PN = 1) DV = E1 - SVn'
Reverse operation (PN = 0) DV = SVn' - E1
(b) The output gain (K) is calculated under the following condition. 6
Condition Operation expression
When |DV| GW K = GG
Kp: K × Gain (P), BT: Execution cycle, TI: Integral constant (I),
9.6
DVI: Cumulative value of DVn, DVn: Deviation
S.BPI
In the following case, however, note that special processing will be performed.
Condition Processing
In either of the following cases 1, 2
1. Integral constant (I) = 0 (TI = 0) CT
DVI last value unchanged
2. Either MLA or MHA of alarm TI
detection (ALM) is 1
CT CT
1. Integral constant (I) 0 (TI 0) DVI ( DVI DVn)
TI TI
135
S.BPI
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
136
S.R
9.7 S.R
9
Ladder diagram
Start contact 2
S.R S.R S1 D1 S2 D2 S3
EN ENO
ENO:=S_R(EN,s1,s2,s3,d1,d2);
s1
s2
d1
d2
4
s3
D2 : Loop tag memory start device : Array of any 16-bit data (0..127)
9.7
D2 –– ––
S3 –– ––
S.R
*1 Special register SD1506 can be specified as a dummy device.
Function
Performs rate operation when the specified control cycle is reached.
Also performs operation mode (MODE) judgment, engineering value conversion, tracking processing and change rate limiter
processing at this time.
SPR
SPR: Set value
Rn
Rn: Rate current value
DR: Change rate limit value
DR
Control cycle
t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12
137
S.R
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.)
E1
(6) (1) (2) (3)
E2
Engineering
Tracking Change rate
(When value Ratio operation BW
processing limiter
used) conversion
Loop STOP(SPA 1)
stop When not in control cycle
judgment
(4)
SPA Last BW
Loop stop
MAN processing
MODE
138
S.R
Set Data
9
(1) Data specified in S.R instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
Input S1 +0 Real 2
E1 Input value -999999 to 999999 % –– U
data +1 number
Block D1 +0 Real
memory +1
BW Output value (-999999 to 999999) %
number
–– S
3
0: Not trucked BIN
S2 +0 TRK Tracking bit –– 0 U
1: Trucked 16bit
0 to 3
4
b15 b12 b8 b4 b0
Operation
constant Set value BIN 4
+1 SVPTN –– 3 U
pattern 16bit
0 to FFFFH
7
Operation b15 b12 b8 b4 b0 BIN
D2 +1 MODE C C C C C C A M L L L –– 8H S/U
mode S M C A M A U A C C C 16bit
V V B B B S T N C A M
0 to FFFFH
8
b15 b12 b8 b4 b0
S
P
Alarm A
BIN
+3 ALM –– 4000H S/U
Loop detection 16bit
SPA
9.7
tag
0: Loop RUN
memory *4 1: Loop STOP
S.R
+14 Real
SPR Set value -999999 to 999999 –– 0.0 U
+15 number
+16 Real
BIAS Bias -999999 to 999999 % 0.0 U
+17 number
+46 CT Real
CT Control cycle 0 to 999999 Note that 32767 s 1.0 U
+47 T number
+50 Change rate Real
DR 0 to 999999 –– 100.0 U
+51 limit value number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 Specify whether the set value (E2) is to be used or not.
*3 Specify whether the MV of the upper loop is to be used or not as the set value (E2).
*4 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
139
S.R
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
D2 +52 Rate upper Real
RMAX -999999 to 999999 –– 100.0 U
+53 limit value number
Loop tag +54 Rate lower Real
RMIN -999999 to 999999 –– 0.0 U
memory *2 +55 limit value number
+56 Rate current Real
Rn (-999999 to 999999) –– 0.0 S
+57 value number
Loop tag D2 +96
past value
–– –– Used by the system as a work area. –– –– –– S
memory *2
+99
*3
S3 +0 Real
Set value *4 E2 Set value -10 to 110 % 0.0 U
+1 number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
*3 The applications of the loop tag past value memory are indicated below.
Specified position Description
D2 +96 Control cycle counter initial preset flag
+97 Control cycle counter*5
+98
Rn-1 (Last value)
+99
When control is to be started from the initial status, the data must be cleared with the sequence program.
*4 The set value (E2) becomes valid when the set value pattern (SVPTN) is set to "E2 is used".
When using the MV of the upper loop as the set value (E2), specify the device where the manipulated value (MV) of the upper
loop is set (offset + 12: MV).
When not using E2 as the set value, make sure to specify a dummy device.
(Special register SD1506 can be specified as a dummy device.)
*5 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.
(b) When the set value (E2) is the manipulated value (MV) of the upper loop, the tracking flag (TRKF) of the alarm
detection inhibition (INH) in the upper loop turns to 1.
140
S.R
9.7
2) When the set value (E2) is not specified, "(2) Change rate limiter" is performed without engineering value
S.R
conversion being made.
(b) When the operation mode (MODE) is any of MAN, AUT, CMV, CMB, CAB, LCM, LCA and LCC, "(1) Tracking
processing" is executed.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
141
S.PHPL
9.8 S.PHPL
Ladder diagram
Start contact
S.PHPL S.PHPL S1 D1 S2 D2
S_PHPL
EN ENO
ENO:=S_PHPL(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
Performs a high/low limit check on the input value (E1) and provides an alarm output.
142
S.PHPL
Set Data
Block diagram
9
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.)
2
RL, RH LL HH PL PH HS DPL, CTIM PV
(1)
(2) (3)
conversion
4
E1 Change rate
Upper/lower limit check BW
check
4
Upper limit alarm Positive
Lower limit alarm BB2
Negative
AND
Upper upper limit alarm
Lower lower limit alarm
6
BB3
RUN(SPA 0) AND
(5)
7
Loop stop
judgment STOP(SPA 1)
AND
8
SPA
AND
(5)
Loop stop BW
processing OFF BB4
9.8
AND
S.PHPL
BB5
AND
ERRI PHI
ERRI PLI BB1
OR
ERRI HHI
ERRI LLI
ERRI DPPI
ERRI DPNI
PHA
PLA
HHA
LLA
DPPA
DPNA
143
S.PHPL
Set Data
(1) Data specified in S.PHPL instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
Input S1 +0 Real
E1 Input value -999999 to 999999 % –– U
data +1 number
D1 +0 Real
BW Output value (-999999 to 999999) % –– S
+1 number
BB ––
BB1 Alarm
Upper limit
BB2
alarm
Lower limit
BB3
Block alarm b15 b12 b8 b4 b0
B B B B B
memory Positive B B B B B
+2 5 4 3 2 1 BIN
direction –– –– S
BB4 16bit
change rate (0: Without alarm)
alarm (1: With alarm)
Negative
direction
BB5
change rate
alarm
0 to FFFFH
Operation b15 b12 b8 b4 b0 BIN
D2 +1 MODE C C C C C C A M L L L –– 8H S/U
mode S M C A M A U A C C C 16bit
V V B B B S T N C A M
0 to FFFFH
b15 b12 b8 b4 b0
S H L P P D D
P H L H L P P
Alarm A A A A A P N BIN
+3 ALM A A –– 4000H S/U
detection 16bit
SPA Other
0: Loop RUN (0: Without alarm)
1: Loop STOP (1: With alarm)
Loop 0 to FFFFH
tag
b15 b12 b8 b4 b0
memory *2 Alarm E H L P P D D
R H L H L P P BIN
+4 INH detection R I I I I P N –– 4000H S/U
I I I 16bit
inhibition
0: Alarm enable
1: Alarm inhibit
+10 Real
PV Process value (RL to RH) –– 0.0 S
+11 number
Engineering
+22 Real
RH value upper -999999 to 999999 –– 100.0 U
+23 number
limit
Engineering
+24 Real
RL value lower -999999 to 999999 –– 0.0 U
+25 number
limit
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
144
S.PHPL
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
D2 +26
Upper limit
Real
9
PH alarm set RL to RH –– 100.0 U
+27 number
value
+28
+29
PL
Lower limit
alarm value
RL to RH ––
Real
number
0.0 U 2
Upper upper
+30 Real
HH limit alarm RL to RH –– 100.0 U
+31
value
number
3
Lower lower
Loop tag +32 Real
LL limit alarm RL to RH –– 0.0 U
memory *2 +33 number
value
Upper/lower
4
+40 Real
HS limit alarm 0 to 999999 % 0.0 U
+41 number
hysteresis
+42
Change rate
Real
4
CTIM alarm CTIM s 0.0 U
0 to 999999 Note that 32767
+43 T number
Check time
+44
+45
DPL
Change rate
alarm value
0 to 100 %
Real
number
100.0 U 6
Loop tag D2 +124
past value
memory *2
–– –– Used by the system as a work area. –– –– –– S
7
+127
*3
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
*2
system. Users cannot set the data.
The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
8
details.)
*3 The applications of the loop tag past value memory are indicated below.
Specified position Description
D2 +124 Change rate monitor counter initial preset flag
9.8
+125 Change rate monitor counter*4
S.PHPL
+126
E1n-m
+127
When control is to be started from the initial status, the data must be cleared with the sequence program.
*4 The change rate monitor 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.
145
S.PHPL
*1 When PHI or ERRI in the alarm detection inhibition (INH) is set to 1, PHA and BB2 show 0 since the alarm is prohibited.
*2 When PLI or ERRI in the alarm detection inhibition (INH) is set to 1, PLA and BB3 show 0 since the alarm is prohibited.
*3 When HHI or ERRI in the alarm detection inhibition (INH) is set to 1, HHA show 0 since the alarm is prohibited.
*4 When LLI or ERRI in the alarm detection inhibition (INH) is set to 1, LLA show 0 since the alarm is prohibited.
(3) Change rate check
(a) A change rate check is performed for the time specified in CTIM.
The number of change rate checks to be made is found by the following expression.
CTIM
m
T
m varies from 1 to m.
However, when m = 0 (integer part), no processing is performed.
For example, when m = 4, the processing is performed as shown below.
Execution cycle
CTIM
(b) The change of the input data is compared with the change rate alarm value (DPL) in each execution cycle ( T).
Check item Condition ALM BB4 BB5
E1n+m - E1n DPL DPPA = 1 *1 1 *1 ––
Others DPPA = 0 0 ––
Change rate check
E1n+m - E1n - DPL DPNA = 1 *2 –– 1 *2
Others DPNA = 0 –– 0
*1 When DPPI or ERRI in the alarm detection inhibition (INH) is set to 1, DPPA and BB4 show 0 since the alarm is prohibited.
*2 When DPNI or ERRI in the alarm detection inhibition (INH) is set to 1, DPNA and BB5 show 0 since the alarm is prohibited.
146
S.PHPL
PV
RH RL
100
E1 RL 9
(5) Loop stop processing
(a) Setting 1 in SPA of the alarm detection (ALM) selects a loop stop. 2
A loop stop performs the following processing and terminates the S.PHPL instruction.
1) Engineering value reverse conversion is performed with the following expression.
9.8
S.PHPL
147
S.LLAG
9.9 S.LLAG
Ladder diagram
Start contact
S.LLAG S.LLAG S1 D1 S2 D2
S_LLAG
EN ENO
ENO:=S_LLAG(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
Performs lead-lag operation according to the lag time and lead time settings of the operation constants and the actuating
signal (e1).
Lea-lag compensation
Input Value (E1) t
1 T2S
1 T1S
148
S.LLAG
Set Data
9
(1) Data specified in S.LLAG instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0 Real 2
E1 Input value -999999 to 999999 % –– U
+1 number
b15 b12 b8 b4 b0
Input
data Actuating
e
1
BIN
3
+2 e1 –– –– U
signal 16bit
0: With lead-lag compensation
1: Without lead-lag compensation
4
Block D1 +0 Real
BW Output value (-999999 to 999999) % –– S
memory +1 number
Operation
S2 +0
T1 Delay time 0 to 999999 s
Real
number
1.0 U 4
+1
constant +2 Real
T2 Lead time 0 to 999999 s 1.0 U
+3 number
Local work D2 +0 Last Input Real 6
*2
E1n-1 Used by the system as a work area. –– –– S
memory +1 value number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data. 7
*2 When control is to be started from the initial status, the data must be cleared with the sequence program.
9.9
Condition BW (Output value)
S.LLAG
1
BW = × {T2 × (E1 - E1n-1) + T1 × (BW Last value) + T × E1}
e1 = 0 T1 T
However, when T1 + T = 0, BW = 0
e1 = 1 BW = E1 (Input value is output unchanged)
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
149
S.I
9.10 S.I
Ladder diagram
Start contact
S.I S.I S1 D1 S2 D2
S_I
EN ENO
ENO:=S_I(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
Performs integral operation according to the operation control signal (e1).
t t
150
S.I
Set Data
9
(1) Data specified in S.I instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0 Real 2
E1 Input value -999999 to 999999 –– –– U
+1 number
0 0 T
9.10 S.I
BW = Yn = E1 + Yn - 1
T
0 0 BW = Yn-1
1 –– BW = Ys
E1: Current input value, T: Execution cycle, Yn: Current output value, Yn-1: Last output value
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
151
S.D
9.11 S.D
Ladder diagram
Start contact
S.D S.D S1 D1 S2 D2
S_D
EN ENO
ENO:=S_D(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
Executes derivative operation according to the operation control signal (e1).
t t
152
S.D
Set Data
9
(1) Data specified in S.D instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0 Real 2
E1 Input value -999999 to 999999 –– –– U
+1 number
b15 b12 b8 b4 b0
Input
data Operation
e
1
BIN
3
+2 e1 –– –– U
control signal 16bit
0: With derivative operation
1: Without derivative operation
4
Block D1 +0 Real
BW Output value (-999999 to 999999) –– –– S
memory +1 number
Operation
S2 +0
T
Derivative
time
0 to 999999 s
Real
number
1.0 U 4
+1
constant +2 Output initial Real
Ys -999999 to 999999 –– 0.0 U
+3 value number
Local work D2 +0 Last input Real 6
*2
E1n-1 Used by the system as a work area. –– –– S
memory +1 value number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data. 7
*2 When control is to be started from the initial status, the data must be cleared with the sequence program.
(2) Execution cycle ( T)
Set the execution cycle in SD1500 and SD1501 as real numbers. 8
Set Data contents
Processing
The S.D instruction performs the following operation.
9.11 S.D
e1 BW
T
BW = (Yn-1-E1n-1+E1)
0 T+ T
Note that T + T = 0, BW = 0.
1 BW = Ys
E1: Current input value, T: Execution cycle, Yn: Last output value, Yn-1: Last output value
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
153
S.DED
9.12 S.DED
Ladder diagram
Start contact
S.DED S.DED S1 D1 S2 D2
S_DED
EN ENO
ENO:=S_DED(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
Outputs the input value (E1) with a delay of dead time according to the setting of the operation control signal (e1).
SN
E1, Y1 SN E1
Y1
Ys
ST1 ST2 ST3 ST4 ST5 ST6 ST7
e1
BB1
SN1
SN2
SN3
Dead time table
154
S.DED
Set Data
9
(1) Data specified in S.DED instruction
Standard
Specified position Symbol Name Recommended range *1 Unit Data format Set by
value
S1 +0 Real 2
E1 Input value -999999 to 999999 –– –– U
+1 number
b15 b12 b8 b4 b0
Input
data Operation
e
1
BIN
3
+2 e1 –– –– U
control signal 16bit
0: With dead time
1: Without dead time
4
D1 +0 Real
BW Output value (-999999 to 999999) –– –– S
+1 number
BB ––
4
Block b15 b12 b8 b4 b0
B
memory B
+2 Data 1 BIN
BB1 –– –– S
sufficiency bit
(0: Data sufficiency)
16bit 6
(1: Data insufficiency)
9.12 S.DED
switching 16bit
0: E1 when e1 turned from 1 to 0 is output up to
SN times.
1: Ys is output up to SN times.
Last value
D2 +0
input (e1')
Cycle counter
+1
*3
Dead time
+2 table number
Local of stored data
work +3 –– Dead time Used by the system as a work area. –– –– –– S
+4 table 1
memory *2
+5 Dead time
+6 table 2
: :
+2SN
+1 Dead time
+2SN table SN
+2
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 When control is to be started from the initial status, the data must be cleared with the sequence program.
*3 The cycle counter rounds off the data to the nearest whole number.
155
S.DED
• When the dead time table date is not filled, BB1 is turned 1.
• When SN = 0, BB1 = 0 and BW = E1.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
156
S.HS
9.13 S.HS
9
Ladder diagram
Start contact 2
S.HS S.HS S1 D1 S2 D2
EN ENO
ENO:=S_HS(EN,s1,s2,d1,d2);
s1 d1 4
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
9.13 S.HS
Function
Outputs the maximum value of the input values 1 (E1) to n (En).
157
S.HS
Set Data
(1) Data specified in S.HS instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
BIN
S1 +0 n Input count 1 to 16 –– –– U
16bit
+1
E1 Input value 1
+2
Input
+3
data E2 Input value 2 Real
+4 -999999 to 999999 –– –– U
number
+2n-1
En Input value n
+2n
D1 +0 Real
BW Output value (Maximum value of E1 to En) –– –– S
+1 number
BB ––
b15 b12 b8 b4 b0
Block B B B B B B B B B B B B B B B B
B B B B B B B B B B B B B B B B
memory BB1 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
+2 Output BIN
to –– –– S
selection (0: The corresponding input value is not 16bit
BB16 the maximum value)
(1: The corresponding input value is the
maximum value)
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system.
Users cannot set the data.
(a) If there are two or more maximum values, the bits corresponding to the maximum values are all turned to 1.
(b) If there is only one input
1) When only E1 is used as the input value
• E1 is stored into BW.
• BB1 of BB is turned to 1.
• BB2 to BB16 of BB are turned to 0.
2) Only one of E2 to E16 is used as the input value
• The input values of E2 to E16 and the data of E1 are used to perform processing.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
158
S.LS
9.14 S.LS
9
Ladder diagram
Start contact 2
S.LS S.LS S1 D1 S2 D2
EN ENO
ENO:=S_LS(EN,s1,s2,d1,d2);
s1 d1 4
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
9.14 S.LS
Function
Outputs the minimum value of the input values 1 (E1) to n (En).
159
S.LS
Set Data
(1) Data specified in S.LS instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
BIN
S1 +0 n Input count 1 to 16 –– –– U
16bit
+1
E1 Input value 1
+2
Input
+3
data E2 Input value 2 Real
+4 -999999 to 999999 –– –– U
number
+2n-1
En Input value n
+2n
D1 +0 Real
BW Output value (Minimum value of E1 to En) –– –– S
+1 number
BB ––
b15 b12 b8 b4 b0
Block B B B B B B B B B B B B B B B B
B B B B B B B B B B B B B B B B
memory BB1 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
+2 Output BIN
to –– –– S
selection (0: The corresponding input value is not the 16bit
BB16
minimum value)
(1: The corresponding input value is the
minimum value)
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
(a) If there are two or more minimum values, the bits corresponding to the minimum values are all turned to 1.
(b) If there is only one input
1) When only E1 is used as the input value
• E1 is stored into BW.
• BB1 of BB is turned to 1.
• BB2 to BB16 of BB are turned to 0.
2) Only one of E2 to E16 is used as the input value
• The input values of E2 to E16 and the data of E1 are used to perform processing.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
160
S.MID
9.15 S.MID
9
Ladder diagram
Start contact 2
S.MID S.MID S1 D1 S2 D2
EN ENO
ENO:=S_MID(EN,s1,s2,d1,d2);
s1 d1 4
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
9.15 S.MID
Function
Outputs the middle value between the maximum value and minimum value among the input value 1 (E1) to input value n (En).
161
S.MID
Set Data
(1) Data specified in S.MID instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
BIN
S1 +0 n Input count 1 to 16 –– –– U
16bit
+1
E1 Input value 1
+2
Input
+3
data E2 Input value 2 Real
+4 -999999 to 999999 –– –– U
number
+2n-1
En Input value n
+2n
D1 +0 (Middle value between maximum value and Real
BW Output value –– –– S
+1 minimum value) number
BB ––
b15 b12 b8 b4 b0
Block B B B B B B B B B B B B B B B B
B B B B B B B B B B B B B B B B
memory BB1 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
+2 Output BIN
to –– –– S
selection (0: The corresponding input value is not the 16bit
BB16
intermediate value)
(1: The corresponding input value is the
intermediate value)
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
(a) If there are an even number of inputs, the smaller value of the middle values is stored.
(b) If there are two or more middle values, the bits corresponding to the middle values are all turned to 1.
Remark
The middle value is selected as described below.
(1) The input value 1 (E1) to input value n (En) are rearranged in order of increasing value.
(If there are the same input values, they are arranged in order of increasing input number.)
(2) The middle value among the rearranged values is selected.
Example) When the input data are 2, 5, 1, 4 and 3, the middle value is selected as described below.
In the above case, the middle value is "3" and BB5 turns to 1.
162
S.MID
Operation Error
9
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
4140
When the value of S1 is either a non-numeric or non-
–– ––
3
normalized number
9.15 S.MID
163
S.AVE
9.16 S.AVE
Ladder diagram
Start contact
S.AVE S.AVE S1 D1 S2 D2
S_AVE
EN ENO
ENO:=S_AVE(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
Calculates and outputs the average value of the input value 1 (E1) to n (En).
164
S.AVE
Set Data
9
(1) Data specified in S.AVE instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
BIN 2
S1 +0 n Input count 1 to 16 –– –– U
16bit
+1
E1 Input value 1
Input
+2 3
+3
data E2 Input value 2 Real
+4 -999999 to 999999 –– –– U
number
+2n-1
4
En Input value n
+2n
Block D1 +0 Real
memory +1
BW Output value (Average value of E1 to En) ––
number
–– S
4
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
6
Set Data contents
Processing
(1) Calculation of average value
7
The average value of the input value 1 (E1) to n (En) is calculated.
As the denominator (N), the value specified as the number of inputs (n) is used.
BW
E1 E2 E3
N
En
8
Operation Error
9.16 S.AVE
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
165
S.LIMT
9.17 S.LIMT
Ladder diagram
Start contact
S.LIMT S.LIMT S1 D1 S2 D2
S_LIMT
EN ENO
ENO:=S_LIMT(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
The upper and lower limit limiter is applied to the output value by adding a hysteresis.
BW
HILMT
HILMT HS1
X1
LOLMT LOLMT HS2 HILMT HS1 HILIMT
LOLMT HS2
LOLMT
Upper limit alarm
BB1
166
S.LIMT
Set Data
9
(1) Data specified in S.LIMT instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
Input S1 +0 Real 2
E1 Input value -999999 to 999999 % –– U
data +1 number
D1 +0 Real
+1
BW Output value (-999999 to 999999) %
number
–– S
3
BB ––
Block Upper limit b15 b12 b8 b4 b0
4
BB1 B B
memory alarm B B
+2 2 1 BIN
–– –– S
16bit
Lower limit
BB2 (0: Without alarm)
alarm (1: With alarm)
Upper limit
4
S2 +0 Real
HILMT -999999 to 999999 % 100.0 U
+1 value*2 number
+2 Lower limit Real
Operation +3
LOLMT
value*2
-999999 to 999999 %
number
0.0 U 6
constant +4 Upper limit Real
HS1 0 to 999999 % 0.0 U
+5 hysteresis number
+6
HS2
Lower limit
0 to 999999 %
Real
0.0 U
7
+7 hysteresis number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
*2
system. Users cannot set the data.
Make setting to satisfy HILMT LOLMT.
8
9.17 S.LIMT
Condition BW BB1 BB2
E1 HILMT HILMT 1 0
(LOLMT + HS2) < E1 < (HILMT - HS1) E1 0 0
E1 LOLMT LOLMT 0 1
Other than above (hysteresis section) E1 Last value Last value
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
167
S.VLMT1
9.18 S.VLMT1
Ladder diagram
Start contact
S.VLMT1 S.VLMT1 S1 D1 S2 D2
S_VLMT1
EN ENO
ENO:=S_VLMT1(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
Limits the varying speed of the output value.
Input Input
Hysteresis Hysteresis
t t
Output Output
1 1 BB2
0 BB1 0
BW
BW
t t
(Positive Direction) (Negative Direction)
168
S.VLMT1
Set Data
9
(1) Data specified in S.VLMT1 instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
Input S1 +0 Real 2
E1 Input value -999999 to 999999 % –– U
data +1 number
D1 +0 Real
+1
BW Output value (-999999 to 999999) %
number
–– S
3
BB ––
Positive
Block BB1
direction
restriction
b15 b12 b8 b4
B
b0
B
4
memory B B
+2 alarm 2 1 BIN
–– –– S
Negative 16bit
BB2
direction (0: Without alarm)
(1: With alarm)
4
restriction
alarm
S2 +0
V1
Positive
direction limit 0 to 999999 %/s
Real
100.0 U
6
+1 number
value
Negative
+2
+3
V2 direction limit 0 to 999999 %/s
Real
number
100.0 U 7
Operation value
constant Positive
+4 Real
+5
HS1 direction
hysteresis
0 to 999999 %
number
0.0 U
8
Negative
+6 Real
HS2 direction 0 to 999999 % 0.0 U
+7 number
hysteresis
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
9.18 S.VLMT1
system. Users cannot set the data.
169
S.VLMT1
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
170
S.VLMT2
9.19 S.VLMT2
9
Ladder diagram
Start contact 2
S.VLMT2 S.VLMT2 S1 D1 S2 D2
EN ENO
ENO:=S_VLMT2(EN,s1,s2,d1,d2);
s1 d1 4
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
9.19 S.VLMT2
Function
Limits the varying speed of the output value.
Input value E1
E1(BW)
Output value BW
BB1
BB2
171
S.VLMT2
Set Data
(1) Data specified in S.VLMT2 instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
Input S1 +0 Real
E1 Input value -999999 to 999999 % –– U
data +1 number
D1 +0 Real
BW Output value (-999999 to 999999) % –– S
+1 number
BB ––
Positive
direction
Block BB1 b15 b12 b8 b4 b0
restriction B B
memory B B
+2 alarm 2 1 BIN
–– –– S
Negative 16Bit
direction (0: Without alarm)
BB2 (1: With alarm)
restriction
alarm
Positive
S2 +0 Real
V1 direction limit 0 to 999999 %/s 100.0 U
+1 number
value
Negative
+2 Real
V2 direction limit 0 to 999999 %/s 100.0 U
+3 number
Operation value
constant Positive
+4 Real
HS1 direction 0 to 999999 % 0.0 U
+5 number
hysteresis
Negative
+6 Real
HS2 direction 0 to 999999 % 0.0 U
+7 number
hysteresis
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
(2) Execution cycle ( T)
Set the execution cycle in SD1500 and SD1501 as real numbers.
172
S.VLMT2
Operation Error
9
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
9.19 S.VLMT2
173
S.ONF2
9.20 S.ONF2
Ladder diagram
Start contact
S.ONF2 S.ONF2 S1 D1 S2 D2 S3
S_ONF2
EN ENO
ENO:=S_ONF2(EN,s1,s2,s3,d1,d2);
s1 d1
s2 d2
s3
Function
Performs 2-position ON/OFF control (ON/OFF of one contact) when the specified control cycle is reached.
Also performs SV setting processing, tracking processing, MV compensation and MV output processing at this time.
174
S.ONF2
Set Data
Block diagram
9
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 HSO DV
2
MV
E1
(1) (2) (3) (4) 3
E2
SV setting Tracking MV
(When MV output BW
processing processing compensation
used)
4
(5)
(7) When in control
CT Control cycle
cycle 2-position
ON/OFF
BB1 4
judgment control
RUN(SPA 0) When not in control
(6) cycle
Loop STOP(SPA 1) Mode
MAN, CMB, CMV, LCM
6
stop judgment
judgment
Other than MAN, CMB, CMV, LCM
7
(6)
SPA Last BW
Loop stop
MODE
MAN processing 8
9.20 S.ONF2
175
S.ONF2
Set Data
(1) Data specified in S.ONF2 instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0 Real
Input data E1 Input value -999999 to 999999 % –– S/U
+1 number
D1 +0 Real
BW Output value (-999999 to 999999) % –– S
+1 number
BB ––
Block b15 b12 b8 b4 b0
B
memory B
+2 Operation 1 BIN
BB1 –– –– S
result 16bit
(0: |BW| 50 )
(1: |BW| 50 )
Loop 0 to FFFFH
tag
b15 b12 b8 b4 b0
memory *4 S
P
Alarm A
BIN
+3 ALM –– 4000H S/U
detection 16bit
SPA
0: Loop RUN
1: Loop STOP
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 Specify whether the set value (E2) is to be used or not.
*3 Specify whether the MV of the upper loop is to be used or not as the set value (E2).
*4 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
176
S.ONF2
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
0 to FFFFH
9
b15 b12 b8 b4 b0
T
Alarm R
K BIN
4000H
D2 +4 INH detection
inhibit
F ––
16Bit
S/U
2
TRKF
(0: Without tracking)
(1: With tracking)
9.20 S.ONF2
*4 +1 number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
*3 The applications of the loop tag past value memory are indicated below.
Specified position Description
D2 +96 Control cycle counter initial preset flag
+97 Control cycle counter*5
When control is to be started from the initial status, the data must be cleared with the sequence program.
*4 The set value (E2) becomes valid when the set value pattern (SVPTN) is set to "E2 is used".
When using the MV of the upper loop as the set value (E2), specify the device where the manipulated value (MV) of the upper
loop is set (offset + 12: MV).
When not using E2 as the set value, make sure to specify a dummy device.
(Special register SD1506 can be specified as a dummy device.)
*5 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.
177
S.ONF2
2) When the set value (E2) is not specified, "(2) Tracking processing" is performed without the engineering value
conversion being performed.
(b) When the operation mode (MODE) is any of MAN, AUT, CMV, CMB, CAB, LCM, LCA and LCC, "(2) Tracking
processing" is performed.
(2) Tracking processing
(a) The set value (SV) is converted reversely from the engineering value with the following operation expression to
calculate SVn'.
100
SVn' (SVn RL)
RH RL
(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.
3) The operation mode (MODE) is any of MAN, AUT, CMV, CMB, CAB, LCM, LCA and LCC.
E2 = SVn'
(c) When the set value (E2) is the manipulated value (MV) of the upper loop, the tracking flag (TRKF) of the alarm
detection inhibition (INH) in the upper loop turns to 1.
(3) MV compensation
After the deviation (DV) is calculated from the input value (E1) and the set value after tracking processing (SVn'), the MV
compensation value (MV') is calculated.
(a) Calculation of deviation (DV)
The deviation (DV) is calculated under the following condition.
Condition DV
Forward operation (PN = 1) E1 - SVn'
Reverse operation (PN = 0) SVn' - E1
178
S.ONF2
(4) MV output
The manipulated value (MV(BW)) is calculated under the following condition.
Condition BW 9
CMV, MAN, CMB, LCM BW = MVn
BW = MV'
CSV, CCB, CAB, CAS, AUT, LCC, LCA
MVn = BW
2
(5) 2-position ON/OFF control
BB1 of BB is output under the following condition.
Condition BB1 3
|BW| 50% 1
|BW| < 50% 0
Operation Error
9.20 S.ONF2
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
179
S.ONF3
9.21 S.ONF3
Ladder diagram
Start contact
S.ONF3 S.ONF3 S1 D1 S2 D2 S3
S_ONF3
EN ENO
ENO:=S_ONF3(EN,s1,s2,s3,d1,d2);
s1 d1
s2 d2
s3
Function
Performs 3-position ON/OFF control (ON/OFF of two contact) when the specified control cycle is reached.
Also performs SV setting processing, tracking processing, MV compensation and MV output processing at this time.
180
S.ONF3
Set Data
Block diagram
9
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.)
E1
(1) (2) (3) (4) 3
E2
SV setting Tracking MV
(When MV output BW
processing processing compensation
used)
4
(5)
(7) When in control
CT Control cycle
cycle 3-position
ON/OFF
BB1 4
judgment control BB2
RUN(SPA 0) When not in control
(6) cycle
Loop STOP(SPA 1) Mode
MAN, CMB, CMV, LCM
6
stop judgment
judgment
Other than MAN, CMB, CMV, LCM
7
(6)
SPA Last BW
Loop stop
MODE
MAN processing 8
9.21 S.ONF3
181
S.ONF3
Set Data
(1) Data specified in S.ONF3 instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
Input S1 +0 Real
E1 Input value -999999 to 999999 % –– U
data +1 number
D1 +0 Real
BW Output value (-999999 to 999999) % –– S
+1 number
BB ––
b15 b12 b8 b4 b0
Operation B B
BB1 B B
result 2 1
Block
memory
+2 BIN
–– –– S
16bit
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 Specify whether the set value (E2) is to be used or not.
*3 Specify whether the MV of the upper loop is to be used or not as the set value (E2).
*4 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
182
S.ONF3
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
0 to FFFFH
9
b15 b12 b8 b4 b0
T
Alarm R
K BIN
4000H
D2 +4 INH detection
inhibit
F ––
16Bit
S/U
2
TRKF
(0: Without tracking)
(1: With tracking)
9.21 S.ONF3
*3
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
*3 The applications of the loop tag past value memory are indicated below.
Specified position Description
D2 +96 Control cycle counter initial preset flag
+97 Control cycle counter*5
When control is to be started from the initial status, the data must be cleared with the sequence program.
*4 The set value (E2) becomes valid when the set value pattern (SVPTN) is set to "E2 is used".
When using the MV of the upper loop as the set value (E2), specify the device where the manipulated value (MV) of the upper
loop is set (offset + 12: MV).
When not using E2 as the set value, make sure to specify a dummy device.
(Special register SD1506 can be specified as a dummy device.)
*5 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.
183
S.ONF3
(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.
3) The operation mode (MODE) is any of MAN, AUT, CMV, CMB, CAB, LCM, LCA and LCC.
E2 = SVn'
(c) When the set value (E2) is the manipulated value (MV) of the upper loop, the tracking flag (TRKF) of the alarm
detection inhibition (INH) in the upper loop turns to 1.
(3) MV compensation
After the deviation (DV) is calculated from the input value (E1) and the set value after tracking processing (SVn'), the MV
compensation value (MV') is calculated.
(a) Calculation of deviation (DV)
The deviation (DV) is calculated under the following condition.
Condition DV
Forward operation (PN = 1) E1 - SVn'
Reverse operation (PN = 0) SVn' - E1
(4) MV output
The manipulated value (MV(BW)) is calculated under the following condition.
Condition BW
CMV, MAN, CMB, LCM BW = MVn
BW = MV'
CSV, CCB, CAB, CAS, AUT, LCC, LCA
MVn = BW
184
S.ONF3
BW 75%
Condition BB1
1
BB2
0
9
25% BW < 75% 0 0
BW < 25% 0 1
9.21 S.ONF3
When the values of S1 , D2 are either a non-numeric or non-
––
4100 normalized number
When CT < 0 or the execution cycle (SD1500) < 0
When (HS1 + HS0) < 0
When HS1 < 0
185
S.DBND
9.22 S.DBND
Ladder diagram
Start contact
S.DBND S.DBND S1 D1 S2 D2
S_DBND
EN ENO
ENO:=S_DBND(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
Provides a dead band and performs output processing.
Output
D1 D2
(BW) 2
D1
D1: Dead band upper limit
D2 D2: Dead band lower limit
Input E1
D2 D1
BB1 1
0
186
S.DBND
Set Data
9
(1) Data specified in S.DBND instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
Input S1 +0 Real 2
E1 Input value -999999 to 999999 % –– U
data +1 number
D1 +0 Real
+1
BW Output value (-999999 to 999999) %
number
–– S
3
BB ––
Block b15 b12 b8 b4 b0
memory
+2 Dead band
B
B
1 BIN
4
BB1 –– –– S
action 16bit
(0: Outside the dead band range)
(1: Within the dead band range)
4
S2 +0 Dead band Real
D1 -999999 to 999999 –– 100.0 U
Operation +1 upper limit number
constant +2 Dead band Real
+3
D2
lower limit
-999999 to 999999 ––
number
0 U 6
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
7
Set Data contents
Processing
(1) The S.DBND instruction performs the following processing. 8
Condition BW BB1
D2 D1
D2 E1 D1 1
2
(E1 < D2) or (E1 > D1) E1 0
9.22 S.DBND
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
187
S.PGS
9.23 S.PGS
Ladder diagram
Start contact
S.PGS S.PGS S1 D1 S2 D2
S_PGS
EN ENO
ENO:=S_PGS(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
Provides a control output according to the SV and MV pattern.
As the output types of the S.PGS instruction, there are three types of the "hold type", "return type" and "cyclic type".
• Hold type : Output is provided with the SV10 value held.
• Return type : The set value (SV) is set to 0 and the last value is output as the manipulated value (MV).
• Cyclic type : After SV1 to SV10 have been processed, processing is restarted from SV1 and the output is provided.
MVPGS
MV5, MV6
MV3, MV4
MV7, MV8
MV1, MV2
MV9, MV10
SV
SV1 SV2 SV3 SV4 SV5 SV6 SV7 SV8 SV9 SV10
188
S.PGS
Set Data
Block diagram
9
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.)
BB1
4
OR
PTNO.
RUN(SPA 0) BB2
6
(2) BB3
Loop stop
7
judgment STOP(SPA 1)
8
SPA
MHA
9.23 S.PGS
MLA
MODE (2)
Last BW
All OFF Loop stop
processing All OFF
MAN
189
S.PGS
Set Data
(1) Data specified in S.PGS instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
D1 +0
BW Output value (-999999 to 999999) % Real number –– S
+1
BB ––
0 to FFFFH
b15 b12 b8 b4 b0
S M M
P H L
Alarm A A A
BIN
+3 ALM –– 4000H S/U
detection 16bit
SPA MHA, MLA
0: Loop RUN (0: Without alarm)
1: Loop STOP (1: With alarm)
0 to FFFFH
b15 b12 b8 b4 b0
Alarm E M M
R H L BIN
Loop tag +4 INH detection R I I –– 4000H S/U
I 16bit
inhibition
memory *2
0: Alarm enable
1: Alarm inhibit
Number of
operation BIN
+10 PTNO 0 to 16 –– 0 U
constant 16bit
polygon points
+12 Manipulated Real
MV -10 to 110 % 0.0 S/U
+13 value number
+14 Real
SV Set value 0 to 999999 s 0.0 S/U
+15 number
0: Hold type operation
Operation (When operation mode is AUT or CAB) BIN
+16 TYPE –– 0 U
type 1: Return type operation 16bit
(When operation mode is AUT or CAB)
+18 Output upper Real
MH -10 to 110 % 100.0 U
+19 limit value number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
190
S.PGS
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
+20 Output lower Real 9
ML -10 to 110 % 0.0 U
+21 limit value number
+22
SV1 Setting time 1
+23
Real 2
0 to 999999 s 0.0 U
number
Loop tag +52 Setting time
SV16
memory *2 +53
+54
16
Setting output
3
MV1
+55 1
Real
-10 to 110 % 0.0 U
+84 Setting output
number
4
MV16
+85 16
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data. 4
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
(2) Execution cycle ( T)
Set the execution cycle in SD1500 and SD1501 as real numbers.
6
9.23 S.PGS
CAS, CCB, CSV –– Cyclic type operation
191
S.PGS
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
192
S. SEL
9.24 S. SEL
9
Ladder diagram
Start contact 2
S.SEL S.SEL S1 D1 S2 D2 S3
EN ENO
ENO:=S_SEL(EN,s1,s2,d1,d2);
s1
s2
d1
d2
4
s3
9.24 S. SEL
S3 –– ––
Function
Provides an output in the specified mode (automatic mode/manual mode).
• In the automatic mode, the input value 1 (E1) or input value 2 (E2) selected by the selection signal (e1) is output.
• In the manual mode, the manipulated value (MV) is output.
193
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 INH MV TRK
e1
E1
Engineering E1/E2 Change rate,
Alarm output
value selection Mode check upper/lower
E2 processing
conversion processing limiter
MAN or like
Loop STOP(SPA 1)
stop All OFF BB1
judgment
OR
SPA
MHA
BB2
BB3
MLA
BB4
DMLA
(7)
194
S. SEL
Set Data
9
(1) Data specified in S. SEL instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
Input data S1 +0 Real 2
E1 Input value 1 -999999 to 999999 % –– U
1 +1 number
D1 +0 Real
+1
BW Output value (-999999 to 999999) ––
number
–– S
3
BB ––
BB1 Alarm
Block b15 b12 b8 b4 b0 4
Output upper B B B B
memory BB2 B B B B
+2 limit alarm 4 3 2 1
–– BIN 16bit –– S
BB3
Output lower
limit alarm
(0: Without alarm) 4
(1: With alarm)
Output change
BB4
rate alarm
Output
Real
6
S2 +0
NMAX conversion -999999 to 999999 –– 100.0 U
+1 number
upper limit
+2
NMIN
Output
conversion -999999 to 999999 ––
Real
0.0 U
7
+3 number
lower limit
0: Without tracking
+4 TRK Tracking bit
1: With tracking
–– BIN 16it 0 U
8
b15 b0
9.24 S. SEL
Operation
constant *2
Input value selection
0: E1
1: E2
Set value Input value 1 (E1) used *3
+5 SVPTN –– BIN 16bit 1EH U
pattern 0: Used
1: Not used
*4
Input value 2 (E2) used
0: Used
1: Not used
Input value 1 (E1) pattern *5
0: E1 is upper loop MV
1: E1 is not upper loop MV
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 Select E1 or E2 for the input value.
*3 Specify whether the input value 1 (E1) is to be used or not.
*4 Specify whether the input value 2 (E2) is to be used or not.
*5 Specify whether the MV of the upper loop is to be used or not as the input value 1 (E1).
*6 Specify whether the MV of the upper loop is to be used or not as the input value 2 (E2).
195
S. SEL
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
0 to FFFFH
Operation b15 b12 b8 b4 b0
D2 +1 MODE C C C C C C A M L L L –– BIN 16bit 8H S/U
mode S M C A M A U A C C C
V V B B B S T N C A M
0 to FFFFH
b15 b12 b8 b4 b0
S D M M
P M H L
Alarm A L A A
BIN
+3 ALM A –– 4000H S/U
detection 16bit
SPA DMLA, MHA, MLA
0: Loop RUN (0: Without alarm)
1: Loop STOP (1: With alarm)
0 to FFFFH
b15 b12 b8 b4 b0
Alarm E D M M
R M H L BIN
+4 INH detection R L I I –– 4000H S/U
I I 16bit
inhibition
0: Alarm enable
1: Alarm inhibit
+10 Selection Real
PV RL to RH –– 0.0 S
+11 value number
+12 Manipulated Real
MV -10 to 110 % 0.0 S/U
+13 value number
+14 Process value Real
Loop tag PV1 RL to RH –– 0.0 S
+15 1 number
memory *2
+16 Process value Real
PV2 RL to RH –– 0.0 S
+17 2 number
+18 Output upper Real
MH -10 to 110 % 100.0 U
+19 limit value number
+20 Output lower Real
ML -10 to 110 % 0.0 U
+21 limit value number
Engineering
+22 Real
RH value upper -999999 to 999999 –– 100.0 U
+23 number
limit
Engineering
+24 Real
RL value lower -999999 to 999999 –– 0.0 U
+25 number
limit
b15 b0
BIN
+26 SLNO Selection No. Input value 1 (E1) –– 0 S
16bit
0: Not selected
1: Selected
Input value 2 (E2)
0: Not selected
1: Selected
+48 Output change Real
DML 0 to 100 % 100.0 U
+49 rate limit value number
Input data S3 +0 Real
E2 Input value 2 -999999 to 999999 % 0.0 U
2 +1 number
*1 The data of the item where the recommended range values are indicated within the parentheses is stored by the system. The
user cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
196
S. SEL
PVn
RH RL
100
En RL 2
(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 3
pattern (SVPTN).
• e1 = 0: Input value 1 (E1) is used PV = PV1
• e1 = 1: Input value 2 (E2) is used PV = PV2 4
SLN0: The bit corresponding to the input value 1 (E1) or input value 2 (E2) is turned to 1.
(3) Mode check
The following processing is performed depending on the operation mode (MODE) setting. 4
(a) When the operation mode (MODE) is any of MAN, CMB, CMV and LCM
1) "(5) Output conversion processing" is performed.
2) MHA, MLA and DMLA of the alarm detection (ALM) are turned to 0. 6
3) BB1 to BB4 of BB are turned to 0.
(b) When the operation mode (MODE) is any of AUT, CAB, CAS, CCB, CSV, LCA and LCC
1) Engineering value reverse conversion is performed with the following expression.
7
100
T= (PV-RL)
RH-RL
9.24 S. SEL
Condition T' BB4, DMLA
|T - MVn| DML T' = T 0
(T - MVn) > DML T' = MVn + DML 1 *1
(T - MVn) < - DML T' = MVn - DML 1 *1
*1 When DMLI or ERRI in the alarm detection inhibition (INH) is set to 1, DMLA and BB4 show 0 since the alarm is inhibited.
(b) Upper/lower limiter
Condition MV BB2, MHA BB3, MLA
T' > MH MVn = MH 1 *2 0
T' < ML MVn = ML 0 1 *3
ML T' MH MVn = T' 0 0
*2 When MHI or ERRI in the alarm detection inhibition (INH) is set to 1, MHA and BB2 show 0 since the alarm is inhibited.
*3 When MLI or ERRI in the alarm detection inhibition (INH) is set to 1, MLA and BB3 show 0 since the alarm is inhibited.
197
S. SEL
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
198
S.BUMP
9.25 S.BUMP
9
Ladder diagram
Start contact 2
S.BUMP S.BUMP S1 D1 S2 D2
EN ENO
ENO:=S_BUMP(EN,s1,s2,d1,d2);
s1 d1 4
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
9.25 S.BUMP
Function
Brings the output value (BW) closer to the output set value (E1) from the output control value (E2) at the fixed rate when the
operation mode is switched from the manual mode to the automatic mode.
Brings the output value (BW) closer to the output set value (E1) with a primary delay when the output value (BW) falls within
the range specified as the delay zone (a) relative to the output set value (E1).
199
S.BUMP
Set Data
(1) Data specified in S. BUMP instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0 Output set Real
E1 -999999 to 999999 % –– U
+1 value number
+2 Output control Real
E2 -999999 to 999999 % –– U
Input data +3 value number
Mode
0: Manual mode BIN
+4 e1 switching –– –– U
1: Automatic mode 16Bit
signal
Block D1 +0 Real
BW Output value (-999999 to 999999) % –– S
memory +1 number
S2 +0 Real
T Delay time 0 to 999999 s 1.0 U
Operation +1 number
constant +2 Real
a Delay zone 0 to 999999 % 1.0 U
+3 number
Initial
D2 +0
Xq deviation
Local work +1 Real
value Used by the system as a work area. –– 1.0 S
memory *2 number
+2
Xp Deviation
+3
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
(2) Execution cycle ( T)
Set the execution cycle in SD1500 and SD1501 as real numbers.
Xp T T
Xp Xp' Xq Xp Xp'
T T T
BW = E1 + Xp
BW = E1 + Xp
T |Xq| On the assumption that |Xp| 10-4
On the assumption that |Xp|
BW T
• BW = E1
• BW = E1
• Xp = Xp'
• Xp = Xp'
200
S.BUMP
Operation Error
9
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
4140
When the values of S1 , S2 , D2 are either a non-numeric or
–– ––
3
non-normalized number
4141 When an operation error occurs –– ––
9.25 S.BUMP
201
S.AMR
9.26 S.AMR
Ladder diagram
Start contact
S.AMR S.AMR S1 D1 S2 D2
S_AMR
EN ENO
ENO:=S_AMR(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
Increases or decreases the output value at the fixed rate.
d1
1s
E1 E2
E3 1s
d2
t
0 1 0
e1
e2 1 e3 1
202
S.AMR
Set Data
9
(1) Data specified in S.AMR instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0 Output Real 2
E1 -999999 to 999999 –– –– U
+1 addition value number
Output
+2 Real
+3
E2 subtraction -999999 to 999999 ––
number
–– U 3
value
+4 Output set Real
E3 -999999 to 999999 –– –– U
Input +5 value number
data Operation
4
e1 b15 b12 b8 b4 b0
select signal
e e e
Output 3 2 1
+6
e2
addition signal ––
BIN
16Bit
–– U 4
Output e1 e2 e3
0: Manual mode 0: Not added 0: Not subtracted
e3 subtraction 1: Automatic mode 1: Added 1: Subtracted
Block D1 +0
signal
Real
6
BW Output value (-999999 to 999999) –– –– S
memory +1 number
+0 Output upper Real
7
S2
d1 0 to 999999 –– 1.0 U
Operation +1 limit value number
constant +2 Output lower Real
d2 0 to 999999 –– 1.0 U
+3 limit value number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the 8
system. Users cannot set the data.
(2) Execution cycle ( T)
Set the execution cycle in SD1500 and SD1501 as real numbers.
9.26 S.AMR
Set Data contents
Processing
(1) Either of the following processings is performed depending on the settings of the operation select signal (e1), output
addition signal (e2) and output subtraction signal (e3).
(a) In the manual mode (e1 = 0), BW = E3.
(b) In the automatic mode (e1 = 1), any of the operations in the following table is performed depending on the settings
of the output addition signal (e2) and output subtraction signal (e3).
e2 e3 BW
BW = BW + |E1| × T
1 0
On the assumption that d1 BW: BW = d1
BW = BW - |E2| × T
0 1
On the assumption that BW d2: BW = d2
1 1
BW = BW
0 0
203
S.AMR
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
204
S.FG
10
10.1 S.FG
Ladder diagram 3
Start contact
S.FG S.FG S1 D1 S2 D2
4
Structured ladder/FBD Structured text language
S_FG
EN ENO
ENO:=S_FG(EN,s1,s2,d1,d2);
s1 d1
s2 d2 6
Input argument EN : Execution condition : Bit
S1 : Input data start device : Real data type 7
S2 : Operation constant start device : Any 16-bit data
Output argument ENO : Execution result : Bit
D1
D2
: Block memory start device
: Local work memory start device
: Real data type
: Array of real data type (0..95)
8
10.1 S.FG
S1 –– ––
D1 –– ––
S2 –– ––
D2 –– ––
Function
In response to the input value (E1), outputs the value following the function generator pattern that consists of n pieces of
polygon points specified as the operation constants.
Y
(X1,Y1)
(X4,Y4)
X
Input (E1)
205
S.FG
Set Data
(1) Data specified in S.FG instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0
Input data E1 Input value -999999 to 999999 –– Real number –– U
+1
Block D1 +0
BW Output value (-999999 to 999999) –– Real number –– S
memory +1
Operation Number of BIN
S2 +0 SN 0 to 48 –– 0 U
constant polygon points 16Bit
D2 +0 Polygon point
X1
+1 coordinates
+2 Polygon point
Y1
+3 coordinates
+4 Polygon point
X2
Local +5 coordinates
work +6 Polygon point -999999 to 999999 –– Real number –– U
Y2
memory +7 coordinates
Xn < E1 BW = Yn
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
206
S.IFG
10.2 S.IFG
1
Ladder diagram
Start contact 10
S.IFG S.IFG S1 D1 S2 D2
EN ENO
ENO:=S_IFG(EN,s1,s2,d1,d2);
s1 d1 4
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
10.2 S.IFG
Function
In response to the input value (E1), outputs the value following the inverse function generator pattern that consists of n pieces
of polygon points specified as the operation constants.
(X4,Y4)
(X3,Y3)
X
Output (BW)
207
S.IFG
Set Data
(1) Data specified in S.IFG instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0
Input data E1 Input value -999999 to 999999 –– Real number –– U
+1
Block D1 +0
BW Output value (-999999 to 999999) –– Real number –– S
memory +1
Operation Number of BIN
S2 +0 SN 0 to 48 –– 0 U
constant polygon points 16Bit
D2 +0 Polygon point
X1
+1 coordinates
+2 Polygon point
Y1
+3 coordinates
+4 Polygon point
X2
Local +5 coordinates
work +6 Polygon point -999999 to 999999 –– Real number –– U
Y2
memory +7 coordinates
Yn < E1 BW=Xn
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
208
S.FLT
10.3 S.FLT
1
Ladder diagram
Start contact 10
S.FLT S.FLT S1 D1 S2 D2
EN ENO
ENO:=S_FLT(EN,s1,s2,d1,d2);
s1 d1 4
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
10.3 S.FLT
Function
Stores SN pieces of input values (E1) sampled at the data collection intervals (ST) into the dead time table, and outputs the
average of those SN pieces of data.
209
S.FLT
Set Data
(1) Data specified in S.FLT instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0 Real
Input data E1 Input value -999999 to 999999 –– –– U
+1 number
D1 +0 Real
BW Output value (-999999 to 999999) –– –– S
+1 number
BB ––
Block b15 b12 b8 b4 b0
B
memory B
+2 Data 1 BIN
BB1 –– –– S
sufficiency bit 16Bit
(0: Data sufficiency)
(1: Data insufficiency)
Data
S2 +0 Real
ST collection 0 to 999999 s 1.0 U
Operation +1 number
interval
constant
Sampling BIN
+2 SN 0 to 48 –– 0 U
count 16Bit
Last data
D2 +0 Real
ST' collection –– –– S
+1 number
interval
Last sampling BIN
+2 SN' –– –– S
count 16Bit
Cycle Used by the system as a work area. BIN
+3 i –– –– S
counter*3 16Bit
Number of BIN
+4 n1 –– –– S
stored data 16Bit
Local
BIN
work +5 n2 Store –– –– S
16Bit
memory *2
+6
–– –– –– –– –– –– ––
+7
+8 Dead time
1
+9 table 1
+10 Dead time
2 Real
+11 table 2 Used by the system as a work area. –– –– S
number
210
S.FLT
3
• Until the dead time table is filled with data, the average of the data provided until then is output.
• Processed using ST = n × T. (n is an integral)
4
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
10.3 S.FLT
211
S.SUM
10.4 S.SUM
Ladder diagram
Start contact
S.SUM S.SUM S1 D1 S2 D2
S_SUM
EN ENO
ENO:=S_SUM(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
Integrates and outputs the input value (E1) when the integration start signal (e1) turns from 0 to 1.
212
S.SUM
Set Data
1
(1) Data specified in S.SUM instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0 Real 10
E1 Input value -999999 to 999999 –– –– U
+1 number
e ––
b15 b12 b8 b4 b0 3
Input data e
1
+2 Integration BIN
e1 –– –– U
start signal 16Bit
0: Integration not executed 4
1: Integration executed
Block D1 +0 Real
BW Output value (-999999 to 999999) –– –– S
memory +1 number
S2 +0 Input Real
ILC -999999 to 999999 –– 0.0 U
+1 low cut value number
+2 Real
Operation
+3
A Initial value -999999 to 999999 ––
number
0.0 U 6
constant
1: /Second
BIN
+4 RANGE Input range 2: /Minute –– 1 U
16Bit
3: /Hour 7
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
(2) Execution cycle ( T) 8
Set the execution cycle in SD1500 and SD1501 as real numbers.
10.4 S.SUM
(1) The S.SUM instruction performs the following processing.
e1 E1 Output (BW)
The initial value (A) of the operation
0 ––
constant is output.
E1 ILC The last value is output unchanged.
1 T
E1 > ILC BW E1 Last value
T
(2) The T value used for the operation changes depending on the input range (RANGE) setting.
• When RANGE = 1, T = 1
• When RANGE = 2, T = 60
• When RANGE = 3, T = 3600
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
213
S.TPC
10.5 S.TPC
Ladder diagram
Start contact
S.TPC S.TPC S1 D1 S2 D2
S_TPC
EN ENO
ENO:=S_TPC(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
The input value (E1) is subject to temperature/pressure correction (temperature or pressure) and output.
214
S.TPC
Set Data
1
(1) Data specified in S.TPC instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0 Differential Real 10
E1 -999999 to 999999 –– –– U
+1 pressure number
+2 Measurement Real
E2 -999999 to 999999 –– –– U
+3 temperature number 3
+4 Measured Real
E3 -999999 to 999999 –– –– U
+5 pressure number
Input data e ––
4
b15 b12 b8 b4 b0
e1 E2 use flag e e
2 1
+6 BIN
–– –– U
16Bit
e2 E3 use flag 0: Unused
1: Used
Block
memory
D1 +0
+1
BW Output value (-999999 to 999999) ––
Real
number
–– S 6
Design
S2 +0 temperatureT' Real
+1
TEMP
(Engineering
-999999 to 999999 °C
number
0.0 U
7
value)
+2 Bias Real
B1 -999999 to 999999 °C 273.15 U
Operation
constant
+3 (Temperature)
Design
number
8
+4 pressureP' Real
PRES -999999 to 999999 –– 0.0 U
+5 (Engineering number
value)
+6 Bias Real
10332.0 U
10.5 S.TPC
B2 -999999 to 999999 ––
+7 (Pressure) number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
(2) A1 and A2 use the values calculated with the following expressions.
Input
A1 A2
E2 E3
T' B1 E3 B2
Used Used
E2 B1 P' B2
E3 B2
Not used Used 1.0
P' B2
T' B1
Used Not used 1.0
E2 B1
215
S.TPC
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
216
S.ENG
10.6 S.ENG
1
Ladder diagram
Start contact 10
S.ENG S.ENG S1 D1 S2 D2
EN ENO
ENO:=S_ENG(EN,s1,s2,d1,d2);
s1 d1 4
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
10.6 S.ENG
Function
The input value (E1) is output by the engineering conversion.
Input Value (E1) Output Value (BW)
[ ]
100 4
80 3
ENG
20 0
0
4 1 1
t (RH) (RL) t
217
S.ENG
Set Data
(1) Data specified in S.ENG instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0 Real
Input data E1 Input value -999999 to 999999 % –– U
+1 number
Block D1 +0 Real
BW Output value (-999999 to 999999) –– –– S
memory +1 number
Engineering
S2 +0 Real
RH value upper -999999 to 999999 –– 100.0 U
+1 number
Operation limit
constant Engineering
+2 Real
RL value lower -999999 to 999999 –– 0.0 U
+3 number
limit
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
Operation Error
In the following cases, the error flag (SM) turns ON and the error code is stored in SD0.
218
S.IENG
10.7 S.IENG
1
Ladder diagram
Start contact 10
S.IENG S.IENG S1 D1 S2 D2
EN ENO
ENO:=S_IENG(EN,s1,s2,d1,d2);
s1 d1 4
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
10.7 S.IENG
Function
The input value (E1) is converted to % value and output.
Input Value (E1) Output Value (BW)
[m3/h] [ ]
20 100
16 80
IENG
5 25
20 0
0 0
t (RH) (RL) t
219
S.IENG
Set Data
(1) Data specified in S.IENG instruction
Specified Data Standard Set
Symbol Name Recommended range *1 Unit
Position format value by
S1 +0 Real
Input data E1 Input value -999999 to 999999 –– –– U
+1 number
Block D1 +0 Real
BW Output value (-999999 to 999999) % –– S
memory +1 number
Engineering
S2 +0 Real
RH value upper -999999 to 999999 –– 100.0 U
+1 number
Operation limit
constant Engineering
+2 Real
RL value lower -999999 to 999999 –– 0.0 U
+3 number
limit
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
220
S.ADD
2
11.1 S.ADD
Ladder diagram 11
Start contact
S.ADD S.ADD S1 D1 S2 D2
S_ADD
EN ENO
ENO:=S_ADD(EN,s1,s2,d1,d2);
s1 d1
s2 d2 6
Input argument EN : Execution condition : Bit
S1 : Input data start device : Array of any 16-bit data (0..10) 7
S2 : Operation constant start device : Array of any 16-bit data (0..12)
Output argument ENO : Execution result : Bit
D1
D2
: Block memory start device
: Dummy device*1
: Real data type
: Real data type
8
11.1 S.ADD
S1 –– ––
D1 –– ––
S2 –– ––
D2 –– ––
Function
The input value (El to En) data is added by attaching a coefficient.
221
S.ADD
Set Data
(1) Data specified in S.ADD instruction
Specification Data Standard Set
Symbol Name Recommended range*1 Unit
position format value by
BIN
S1 +0 n Input count 0 to 5 –– –– U
16Bit
+1
E1 Input value 1
+2
Input data +3
E2 Input value 2 Real
+4 -999999 to 999999 –– –– U
number
+2n-1
En Input value n
+2n
Block D1 +0 Real
BW Output value (-999999 to 999999) –– –– S
memory +1 number
Number of BIN
S2 +0 n 0 to 5 –– 0 U
coefficients 16Bit
+1
K1 Coefficient 1
+2
+3
Operation K2 Coefficient 2 Real
+4 -999999 to 999999 –– 1.0 U
constant number
+2n-1
Kn Coefficient n
+2n
+2n+1 Real
B Bias -999999 to 999999 –– 0.0 U
+2n+2 number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
222
S.SUB
11.2 S.SUB
1
Ladder diagram
Start contact 2
S.SUB S.SUB S1 D1 S2 D2
EN ENO
ENO:=S_SUB(EN,s1,s2,d1,d2);
s1 d1
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
11.2 S.SUB
Function
The input value (E1 to En) data is subtracted by attaching a coefficient.
223
S.SUB
Set Data
(1) Data specified in S.SUB instruction
Specification Data Standard Set
Symbol Name Recommended range*1 Unit
position format value by
BIN
S1 +0 n Input count 0 to 5 –– –– U
16Bit
+1
E1 Input value 1
+2
Input data +3
E2 Input value 2 Real
+4 -999999 to 999999 –– –– U
number
+2n-1
En Input value n
+2n
Block D1 +0 Real
BW Output value (-999999 to 999999) –– –– S
memory +1 number
Number of BIN
S2 +0 n 0 to 5 –– 0 U
coefficients 16Bit
+1
K1 Coefficient 1
+2
+3
Operation K2 Coefficient 2 Real
+4 -999999 to 999999 –– 1.0 U
constant number
+2n-1
Kn Coefficient n
+2n
+2n+1 Real
B Bias -999999 to 999999 –– 0.0 U
+2n+2 number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
224
S.MUL
11.3 S.MUL
1
Ladder diagram
Start contact 2
S.MUL S.MUL S1 D1 S2 D2
EN ENO
ENO:=S_MUL(EN,s1,s2,d1,d2);
s1 d1
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
11.3 S.MUL
Function
The input value (E1 to En) data is multiplied by attaching a coefficient.
225
S.MUL
Set Data
(1) Data specified in S.MUL instruction
Specification Data Standard Set
Symbol Name Recommended range*1 Unit
position format value by
BIN
S1 +0 n Input count 0 to 5 –– –– U
16Bit
+1
E1 Input value 1
+2
Input data +3
E2 Input value 2 Real
+4 -999999 to 999999 –– –– U
number
+2n-1
En Input value n
+2n
Block D1 +0 Real
BW Output value (-999999 to 999999) –– –– S
memory +1 number
Number of BIN
S2 +0 n 0 to 5 –– 0 U
coefficients 16Bit
+1
K1 Coefficient 1
+2
+3
Operation K2 Coefficient 2 Real
+4 -999999 to 999999 –– 1.0 U
constant number
+2n-1
Kn Coefficient n
+2n
+2n+1 Real
B Bias -999999 to 999999 –– 0.0 U
+2n+2 number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
226
S.DIV
11.4 S.DIV
1
Ladder diagram
Start contact 2
S.DIV S.DIV S1 D1 S2 D2
EN ENO
ENO:=S_DIV(EN,s1,s2,d1,d2);
s1 d1
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
11.4 S.DIV
Function
Divides the input value 1 (E1) by the input value 2 (E2).
227
S.DIV
Set Data
(1) Data specified in S.DIV instruction
Specification Data Standard Set
Symbol Name Recommended range*1 Unit
position format value by
S1 +0 Input value 1 Real
E1 -999999 to 999999 –– –– U
+1 (Minute) number
Input data
+2 Input value 2 Real
E2 -999999 to 999999 –– –– U
+3 (Denominator) number
Block D1 +0 Real
BW Output value (-999999 to 999999) –– –– S
memory +1 number
S2 +0 Real
A Coefficient 1 -999999 to 999999 –– 1.0 U
+1 number
+2 Real
K1 Coefficient 2 -999999 to 999999 –– 1.0 U
+3 number
+4 Real
K2 Coefficient 3 -999999 to 999999 –– 1.0 U
Operation +5 number
constant +6 Real
B1 Bias 1 -999999 to 999999 –– 0.0 U
+7 number
+8 Real
B2 Bias 2 -999999 to 999999 –– 0.0 U
+9 number
+10 Real
B3 Bias 3 -999999 to 999999 –– 0.0 U
+11 number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
228
S.SQR
11.5 S.SQR
1
Ladder diagram
Start contact 2
S.SQR S.SQR S1 D1 S2 D2
EN ENO
ENO:=S_SQR(EN,s1,s2,d1,d2);
s1 d1
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
11.5 S.SQR
Function
The of input value (El) is output.
When the input value is negative, 0 is output.
229
S.SQR
Set Data
(1) Data specified in S.SQR instruction
Specification Data Standard Set
Symbol Name Recommended range*1 Unit
position format value by
S1 +0 Real
Input data E1 Input value 0 to 999999 –– –– U
+1 number
Block D1 +0 Real
BW Output value (0 to 999999) –– –– S
memory +1 number
S2 +0 Output low cut Real
OLC 0 to 999999 –– 0.0 U
Operation +1 value number
constant +2 Real
K Coefficient 0 to 999999 –– 10.0 U
+3 number
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
230
S.ABS
11.6 S.ABS
1
Ladder diagram
Start contact 2
S.ABS S.ABS S1 D1 S2 D2
EN ENO
ENO:=S_ABS(EN,s1,s2,d1,d2);
s1 d1
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
11.6 S.ABS
Function
The input value (E1) absolute value is output.
Input (E1) Output (BW)
0 ABS 0
t t
BB1
BB2
231
S.ABS
Set Data
(1) Data specified in S.ABS instruction
Specification Data Standard
Symbol Name Recommended range*1 Unit Set by
position format value
Input S1 +0 Real
E1 Input value -999999 to 999999 –– –– U
data +1 number
D1 +0 Real
BW Output value (0 to 999999) –– –– S
+1 number
BB ––
b15 b12 b8 b4 b0
Block B B
BB1
memory B B
Judgment of 2 1
+2 BIN
input value –– –– S
16Bit
(E1) sign When E1 0: BB1 1
BB2 When E1 0: BB2 1
When E1 0: BB1 BB2 0
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
232
S. >
2
12.1 S. >
Ladder diagram 3
StartContact
S.> S.> S1 D1 S2 D2
12
Structured ladder/FBD Structured text language
S_GT
EN ENO
ENO:=S_GT(EN,s1,s2,d1,d2);
s1 d1
s2 d2 6
Input argument EN : Execution condition : Bit
S1 : Input data start device : Array of real data type (0..1) 7
S2 : Operation constant start device : Array of real data type (0..1)
Output argument ENO : Execution result : Bit
D1
D2
: Block memory start device
: Dummy device*1
: Array of any 16-bit data (0..2)
: Real data type
8
12.1 S. >
S1 –– ––
D1 –– ––
S2 –– ––
D2 –– ––
Function
Compares the input value 1 (E1) and input value 2 (E2) and outputs the result of comparison.
233
S. >
Set Data
(1) Data specified in S. > instruction
Specified Standard Set
Symbol Name Recommended range *1 Unit Data format
position value by
S1 +0
E1 Input value 1 -999999 to 999999 –– Real number –– U
Input +1
data +2
E2 Input value 2 -999999 to 999999 –– Real number –– U
+3
D1 +0 (The same value as the input value 1 (E1) is
BW Output value –– Real number –– S
+1 stored)
BB ––
Block b15 b12 b8 b4 b0
B
memory B
+2 Comparison 1
BIN
BB1 –– –– S
output 16Bit
(The result of comparison between E1 and
E2 is stored.)
S2 +0
K Set value -999999 to 999999 –– Real number 0.0 U
Operation +1
constant +2
HS Hysteresis 0 to 999999 –– Real number 0.0 U
+3
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
234
S. <
12.2 S. <
1
Ladder diagram
StartContact 2
S.< S.< S1 D1 S2 D2
EN ENO
ENO:=S_LT(EN,s1,s2,d1,d2);
s1 d1 12
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
12.2 S. <
Function
Compares the input value 1 (E1) and input value 2 (E2) and outputs the result of comparison.
235
S. <
Set Data
(1) Data specified in S. < instruction
Specified Standard Set
Symbol Name Recommended range *1 Unit Data format
position value by
S1 +0
E1 Input value 1 -999999 to 999999 –– Real number –– U
Input +1
data +2
E2 Input value 2 -999999 to 999999 –– Real number –– U
+3
D1 +0 (The same value as the input value 1 (E1) is
BW Output value –– Real number –– S
+1 stored)
BB ––
Block b15 b12 b8 b4 b0
B
memory B
+2 Comparison 1 BIN
BB1 –– –– S
output 16Bit
(The result of comparison between E1 and
E2 is stored.)
S2 +0
K Set value -999999 to 999999 –– Real number 0.0 U
Operation +1
constant +2
HS Hysteresis 0 to 999999 –– Real number 0.0 U
+3
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
236
S. =
12.3 S. =
1
Ladder diagram
StartContact 2
S.= S.= S1 D1 S2 D2
EN ENO
ENO:=S_EQ(EN,s1,s2,d1,d2);
s1 d1 12
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
12.3 S. =
Function
Compares the input value 1 (E1) and input value 2 (E2) and outputs the result of comparison.
237
S. =
Set Data
(1) Data specified in S. = instruction
Specified Standard Set
Symbol Name Recommended range *1 Unit Data format
position value by
S1 +0
E1 Input value 1 -999999 to 999999 –– Real number –– U
Input +1
data +2
E2 Input value 2 -999999 to 999999 –– Real number –– U
+3
D1 +0 (The same value as the input value 1 (E1) is
BW Output value –– Real number –– S
+1 stored)
BB ––
Block b15 b12 b8 b4 b0
B
memory B
+2 Comparison 1 BIN
BB1 –– –– S
output 16Bit
(The result of comparison between E1 and
E2 is stored.)
Operation S2 +0
K Set value -999999 to 999999 –– Real number 0.0 U
constant +1
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
238
S. >=
12.4 S. >=
1
Ladder diagram
Start contact 2
S.>= S.>= S1 D1 S2 D2
EN ENO
ENO:=S_GE(EN,s1,s2,d1,d2);
s1 d1 12
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
12.4 S. >=
Function
Compares the input value 1 (E1) and input value 2 (E2) and outputs the result of comparison.
239
S. >=
Set Data
(1) Data specified in S. >= instruction
Specification Standard Set
Symbol Name Recommended range *1 Unit Data format
position value by
S1 +0
E1 Input value 1 -999999 to 999999 –– Real number –– U
Input +1
data +2
E2 Input value 2 -999999 to 999999 –– Real number –– U
+3
D1 +0 (The same value as the input value 1 (E1) is
BW Output value –– Real number –– S
+1 stored)
BB ––
Block b15 b12 b8 b4 b0
B
memory B
+2 Comparison 1 BIN
BB1 –– –– S
output 16Bit
(The result of comparison between E1 and
E2 is stored.)
S2 +0
K Set value -999999 to 999999 –– Real number 0.0 U
Operation +1
constant +2
HS Hysteresis 0 to 999999 –– Real number 0.0 U
+3
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
240
S. <=
12.5 S. <=
1
Ladder diagram
Start contact 2
S.<= S.<= S1 D1 S2 D2
EN ENO
ENO:=S_LE(EN,s1,s2,d1,d2);
s1 d1 12
s2 d2
7
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
8
D1 –– ––
S2 –– ––
D2 –– ––
12.5 S. <=
Function
Compares the input value 1 (E1) and input value 2 (E2) and outputs the result of comparison.
241
S. <=
Set Data
(1) Data specified in S. <= instruction
Specification Standard Set
Symbol Name Recommended range *1 Unit Data format
position value by
S1 +0
E1 Input value 1 -999999 to 999999 –– Real number –– U
Input +1
data +2
E2 Input value 2 -999999 to 999999 –– Real number –– U
+3
D1 +0 (The same value as the input value 1 (E1) is
BW Output value –– Real number –– S
+1 stored)
BB ––
Block b15 b12 b8 b4 b0
B
memory B
+2 Comparison 1 BIN
BB1 –– –– S
output 16Bit
(The result of comparison between E1 and
E2 is stored.)
S2 +0
K Set value -999999 to 999999 –– Real number 0.0 U
Operation +1
constant +2
HS Hysteresis 0 to 999999 –– Real number 0.0 U
+3
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
242
CHAPTER 13 AUTO TUNING
1
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. 2
Example) Process with relatively slow response such as temperature adjustment
K
1+Ts e
-Ls
3
K: Gain, T: Time constant, L: Dead time, s: Laplace operator
Auto tuning can be used for the loop that uses the S. PID or S. 2PID instruction. 4
Auto tuning is performed in the ZN process: stepped response process of Ziegler and Nichols.
13
[Outline of stepped response process]
With no control operation being performed, change the manipulated value (MV) step by step and look how the process
value (PV) varies.
6
1) When the manipulated value (MV) is changed step by step, the process value (PV) begins to vary slowly.
Soon, the PV will vary faster, then vary slowly again, and finally settle at a fixed value.
2) Draw a tangent line at the place where the process value (PV) varies fastest, and find the points of intersection 7
A, B where this tangent line crosses the horizontal axis corresponding to the first process value ( 0) and last
process value ( 1).
This provides the equivalent dead time (L) and equivalent time constant (T) as shown below. 8
3) From the equivalent time constant (T) and maximum process value width (Y), calculate the maximum
slope (response speed) R = Y/T.
Apply the equivalent dead time (L) and maximum slope (R) to the Ziegler and Nichols' adjustment rule, and
calculate the proportional gain Kp (P), integral constant TI (I) and derivative constant TD (D).
Process value PV
( )
B
1
Maximum slope Y
R
(response speed) T
Maximum measurement width
Y
A
0
Time (s)
Equivalent dead Equivalent time
time L constant T
243
Auto tuning procedure
Start
Set the loop tag and operation constants necessary for auto tuning.
Change the operation mode (MODE) of the tuning target loop to Manual (MAN).
Disconnect the S.2PID/S.PID instruction of the tuning target loop and connect
the S.AT1 instruction to where the S.2PID/S.PID instruction was located.
Auto Tuning Completed (BB16) turns to Completed (1) at end of auto tuning.
Disconnect the S.AT1 instruction of the tuning target loop and connect
the S.2PID/S.PID instruction to where the S.AT1 instruction was located.
End
244
(1) Time chart from auto tuning start until normal completion
MV MV + AT1STEPMV MV
8
Manipulated value MV
245
S. AT1
13.1 S. AT1
Ladder diagram
Start contact
S.AT1 S.AT1 S1 D1 S2 D2 D3
S_AT1
EN ENO
ENO:=S_AT1(EN,s1,s2,d1,d2,d3);
s1 d1
s2 d2
d3
Function
Performs auto tuning and makes the initial setting of the PID constants.
246
S. AT1
Set Data
1
(1) Data specified in S. AT1 instruction
Specified Standard Set
Symbol Name Recommended range *1 Unit Data format
position value by
S1 +0
2
E1 Input value -999999 to 999999 % Real number –– U
+1
b15 b12 b8 b4 b0
Input data
Auto tuning
e
1
BIN
3
+2 e1 –– 0 U
start signal 16bit
0: Stop/end
1: Start 4
BB ––
BB1 Alarm
BB2
Input upper
limit alarm
13
Input lower
BB3
limit alarm
BB4
Output upper
b15 b12 b8 b4 b0
6
limit alarm B B B B B B B B B
B B B B B B B B B
Block Output lower 16 8 7 6 5 4 3 2 1
D1 +0 BB5 BIN
memory limit alarm
Out time BB16 BB1 to BB8
––
16bit
–– S
7
BB6 (0: Incomplete) (0: Without alarm)
alarm
(1: Complete) (1: With alarm)
Operation
BB7
mode alarm 8
Identification
BB8
alarm
Auto tuning
BB16
completion
13.1 S. AT1
Operation Operation 0: Reverse operation BIN
S2 +0 PN –– 0 U
constant mode 1: Forward operation 16bit
0 to FFFFH
Operation b15 b12 b8 b4 b0 BIN
D2 +1 MODE C C C C C C A M L L L –– 8H S/U
mode S M C A M A U A C C C 16bit
V V B B B S T N C A M
b15 b12 b8 b4 b0
S H L P P
P H L H L
A A A A A
Alarm BIN
Loop tag +3 ALM –– 4000H S/U
detection 16bit
memory SPA HHA, LLA, PHA, PLA
*2 0: Loop RUN (0: Without alarm)
1: Loop STOP (1: With alarm)
+12 Manipulated
MV -10 to 110 % Real number 0.0 S/U
+13 value
+18 Output upper
MH -10 to 110 % Real number 100.0 U
+19 limit value
+20 Output lower
ML -10 to 110 % Real number 0.0 U
+21 limit value
*1 The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 27, Section 3.3.1 for
details.)
247
S. AT1
248
S. AT1
13.1 S. AT1
2) The auto tuning completed (BB16) is turned to 1.
3) When the stepped manipulated value preset flag is 1, the following processing is performed.
MV = MV - AT1STEPMV
(b) When the operation mode (MODE) is any of MAN, CMB, CMV and LCM, "(4) Input check processing" is performed.
(4) Input check processing
Either of the following processings is performed depending on the alarm detection (ALM) setting.
(a) If either of PHA and HHA of the alarm detection (ALM) is 1, the following processing is performed and the S. AT1 is
terminated.
1) The input upper limit alarm (BB3) is turned to 1.
2) The auto tuning completed (BB16) is turned to 1.
(b) If either of PLA and LLA of the alarm detection (ALM) is 1, the following processing is performed and the S. AT1 is
terminated.
1) The input lower limit alarm (BB3) is turned to 1.
2) The auto tuning completed (BB16) is turned to 1.
(5) Time-out judgement processing
Whether the auto tuning processing has reached the AT1 time-out time (AT1TOUT1) or not is judged.
(a) If the AT1 time-out time (AT1TOUT1) is reached, the following processing is performed and the S. AT1 is
terminated.
1) The time-out alarm (BB6) is turned to 1.
2) The auto tuning completed (BB16) is turned to 1.
(b) If the AT1 time-out time (AT1TOUT1) is not reached, "(6) After maximum slope time-out judgment processing" is
performed.
249
S. AT1
250
S. AT1
13.1 S. AT1
1) The response speed for calculation (R') and response speed (R) are calculated with the following expression.
Maximum
slope value(%) |R'|
R' , R (/s)
AT1ST(s) 100
251
S. AT1
0.9 |AT1STEPMV|
PI 3.33 × L 0
R L 100
1.2 |AT1STEPMV|
PID 2×L 0.5 × L
R L 100
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
252
CHAPTER 14 ERROR CODES
1
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.
2
14.1 List of Error Codes
3
There is the following process control instruction error.
When the above error occurs, the following information is stored in SD1502 and SD1503.
14
• SD1502: Detailed error code that occurred in a process control instruction
• SD1503: Processing number of the instruction that an error occurred
7
Codes of errors that occur in process control instructions (The corresponding error code is stored in SD1502.)
Detailed error
8
Error code Error definition code stored in Cause Processing
SD1502
There is either a non-numeric or
1
non-normalized number.
253
Processing numbers of each instruction (The number is stored in SD1503.)
Processing No. 1 is stored if an error occurs in the instruction that is not indicated in the above table.
254
APPENDICES
1
1
5 CALL P0 Jumps to P0 label when SM402 is ON.
X1
8 SET SM1500 Sets last value hold processing.
10
X1
RST SM1500 Resets last value hold processing.
6
X2
12 SET SM1501 Sets output value hold processing.
A
X2
14 RST SM1501 Resets output value hold processing.
16
X0 K1
T0 Match with the time set for the execution cycle.
8
T0
21 PLS M0
M0
P1 SM400
32 FLT D0 R0 Converts D0 value into real number and stores it into R0.
S.IN R0 R100 R200 R1000 Sets each head device of S.IN instruction.
EMOV R100 R20 Transfers R100 value of S.IN instruction to R20 of S.PHPL.
S.PHPL R20 R120 R220 R1000 Sets each head device of S.PHPL instruction.
EMOV R120 R40 Transfers R120 value of S.PHPL instruction to R40 of S.PID.
S.PID R40 R140 R240 R1000 R300 Sets each head device of S.PID instruction.
EMOV R140 R60 Transfers R140 value of S.PID instruction to R60 of S.OUT1.
S.OUT1 R60 R160 R260 R1000 Sets each head device of S.OUT1 instruction.
255
81 RET End of subroutine program
P0 SM400
83 EMOV E0.1 SD1500 Sets execution cycle to 0.1s.
FMOV H0 R100 K100 Clears S.IN, S.PHPL. S.PID, S.OUT1 output values to 0.
MOV H1 R1000
MOV H8 R1001
MOV H0 R1003
MOV H0 R1004
EMOV E0 R1010
EMOV E0 R1012
EMOV E0 R1014
Default value setting of loop tag
EMOV E0 R1016
EMOV E0 R1020
EMOV E0 R1024
EMOV E0 R1028
256
SM400
151 EMOV E0 R1032
EMOV E0 R1036
2
EMOV E0.2 R1038
EMOV E0 R1040
3
EMOV E0 R1042
4
EMOV E100 R1044
EMOV E1 R1046
1
Default value setting of loop tag
EMOV E1 R1052
A
EMOV E0 R1058
EMOV E0 R1062
257
SM400
216 EMOV E100 R200
EMOV E0 R202
EMOV E0 R206
EMOV E0 R212
SM400
249 EMOV E8 R240
EMOV E2 R242
MOV H0 R245
MOV H3 R246
SM400
264 EMOV E100 R260
EMOV E0 R262
274 END
258
Appendix 2 Loop Tag Memory List
1
Appendix 2.1 PID control (SPID), 2-degree-of-freedom PID control
(S2PID), sample PI control (SSPI) 2
Data storage
Instruction used Offset Item Name Recommended range Unit SPID
S2PID
SSPI
3
+0 –– –– –– –– –– ––
1 MODE*1 Operation mode 0 to FFFFH –– S/U S/U
2 –– –– –– –– –– –– 4
3 ALM*1 Alarm detection 0 to FFFFH –– S/U S/U
4 INH*1 Alarm detection inhibition 0 to FFFFH –– S/U S/U
5
6
––
––
––
––
––
––
––
––
––
––
––
––
1
7 –– –– –– –– –– ––
8 –– –– –– –– –– ––
9 –– –– –– –– –– –– 6
10
S. PHPL PV Process value (RL to RH) –– S S
11
S. OUT1/S. DUTY
12
13
MV Manipulated value -10 to 110 % S/U S/U A
S. PID/S. 2PID/ 14
SV Set value RL to RH –– U U
S. SPI 15
S. PID/S. 2PID/ 16
DV Deviation (-110 to 110) % S S
8
S. SPI 17
18
S. OUT1/S. DUTY MH Output upper limit value -10 to 110 % U U
19
20
S. OUT1/S. DUTY ML Output lower limit value -10 to 110 % U U
Appendix 2.1PID control (SPID), 2-degree-of-freedom PID control (S2PID), sample PI control (SSPI)
Appendix 2Loop Tag Memory List
21
S. PHPL/S. PID/ 22 Engineering value upper
RH -999999 to 999999 –– U U
S. 2PID/S. SPI 23 limit
S. PHPL/S. PID/ 24 Engineering value lower
RL -999999 to 999999 –– U U
S. 2PID/S. SPI 25 limit
26 RL to RH
S. PHPL PH Upper limit alarm set value –– U U
27 PL < PH
28 RL to RH
S. PHPL PL Lower limit alarm value –– U U
29 PL < PH
30 Upper upper limit alarm RL to RH
S. PHPL HH –– U U
31 value PH HH
32 Lower lower limit alarm RL to RH
S. PHPL LL –– U U
33 value LL PL
34
–– –– –– –– –– ––
35
36
–– –– –– –– –– ––
37
38
S. IN Filter coefficient 0 to 1 –– U U
39
40 Upper/lower limit alarm
S. PHPL HS 0 to 999999 % U U
41 hysteresis
42 Change rate alarm check
S. PHPL CTIM 0 to 999999 s U U
43 time
44
S. PHPL DPL Change rate alarm value 0 to 100 % U U
45
S. PID/S. 2PID/ 46 Control cycle/Operation
CT/ST 0 to 999999 s U (Set CT) U (Set ST)
S. SPI 47 time
259
Data storage
Instruction used Offset Item Name Recommended range Unit SPID
SSPI
S2PID
48 Output change rate limit
S. OUT1/S.DUTY DML 0 to 100 % U U
49 value
S. PID/S. 2PID/ 50
DVL Deviation limit value 0 to 100 % U U
S. SPI 51
S. PID/S. 2PID/ 52
P Gain 0 to 999999 –– U U
S. SPI 53
S. PID/S. 2PID/
54
S. SPI/S. OUT1/ I*2 Integral constant 0 to 999999 s U U
55
S. DUTY
U
S. PID/S. 2PID/ 56 Derivative constant/ U
D/STHT 0 to 999999 s (STHT
S. SPI 57 Sample cycle (D Setting)
Setting)
S. PID/S. 2PID/ 58
GW Gap width 0 to 100 % U U
S. SPI 59
S. PID/S. 2PID/ 60
GG Gap gain 0 to 999999 –– U U
S. SPI 61
S. PID/S. 2PID/
62
S. SPI/S. OUT1/S. MVP MV inside operation value (-999999 to 999999) % S S
63
DUTY
64 2Degree-of-freedom
S. 2PID 0 to 1 –– U ––
65 parameter
66 2Degree-of-freedom
S. 2PID 0 to 1 –– U ––
67 parameter
68
S. DUTY CTDUTY Control output cycle 0 to 999999 s U ––
69
*1 MODE, ALM, and INH are shared among the instructions.
*2 The following instructions share the same value in I.
• S. PID instruction and S. OUT1 instruction
• S. PID instruction and S. DUTY instruction
• S. 2PID instruction and S. OUT1 instruction
• S. 2PID instruction and S. DUTY instruction
• S. SPI instruction and S. OUT1 instruction
260
Appendix 2.2 I-PD control (SIPD), blend PI control (SBPI)
Data storage 1
Instruction used Offset Item Name Recommended range Unit
SIPD SBPI
+0 –– –– –– –– –– ––
1 MODE*1 Operation mode 0 to FFFFH –– S/U S/U 2
2 –– –– –– –– –– ––
3 ALM*1 Alarm detection 0 to FFFFH –– S/U S/U
4 INH *1 Alarm detection inhibition 0 to FFFFH –– S/U S/U 3
5 –– –– –– –– –– ––
6 –– –– –– –– –– ––
7
8
––
––
––
––
––
––
––
––
––
––
––
––
4
9 –– –– –– –– –– ––
10
S. PHPL
11
PV Process value (RL to RH) –– S S
1
12
S. OUT1 MV Manipulated value -10 to 110 % S/U S/U
13
S. IPD/S. BPI 14
15
SV Set value RL to RH –– U U 6
16
S. IPD/S. BPI DV Deviation (-110 to 110) % S S
17
S. OUT1
18
MH Output upper limit value -10 to 110 % U U
A
19
20
S. OUT1 ML Output lower limit value -10 to 110 % U U
21
8
S. PHPL/S. IPD/ 22 Engineering value upper
RH -999999 to 999999 –– U U
S. BPI 23 limit
S. PHPL/S. IPD/ 24 Engineering value lower
RL -999999 to 999999 –– U U
S. BPI 25 limit
26 RL to RH
261
Data storage
Instruction used Offset Item Name Recommended range Unit
SIPD SBPI
48 Output change rate limit
S. OUT1 DML 0 to 100 % U U
49 value
50
S. IPD/S. BPI DVL Deviation limit value 0 to 100 % U U
51
52
S. IPD/S. BPI P Gain 0 to 999999 –– U U
53
S. IPD/S. BPI 54
I*2 Integral constant 0 to 999999 s U U
S. OUT1 55
56 Derivative constant/ D:0 to 999999 s U ––
S. IPD/S. BPI D/SDV
57 DV cumulative value SDV:-999999 to 999999 % –– S
58
S. IPD/S. BPI GW Gap width 0 to 100 % U U
59
60
S. IPD/S. BPI GG Gap gain 0 to 999999 –– U U
61
62
S. IPD/S. OUT1 MVP MV inside operation value (-999999 to 999999) % S ––
63
*1 MODE, ALM, and INH are shared among the instructions.
*2 The following instructions share the same value in I.
• S. IPD instruction and S. OUT1 instruction
• S. BPI instruction and S. OUT1 instruction
262
Appendix 2.3 Manual output (SMOUT), monitor (SMON)
1
Data storage
Instruction used Offset Item Name Setting/Store range Unit
SMOUT SMON
+0
1
––
MODE*1
––
Operation mode 0 to FFFFH
–– ––
––
––
S/U S/U
––
2
2 –– –– –– –– –– ––
3 ALM*1 Alarm detection 0 to FFFFH –– S/U S/U
4 INH*1 Alarm detection inhibition 0 to FFFFH –– –– S/U
3
5 –– –– –– –– –– ––
6 –– –– –– –– –– ––
7 –– –– –– –– –– –– 4
8 –– –– –– –– –– ––
9 –– –– –– –– –– ––
S. PHPL
10
PV Process value (RL to RH) –– –– S 1
11
12
S. MOUT MV Manipulated value -10 to 110 % U ––
13
14 6
–– –– –– –– –– ––
15
16
–– –– –– –– –– ––
17 A
18
–– –– –– –– –– ––
19
20
21
–– –– –– –– –– –– 8
22 Engineering value upper
S. PHPL RH -999999 to 999999 –– –– U
23 limit
24 Engineering value lower
S. PHPL RL -999999 to 999999 –– –– U
25 limit
263
Appendix 2.4 Manual output with monitor (SMWM), PIDP control
(SPIDP)
Data storage
Instruction used Offset Item Name Recommended range Unit
SMWM SPIDP
+0 –– –– –– –– –– ––
1 *1 Operation mode 0 to FFFFH –– S/U S/U
MODE
2 –– –– –– –– –– ––
3 ALM*1 Alarm detection 0 to FFFFH –– S/U S/U
4 INH*1 Alarm detection inhibition 0 to FFFFH –– S/U S/U
5 –– –– –– –– –– ––
6 –– –– –– –– –– ––
7 –– –– –– –– –– ––
8 –– –– –– –– –– ––
9 –– –– –– –– –– ––
10
S. PHPL PV Process value (RL to RH) –– S S
11
12
S. MOUT/S. PIDP MV Manipulated value -10 to 110 % U S/U
13
S. PIDP 14
SV Set value RL to RH –– –– U
15
16
S. PIDP DV Deviation (-110 to 110) % –– S
17
18
S. PIDP MH Output upper limit value -10 to 110 % –– U
19
20
S. PIDP ML Output lower limit value -10 to 110 % –– U
21
22 Engineering value upper
S. PHPL/S. PIDP RH -999999 to 999999 –– U U
23 limit
24 Engineering value lower
S. PHPL/S. PIDP RL -999999 to 999999 –– U U
25 limit
26 RL to RH
S. PHPL PH Upper limit alarm set value –– U U
27 PL < PH
28 RL to RH
S. PHPL PL Lower limit alarm value –– U U
29 PL < PH
30 Upper upper limit alarm RL to RH
S. PHPL HH –– U U
31 value PH HH
32 Lower lower limit alarm RL to RH
S. PHPL LL –– U U
33 value LL PL
34
–– –– –– –– –– ––
35
36
–– –– –– –– –– ––
37
38
S. IN Filter coefficient 0 to 1 –– U U
39
40 Upper/lower limit alarm
S. PHPL HS 0 to 999999 % U U
41 hysteresis
42 Change rate alarm check
S. PHPL CTIM 0 to 999999 s U U
43 time
44
S. PHPL DPL Change rate alarm value 0 to 100 % U U
45
46
S. PIDP CT Control cycle 0 to 999999 s –– U
47
264
Data storage
Instruction used Offset Item Name Recommended range Unit
SMWM SPIDP
S. PIDP
48
DML
Output change rate limit
0 to 100 % –– U
1
49 value
50
S. PIDP DVL Deviation limit value 0 to 100 % –– U
51
52
2
S. PIDP P Gain 0 to 999999 –– –– U
53
54
S. PIDP
55
I Integral constant 0 to 999999 s –– U
3
56
S. PIDP D Derivative constant 0 to 999999 s –– U
57
S. PIDP
58
59
GW Gap width 0 to 100 % –– U 4
60
S. PIDP GG Gap gain 0 to 999999 –– –– U
61
*1 MODE, ALM, and INH are shared among the instructions. 1
265
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 –– –– –– –– –– ––
1 MODE*1 Operation mode 0 to FFFFH –– S/U S/U
2 –– –– –– –– –– ––
3 ALM*1 Alarm detection 0 to FFFFH –– S/U S/U
4 *1 Alarm detection inhibition 0 to FFFFH –– S/U S/U
INH
5 –– –– –– –– –– ––
6 –– –– –– –– –– ––
7 –– –– –– –– –– ––
8 –– –– –– –– –– ––
9 –– –– –– –– –– ––
10
S.PHPL PV Process value (RL to RH) –– S S
11
12
S.ONF2/S.ONF3 MV Manipulated value -10 to 110 % S/U S/U
13
S.ONF2/S.ONF3 14
SV Set value RL to RH –– U U
15
16
S.ONF2/S.ONF3 DV Deviation (-110 to 110) % S S
17
18
S.ONF2/S.ONF3 HSO Hysteresis 0 to 999999 –– U U
19
20
S.ONF3 HS1 Hysteresis 0 to 999999 –– –– U
21
22 Engineering value upper
S.PHPL RH -999999 to 999999 –– U U
23 limit
24 Engineering value lower
S.PHPL RL -999999 to 999999 –– U U
25 limit
26 Upper limit alarm set RL to RH
S.PHPL PH –– U U
27 value PL < PH
28 RL to RH
S.PHPL PL Lower limit alarm value –– U U
29 PL < PH
30 Upper upper limit alarm RL to RH
S.PHPL HH –– U U
31 value PH HH
32 Lower lower limit alarm RL to RH
S.PHPL LL –– U U
33 value LL PL
34
–– –– –– –– –– ––
35
36
–– –– –– –– –– ––
37
38
S.IN Filter coefficient 0 to 1 –– U U
39
40 Upper/lower limit alarm
S.PHPL HS 0 to 999999 % U U
41 hysteresis
42 Change rate alarm check
S.PHPL CTIM 0 to 999999 s U U
43 time
44
S.PHPL DPL Change rate alarm value 0 to 100 % U U
45
46
S.ONF2/S.ONF3 CT Control cycle 0 to 999999 s U U
47
*1 MODE, ALM, and INH are shared among the instructions.
266
Appendix 2.6 Batch counter (SBC)
1
Data storage
Instruction used Offset Item Name Recommended range Unit
SBC
+0
1
––
MODE*1 Operation mode
––
0 to FFFFH
–– ––
––
––
S/U
2
2 –– –– –– –– ––
3 ALM*1 Alarm detection 0 to FFFFH –– S/U
4 INH*1 Alarm detection inhibition 0 to FFFFH –– S/U
3
5 –– –– –– –– ––
6 –– –– –– –– ––
7 –– –– –– –– –– 4
8 –– –– –– –– ––
9 –– –– –– –– ––
S. PSUM 10
SUM1
Integration value (Integer
(0 to 2147483647) –– S 1
11 part)
12 Integration value (Fraction
S. PSUM SUM2 (0 to 2147483647) –– S
13 part)
14 6
S. BC SV1 Set value 1 0 to 2147483647 –– U
15
S. BC 16
SV2 Set value 2 0 to 2147483647 –– U
17 A
18
–– –– –– –– ––
19
20
21
–– –– –– –– –– 8
22
–– –– –– –– ––
23
24
–– –– –– –– ––
25
267
Appendix 2.7 Ratio control (SR)
Data storage
Instruction used Offset Item Name Recommended range Unit
SR
+0 –– –– –– –– ––
1 MODE*1 Operation mode 0 to FFFFH –– S/U
2 –– –– –– –– ––
3 *1 Alarm detection 0 to FFFFH –– S/U
ALM
4 *1 Alarm detection inhibition 0 to FFFFH –– S/U
INH
5 –– –– –– –– ––
6 –– –– –– –– ––
7 –– –– –– –– ––
8 –– –– –– –– ––
9 –– –– –– –– ––
10
S. PHPL PV Process value (RL to RH) –– S
11
12
S. OUT2 MV Manipulated value -10 to 110 % S/U
13
14
S. R SPR Set value -999999 to 999999 –– U
15
16
S. R BIAS Bias -999999 to 999999 % U
17
18
S. OUT2 MH Output upper limit value -10 to 110 % U
19
20
S. OUT2 ML Output lower limit value -10 to 110 % U
21
22 Engineering value upper
S. PHPL RH -999999 to 999999 –– U
23 limit
24 Engineering value lower
S. PHPL RL -999999 to 999999 –– U
25 limit
26 Upper limit alarm set RL to RH
S. PHPL PH –– U
27 value PL < PH
28 RL to RH
S. PHPL PL Lower limit alarm value –– U
29 PL < PH
30 Upper upper limit alarm RL to RH
S. PHPL HH –– U
31 value PH HH
32 Lower lower limit alarm RL to RH
S. PHPL LL –– U
33 value LL PL
34
–– –– –– –– ––
35
36
–– –– –– –– ––
37
38
S. IN Filter coefficient 0 to 1 –– U
39
40 Upper/lower limit alarm
S. PHPL HS 0 to 999999 % U
41 hysteresis
42 Change rate alarm check
S. PHPL CTIM 0 to 999999 s U
43 time
44
S. PHPL DPL Change rate alarm value 0 to 100 % U
45
46
S. R CT Control cycle 0 to 999999 s U
47
268
Data storage
Instruction used Offset Item Name Recommended range Unit
SR
S. OUT2
48
DML
Output change rate limit
0 to 100 % U
1
49 value
50
S. R DR Change rate limit value 0 to 999999 –– U
51
52
2
S. R RMAX Ratio upper limit value -999999 to 999999 –– U
53
54
S. R
55
RMIN Ratio lower limit value -999999 to 999999 –– U
3
56
S. R Rn Ratio current value (-999999 to 999999) –– S
57
*1 MODE, ALM, and INH are shared among the instructions.
4
269
Appendix 3 Operation Processing Time
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.
Processing time(µs)
Instruction Condition
QnPHCPU/QnPRHCPU QnUDPVCPU
S.IN Condition where ALM does not turn ON during loop run 69 34
S.OUT1 Condition where ALM does not turn ON during loop run in AUT mode 47 30
S.OUT2 Condition where ALM does not turn ON during loop run in AUT mode 37 28
S.MOUT Executed during loop run in MAN mode 27 20
Execution cycle = 1, Control output cycle = 10
S.DUTY 55 30
Condition where ALM does not turn ON during loop run in AUT mode
S.BC Condition where ALM does not turn ON during loop run in AUT mode 29 21
Integration start signal = ON
S.PSUM 23 17
Integration hold signal = OFF
Set value pattern = 3(Without cascade)
Tracking bit = 0
Execution cycle = Control cycle = 1
S.PID 104 47
Integral constant 0
Derivative constant 0
Condition where ALM does not turn ON during loop run in AUT mode
Set value pattern = 3(Without cascade)
Tracking bit = 0
Execution cycle = Control cycle = 1
S.2PID 136 55
Integral constant 0
Derivative constant 0
Condition where ALM does not turn ON during loop run in AUT mode
Set value pattern = 3(Without cascade)
Tracking bit = 0
Execution cycle = Control cycle = 1
S.PIDP 119 57
Integral constant 0
Derivative constant 0
Condition where ALM does not turn ON during loop run in AUT mode
Set value pattern = 3(Without cascade)
Tracking bit = 0
S.SPI Operating time = Sample cycle (ST = STHT) 87 42
Integral constant 0
Condition where ALM does not turn ON during loop run in AUT mode
Set value pattern = 3(Without cascade)
Tracking bit = 0
Execution cycle = Control cycle = 1
S.IPD 101 47
Integral constant 0
Derivative constant 0
Condition where ALM does not turn ON during loop run in AUT mode
Set value pattern = 3(Without cascade)
Tracking bit = 0
S.BPI Execution cycle = Control cycle = 1 75 39
Integral constant 0
Condition where ALM does not turn ON during loop run in AUT mode
Set value pattern = 3(Without cascade)
Tracking bit = 0
S.R 58 30
Execution cycle = Control cycle = 1
Executed during loop run in AUT
270
Processing time(µs)
Instruction Condition
QnPHCPU/QnPRHCPU QnUDPVCPU
S.PHPL Condition where ALM does not turn ON during loop run in AUT mode 100 40
Input data = 50, With lead-lag guarantee
1
S.LLAG 30 20
Lead time = 1, Delay time = 1
Input data = 50, Integral time = 1
S.I 23 17
Output initial value = 0 2
Input data = 50, Derivative time = 1
S.D 27 19
Output initial value = 0
Input data = 50
Operation control signal 0 1
3
Data collection interval = 1
S.DED 17 12
Sampling count = 10
Output initial value = 0 4
Initial output switching = 0
Input number = 5
S.HS 29 13
Input data = 50, 100, 150, 200, 250
Input number = 5
1
S.LS 32 13
Input data = 50, 100, 150, 200, 250
Input number = 5
S.MID
Input data = 50, 100, 150, 200, 250
69 19
6
S.AVE Input number = 2, Input data = 50, 100 24 15
Input data = 50
S.LIMT
Upper limit value = 100
Lower limit value = 0 30 19
A
Upper limit hysteresis = 0
Lower limit hysteresis = 0
Input data = 50 8
Positive direction limit value = 100
S.VLMT1 Negative direction limit value = 100 38 19
Positive direction hysteresis = 0
Negative direction hysteresis = 0
Input data = 50
271
Processing time(µs)
Instruction Condition
QnPHCPU/QnPRHCPU QnUDPVCPU
Output set value = 0, Output control value = 50
S.BUMP Mode selection signal = 1 18 14
Delay time = 1, Delay zone = 1
Output addition value = 50, Output subtraction value = 50
Output set value = 0, Output signal = 1
S.AMR 25 16
Output addition signal = 1, Output subtraction signal = 0
Output upper limit value = 50, Output lower limit value = 0
S.FG Input data = 50, Number of polygon points = 2
33 23
S.IFG Polygon coordinates (30, 40), (60, 70)
Input data = 50, Data collection interval = 1
S.FLT 40 25
Sampling count = 10
Input data = 50
S.SUM Input low cut value = 0, Initial value = 0 25 18
Input range = 1
Both temperature and pressure are corrected.
Differential pressure = 100, Measurement temperature = 300
Measured pressure = 10000, Design temperature = 0
S.TPC 39 19
Bias (Temperature) = 273.15
Design pressure = 0
Bias pressure = 10332.0
S.ENG Input data = 50, Engineering value upper limit = 100
25 19
S.IENG Engineering value lower limit = 0
Input number = 2, Input data = 50, 100
S.ADD 25 19
Number of coefficients = 2, Coefficient = 1, 1, Bias = 0
Input number = 2, Input data = 50, 100
S.SUB 26 20
Number of coefficients = 2, Coefficient = 1, 1, Bias = 0
Input number = 2, Input data = 50, 100
S.MUL 24 19
Number of coefficients = 2, Coefficient = 1, 1, Bias = 0
Input data = 50, 100
S.DIV 27 18
Coefficient = 1, 1, 1, Bias = 0, 0, 0
Input data = 50
S.SQR 34 17
Output low cut value = 0, Coefficient = 10
S.ABS Input data = 50 17 12
Input data = 50, 100
S.> 22 16
Set value = 0, Hysteresis = 0
Input data = 50, 100
S.< 19 15
Set value = 0, Hysteresis = 0
Input data = 50, 100
S.= 18 15
Set value = 0
Input data = 50, 100
S.>= 22 16
Set value = 0, Hysteresis = 0
Input data = 50, 100
S.<= 19 15
Set value = 0, Hysteresis = 0
Set value pattern = 3(Without cascade)
Tracking bit = 0
S.AT1 67 30
Execution cycle = 1
Executed during loop run in MAN mode
272
Appendix 3.2 Operation processing time of 2-degree-of-freedom PID
control loop 1
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.
2
(1) Conditions
• Loop type: S2PID
• Used instructions: S.IN, S.PHPL, S.2PID, S.OUT1
3
(2) Operation constants
(a) S.IN instruction
Name Item Setting 4
Engineering conversion upper limit EMAX 100.0
Engineering conversion lower limit EMIN 0.0
Input upper limit
Input lower limit
NMAX
NMIN
100.0
0.0
1
Upper limit range error occurrence HH 95.0
Upper limit range error return H 80.0
Lower limit range error return L 20.0
6
Lower limit range error occurrence LL 5.0
273
(3) Loop tag memory
Offset Item Name Recommended range Setting
+0 –– –– –– 0
+1 MODE Operation mode 0 to FFFFH 10H
+2 –– –– –– 0
+3 ALM Alarm detection 0 to FFFFH 0
+4 INH Alarm detection inhibition 0 to FFFFH 0
+5 –– –– –– 0
+6 –– –– –– 0
+7 –– –– –– 0
+8 –– –– –– 0
+9 –– –– –– 0
+10 PV Process value RL to RH 0.0
+12 MV Manipulated value -10 to 110 0.0
+14 SV Set value RL to RH 55.0
+16 DV Deviation -110 to 110 7
+18 MH Output upper limit value -10 to 110 100.0
+20 ML Output lower limit value -10 to 110 0.0
+22 RH Engineering value upper limit -999999 to 999999 100.0
+24 RL Engineering value lower limit -999999 to 999999 0.0
+26 PH Upper limit alarm set value RL to RH 80.0
+28 PL Lower limit alarm value RL to RH 20.0
+30 HH Upper limit alarm value RL to RH 90.0
+32 LL Lower limit alarm value RL to RH 10.0
+34 –– –– –– 0
+36 –– –– –– 0
+38 Filter coefficient 0 to 1 0.0
+40 HS Upper/lower limit alarm hysteresis 0 to 999999 3.0
+42 CTIM Change rate alarm check time 0 to 999999 8.0
+44 DPL Change rate alarm value 0 to 100 30.0
+46 CT Control cycle 0 to 999999 1.0
+48 DML Output change rate limit value 0 to 100 100.0
+50 DVL Deviation limit value 0 to 100 25.0
+52 P Gain 0 to 999999 3.0
+54 I Integral constant 0 to 999999 8.0
+56 D Derivative constant 0 to 999999 5.0
+58 GW Gap width 0 to 100 15.0
+60 GG Gap gain 0 to 999999 2.0
+62 MVP MV inside operation value -999999 to 999999 0.25
+64 2-degree-of-freedom parameter 0 to 1 0.0
+66 2-degree-of-freedom parameter 0 to 1 1.0
274
INDEX 9
0 to 9 E
10
2-degree-of-freedom PID Control (S.2PID) . . . . . . . 98 Engineering Value Conversion (S.ENG) . . . . . . . .217
2-position ON/OFF (S.ONF2) . . . . . . . . . . . . . . . . 174 Execution cycle . . . . . . . . . . . . . . . . . . . . . . . . . . .33
3-position ON/OFF (S.ONF3) . . . . . . . . . . . . . . . . 180
11
F
A
Forward Operation . . . . . . . . . . . . . . . . . . . . . . . . 13
Absolute Value (S.ABS) . . . . . . . . . . . . . . . . . . . . 231 Function Generator (S.FG) . . . . . . . . . . . . . . . . . .205 12
Addition (S.ADD) . . . . . . . . . . . . . . . . . . . . . . . . 221
Alarm detection (ALM) . . . . . . . . . . . . . . . . . . . . . . 30
H
Alarm detection inhibition (INH) . . . . . . . . . . . . . . . 31
ALM(Alarm detection) . . . . . . . . . . . . . . . . . . . . . . 29 HHA (Upper upper limit alarm) . . . . . . . . . . . . . . . .31 10
Analog Input Processing (S.IN) . . . . . . . . . . . . . . . . 54 High Selector (S.HS) . . . . . . . . . . . . . . . . . . . . . .157
Analog Memory (S.AMR) . . . . . . . . . . . . . . . . . . . 202 High/Low Limit Alarm (S.PHPL) . . . . . . . . . . . . . .142
AUT (AUTOMATIC). . . . . . . . . . . . . . . . . . . . . . . . 32 High/Low Limiter (S.LIMT) . . . . . . . . . . . . . . . . . .166
Auto tuning instruction (S. AT1) . . . . . . . . . . . . . . 246 HOW TO READ INSTRUCTION DETAILS . . . . . . . .50 15
Average Value (S.AVE) . . . . . . . . . . . . . . . . . . . . 164
I
B 15
I operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
Basic PID (S.PID) . . . . . . . . . . . . . . . . . . . . . . . . . 90 INH (Alarm detection inhibition) . . . . . . . . . . . . . . .31
Batch Counter (S.BC) . . . . . . . . . . . . . . . . . . . . . . 81 Input data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Blend PI control . . . . . . . . . .
Block memory. . . . . . . . . . . .
. . . . . . . . . . . . . . . 130
. . . . . . . . . . . . . . . . 29
Integral (S.I) . . . . . . . . . . . . . . . . . . . . . . . . . . . .150 I
Integral operation (I operation) . . . . . . . . . . . . . . . .15
Bumpless function . . . . . . . . . . . . . . . . . . . . . . . . . 36 Inverse Engineering Value Conversion (S.IENG)
Bumpless Transfer (S.BUMP) . . . . . . . . . . . . . . . 199 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .219
Inverse Function Generator (S.IFG) . . . . . . . . . . .207
C I-PD Control (S.IPD) . . . . . . . . . . . . . . . . . . . . . .122
275
N T
Negative direction change rate alarm (DPNA) . . . . . 31 Temperature/Pressure Correction (S.TPC) . . . . . . 214
Time Proportioning(S.DUTY) . . . . . . . . . . . . . . . . . 74
Tracking flag (TRKF) . . . . . . . . . . . . . . . . . . . . . . 31
O
Tracking function . . . . . . . . . . . . . . . . . . . . . . . . . 36
OOPA (Output open alarm) . . . . . . . . . . . . . . . . . . 31 TRKF (Tracking flag) . . . . . . . . . . . . . . . . . . . . . . 31
Operation constant . . . . . . . . . . . . . . . . . . . . . . . . 29
Operation mode (MODE) . . . . . . . . . . . . . . . . . . . 32 U
Operation Processing Time . . . . . . . . . . . . . . . . . 270
Output change rate limit alarm (DMLA) . . . . . . . . . . 31 Upper limit alarm (PHA) . . . . . . . . . . . . . . . . . . . . 31
Output limiter processing function . . . . . . . . . . . . . 36 Upper upper limit alarm (HHA) . . . . . . . . . . . . . . . . 31
Output lower limit alarm (MLA) . . . . . . . . . . . . . . . 31
Output open alarm (OOPA) . . . . . . . . . . . . . . . . . . 31
V
Output Processing-1 with Mode Switching (S.OUT1)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Variation Rate Limiter 1 (S.VLMT1) . . . . . . . . . . . 168
Output Processing-2 with Mode Switching (S.OUT2) Variation Rate Limiter 2 (S.VLMT2) . . . . . . . . . . . 171
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Output upper limit alarm (MHA) . . . . . . . . . . . . . . . 31
Z
P ZN process . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
P operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
PHA (Upper limit alarm) . . . . . . . . . . . . . . . . . . . . 31
PID operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
PLA (Lower limit alarm). . . . . . . . . . . . . . . . . . . . . 31
Position Type PID Control (S.PIDP) . . . . . . . . . . . 106
Positive direction change rate alarm (DPPA) . . . . . . 31
Program Example . . . . . . . . . . . . . . . . . . . . . . . 255
Program Setter (S.PGS) . . . . . . . . . . . . . . . . . . . 188
Proportional operation (P operation) . . . . . . . . . . . . 14
Pulse Integration (S.PSUM) . . . . . . . . . . . . . . . . . 85
R
Ratio (S.R) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Reverse Operation . . . . . . . . . . . . . . . . . . . . . . . . 13
S
S2PID (2-degree-of-freedom PID control) . . . . . 22,259
Sample PI Control (S.SPI). . . . . . . . . . . . . . . . . . 115
SBC (Batch counter) . . . . . . . . . . . . . . . . . . . 22,267
SBPI (Blend PI control) . . . . . . . . . . . . . . . . . . 22,261
SEA (Sensor alarm) . . . . . . . . . . . . . . . . . . . . . . . 31
Sensor alarm (SEA) . . . . . . . . . . . . . . . . . . . . . . . 31
SIPD (I-PD control) . . . . . . . . . . . . . . . . . . . . 22,261
SMON (Monitor). . . . . . . . . . . . . . . . . . . . . . . 23,263
SMOUT (Manual output) . . . . . . . . . . . . . . . . . 23,263
SMWM (Manual output with monitor) . . . . . . . . 23,264
SONF2 (2 position ON/OFF control) . . . . . . . . . 22,266
SONF3 (3 position ON/OFF control) . . . . . . . . . 22,266
SPA (Stop alarm) . . . . . . . . . . . . . . . . . . . . . . . . . 31
SPGS (Program setting device) . . . . . . . . . . . . . . . 23
SPID (PID control) . . . . . . . . . . . . . . . . . . . . . 22,259
SPIDP (PIDP control) . . . . . . . . . . . . . . . . . . . 22,264
Square Root (S.SQR) . . . . . . . . . . . . . . . . . . . . . 229
SR (Ratio control) . . . . . . . . . . . . . . . . . . . . . 22,268
SSEL (Selector) . . . . . . . . . . . . . . . . . . . . . . . . . . 23
SSPI (Sample PI control) . . . . . . . . . . . . . . . . 22,259
stepped response process . . . . . . . . . . . . . . . . . 243
Stop alarm (SPA) . . . . . . . . . . . . . . . . . . . . . . . . . 31
Subtraction (S.SUB) . . . . . . . . . . . . . . . . . . . . . . 223
Summation (S.SUM) . . . . . . . . . . . . . . . . . . . . . 212
276
INSTRUCTION INDEX 9
S
10
S. < . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
S. <= . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
S. = . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
S. > . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233 11
S. >= . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
S. AT1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
S. SEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
S.2PID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
12
S.ABS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
S.ADD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
S.AMR . . .
S.AVE . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
10
S.BC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
S.BPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
S.BUMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 15
S.D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
S.DBND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
S.DED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
S.DIV. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227 15
S.DUTY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
S.ENG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
S.FG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
S.FLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 I
S.HS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
S.I . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
S.IENG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
S.IFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
S.IN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
S.IPD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
S.LIMT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
S.LLAG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
S.LS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
S.MID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
S.MOUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
S.MUL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
S.ONF2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
S.ONF3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
S.OUT1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
S.OUT2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
S.PGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
S.PHPL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
S.PID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
S.PIDP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
S.PSUM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
S.R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
S.SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
S.SQR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
S.SUB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
S.SUM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
S.TPC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
S.VLMT1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
S.VLMT2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
277
REVISIONS
*The manual number is given on the bottom left of the back cover.
Print date *Manual number Revision
Apr., 2002 SH (NA)-080316E-A First edition
Jun., 2004 SH (NA)-080316E-B Manual name change
About Manuals, Section 2.2.1, 2.2.3, 3.3.5, Chapter 7, Section 8.5, 9.18, 9.21, 10.1,
10.2, Appendix 2.3, Appendix 2.7
Addition
CONTETNTS, Section 3.2, 6.2.3, 8.2, 8.5, 9.1, 9.2, 9.3, 9.4, 9.5, 9.8, 10.1, 10.2
May, 2008 SH (NA)-080316E-D Revision due to the addition of Process CPU
Addition module
Q02PHCPU, Q06PHCPU
Partial correction
Chapter 1, Section 2.2.1, 2.2.4, 2.2.5, 2.2.8, 3.3.1, 3.3.3, CHAPTER 7 to 14,
Appendix 2, Appendix 3.1, Appendix 3.2
TERMS, Chapter 8, 9, 10, 11, 12, 13, 14, Appendix 3.1, Appendix 3.2
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.
278
WARRANTY
Please confirm the following product warranty details before using this product.
3. Overseas service
Overseas, repairs shall be accepted by Mitsubishi's local overseas FA Center. Note that the repair conditions at
each FA Center may differ.
279
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.
280 SH(NA)-080316E-H
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.