SH 080316 Eg
SH 080316 Eg
SH 080316 Eg
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. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.4 PID Control Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.4.1 Proportional operation (P operation) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
1.4.2 Integral operation (I operation) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
1.4.3 Derivative operation (D operation) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
1.4.4 PID operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
4
CHAPTER 5 EXECUTION CONDITION SWITCHING AND FUNCTIONS 36
5.1 Execution Condition Switching. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.1.1 Loop RUN/STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
5.2 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.2.1 Tracking function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
5.2.2 Cascade loop tracking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
5.2.3 Loop selector tracking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
CHAPTER 6 INSTRUCTIONS 39
6.1 How to Read the Instruction List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
6.2 List of Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
6.2.1 I/O control instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
6.2.2 Control operation instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42
6.2.3 Compensation operation instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47
6.2.4 Arithmetic operation instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
6.2.5 Comparison operation instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49
6.2.6 Auto tuning instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
5
9.14 S.LS Low Selector . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159
6
CHAPTER 14 ERROR CODES 251
14.1 List of Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
APPENDIX 253
Appendix 1Program Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
Appendix 2Loop Tag Memory List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
Appendix 2.1PID control (SPID), 2-degree-of-freedom PID control (S2PID), sample PI control (SSPI)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .257
Appendix 2.2I-PD control (SIPD), blend PI control (SBPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .259
Appendix 2.3Manual output (SMOUT), monitor (SMON) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .261
Appendix 2.4Manual output with monitor (SMWM), PIDP control (SPIDP). . . . . . . . . . . . . . . . . . . . .262
Appendix 2.52 position ON/OFF control (SONF2), 3 position ON/OFF control (SONF3) . . . . . . . . . .264
Appendix 2.6Batch counter (SBC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .265
Appendix 2.7Ratio control (SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .266
INDEX 273
REVISIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
WARRANTY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
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
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.
13
1.3 Forward Operation and Reverse Operation
(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
Set value
Temperature
Process value
Set value
Process value
Time Time
Forward operation (for air conditioning) Reverse operation (for heating)
14
1.4 PID Control Details
1
This section explains "proportional operation", "integral operation" and "derivative operation" performed for PID control using
the process control instructions.
2
1.4.1 Proportional operation (P operation)
(1) Proportional operation is the action that compares the deviation (DV, difference between the set value and the process
value) to find the manipulated value (MV).
4
(2) The proportional term is given by:
MV = KP • DV
3
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.
6
Deviation
DV
7
Time
Manipulated
8
value
K P DV
Time
1.4.1
1.4 PID Control Details
As KP increases, the manipulated value for the constant deviation also increases.
(5) Offset occurs in proportional operation.
15
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.
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).
(a) Increasing the integral time decreases the effect of integration.
(It will take time to stabilize.)
(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.
Deviation
DV
Time
TI
Time
(4) The integral operation is used as the PI operation that is combined with the proportional operation or as the PID
operation that is combined with the proportional operation and the derivative operation.
Control cannot be carried out by merely performing the integral operation.
16
1.4.3 Derivative operation (D operation)
This section explains the control method using the derivative operation. 1
(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. 2
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).
3
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.
4
Deviation
DV
3
Time
6
Manipulated
7
value
TD
Time 8
(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.
1.4.3
1.4 PID Control Details
Derivative operation (D operation)
17
1.4.4 PID operation
This section explains the control operation using combinations of proportional operation (P operation), integral operation (I
operation), and derivative operation (D operation).
(1) The PID operation controls the calculated manipulated value using (P + I + D) operation.
(2) The PID operation in the case of a step response with a constant deviation will be as follows.
Deviation
Time
Manipulated value
PID operation
PI
operation
I operation
P operation
D operation
Time
18
CHAPTER 2 STRUCTURE AND COMBINATIONS OF
PROCESS CONTROL INSTRUCTIONS 1
The instructions that can be used by the process control instructions can be divided into the "instruction part" and "device
part".
3
The instruction part and device part are as follows.
• Instruction part.......This shows the functions for these instructions.
4
• 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. 4
(1) Source (S)
The source stores the data used for operation. 6
(a) In the process control instruction, specify the head device that stores the source data.
(b) Data must have been stored in the specified device until the process control instruction is executed.
(c) Changing the source data allows you to change the data used in that instruction. 7
(2) Destination (D)
Destination is where the data is stored after operation.
(a) Sets the device for which the data will be stored in the destination. 8
(b) Depending on the instruction used, data used for operation must also be stored in the destination before start of the
operation.
2.1
For the structure of instructions used in structured programs, refer to the MELSEC-Q/L Structured Programming Manual
Structure of Instructions
(Common Instructions).
19
2.2 How to Specify Data in Devices
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. ".
(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.)
Word data is the 16-bit numeric data that is used for the loop tag memory bit pack contents and operation constants, etc.
• Decimal constant........................K-32768 to K32767
• Hexadecimal constant................H0000 to HFFFF
Example) For the loop tag memory ALM (standard value setting 4000H)
ALM 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
4 0 0 0
20
2.2.3 In the case of double word (32-bit) data
8
b31 b30 to b23 b22 to b16 b15 to b0
b23 to b30 b0 to b22
Exponent Mantissa
b31
Sign
2.2.3
2.2 How to Specify Data in Devices
• Fixed-point part sign This shows the fixed-point part sign in b31.
0: Positive
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.
21
2.2.5 Operation errors
Operation errors caused by process control instructions are stored in the following remote register.
For errors other than operation errors, refer to the error codes listed in the QCPU User's Manual (Hardware Design,
Maintenance and Inspection). (The error code is stored in SD0.)
Remark
(1) The following errors (other than operation errors) are also stored in the special register.
• 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.
(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 251, CHAPTER 14.
The process control instructions are instructions that are executed while the input condition is ON.
The number of process control instruction steps differs depending upon the number of instruction characters, the device used,
and whether or not an indirect setting is valid.
The basic number of steps for the extension instruction are as follows.
*1 The number of characters is calculated by adding 1 when the number is odd. (For example when rounding up the results of a
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.
22
2.3 Basic Loop Types Available by Combinations of Process
Control Instructions 1
4
INPUT S.IN S.PHPL S.2PID S.DUTY OUTPUT
SET SV
SET SV
time.
8
Sample PI control PI control is executed for only the
PV MV
(SSPI) period of control execution time in each
INPUT S.IN S.PHPL S.SPI S.OUT1 OUTPUT
control cycle and the output is kept
constant after that.
2.3
Used to make slow response so that
SET SV
I-PD control the operation end and process are not
23
Loop type Structure Application
Program setting device MV This is output in accordance with the
S.PGS OUTPUT
(SPGS) previously set value time change.
Manual output MV This manually operates the operation
S.MOUT OUTPUT
(SMOUT) terminal end.
This inputs the process value and
Monitor PV
INPUT S.IN S.PHPL OUTPUT
detects process errors such as upper/
(SMON)
lower limit alarms.
This inputs the process value and
Manual output with monitor PV MV
INPUT S.IN S.PHPL S.MOUT OUTPUT
conducts manual operation while
(SMWM)
checking that no errors occur.
Selector INPUT1
INPUT2
S.SEL OUTPUT This is used to select signals.
(SSEL)
24
CHAPTER 3 DATA USED FOR PROCESS CONTROL
INSTRUCTIONS AND HOW TO SPECIFY 1
DATA
2
3.1 Process Control Instructions and Data Structure
3
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 4
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).
6
[Block diagram]
3.1
Process Control Instructions and Data Structure
25
(b) Loop tag memory and operation constant locations in ladder diagram
[Ladder diagram]
Use name instruction common table.
P1 Normal execution
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
+56 S.2PID D 0.0 Real number
S.PHPL R20 R120 R220 R1000 +58 S.2PID GW 0.0 Real number
+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
INT R160 D1
RET
26
3.2 Local Work Memory
1
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. 2
Instruction Remarks
S.LLAG (Lead-Lag) 3
S.D (Derivative)
S.DED (Dead time) The system stores the midway operation results.
S.FLT (Standard filter) (For system use only)
4
S.BUMP (Bumpless transfer)
S.AT1 (Auto tuning)
S.FG (Function generator) The user stores the coordinate values (Xn, Yn) of a function
6
S.IFG (Inverse function generator) generator. Operations are performed based on these values.
[Block diagram] 6
Input data setting Operation constant setting
8
Operation result
Block memory
[Ladder diagram]
3.2
Instruction name S.LLAG (Lead-Lag)
The application of the local work memory changes depending on the used instruction. Refer to the explanation section of the
corresponding instruction.
27
3.3 Data Used for Process Control Instructions
The following data are used for the process control instructions.
• Loop tag memory Page 28, Section 3.3.1
• Input data Page 29, Section 3.3.2
• Block memory Page 30, Section 3.3.3
• Operation constant Page 30, Section 3.3.4
• Local work memory Page 27, Section 3.2
(b) The loop memory has the "loop tag memory" and "loop tag past value memory" areas.
(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
Specified device +0
+95
+96
Loop tag past value memory
(Usage possible on the user's 32word
side.)
+127
(c) Refer to Page 257, Appendix 2 (Loop tag memory list) for the applications of the area used by the process control
instructions in the loop tag memory.
28
(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. 1
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. 2
(c) At the start of the process control instruction, write "0" to the loop tag past value memory.
3
3.3.2 Input data
(1) Input data is variable data given to each process control instruction. 4
(2) The input data uses the block word of the block memory that stores the operation result of the process control instruction
executed previously. 6
Process control instruction Process control instruction
S.IN
Operation result
S.PHPL
Operation result
6
3.3.2
3.3 Data Used for Process Control Instructions
Input data
29
3.3.3 Block memory
The block memory is an area that stores the output information of the corresponding process control instruction.
The block memory has "block words" and "block bits".
The application of the block memory changes depending on the used instruction.
Refer to the explanation section of the corresponding instruction.
Block memory
Specified device number 0 Block word 2 words are used when real number
1 (2 words) is stored into block word.
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
(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.
30
3.3.5 Loop tag memory allocation contents
Instruction
used
Offset Item Setting range
Standard
value setting
Data type 3
0
For PID control (S2PID loop) 1 MODE 0 to FFFFH 8H BIN16bit
All commonly set in the same
loop tag
3 ALM 0 to FFFFH 4000H BIN16bit 4
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
6
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 6
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 7
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 8
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
3.3.5
3.3 Data Used for Process Control Instructions
S.2PID 50 DVL 0 to 100 100.0 Real number
S.2PID 52 P 0 to 999999 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
31
S: Stored by the system
U: Set by the user
Flag
Name Abbreviation Description establishment
conditions
Shows the loop stop status. Changes the loop mode to manual.
Stop alarm SPA Conducts stop alarm processing for the output value (BW) and alarm U
signal.
Conducts the change rate limiter for the input data and outputs the
Output change rate limit alarm DMLA change rate alarm. (For the output change upper limit value/control S
value).
Shows that it has changed to open status when the operation output
Output open alarm OOPA S
signal has become disconnected, etc.
Sensor alarm SEA Sensor error alarm S
Checks the upper limit value of the process equipment upper limit, and
Upper upper limit alarm HHA outputs an alarm if the process value is higher than the upper limit S
value.
Checks the lower limit value of the process equipment lower limit, and
Lower lower limit alarm LLA S
outputs an alarm if the process value is lower than the lower limit value.
Checks the upper limit value of the process value, and outputs an alarm
Upper limit alarm PHA S
if the process value is higher than the upper limit value.
Checks the lower limit value of the process value, and outputs an alarm
Lower limit alarm PLA S
if the process value is lower than the lower limit value.
Positive direction change rate Outputs an alarm if the change rate is higher than the upward trend
DPPA S
alarm change rate range.
Negative direction change rate Outputs an alarm if the change rate is lower than the downward trend
DPNA S
alarm change rate range.
Conducts an error check and then outputs an alarm if over. In addition,
if the error check determines that the deviation is completely less than
Deviation large alarm DVLA S
the warning value and the error is reduced by a set value from the
warning value then the deviation large alarm will be released.
Conducts a check using the upper/lower limiter and if the limiter results
Output upper limit alarm MHA S
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.
(a)
(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.)
32
(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 1
and like.
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
C
S
C
M
C
C
C
A
C
M
C
A
A
U
M
A
L
C
L
C
L
C
2
V V B B B S T N C A M
3.3.5
3.3 Data Used for Process Control Instructions
• Local automatic operation
(LOCAL AUTOMATIC) than operator station and operation mode is
LCC monitored by operator station.
• Local cascade operation
33
CHAPTER 4 HOW TO EXECUTE PROCESS CONTROL
INSTRUCTIONS
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.
34
4.2 Concept of Program
1
[Program example using S.2PID instruction at execution cycle of 1s]
RST T0 7
MV output MOV D1 U2\G0
Output of MV from D/A
converter module or like 8
FEND
SM400
P1
FLT D0 R0
4.2
S.IN R0 R100 R200 R1000
Concept of Program
EMOV R100 R20
INT R160 D1
RET
35
CHAPTER 5 EXECUTION CONDITION SWITCHING
AND FUNCTIONS
If any loop component such as a detector or operation end other than the programmable controller fails, each loop can be run/
stopped to perform the maintenance of the corresponding loop.
The "SPA" bit of the alarm detection (ALM) is used to run/stop the corresponding loop.
36
5.2 Functions
1
5.2.1 Tracking function
The tracking function includes the "bumpless function" and "output limiter processing".
2
SV
5.2.1
5.2 Functions
PID
PV1
Trucking data transmission
Tracking function
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)
37
(2) Make the following settings to perform tracking.
(Tracking is performed when the operation mode is switched to other than CAS, CSV or CCB.)
For 2-degree-of-freedom PID (S.2PID), set the following operation constant items to specify tracking.
Setting item Setting
Tracking bit (TRK) 1 (Tracking performed)
Set value pattern 0 (Set value is upper loop MV.)
Set value pattern (SVPTN)
Set value Used 0 (E2 is used)
Example) When the S.SEL instruction uses the input value E1 and E1 uses the upper loop (loop 0) MV, the S.SEL
instruction's MV is trucked to loop 0's MV.
The setting that conducts Tracking is shown below.
Operation constant
Tracking bit S2 +4 1 0: Tracking not performed.
1 0 1 0 0 1: Tracking performed.
Set value pattern +5
38
CHAPTER 6 INSTRUCTIONS
1
6.1 How to Read the Instruction List
2
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. 3
I/O control
6
instruction
1) 2) 3) 4) 5) 6) 7) 8)
7
1) Instructions are classified by their application.
2) An instruction symbol used in the program 8
3) A written format in the ladder diagram
S.OUT2 S1 D1 S2 D2
6.1
How to Read the Instruction List
Shows the destination side.
Shows the source side.
Shows the instruction symbol.
S2 d2
39
5) A written format in the structured text language
Outputs an execution status.
40
6.2 List of Instructions
1
6.2.1 I/O control instructions
2
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.IN S1 D1 S2 D2 3
S_IN Conducts the input data (PV) Upper/
lower limit check, input limiter
S.IN EN ENO
processing, engineering value
7 Page 55 4
s1 d1
conversion, and digital filter processing.
s2 d2
ENO:=S_IN(EN,s1,s2,d1,d2); 4
S.OUT1 S1 D1 S2 D2
S.OUT2 S1 D1 S2 D2
8
S_OUT2
Performs change rate, upper/lower
I/O control
S.OUT2 EN ENO limiter processing and output on time 8 Page 66
instruction
s1 d1 conversion from the input data (MV).
6.2.1
6.2 List of Instructions
s2 d2
ENO:=S_OUT2(EN,s1,s2,d1,d2);
S_MOUT
Reads the MV of the loop tag memory
S.MOUT EN ENO and performs output conversion and 8 Page 71
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 75
s1 d1 data (0 to 100%) and outputs the result.
s2 d2
ENO:=S_DUTY(EN,s1,s2,d1,d2);
41
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.BC S1 D1 S2 D2
S_BC
Compares the input data with the set
S.BC EN ENO value and outputs bit data as soon as 7 Page 81
s1 d1 the input data reaches the set value.
s2 d2
S_PSUM
Integrates the number of input pulses
S.PSUM EN ENO 8 Page 85
and outputs the result.
s1 d1
s2 d2
ENO:=S_PSUM(EN,s1,s2,d1,d2);
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.PID S1 D1 S2 D2 S3
Conducts process value derivative type
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.
ENO:=S_PID(EN,s1,s2,s3,d1,d2);
S.2PID S1 D1 S2 D2 S3
Performs 2-degree-of-freedom PID
S_2PID operation (incomplete derivative).
Control Performs SV setting processing,
S.2PID EN ENO 9 Page 98
operation s1 d1 tracking processing, gain Kp operation
instruction s2 d2 processing, 2-degree-of-freedom PID
s3
operation and deviation check.
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.
42
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.SPI S1 D1 S2 D2 S3
Judges between the operating time and
1
S_SPI hold time, and if it is the operating time,
performs SV setting processing,
S.SPI EN
s1
ENO
d1 tracking processing, gain Kp operation
9 Page 115
2
s2 d2 processing, SPI operation and deviation
s3
check.
ENO:=S_SPI(EN,s1,s2,s3,d1,d2); 3
S.IPD S1 D1 S2 D2 S3
S.BPI S1 D1 S2 D2 S3
6
Performs blend PI operation.
S_BPI
Performs SV setting processing,
S.BPI EN ENO tracking processing, gain Kp operation 9 Page 130
s1 d1
processing, BPI operation and deviation
7
s2 d2
s3 check.
Control
operation
ENO:=S_BPI(EN,s1,s2,s3,d1,d2);
8
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
6.2.2
6.2 List of Instructions
s1 d1
and ratio operation on the input data.
s2 d2
s3
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);
43
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.I S1 D1 S2 D2
S_I
Conducts integral operations on the
S.I EN ENO input data and outputs the operation 7 Page 150
s1 d1 results.
s2 d2
ENO:=S_I(EN,s1,s2,d1,d2);
S.D S1 D1 S2 D2
S_D
Conducts Derivative operations on the
S.D EN ENO input data and outputs the operation 7 Page 152
s1 d1 results.
s2 d2
ENO:=S_D(EN,s1,s2,d1,d2);
S.DED S1 D1 S2 D2
S_DED
Delays the input data by the specified
S.DED EN ENO 8 Page 154
dead time and then outputs it.
s1 d1
s2 d2
Control
ENO:=S_DED(EN,s1,s2,d1,d2);
operation
instruction S.HS S1 D1 S2 D2
S_HS
Outputs the maximum value among the
S.HS EN ENO 7 Page 157
input data.
s1 d1
s2 d2
ENO:=S_HS(EN,s1,s2,d1,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);
44
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.AVE S1 D1 S2 D2 1
S_AVE
Calculates and outputs the average
S.AVE EN
s1
ENO
d1
value of the input data.
8 Page 164
2
s2 d2
ENO:=S_AVE(EN,s1,s2,d1,d2); 3
S.LIMT S1 D1 S2 D2
S_LIMT 4
S.LIMT EN ENO Limits the output value with hysteresis. 8 Page 166
s1 d1
s2 d2 4
ENO:=S_LIMT(EN,s1,s2,d1,d2);
S.VLMT1 S1 D1 S2 D2
6
S_VLMT1
Limits the varying speed of the output
S.VLMT1 EN ENO 9 Page 168
s1 d1
value. 7
s2 d2
Control
operation
ENO:=S_VLMT1(EN,s1,s2,d1,d2);
8
instruction S.VLMT2 S1 D1 S2 D2
S_VLMT2
Limits the varying speed of the output
S.VLMT2 EN ENO 9 Page 171
value.
6.2.2
6.2 List of Instructions
s1 d1
s2 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 179
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);
45
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.DBND S1 D1 S2 D2
S_DBND
Provides a dead band and performs
S.DBND EN ENO 8 Page 185
output processing.
s1 d1
s2 d2
ENO:=S_DBND(EN,s1,s2,d1,d2);
S.PGS S1 D1 S2 D2
S_PGS
Provides a control output according to
S.PGS EN ENO 8 Page 187
the SV and MV pattern.
s1 d1
s2 d2
ENO:=S_PGS(EN,s1,s2,d1,d2);
S.SEL S1 D1 S2 D2 S3
ENO:=S_SEL(EN,s1,s2,s3,d1,d2);
S.BUMP S1 D1 S2 D2
ENO:=S_BUMP(EN,s1,s2,d1,d2);
S.AMR S1 D1 S2 D2
S_AMR
Increases or decreases the output value
S.AMR EN ENO 8 Page 201
at the fixed rate.
s1 d1
s2 d2
ENO:=S_AMR(EN,s1,s2,d1,d2);
46
6.2.3 Compensation operation instructions
1
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.FG S1 D1 S2 D2 2
S_FG
Outputs the value that follows the
S.FG EN ENO function generator pattern whose input 7 Page 203 3
s1 d1 data is specified.
s2 d2
ENO:=S_FG(EN,s1,s2,d1,d2); 4
S.IFG S1 D1 S2 D2
S_IFG
Outputs the value that follows the 4
S.IFG EN ENO inverse function generator pattern 8 Page 205
s1 d1 whose input data is specified.
s2 d2 6
ENO:=S_IFG(EN,s1,s2,d1,d2);
S.FLT S1 D1 S2 D2
7
S_FLT
Outputs the average value of n pieces
S.FLT of data sampled at the specified data 8 Page 207
8
EN ENO
s1 d1 collection intervals.
s2 d2
Compensa-
ENO:=S_FLT(EN,s1,s2,d1,d2);
tion operation
instruction S.SUM S1 D1 S2 D2
6.2.3
6.2 List of Instructions
S_SUM
Integrates the input data and outputs
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 212
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 215
engineering value.
s1 d1
s2 d2
ENO:=S_ENG(EN,s1,s2,d1,d2);
47
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.IENG S1 D1 S2 D2
S_IENG
Compensa- Reversely converts the input data from
tion operation S.IENG EN ENO the engineering value and outputs the 8 Page 217
instruction s1 d1 result.
s2 d2
ENO:=S_IENG(EN,s1,s2,d1,d2);
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.ADD S1 D1 S2 D2
S_ADD
S.ADD EN ENO Adds the input data with coefficients. 8 Page 219
s1 d1
s2 d2
ENO:=S_ADD(EN,s1,s2,d1,d2);
S.SUB S1 D1 S2 D2
S_SUB
Subtracts the input data with
S.SUB EN ENO 8 Page 221
coefficients.
s1 d1
s2 d2
Arithmetic
ENO:=S_SUB(EN,s1,s2,d1,d2);
operation
instruction S.MUL S1 D1 S2 D2
S_MUL
Multiplies the input data with
S.MUL EN ENO 8 Page 223
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 225
s1 d1
s2 d2
ENO:=S_DIV(EN,s1,s2,d1,d2);
48
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.SQR S1 D1 S2 D2
1
S_SQR
Outputs the square root ( ) of the
S.SQR EN
s1
ENO
d1
input data.
8 Page 227
2
s2 d2
Arithmetic
operation
ENO:=S_SQR(EN,s1,s2,d1,d2); 3
instruction S.ABS S1 D1 S2 D2
S_ABS 4
Outputs the absolute value of the input
S.ABS EN ENO 8 Page 229
data.
s1 d1
s2 d2 4
ENO:=S_ABS(EN,s1,s2,d1,d2);
6
6.2.5 Comparison operation instructions
Category
Instruction
Symbol Processing details
Number of
Reference
7
symbol steps
S. S1 D1 S2 D2
8
S_GT
Compares the input data and outputs
S. > EN ENO 7 Page 231
the result of comparison.
s1 d1
s2 d2
6.2.5
6.2 List of Instructions
ENO:=S_GT(EN,s1,s2,d1,d2);
S_LT
Comparison
Compares the input data and outputs
operation S. < EN ENO 7 Page 233
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 235
the result of comparison.
s1 d1
s2 d2
ENO:=S_EQ(EN,s1,s2,d1,d2);
49
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S. S1 D1 S2 D2
S_GE
Compares the input data and outputs
S. >= EN ENO 7 Page 237
the result of comparison.
s1 d1
s2 d2
Comparison
ENO:=S_GE(EN,s1,s2,d1,d2);
operation
instruction S. S1 D1 S2 D2
S_LE
Compares the input data and outputs
S. <= EN ENO 7 Page 239
the result of comparison.
s1 d1
s2 d2
ENO:=S_LE(EN,s1,s2,d1,d2);
Instruction Number of
Category Symbol Processing details Reference
symbol steps
S.AT1 S1 D1 S2 D2 D3
S_AT1
Auto Tuning Performs auto tuning and makes the
S.AT1 EN ENO 9 Page 244
Instruction s1 d1 initial setting of the PID constants.
s2 d2
d3
ENO:=S_AT1(EN,s1,s2,d1,d2,d3);
50
CHAPTER 7 HOW TO READ INSTRUCTION DETAILS
1
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.
2
1)
4
2)
4
3)
6
4)
7
5) 8
6)
51
1) A section number, instruction name, and instruction symbol
4) Explanations of the setting data. In Structured projects, replace the setting data S1 and D1 with s1 and d1.
For details on data types, refer to the MELSEC-Q/L/F Structured Programming Manual (Fundamentals).
*1: For the description for the individual devices, refer to the User's Manual (Function Explanation, Program Fundamentals) for
the CPU module used.
*2: FX and FY can be used only for bit data, and FD only for word data.
*3: Usable with the CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, and MELSECNET/10
*4: Devices which can be set are recorded in the "Constant" and the "Other" columns.
52
1
7)
6
8)
53
9)
10)
54
S.IN
8.1 S.IN 2
Ladder diagram
Start contact
3
S.IN S.IN S1 D1 S2 D2
EN
s1
ENO
d1
ENO:=S_IN(EN,s1,s2,d1,d2); 4
s2 d2
6
Input argument EN : Execution condition : Bit
S1 : Input data start device : Real data type
Output argument
S2
ENO
: Operation constant start device
: Execution result
: Array of real data type (0..7)
: Bit
7
D1 : Block memory start device : Array of any 16-bit data (0..2)
D2 : Loop tag memory start device : Array of any 16-bit data (0..127)
8
Setting Internal devices J \
R, ZR U \G Zn Constant Other
data Bit Word Bit Word
S1 –– ––
–– ––
8.1
D1
S2 –– ––
S.IN
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.
55
S.IN
Set Data
Block diagram
The processing block diagram of the S.IN instruction is shown below.
(The numerals (1) to (5) in the diagram indicate the order of the processing.)
RUN(SPA 0)
(5) Upper limit alarm
AND BB3
OR BB1
SPA
SEA
(5)
Last BW
ERRI SEI
Loop stop All OFF
MAN processing
MODE
Set Data
(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 ––
Block BB1 Alarm b15 b12 b8 b4 b0
B B B
memory B B B
+2 Input upper BIN
BB2 3 2 1
–– –– S
limit alarm 16bit
Input lower (0: Without alarm)
BB3 (1: With alarm)
limit alarm
*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.
56
S.IN
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S2 +0
EMAX
Engineering
conversion -999999 to 999999 %
Real
100.0 U
1
+1 number
upper limit
Engineering
+2
+3
EMIN conversion -999999 to 999999 %
Real
number
0.0 U 2
lower limit
+4 Input upper Real
NMAX -999999 to 999999 –– 100.0 U
+5 limit number
3
+6 Input lower Real
NMIN -999999 to 999999 –– 0.0 U
+7 limit number
Operation Upper limit
constant
+8
HH range error -999999 to 999999 ––
Real
110.0 U 4
+9 number
occurrence
Upper limit
+10 Real
+11
H range error -999999 to 999999 ––
number
100.0 U 4
return
Lower limit
+12 Real
L range error -999999 to 999999 –– 0.0 U
+13
return
number 6
Lower limit
+14 Real
LL range error -999999 to 999999 –– -10.0 U
+15 number
occurrence 7
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
V
M C A M A U A C C C
V B B B S T N C A M
16bit
8
0 to FFFFH
b15 b12 b8 b4 b0
S S
P E
Alarm A A
BIN
+3 ALM –– 0H S/U
8.1
detection 16bit
Loop tag SPA SEA
S.IN
*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 28, Section 3.3.1 for
details.)
57
S.IN
58
S.IN
EMAX
2
T1 NMIN
T2 (EMAX EMIN) EMIN
NMAX NMIN
EMIN 3
NMIN NMAX T1
Operation Error
8.1
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
S.IN
Error code Error definition QnPHCPU QnPRHCPU
When an operation error occurs
59
S.OUT1
8.2 S.OUT1
Ladder diagram
Start contact
S.OUT1 S.OUT1 S1 D1 S2 D2
S_OUT1
EN ENO
ENO:=S_OUT1(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 , 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.
60
S.OUT1
Set Data
Block diagram
1
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.)
(6)
RUN(SPA 0)
MAN or like
4
Loop STOP(SPA 1)
stop Alarm clear
judgment processing
Upper limit alarm 4
Lower limit alarm
SPA
6
ERRI DMLI
8
AND BB4
8.2
MHA
S.OUT1
MLA
DMLA
TRKF OR BB1
MODE
(6)
Last BW
All OFF Loop stop
MAN processing All OFF
61
S.OUT1
Set Data
(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
Input data E1 -999999 to 999999 % –– U
+1 ( MV) number
D1 +0 Real
BW Output value (-999999 to 999999) –– –– S
+1 number
BB ––
BB1 Alarm
Block Output upper b15 b12 b8 b4 b0
BB2 B B B B
memory limit alarm 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)
BB4
rate alarm
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
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 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 28, Section 3.3.1 for
details.)
62
S.OUT1
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
D2 +18
MH
Output upper
-10 to 110 %
Real
100.0 U
1
+19 limit value number
+20 Output lower Real
ML -10 to 110 % 0.0 U
+21 limit value number 2
Output change
+48 Real
Loop tag DML rate 0 to 100 % 100.0 U
+49 number
memory *2 limit value
3
+54 Integral Real
I 0 to 999999 s 10.0 U
+55 constant number
MV inside
+62
MVP operation (-999999 to 999999) %
Real
0.0 S
4
+63 number
value
Loop tag
past value
D2 +116 –– –– Used by the system as a work area. –– –– –– S
4
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. 6
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 28, Section 3.3.1 for
details.)
*3 The application of the loop tag past value memory are indicated below.
Specified position Description
7
Alarm detection 2 (ALM2)
b15 b12 b8 b4 b0
M
L
M
H
8
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.
8.2
S.OUT1
(2) Execution cycle ( T)
Set the execution cycle in SD1500 and SD1501 as real numbers.
(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.
63
S.OUT1
*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 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.
64
S.OUT1
BW
NMAX NMIN
MV NMIN 4
100
8.2
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.
S.OUT1
• 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.
65
S.OUT2
8.3 S.OUT2
Ladder diagram
Start contact
S.OUT2 S.OUT2 S1 D1 S2 D2
S_OUT2
EN ENO
ENO:=S_OUT2(EN,s1,s2,d1,d2);
s1 d1
s2 d2
Function
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.
66
S.OUT2
Set Data
Block diagram
1
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.)
(4) RUN(SPA 0)
4
MAN or like Alarm clear
Loop processing
STOP(SPA 1)
stop
judgment Upper limit alarm 4
Lower limit alarm
SPA
6
BB2
ERRI MHI AND
7
ERRI MLI AND BB3
ERRI DMLI
8
AND BB4
8.3
MHA
S.OUT2
MLA
DMLA
OR BB1
MODE
(4)
Last BW
All OFF Loop stop
MAN processing All OFF
67
S.OUT2
Set Data
(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
Input data E1 -999999 to 999999 % –– U
+1 value(MV) number
D1 +0 Real
BW Output value (-999999 to 999999) –– –– S
+1 number
BB
BB1 Alarm
Block Output upper b15 b12 b8 b4 b0
BB2 B B B B
memory limit alarm 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)
BB4
rate alarm
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
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
DMLA, SEA, MHA, MLA
Loop tag (0: Without alarm)
(1: With alarm)
memory *2
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 28, Section 3.3.1 for
details.)
68
S.OUT2
(b) The upper/lower limiter performs the following operation and outputs the result of the operation to BB2, BB3, MHA 8
and MLA.
Condition BB3, MLA BB2, MHA MV
T1 > MH 0 1 *2 MH
T1 < ML 1 *3 0 ML
8.3
ML T1 MH 0 0 T1
S.OUT2
*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.
69
S.OUT2
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
70
S.MOUT
8.4 S.MOUT
1
Ladder diagram
Start contact 2
S.MOUT S.MOUT S1 D1 S2 D2
EN ENO
ENO:=S_MOUT(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.4
S.MOUT
Function
Converts the manipulated value (MV) specified in D2 into an output, and stores the result into the device specified in D1 .
71
S.MOUT
Set Data
Block diagram
The processing block diagram of the S.MOUT instruction is shown below.
(The numerals (1) to (3) in the diagram indicate the order of the processing.)
MV NMAX, NMIN
(1) (2)
MAN or like
Mode Output
judgment conversion BW
Loop
stop STOP(SPA 1)
judgment
(3)
SPA
Loop stop Last BW
MODE MAN processing
72
S.MOUT
Set Data
1
(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 2
BW Output value (-999999 to 999999) –– –– S
memory +1 number
Output
Real
S2 +0
+1
NMAX conversion -999999 to 999999 ––
number
100.0 U 3
Operation upper limit
constant Output
+2 Real
NMIN conversion -999999 to 999999 –– 0.0 U
+3
lower limit
number 4
0 to FFFFH
b15 b12 b8 b4 b0
D2 +1 MODE
Operation C
S
C C C C C A M L L L
M C A M A U A C C C ––
BIN
8H S/U 4
mode V V B B B S T N C A M 16bit
0 to FFFFH 6
Loop tag
b15 b12 b8 b4 b0
memory *2 S
P
Alarm BIN
+3 ALM
detection
A ––
16bit
4000H S/U 7
SPA
0: Loop RUN
1: Loop STOP
+12 Manipulated Real
8
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 28, Section 3.3.1 for
8.4
details.)
S.MOUT
Set Data contents
Processing
(1) Mode judgment
Either of the following processings is performed depending on the operation mode (MODE).
(a) When the operation mode (MODE) is any of MAN, CMB, CMV and LCM
1) The manipulated value (MV) is used as the output value (BW).
2) "(2) Output conversion processing" is performed.
(b) When the operation mode (MODE) is any of AUT, CAB, CAS, CCB, CSV, LCA and LCC, BW retains the last value.
73
S.MOUT
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
74
S.DUTY
8.5 S.DUTY
1
Ladder diagram
Start contact
2
S.DUTY S.DUTY S1 D1 S2 D2
EN ENO
ENO:=S_DUTY(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.5
S.DUTY
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
75
S.DUTY
Set Data
Block diagram
The processing block diagram of the S.DUTY instruction is shown below.
(The numerals (1) to (7) in the diagram indicate the order of the processing.)
AUT
(1) or like (2) (3) (4) (5) (6)
E1
Input Change rate, Output
Mode Reset Output
addition upper/lower ON time BW
judgment windup conversion
processing limiter conversion
SPA
ERRI DMLI
AND BB4
MHA
MLA
DMLA
TRKF OR BB1
MODE
(7)
Last BW
All OFF Loop stop
MAN processing All OFF
76
S.DUTY
Set Data
1
(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 2
Input data E1 -999999 to 999999 % –– U
+1 ( MV) number
BW ––
b15 b12 b8 b4 b0 3
B
W
D1 +0 1 BIN
BW1 Output bit –– –– S
16Bit
(0: OFF) 4
(1: ON)
Block BB
memory BB1 Alarm
Output upper
4
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
limit alarm
––
16Bit
–– S
6
Output (0: Without alarm)
(1: With alarm)
BB4 change rate
alarm
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 16Bit
S
V
M C A M A U A C C C
V B B B S T N C A M 8
0 to FFFFH
b15 b12 b8 b4 b0
S D S M M
P M E H L
8.5
A L A A A
A
Alarm BIN
S.DUTY
+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 28, Section 3.3.1 for
details.)
77
S.DUTY
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
MHA2,MLA2
(0: Without alarm)
(1: With alarm)
78
S.DUTY
(b) When the operation mode (MODE) is any of AUT, CAB, CAS, CCB, CSV, LCA and LCC, "(2) Input addition 4
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. 4
(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.
6
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) 7
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 8
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
8.5
MVP = T
S.DUTY
(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 MV + DML
1
(T - MV) < - DML *1 MV - DML
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 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.
79
S.DUTY
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) When the control output cycle (CTDUTY) is not reached, the output counter is incremented by 1 and "(6) Output
conversion processing" is performed.
(6) Output conversion processing
In the output conversion processing, the following processing is performed.
Condition BW
Output counter < output ON counter 1 (ON)
Output counter output ON counter 0 (OFF)
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 3 2 1 BIN
alarm –– –– 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 28, 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 28, 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
BIN
D1 +0
+1
BW1 (Integer (0 to 2147483647) ––
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 28, 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 28, 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 28, 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 28, 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
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 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 2. When either of MHA2 or MLA2 is
to 1 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
to 1 turned to 1
CT CT
(MVP < ML) and ( DVn 0) (MVP < ML) and ( DVn 0)
TI 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 28, 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 28, 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
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 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 2. When either of MHA2 or MLA2 is
to 1 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
to 1 turned to 1
CT CT
(MVP < ML) and ( DVn 0) (MVP < ML) and ( DVn 0)
TI 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 28, 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 28, 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
: 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 MV
In-1 = - (DVn + Bn)
–– Kp
detection inhibition (INH) is turned to
TRKF=0
1.
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
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored into SD0.
113
S.PIDP
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 CT Real
ST Operating time 0 to 999999 Note that 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 28, 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 28, 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 QnPHCPU/QnPRHCPU (First 5 digits of Processing
the serial No. : 07031 or the 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 2. When either of MHA2 or MLA2 is turned
to 1 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 CT
(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 28, 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 28, 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
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 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 error is 2. When either of MHA2 or MLA2 is
turned to 1 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 CT
(MVP < ML) and ( DVn 0) (MVP < ML) and ( DVn 0)
TI 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 28, 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 28, 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 BIN
+3 ALM A –– 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 28, 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 28, 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 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 28, 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 28, 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
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.
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.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
172
S.ONF2
9.20 S.ONF2
9
Ladder diagram
Start contact 2
S.ONF2 S.ONF2 S1 D1 S2 D2 S3
EN ENO
ENO:=S_ONF2(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.20 S.ONF2
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.
173
S.ONF2
Set Data
Block diagram
The processing block diagram of the S.ONF2 instruction is shown below.
(The numerals (1) to (7) in the diagram indicate the order of the processing.)
RL, RH HSO DV MV
E1
(1) (2) (3) (4)
E2
SV setting Tracking MV
(When MV output BW
processing processing compensation
used)
(5)
(7) When in control
cycle 2-position BB1
CT Control cycle ON/OFF
judgment control
RUN(SPA 0) When not in control
(6) cycle
MAN, CMB, CMV, LCM
Loop STOP(SPA 1) Mode
stop judgment
judgment
Other than MAN, CMB, CMV, LCM
(6)
SPA Last BW
Loop stop
MAN processing
MODE
174
S.ONF2
Set Data
9
(1) Data specified in S.ONF2 instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
S1 +0 Real 2
Input data E1 Input value -999999 to 999999 % –– S/U
+1 number
D1 +0 Real
+1
BW Output value (-999999 to 999999) %
number
–– S
3
BB ––
Block b15 b12 b8 b4 b0
memory
+2 Operation
B
B
1 BIN
4
BB1 –– –– S
result 16bit
(0: |BW| 50 )
(1: |BW| 50 )
4
Operation 0: Reverse operation BIN
S2 +0 PN –– 0 U
mode 1: Forward operation 16bit
0: Without tracking BIN
+1 TRK Tracking bit
1: With tracking
––
16bit
0 U 6
0 to 3
b15 b12 b8 b4 b0
Operation 7
constant
Set value BIN
+2 SVPTN –– 3 U
pattern 16bit
8
Set value pattern *3 Set value used*2
0: E2 is upper loop MV. 0: E2 is used.
1: E2 is not upper loop MV. 1: E2 is not used.
0 to FFFFH
9.20 S.ONF2
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
Loop 0 to FFFFH
tag
b15 b12 b8 b4 b0
memory *4 S
P
Alarm BIN
+3 ALM A –– 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 28, Section 3.3.1 for
details.)
175
S.ONF2
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
0 to FFFFH
b15 b12 b8 b4 b0
T
Alarm R
K BIN
D2 +4 INH detection F –– 4000H S/U
16Bit
inhibit
TRKF
(0: Without tracking)
(1: With tracking)
*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 28, 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.
176
S.ONF2
SVn
RH RL
E2 RL 3
100
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'.
100
6
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.
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.
8
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
9.20 S.ONF2
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
177
S.ONF2
(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
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
178
S.ONF3
9.21 S.ONF3
9
Ladder diagram
Start contact 2
S.ONF3 S.ONF3 S1 D1 S2 D2 S3
EN ENO
ENO:=S_ONF3(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.21 S.ONF3
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.
179
S.ONF3
Set Data
Block diagram
The processing block diagram of the S.ONF3 instruction is shown below.
(The numerals (1) to (7) in the diagram indicate the order of the processing.)
E1
(1) (2) (3) (4)
E2
SV setting Tracking MV
(When MV output BW
processing processing compensation
used)
(5)
(7) When in control
cycle 3-position BB1
CT Control cycle ON/OFF
judgment control BB2
RUN(SPA 0) When not in control
(6) cycle
MAN, CMB, CMV, LCM
Loop STOP(SPA 1) Mode
stop judgment
judgment
Other than MAN, CMB, CMV, LCM
(6)
SPA Last BW
Loop stop
MAN processing
MODE
180
S.ONF3
Set Data
9
(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 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 ––
Operation
b15 b12 b8 b4
B
b0
B
4
BB1 B B
result 2 1
Block
memory
+2
––
BIN
–– S
4
16bit
S2 +0 PN
Operation 0: Reverse operation
––
BIN
0 U
7
mode 1: Forward operation 16bit
0: Without tracking BIN
+1 TRK Tracking bit –– 0 U
1: With tracking
0 to 3
16bit
8
b15 b12 b8 b4 b0
Operation
constant
Set value BIN
+2 SVPTN –– 3 U
9.21 S.ONF3
pattern 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 28, Section 3.3.1 for
details.)
181
S.ONF3
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
0 to FFFFH
b15 b12 b8 b4 b0
T
Alarm R
K BIN
D2 +4 INH detection F –– 4000H S/U
16Bit
inhibit
TRKF
(0: Without tracking)
(1: With tracking)
*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 28, 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.
182
S.ONF3
SVn
RH RL
E2 RL 3
100
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
(SVn RL)
6
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. 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) MV compensation
After the deviation (DV) is calculated from the input value (E1) and the set value after tracking processing (SVn'), the MV
9.21 S.ONF3
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
183
S.ONF3
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
184
S.DBND
9.22 S.DBND
9
Ladder diagram
Start contact
2
S.DBND S.DBND S1 D1 S2 D2
EN ENO
ENO:=S_DBND(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.22 S.DBND
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
185
S.DBND
Set Data
(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
E1 Input value -999999 to 999999 % –– U
data +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 Dead band 1 BIN
BB1 –– –– S
action 16bit
(0: Outside the dead band range)
(1: Within the dead band range)
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
186
S.PGS
9.23 S.PGS
9
Ladder diagram
Start contact 2
S.PGS S.PGS S1 D1 S2 D2
EN ENO
ENO:=S_PGS(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
D1 –– ––
8
S2 –– ––
D2 –– ––
9.23 S.PGS
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
187
S.PGS
Set Data
Block diagram
The processing block diagram of the S.PGS instruction is shown below.
(The numerals (2) to (5) in the diagram indicate the order of the processing.)
MV PGS Output
SV count-up BW
Operation processing
BB1
OR
RUN(SPA 0) BB2
PTNO.
(2) BB3
Loop stop
judgment STOP(SPA 1)
SPA
MHA
MLA
MODE (2)
Last BW
All OFF Loop stop
processing All OFF
MAN
188
S.PGS
Set Data
9
(1) Data specified in S.PGS instruction
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
D1 +0
2
BW Output value (-999999 to 999999) % Real number –– S
+1
BB ––
6
0 to FFFFH
b15 b12 b8 b4 b0
S M M
+3 ALM
Alarm P
A
H L
A A ––
BIN
4000H S/U
7
detection 16bit
SPA MHA, MLA
0: Loop RUN (0: Without alarm)
1: Loop STOP (1: With alarm) 8
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
9.23 S.PGS
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 28, Section 3.3.1 for
details.)
189
S.PGS
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
+20 Output lower Real
ML -10 to 110 % 0.0 U
+21 limit value number
+22
SV1 Setting time 1
+23
Real
0 to 999999 s 0.0 U
number
Loop tag +52 Setting time
SV16
memory *2 +53 16
+54 Setting output
MV1
+55 1
Real
-10 to 110 % 0.0 U
number
+84 Setting output
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.
*2 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 28, Section 3.3.1 for
details.)
(2) Execution cycle ( T)
Set the execution cycle in SD1500 and SD1501 as real numbers.
190
S.PGS
9.23 S.PGS
Error code Error definition QnPHCPU QnPRHCPU
When an operation error occurs
191
S. SEL
9.24 S. SEL
Ladder diagram
Start contact
S.SEL S.SEL S1 D1 S2 D2 S3
S_SEL
EN ENO
ENO:=S_SEL(EN,s1,s2,d1,d2);
s1 d1
s2 d2
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.
192
S. SEL
Set Data
Block diagram
9
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.)
2
RH, RL SLNO PV, PV1 to PV2 RH, RL NMAX, NMIN INH MV TRK
e1
Loop
stop
STOP(SPA 1)
All OFF
6
BB1
judgment
OR
SPA 7
MHA
BB2
MLA
BB3 8
BB4
DMLA
(7)
9.24 S. SEL
MAN processing All OFF
193
S. SEL
Set Data
(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
E1 Input value 1 -999999 to 999999 % –– U
1 +1 number
D1 +0 Real
BW Output value (-999999 to 999999) –– –– S
+1 number
BB ––
BB1 Alarm
Block b15 b12 b8 b4 b0
Output upper B B B B
memory BB2 B B B B
+2 limit alarm 4 3 2 1
–– BIN 16bit –– S
Output lower
BB3 (0: Without alarm)
limit alarm
(1: With alarm)
Output change
BB4
rate alarm
Output
S2 +0 Real
NMAX conversion -999999 to 999999 –– 100.0 U
+1 number
upper limit
Output
+2 Real
NMIN conversion -999999 to 999999 –– 0.0 U
+3 number
lower limit
0: Without tracking
+4 TRK Tracking bit –– BIN 16it 0 U
1: With tracking
b15 b0
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).
194
S. SEL
Standard Set
Specified position Symbol Name Recommended range *1 Unit Data format
value by
0 to FFFFH 9
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
2
0 to FFFFH
b15 b12 b8 b4 b0
Alarm
S
P
D
M
M M
H L
BIN
3
A L A A
+3 ALM A –– 4000H S/U
detection 16bit
SPA DMLA, MHA, MLA
0: Loop RUN
1: Loop STOP
(0: Without alarm)
(1: With alarm)
4
0 to FFFFH
Alarm
b15
E
b12
D
b8 b4 b0
M M 4
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 6
+10 Selection Real
PV RL to RH –– 0.0 S
+11 value number
+12
MV
Manipulated
-10 to 110 %
Real
0.0 S/U
7
+13 value number
9.24 S. SEL
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 28, Section 3.3.1 for
details.)
195
S. SEL
196
S. SEL
BW
NMAX NMIN
100
MVn NMIN 9
(6) Tracking processing
(a) When all of the following conditions hold, the operation result is output to the input value 1 (E1) or input value 2 2
(E2).
1) The operation mode (MODE) is any of MAN, CMB, CMV and LCM.
2) The tracking bit (TRK) is 1. 3
En = MVn
(b) When all of the following conditions hold, the operation result is output to the input value 1 (E1) or input value 2
(E2). 4
1) The operation mode (MODE) is any of AUT, CAS, CAB, CCB, CSV, LCA and LCC.
2) The tracking bit (TRK) is 1.
3) BB1 of BB is 1 4
En = MVn
(7) Loop stop processing
(a) Setting 1 in SPA of the alarm detection (ALM) selects a loop stop.
6
A loop stop performs the following processing and terminates the S.SEL instruction.
1) BW retains the last value.
2) DMLA, MHA and MLA of the alarm detection (ALM) are turned to 0.
7
3) The operation mode (MODE) is changed to MAN.
4) BB1 to BB4 of BB are turned to 0.
8
(b) Setting 0 in SPA of the alarm detection (ALM) selects a loop run.
A loop run performs "(1) Engineering value conversion ".
Operation Error
9.24 S. SEL
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
197
S.BUMP
9.25 S.BUMP
Ladder diagram
Start contact
S.BUMP S.BUMP S1 D1 S2 D2
S_BUMP
EN ENO
ENO:=S_BUMP(EN,s1,s2,d1,d2);
s1 d1
s2 d2
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).
198
S.BUMP
Set Data
9
(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 2
E1 -999999 to 999999 % –– U
+1 value number
+2 Output control Real
E2 -999999 to 999999 % –– U
Input data +3 value number 3
Mode
0: Manual mode BIN
+4 e1 switching –– –– U
1: Automatic mode 16Bit
signal
Block D1 +0 Real
4
BW Output value (-999999 to 999999) % –– S
memory +1 number
+0 Real
4
S2
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
D2 +0
Initial 6
Xq deviation
Local work +1 Real
value Used by the system as a work area. –– 1.0 S
memory *2 number
+2
+3
Xp Deviation 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 The loop tag memory and loop tag past value memory occupy a total of 128 words. (Refer to Page 28, Section 3.3.1 for 8
details.)
(2) Execution cycle ( T)
Set the execution cycle in SD1500 and SD1501 as real numbers.
9.25 S.BUMP
Set Data contents
Processing
(1) Either of the following processings is performed depending on the mode select signal (e1) setting of the input data.
(a) In the manual mode (e1 = 0), the output value (BW), initial deviation value (Xg) and deviation (Xp) are calculated
with the following expressions.
• BW = output control value (E2)
• Xq = output control value (E2) - output set value (E1)
• Xp = output control value (E2) - output set value (E1)
(b) In the automatic mode (e1 = 1), the output value is calculated with the following expression.
Condition |Xp| > a |Xp| a
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'
199
S.BUMP
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
200
S.AMR
9.26 S.AMR
9
Ladder diagram
Start contact 2
S.AMR S.AMR S1 D1 S2 D2
EN ENO
ENO:=S_AMR(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.26 S.AMR
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
201
S.AMR
Set Data
(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
E1 -999999 to 999999 –– –– U
+1 addition value number
Output
+2 Real
E2 subtraction -999999 to 999999 –– –– U
+3 number
value
+4 Output set Real
E3 -999999 to 999999 –– –– U
Input +5 value number
data Operation
e1 b15 b12 b8 b4 b0
select signal
e e e
Output 3 2 1
e2 BIN
+6 addition signal –– –– U
16Bit
Output e1 e2 e3
0: Manual mode 0: Not added 0: Not subtracted
e3 subtraction 1: Automatic mode 1: Added 1: Subtracted
signal
Block D1 +0 Real
BW Output value (-999999 to 999999) –– –– S
memory +1 number
S2 +0 Output upper Real
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
system. Users cannot set the data.
(2) Execution cycle ( T)
Set the execution cycle in SD1500 and SD1501 as real numbers.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
202
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)
203
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.
204
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)
205
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.
206
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.
207
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
208
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
209
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.
210
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
Operation
+2
+3
A Initial value -999999 to 999999 ––
Real
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.
211
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.
212
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
10.5 S.TPC
B2 -999999 to 999999 –– 10332.0 U
+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
213
S.TPC
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
214
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
215
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.
216
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
217
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.
218
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.
219
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.
220
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.
221
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.
222
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.
223
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.
224
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).
225
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.
226
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.
227
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.
228
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
229
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
B B
memory 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.
230
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.
231
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.
232
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.
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.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.
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.)
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.
236
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.
237
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.
238
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.
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
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
241
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
242
(1) Time chart from auto tuning start until normal completion
MV MV + AT1STEPMV MV
8
Manipulated value MV
243
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.
244
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 28, Section 3.3.1 for
details.)
245
S. AT1
246
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.
247
S. AT1
248
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
249
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.
250
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.
• SD1502: Detailed error code that occurred in a process control instruction
14
• 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
Error code Error definition code stored in Cause Processing
8
SD1502
There is either a non-numeric or
1
non-normalized number.
Sign error
251
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.
252
APPENDIX
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.
253
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
254
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
255
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
256
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
257
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
258
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
259
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
260
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
261
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
262
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
263
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.
264
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
265
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
266
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
267
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.
Instruction Condition Processing time(µs)
S.IN Condition where ALM does not turn ON during loop run 69
S.OUT1 Condition where ALM does not turn ON during loop run in AUT mode 47
S.OUT2 Condition where ALM does not turn ON during loop run in AUT mode 37
S.MOUT Executed during loop run in MAN mode 27
Execution cycle = 1, Control output cycle = 10
S.DUTY 55
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
Integration start signal = ON
S.PSUM 23
Integration hold signal = OFF
Set value pattern = 3(Without cascade)
Tracking bit = 0
Execution cycle = Control cycle = 1
S.PID 104
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
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
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
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
Integral constant 0
Derivative constant 0
Condition where ALM does not turn ON during loop run in AUT mode
268
Instruction Condition Processing time(µs)
Set value pattern = 3(Without cascade)
Tracking bit = 0 1
S.BPI Execution cycle = Control cycle = 1 75
Integral constant 0
Condition where ALM does not turn ON during loop run in AUT mode
Set value pattern = 3(Without cascade)
2
Tracking bit = 0
S.R 58
Execution cycle = Control cycle = 1
Executed during loop run in AUT 3
S.PHPL Condition where ALM does not turn ON during loop run in AUT mode 100
Input data = 50, With lead-lag guarantee
S.LLAG 30
Lead time = 1, Delay time = 1
Input data = 50, Integral time = 1
4
S.I 23
Output initial value = 0
Input data = 50, Derivative time = 1
S.D
Output initial value = 0
27
1
Input data = 50
Operation control signal 0 1
S.DED
Data collection interval = 1
Sampling count = 10
17 6
Output initial value = 0
Initial output switching = 0
S.HS
Input number = 5
29
A
Input data = 50, 100, 150, 200, 250
Input number = 5
S.LS 32
Input data = 50, 100, 150, 200, 250
Input number = 5
8
S.MID 69
Input data = 50, 100, 150, 200, 250
S.AVE Input number = 2, Input data = 50, 100 24
Input data = 50
Upper limit value = 100
269
Instruction Condition Processing time(µs)
Number of operation constant polygon points = 16
Operation type = 0(Hold type)
S.PGS Execution cycle = 1 86
Set value = 10
Condition where ALM does not turn ON during loop run in AUT mode
Set value pattern = 18H(E1, E2 Used, Without cascade)
S.SEL Tracking bit = 0 68
Condition where ALM does not turn ON during loop run in AUT mode
Output set value = 0, Output control value = 50
S.BUMP Mode selection signal = 1 18
Delay time = 1, Delay zone = 1
Output addition value = 50, Output subtraction value = 50
Output set value = 0, Output signal = 1
S.AMR 25
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
S.IFG Polygon coordinates (30, 40), (60, 70)
Input data = 50, Data collection interval = 1
S.FLT 40
Sampling count = 10
Input data = 50
S.SUM Input low cut value = 0, Initial value = 0 25
Input range = 1
Both temperature and pressure are corrected.
Differential pressure = 100, Measurement temperature = 300
Measured pressure = 10000, Design temperature = 0
S.TPC 39
Bias (Temperature) = 273.15
Design pressure = 0
Bias pressure = 10332.0
S.ENG Input data = 50, Engineering value upper limit = 100
25
S.IENG Engineering value lower limit = 0
Input number = 2, Input data = 50, 100
S.ADD 25
Number of coefficients = 2, Coefficient = 1, 1, Bias = 0
Input number = 2, Input data = 50, 100
S.SUB 26
Number of coefficients = 2, Coefficient = 1, 1, Bias = 0
Input number = 2, Input data = 50, 100
S.MUL 24
Number of coefficients = 2, Coefficient = 1, 1, Bias = 0
Input data = 50, 100
S.DIV 27
Coefficient = 1, 1, 1, Bias = 0, 0, 0
Input data = 50
S.SQR 34
Output low cut value = 0, Coefficient = 10
S.ABS Input data = 50 17
Input data = 50, 100
S.> 22
Set value = 0, Hysteresis = 0
Input data = 50, 100
S.< 19
Set value = 0, Hysteresis = 0
Input data = 50, 100
S.= 18
Set value = 0
Input data = 50, 100
S.>= 22
Set value = 0, Hysteresis = 0
Input data = 50, 100
S.<= 19
Set value = 0, Hysteresis = 0
Set value pattern = 3(Without cascade)
Tracking bit = 0
S.AT1 67
Execution cycle = 1
Executed during loop run in MAN mode
270
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
271
(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
272
INDEX 9
0 to 9 E
10
2-degree-of-freedom PID Control (S.2PID) . . . . . . . 98 Engineering Value Conversion (S.ENG) . . . . . . . .215
2-position ON/OFF (S.ONF2) . . . . . . . . . . . . . . . . 173 Execution cycle . . . . . . . . . . . . . . . . . . . . . . . . . . .34
3-position ON/OFF (S.ONF3) . . . . . . . . . . . . . . . . 179
11
F
A
Forward Operation . . . . . . . . . . . . . . . . . . . . . . . . 14
Absolute Value (S.ABS) . . . . . . . . . . . . . . . . . . . . 229 Function Generator (S.FG) . . . . . . . . . . . . . . . . . .203 12
Addition (S.ADD) . . . . . . . . . . . . . . . . . . . . . . . . 219
Alarm detection (ALM) . . . . . . . . . . . . . . . . . . . . . . 31
H
Alarm detection inhibition (INH) . . . . . . . . . . . . . . . 32
ALM(Alarm detection) . . . . . . . . . . . . . . . . . . . . . . 30 HHA (Upper upper limit alarm) . . . . . . . . . . . . . . . .32 10
Analog Input Processing (S.IN) . . . . . . . . . . . . . . . . 55 High Selector (S.HS) . . . . . . . . . . . . . . . . . . . . . .157
Analog Memory (S.AMR) . . . . . . . . . . . . . . . . . . . 201 High/Low Limit Alarm (S.PHPL) . . . . . . . . . . . . . .142
AUT (AUTOMATIC). . . . . . . . . . . . . . . . . . . . . . . . 33 High/Low Limiter (S.LIMT) . . . . . . . . . . . . . . . . . .166
Auto tuning instruction (S. AT1) . . . . . . . . . . . . . . 244 HOW TO READ INSTRUCTION DETAILS . . . . . . . .51 15
Average Value (S.AVE) . . . . . . . . . . . . . . . . . . . . 164
I
B 15
I operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
Basic PID (S.PID) . . . . . . . . . . . . . . . . . . . . . . . . . 90 INH (Alarm detection inhibition) . . . . . . . . . . . . . . .32
Batch Counter (S.BC) . . . . . . . . . . . . . . . . . . . . . . 81 Input data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Blend PI control . . . . . . . . . .
Block memory. . . . . . . . . . . .
. . . . . . . . . . . . . . . 130
. . . . . . . . . . . . . . . . 30
Integral (S.I) . . . . . . . . . . . . . . . . . . . . . . . . . . . .150 I
Integral operation (I operation) . . . . . . . . . . . . . . . .16
Bumpless function . . . . . . . . . . . . . . . . . . . . . . . . . 37 Inverse Engineering Value Conversion (S.IENG) . .217
Bumpless Transfer (S.BUMP) . . . . . . . . . . . . . . . 198 Inverse Function Generator (S.IFG) . . . . . . . . . . .205
I-PD Control (S.IPD) . . . . . . . . . . . . . . . . . . . . . .122
C
L
CAB (COMPUTER AUTOMATIC BACK UP) . . . . . . 33
CAS (CASCADE) . . . . . . . . . . . . . . . . . . . . . . . . . 33 LCA (LOCAL AUTOMATIC) . . . . . . . . . . . . . . . . . . 33
Cascade loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 LCC (LOCAL CASCADE). . . . . . . . . . . . . . . . . . . .33
CCB (COMPUTER CASCADE BACK UP) . . . . . . . . 33 LCM (LOCAL MANIPULATED) . . . . . . . . . . . . . . . .33
CMB (COMPUTER MANUAL BACK UP) . . . . . . . . . 33 Lead-Lag (S.LLAG) . . . . . . . . . . . . . . . . . . . . . . .148
CMV (COMPUTER MV). . . . . . . . . . . . . . . . . . . . . 33 List of Error Codes . . . . . . . . . . . . . . . . . . . . . . .251
Compare Equal Than (S. =) . . . . . . . . . . . . . . . . . 235 LLA(Lower lower limit alarm) . . . . . . . . . . . . . . . . .32
Compare Greater Or Equal (S. >=) . . . . . . . . . . . . 237 Local Work Memory . . . . . . . . . . . . . . . . . . . . . . .27
Compare Greater Than (S. >) . . . . . . . . . . . . . . . . 231 Loop memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Compare Less Or Equal (S. <=) . . . . . . . . . . . . . . 239 Loop selector . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
Compare Less Than (S. <) . . . . . . . . . . . . . . . . . . 233 Loop Selector (S. SEL) . . . . . . . . . . . . . . . . . . . .192
Control cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Loop tag past value memory . . . . . . . . . . . . . . . . .29
CSV (COMPUTER SV) . . . . . . . . . . . . . . . . . . . . . 33 Loop Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
Low Selector (S.LS) . . . . . . . . . . . . . . . . . . . . . .159
D Lower limit alarm (PLA) . . . . . . . . . . . . . . . . . . . . . 32
Lower lower limit alarm(LLA) . . . . . . . . . . . . . . . . .32
D operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Data Used for Process Control Instructions . . . . . . . 28
M
Dead Band (S.DBND) . . . . . . . . . . . . . . . . . . . . . 185
Dead Time (S.DED) . . . . . . . . . . . . . . . . . . . . . . 154 MAN (MANUAL) . . . . . . . . . . . . . . . . . . . . . . . . . .33
Derivative . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 Manual Output (S.MOUT) . . . . . . . . . . . . . . . . . . .71
Derivative operation (D operation). . . . . . . . . . . . . . 17 MHA (Output upper limit alarm). . . . . . . . . . . . . . . .32
Deviation large alarm (DVLA) . . . . . . . . . . . . . . . . . 32 Middle Value Selection (S.MID) . . . . . . . . . . . . . .161
Division (S.DIV) . . . . . . . . . . . . . . . . . . . . . . . . . 225 MLA (Output lower limit alarm) . . . . . . . . . . . . . . . .32
DMLA (Output change rate limit alarm) . . . . . . . . . . 32 MODE (Operation mode) . . . . . . . . . . . . . . . . . . . .33
DPNA (Negative direction change rate alarm) . . . . . 32 Multiplication (S.MUL) . . . . . . . . . . . . . . . . . . . . .223
DPPA (Positive direction change rate alarm) . . . . . . 32
DVLA (Deviation large alarm) . . . . . . . . . . . . . . . . . 32
273
N T
Negative direction change rate alarm (DPNA) . . . . . 32 Temperature/Pressure Correction (S.TPC) . . . . . . 212
Time Proportioning(S.DUTY) . . . . . . . . . . . . . . . . . 75
Tracking flag (TRKF) . . . . . . . . . . . . . . . . . . . . . . 32
O
Tracking function . . . . . . . . . . . . . . . . . . . . . . . . . 37
OOPA (Output open alarm) . . . . . . . . . . . . . . . . . . 32 TRKF (Tracking flag) . . . . . . . . . . . . . . . . . . . . . . 32
Operation constant . . . . . . . . . . . . . . . . . . . . . . . . 30
Operation mode (MODE) . . . . . . . . . . . . . . . . . . . 33 U
Operation Processing Time . . . . . . . . . . . . . . . . . 268
Output change rate limit alarm (DMLA) . . . . . . . . . . 32 Upper limit alarm (PHA) . . . . . . . . . . . . . . . . . . . . 32
Output limiter processing function . . . . . . . . . . . . . 37 Upper upper limit alarm (HHA) . . . . . . . . . . . . . . . . 32
Output lower limit alarm (MLA) . . . . . . . . . . . . . . . 32
Output open alarm (OOPA) . . . . . . . . . . . . . . . . . . 32
V
Output Processing-1 with Mode Switching (S.OUT1) 60
Output Processing-2 with Mode Switching (S.OUT2) 66 Variation Rate Limiter 1 (S.VLMT1) . . . . . . . . . . . 168
Output upper limit alarm (MHA) . . . . . . . . . . . . . . . 32 Variation Rate Limiter 2 (S.VLMT2) . . . . . . . . . . . 171
P Z
P operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 ZN process . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
PHA (Upper limit alarm) . . . . . . . . . . . . . . . . . . . . 32
PID operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
PLA (Lower limit alarm). . . . . . . . . . . . . . . . . . . . . 32
Position Type PID Control (S.PIDP) . . . . . . . . . . . 106
Positive direction change rate alarm (DPPA) . . . . . . 32
Program Example . . . . . . . . . . . . . . . . . . . . . . . 253
Program Setter (S.PGS) . . . . . . . . . . . . . . . . . . . 187
Proportional operation (P operation) . . . . . . . . . . . . 15
Pulse Integration (S.PSUM) . . . . . . . . . . . . . . . . . 85
R
Ratio (S.R) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Reverse Operation . . . . . . . . . . . . . . . . . . . . . . . . 14
S
S2PID (2-degree-of-freedom PID control) . . . . . 23,257
Sample PI Control (S.SPI). . . . . . . . . . . . . . . . . . 115
SBC (Batch counter) . . . . . . . . . . . . . . . . . . . 23,265
SBPI (Blend PI control) . . . . . . . . . . . . . . . . . . 23,259
SEA (Sensor alarm) . . . . . . . . . . . . . . . . . . . . . . . 32
Sensor alarm (SEA) . . . . . . . . . . . . . . . . . . . . . . . 32
SIPD (I-PD control) . . . . . . . . . . . . . . . . . . . . 23,259
SMON (Monitor). . . . . . . . . . . . . . . . . . . . . . . 24,261
SMOUT (Manual output) . . . . . . . . . . . . . . . . . 24,261
SMWM (Manual output with monitor) . . . . . . . . 24,262
SONF2 (2 position ON/OFF control) . . . . . . . . . 23,264
SONF3 (3 position ON/OFF control) . . . . . . . . . 23,264
SPA (Stop alarm) . . . . . . . . . . . . . . . . . . . . . . . . . 32
SPGS (Program setting device) . . . . . . . . . . . . . . . 24
SPID (PID control) . . . . . . . . . . . . . . . . . . . . . 23,257
SPIDP (PIDP control) . . . . . . . . . . . . . . . . . . . 23,262
Square Root (S.SQR) . . . . . . . . . . . . . . . . . . . . . 227
SR (Ratio control) . . . . . . . . . . . . . . . . . . . . . 23,266
SSEL (Selector) . . . . . . . . . . . . . . . . . . . . . . . . . . 24
SSPI (Sample PI control) . . . . . . . . . . . . . . . . 23,257
stepped response process . . . . . . . . . . . . . . . . . 241
Stop alarm (SPA) . . . . . . . . . . . . . . . . . . . . . . . . . 32
Subtraction (S.SUB) . . . . . . . . . . . . . . . . . . . . . . 221
Summation (S.SUM) . . . . . . . . . . . . . . . . . . . . . 210
274
INSTRUCTION INDEX 9
S
10
S. < . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
S. <= . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
S. = . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
S. > . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231 11
S. >= . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
S. AT1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
S. SEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
S.2PID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
12
S.ABS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
S.ADD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
S.AMR . . .
S.AVE . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
10
S.BC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
S.BPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
S.BUMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 15
S.D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
S.DBND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
S.DED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
S.DIV. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225 15
S.DUTY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
S.ENG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
S.FG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
S.FLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 I
S.HS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
S.I . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
S.IENG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
S.IFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
S.IN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
S.IPD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
S.LIMT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
S.LLAG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
S.LS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
S.MID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
S.MOUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
S.MUL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
S.ONF2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
S.ONF3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
S.OUT1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
S.OUT2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
S.PGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
S.PHPL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
S.PID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
S.PIDP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
S.PSUM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
S.R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
S.SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
S.SQR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
S.SUB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
S.SUM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
S.TPC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
S.VLMT1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
S.VLMT2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
275
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
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.
276
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.
277
Microsoft, Windows, Windows Vista, Windows NT, Windows XP, Windows Server, Visio, Excel, PowerPoint, Visual Basic,
Visual C++, and Access are either trademarks of registered trademarks of Microsoft Corporation in the United States and
other countries.
Intel, Pentium, and Celeron are trademarks of Intel Corporation in the United States and other countries.
Ethernet is a registered trademark of Xerox Corporation.
The SD and SDHC logos are either registered trademarks or trademarks of SD-3C, LLC.
All other company names and product names used in this manual are either trademarks or
registered trademarks of their respective companies.
278 SH (NA)-080316E-G
SH(NA)-080316E-G(1309)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.