Yokogawa
Yokogawa
IM 33M01A30-40E
2nd Edition
TocD-1
CENTUM VP
Reference
Function Block Details Vol.2
IM 33M01A30-40E 2nd Edition
CONTENTS
PART-D Function Block Details
D2. Arithmetic Calculation, Logic Operation............................................................D2-1
D2.1 Common Functions of Calculation Blocks.................................................. D2-2
D2.2 Data Handled by Calculation Blocks............................................................ D2-5
D2.3 Types of Calculation Blocks.......................................................................... D2-7
D2.3.1 Input Processing, Output Processing, and Alarm Processing
Possible for Each Calculation Block.............................................. D2-10
D2.3.2 Valid Block Modes for Each Calculation Block.............................. D2-18
D2.4 Addition Block (ADD)................................................................................... D2-21
D2.5 Multiplication Block (MUL)........................................................................... D2-24
D2.6 Division Block (DIV)...................................................................................... D2-27
D2.7 Averaging Block (AVE)................................................................................. D2-30
D2.8 Square Root Block (SQRT).......................................................................... D2-36
D2.9 Exponential Block (EXP).............................................................................. D2-39
D2.10 First-Order Lag Block (LAG)........................................................................ D2-42
D2.11 Integration Block (INTEG)............................................................................ D2-46
D2.12 Derivative Block (LD).................................................................................... D2-51
D2.13 Ramp Block (RAMP)..................................................................................... D2-55
D2.14 Lead/Lag Block (LDLAG)............................................................................. D2-59
D2.15 Dead-Time Block (DLAY).............................................................................. D2-63
D2.16 Dead-Time Compensation Block (DLAY-C)................................................ D2-68
D2.17 Moving-Average Block (AVE-M).................................................................. D2-72
D2.18 Cumulative-Average Block (AVE-C)............................................................ D2-76
D2.19 Variable Line-Segment Function Block (FUNC-VAR)............................... D2-81
D2.20 Temperature and Pressure Correction Block (TPCFL)............................. D2-85
D2.21 ASTM Correction Block : Old JIS (ASTM1)................................................ D2-91
D2.22 ASTM Correction Block : New JIS (ASTM2)............................................... D2-95
D2.23 Logical AND Block (AND), Logical OR Block (OR).................................... D2-99
D2.24 Logical NOT Block (NOT)........................................................................... D2-102
D2.25 Flip-Flop Blocks (SRS1-S, SRS1-R, SRS2-S, SRS2-R)........................... D2-104
D2.26 Wipeout Block (WOUT) ............................................................................. D2-108
D2.27 ON-Delay Timer Block (OND)......................................................................D2-111
D2.28 OFF-Delay Timer Block (OFFD) ................................................................ D2-115
FCS
Basic control
Software I/O
Faceplate blocks
SFC blocks
Options
D020001E.ai
n Calculation Blocks
Calculation blocks receive analog signals (analog values) or contact signals (digital values) as
input values, and perform calculation according to the set parameters. The result of calculation is
outputted as the calculated output value (CPV).
Following diagram shows the architecture of calculation blocks.
P1 Pn
Input Output
IN RV CPV OUT
processing processing
Qn RVn CPVn Jn
(CPV, ∆CPV)
SUB
D020101E.ai
All calculation blocks are provided with the following three processing functions.
• Input processing:
Receive the signal from the input terminal and convert the signal into the calculation input
value (RV).
• Calculation processing:
Read the calculation input value (RV) and perform calculation processing then output the
result as calculated output value (CPV).
• Output processing:
Read the calculated output value (CPV) and output the calculation result as an output signal
to the connected destination of the output terminal.
SEE
ALSO • For details on input processing common to calculation blocks, see the following:
C3, “Input Processing”
• For details on output processing common to calculation blocks, see the following:
C4, “Output Processing”
The following diagram shows the architecture of the Logic Operation Block.
IN RV CPV OUT
Qn RVn CPVn Jn
All calculation blocks are provided with the following three processing functions.
• Input processing:
Receive the signal from the input terminal and convert the signal into the calculation input
value (RV).
• Calculation processing:
Read the calculation input value (RV) and perform calculation processing then output the
result as calculated output value (CPV).
• Output processing:
Read the calculated output value (CPV) and output the calculation result as an output signal
to the connected destination of the output terminal.
SEE
ALSO • For details on input processing common to calculation blocks, see the following:
C3, “Input Processing”
• For details on output processing common to calculation blocks, see the following:
C4, “Output Processing”
l Positional type
Changes the calculated output value (CPVn) for the present calculation result to the actual
calculated output value (CPVn).
l Velocity type
Adds the difference (CPVn) between the calculated output value for the present calculation result
(CPVn) and that for the previous calculation result (CPVn-1) to the value read back (CPVrb) from
the output destination, and determines the actual calculated output value (CPVn).
The arithmetic calculation block and analog calculation block are the only calculation blocks that
can use the velocity type.
l Data Value
The calculation blocks can handle the following types of data: floating-point, double-precision
floating-point, integer and character string.
When exchange data with other function blocks, if the data are in different type, the calculation
block executes the following processing.
• When refer data from a function block
The calculation block converts the data into the type suitable itself.
• When set data to a function block
The calculation block converts the data suitable to the objective function block.
Because of the above processing, the engineer need not worry about the data type difference
when generate and connect calculation blocks in the Function Block Detail Builder.
The I/O data types and set parameters applied to each type of calculation block are shown below.
Table I/O data types and set parameters
Block type Input data Output data Set parameter
Arithmetic calculation Double-precision floating-point Double-precision floating-point Not specified
Single-precision floating-point,
Analog calculation Single-precision floating-point Single-precision floating-point
integer
Logic operation (*1) integer (logical value) integer (logical value) Not specified
Double-precision floating-point,
Relational operation integer (logical value) Not specified
character string
Bitwise logic operation integer integer Not specified
General-purpose Double-precision floating-point, Double-precision floating-point, Double-precision floating-point,
calculation character string character string character string
Double-precision floating-point,
Calculation auxiliary Double-precision floating-point Double-precision floating-point
integer
Calculation auxiliary
Character string Character string Character string, integer
(for character strings only)
D020201E.ai
Note: The analog calculation blocks handle data in engineering unit so that the internal data is floating type.
The general-purpose calculation blocks and calculation auxiliary blocks can pre-determine each individual data item type in each
function block.
*1: Logic Operation Block can be used in FCSs except PFCS.
The status of output value tracking can be indicated from the data status of the calculated output
value (CPV).
When CPV data status is BAD, QST, CAL, NEFV, (IOP+, IOP-, OOP, NRDY, PEAL, LPFL), the
CPV Output value tracking is disabled.
When CPV data status is BAD, QST, CAL, NEFV, CND, NFP, (IOP+, IOP-, OOP, NRDY, PEAL,
LPFL), the CPV Output value tracking is enabled.
Note: The data status in parentheses is only for CPV of the addition, multiplication, division, analog calculation or general-purpose
calculation blocks.
When a process I/O-related data status (IOP+, IOP-, OOP, NRDY) occurs to the calculated
input value (RV), the analog calculation blocks pass the data status to the calculated output
value (CPV), regardless of whether output tracking is enabled or disabled. Thus, the data status
occurred on the input side, such as IOP+ (input open high), is passed to the function block
connected to it.
The calculation block will set the status of calculated data as a bad data (BAD) when an error
occurs in the course of calculation.
Calculation error may be generated in the following cases.
• When the calculation result overflows.
• When the divisor of the calculation is zero, the calculation is zero divided.
• When calculate the square root of a negative number in the calculation.
SEE
ALSO For the details of data status, see the following:
C6.4, “Data Status”
n Calculation Precision
In a calculation block, all numeric values are calculated as double-precision floating-point
numbers. Numeric value data other than double-precision floating-point data are converted
to double-precision floating-point data inside the calculation block prior to the execution of
calculation processing. Therefore, calculation precision up to the double-precision floating point
is ensured.
x: Exists
Blank: Not exist
*1: Logic Operation Block can be used in FCSs except PFCS.
C: CPV
Cd: ∆CPV
B: Unconverted output (function block)
A: Analog output
Sb: Subsystem output
*1: Only tracking of the CLP ± status of the output destination is performed.
*2: Selectable by builder setting.
*3: Logic Operation Blocks contain the following models. The Logic Operation Block can be used in FCSs except PFCS. If the
connection method of an output terminal is “status manipulation,” the operation specification defined for the output terminal is
executed.
AND, OR, NOT, SRS1-S, SRS1-R, SRS2-S, SRS2-R, WOUT, OND, OFFD, TON, TOFF, GT, GE, EQ, BAND, BOR, BNOT
C: CPV
Cd: ∆CPV
S: SV
Sd: ∆SV
B: Unconverted output (function block)
A: Analog output
Sb: Subsystem output
*1: Possible if explicitly input using computational expression
ADD
MUL
DIV
AVE
SQRT
EXP
LAG
INTEG
LD
RAMP
x x x x
LDLAG
DLAY
DLAY-C
AVE-M
AVE-C
FUNC
FUNC-VAR
TPCFL
ASTM1
ASTM2
D020312E.ai
x: Available
Blank: Not available
AND
OR
NOT
SRS1-S
SRS1-R
SRS2-S
SRS2-R
WOUT
OND
x x x x
OFFD
TON
TOFF
GT
GE
EQ
BAND
BOR
BNOT
D020313E.ai
x: Available
Blank: Not available
*1: Logic Operation Block can be used in FCSs except PFCS.
CALCU
x x x x CERR
CALCU-C
SW-33
SW-91
DSW-16
DSW-16C x x
DSET
DSET-PVI x x x x x x x x x x
BDSET-1L
BDSET-1C
BDSET-2L
BDSET-2C x x
BDA-L
BDA-C
D020314E.ai
x: Available
Blank: Not available
x: Valid
-: Invalid
x: Valid
-: Invalid
*1: Logic Operation Blocks can be used in FCSs except PFCS.
x: Valid
-: Invalid
Input
IN RV
processing
Gain
(GAIN),
Addition CPV OUT
bias
(BIAS)
RV1 gain
(GN1),
Q01 RV1
RV1 bias
(BS1)
The following table shows the connection types and connection destinations of the I/O terminals
of the Addition Block (ADD).
Table Connection Types and Connection Destinations of the I/O Terminals of Addition Block (ADD)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
IN Main input x Δ x x
Q01 Sub input x Δ x x
Calculation
OUT x x x x
output
Auxiliary Δ
SUB x x x
output
D020402E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the ADD block, see
the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
SEE
ALSO For the input processing when an abnormal calculation input value is detected, see the following:
“l Input Processing at Calculated Input Value Error Detection in the Arithmetic Calculation” in “n Input
Processing at Calculated Input Value Error Detection” in chapter C3.6.2, “Input Processing of the
Calculation Block in Unsteady State”
n Calculation Algorithm
The Addition Block (ADD) executes the following calculation processing for addition or
subtraction of the input data.
To perform addition processing of input data, set a positive numeric value for the RV1 gain.
To perform subtraction processing of input data, set a negative numeric value for the RV1 gain.
n Set Parameters
The set parameters of the Addition Block (ADD) are shown as follows.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00
• Bias (BIAS):
An engineering unit data value of 7 digits or less including the sign and decimal point.
The default is 0.00
• RV1 gain (GN1):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00
• RV1 bias (BS1):
An engineering unit data of 7 digits or less including the sign and decimal point.
The default is 0.00
SEE
ALSO For the information about valid block mode for ADD block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input
IN RV
processing
Gain
(GAIN),
Multiplication CPV OUT
bias
(BIAS)
RV1 gain
(GN1),
Q01 RV1
RV1 bias
(BS1)
The following table shows the connection types and connection destinations of the I/O terminals
of the Multiplication Block (MUL).
Table Connection Types and Connection Destinations of the I/O Terminals of Multiplication Block
(MUL)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
IN Main input x Δ x x
Q01 Sub input x Δ x x
Calculation
OUT x x x x
output
Auxiliary
SUB x Δ x x
output
D020502E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the MUL block, see
the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
SEE
ALSO For the input processing when an abnormal calculation input value is detected, see the following:
“l Input Processing at Calculated Input Value Error Detection in the Arithmetic Calculation” in “n Input
Processing at Calculated Input Value Error Detection” in chapter C3.6.2, “Input Processing of the
Calculation Block in Unsteady State”
n Calculation Algorithm
The Multiplication Block (MUL) executes the following calculation processing to perform
multiplication of input data.
n Set Parameters
The set parameters of the Multiplication Block (MUL) are shown as follows.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00
• Bias (BIAS):
An engineering unit data value of 7 digits or less including the sign and decimal point.
The default is 0.00
• RV1 gain (GN1):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00
• RV1 bias (BS1):
An engineering unit data value of 7 digits or less including the sign and decimal point.
The default is 0.00
SEE
ALSO For a list of valid block modes for MUL block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input
IN RV
processing
Gain
(GAIN),
Division CPV OUT
bias
(BIAS)
RV1 gain
(GN1),
Q01 RV1
RV1 bias
(BS1)
The following table shows the connection types and connection destinations of the I/O terminals
of the Division Block (DIV).
Table Connection Types and Connection Destinations of the I/O Terminals of Division Block (DIV)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
IN Main input x Δ x x
Q01 Sub input x Δ x x
Calculation
OUT x x x x
output
Auxiliary Δ
SUB x x x
output
D020602E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the DIV block, see
the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
l Input Processing of Division Block (DIV) When a Calculation Input Value Error
is Detected
The DIV block performs special input processing when an abnormal calculation input value is
detected.
SEE
ALSO For the input processing when an abnormal calculation input value is detected, see the following:
“l Input Processing at Calculated Input Value Error Detection in the Arithmetic Calculation” in “n Input
Processing at Calculated Input Value Error Detection” in chapter C3.6.2, “Input Processing of the
Calculation Block in Unsteady State”
n Calculation Algorithm
The Division Block (DIV) executes the following calculation processing for performing division of
input data.
n Set Parameters
The set parameters of the Division Block (DIV) are shown as follows.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00
• Bias (BIAS):
An engineering unit data value of 7 digits or less including the sign and decimal point.
The default is 0.00
• RV1 gain (GN1):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00
• RV1 bias (BS1):
An engineering unit data value of 7 digits or less including the sign and decimal point.
The default is 0.00
SEE
ALSO For a list of valid block modes for DIV block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Q01 RV1
Q02 RV2
Q03 RV3
Q04 RV4
Averaging
CPV OUT
processing
Q05 RV5
Q06 RV6
Q07 RV7
Q08 RV8
(CPV, ∆CPV)
SUB
D020701E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the AVE block, see
the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
l Input Processing of Average Block (AVE) When a Calculation Input Value Error
is Detected
The AVE block performs special input processing when an abnormal calculation input value is
detected.
The settings of the detection conditions for calculated input value error detection in the Average
block (AVE) and the data status of the calculated output value (CPV) at calculated input value
error detection are executed with “Calculated input value error detected” on the Function Block
Detail Builder.
The method to transfer the data status (IOP, IOP-, OOp, NRDY) of the process I/O relations,
which is generated with the calculated input value (RVn) in connection with the above settings, to
the calculated output value (CPV) is specified.
The table below lists the ranges of the calculated input value error detection. The default value is
“1.”
Table Processing at Calculated Input Value Error Detection in the Average Block (AVE)
Calculated input value Error detection conditions Data status
error detection (Data status of the CPV data status transmission
specification calculated input value) origin input value
0 - NR (*1)
RV1 to RVn (n is an average number)
NR (*1)
are all NR (*1). No transmission
At least one of RV1 to RVn
1 QST
(n is an average number) is BAD.
RV1 to RVn (n is an average number)
BAD RV1 to RVn (*2)
are all BAD.
RV1 to RVn (n is an average number)
NR (*1) No transmission
are all NR (*1).
2
At least one of RV1 to RVn
BAD RV1 to RVn (*2)
(n is an average number) is BAD.
D020703E.ai
*1: NR in the table indicates the state in which the data status is neither BAD nor QST.
*2: The priority of input values is in the order of RV1 to RVn. IOP and IOP- precede in the transfer status. IOP is transferred when
NRDY is generated in the input values of higher priority and IOP is generated in the input values of lower priority.
When the calculated input value error which causes the invalid (BAD) data status of calculated
output value (CPV) occurs, the calculation processing is halted, and the previous calculated
output value (CPV) is held.
When the calculated input value error which causes the questionable (QST) data status of
calculated output value (CPV) occurs, the previous calculated input value is held due to the
current calculated input value error. The calculation processing is continued using the previous
value (RV) held and the calculated output value (CPV) is updated.
n Calculation Algorithm
▼ Number of Averaged, Sampling Candidate Specification
The Averaging Block (AVE) performs the following calculation processing for obtaining the
average value of input data.
RV1+RV2+RV3+...+RVN
CPV=GAIN •
N
D020704E.ai
“Number of averaged” and “sampling candidate specification” is set using the Function Block
Detail Builder.
• Number of Averaged (N):
Any integer between 1 and 8.
The default is 1.
Set the number of data to be averaged.
• Sampling Candidate Specification:
Select from “Regardless of data status,” “other than BAD” or “other than BAD or QST.”
If the data status of the calculated input value (RVn) changes to the status indicating the data is
not good, this data can be excluded from the averaging calculation. The conditions to include or
exclude the data for the averaging calculation can be defined on the builder under the following
conditions.
• Regardless of data status
All input data (RVn) regardless of data status
• Other than BAD
All input data (RVn) except for BAD data
• Other than BAD and QST
All input data (RVn) except for BAD and QST data
The calculation block’s behavior is restricted by the input error detection function. When the
calculation input error detection is specified to “2,” only “Regardless of data status” is valid as
averaging calculation condition. Or else, any input detected BAD makes the calculated output
value (CPV) become BAD (invalid) and the averaging calculation stops.
While, when the condition is specified as “other than BAD” or “other than BAD or QST,” the above
described phenomena occur, i.e. the BAD input data stops the averaging calculation.
n Set Parameter
The parameters of the Averaging Block(AVE) are shown as follows.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00
SEE
ALSO For a list of valid block modes for AVE block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input
IN RV GAIN • RV CPV OUT
processing
(CPV, ∆CPV)
SUB
D020801E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of the Square Root Block (SQRT).
Table Connection Types and Connection Destinations of the I/O Terminals of Square Root Block
(SQRT)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation x
IN x x x
input
Calculation x
OUT x x x
output
Auxiliary Δ x
SUB x x
output
D020802E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the SQRT block,
see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The Square Root Block (SQRT) executes the following calculation processing to obtain the
square root of input data.
CPV=GAIN • RV
D020803E.ai
n Set Parameter
The parameters of the Square Root Block (SQRT) are shown as follows.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00
n CPV Pushback
The CPV pushback is a function used to prevent a sudden change in an output value to the
process control output when the status of a cascade connection is changed from open to close.
If the SQRT block is connected by means of cascade connection and the cascade connection is
opened, the calculation input value (RV) is calculated back based on a calculation output value
(CPV) obtained from a downstream function block via tracking, thereby making the upstream
function block track the value.
The CPV pushback operates only when the output value tracking is set to [Yes].
The following calculation formula is used in the CPV pushback of the SQRT block.
CPV 2
RV=
GAIN
D020804E.ai
If GAIN is 0, the CPV pushback calculation is bypassed and the calculation input value (RV)
retains the previous value.
SEE
ALSO For details on the CPV pushback, see the following:
C4.11, “CPV Pushback”
SEE
ALSO For a list of valid block modes for SQRT block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input
IN RV GAIN • eRV CPV OUT
processing
(CPV, ∆CPV)
SUB
D020901E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of the Exponential Block (EXP).
Table Connection Types and Connection Destinations of the I/O Terminals of Exponential Block (EXP)
Connection type Connection destination
I/O terminal
Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation x x x x
IN
input
Calculation x x x x
OUT
output
Auxiliary x Δ x x
SUB
output
D020902E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the EXP block, see
the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The Exponential Block (EXP) executes the following calculation processing to the input data.
CPV=GAIN • eRV
e: Base of a natural logarithm
n Set Parameter
The parameters of the Exponential Block (EXP) are shown as follows.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00.
n CPV Pushback
The CPV pushback is a function used to prevent a sudden change in an output value to the
process control output when the status of a cascade connection is changed from open to close.
If the EXP block is connected by means of cascade connection and the cascade connection is
opened, the calculation input value (RV) is calculated back based on a calculation output value
(CPV) obtained from a downstream function block via tracking, thereby making the upstream
function block track the value.
The CPV pushback operates only when the output value tracking is set to [Yes].
The following calculation formula is used in the CPV pushback of the EXP block.
CPV
RV=ln
GAIN
D020903E.ai
If (CPV/GAIN) ≤ 0, the calculation input value (RV) retains the previous value.
SEE
ALSO For details on the CPV pushback, see the following:
C4.11, “CPV Pushback”
SEE
ALSO For a list of valid block modes for EXP block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input GAIN
IN RV CPV OUT
processing 1+Tis
(CPV, ∆CPV)
SUB
D021001E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of the First-Order Lag Block (LAG).
Table Connection Types and Connection Destinations of the I/O Terminals of First-Order Lag Block
(LAG)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation
IN x x x x
input
Calculation x x x x
OUT
output
Auxiliary Δ
SUB x x x
output
D021002E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the LAG block, see
the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The First-Order Lag Block (LAG) executes the following calculation processing to the input data.
GAIN
CPV= • RV
1+Tis
D021003E.ai
When the block mode is switched from O/S (out of service) to AUT (automatic), or when the data
status of the calculated output value (CPV) has returned to normal from CAL (calibration) or BAD
(invalid), first-order lag calculation is initialized with the calculated input value (RV).
n Set Parameters
The parameters of the First-Order Lag Block (LAG) are shown as follows.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00.
• First-order lag time setpoint (I):
A numeric value between 0.1 and 1000.0. Unit: sec.
The default is 1.
If a time shorter than the scan period is set as the first-order lag time (I), calculation processing is
performed assuming that the first-order lag time setpoint (I) is the same as the scan period.
n Action Example
The following figure shows an example of step response action of the First-Order Lag Block
(LAG).
Input signal
Time t
Ti
Figure Example of the Step Response Action of First-Order Lag Block (LAG)
n CPV Pushback
The CPV pushback is a function used to prevent a sudden change in an output value to the
process control output when the status of a cascade connection is changed from open to close.
If the LAG block is connected by means of cascade connection and the cascade connection is
opened, the calculation input value (RV) is calculated back based on a calculation output value
(CPV) obtained from a downstream function block via tracking, thereby making the upstream
function block track the value.
The CPV pushback operates only when the output value tracking is set to [Yes].
The following calculation formula is used in the CPV pushback of the LAG block.
CPV
RV=
GAIN
D021005E.ai
If GAIN is 0, the CPV pushback calculation is bypassed and the calculation input value (RV)
retains the previous value.
SEE
ALSO For details on the CPV pushback, see the following:
C4.11, “CPV Pushback”
SEE
ALSO For a list of valid block modes for LAG block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input GAIN
IN RV CPV OUT
processing Tis
(CPV, ∆CPV)
SUB
D021101E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of the Integration Block (INTEG).
Table Connection Types and Connection Destinations of the I/O Terminals of Integration Block (INTEG)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation
IN x x x x
input
Calculation x x x x
OUT
output
Auxiliary Δ
SUB x x x
output
D021102E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the INTEG block,
see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The Integration Block (INTEG) executes the following calculation processing for integrating input
data.
GAIN
CPV= • RV
Tis
D021103E.ai
The Integration Block (INTEG) starts calculation actions in accordance with the values of the
manipulation switch (SW).
If the integral value overflows, the previous maximum value used as the calculation result. When
the integral value overflows, BAD (invalid) is set as the data status of the calculated output value
(CPV).
The following figure shows the manipulation switch values and the corresponding calculation
actions as well as block status transitions.
• When Manipulation switch (SW) is 0
Starts to initialize calculation block status, then the manipulation switch (SW) changes to 1
when initialization is completed. Block status is RUN.
• When Manipulation switch (SW) is 1
Starts the integration calculation. The calculated output value (CPV) is updated by each
scan period. Block status is RUN.
• When Manipulation switch (SW) is 2
Holds the current calculated output value (CPV), the calculation stops. Block status is STOP.
n Set Parameters
The parameters of the Integration Block (INTEG) are shown as follows.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00.
• Integral time setpoint (I):
A numeric number between 0.1 and 10000.0. Unit: sec.
n Action Example
The following figure shows an action example of the Integration Block (INTEG).
Input signal
Ts
GAIN RV
I
Output signal
Time t
2 1 2
SW
SW(2→0→1) SW(1→2)
D021104E.ai
n CPV Pushback
The CPV pushback is a function used to prevent a sudden change in an output value to the
process control output when the status of a cascade connection is changed from open to close.
If the INTEG block is connected by means of cascade connection and the cascade connection is
opened, the calculation input value (RV) is calculated back based on a calculation output value
(CPV) obtained from a downstream function block via tracking, thereby making the upstream
function block track the value.
The CPV pushback operates only when the output value tracking is set to [Yes].
The following calculation formula is used in the CPV pushback of the INTEG block.
CPV
RV=
GAIN
D021105E.ai
If GAIN is 0, the CPV pushback calculation is bypassed and the calculation input value (RV)
retains the previous value.
SEE
ALSO For details on the CPV pushback, see the following:
C4.11, “CPV Pushback”
SEE
ALSO For a list of valid block modes for INTEG block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
(CPV, ∆CPV)
SUB
D021201E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of the Derivative Block (LD).
Table Connection Types and Connection Destinations of the I/O Terminals of Derivative Block (LD)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation x x x x
IN
input
Calculation x x x x
OUT
output
Auxiliary x Δ x x
SUB
output
D021202E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the LD block, see
the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The Derivative Block (LD) executes the following calculation processing to differentiate input
data.
Tds
CPV=GAIN • • RV
1+Tds
D021203E.ai
When the block mode is switched from O/S (out of service) to AUT (automatic), or when the
data status of the calculated input value (CPV) returns to normal from CAL (calibration) or BAD
(invalid), derivation calculation is initialized with the calculated input value (RV).
n Set Parameters
The parameters of the Derivative Block (LD) are shown as follows.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00.
• Derivative time setpoint (D):
A numeric value between 0.1 and 1000.0. Unit: sec.
If a time shorter than the scan period is set as the derivative time setpoint (D), calculation
processing is performed assuming that the derivative time setpoint (D) is same as the scan period.
n Action Example
The following figure shows an action example of the Derivative Block (LD).
Input signal
Time t
Td
n CPV Pushback
The CPV pushback is a function used to prevent a sudden change in an output value to the
process control output when the status of a cascade connection is changed from open to close.
If the LD block is connected by means of cascade connection and the cascade connection is
opened, the calculation input value (RV) is calculated back based on a calculation output value
(CPV) obtained from a downstream function block via tracking, thereby making the upstream
function block track the value.
The CPV pushback operates only when the output value tracking is set to [Yes].
The following calculation formula is used in the CPV pushback of the LD block.
CPV
RV=
GAIN
D021205E.ai
If GAIN is 0, the CPV pushback calculation is bypassed and the calculation input value (RV)
retains the previous value.
SEE
ALSO For details on the CPV pushback, see the following:
C4.11, “CPV Pushback”
n Data Items – LD
Table Data Items of Derivative Block (LD)
Data Entry Permitted
Data Name Range Default
Item or Not
MODE Block mode x ----- O/S (AUT)
ALRM Alarm status ----- NR
AFLS Alarm flashing status ----- -----
AF Alarm detection specification ----- -----
AOFS Alarm masking specification ----- -----
RV Calculated input value ----- 0
RAW Raw input data Value in the unit at the connection destination -----
CPV Calculated output value Δ (*1) CPV engineering unit value SL
GAIN Gain x 7 - digit real number including sign and decimal point 1.00
D Derivative time x 0.0 to 10,000.0 seconds 0
OPMK Operation mark x 0 to 64 0
UAID User application ID x ----- 0
SH CPV scale high limit Value in the same engineering unit as CPV -----
SL CPV scale low limit Value in the same engineering unit as CPV -----
D021206E.ai
SEE
ALSO For a list of valid block modes for LD block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input
IN RV GAIN • (Ramp characteristic) CPV OUT
processing
(CPV, ∆CPV)
SUB
D021301E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of the Ramp Block (RAMP).
Table Connection Types and Connection Destinations of the I/O Terminals of Ramp Block (RAMP)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation Δ
IN x x x
input
Calculation
OUT x x x x
output
Auxiliary Δ
SUB x x x
output
D021302E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the RAMP block,
see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The Ramp Block (RAMP) executes the calculation processing that generates an output data to
follow the step changes of the input data with the ramp characteristic (constant velocity).
The calculated output value (CPV) is the Ramp characteristic output signal multiplied by the gain
(GAIN).
(CPV span)
• Scan period (sec.)
STEP
Scan period
D021303E.ai
The rate of the output data change is determined by the value of the step (STEP) parameter,
scan period and span of the calculated output value (CPV).
CPV span
Output data change per second =
STEP
D021304E.ai
CPV span
Output data change per scan = • Scan period (seconds)
STEP
D021305E.ai
n Set Parameters
The parameters of the Ramp Block (RAMP) are shown as follows.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00.
• Step (STEP):
A numeric number between 0.1 and 10000.0.
The step (STEP) defines in how many scans that the calculated output value (CPV) follows up
the full-span of the input change, in one second scan period. When the scan period is not one
second, the number of scans needed for the full-span input change can be calculated by dividing
the step (STEP) by the scan period (second).
SEE
ALSO For a list of valid block modes for RAMP block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
(CPV, ∆CPV)
SUB
D021401E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of the Lead/Lag Block (LDLAG).
Table Connection Types and Connection Destinations of I/O Terminals of Lead/Lag Block (LDLAG)
Connection type Connection destination
I/O terminal
Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation
IN x x x x
input
Calculation
OUT x x x x
output
Auxiliary Δ
SUB x x x
output
D021402E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the LDLAG block,
see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The Lead/Lag Block (LDLAG) executes the following calculation processing to perform dynamic
compensation of the lead/lag element.
GAIN • (1+Tds)
CPV= • RV
1+Tis
D021403E.ai
n Set Parameters
The parameters of the Lead/Lag Block (LDLAG) are shown as follows.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00.
• Lead time setpoint (D):
A numeric value between 0.0 and 10000.0. Unit: sec.
• Lag time setpoint (I):
A numeric value between 0.0 and 10000.0. Unit: sec.
If a time shorter than the scan period is set as the lag time setpoint (I), calculation processing is
performed assuming that the lag time (I) is same as the scan period.
n Action Example
The following figure shows the action of the Lead/Lag Block (LDLAG).
D/I>1
Input signal
D/I<1
Time t D021404E.ai
n CPV Pushback
The CPV pushback is a function used to prevent a sudden change in an output value to the
process control output when the status of a cascade connection is changed from open to close.
If the LDLAG block is connected by means of cascade connection and the cascade connection
is opened, the calculation input value (RV) is calculated back based on a calculation output value
(CPV) obtained from a downstream function block via tracking, thereby making the upstream
function block track the value.
The CPV pushback operates only when the output value tracking is set to [Yes].
The following calculation formula is used in the CPV pushback of the LDLAG block.
CPV
RV=
GAIN
D021405E.ai
If GAIN is 0, the CPV pushback calculation is bypassed and the calculation input value (RV)
retains the previous value.
SEE
ALSO For details on the CPV pushback, see the following:
C4.11, “CPV Pushback”
SEE
ALSO For a list of valid block modes for LDLAG block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
(CPV, ∆CPV)
SUB
D021501E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of the Dead-Time Block (DLAY).
Table Connection Types and Connection Destinations of the I/O Terminals of Dead-Time Block (DLAY)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting block
reference testing manipulation connection I/O I/O
IN Main input x x x x
Calculation
OUT x x x x
output
Auxiliary Δ
SUB x x x
output
D021502E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the DLAY block,
see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
▼ Number of Sample Points
The Dead-Time Block (DLAY) realizes the dead time characteristic through sampling. For this
reason, the following calculation processing that uses dead time and first-order lag is performed
to simulate the dynamic process characteristics.
GAIN
CPV= e-LS • RV
1+Tis D021503E.ai
In order to smoothen the calculated output value (CPV), the Dead-Time Block (DLAY) performs
complementary calculation to values between sampled values when obtaining the calculated
output value (CPV).
Initialization of all sampled data (dead time buffer) is done by the reset switch (RST). When the
reset switch (RST) is set to “1,” the dead time buffer is initialized with the calculated input value
(RV). When the initialization is complete, the reset switch (RST) returns to “0” (normal state).
When the data status of the calculated output value (CPV) returns to normal from IOP+ (input
open high) or CAL (calibration), the reset switch (RST) changes to “1” automatically and the dead
time buffer is initialized.
The number of sample points is set on the Function Block Detail Builder.
• Number of Sample Points: A numeric value between 1 and 60
n Set Parameters
The parameters of the Dead-Time Block (DLAY) are shown as follows.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
• Sampling interval (SMPL):
A numeric value between 0.1 and 10000.0. Unit: sec.
Set a value which is a multiple of the scan period.
• First-order lag time (I):
A numeric value between 0.1 and 10000.0. Unit: sec.
If a time shorter than the scan period is set as the first-order lag time (I), calculation processing is
performed assuming that the first-order lag time (I) is same as the scan period.
n Action Example
The following figure shows an action example of the Dead-Time Block (DLAY).
Input signal
Time t
L Ti
L Dead time
Ti First-order lag time (Ti = I - Scan period)
D021504E.ai
n CPV Pushback
The CPV pushback is a function used to prevent a sudden change in an output value to the
process control output when the status of a cascade connection is changed from open to close.
If the DLAY block is connected by means of cascade connection and the cascade connection is
opened, the calculation input value (RV) is calculated back based on a calculation output value
(CPV) obtained from a downstream function block via tracking, thereby making the upstream
function block track the value.
The CPV pushback operates only when the output value tracking is set to [Yes].
The following calculation formula is used in the CPV pushback of the DLAY block.
CPV
RV=
GAIN
D021505E.ai
If GAIN is 0, the CPV pushback calculation is bypassed and the calculation input value (RV)
retains the previous value.
SEE
ALSO For details on the CPV pushback, see the following:
C4.11, “CPV Pushback”
SEE
ALSO For a list of valid block modes for DLAY block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input GAIN
IN RV (e-LS-1) CPV OUT
processing 1+Tis
(CPV, ∆CPV)
SUB
D021601E.ai
The following figure shows an example of dead time compensation control using the Dead-Time
Compensation Block (DLAY-C).
PID controller block (PID)
- PID
Set point value
calculation
+
Input compensated value (VN)
Measured value
Dead-Time
Output Compensation Input
Block
(DLAY-C)
Process
D021602E.ai
Figure Example of Dead Time Compensation Control Using Dead-Time Compensation Block (DLAY-C)
The following table shows the connection types and connection destinations of the I/O terminals
of the Dead-Time Compensation Block (DLAY-C).
Table Connection Types and Connection Destinations of the I/O Terminals of Dead Time Compensation
Block (DLAY-C)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation
IN x x x x
input
Calculation
OUT x x x x
output
Auxiliary Δ
SUB x x x
output
D021603E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the DLAY-C block,
see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
▼ Number of Sample Points
The Dead-Time Compensation Block (DLAY-C) performs the following calculation processing.
The dead time characteristic is realized through sampling.
GAIN
CPV= (e-LS -1) • RV
1+Tis
D021604E.ai
In order to smoothen the calculated output value (CPV), the Dead-Time Compensation Block
(DLAY-C) performs complementary calculation to the values between the sampled values.
Initialization of all sampled data (dead time buffer) is done by the reset switch (RST). When the
reset switch (RST) is turned to “1,” the dead time buffer is initialized by the calculated input value
(RV). When the initialization is complete, the reset switch (RST) returns to “0” (normal state).
When the data status of the calculated output value (CPV) returns to normal from IOP+ (input
open high) or CAL (calibration), the reset switch (RST) changes to “1” automatically and the dead
time buffer is initialized.
The number of sample points is set on the Function Block Detail Builder.
• Number of Sample Points: A numeric value between 1 and 60
n Set Parameters
The parameters of the Dead-Time Compensation Block (DLAY-C) are shown as follows.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
• Sampling interval (SMPL):
A numeric value between 0.1 and 10000.0. Unit: sec.
Set a multiple of the scan period as the value.
• First-order lag time (I):
A numeric value between 0.1 and 10000.0. Unit: sec.
If a time shorter than the scan period is set as the first-order lag time (I), calculation processing is
performed assuming that the first-order lag time (I) is same as the scan period.
n Action Example
The following figure shows an action example of the Dead-Time Compensation Block (DLAY-C).
Input signal
Time t
L Dead time
Ti Ti First-order lag time (Ti = I - Scan period)
L
D021605E.ai
SEE
ALSO For a list of valid block modes for DLAY-C block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input Xr+Xr-1+...+Xr-m+1
IN RV GAIN CPV OUT
processing m
(CPV, ∆CPV)
SUB
D021701E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of the Moving-Average Block (AVE-M).
Table Connection Types and Connection Destinations of the I/O Terminals of Moving-Average Block
(AVE-M)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation x Δ
IN x x
input
Calculation
OUT x x x x
output
Auxiliary Δ
SUB x x x
output
D021702E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the AVE-M block,
see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The Moving-Average Block (AVE-M) performs the following calculation processing to obtain the
moving average of input data.
Xr+Xr-1+...+Xr-m+1
CPV=GAIN •
m D021703E.ai
The Moving-Average Block (AVE-M) calculates the average value of past data that have been
sampled at a specified interval. The target input signals of this calculation are the specified
number of latest sampled data.
The following shows an action example of the Moving-Average Block (AVE-M) when the
specified number of samples is “6.”
RV GAIN
PREV
Xr
Xr-1 Xr-m+1
Moving average buffer r-8 r-7 r-6 r-5 r-4 r-3 r-2 r-1 r
Initialization of the moving average is done by the reset switch (RST). When the reset switch
(RST) is turned to “1,” the buffer is initialized with the calculated input value (RV). When the
initialization is complete, the reset switch (RST) returns to “0” (normal state). When the data
status of the calculated output value (CPV) returns to normal from IOP+ (input open high) or
CAL (calibration), the reset switch (RST) changes to “1” automatically and the moving average is
initialized.
The earliest sampled data is stored in the earliest calculation input value (PREV) and is available
for reference.
n Set Parameters
The parameters of the Moving-Average Block (AVE-M) are shown as follows.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
• Number of Sample Point (NUM):
A numeric value between 1 and 60.
• Sampling interval (SMPL):
A numeric value between 0.1 and 10000.0. Unit: sec.
For the sampling interval (SMPL), set a multiple of the scan period. If any other value is set,
sampling is performed at an interval rounded up to the next larger multiple of the scan period.
How the sampling interval (SMPL) value is rounded up is shown as follows:
Scan period = 1 second SMPL = 0.5 → Action occurs assuming SMPL = 1
Scan period = 1 second SMPL = 1.1 → Action occurs assuming SMPL = 2
Scan period = 1 second SMPL = 2 → Action at SMPL = 2
Scan period = 0.1 second SMPL = 0.5 → Action at SMPL = 0.5
SEE
ALSO For a list of valid block modes for AVE-M block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Manipulation SW
switch
Input
IN
processing
RV GAIN • Average CPV OUT
value
(CPV, ∆CPV)
SUB
D021801E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of the Cumulative-Average Block (AVE-C).
Table Connection Types and Connection Destinations of the I/O Terminals of Cumulative-Average
Block (AVE-C)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation Δ
IN x x x
input
Calculation
OUT x x x x
output
Auxiliary Δ
SUB x x x
output
D021802E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the AVE-C block,
see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The Cumulative-Average Block (AVE-C) performs the processing that calculates the average
value (integrated average value) of input data.
The Cumulative-Average Block (AVE-C) starts calculation actions in accordance with the values
of the manipulation switch (SW).
When the manipulation switch is turned to “0,” the current calculated output value (CPV) is saved
as the previous average value (PREV), then average calculation is started again. This is called
initialization of integration calculation.
After that point, the integrated average value of input data for each scan period to the current
time cumulates until the manipulation switch (SW) turns to “0” again.
The calculated output value(CPV) is the cumulated integrated average value multiplied by gain
(GAIN).
Start and end of integrated average calculation are set by the manipulation switch (SW). The
manipulation switch can be operated from operation and monitoring functions or other function
blocks.
Even when the block mode or alarm status has changed, the Cumulative-Average Block (AVE-C)
will not initialize the average value calculation automatically.
There is an integration number counter inside the Cumulative-Average Block (AVE-C). When
the manipulation switch (SW) is set to “1,” the value of this counter increases by one for each
scan period. When the counter value becomes 2,147,483,647, calculation will stops and set the
manipulation switch (SW) to “0,” then the calculation restarts.
n Set Parameters
The parameters of the Cumulative-Average Block (AVE-C) are shown as follows.
• Manipulation switch:
Specify a numeric value from 0, 1 and 2.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00.
n Action Example
The following figure shows an action example of the Cumulative-Average Block (AVE-C).
Calculated
output value
(CPV)
Calculated
input value
(RV)
Initialize Initialize
2 1 2 1
SW
SEE
ALSO For a list of valid block modes for AVE-C block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input Variable
IN RV GAIN • CPV OUT
processing line-segment function
(CPV, ∆CPV)
SUB
D021901E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of the Variable Line-Segment Function Block (FUNC-VAR).
Table Connection Types and Connection Destinations of the I/O Terminals of Variable Line-Segment
Function Block (FUNC-VAR)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation
IN x x x x
input
Calculation
OUT x x x x
output
Auxiliary Δ
SUB x x x
output
D021902E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the FUNC-VAR
block, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The Variable Line-Segment Function Block (FUNC-VAR) performs the calculation processing
that converts the input signal corresponding to the X coordinate of the set line segment, to the Y
coordinate value of the line segment.
The calculated output value (CPV) is the converted value multiplied by the gain (GAIN).
n Set Parameters
The parameters of the Variable Line-Segment Function Block (FUNC-VAR) are shown as follows.
• Number of segments (SECT):
A numeric value between 1 and 14.
• X_axis coordinate (input):
Set the engineering unit input signal after input signal conversion.
X01 to X15 (1 to Number of line-segment divisions + 1)
• Y_axis coordinate (output):
Set the engineering unit calculated output value (CPV).
Y01 to Y15 (1 to Number of line-segment divisions + 1)
Line-segment coordinates can be set from operation and monitoring functions or other function
blocks.
Set the X_axis coordinate line-segment function in the continues increasing direction. When the
setting does not allow the X coordinate to increase strictly, the function assumes that the function
is represented by the solid line shown in the figure below.
Y
Set line segment
(error)
X
D021903E.ai
n Action Example
The following figure shows an example of the variable line-segment function with six segments.
Y (Output value: Engineering unit data of CPV)
6
5
4
D021904E.ai
n CPV Pushback
The CPV pushback is a function used to prevent a sudden change in an output value to the
process control output when the status of a cascade connection is changed from open to close.
If the FUNC-VAR block is connected by means of cascade connection and the cascade
connection is opened, the calculation input value (RV) is calculated back based on a calculation
output value (CPV) obtained from a downstream function block via tracking, thereby making the
upstream function block track the value.
The CPV pushback operates only when the output value tracking is set to [Yes].
In the CPV pushback of the FUNC-VAR block, the value RV is obtained by calculating the x-axis
coordinate while using the value obtained by dividing CPV by GAIN as the input on the y-axis.
If GAIN is 0, the CPV pushback calculation is bypassed and the calculation input value (RV)
retains the previous value.
SEE
ALSO For details on the CPV pushback, see the following:
C4.11, “CPV Pushback”
SEE
ALSO For a list of valid block modes for FUNC-VAR block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input
IN processing RV
Correction
Q01 TMP CPV OUT
computation
Q02 PRS
(CPV, ∆CPV)
SUB
D022001E.ai
Figure Function Block Diagram of Temperature and Pressure Correction Block (TPCFL)
The following table shows the connection types and connection destinations of the I/O terminals
of the Temperature and Pressure Correction Block (TPCFL).
Table Connection Types and Connection Destinations of the I/O Terminals of Temperature and
Pressure Correction Block (TPCFL).
Connection type Connection destination
I/O terminal
Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Measured Δ
IN x x x
flowrate
Measured Δ
Q01 x x x
temperature
Measured Δ
Q02 x x x
pressure
Calculation
OUT x x x x
output
Auxiliary x Δ x x
SUB
output
D022002E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the TPCFL block,
see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
▼ Corrective Computation
The Temperature and Pressure Correction Block (TPCFL) correct the flowrate of a gas relative to
an ideal gas on the basis of temperature and pressure.
The following three types of correction computation algorithms are available:
• Temperature and pressure correction computations
• Temperature correction computation
• Pressure correction computation
Both the input and the output of the correction computation are floating-point data.
The calculated output value (CPV) is the corrected flowrate (F0) multiplied by the gain (GAIN).
CPV = GAIN • F0
Fi : Measured flowrate
F0 : Corrected flowrate
P : Measured pressure [kPa]
Pb : Reference pressure [kPa]
T : Measured temperature (°C)
Tb : Reference temperature (°C)
With the pressure unit of kgf/cm2 and the temperature unit of °F, the expression is given below.
5 5
T'= (T -32) T'b= (Tb-32)
9 9
D022004E.ai
Fi : Measured flowrate
P : Measured pressure [kgf/cm2]
T : Measured temperature (°F)
F0 : Corrected flowrate
Pb : Reference pressure [kgf/cm2]
Tb : Reference temperature (°F)
Tb+273.15
F0= • Fi [Temperature: °C]
T+273.15
D022005E.ai
Fi : Measured flowrate
F0 : Corrected flowrate
T : Measured temperature (°C)
Tb : Reference temperature (°C)
The formula for corrective calculation at the temperature unit °F is given below.
T'b+273.15
F0= Fi
T'+273.15
D022006E.ai
5 5
T'= (T-32) T'b= (Tb-32)
9 9
D022011E.ai
P+1.01325 • 102
F0= • Fi [Pressure: kPa]
Pb+1.01325 • 102
D022007E.ai
Fi : Measured flowrate
F0 : Corrected flowrate
P : Measured pressure [kPa]
Pb : Reference pressure [kPa]
The expression for corrective calculation at the pressure unit kgf/cm2 is given below.
P+1.0332
F0= Fi
Pb+1.0332
D022008E.ai
n Set Parameters
▼ Pressure Unit, Temperature Unit
The parameters of the Temperature and Pressure Correction Block (TPCFL) are shown as
follows.
• Reference temperature (TB):
Depends on the temperature unit specified in the builder. Degree C or F.
• Reference pressure (PB):
Depends on the unit specified in the builder.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00.
“Correction computation,” “temperature unit” and “pressure unit” are set in the
Function Block Detail Builder.
• Corrective Computation:
Select from “Temperature and Pressure Correction,” “Pressure Correction,” and
“Temperature Correction.”
The default is “Temperature Correction.”
• Temperature Units:
Only Deg. C may be selected from the list. If use Fahrenheit degree, F may be manually
entered in the entry box.
• Pressure Units:
Select from “Pa,” “kPa,” and “MPa.”
The default is “kPa.”
If use kgf/cm2, KGF/CM2 may be manually entered in the entry box.
TIP
Only F can be manually entered in the temperature’s entry box, and only KGF/CM2 can be entered in the
pressure entry box. Entering other unit or strings may generated entry error.
D022009E.ai
SEE
ALSO For a list of valid block modes for TPCFL block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input
IN RV
processing
Correction
CPV OUT
computation
Q01 TMP
(CPV, ∆CPV)
SUB
D022101E.ai
Figure Function Block Diagram of ASTM Correction Block : Old JIS (ASTM1)
The following table shows the connection types and connection destinations of the I/O terminals
of the ASTM Correction Block: Old JIS (ASTM1).
Table Connection Types and Connection Destinations of the I/O Terminals of ASTM Correction Block :
Old JIS (ASTM1)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Measured Δ
IN x x x
flowrate
Measured Δ
Q01 x x x
temperature
Calculation
OUT x x x x
output
Auxiliary Δ
SUB x x x
output
D022102E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the ASTM1 block,
see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
▼ Temperature Unit
The ASTM Correction Block: Old JIS (ASTM1) performs temperature correction computation
of flowrates at the measured temperature of t and specific gravity of c, based on the ASTM
correction computation (Old JIS).
In a specific gravity range not shown in the ASTM table for the ASTM correction computation
(Old JIS), the same computation can be performed by extending the applicability to Table II of JIS
K2249.
The specific gravity ranges and temperature range of the ASTM and Table II of JIS K2249 are
shown below.
-25 °C 1.100
1.1
Old JIS
1
125 °C 0.960
0.9
100 °C 0.870
75 °C 0.840
Specific gravity 0.8 Old JIS & ASTM
at 15/4 °C (C1)
0.7
-46 °C 60 °C
0.6 0.600
Old JIS
55 °C 0.510
0.5
Figure Specific Gravity Ranges and Temperature Ranges of the ASTM Correction Computation (Old JIS)
and Table II of JIS K2249 (Old JIS)
F0 = Cf • Fi
Cf = 1 + α (TMP-15) + β (TMP-15)2
-P1 (TMP) -P3 (TMP)
α= + P2 (TMP) , β = + P4 (TMP)
C1 C1
D022104E.ai
Fi : Measured flowrate
F0 : Corrected flowrate
TMP : Measured temperature (°C)
C1 : Specific gravity (15/4 °C)
P1 (TPM) to P4 (TPM): Parameters determined by temperature
The calculated output value (CPV) is the corrected flowrate (F0) multiplied by the gain (GAIN).
CPV = GAIN • F0
n Set Parameters
The parameters of the ASTM Correction Block: Old JIS (ASTM1) are shown as follows.
• Specific gravity at 15/4 °C (DEN):
Set within the specific gravity range shown in Table II of JIS K2249.
• Gain (GAIN):
A numeric value of 7 digits or less including the sign and decimal point.
The default is 1.00.
SEE
ALSO For a list of valid block modes for ASTM1 block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input
IN RV
processing
Correction
CPV OUT
computation
Q01 TMP
(CPV, ∆CPV)
SUB
D022201E.ai
Figure Function Block Diagram of ASTM Correction Block: New JIS (ASTM2)
The following table shows the connection types and connection destinations of the I/O terminals
of the ASTM Correction Block: New JIS (ASTM2).
Table Connection Types and Connection Destinations of the I/O Terminals of ASTM Correction Block:
NEW JIS (ASTM2)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Measured Δ
IN x x x
flowrate
Measured Δ
Q01 x x x
temperature
Calculation
OUT x x x x
output
Auxiliary Δ
SUB x x x
output
D022202E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the ASTM2 block,
see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
▼ Type of Oil, Temperature Unit
The ASTM Correction Block: New JIS (ASTM2) calculates the corrected flowrate of the flowrate
F at the measured temperature of t and density of p, based on the ASTM correction computation
(New JIS).
ASTM correction computation based on the new JIS is shown below.
F0 = Cf • Fi
F0 : Corrected flowrate
TMP : Measured temperature (°C)
ρ : Density at 15 °C (kg/m3)
Fi : Measured flowrate
K0, K1, A, B : Oil dependent constants
The specific correction computation under the ASTM correction (New JIS) varies depending
upon the type of oil used. Select appropriate constants from the table below.
Table Types of Oil and Oil Dependent Constants
Constants
Type of oil Density range at 15kg/m3
K0 K1 A B
Crude oil 610.5 ≤ ρ ≤ 1075.0 613.9723 0.0
653.0 ≤ ρ < 770.25 346.4228 0.4388
770.25 ≤ ρ < 787.75 -0.00336312 2680.3206
Fuel oil
787.75 ≤ ρ < 838.75 594.5418 0.0
838.75 ≤ ρ ≤ 1075.0 186.9696 0.4862
Lubricating oil 800.0 ≤ ρ ≤ 1164.0 0.0 0.6278
D022204E.ai
The calculated output value (CPV) is the corrected flowrate (F0) multiplied by the gain (GAIN).
CPV = GAIN • F 0
The “type of oil” and “temperature unit” are set on the Function Block Detail Builder.
• Type of Oil:
Select from “Crude,” “Fuel Oil” and “Lubricant.”
• Temperature Units:
Deg. C
Only Deg. C may be selected from the list. If use Fahrenheit degree, F may be manually
entered in the entry box.
n Set Parameters
The parameters of the ASTM Correction Block: New JIS (ASTM2) are shown as follows.
• Density at 15 °C (DEN):
Data with the unit of kg/m3.
• Gain (GAIN):
An actual quantity value of 7 digits or less including the sign and decimal point.
SEE
ALSO For a list of valid block modes for ASTM2 block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input
Q01 RV1
Processing
Calculation Output
CPV OUT
Processing Processing
Input
Q02 RV2
Processing
D022301E.ai
Figure Function Block Diagram of Logical AND Block (AND) and Logical OR Block (OR)
The following table shows the connection types and connection destinations of the I/O terminals
of Logical AND Block (AND) and Logical OR Block (OR).
Table Connection Types and Connection Destinations of I/O Terminals of Logical AND Block (AND) and
Logical OR Block (OR)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation Δ
Q01 x x x x x
input 1
Calculation Δ
Q02 x x x x x
input 2
Calculation x x Δ x x x
OUT
output
D022302E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the AND and OR
blocks, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The calculated output value (CPV) and the calculated input value (RV1, RV2) have the following
relationship.
Table Relationship of Input and Output of Logical AND Block (AND)
RV1 0 0 ≠0 ≠0
RV2 0 ≠0 0 ≠0
CPV 0 0 0 1
D022303E.ai
SEE
ALSO For a list of valid block modes for AND and OR blocks, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
D022401E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of Logical NOT Block (NOT).
Table Connection Types and Connection Destinations of I/O Terminals of Logical NOT Block (NOT)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation x x Δ x x x
IN
input
Calculation
OUT x x Δ x x x
output
D022402E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the NOT block, see
the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The calculated output value (CPV) and the calculated input value (RV) have the following
relationship.
Table Relationship of Input and Output of Logical NOT Block (NOT)
RV 0 ≠0
CPV 1 0
D022403E.ai
SEE
ALSO For a list of valid block modes for NOT block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input Output
Q01 RV1 CPV1 J01
Processing Processing
Calculation
Processing
Input
Q02 RV2
Processing
Input
Q01 RV1 CPV1 J01
Processing
Calculation Output
Processing Processing
Input
Q02 Processing RV2 CPV2 J02
Figure Function Block Diagram of SRS1-S, SRS1-R, SRS2-S and SRS2-R Blocks
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the SRS1-S, SRS1-
R, SRS2-S, and SRS2-R blocks, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The calculated output value (CPV) and the calculated input value (RV1, RV2) have the following
relationship.
Table Relationship of Input and Output of Set-Dominant Flip-Flop Block with 1 Output (SRS1-S)
RV1 0 ≠0 0 ≠0
Input
RV2 0 0 ≠0 ≠0
CPV1 Hold 1 0 1
Output
- - - - -
D022503E.ai
Table Relationship of Input and Output of Reset-Dominant Flip-Flop Block with 1 Output (SRS1-R)
RV1 0 ≠0 0 ≠0
Input
RV2 0 0 ≠0 ≠0
CPV1 Hold 1 0 0
Output
- - - - -
D022504E.ai
Table Relationship of Input and Output of Set-Dominant Flip-Flop Block with 2 Outputs (SRS2-S)
RV1 0 ≠0 0 ≠0
Input
RV2 0 0 ≠0 ≠0
CPV1 Hold 1 0 1
Output
CPV2 Hold 0 1 0
D022505E.ai
Table Relationship of Input and Output of Reset-Dominant Flip-Flop Block with 2 Outputs
(SRS2-R)
RV1 0 ≠0 0 ≠0
Input
RV2 0 0 ≠0 ≠0
CPV1 Hold 1 0 0
Output
CPV2 Hold 0 1 1
D022506E.ai
SEE
ALSO For a list of valid block modes for SRS1-S, SRS1-R, SRS2-S and SRS2-R blocks, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input
Q01 RV1
Processing
Calculation Output
CPV OUT
Processing Processing
Input
Q02 RV2
Processing
D022601E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of Wipeout Block (WOUT).
Table Connection Types and Connection Destinations of the I/O Terminals of Wipeout Block (WOUT)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation Δ
Q01 x x x x x
input 1
Calculation Δ
Q02 x x x x x
input 2
Calculation x x x x x x
OUT
output
D022602E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the WOUT block,
see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The calculated output value (CPV) and the calculation input value (RV1, RV2) have the following
relationship.
Table Relationship of Input and Output of Wipeout Block (WOUT)
RV1 0 ≠0 0 ≠0
Input
RV2 0 0 ≠0 ≠0
Output CPV 0 1 0 0
D022603E.ai
SEE
ALSO For a list of valid block modes for WOUT block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
D022701E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of ON-Delay Timer Block (OND).
Table Connection Types and Connection Destinations of the I/O Terminals of ON-Delay Timer Block
(OND)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation Δ
IN x x x x x
input
Calculation
OUT x x Δ x x x
output
D022702E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the OND block, see
the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
▼ Time Unit
The calculation algorithm of ON-Delay Timer Block may be illustrated as follows.
• The timer is initiated when the calculation input value (RV) is changed to a value other than 0.
• When timer is running, the current elapsed time (PTM) displays.
• When pre-defined time (STM) elapsed, the calculated output value (CPV) changes from 0 to 1.
• When the calculation input value (RV) changes to 0, the calculated output value (CPV) is
reset to 0.
≠0
RV
0
t
STM Timer start Timer reset
t<STM
1
CPV
D022703E.ai
The time unit of the timer block may be set on the Function Block Detail Builder.
• Time Unit:
Select between “Second” and “Minute.”
The default is “Second.”
n Setting Parameter
OND block has the following setting parameters.
• Set Time (STM):
1 to 10000
SEE
ALSO For a list of valid block modes for OND block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
D022801E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of OFF-Delay Timer Block (OFFD).
Table Connection Types and Connection Destinations of the I/O Terminals of OFF-Delay Timer Block
(OFFD)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation x x Δ x x x
IN
input
Calculation
OUT x x Δ x x x
output
D022802E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the OFFD block,
see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
▼ Time Unit
The calculation algorithm of OFF-Delay Timer Block may be illustrated as follows.
• The timer is initiated when the calculation input value (RV) is changed to 0.
• When timer is running, the current elapsed time (PTM) displays.
• When pre-defined time (STM) elapsed, the calculated output value (CPV) changes from 1 to 0.
• When the calculation input value (RV) changes to a value other than 0, the calculated output
value (CPV) is reset to 1.
≠0
RV
0
t
STM
Timer start Timer reset
t<STM
1
CPV
D022803E.ai
The time unit of the timer block may be set on the Function Block Detail Builder.
• Time Unit:
Select between “Second” and “Minute.”
The default is “Second.”
n Setting Parameter
OFFD timer block has the following setting parameters.
• Set Time (STM):
1 to 10000
SEE
ALSO For a list of valid block modes for OFFD block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
D022901E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of One-shot blocks TON and TOFF.
Table Connection Types and Connection Destinations of the I/O Terminals of One-shot Blocks TON
and TOFF
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation x x Δ x x x
IN
input
Calculation
OUT x x Δ x x x
output
D022902E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or an inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the TON and TOFF
blocks, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The calculation algorithm of One-shot blocks TON and TOFF may be illustrated as follows.
≠0
IN
OUT
1 Scan
One-shot
Rise trigger
D022903E.ai
≠0
IN
OUT
1 Scan
One-shot
Fall trigger
D022904E.ai
SEE
ALSO For a list of valid block modes for TON and TOFF blocks, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input
Q01 RV1
Processing
Calculation Output
CPV OUT
Processing Processing
Input
Q02 RV2
Processing
D023001E.ai
Figure Function Block Diagram of Relational Operation Blocks (GT, GE, EQ)
The following table shows the connection types and connection destinations of the I/O terminals
of Relational Operation Blocks (GT, GE, EQ).
Table Connection Types and Connection Destinations of the I/O Terminals of Relational Operation
Blocks (GT, GE, EQ)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation Δ
Q01 x x x
input 1
Calculation Δ
Q02 x x x
input 2
Calculation x x Δ x x x
OUT
output
D023002E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the GT, GE, and
EQ blocks, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS.”
n Calculation Algorithm
The calculation algorithm of GT, GE, EQ may be described as follows.
SEE
ALSO For a list of valid block modes for GT, GE and EQ blocks, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Input
Q01 RV1
Processing
Calculation Output
CPV OUT
Processing Processing
Input
Q02 RV2
Processing
D023101E.ai
Figure Function Block Diagram of Bitwise AND Block (BAND) and Bitwise OR Block (BOR)
The following table shows the connection types and connection destinations of the I/O terminals
of Bitwise AND Block (BAND) and Bitwise OR Block (BOR).
Table Connection Types and Connection Destinations of the I/O Terminals of Bitwise AND Block
(BAND) and Bitwise OR Block (BOR)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation Δ
Q01 x x x
input 1
Calculation Δ
Q02 x x x
input 2
Calculation x Δ x x
OUT
output
D023102E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the BAND and
BOR blocks, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The I/O data of BAND and BOR blocks are integer type.
The calculation algorithm of BAND and BOR may be described as follows.
SEE
ALSO For a list of valid block modes for BAND and BOR blocks, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
D023201E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of Bitwise NOT Block (BNOT).
Table Connection Types and Connection Destinations of the I/O Terminals of Bitwise NOT Block
(BNOT)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation x Δ x x
IN
input
Calculation
OUT x Δ x x
output
D023202E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the BNOT block,
see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The calculation input values (RV, CPV) of BNOT blocks is integer type.
The BNOT calculates its CPV according to the bitwise value of calculation input value (RV).
Example
RV = 0xFFFF FF00
CPV = 0x0000 00FF
SEE
ALSO For a list of valid block modes for BNOT block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
P01 P08
IN RV CPV OUT
User-defined
Q01 RV1 CPV1 Output J01
Input arithmetic/logic
processing calculation processing
processing
(CPV, ∆CPV)
SUB
D023301E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the CALCU and
CALCU-C blocks, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
The following processing is performed if the data status of a calculation output value (CPV)
becomes a bad data value (BAD) or a questionable data value (QST) according to the
specification of the calculation input value error detection.
• If the data status of a calculation output value (CPV) becomes a bad data value (BAD)
The calculation processing is aborted, the value immediately before the error is retained
and the connected destination of OUT terminal will hold this retained previous value. The
previous good CPV is held and accessible from SUB terminal.
If CPV overshoot is set to the block, the data from the OUT terminal is not affected by the
CPV change caused by main calculation input (RV) abnormality. However, the CPV after
overshoot can be accessed using SUB terminal.
• If the data status of a calculation output value (CPV) becomes a questionable data value
(QST)
The calculation input values (RV, RVn) retain the values immediately before the error
generation. The calculation processing is continued using these values and the calculation
output value (CPV) is updated.
n Calculation Algorithm
The General-Purpose Calculation Blocks (CALCU, CALCU-C) execute algorithms that are
defined using the general-purpose calculation expression description language.
SEE
ALSO For the general-purpose calculation expression description language, see the following:
D2.47, “General-Purpose Arithmetic Expressions”
The calculation input values, calculated output values and set parameters of the General-
Purpose Calculation Block (CALCU) all use double-precision floating-point data type.
The calculation input values (RV4 to RV7) and calculated output values (CPV2, CPV3) of the
General-Purpose Calculation Block with String I/O (CALCU-C) all use string data type. When
data of other function block is referred or set using element symbols and a description of data
items without specifying I/O terminal connections in a calculation expression description, terminal
connections of the specified I/O data are performed automatically during compiling. The I/O
terminals used here are different from those connected in the Function Block Detail Builder.
The input signals that are directly specified in the calculation expression description become the
target of calculation input error detection.
n Set Parameters
The parameters of the General-Purpose Calculation Blocks (CALCU, CALCU-C) are shown as
follows.
• Calculation parameters 1 to 4 (P01 to P 04):
Engineering unit data values.
• Calculation parameters 5 to 8 (P05 to P08):
Engineering unit data values in the case of General-Purpose Calculation Block (CALCU).
A string data of up to 16 standard-width characters or 8 double-width characters can be
used for the General-Purpose Calculation Block with String I/O (CALCU-C).
SEE
ALSO For details on the description of calculation errors and the calculation error handling, see the following:
D2.47.7, “Error Handling”
SEE
ALSO For more information about PV range limit, see the following:
“n PV Range Limit: KFCS2/FFCS/LFCS2” in chapter C3.1.1, “Input Signal Conversions Common to
Regulatory Control Blocks and Calculation Blocks”
SEE
ALSO For a list of valid block modes for CALCU block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
SEE
ALSO For a list of valid block modes for CALCU-C block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
IMPORTANT
Even though the I/O normalization is specified on the builder, the CENTUM-XL calculation
expressions are not free from problems. After the CENTUM-XL migration, the application
debugging is necessary.
l In Data Normalization
The input engineering unit data (RV) of a calculation block can be normalized before used in the
calculation. When normalizing the RV, the range of the general-purpose calculation block will be
ignored but the range of the block connected to IN terminal or Q01 to Q07 terminal will be used.
The normalization is performed with the following formula:
For the data item, such as DV or DL, that is differentiated from other data items, the normalization
is performed with the following formula:
For the data item, such as DV or DL, that is differentiated from other data items, the conversion is
performed with the following formula:
The formulas for normalizing the input data and for converting the output data to engineering unit
data in related to ranges are shown in the table below:
Table In/Out Data Normalization
Formula Converting output to
Range Normalizing input data
number engineering unit data
1 SH:SL RVN = (RV - SL) / (SH - SL) CPV = CPVN × (SH - SL) + SL
2 SSH:SSL RVN = (RV - SSL) / (SSH - SSL) CPV = CPVN × (SSH - SSL) + SSL
3 MSH:MSL RVN = (RV - MSL) / (MSH - MSL) CPV = CPVN × (MSH - MSL) + MSL
4 SH:SL (Difference) RVN = RV / (SH - SL) CPV = CPVN × (SH - SL)
5 SSH:SSL (Difference) RVN = RV / (SSH - SSL) CPV = CPVN × (SSH - SSL)
6 MSH:MSL (Difference) RVN = RV / (MSH - MSL) CPV = CPVN × (MSH - MSL)
7 DSH:DSL RVN = (RV - DSL) / (DSH - DSL) CPV = CPVN × (DSH - DSL) + DSL
8 DSH:DSL (Difference) RVN = RV / (DSH - DSL) CPV = CPVN × (DSH - DSL)
9 MSH1:MSL1 RVN = (RV - MSL1) / (MSH1 - MSL1) CPV = CPVN × (MSH1 - MSL1) + MSL1
10 MSH1:MSL1 (Difference) RVN = RV / (MSH1 - MSL1) CPV = CPVN × (MSH1 - MSL1)
11 MSH2:MSL2 RVN = (RV - MSL2) / (MSH2 - MSL2) CPV = CPVN × (MSH2 - MSL2) + MSL2
12 MSH2:MSL2 (Difference) RVN = RV / (MSH2 - MSL2) CPV = CPVN × (MSH2 - MSL2)
D023307E.ai
l Output Limitation
The calculation result CPV will be limited by the range of the CPV itself. The CPV1 to CPV3 and
other internal calculation variables will be limited by the ranges (between SHo and SLo) of the
blocks connected to J01 to J03 terminals.The data that is differentiated from other data items are
limited within positive and negative differences +/-(SHo-SLo). However, the values after limitation
can be visualized on Tuning View.
The settings regarding the calculation block in/out data normalization as well as the general-
purpose calculation details and function block details can be printed out on the builder and
printed out through self-documentation.
• Faceplate Blocks
Table Relevant Data Item: Faceplate Blocks (Data Connection)
• SFC Blocks
Table Relevant Data Item: SFC Blocks (Data Connection)
• Off-site Blocks
Table Relevant Data Item: Off-site Blocks (Data Connection)
SEE
ALSO For more information about terminal connection, see the following:
C2.2, “Terminal Connection”
Switch position
SW
OFF 0
S11 1
S12 2 S10
S13 3
OFF 0
S21 1
S22 2 S20
S23 3
OFF 0
S31 1
S32 2 S30
S33 3
D023501E.ai
Figure Function Block Diagram of Three-Pole Three-Position Selector Switch Block (SW-33)
x: Connection available
Blank: Connection not available
Note: Condition check and status manipulation signals of sequence connection cannot be handled by the Three-Pole Three-Position
Selector Switch Block (SW-33). Inter-station data link cannot be performed via the block, either.
SEE
ALSO • For the types of input processing possible for the SW-33 block, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
n Calculation Algorithm
The Three-Pole Three-Position Selector Switch Block (SW-33) changes signal paths in
accordance with the switch command sent from the operation and monitoring functions or other
function blocks.
There is no restriction on the I/O direction of signals. S10, S20 and S30 terminals as well as the
remaining terminals can be used for input. However, as the three three-position switches are
linked with one another, each three-position switch is always connected to a terminal at the same
switch position.
n Set Parameters
The parameters of the Three-Pole Three-Position Selector Switch Block (SW-33) are shown as
follows.
• Selector switch (SW):
A numeric value between 0 and 3
• Switch high limit (SWH):
A numeric value between 0 and 3
• Switch low limit (SWL):
A numeric value between 0 and 3
When setting the selector switch (SW) from the operation and monitoring functions, if the set
selector switch (SW) exceeds the switch high limit (SWH) or the switch low limit (SWL), a
confirmation message appears. When the operator performs confirmation operation, the content
of the setting becomes effective.
OFF 0
S11 1 SW
S12 2
S13 3
S14 4
S15 5 S10
S16 6
S17 7
S18 8
S19 9
D023601E.ai
Figure Function Block Diagram of One-Pole Nine-Position Selector Switch Block (SW-91)
x: Connection available
Blank: Connection not available
Note: Condition check and status manipulation signals of sequence connection cannot be handled. Inter-station data link cannot be
performed, either.
SEE
ALSO • For the types of input processing possible for the SW-91 block, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
n Calculation Algorithm
The One-Pole Nine-Position Selector Switch Block (SW-91) changes signal paths in accordance
with the switch command sent from the operation and monitoring functions or other function
block.
There is no restriction on the I/O direction of signals for the One-Pole Nine-Position Selector
Switch Block (SW-91). The terminals S11 to S19 can be used as the output terminal while the
terminals S10 is used as the input terminals, or vice versa, the terminal S10 can be used as the
input terminal while the terminals S11 to S19 are used as the output terminals.
n Set Parameters
The parameters of the One-Pole Nine-Position Selector Switch Block (SW-91) are shown as
follows.
• Selector switch (SW):
A numeric value between 0 and 9
• Switch high limit (SWH):
A numeric value between 0 and 9
• Switch low limit (SWL):
A numeric value between 0 and 9
When setting the selector switch (SW) from the operation and monitoring functions, if the set
selector switch (SW) exceeds the switch high limit (SWH) or the switch low limit (SWL), a
confirmation message appears. When the operator performs confirmation operation, the content
of the setting becomes effective.
Switch position
OFF 0
SW
Constant 1 1
Constant 2 2
CPV OUT
Constant 16 16
D023701E.ai
Figure Function Block Diagram of Selector Switch Block for 16 Data (DSW-16)
The following table shows the connection types and connection destinations of the I/O terminals
of the Selector Switch Block for 16 Data (DSW-16).
Table Connection Types and Connection Destinations of the I/O Terminals of Selector Switch Block for
16 Data (DSW-16)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation
OUT x x x x
output
D023702E.ai
x: Connection available
Blank: Connection not available
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the DSW-16 block,
see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
▼ Output Velocity Limiter
The Selector Switch Block for 16 Data (DSW-16) outputs one of the values of the constants
1 through 16 in accordance with the switch command sent from the operation and monitoring
functions or other function blocks. The value of the constant to be output can be limited by the
output velocity limiter function.
When the selector switch (SW) is turned OFF (0), the previous value is held as the calculated
output value (CPV).
The output velocity limiter value can be defined in the Function Block Detail Builder.
• Output Velocity Limiter:
An allowed change per scan in the calculated output value (CPV).
The default is the scale span value.
n Set Parameters
The parameters of the Selector Switch Block for 16 Data (DSW-16) are shown as follows.
• Selector switch (SW):
A numeric value between 0 and 16
• Constants 1 to 16 (SD01 to SD16):
Engineering unit data values
SEE
ALSO For a list of valid block modes for DSW-16 block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Switch position
OFF 0
SW
Constant 1 1
Constant 2 2
CPV OUT
Constant 16 16
D023801E.ai
Figure Function Block Diagram of Selector Switch Block for 16 String Data (DSW-16C)
The following table shows the connection types and connection destinations of the I/O terminals
of the Selector Switch Block for 16 String Data (DSW-16C).
Table Connection Types and Connection Destinations of the I/O Terminals of Selector Switch Block for
16 String Data (DSW-16C)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation
OUT x x x x
output
D023802E.ai
x: Connection available
Blank: Connection not available
SEE
ALSO • For the types of input processing and alarm processing possible for the DSW-16C block, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
The Selector Switch Block for 16 String Data (DSW-16C) executes the processing that outputs
one of the constants from data 1 to data 16 in accordance with the switch command sent from
the operation and monitoring functions or other function blocks.
When the selector switch (SW) is turned OFF (0), the previous value is held in the calculated
output value (CPV).
n Set Parameters
The parameters of the Selector Switch Block for 16 String Data (DSW-16C) are shown as
follows.
• Selector switch (SW):
A numeric value between 0 and 16
• Constants 1 to 16 (SD01 to SD16):
Set string data of up to 16 standard-width characters or 8 double-width characters.
SEE
ALSO For a list of valid block modes for DSW-16C block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
D023901E.ai
The following table shows the connection types and connection destinations of the I/O terminals
of Data Set Block (DSET).
Table Connection Types and Connection Destinations of the I/O Terminals of Data Set Block (DSET)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Setting
OUT x x x x
output
D023902E.ai
x: Connection available
Blank: Connection not available
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the DSET block,
see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
▼ Output Velocity Limiter
The Data Set Block (DSET) outputs the data setpoint (SV) entered via key operation from the
operation and monitoring functions. The output is restricted by velocity limiting processing.
The output velocity limiter value is set on the Function Block Detail Builder.
• Output Velocity Limiter:
The allowed change per scan in the calculated output value (CPV).
The default is the scale span value.
n Set Parameters
The parameters of Data Set Block (DSET) are shown as follows.
• Data setpoint (SV):
An engineering unit data value
• Data setpoint high limit (SVH):
An engineering unit data value
• Data setpoint low limit (SVL):
An engineering unit data value
When setting the data setpoint (SV) from the operation and monitoring functions, if the set data
setpoint (SV) exceeds the data setpoint high or low limit (SVH, SVL), a confirmation message
appears, the content of the setting becomes effective when the operator performs confirmation
operation.
SEE
ALSO For a list of valid block modes for DSET block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Here is a function block diagram of the Data Set Block with Input Indicator (DSET-PVI).
Input Velocity
IN CPV SV OUT
processing limiter
SUB
D024001E.ai
Figure Function Block Diagram of Data Set Block with Input Indicator (DSET-PVI)
The following table shows the connection types and connection destinations of the I/O terminals
of Data Set Block with Input Indicator (DSET-PVI).
Table Connection Types and Connection Destinations of the I/O Terminals of Data Set Block with Input
Indicator (DSET-PVI)
Connection type Connection destination
I/O terminal Data Condition Status Terminal Process Software Function
Data setting
reference testing manipulation connection I/O I/O block
Calculation Δ
IN x x x
input
Calculation
OUT x x x x
output
Auxiliary Δ
SUB x x x
output
D024002E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of input processing, output processing, and alarm processing possible for the DSET-PVI
block, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the input processing, see the following:
C3, “Input Processing”
• For details on the output processing, see the following:
C4, “Output Processing”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Calculation Algorithm
▼ Output Velocity Limiter
The data setpoint (SV) set by the operation and monitoring functions is output under the
restriction of velocity limiting processing.
The value input from the IN terminal is converted to the calculated output value (CPV) and
displayed.
The output velocity limiter value is defined in the Function Block Detail Builder.
• Output Velocity Limiter:
The allowed change per scan in the calculated output value (CPV).
The default is the scale span value
n Set Parameters
The parameters of the Data Set Block with Input Indicator (DSET-PVI) are shown as follows.
• High-high limit alarm setpoint (HH):
An engineering unit data value.
• Low-low limit alarm setpoint (LL):
An engineering unit data value.
• High-limit alarm setpoint (PH):
An engineering unit data value.
• Low-limit alarm setpoint (PL):
An engineering unit data value.
• Velocity limit alarm setpoint (VL):
An engineering unit data value within the span of 0 to ± CPV.
• Data setpoint (SV):
An engineering unit data value.
• Data setpoint high limit (SVH):
An engineering unit data value.
• Data setpoint low limit (SVL):
An engineering unit data value.
When setting the data setpoint (SV) from the operation and monitoring functions, if the set data
setpoint (SV) exceeds the data setpoint high or low limit (SVH, SVL), a confirmation message
appears, the content of the setting becomes effective when the operator performs confirmation
operation.
SEE
ALSO For a list of valid block modes for DSET-PVI block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Command switch SW
D024101E.ai
The following table shows the connection types and connection destinations of the One-Batch
Data Set Block (BDSET-1L).
Table Connection Types and Connection Destinations of the I/O Terminals of One-Batch Data Set
Block (BDSET-1L)
Connection type Connection destination
I/O terminal Data Data Condition Status Terminal Process Software Function
reference setting testing manipulation connection I/O I/O block
Calculation Δ
J01 to J16 x x x
output
D024102E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of alarm processing possible for the BDSET-1L block, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
*1: Switching of the switch position from “2” to “3” is performed automatically by the BDSET-1L block.
Element symbol.ACT.n
n = 0 : All batch data (DT01 to DT16) are changed to “0.”
n = 1 to 16 : The specified data (DTnn) is set to the output destination.
n = 17 : All batch data (DT01 to DT16) are set to all output destinations.
n Set Parameters
The parameters of the One-Batch Data Set Block (BDSET-1L) are shown as follows.
• Batch data (DT01 to DT16):
Engineering unit data values at output destinations
• Command switch (SW):
A value between 0 and 3
• Set limit high limit (DH01 to DH16):
Engineering unit data values at output destinations
• Set limit low limit (DL01 to DL16):
Engineering unit data values at output destinations
SEE
ALSO For a list of valid block modes for BDSET-1L block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Command switch SW
D024201E.ai
Figure Function Block Diagram of One-Batch String Data Set Block (BDSET-1C)
The following table shows the connection types and connection destinations of the One-Batch
String Data Set Block (BDSET-1C).
Table Connection Types and Connection Destinations of the I/O Terminals of One-Batch String Data
Set Block (BDSET-1C)
Connection type Connection destination
I/O terminal Data Data Condition Status Terminal Process Software Function
reference setting testing manipulation connection I/O I/O block
Calculation Δ
J01 to J16 x x
output
D024202E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of alarm processing possible for the BDSET-1C block, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
*1: Switching of the switch position from “2” to “3” is performed automatically by the One-Batch String Data Set Block (BDSET-1C).
Element symbol.ACT.n
n = 0 : All batch data (DT01 to DT16) are replaced with null.
n = 1 to 16 : The specified data (DTnn) is set to the output destination.
n = 17 : All batch data (DT01 to DT16) are set to all output destinations.
n Set Parameters
The parameters of the One-Batch String Data Set Block (BDSET-1C) are shown as follows.
• Batch data (DT01 to DT16):
Set string data of up to 16 standard-width characters or 8 double-width characters.
• Command switch (SW):A numeric value between 0 and 3.
SEE
ALSO For a list of valid block modes for BDSET-1C block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
SW Command switch
D024301E.ai
The following table shows the connection types and connection destinations of the Two-Batch
Data Set Block (BDSET-2L).
Table Connection Types and Connection Destinations of I/O Terminals of Two-Batch Data Set Block
(BDSET-2L)
Connection type Connection destination
I/O terminal Data Data Condition Status Terminal Process Software Function
reference setting testing manipulation connection I/O I/O block
Calculation Δ
J01 to J16 x x x
output
D024302E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of alarm processing possible for the BDSET-2L block, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
*1: The Two-Batch Data Set Block (BDSET-2L) transfers the next data to the current data when the command switch (SW) becomes
“0” and the value of the batch status (NXBS) becomes other than “0.” If the command switch (SW) changes to “0” when the next
batch data is yet to be set at the operation and monitoring functions, the Two-Batch Data Set Block (BDSET-2L) waits for the
value of the batch status (NXBS) to become other than “0.” When a value other than “0” is set to the batch status (NXBS) after
the next data has been set at the operation and monitoring functions, the Two-Batch Data Set Block (BDSET-2L) moves the next
data to the current data, then sets the value of the command switch (SW) to “1” to wait for the batch sequence.
Element symbol.ACT.n
n = 0 : All current set data are changed to “0.”
n = 1 to 16 : Only the specified current data (DTnn) is set.
n = 17 : All current set data are set.
n Set Parameters
The parameters of the Two-Batch Data Set Block (BDSET-2L) are shown as follows.
• Current batch data (DT01 to DT16): Engineering unit data values of output destinations.
Arbitrary values can be selected and set as long as they can be indicated in the double-
precision floating format. Whether the value is within the range of the output destination is
not checked during setting.
• Next batch data (NX01 to NX16): Engineering unit data values of output destinations.
Arbitrary values can be selected and set as long as they can be indicated in the double-
precision floating format. Whether the value is within the range of the output destination is
not checked during setting.
• Command switch (SW): A numeric value between 0 and 3.
• Batch status (NXBS):
An integer value other than “0” set from the operation and monitoring functions.
Automatically changes to “0” when batch data setting action is performed.
• Set limit high (DH01 to DH16): Engineering unit data values of output destinations.
• Set limit low (DL01 to DL16): Engineering unit data values of output destinations.
SEE
ALSO For a list of valid block modes for BDSET-2L block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
SW Command switch
D024401E.ai
Figure Function Block Diagram of Two-Batch String Data Set Block (BDSET-2C)
The following table shows the connection types and connection destinations of the Two-Batch
String Data Set Block (BDSET-2C).
Table Connection Types and Connection Destinations of I/O Terminals of Two-Batch String Data Set
Block (BDSET-2C)
Connection type Connection destination
I/O terminal Data Data Condition Status Terminal Process Software Function
reference setting testing manipulation connection I/O I/O block
Calculation Δ
J01 to J16 x x
output
D024402E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of alarm processing possible for the BDSET-2C block, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
*1: The Two-Batch String Data Set Block (BDSET-2C) transfers the next data to the current data when the command switch (SW)
becomes “0” and the value of the batch status (NXBS) becomes other than “0.” If the command switch (SW) changes to “0” when
the next batch data has yet to be set at the operation and monitoring functions, the Two-Batch String Data Set Block (BDSET-2C)
waits for the value of the batch status (NXBS) to become anything other than “0.” When a value other than “0” is set to the batch
status (NXBS) after the next data has been set at the operation and monitoring functions, the Two-Batch String Data Set Block
(BDSET-2C) moves the next data to the current data, then sets the value of the command switch (SW) to “1” to resume the batch
sequence.
Element symbol.ACT.n
n = 0 : All current set data are replaced with a null.
n = 1 to 16 : Only the specified current data (DTnn) is set.
n = 17 : All current set data are set.
n Set Parameters
The parameters of the Two-Batch String Data Set Block (BDSET-2C) are shown as follows.
• Current batch data (DT01 to DT16):
Set string data of up to 16 standard-width characters or 8 double-width characters.
• Next batch data (NX01 to NX16):
Set string data of up to 16 standard-width characters or 8 double-width characters.
• Command switch (SW):
A numeric value between 0 and 3.
• Batch status (NXBS):
An integer value other than “0” set from the operation and monitoring functions.
Automatically changes to “0” when batch data setting action has been performed.
SEE
ALSO For a list of valid block modes for BDSET-2C block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Command switch SW
D024501E.ai
The following table shows the connection types and connection destinations of the Batch Data
Acquisition Block (BDA-L).
Table Connection Types and Connection Destinations of I/O Terminals of Batch Data Acquisition Block
(BDA-L)
Connection type Connection destination
I/O terminal Data Data Condition Status Terminal Process Software Function
reference setting testing manipulation connection I/O I/O block
Calculation Δ
J01 to J16 x x x
output
D024502E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of alarm processing possible for the BDA-L block, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
n Set Parameter
The parameters of the Batch Data Acquisition Block (BDA-L) are shown as follows.
• Command switch (SW):
An integer value between 0 and 17
Element symbol.ACT.n
n = 0 : All acquired data are changed to “0.”
n = 1 to 16 : Only the specified data (DTnn) is acquired.
n = 17 : All data are acquired.
SEE
ALSO For a list of valid block modes for BDA-L block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Command switch SW
D024601E.ai
Figure Function Block Diagram of Batch String Data Acquisition Block (BDA-C)
The following table shows the connection types and connection destinations of the Batch String
Data Acquisition Block (BDA-C).
Table Connection Types and Connection Destinations of I/O Terminals of Batch String Data Acquisition
Block (BDA-C)
Connection type Connection destination
I/O terminal Data Data Condition Status Terminal Process Software Function
reference setting testing manipulation connection I/O I/O block
Calculation Δ
J01 to J16 x x
output
D024602E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link block (ADL).
SEE
ALSO • For the types of alarm processing possible for the BDA-C block, see the following:
D2.3.1, “Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block”
• For details on the alarm processing, see the following:
C5, “Alarm Processing-FCS”
Element symbol.ACT.n
n = 0 : All acquired data are replaced with null.
n = 1 to 16 : Only the specified data (DTnn) is acquired.
n = 17 : All data are acquired.
n Set Parameter
The set parameters of the Batch String Data Acquisition Block (BDA-C) are shown as follows.
• Command switch (SW):
An integer value between 0 and 17.
SEE
ALSO For a list of valid block modes for BDA-C block, see the following:
D2.3.2, “Valid Block Modes for Each Calculation Block”
Reference data 1
SET1
Set data 1
Reference data 2
SET2
Function block
Set data 2
of other control station
Reference data 8
SET8
Set data 8
D024701E.ai
TIP
After downloading the engineering data in which portions not relating to the Inter-Station Data Link Block (ADL)
have been modified by a builder, a difference may be detected, indicating that some changes have occurred
to the Inter-Station Data Link Block (ADL). This difference is generated because the inter-station data link is
recreated dynamically.
Function blocks in the control stations belonging to different projects can be connected in the
same way as for inter-station connection in the same project by using a multiple-project tag name
for the tag name of that function block. However, the HIS must be installed with the Multiple-
Project connection packages.
Multiple-project tag names are specified in the following format:
tag name@project ID
Project ID can be defined on the Multiple-Project Connection builder for the upper level project.
The project ID can not be more than two alphanumeric characters. The maximum number of
characters that can be used for the entire multiple-project tag name is 16, including the @ mark
and the project ID.
An example of inter-station connection using Multiple-Project tags is illustrated as follows.
Project ID = P1 Project ID = P2
TIC101 OUT
FIC001@P2.SET TIC101@P1.OUT
PID
SET
FIC001
PID
TI102 IN TI002
TI102@P1.PV
PVI PVI
D024702E.ai
SEE
ALSO For more information about calling the tags that have identical tag names among the multiple projects, see the
following:
“n Identical Tag Names” in M7.2.1, “Operation and Monitoring Multiple Projects”
n Control Action
Three types of processing are available with the Inter-Station Data Link Block (ADL): “data
reference only,” “data setting only” and “data reference and setting.”
Which processing is performed is determined automatically in accordance with the data that
has been linked when I/O connection was specified in the Function Block Detail Builder. The
processing types and corresponding I/O connections are shown below.
Processing type: I/O connection
Data reference: Data reference connection
Data reference and setting: Data setting connection, cascade connection
Data setting: Data setting connection from a specific function block
The cycle of periodic communication processing (processing timing) performed by the Inter-
Station Data Link Block (ADL) is specified by the FCS Constants Builder for each FCS to which
the Inter-Station Data Link Block (ADL) belongs.
When the communication error occurs, NCOM (communication failure) is transmitted as the data
status to the function blocks or the data buffers connect to it.
Communication failure alarm is initiated only when the communication error occurred for a
specified number of times. So far, this specified number is fixed as 1, i.e., the alarm occurs
whenever the error is detected.
l Data Reference
When processing type is “reference” or “reference and setting,” data is referred from the specified
reference destination. An example of data reference action is shown below.
Referencing function block ADL Other Referenced function block
control station
D024703E.ai
D024704E.ai
D024705E.ai
IMPORTANT
When the cascade connection between controller function blocks involves different FCS, use the
Inter-Station Data Link Block (ADL) in accordance with the following conditions.
• Set the control output action type of the upstream function block in cascade to “positional.”
• The control period of the upstream function block in cascade should be set longer than the
inter-station communication period.
The effective inter-station data link points are the points of the inter-station data link actually wired
in Control Drawing Builder or in Function Block Detail Builder or in Function Block Overview
Builder within each FCS. When the definition (wire connection) of the inter-station data link is
changed, the inter-station data link points to be processed in one second will be set again based
on the set inter-station data link points.
TIP
When the inter-station communication period is changed, offline downloading will be required.
The re-transmission skip times can be defined in the FCS Constants Builder as a FCS constant.
The default is 60.
If the inter-station communication period extends, the re-transmission skip period extends
accordingly.
SEE
ALSO For the reserved words of the general-purpose arithmetic expression, see the following:
D2.47.9, “Reserved Words for Numerical and Logical Arithmetic Expressions”
l Comment
When a line is headed by a “*” mark, the contents of the entire line are treated as a comment.
When “!” mark appears in the middle of a line, the texts from the right-hand side of “!” mark till the
end of the line are treated as a comment.
The following examples show a comment and a comment statement:
program !This portion is comment.
*This line is for comment.
if ({SW100.SW.3})then
l Label
A label can be attached to a statement as a mark. A label can be used as a branch destination of
a goto statement.
The labels are written in the following format:
<identifier>:<statement>
If there is no statement to the right-hand side of a label, it means that the label is for the next
statement. An example when no statement is written to the right-hand side of the label is shown
below:
program
label: i f({SW100.SW.3})then
When a “case” statement and another statement are written in the same line, such as “case 1:
i=1,” the line is treated as a statement line.
l Engineering Index
Even if the statement is written in 20 lines or less, a capacity overflow error may occur during the
compilation. This phenomenon occurs due to the limitation on the used variables, constants and
the number of operators.
The possibility of a capacity overflow error is lowered if approximately 20 lines of assignment
statements with four terms, as shown below, are written:
A = A1 + A2 + A3 + A4
integer
Integer 15 bits
long
Integer 31 bits
float
Exponent field Mantissa field
(E) 8 bits (M) 23 bits
double
Exponent field Mantissa field
(E) 11 bits (M) 52 bits
D2.47.3 Variables
A variable is a data which has a name and data type. A value can be referred to and set by
a variable.
There are two kinds of variables: I/O variables and local variables.
TIP
• The block mode and alarm status are integer data.
• The size of the character string I/O variable is 16 bytes.
CALCU
IN
RV
PVI θ01
IN OUT
PV RV1 CPV=RV+RV1+RV2 CPV
θ02
PVI RV2
IN
PV
D024805E.ai
Figure Example of I/O Variables and Arithmetic Expression when Wired by the Builder
TIP
• When the same data is connected to the input connection terminal and output connection terminal,
separate input variable and output variable are allocated.
• The I/O variables can be used in an expression. However, input variables (RV, RV1, RV2, ...) cannot be
used on the left-hand side of the assignment statement.
When a tag name is used as the element symbol, if a tag name starts with a number or “-” sign,
the computation may not be correct. Define an alias to use the tag.
The element symbols and data item names represent the data from other blocks can be
assigned to variables by compiler. The data items assigned to variables according to the
following conditions:
• If the data of other function block is written on the left-hand side of an assignment statement,
it is assigned to an output variable.
• If the data of other function block is written both on the left-hand side of an assignment
statement, it is assigned to an input variable.
• If the same data as other function block is written both on the left-hand side of an
assignment statement and another place in the data connection format, it is assigned to an
output variable.
• If the same data as other function block is written both on the left-hand side of an
assignment statement and another place in the sequence connection format, it is assigned
to a separate input variable and output variable.
• If the data of another function block is written at a place other than the left-hand side of
an assignment statement in the sequence connection format, the condition testing of the
sequence connection is always executed even if the statement is not executed.
The second line is a statement which sets the calculation output value (CPV) of FIC100 multiplied
by 0.1 to the I/O compensation value (VN).
When data reference and setting of other function block are executed by using the element
symbol instead of terminal connected by the Function Block Detail Builder, the following
restrictions apply:
• Connection between terminals and connection between stations cannot be specified
because the connection is not established by the builder.
• The I/O variable that the element symbol is assigned to is unknown, because the compiler
automatically assigns the element symbol to the I/O variable other than RV, RV1 through
RV7, CPV, CPV1 through CPV3.
l Sequence Connection Using the Element Symbol (Data Value Reference and
Data Value Modification)
The following example shows an arithmetic expression which executes the sequence connection
with other function block using the element symbol.
program
{PIC100.MODE.MAN}={TIC100.ALM.HI}
{SW100.SV.3}={TIC100.MODE.AUT}
end
The second line is a statement which changes the block mode of PIC100 to MAN when the alarm
status of TIC100 is HI.
The third line is a statement which modifies the signal path by changing SV of the selector switch
to 3 when the block mode of TIC100 is in the automatic (AUT) mode.
The second line is an “if” statement which tests whether SV of the selector switch is 3 or not.
The third line is a statement executed when the if statement in the second line is true. In this
statement, the block mode of PIC100 is switched to the automatic (AUT) mode when the CAL100
block is started by a one-shot command.
The one-shot command to start the CAL100 might be triggered by any other blocks or occurs at
the time even before this block starts. It is irrelevant to this calculation block. In the other word,
the CAL100 started by the one-shot command have no relation with statement in the second line
in this calculation block.
On the contrary, the statement on the left-hand side which changes PIC100 to AUT is not
executed unless the result of the if statement in the second line is true and the third line condition
written at right-hand side is true at the same time.
TIP
• Specify the number of bytes, n, of the character string when a character string variable is declared. When
a character string variable where characters which require two bytes per character, such as the Japanese
character code, are stored, specify a value n by taking characters that require two bytes into account.
• The maximum size of local variable of the character string type is sixteen bytes.
If the compiler control command, #implicit none is given, the implicit declaration of the local
variable is disabled. Then a compiler error occurs if a variable not declared is used.
Use the “#implicit none” instruction between the program statement and the end statement.
An example of arithmetic expression which uses aliases for data reference and data setting of
other function block is shown blow:
program
alias FLOW FIC100.CPV
alias HOSEI TIC100.VN
HOSEI=FLOW*0.1
end
#define<identifier><character string>
When the arithmetic expression is compiled, the identifier defined by the compiler control
instruction “#define” is replaced by assigned character string prior to compilation. Even if the
identifier appears in the character string, however, substitution is not performed.
An example of character string substitution is shown below:
program
#define OPEN 2
......
SI0100.MV=OPEN
SI0200.MV=OPEN
end
D2.47.4 Operators
The following operators can be used in the general-purpose arithmetic expressions:
• Binomial operator
• Unary arithmetic operator
• Relational operator
• Equality operator
• Binary logical operator
• Unary logical operator
• Bitwise logical operator
• Bitwise shift operator
When an integer is divided by another integer, the digits to the right of the decimal point are
truncated for the quotient.
If the operand of a mod calculation is a real number, the fractional part of the operand is rounded
off and the operand is converted to a long integer (long) type prior to the calculation.
Insert a space before and after “mod.”
n Relational Operators
Calculation with a relational operator can be executed to any numerical data and any character
string data.
Usable unary relational operators are as follows:
• <: Smaller than
• >: Greater than
• <=: Equal to or smaller than
• >=: Equal to or larger than
The result of the calculation by a relational operator is the integer type. The value of the
calculation result becomes true (1) if the relationship between the two sides connected by the
relational operator is satisfied, or becomes false (0) if it is not satisfied.
n Equality Operators
Calculation with an equality operator can be executed to any numerical data and any character
string data.
Usable equality operators are as follows:
• ==: Equals
• <>: Not equals
The result of the calculation with the equality operator is the integer data. The value of the
calculation result becomes 1 if the relationship between the two sides connected by the
equality operator is satisfied, or becomes 0 if it is not satisfied. When both the equality operator
and relational operator are used in the same arithmetic expression, the relational operator is
evaluated first.
When a comparison of real numbers is executed by the equality operator, it is determined to be
different even if the values of both sides differ slightly. Use relational operators (>=, <=, >, <) to
compare real numbers.
The logical values of both sides become true if any value other than 0, and false if 0. The value of
the calculation result becomes 1 if the logical calculation result is true and 0 if false.
The calculation result is the integer type.
Insert a space before and after a binary logical operator.
If the operand of a bitwise binary logical calculation is a real number, the fractional part of the
operand is rounded off and the operand is converted to the long integer (long) type prior to
calculation.
The logical calculation is executed bit-by-bit to the values on both sides.
n Arithmetic Expressions
▼ Arithmetic Expressions
An arithmetic expression can be described using the following format in general-purpose
arithmetic expressions:
• <function>
• <constant>
• <variable>
• (<expression>)
• <expression><binomial operator><expression>
• <unary operator><expression>
• <expression><equality operator><expression>
• <expression><relational operator><expression>
• <expression><binary logical operator><expression>
• <unary logical operator><expression>
• <expression><bitwise binary logical operator><expression>
• <bitwise unary logical operator><expression>
• <expression><bitwise shift operator><expression>
n Priority Order
The priority order of the calculations is shown in the following table:
Table Priority Order of the Calculations
Calculation Symbol (Operator) Association rule Priority
Parenthesis () Left to right Highest priority
Function Function Left to right ↑
Unary operator — (not) - (negative) + (positive) Right to left
Multiplication and division * / MOD Left to right
Addition and subtraction +- Left to right
Shift operation << >> <@>@ Left to right
Relational operator < <= > >= Left to right
Equality operator == <> Left to right
Logical operator & Left to right
Logical operator ^ Left to right
Logical operator | Left to right
Logical operator and Left to right
Logical operator eor Left to right ↓
Logical operator or Left to right Lowest priority
D024807E.ai
I: integer type
L: long type
D: double type
Note: Calculation is not allowed if the character string data and numerical data are mixed. Also, no data type conversion is executed
between the character string type and numerical type.
Note: The float type is converted to the double type unconditionally.
TIP
• If either operand is the double type, the other operand will also be converted to the double type.
Accordingly, the calculation result becomes the double type.
• If either operand is the long type and the other is integer, the other operand is converted to the long type.
The calculation result becomes the long type.
• If both operands are integer type, the calculation result remains integer type.
n Assignment Statement
An assignment statement refers to a statement which has a variable on the left-hand side and
an expression on the right-hand side, and they are connected by the “=” symbol. An assignment
statement substitutes the left-hand side variable by the calculation result of the right-hand side
expression.
It is necessary in the assignment statement for both of the right side and left side to be the
numerical type or character string type.
The format of the assignment statement is as follows:
<variable> = <expression>
• <variable>:
Variable to which the value of <expression> calculation should be assigned.
• <expression>:
Expression that calculates the substituting value for the <variable>.
integer A A A
long A A
float B A, B
double
D024809E.ai
Blank: No problem
A: An overflow may occur.
B: Loss of digits may occur.
Note: Extend the sign of the value before assigning a value of the integer type to a long-type variable.
Note: An overflow error occurs when the substituting value exceeds the handling range for the integer type.
Note: When a variable of the integer type is substituted by a value of the real type, round off the substituting value at the first digit after
the decimal point prior to substitution. Use the “int” built-in function to truncate after the decimal point.
n if
▼ Control Statements
The “if” statement is used to control the execution of arithmetic expressions by the condition(s) of
the expression.
The format of the “if” statement is shown below:
l Format 1
if (<expression>)<statement>
• <expression>:
Give the expression to be evaluated in the numerical or character string format.
• <statement>:
A statement which will be executed when the expression is true.
When the “if” statement above is executed, <expression> is calculated. <statement> is executed
only when the result of the <expression> is true (<>0).
When the “if” statement above is executed, <expression> is evaluated first. Further processing
will be determined depending on the evaluation result.
• When the result of <expression> is true (<>0), after executing the statements from the one
after “then” to the one before “else”, the execution jumps to the statement after the “end
if” statement. When the “else” statement does not exist, the statements after “then” will be
executed.
• When the result of <expression> is false (==0), if the “else” statement exists, the statements
after “else” will be executed. When the “else” statement does not exist, the statements after
“end if” statement will be executed.
When the “if” statement above is executed, the <expression> is evaluated first. Further
processing will be determined depending on the evaluation result.
• When the result of the <expression> in the “if” statement is true (<>0), after executing the
statements starting from the statement after “then” which corresponds to <expression>, to
the statement before the “else if” statement, the execution jumps to the statement after the
“end if” statement.
• When the result of the <expression> in the “if” statement is false (==0), the conditional
expression in the next “else if” statement is evaluated.
• When the result of the <expression> in the “if” statement is false (==0) and the result of the
<expression> in the “else if” statement is true (<>0), if there is an “else if” statement after
the “then” statement, the statements starting from the one after “then” statement to the one
before “else if” statement will be executed, and the execution jumps to the statement after
the “end if” statement.
If there is no “else if” statement after “then” statement and an “else” statement exists, the
statements starting from the one after the “then” statement to the one before the “else”
statement will be executed, and the execution jumps to the statement after the “end if”
statement.
If there is no “else if” statement nor “else” statement after the “then” statement, the
statements following the “then” statement will be executed.
• When the result of the <expression> in the “if” statement is false (==0) and the result of the
<expression> in the “else if” statement is false (==0), if an “else if” statement exists after the
“then” statement, the “else if” statement will be executed in the same way as in the case
described above.
If there is no “else if” statement exists after the “then” statement but the “else” statement
exists, the statements following the “else” statement will be executed.
If there is no “else if” statement or “else” statement, the statements following the “end if”
statement will be executed.
While the processing can jump out of the “if” to “end if” statement range by a “goto” statement,
the execution cannot jump to inside the “if” to “end if” statement range from outside of the “if”
statement.
n switch
The switch statement is used to branch depending on the matching condition of expression with
any of the multiple constant values.
switch (<expression>)
case <constant>[,<constant>]...:
....
[case <constant>[,<constant>...]:
....
[otherwise:
....
]]
end switch
• <expression>
Give the expression to be evaluated in the integer or character string format.
• <constant>
A constant to be compared with the <expression>. Specify a value of the same data type as
that of the <expression> in the “switch” statement. Multiple constants can be listed.
When the switch statement above is executed, the value of the <expression> is calculated
first. The processing will be branched depending on the result of the comparison between the
<expression> value and the <constant>. The branch algorithm is shown below:
• When a <constant> of the same value as that of the <expression> exists, the processing
branches to the statement after the “case” statement which includes the <constant> of
the same <expression> value. After executing to the statement before the next “case”
statement, the processing jumps to the statement after the “end switch” statement.
• When there is no <constant> that is the same as the <expression> value and there is an
“otherwise” statement, the processing branches to the statement after the “otherwise”
statement.
• When there is no <constant> that is the same as the <expression> value and there are
no “otherwise” statement, the processing branches to the statement after the “end switch”
statement.
While the processing can jump out of the “switch” to “end switch” statement range by a “goto”
statement, the execution cannot jump to inside the “switch” to “end switch” statement range from
outside of the “switch” statement.
The statement following the “case” statement can be written in the same line as the “case”
statement. Even though a line which only has a “case” statement is not counted as an execution
statement, it will be counted as an execution statement if a statement is written in the same line
as the “case” statement.
n goto
The “goto” statement unconditionally jumps to the line with the specified label.
The “goto” statement, however, cannot specify a label before the “goto” statement itself.
goto <label>
A compiler error will occur if the label specified by the “goto” statement is located prior to the
“goto” statement, or if the specified label does not exist in the arithmetic expression.
n exit
The “exit” statement unconditionally jumps to the “end” statement. The “exit” statement can be
placed anywhere in the arithmetic expression.
The category error codes include the calculation error, errors specific to the arithmetic
expression, execution control error, general error of the built-in function, and other errors.
The details of the category error and detailed error codes are shown below.
The detailed error code is a code that indicates the serial number of the data item name where
the error occurred.
The following table is a list of detailed error codes:
Table List of Detailed Error Codes
Code Data item name
0 RV of CALCU or CALCU-C, CPV
1 to 31 RVn, CPVn
0 to 7 P01 to P08
D024812E.ai
l Other Errors
Table List of Other Error Codes
Code Description
-1 to 32767 Internal error
D024815E.ai
n Built-In Functions
▼ Built-In Functions
The built-in functions are the applicable functions already built in the system. The built-in
functions include general arithmetic functions, bit operation functions, trigonometric functions,
natural logarithm, temperature and pressure correction functions and so on.
Specify one variable or constant to the built-in function as a parameter. Expressions such as i+1
and d/10.0, or built-in function calls may not be specified as an argument.
SEE
ALSO The causes of errors occurred during the execution of built-in functions and how to handle the errors as well as
the details of error codes, see the following:
D2.47.7, “Error Handling”
n Arithmetic Functions
These functions execute arithmetic calculations.
The details of the arithmetic functions are as follows.
The “arg2,” an argument for “bitpstn” and “bitsrch,” is a variable prepared for the functional
extension in the future. “arg2” is ignored even if it is specified.
n Trigonometric Functions
These functions execute calculations related to the trigonometric functions.
The details of the trigonometric functions are as follows:
l Sine – sin(arg)
“sin” is a function that calculates the sine of the argument. The unit of the argument is in radian.
Both the argument and result are the double type.
l Cosine – cos(arg)
“cos” is a function that calculates the cosine of the argument. The unit of the argument is in
radian. Both the argument and result are both double types.
l Tangent – tan(arg)
“tan” is a function that calculates the tangent of the argument. The unit of the argument is in
radian. Both the argument and result are the double type.
n Exponent – exp(arg)
“exp(arg)” is a function that calculates the result of the exponential function (the value after
multiplying e for arg times). Both the argument and result are the double type.
Tb+273.15
TC (Fi, T, Tb) = • Fi
T+273.15
D024816E.ai
Fi : Measured flowrate
T : Measured temperature (°C)
Tb : Reference temperature (°C)
Instead of TC (°C), TCF (°F) maybe used in the above formula.
P+1.01325 • 102
PCKP (Fi, P, Pb) = • Fi
Pb+1.01325 • 102 D024817E.ai
Fi : Measured flowrate
P : Measured pressure (kPa)
Pb : Reference pressure (kPa)
Fi : Measured flowrate
P : Measured pressure (kPa)
T : Measured temperature (°C)
Pb : Reference pressure (kPa)
Tb : Reference temperature (°C)
Even though the TPCKP(pressure unit: kPa) is used in the description above, TPCP(pressure
unit: Pa), TPCMP(pressure unit: MPa) and PC (pressure unit :kgf/cm2) can alternatively be used.
When Pa or MPa is used as the pressure unit, the constant of the pressure correction term is
1.01325 • 105 and 1.01325 • 10-1 respectively.
When PC is used, the constant of pressure term becomes 1.0332 • 102.
F0 = Cf • Fi
Cf = 1 + α (t - 15) + β (t - 15)2
-P1(t) -P3(t)
α= +P2(t) β= +P4(t)
C1 C1 D024819E.ai
Fi : Measured flowrate
t : Measured temperature
C1 : 15/4 °C specific gravity
F0 : Corrected flow
P1(t) to P4(t) : Temperature-dependent parameters
K0 K1
α= +
ρ2
ρ D024823E.ai
F0 : Corrected flowrate
t : Measured temperature
ρ : Density at 15 °C (kg/m3)
Fi : Measured flowrate
K0, K1 : Oil type specific constants
Because the arguments of “llimit” are converted to the long type, the result will be the long type.
Because the arguments of “dlimit” are converted to the double type, the result will be the double
type.
An error occurs when arg2 (low limit value) is larger than arg3 (high limit value). In this case, the
return value of the function will be the data value.
The result of “stpvcalc” is always 2-digit decimal number between “00” and “99” (char*2 type).
If the value is between 0 and 9, 0 is added. An error occurs if the result of the addition becomes
negative or exceeds 99.
An example of changing PV (step name) of the sequence table SEQ001 is shown below:
program
.....
!Assume SEQ001.PV as “03”.
SEQ001.PV=stpvcalc(SEQ001.PV,1)
* SEQ001.PV becomes “04” after applying +1 to “03.”
......
SEQ001.PV=stpvcalc(SEQ001.PV,2)
* SEQ001.PV becomes “06” after applying +2 to “04.”
......
SEQ001.PV=stpvcalc(SEQ001.PV,-4)
* SEQ001.PV becomes “02” after applying -4 to “06.”
......
end
If “00” is specified to arg1, a character string value converted from the arg2 number can be
obtained.
An example of setting a step name to PV of the sequence table SEQ002 is shown below:
program
......
SEQ002.PV=stpvcalc(“00”,8)
* SEQ002.PV becomes “08.”
......
SEQ002.PV=stpvcalc(“00”,12)
* SEQ002.PV becomes “12.
......
end
Note: The letter in parentheses ( ) indicates in which part of the program the reserved word is used.
(D): Declaration statement (S): Statement (B): Built-in function
(O): Operator (V): Variable name (R): Reserved
Even though the data item name such as PV and MV are not included in reserved words by the
compiler, it takes greater program resource to find out when a data item name is used in the
place beyond data item names. It is advised not to use the same character string of data item
names in the program scripts.
SEE
ALSO For details of SFC functions, see the following:
D5, “Sequencial Function Chart”
n Sequence Control
The sequence control follows each control step in sequence according to predefined conditions
and order. The function block that executes sequence control function is referred to as the
sequence control block.
The figure below describes the positioning of the sequence control in the basic control.
FCS
Basic control
Software I/O
Faceplate blocks
SFC blocks
Options
D030001E.ai
With sequence control function blocks, the following types of sequence control can be applied.
• Condition control (monitoring)
Monitors process status and controls it according to pre-defined conditions.
• Program control (phase steps)
Controls according to pre-defined programs (phases).
l SFC Block
SFC (Sequential Function Chart) block is a function block using SFC for sequence control.
The SFC (Sequential Function Chart) block is a graphical flow diagram suitable for describing a
process control sequence. It is standardized by the international standard, IEC SC65A/WG6.
The SFC block is used for relatively large-scaled sequence controls and for controlling devices.
The flow of the entire sequence is defined by the SFC block. Each step in the SFC is described
by the sequence table and SEBOL (SEquence and Batch Orientated Language).
TIP
In KFCS2, KFCS, LFCS2, LFCS, RFCS5 and RFCS2, the following types of sequence table blocks are also
available other than the above mentioned sequence table blocks.
• Sequence Table Block (M_ST16)
Capacity: Condition Signals: 32 to 64 / Action Signals: 32 to 64 / Total: 96
• Rule- Extension Sequence Table Block (M_ST16E)
• Sequence Table Block (L_ST16)
Capacity: Condition Signals: 64 / Action Signals: 64 / Total: 128
• Rule-Extension Sequence Table Block (L_ST16E)
The following ten models of blocks are categorized as Enhanced Switch Instrument Block.
• Enhanced Switch Instrument Block with 1 Input (SI-1E)
• Enhanced Switch Instrument Block with 2 Inputs (SI-2E)
• Enhanced Switch Instrument Block with 1 Output (SO-1E)
• Enhanced Switch Instrument Block with 2 Outputs (SO-2E)
• Enhanced Switch Instrument Block with 1 Input, 1 Output (SIO-11E)
• Enhanced Switch Instrument Block with 1 Input, 2 Outputs (SIO-12E)
• Enhanced Switch Instrument Block with 2 Inputs, 1 Output (SIO-21E)
• Enhanced Switch Instrument Block with 2 Inputs, 2 Outputs (SIO-22E)
• Enhanced Switch Instrument Block with 1 Input, 2 One-Shot Outputs (SIO-12PE)
• Enhanced Switch Instrument Block with 2 Inputs, 2 One-Shot Outputs (SIO-22PE)
x: available
Blank: Not available
The alarm status of ST16, LC64, TM and VLVM blocks are always indicated as NR (stands for
Normal status).
x: valid
Blank: Invalid
D030201E.ai
The table below lists connection methods and destinations for Sequence Table Blocks (ST16,
ST16E) I/O terminals.
Table Connection Methods and Destinations for Sequence Table Block (ST16, ST16E) I/O Terminals
Connection type Connection destination
I/O Status Terminal
terminal Data Data Condition Process Software Function
manipula- connecti-
reference setting testing I/O I/O block
tion on
Q01 to Q56 x x x x
J01 to J56 x x x x
D030202E.ai
x: Connection available
Blank: Connection not available
Input Condition
connection specification Condition rule setting area
information setting area
setting area
Output Operation
connection specification
information setting area
setting area
Action rule setting area
D030203E.ai
Two types of blocks are available in the Sequence Table Block (ST16, ST16E).
• ST16:
Sequence Table Block
• ST16E:
Rule Extension Block
n Rule Expansion
When the phase step sequence table is used, the number of processes (number of steps)
may be insufficient depending on the process that is being performed. At this time, use the rule
expansion format Sequence Table Block (ST16E) which enables the number of rules to be
expanded.
The following figure shows when the rule expansion of sequence tables.
ST16 ST16E
Rule 01 ... ... ... ... ... ... 32 Rule 01 ... ... ... ... ... 3132
Symbol Step 01 ... ... ... ... ... ... 15 Symbol Step 16 ... ... ... ... ... ... 35
C01 C01
• •
• E1 G1 • E1 G2
• •
C32 C32
A01 A01
• •
• H1 J1 • H1 J2
• •
A32 A32
THEN THEN
ELSE ELSE
D030204E.ai
Rule number 01 02 03 04 05 06 07 08 32
Tag name
No. Data Step label
Data item
Condition signal Comment
C01 TM14.BSTS RUN
Condition rule
C02 FC001.ALRM HI
C03 %SW0201.PV ON
C03
C04
Action signal
l Condition Signal
Enter the element symbol and data item into the Tag name. Data item column as the input
connection information, then enter the condition specification to Data column.
l Action Signal
Enter the element symbol and data item into the Tag name. Data item column as the input
connection information then enter the action specification to Data column.
l Rule Number
Up to 32 rules per block may be used. The output is based on each rule condition and condition
testing result.
l Condition Rule
Describe the Y/N (Y: true, N: false) pattern (combination) to condition rule. If the testing result of
condition signal corresponds with the Y/N pattern, the condition of the rule is satisfied.
l Action Rule
Describe the Y/N ( Y: Positive action; N: Negative action) pattern (combinations) to action rule.
Perform manipulated output according to the Y/N pattern of the action rule for the rule number
whose condition is satisfied.
l Step Label
▼ Step
These labels are attached for phase identification purposes when performing step sequence
control using a sequence table. Step labels are character strings that combine two or less
alphanumeric characters (A to Z, 0 to 9).
If two characters are combined while one is not alphanumeric and the other is alphanumeric, the
label is managed as the same step name, even if the order of characters is reversed (e.g., “_A”
and “A_”).
Up to 100 steps can be described in one sequence table group. However, same step labels
cannot be described at multiple locations inside the sequence table group.
The step labeled 00 is activated every scan cycle.
The described step labels must exist in the same sequence table group. To execute a step from
another sequence table group at the next scan, it must be described as an action signal.
l Data
Describe the condition specification of the condition signal or the operation specification of the
action signal.
l Comment
Comments are defined by users for the condition and action signals. The meaning of symbols
and the contents of status manipulation may be put in these texts, by using up to 24 single-byte
alphanumeric characters, or 12 double-byte characters.
By clicking the task [Referencing Signal Comment] from the [Tool] menu, the user-defined
comment text may be displayed at the right area of signals. By this Referencing Signal Comment
operation, the comment texts defined by users for the condition signals and action signals and
the tag comments are all displayed. The comment text for the referenced signals can not be
edited on the sequence table editing window.
IMPORTANT
Specify an element number with the number of digits specified for each element to a condition
or action signal. If the number without the highest digit’s “0” is specified to a condition or action
signal, a reference signal comment is not displayed.
TIP
A referenced signal comment is not stored in a builder file. To reference a comment, select [Referencing Signal
Comment] from the [Tool] menu.
l Scan Period
Periodic start sequence tables are activated at defined scan period. Among the periodic started
sequence tables, the sequence tables activated in the basic period have the items “Control
Period” and “Control Phase” to be defined in addition to scan period.
“Scan Period,” “Control Period,” and “Control phase” can be defined for each sequence table.
• Scan Period:
Select from “Basic Scan”, “Medium-speed Scan” (*1) or “High-speed Scan.”
• Control Period:
1 to 16 seconds.
• Control Phase:
0 to 15 seconds.
*1: “Medium-speed Scan” is only supported by KFCS2, KFCS, FFCS, LFCS2 and LFCS.
SEE
ALSO • For sequence block processing timing, see the following:
C7.3, “Process Timing for Sequence Control Block”
• For details on scan period, see the following:
C7.1.1, “Scan Period”
• For details on control period and control phase, see the following:
C7.3.5, “Control Period and Control Phase for Sequence Table Blocks (ST16, ST16E)”
In the example in this figure, for AND operator, only when two condition signals are satisfied, the
operation may be performed.
01 02 03
In the example in this figure, for OR operator, any one of the two conditions is established, the
operation may be performed.
Condition signal
number
display area Condition signal setting area Condition rule setting area
Action signal
number
display area Action signal setting area Action rule setting area
D030208E.ai
To create a sequence table, the information (condition signals, action signals, condition rule and
action rules) for sequence connection and the information (condition rule and action rules) for
logic calculation should be entered to each setting area of the sequence table edit window.
The setting area are listed below.
• Processing timing setting area
• Step label setting area
• Condition signal setting and action signal setting area
• Condition rule setting and action rule setting area
• Extension table setting area
• Next step label setting area (THEN, ELSE)
Processing timing
Scan period
OK Cancel
D030209E.ai
SEE
ALSO For details of processing timing, see the following:
C7.3, “Process Timing for Sequence Control Block”
SEE
ALSO • For details of condition rules, see the following:
D3.2.5, “Condition Rule Processing of Sequence Table”
• For details of action rules, see the following:
D3.2.6, “Action Rule Processing of Sequence Table”
SEE
ALSO For details of rule extension, see the following:
D3.2.9, “Rule Extension”
Input processing
(condition testing)
....... Y
....... Y
....... N
....... Y
Output processing
(status manipulation)
D030210E.ai
l Input Processing
The true/false status of the condition signal is determined by performing condition testing based
on the input signal.
l Output Processing
Status manipulation of the action target is performed based on the description of the action
signal. The status manipulation, start command transmission, data setting, and status change
can be performed to the contact outputs and other function blocks.
There are two types of sequence tables: step and nonstep. Rule processing differs by the type of
sequence table.
C32
A01 Only the rules whose conditions
. are satisfied are executed.
. Operation signal
.
A32
THEN
ELSE
D030211E.ai
• As for condition testing, a condition is satisfied when all conditions (Y or N) for the same
rule number are true. A sequence table whose rule columns are all blank is considered true
unconditionally.
• Operations are executed according to the operation contents of Y or N described for the rule
number whose conditions are satisfied.
• When the output timing is specified as “Output Only When Conditions Change,” the
operation is executed only once when the condition is switched from false to true. However,
if non-latched output is specified for the operation signal, the operation changes when the
condition is switched from true to false.
• When the output timing is specified as “Output Each Time Conditions are Satisfied,” the
operation is executed during each period as long as the condition remains true.
• When the conditions of multiple rules are satisfied simultaneously with respect to the same
operation signal, if requests for both Y and N are detected as the resultant operations, the
request for Y takes precedence, and the operation for N will not be executed.
01 02 03
HH
LI H
Inflow valve 100 L
VALVE-A PVI LL
Differential Pressure
transmitter
LT100
Next process
D030213E.ai
The sequence table in the figure shown above monitors the conditions in rule numbers 01 to 04
simultaneously. Any condition in one of the 4 rules becomes true, the operation in the same rule
will be executed again. The monitoring continues after the execution.
C32
A01 Only the operations for the rules whose conditions are
. satisfied in the step currently being executed, are executed.
. Operation signal
.
A32
THEN
ELSE
D030216E.ai
• Step label 00 is executed during each period. Step 00 may only be described at the head of
a sequence table group. Step 00 cannot be described as a next step label.
• When the check box of [CENTUM-XL Compatible Sequence Tables] in the [Sequence Table
Algorithm] setting area of [Constant] tab on FCS Properties sheet is checked (*1), if the
step00 exists in the same table of the execution step, both the step00 and the execution
step will be activated at the same time after the condition testing. If the table is expanded to
another table and the execution step is on the expansion table, the condition of the step00
will be tested first and then the action of the step00 will be activated before testing and
activating the execution step.
However, if the check box of [CENTUM-XL Compatible Sequence Tables] is not checked,
the condition of the step00 will be tested first and then the action of the stepp00 will be
activated before testing and activating the execution step even when the sequence table is
not expanded.
By default, this check box is not checked.
• For step sequences, the next execution step label must be described in THEN/ELSE in
order to advance the steps. The step will not be advanced if both next step labels in THEN/
ELSE are blank. If there is no description for the next step label, the same step is executed
each time, the sequence does not move step.
• The next step specified in THEN is the step to advance when the condition test result in
positive. When all operations for the corresponding rules are completed, the step proceeds
to the next step.
• The next step specified in ELSE is the step to advance when the condition test result in
negative. When conditions for the corresponding rules are established, the step proceeds to
the next step without executing the operation rules.
*1: The check boxes of [CENTUM-XL Compatible Sequence Tables] and [THEN/ELSE Has Higher Precedence] are available in the
[Sequence Table Algorithm] setting area of Constant tab on FCS Properties sheet of KFCS2, FFCS and LFCS2 only.
FCS
Start button
(PB001)
Valve A
(VLVA)
Switch A
(SWA)
Switch B
(SWB)
Valve B
(VLVB)
Sequence start
Start button No
(PB001)
Yes
Switch A level Hi No
(SWA)
Yes
Start button No
PB001
Yes
Switch B level Lo No
(SWB)
Yes
D030219E.ai
Rule Number 01 02 03 04 05 06
Process Timing TC .... Scan Period Basic Scan A A
STEP
No Tag Name.Data Item Data Comment 1 2
A A
THEN
2 1
Destination Step Label
ELSE
D030220E.ai
In the above sequence table, rule numbers 01 and 02 are step A1. Rule numbers 03 and up
are step A2. Rule numbers 05 and beyond do not have any description for the condition rule,
operation rule or move-destination step label, so they are not subject to condition testing nor
operation.
Step A1 monitors the conditions for rule numbers 01 and 02 simultaneously. Of rule numbers 01
and 02, whichever the condition is satisfied will be executed. Executing the operation of rule 01
does not advance the step, since there is no designation in the move-destination step label. After
executing the operation, A1 resumes monitoring rule numbers 01 and 02 again. On the other
hand, if the condition for rule number 02 becomes true, the operation of rule 02 will be executed,
and the step advances to A2 because the move-destination step label has a designation.
*1: The following describes factors that do not allow input signals.
• When the database of the connection destination or element is abnormal.
• When the connection destination or process I/O is undergoing online maintenance.
A system alarm occurs when referencing the result of one-shot execution at the connection
destination fails due to the following:
• When the nest referring from a referenced sequence table to other sequence
table exceeds seven levels including the referencing sequence table;
• When the connection destination block mode is out of service (O/S); or
• When the connection destination is undergoing maintenance.
IMPORTANT
When a function block of the connection destination and/or a process I/O is undergoing
maintenance, input signals cannot be obtained. When performing maintenance, and before
performing online loading, be sure to set related function blocks to manual (MAN) mode or
perform any processing that stops executions in order to execute an online load.
The true/false status of the condition signal is maintained as the previous input value within the
sequence table. However, when the necessary input signal for condition testing is unavailable, or
when one-shot execution of the connection destination function block is unavailable, the previous
input value used in condition testing as in the case shown below will not be the expected value.
• When the sequence table itself is a one-shot execution type, or when the function block
of the connection destination is a one-shot execution type while the block mode is out of
service (O/S), it might have been long since the previous input value was obtained. If so, the
value obtained from the previous one-shot execution remains to be the previous input value.
• When the sequence table itself is a one-shot execution type, or when the function block
of the connection destination is a one-shot execution type while the block mode is out of
service (O/S), if no one-shot execution was performed, the previous input value is 0.
• Immediately after a step is changed in the step-type sequence table, always set the
previous input value to 0 (false) before performing the condition testing.
Of the rules with true status of condition, only action signals described with Y or N in action rules
will be output targets.
When “Output Only when Conditions Change” is specified for output timing, rules whose true/
false status of condition is changed can be action targets.
The content of status manipulation in the sequence table is decided by the Y/N pattern, while
those of status manipulation in other sequence control blocks differ by the true/false logical
calculation result.
The signal count selection dialog box is displayed by selecting [Change Number of Signal Lines]
from the [View] menu in the Function Block Detail Builder.
A display example of the signal line selection dialog box is shown below.
Select Number of Signal Lines
OK Cancel
D030225E.ai
IMPORTANT
Condition signal and action signal information may be lost if the signal count is decreased by
changing signal count allocation.
The message shown below is displayed when information may be lost.
• Type:
warning
• Description:
“Some of the existing definition information will be lost by changing this setting. Is it OK to
change?”
n Rule Extension
The number of rules in one sequence table is fixed at 32 and cannot be modified. However,
if the number of rules in a sequence table is not enough to describe one phase unit, it can be
extended in the 32-rule unit by connecting to another sequence table. The number of rules can
be extended for a step-type sequence table.
D030226E.ai
SEE
ALSO For more information about control drawings, see the following:
F4. “Control Drawing Builder”
n Function Blocks and I/O Data that can be Referenced from a Sequence
Table
▼ Conditional Signal Description
Function blocks that can be referenced from a sequence table are shown below.
• Switch Instrument Blocks
• Timer Block (TM)
• Software Counter Block (CTS)
• Pulse Train Input Counter Block (CTP)
• Code Input Block (CI)
• Code Output Block (CO)
• Relational Expression Block (RL)
• Resource Scheduler Block (RS)
• Valve Monitoring Block (VLVM)
• Regulatory Control Blocks
• Calculation Blocks
• Faceplate Blocks
• SFC Blocks
• Unit Instrument Blocks
• Sequence Table Blocks
• Logic Chart Blocks
In addition, the following I/O data can be referenced from the sequence table.
• Processing I/O (contact I/O)
• Software I/O (internal switch, annunciator message)
• Communication I/O
The following should be taken into account when referencing a sequence table block mode.
• When O/S is specified in the condition specification for block mode reference, the test result
will be unsatisfied in the compound block mode in which O/S and another basic block mode
are satisfied simultaneously.
• When MAN or AUT is specified in the condition specification for block mode reference, the
test result is satisfied even in the compound block mode as long as the specified basic block
mode is established.
• The status of pulse width output cannot be referenced.
EQ, GT, GE, LT, LE, Y Relationship between two data is in specified state.
Element symbol.X01 to 16 AND N Relationship between two data is not in specified state.
D030234E.ai
*1: When using EQ relation by comparing the two variables with real numbers, the condition may not be established because of a
trivia difference. It is better to use GT, GE, LT and LE instead of EQ when comparing the two variables with real numbers.
The condition rule subject to referencing varies by the type of sequence tables at reference
source and destination (step type/nonstep type) as shown below.
Table Reference Target Rules by Sequence Table Type
Reference source Reference destination Reference target rule
Nonstep type All rules
Nonstep type
Step type Rule of Step 00
Nonstep type All rules
Step type Rule of Step 00 and that of the same step
Step type
name as reference source
D030255E.ai
The following should be taken into account when referencing the entire sequence table.
• When referencing the entire sequence table, only condition signal descriptions of the
referenced sequence table are valid. Ignore any action signal description.
• If no Y/N pattern exists in the condition rule of referenced sequence table, the status of rule
condition is false. If the Y/N pattern of such condition rule is unspecified, the status becomes
unconditionally true in the periodic processing of the above sequence table.
• When there exist no steps to be executed in the referenced sequence table, the previous
true/false status of condition is maintained as a current reference result.
• When Step 00 exists in the reference destination, rules that belong to Step 00 will also be
executed. However, when no steps exist as an execution target, the reference result of Step
00 is ignored.
• Other sequence tables can be referenced in the referenced sequence table condition
column. In this case, up to seven levels of nests (including the first sequence table) are
possible.
ST 003 ST 010
DO0001.PV H ................................ Y N
DO0011.PV H ................................ Y N
D030256E.ai
The following describes the condition testing processing for the above example.
• When “Y” is described in the condition rule of the condition signal ST010.SD.R.
In the description of the condition signal of the referenced sequence table, if there exists at
least one rule with a true status, the status of condition signal is true. If no such rules exist,
the condition of the referencing sequence table is false.
As for Rule 01 in Table ST003 listed above, the output signal of DO0001 is ON if the
condition signal DI0010.PV.ON is true, DI0015.PV.ON is true, DI0018.PV.ON is false, and
one of the conditions at rules 01 to 32 of Table ST010 is true.
• When “N” is described in the condition rule of the condition signal ST010.SD.R.
In the description of the condition signal of the referenced sequence table, if there exists no
rule with a true status, the status of condition signal is true. If there exists at least one rule
with a true status, the condition of the referencing sequence table is false.
As for Rule 03 in Table ST003 listed above, the output signal of DO0001 is OFF if the
condition signal DI0010.PV.ON is true, DI0015.PV.ON is false, and none of the conditions at
rules 01 to 32 of Table ST010 is true.
• The condition of rules that has no Y/N patterns in Table ST010 is false.
ST 003 ST 010
DO0001.PV H ................................ Y N
DO0011.PV H ................................ Y N
D030257E.ai
The following describes the condition testing processing for the above example.
• As for Rule 01 in Table ST003, the output signal of DO0001 is ON if the condition signal
DI0010.PV.ON is true, DI0015.PV.ON is true, DI0018.PV.ON is false, and one of the
conditions at Rule 01 or 02 of Table ST010 is true.
• As for Rule 03 in Table ST003, the output signal of DO0001 is OFF if the condition signal
DI0010.PV.ON is true, DI0015.PV.ON is false, and the condition at Rule 04, Step 3 of Table
ST010 is false.
ST 003 ST 010
DO0001.PV H ................................ Y N
DO0011.PV H ................................ Y N
D030258E.ai
The following describes the condition testing processing for the above example.
• The reference range of the referenced table at Rule 01, Table ST003 is steps 00 and 1 of
Table ST010.
As for Rule 01 in Table ST003 listed above, the output signal of DO0001 is ON if the
condition signal DI0010.PV.ON is true, DI0015.PV.ON is true, DI0018.PV.ON is false, and
one of the conditions at Step 00 Rule 01/02 or Step 1 Rule 03 of Table ST010 are true.
• The reference range of the referenced table at Rule 03 of Table ST003 are steps 00 and 3 of
Table ST010.
As for Rule 03 in Table ST003 listed above, the output signal of DO0001 is OFF if the
condition signal DI0010.PV.ON is true, DI0015.PV.ON is false, and the condition at Step 00
Rule 01/02 or Step 3 Rule 05 of Table ST010 are false.
• When the referenced sequence table is a nonstep type and the referencing sequence table
is a step type.
Although referencing a corresponding rule number is meaningless, condition reference to
the corresponding rule is executed.
• When the referenced sequence table is a step type.
Referencing the same rule is meaningless and therefore causes an error. However, the
status of condition signal is true.
The following should be taken into account when referencing a corresponding rule number.
• When referencing the entire sequence table, only condition signal descriptions of the
referenced sequence table are valid. Ignore any action signal description.
• If no Y/N pattern exists in the condition rule of referenced sequence table, the status of
rule condition is false. If the Y/N pattern of such a condition rule is unspecified, the status
becomes unconditionally true in the periodic processing of the above sequence table.
• Other sequence tables can be referenced in the referenced sequence table condition
column. In this case, up to seven levels of nests (including the first sequence table) are
possible.
ST 003 ST 010
DO0001.PV H ................................ Y N
DO0011.PV H ................................ Y N
D030260E.ai
The following describes the condition testing processing for the above example.
• As for Rule 01 in Table ST003, the output signal of DO0001 is ON if the condition signal
DI0010.PV.ON is true, DI0015.PV.ON is true, DI0018.PV.ON is false, and the conditions at
Rule 01 of Table ST010 are true.
• As for Rule 03 in Table ST003, the output signal of DO0001 is OFF if the condition signal
DI0010.PV.ON is true, DI0015.PV.ON is false, and the conditions at Rule 03 of Table ST010
are false.
IMPORTANT
When referencing a corresponding rule number, do not describe the step number on the step
label of the referenced sequence table.
When referencing a corresponding rule number, referencing cannot be properly performed if the
step number is described on the step label of the referenced sequence table.
The condition rule subject to referencing varies by the type of sequence table at reference source
and destination (step-type/nonstep type) as shown below.
Table Reference Target Rules by Sequence Table Type
Reference source Reference destination Reference target condition rule
Nonstep type All rules
Nonstep type
Step type Rules of a specified step
Nonstep type All rules
Step type
Step type Rules of a specified step
D030262E.ai
• When the specified step does not exist in the referenced sequence table, the reference
result will be the previous true/false condition status that has been latched.
• When Step 00 exists in the reference destination, the rules belonging to Step 00 will also
be executed. However, when the specified step does not exist in the referenced sequence
table, the reference result of Step 00 is ignored.
The following should be taken into account when referencing a particular step.
• When referencing a particular step in the sequence table, only condition signal descriptions
of the referenced sequence table are valid. Ignore any action signal description.
• If no Y/N pattern exists in the condition rule of referenced sequence table, the status of
rule condition is false. If the Y/N pattern of such a condition rule is unspecified, the status
becomes unconditionally true in the periodic processing of the above sequence table.
• Other sequence tables can be referenced in the referenced sequence table condition
column. In this case, up to seven levels of nests (including the first sequence table) are
possible.
ST 003 ST 010
DO0001.PV H ................................ Y N
DO0011.PV H ................................ Y N
D030263E.ai
The following describes the condition testing processing for the above example.
• As for Rule 01 in Table ST003, the output signal of DO0001 is ON if the condition signal
DI0010.PV.ON is true, DI0015.PV.ON is true, DI0018.PV.ON is false, and the conditions for
Step 2, or Rule 03 of Table ST010 are true.
• As for Rule 03 in Table ST003, the output signal of DO0001 is OFF if the condition signal
DI0010.PV.ON is true, DI0015.PV.ON is false, and the conditions for Step 2, or Rule 03 of
Table ST010 are false.
ST 003 ST 010
DO0001.PV H ................................ Y N
DO0011.PV H ................................ Y N
D030264E.ai
The table reference range for the rule number 01 of Table ST003 are steps 00 and 2 of Table
ST010 in the above example.
A description example of referencing the execution status of Step 1 processing in Table ST010 is
shown below.
ST 003
Rule number 01 02 03 04 05 06 07
Tag name
Data item Data Step label
Comment
SW0110.PV ON ................................ Y Y
Condition
ST010.PV 1 ................................ Y N
ST010.SA 1 ................................ Y
Operation
SW0110.PV H ................................ N
D030266E.ai
A description example of restarting Table ST005 from the stop status is shown below.
Rule number 01 02 03 04 05 06 07
Tag name
Data Step label
Data item
Comment
ST005.MODE MAN .............................. Y
%SW0201.PV ON .............................. Y Condition
D030268E.ai
The following should be taken into account when referencing a sequence table block mode.
• When O/S is specified in the condition specification for block mode reference, the test result
will be unsatisfied in the compound block mode in which O/S and another basic block mode
are satisfied simultaneously.
• When MAN or AUT is specified in the condition specification for block mode reference, the
test result is satisfied even in the compound block mode as long as the specified basic block
mode is satisfied.
The following points should be taken into consideration when referencing a logic chart block mode.
• When O/S is specified as the condition specification for block mode reference, the test result
will be False when the block is in the compound block mode, i.e., O/S and another basic
block mode exist simultaneously.
• When MAN or AUT is specified as the condition specification for block mode reference, the
test result will be True even in the compound block mode as long as the specified basic
block mode exists.
*1: The condition test for Alarm Symbol Flashing can only test the flashing status of each block or symbol, can not test the flashing
status of each alarming item.
*2: The condition test for Alarm Inhibition can only test the inhibition status of each block or symbol, can not test the inhibition status
of each alarming item.
n Function Blocks and I/O Data for Which Status Manipulation can be
Performed from Sequence Table
▼ Action Signal Description
Function blocks for which status manipulation can be performed from the sequence table are:
• Switch Instrument Blocks
• Timer Block (TM)
• Software Counter Block (CTS)
• Pulse Train Input Counter Block (CTP)
• Code Input Block (CI)
• Code Output Block (CO)
• Valve Monitoring Block (VLVM)
• Regulatory Control Blocks
• Calculation Blocks
• Faceplate Blocks
• SFC Blocks
• Unit Instrument Blocks
• Sequence Table Blocks
• Logic Chart Blocks
I/O data for which status manipulation can be performed from the sequence table are:
• Process I/O
• Software I/O (internal switch, annunciator message, sequence message output)
• Communication I/O
*1: AOF specification is only effective for changing the alarm masking specification. This action performs alarm masking on all
alarms except NR.
*2: To set a manipulated output value for the switch instrument from other function block, write data to the sequence setpoint (CSV).
If the switch instrument block or enhanced switch instrument block is either in AUT or CAS state, the output will be performed
after the value of CSV is written to the manipulated output value (MV).
*3: The Output Timing of the sequence table that =XCAL is applied should be set to [Output Only When Condition Changes (C)].
*1: AOF specification is only effective for changing the alarm masking specification. This action operates alarm masking on all
alarms except NR.
*1: AOF specification is only effective for changing the alarm masking specification. This action performs alarm masking on all
alarms except NR.
*2: The Output Timing of the sequence table that =XCAL is applied should be set to [Output Only When Condition Changes (C)].
*1: The value set for the CSV varies depending on the values of action rules and setting range.
0: CSV = 0 when the action rule is [Y], Disable when [N]
1: CSV = 1 when the action rule is [Y], Disable when [N]
2: CSV = 2 when the action rule is [Y], Disable when [N]
P0: CSV = 0 when the action rule is [Y], CSV = 2 when [N]
P1: CSV = 1 when the action rule is [Y], Disable when [N]
P2: CSV = 2 when the action rule is [Y], CSV = 0 when [N]
*1: mm is a parameter required for one-shot execution of the batch data setting block and the batch data acquisition block. The data
set at the one-shot execution varies depending on the mm value.
mm=0: Set 0 to all data.
mm=1 to 16: Set specified data only (DTn).
mm=17: Set all data.
*2: AOF specification is only effective for changing the alarm masking specification. This operation performs alarm masking on all
alarms except NR.
*3: The Output Timing of the sequence table that =XCAL is applied should be set to [Output Only When Condition Changes (C)].
*1: AOF specification is only effective for changing the alarm masking specification. This operation performs alarm masking on all
alarms except NR.
*2: n is the subscript of the 1 dimensional array. This subscript is the number of the push button switches on a faceplate block. This
number varies with the type of faceplate block.
*1: AOF specification is only effective for changing the alarm masking specification. This operation performs alarm masking on all
alarms except NR.
*2: The Output Timing of the sequence table that =XCAL is applied should be set to [Output Only When Condition Changes (C)].
l Sequential Function Chart Block Data Item that can be Described as a Data
Value in the Action Specification
The following table lists the sequential function chart block data item which can be described as a
data value in the action specification, and their setting ranges.
• STEPNO: 1 to 99
• SWCR[5]: 0 to 15
• SWST[5]: 0, 1
• SWOP[5]: -15 to 15
*1: AOF specification is only effective for changing the alarm masking specification. This operation performs alarm masking on all
alarms except NR.
*1: On KFCS2, FFCS and LFCS2, when the check box of [CENTUM-XL Compatible Sequence Tables] in the [Constant] tab on FCS
Properties sheet is checked, while the process timing of the sequence table is TC (Periodic Execution and Output only when
conditions change) or TE (Periodic Execution and Output when conditions are satisfied), the contact output scripted in the action
part of a rule will be turned off upon condition changes from true to false even if the step has moved to another. However, when
the check box of [CENTUM-XL Compatible Sequence Tables] is not checked, the contact output will not be turned off when the
step has moved to another upon the condition changes from true to false.
By default, this check box is not checked.
*2: On KFCS2, FFCS and LFCS2, when the check box of [CENTUM-XL Compatible Sequence Tables] in the [Constant] tab on FCS
Properties sheet is checked, the contact output scripted in the action part of a rule will be turned off when condition becomes true.
However, when condition becomes false, N means no action. Nevertheless, when the check box of [CENTUM-XL Compatible
Sequence Tables] is not checked, N means no action even when condition is true.
By default, this check box is not checked.
*3: Even though the flashing state stops, the contact output itself remains ON. Turn off the contact output using a different action
signal with a latched contact output.
*4: Not available in LFCS2 or LFCS. For LFCS2 or LFCS to give a pulse output, first to set the point mode of the output terminal
on IOM into Pulse Output (PO), then put a latched type symbol (H) or none latched type symbol (L) in the action columns of
sequence table.
*5: On KFCS2, FFCS and LFCS2, when the check box of [CENTUM-XL Compatible Sequence Tables] in the [Constant] tab on FCS
Properties sheet is checked, the pulse output scripted in the action part of a rule will be turned off when condition becomes true.
Nevertheless, when the check box of [CENTUM-XL Compatible Sequence Tables] is not checked, N means no action. However,
in LFCS2, N means no action regardless if the checked box is checked or not.
By default, this check box is not checked.
SEE
ALSO For more information about pulse output, see the following:
“l Pulse Contact Output : PFCS/KFCS2/KFCS/FFCS/SFCS” in section “n Manipulating Status Output of
I/O Module” of chapter A3.2.2, “Contact Output.”
“l Pulse Contact Output : LFCS2/LFCS” in section “n Manipulating Status Output of I/O Module” of
chapter A3.2.2, “Contact Output.”
*1: On KFCS2, FFCS and LFCS2, when the check box of [CENTUM-XL Compatible Sequence Tables] in the [Constant] tab on FCS
Properties sheet is checked, while the process timing of the sequence table is TC (Periodic Execution and Output only when
conditions change) or TE (Periodic Execution and Output when conditions are satisfied), the global switch scripted in the action
part of a rule will be turned off upon condition changes from true to false even if the step has moved to another. However, when
the check box of [CENTUM-XL Compatible Sequence Tables] is not checked, the global switch will not be turned off when the
step has moved to another upon the condition changes from true to false.
By default, this check box is not checked.
*2: On KFCS2, FFCS and LFCS2, when the check box of [CENTUM-XL Compatible Sequence Tables] in the [Constant] tab on FCS
Properties sheet is checked, the global switch scripted in the action part of a rule will be turned off when condition becomes true.
However, when condition becomes false, N means no action. Nevertheless, when the check box of [CENTUM-XL Compatible
Sequence Tables] is not checked, N means no action even when condition is true.
By default, this check box is not checked.
*1: On KFCS2, FFCS and LFCS2, when the check box of [CENTUM-XL Compatible Sequence Tables] in the [Constant] tab on FCS
Properties sheet is checked, while the process timing of the sequence table is TC (Periodic Execution and Output only when
conditions change) or TE (Periodic Execution and Output when conditions are satisfied), the common switch scripted in the
action part of a rule will be turned off upon condition changes from true to false even if the step has moved to another. However,
when the check box of [CENTUM-XL Compatible Sequence Tables] is not checked, the common switch will not be turned off
when the step has moved to another upon the condition changes from true to false.
By default, this check box is not checked.
*2: On KFCS2, FFCS and LFCS2, when the check box of [CENTUM-XL Compatible Sequence Tables] in the [Constant] tab on
FCS Properties sheet is checked, the common switch scripted in the action part of a rule will be turned off when condition
becomes true. However, when condition becomes false, N means no action. Nevertheless, when the check box of [CENTUM-XL
Compatible Sequence Tables] is not checked, N means no action even when condition is true.
By default, this check box is not checked.
*1: On KFCS2, FFCS and LFCS2, when the check box of [CENTUM-XL Compatible Sequence Tables] in the [Constant] tab on FCS
Properties sheet is checked, while the process timing of the sequence table is TC (Periodic Execution and Output only when
conditions change) or TE (Periodic Execution and Output when conditions are satisfied), the annunciator scripted in the action
part of a rule will be turned off upon condition changes from true to false even if the step has moved to another. However, when
the check box of [CENTUM-XL Compatible Sequence Tables] is not checked, the annunciator will not be turned off when the step
has moved to another upon the condition changes from true to false.
By default, this check box is not checked.
*2: On KFCS2, FFCS and LFCS2, when the check box of [CENTUM-XL Compatible Sequence Tables] in the [Constant] tab on FCS
Properties sheet is checked, the annunciator scripted in the action part of a rule will be turned off when condition becomes true.
However, when condition becomes false, N means no action. Nevertheless, when the check box of [CENTUM-XL Compatible
Sequence Tables] is not checked, N means no action even when condition is true.
By default, this check box is not checked.
*1 Integer type data (2-byte unsigned integer type data) can be specified for mm.
Range: Integer from 0 to 65535
*1: On KFCS2, FFCS and LFCS2, when the check box of [CENTUM-XL Compatible Sequence Tables] in the [Constant] tab on FCS
Properties sheet is checked, while the process timing of the sequence table is TC (Periodic Execution and Output only when
conditions change) or TE (Periodic Execution and Output when conditions are satisfied), the relevant bit scripted in the action
part of a rule will be turned off upon condition changes from true to false even if the step has moved to another. However, when
the check box of [CENTUM-XL Compatible Sequence Tables] is not checked, the relevant bit will not be turned off when the step
has moved to another upon the condition changes from true to false.
By default, this check box is not checked.
*2: On KFCS2, FFCS and LFCS2, when the check box of [CENTUM-XL Compatible Sequence Tables] in the [Constant] tab on FCS
Properties sheet is checked, the relevant bit scripted in the action part of a rule will be turned off when condition becomes true.
However, when condition becomes false, N means no action. Nevertheless, when the check box of [CENTUM-XL Compatible
Sequence Tables] is not checked, N means no action even when condition is true.
By default, this check box is not checked.
When the conditions described in the condition rule are satisfied, the sequence table number
listed in the action signal symbol column will be one-shot executed to branch to the activated
sequence table. After executing all condition testing and actions, it returns to the action rule
processing in the branching sequence table.
ST 005 ST 015
D030298E.ai
The following explains the details of action rule processing in the description examples shown
above.
• If the conditions in Rule 01 of Table ST005 are satisfied, the DO001.PV.H=Y operation will
be executed and all the conditions from rules 01 to 32 will then be tested after branching to
Table ST015. If conditions are satisfied at Table ST015, operations will be executed for the
rules whose conditions have been satisfied. It will then return to Table ST005 action rule
processing to execute the DO0014.PV.H=Y operation.
• Neither Rule 02 nor 03 on table ST005 is associated with the action rule processing
because no action descriptions for Table ST015 are listed in either rule.
• If the conditions in Rule 04 of Table ST005 are satisfied, the DO001.PV.H=N operation will
be executed and all the conditions from rules 01 to 32 will then be tested after branching to
Table ST015. If conditions are satisfied at Table ST015, operations will be executed for the
rules whose conditions have been satisfied. It will then return to Table ST005 action rule
processing to execute the DO0014.PV.H=Y and DO0035.PV.H=Y operations.
• If the periodic execution is specified for the processing timing of Table ST015, in addition
to one-shot execution caused by status manipulation, periodic execution will also be
performed at Table ST015.
If the branched sequence table is a step type, steps will be executed under the step management
of the branched sequence table.
ST 005 ST 015
THEN 2 3 1
ELSE
D030299E.ai
The following explains the details of action rule processing in the description examples shown
above.
• If the conditions in Rule 01 of Table ST005 are satisfied, the DO001.PV.H=Y operation
will be executed to branch to Table ST015. If the execution step label (PV) is Step 2, the
condition testing for rules 02 and 03 of Step 2 will be performed. If conditions are satisfied,
operations for the rules whose conditions have been satisfied will be executed. It will then
return to Table ST005 to execute the DO0014.PV.H=Y operation.
• If the step label is described on the branched sequence table, a processing will be executed
according to the step management of the branched sequence table, regardless of the step
label on the branching sequence table.
ST 005 ST 015
THEN 2 1
ELSE
D0302A0E.ai
The following explains the details of the action rule processing in the description examples shown
above.
If the conditions in Rule 01 of Table ST005 are satisfied, the D000001.PV.H=Y operation will be
executed to branch to Table ST015. If the execution step label (PV) at Table ST015 is Step 2 at
the time, the condition testing for Rule 01 of Step 00 and Rule 04 of Step 2 will be performed. If
conditions are satisfied at Table ST015, operations for the rules whose conditions are satisfied,
will be executed. It will then return to Table ST005 to execute the DO0014.PV.H=Y operation.
• When the branch source is a step type and the branch destination is a nonstep type:
Although execution of the corresponding rule number is meaningless, the corresponding
rules will be executed.
• When the branched table is a step type:
Because execution of the same rules will be meaningless, the system will halt without
executing any actions.
It is possible to branch further from the branched sequence table to other sequence table, and
perform condition testing and operation for the first branched sequence table. Nesting is available
up to seven levels, including the first sequence table.
Description examples of the status manipulation of corresponding rule numbers are shown
below. Assume that “Output Only when Conditions Change” is specified for the output timing.
ST 005 ST 015
D0302A2E.ai
It is possible to further branch from the branched sequence table to other sequence table, and
perform condition testing and operation for that branched sequence table. Up to seven levels of
nesting are possible including the first sequence table.
The action rule subject to execution varies by the type of sequence table (nonstep, step) at the
execution source and execution destination.
Table Execution Target Rules by Sequence Table Type
Branch source Branch destination Action rule subject to execution
Nonstep type All rules
Nonstep type
Step type Rules in specified step and step 00
Nonstep type All rules
Step type
Step type Rules in specified step and step 00
D0302A4E.ai
ST 005 ST 015
THEN
Description is
ELSE
not required.
D0302A5E.ai
The following describes the action rule processing for the above example.
• If the conditions in Rule 01 of Table ST005 are newly satisfied, the DO001.PV.H=Y
operation will be performed to branch to Table ST015. Following the condition testing
conducted for rules 02 and 03 of Step A2 in the branched sequence table, if the conditions
are newly satisfied, relevant operations will be performed. It will then return to Table ST005
to execute the DO0014.PV.H=Y operation.
• Neither Rule 02 nor 03 in Table ST005 is associated with Table ST015.
• If the conditions in Rule 04 of Table ST005 are satisfied, the DO0001.PV.H=N and DO0011.
PV.H=N operations will be performed to branch to Table ST015. Following the condition
testing for rules 02 and 03 of Step A2 in the branched sequence table, if the conditions are
newly satisfied, relevant operations will be performed. It will then return to table ST005 to
execute the DO0014.PV.H=Y and DO0035.PV.H=Y operations.
A description example of specifying the execution step label of a specified sequence table is
shown below.
Assume that “Output Only when Conditions Change” is specified for the output timing.
ST 005
Rule number 01 02 03 04 05 06 07
Tag name
Data item Data Step label
Comment
DI0013.PV ON Auto/manual N Y
Condition
ST010.PV A1 Y
ST011.PV A1 Y
ST012.PV A1 Y Operation
ST013.PV A1 Y
D0302A7E.ai
The following describes the action rule processing for the above description example.
• When DI0013 becomes “OFF,” “A1” will be set on the execution step label in sequence
tables ST010, ST011 and ST012.
• When DI0013 becomes “ON,” “A1” will be set on the execution step label in the ST013
sequence table.
When Y is scripted in an action rule, if the condition of that rule establishes, the sequence table
scripted in the Element symbol column will be started or restarted. When the restarted sequence
table is running in the [Output Only When Condition Changes (C)] timing, the restarted will
compare the current conditions with the conditions before it was paused, only the rules that
the conditions have been changed will perform the output actions. If the sequence table is a
[Periodic Execution Type], the sequence table will continue to run until it receives another pause
command.
When N is scripted in an action rule, if the condition of that rule establishes, the sequence table
scripted in the Element symbol column will be paused.
• The output of an executed logic chart can execute another logic chart. The output signal
can be nested up to seven times, including the branching sequence table.
• If one-shot execution of a logic chart fails for one of the following reasons, a system alarm
will be triggered.
• The output of an executed logic chart to execute another logic chart is nested over seven
times, including the branching sequence table.
• The function block connected to the input terminal is in O/S mode.
• The function block connected to the input terminal is udder online maintenance.
n Data Item
Table Data Items of the Sequence Table Block (ST16)
Entry Permitted
Symbol Data Name Range Default
or Not
PV Executing step name x 100 steps Start step name
MODE Mode x ---- O/S (MAN)
ALRM Alarm status ---- NR
AFLS Alarm flashing status ---- 0
AF Alarm detection ---- 0
AOFS Alarm in hibition ---- 0
OPMK Operation mark x 0 to 64 0
UAID User application ID x ---- 0
D0302B1E.ai
SEE
ALSO For a list of valid block mode of the ST16, see the following:
D3.1.2, “Block Mode of Sequence Control Blocks”
Q01 J01
Q02 J02
Logic operation
Q56 J56
D030301E.ai
The connection methods and destinations for I/O terminals of Logic Chart Block (LC64) are
shown below.
Table Connection Methods and Destinations for I/O Terminals of Logic Chart Block (LC64)
Connection type Connection destination
I/O Status Terminal
terminal Data Data Condition Process Software Function
manipula- connecti-
reference setting testing I/O I/O block
tion on
Q01 to Q56 x x x x
J01 to J56 x x x x
D030302E.ai
x: Connection available
Blank: Connection not available
Mooving into
WO %SW0200.PV.L cooling phase
Stop→Cool %SW0500.PV.ON
%SW0140.ON Cooling printout
Level 1 %SW0100.PV.ON TM100
TCV full
Level 2 %SW0150.PV.ON %SW0160.PV.L
close command
Cool→Stop %SW0120.PV.ON
Shutoff valve 1
Auto %SW0101.PV.ON TV100.CSV.2
open output
TM100 Shutoff valve 2
TV101.CSV.2
open output
Open shutoff valve 1 TV100.PV.2 Open shutoff valve %SW0201.PV.L Cool command
Open shutoff valve 2 TV101.PV.2
Comment
No.1 temperature
RL001.X01.LT Cooling and
<- 70 °C DO0100.PV.L voice message
No.2 temperature
RL002.X02.LT
<- 70 °C
A logic chart with 32 inputs, 32 outputs and 64 logic elements (LC64) is provided.
Client area
D030304E.ai
l Processing Timing
The processing timing of a logic chart consists of start timing and output timing.
Start timing refers to the timing at which control algorithm of the logic chart is executed upon
receipt of input signal. Output timing indicates the conditions under which action signals are
output at the time a periodic start type or one-shot start type logic chart is executed.
The output timing of logic charts is fixed to “output each time.” If the logical value acquired by
logic operation is true, output signals are output whenever started.
“Start timing” can be set on each logic chart block.
• Start timing:
Select from “Periodic Execution Type (T),” “One-shot Processing Type (O),” “Startup at
Initial Cold Start/Restart (I)” or “Restricted Initial Execution Type (B).”
• Output timing:
“Output Each Time Conditions are Satisfied”
l Scan Period
Periodic start logic charts are activated in each scan period as defined here. Among the periodic
started logic charts, the logic charts activated in the basic period have the items “Control Period”
and “Control Phase” to be defined in addition to scan period.
“Scan period,” “control period,” and “control phase” can be defined for each logic chart.
• Scan period:
Select from “Basic Scan”, “Medium-speed Scan” (*1) or “High-speed Scan.”
• Control period:
1 to 16 seconds.
• Control phase:
0 to 15 seconds.
*1: “Medium-speed Scan” is only supported by KFCS2, KFCS, FFCS, LFCS2 and LFCS.
SEE
ALSO • For details on processing timing, see the following:
C7.3, “Process Timing for Sequence Control Block”
• For details on scan period, see the following:
C7.1.1, “ Scan Period”
• For details on control period and control phase, see the following:
C7.3.6, “Control Period and Control Phase for Logic Chart Block (LC64)”
l Condition Signals
The input information such as tag names and data items or other specific condition scripts should
be entered for condition signals.
l Comment
For the input signals or output signals, their service comments can be described using up to 24
alphanumeric characters or 12 double-byte characters. A comment corresponding to a condition
or action signal can be automatically entered.
SEE
ALSO For the details of comment entry, see the following:
“n Input Element Symbol” in F6.5, “Element Symbol Type and Element Resource Count”
l Action Signals
The output information such as tag names and data items or other specific manipulation scripts
should be entered for action signals.
Client area
D030305E.ai
To create a logic chart, the information for sequence connection (condition signals, action signals,
logic operators, parameters of the applied logic operators) needs to be entered in each setting
area of the logic chart edit window.
The setting areas are listed below.
• Processing timing setting area
• Execution order of logic calculation setting area
• Client area
Processing timing
Scan period
OK Cancel
D030306E.ai
SEE
ALSO For details of processing timing, see the following:
C7.3, “Process Timing for Sequence Control Block”
TIP
Clicking [Execution Order] on [View] menu may display execution order of the logic elements on the client area of
the logic chart edit window.
Moreover, this setting is also applied to the logic chart view and to the self-documentation printing.
n Client Area
The client area is used to put the logic operators symbols on the matrix for describing the logic
calculation processing in logic chart format.
SEE
ALSO For details on logic calculation processing, see the following:
D3.3.5, “Logic Calculation Processing of Logic Chart”
D030307E.ai
l Input Processing
The true or false status of a condition signal is determined by the condition test performed on the
input signal.
l Output Processing
Status manipulation output is determined based on the result of logic calculation processing.
The status manipulation will be output as the output signals to the operation target. The status
manipulation can send commands such as starting, data setting, and status change to the
contact output terminals or to other function blocks.
If an input terminal is not connected or a condition element is not defined, the condition test result
will give a True status unconditionally.
When the condition test can not access the current signal status, or can not trigger the one-shot
started block to start, it will use the previously used signal status for the condition test. This result
will be further used in the logic calculation processing.
A block or an element database connected is abnormal, the connected function block, process
I/O or global switch (*1) is under online maintenance are the main obstacles for accessing the
input signal.
*1: The global switch can be used in FCSs except standard PFCS.
IMPORTANT
Online maintenance is one of the main obstacles for accessing the input signal and starting the
one-shot started block. The duration of an online maintenance varies with the size and type of the
modified contents for the online maintenance. When the modified contents are in large size, the
online maintenance may last for tens of seconds.
When the condition test can not access the current signal status, or can not trigger the one-shot
started block to start, the condition test uses the previously used signal status. Since this status is
kept in the logic chart, cautions should be taken in the following case.
• When the logic chart block itself is one-shot execution type or the connected function block
is one-shot start type, and the access failure is caused by O/S mode, the previous signal
status might be a signal kept for a long time. If the one-shot has not been started for at least
one time, the status signal kept might be a 0 (False).
With consideration of the online maintenance in above mentioned case, when designing a
sequence control, especially the sequence control loop related to the hazardous process
controls, it is required to add an error process subroutine, or to set the related blocks into MAN
mode on the builder for online downloading.
TIP
• When an input is directly wired to an output, it is still counted as one logic operation element.
• SRS, WOUT or CMP is counted as 2 logic operation elements.
, , ,
D030308E.ai
, , ,
D030309E.ai
Figure OR symbols
l NOT: Negation
It gives the inverse of the input as an output.
D030310E.ai
S S OUT1 S S OUT1
R R R R OUT2
S S OUT1 S S OUT1
R R R R OUT2
D030316E.ai
IN
OUT
D030317E.ai
D030318E.ai
IN
OUT
D030319E.ai
D030320E.ai
1
IN
0
1
OUT
0
D030322E.ai
1
IN
0
1
OUT
0
l CMP-GE: Comparator
It compares the logic values of input 1 and input 2. It gives an output 1 when input 1 is greater
than or equal to input 2, otherwise it gives an output 0.
One Comparator operation is counted as two logic operation elements.
D030324E.ai
l CMP-GT: Comparator
It compares the logic values of input 1 and input 2. It gives an output 1 when input 1 is greater
than input 2, otherwise it gives an output 0.
One Comparator operation is counted as two logic operation elements.
D030326E.ai
D030328E.ai
When the action signal is specified to a function block to be one-shot started, the block will be
one-shot started when the action signal is output to it.
When output to the one-shot function block fails, and the failure is caused by one of the following
reasons, a system alarm will be triggered.
• In the action column of the destination sequence table, the output signal is output to another
logic chart. Moreover, the output is redirected to another logic chart. The output is nested
more than 7 times.
• The function block connected to the output terminal is in O/S mode.
• The function block connected to the output terminal is udder online maintenance.
When the output action is to set a datum or to change status, if the connected destination, a
block or an element, is under online maintenance, the output will be skipped then the processing
continues.
When the output action is to change the block mode of the connected destination block, if the
output processing has an error, the status change of the connected destination block will not be
performed.
For the logic chart that has multiple output terminals, each terminal outputs the action signal in
accordance with logic calculation True or False result related to the terminal.
n Function Blocks and I/O Data that can be Referenced from Logic Chart
Function blocks that can be referenced from logic chart are shown below.
• Switch instrument blocks
• Timer Block (TM)
• Software Counter Block (CTS)
• Pulse Train Input Counter Block (CTP)
• Code Input Block (CI)
• Code Output Block (CO)
• Relational Expression Block (RL)
• Resource Scheduler Block (RS)
• Valve Monitoring Block (VLVM)
• Regulatory Control Blocks
• Calculation Blocks
• Faceplate Blocks
• SFC Blocks
• Unit Instrument Blocks
• Sequence Table Blocks
• Logic Chart Blocks
The following I/O data can also be referenced from logic chart.
• Processing I/O (contact I/O)
• Software I/O (internal switch, annunciator message)
• Communication I/O
The following points should be taken into consideration when referencing a logic chart block
mode.
• When O/S is specified as the condition specification for block mode reference, the test result
will be False when the block is in the compound block mode, i.e., O/S and another basic
block mode exist simultaneously.
• When MAN or AUT is specified as the condition specification for block mode reference, the
test result is True even in the compound block mode as long as the specified basic block
mode exists.
• The status of pulse width output cannot be referenced.
NR, IOP, OOP, ANS+ True Canceling the specified alarm detection
Element symbol.AF.
ANS-, PERR, CNF False Detecting the specified alarm
True IOP or IOP- detection is disabled
Element symbol.XAF. IOP
False IOP and IOP- detection is enabled
NR, IOP, OOP, ANS+ True Suppressing the specified alarm
Element symbol.AOFS. CNF, ANS-, PERR,
AOF (*2) False Canceling the specified alarm in suppression
True Sequence setpoint value matches specification
Element symbol.CSV. 0, 1, 2
False Sequence setpoint value does not match specification
True Data status matches specification
Element symbol.CSV= Data status
False Data status does not match specification
True Remote manipulated output value matches specification
Element symbol.RMV. 0, 1, 2
False Remote manipulated output value does not match specification
True Data status matches specification
Element symbol.RMV= Data status
False Data status does not match specification
True Bypass switch in specified state
Element symbol.BPSW. 0, 1
False Bypass switch not in specified state
True Data status matches specification
Element symbol.BPSW= Data status
False Data status does not match specification
D030331E.ai
*1: The condition specification of the AFL is the reference in all flashing state.
*2: The condition specification of the AOF is the reference in all suppressing alarm state.
*1: The condition specification of the AFL is the reference in all flashing state.
*2: The condition specification of the AOF is the reference in all suppressing alarm state.
*1: The condition specification of the AFL is the reference in all flashing state.
*2: The condition specification of the AOF is the reference in all suppressing alarm state.
*1: The condition specification of the AFL is the reference in all flashing state.
*2: The condition specification of the AOF is the reference in all suppressing alarm state.
*1: The condition specification of the AFL is the reference in all flashing state.
*2: The condition specification of the AOF is the reference in all suppressing alarm state.
*1: The condition specification of the AFL is the reference in all flashing state.
*2: The condition specification of the AOF is the reference in all suppressing alarm state.
*3: Only integers can be handled as data values, When the data type of the data item is a floating-point type, the comparison is
made by rounding off the value.
*1: The condition specification of the AFL is the reference in all flashing state.
*2: The condition specification of the AOF is the reference in all suppressing alarm state.
*1: n indicates the number of elements in a one-dimensional array. This is the number of push-button switches in a faceplate block,
and varies with the type of each faceplate block.
*1: The condition specification of the AFL is the reference in all flashing state.
*2: The condition specification of the AOF is the reference in all suppressing alarm state.
l Range of Data Value When Referencing the Data Items for Condition Test
The ranges of data values when referencing SFC data items in a logic chart for condition test are
shown as follows.
• STEPNO: 1 to 99
• SWCR[5]: 0 to 15
• SWST[5]: 0, 1
• SWOP[5]: -15 to 15
*1: The condition specification of the AFL is the reference in all flashing state.
*2: The condition specification of the AOF is the reference in all suppressing alarm state.
The following points should be taken into consideration when referencing a logic chart block
mode.
• When O/S is specified as the condition specification for block mode reference, the test result
will be False when the block is in the compound block mode, i.e., O/S and another basic
block mode exist simultaneously.
• When MAN or AUT is specified as the condition specification for block mode reference, the
test result will be True even in the compound block mode as long as the specified basic
block mode exists.
*1: The condition test for Alarm Symbol Flashing can only test the flashing status of each block or symbol, can not test the flashing
status of each alarming item.
*2: The condition test for Alarm Inhibition can only test the inhibition status of each block or symbol, can not test the inhibition status
of each alarming item.
The following should be taken into account when referencing the entire sequence table.
• When referencing the entire sequence table, only condition signal descriptions of the
referenced sequence table are valid. Ignore any signal description.
• If no Y/N pattern exists in the condition rule of referenced sequence table, the status of rule
condition is false. If the Y/N pattern of such condition rule is unspecified, the status becomes
unconditionally true in the periodic processing of the above sequence table.
• When there exist no steps to be executed in the referenced sequence table, the previous
true/false status of condition is maintained as a current reference result.
• When Step 00 exists in the reference destination, rules that belong to Step 00 will also be
executed. However, when no steps exist as an execution target, the reference result of Step
00 is ignored.
• Other sequence tables can be referenced in the referenced sequence table condition
column. In this case, up to seven levels of nests (including the first sequence table) are
possible.
The following should be taken into account when referencing a corresponding rule number.
• When referencing a particular step in a sequence table, only condition signal descriptions of
the referenced sequence table are valid. Ignore any action signal description.
• If no Y/N pattern exists in the condition rule of referenced sequence table, the status of
rule condition is false. If the Y/N pattern of such a condition rule is unspecified, the status
becomes unconditionally true in the periodic processing of the above sequence table.
• Other sequence tables can be referenced in the referenced sequence table condition
column. In this case, up to seven levels of nests (including the first sequence table) are
possible.
The following points should be taken into consideration when referencing a sequence table block
mode.
• When O/S is specified as the condition specification for block mode reference, the test result
will be False when the block is in the compound block mode, i.e., O/S and another basic
block mode exist simultaneously.
• When MAN or AUT is specified as the condition specification for block mode reference, the
test result will be True even in the compound block mode as long as the specified basic
block mode exists.
*1: The condition test for Alarm Symbol Flashing can only test the flashing status of each block or symbol; it can not test the flashing
status of each alarming item.
*2: The condition test for Alarm Inhibition can only test the inhibition status of each block or symbol; it can not test the inhibition status
of each alarming item.
n Function Blocks and I/O Data that can be Manipulated from Logic
Chart
Function blocks for which status manipulation that can be performed from the sequence table
are:
• Switch instrument blocks
• Timer Block (TM)
• Software Counter Block (CTS)
• Pulse Train Input Counter Block (CTP)
• Code Input Block (CI)
• Code Output Block (CO)
• Resource Scheduler Block (RS)
• Valve Monitoring Block (VLVM)
• Regulatory Control Blocks
• Calculation Blocks
• Faceplate Blocks
• SFC Blocks
• Unit instrument Blocks
• Sequence Table Blocks
• Logic Chart Blocks
In addition, the following I/O data can be manipulated from logic chart:
• Process I/O
• Software I/O (internal switch, annunciator message, sequence message output)
• Communication I/O
*1: The AOF specification is valid only with respect to the change in the alarm suppression specification. This operation performs
alarm suppression for all alarms with the exception of the NR alarm.
*2: Sequence setpoint value (CSV) data is written when the switch instrument manipulated output value (MV) is set from another
function block. If the switch instrument block or the enhanced switch instrument block is in AUT or CAS state, output is executed
after the sequence setpoint value (CSV) is written in the manipulated output value (MV).
*3: The type of logic chart that =XCAL is applied should be set to [One-Shot Processing Type (O)].
*1: When connected to the function blocks other than logic chart and sequence table blocks via sequence connection, the true
actions are valid while the false actions are invalid.
*1: The AOF specification is valid only with respect to the change in the alarm suppression specification. This operation performs
alarm suppression for all alarms with the exception of the NR alarm.
*1: The AOF specification is valid only with respect to the change in the alarm suppression specification. This operation performs
alarm suppression for all alarms with the exception of the NR alarm.
*2: The type of logic chart that =XCAL is applied should be set to [One-Shot Processing Type (O)].
*1: The values set to the CSV varied according to the data in the manipulation rule column and setting range as shown below.
0: CSV=0 when the manipulation rule column is “TRUE,” disabled when “FALSE.”
1: CSV=1 when the manipulation rule column is “TRUE,” disabled when “FALSE.”
2: CSV=2 when the manipulation rule column is “TRUE,” disabled when “FALSE.”
P0: CSV=0 when manipulation rule column is “TRUE,” CSV=2 when “FALSE.”
P1: CSV=1 when manipulation rule column is “TRUE,” disabled when “FALSE.”
P2: CSV=2 when manipulation rule column is “TRUE,” CSV=0 when “FALSE.”
*1: mm is required parameter for one-shot execution of the batch data setting block and batch data collection block. Data that will be
set during a one-shot execution according to the mm value.
mm=0: All setting data are set to 0.
mm=1 to 16: Only the specified data (DTn) is set.
mm=17: All data will be set.
*2: The AOF specification is valid only with respect to the change in the alarm suppression specification. This operation performs
alarm suppression for all alarms with the exception of the NR alarm.
*3: The type of logic chart that =XCAL is applied should be set to [One-Shot Processing Type (O)].
D030379E.ai
Note: Data that will be set during a one-shot execution according to the mm value.
mm=0: All setting data are set to 0.
mm=1 to 16: Only the specified data (DTn) is set.
mm=17: All data will be set.
*1: The AOF specification is valid only with respect to the change in the alarm suppression specification. This operation performs
alarm suppression for all alarms with the exception of the NR alarm.
*2: n indicates the number of elements in a one-dimensional array. This is the number of push-button switches in a faceplate block,
and varies with the type of each faceplate block.
*1: The AOF specification is valid only with respect to the change in the alarm suppression specification. This operation performs
alarm suppression for all alarms with the exception of the NR alarm.
*2: The type of logic chart that =XCAL is applied should be set to [One-Shot Processing Type (O)].
*1: The AOF specification is valid only with respect to the change in the alarm suppression specification. This operation performs
alarm suppression for all alarms with the exception of the NR alarm.
*1: Even though the flashing state stops, the contact output itself remains ON. Turn off the contact output using a different action
signal with an unlatched contact output.
• When action signal specified to start an one-shot execution of a function block, the target
block can start another block for one-shot execution. The chain start can be nested seven
times.
• When output to the one-shot function block fails, and the failure is caused by one of the
following reasons, a system alarm will be triggered.
• The destination logic chart is used to start another logic chart, and the chain start is nested
more than seven times.
• The function block connected to the output terminal is in O/S mode.
• The function block connected to the output terminal is udder online maintenance.
From the transition sequence table, another sequence table can be started as a transition table
for condition test or status manipulation. The chain start can be nested for 7 times including the
first sequence table.
The action rule of the sequence table behaves as follows according to the types (step type or
nonstep type) of the execution origin and the execution destination sequence tables.
Table Execution Target Action Rule in Accordance with Types of Sequence Table
Branching source Branching destination Execution target action rule
Nonstep type Rules for a specified step and step 00
Nonstep type
Step type All rules
Nonstep type Rules for a specified step and step 00
Step type
Step type All rules
D030393E.ai
When a logic chart starts a sequence table specified in the output operation element, the started
sequence table run its transition to start the transition destination sequence table. The transition
destination sequence table will run its step 00 and the transition specified step for condition test
and the status manipulation.
If the specified transition step of the transition sequence table can not be found, an error will be
generated, the step can not be executed. However, if the transition sequence table has step 00,
the step 00 will be executed.
When execute an entire sequence table to a non step type sequence table, all rules will be
executed.
ST
PT
n Data Items
Table Data Items of the logic Chart Block (ST-16)
Entry parnitted
Data Item Data Name Range Default
or Not
MODE Block mode x O/S (AUT)
ALRM Alarm status NR
Alarm flashing status
AFLS 0
AF Alarm detection 0
AOFS Alarm inhibition 0
OPMK Operation mark x 0 to 64 0
UAID User application ID x 0
ST01 - 64 Set time of internal timer x 0 to10000 (sec.) 0 (sec.)
PT01 - 64 Elapsed time of internal timer 0 to10000 (sec.) 0 (sec.)
D030398E.ai
SEE
ALSO For a list of valid block mode of the LC64, see the following:
D3.1.2, “Block Mode of Sequence Control Blocks”
Answerback MAN
PV
check
ROUT CAS, AUT
CAL MV
BPSW=0 BPSW=1
Answerback
input
Remote/local Output signal
input conversion
RAW
IN TSI OUT
D030401E.ai
The table below shows the connection methods and connection destinations of the switch
instrument block I/O terminals.
Table Connection Method and Connection Destination of Switch Instrument Block I/O Terminals
Connection type Connection destination
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91).
Answerback MAN
PV
check
ROUT CAS, AUT
CAL MV
BPSW=0 BPSW=1
Answerback
input
Remote/local Output signal
input conversion
RAW
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a switch block (SW-33, SW-91).
*1: IN terminal of SI-1E. IN1 terminal of SI-2E.
*2: IN2 terminal of SI-2E.
*3: OUT terminal of SO-1E. OUT1 terminal of SO-2E.
*4: OUT2 terminal of SO-2E.
*5: IN terminal of the blocks with only one input. IN1 terminal of the blocks with two inputs.
*6: IN2 terminal of the blocks with two inputs.
*7: OUT terminal of the blocks with only one output. OUT1 terminal of the blocks with two outputs.
*8: OUT1 terminal of the blocks with two outputs.
IMPORTANT
If the OUT1 terminal and the OUT2 terminal are connected to different output modules or if OUT1
terminal and the OUT2 terminal are connected to FF faceplate blocks or fieldbus function blocks,
the simultaneity of the two outputs are not guaranteed. The same phenomenon happens to IN1
and IN2 terminals under the same circumstances.
TAG NO.
AUT
Push OPEN
Push
CLOSE
SEQTYPE1
*VALVE*
1 to 2 sec
Open-
output 1 to 2 sec
OPEN
Output
Close-output CLOSE
Valve
limit
switch
Motor-operated valve
D030403E.ai
n Process Timing
The process timing of switch instrument block and enhanced switch instrument block is only
based on periodical start period. The periodic start period is based on basic scan period.
x: Yes
Blank: No
x: Yes
Blank: No
SEE
ALSO • For the types of alarm processing possible for the switch instrument blocks, see the following:
D3.1.1, “Alarm Processing of Sequence Control Blocks”
• For more information about alarm processing, see the following:
C5, “Alarm Processing – FCS”
x: Yes
Blank: No
x: Yes
Blank: No
SEE
ALSO • For the types of alarm processing possible for the enhanced switch instrument blocks, see the following:
D3.1.1, “Alarm Processing of Sequence Control Blocks”
• For more information about alarm processing, see the following:
C5, “Alarm Processing – FCS”
n Answerback Input
▼ Direction of Answerback
In answerback input function, the limit switch signal indicating the valve’s open/close status
is entered from the answerback input terminal to generate the answerback input value (PV).
Contact input and internal status switch can be specified as the answerback signal input for the
switch instrument blocks. For enhanced switch instrument blocks, the contact input, internal
switch, FF faceplate block and fieldbus function block can be specified as the answerback signal
input. The answerback input signal is converted into the answerback input value (PV) inside the
switch instrument. This answerback input value varies depending upon the answerback input
direction and the input status of the valve limit switch. The table below lists the answerback input
values.
Table List of Answerback Input Value
*1: “n” in the table indicates the element number specified to connect to IN terminal of switch instrument blocks and enhanced switch
instrument blocks, or the IN1 terminal of enhanced switch instrument blocks. The answerback input signal read from the element
n represents the status of “open;” vise versa, when the connection is inverted, the answerback input signal read from the element
n represents the status of “close.”
“n+1” in the table indicates the element number succeeding the element number “n” that is specified to connect to IN terminal of
switch instrument blocks, or the element number specified to connect to IN2 terminal of enhanced switch instrument blocks. The
answerback input signal read from the element n+1 represents the status of “close;” vise versa, when the connection is inverted,
the answerback input signal read from the element n+1 represents the status of “open.”
*2: This is an abnormal event in which input from full-open signal and full-close signal occurs simultaneously. The answerback
inconsistency alarm (PERR) occurs.
*3: Inverted connection cannot be defined for enhanced switch instrument block.
For enhanced switch instrument block, the answer-back inconsistency alarm mask can be set on
the function block detail builder.
• Inhibit Answerback Error Alarm:
Choose between [No] and [Yes].
The default setting is [Yes].
TIP
SI-2E block has the Answer-Back Inconsistency Alarm check capability but cannot be masked. If the alarm need
to be masked, it is necessary to use an application program such as a sequence table block to enable or disable
the alarm check after the MV changes.
n Remote/Local Input
The remote/local input function switches the block mode depending on the status of the on-site
operation push-button (remote/local input signal) input from the remote/local input terminal (TSI).
For remote/local signals, the contact input and common switch can be specified. The state of
remote/local input signal is stored in the tracking switch (TSW). The block mode will be changed
depending on the state of tracking switch (TSW).
Table Remote/Local Input of the Switch Instrument Block and the Enhanced Switch Instrument Block
On-site operation remote/ Input signal to TSI Tracking switch
Block mode
local switching input terminal (TSW)
Remote OFF 0 Cancel TRK
Local ON 1 TRK
D030407E.ai
If there exists no connection for the remote/local input terminal (TSI), the block mode external to
the block function can set the tracking switch (TSW) directly.
The following is an example of description to the sequence table action signal column for setting
the switch instrument (Tag name=SU0100) tracking switch (TSW) to 1.
Tag name.Data item Data Action rule
SU0100.TSW 1 Y
D030408E.ai
Switch instrument
(Tag No.=SU0100)
D030418E.ai
n Answerback Check
▼ Answerback Check, Answerback Abnormal Alarm
The answerback check function checks if final control elements such as a valve is working as
specified by the output from the switch instrument block or the enhanced switch instrument block.
If there exists answerback check specification, operations are checked by comparing the
answerback input value (PV) and manipulated output value (MV) regularly, except for a certain
period after a change in the output. If there is any inconsistency between the answerback input
value (PV) and the manipulated output value (MV), the answerback error alarm (ANS+ or ANS-)
will occur.
Presence/absence of the answerback error alarm can be specified in the Function Block Detail
Builder.
• Answerback Abnormal Alarm
Select from “Close,” “OFF Direction,” “Both” or “No.”
The default is “Both.”
When either “Open” or “Close” is specified, answerback check will not be performed even if there
is any inconsistency on the side not specified. On the other hand, if monitoring both sides is
specified, the alarm will be activated when an inconsistency is detected on either side. The alarm
will be canceled when both sides satisfy their recovery conditions.
l Monitoring Close-Side
The answerback check time will be activated upon falling (ON→OFF) (MV=2→0) of the
manipulated output. If there exists any inconsistency between the answerback input value (PV)
and the manipulated output value during the period between the time-up of answerback check
suppression timer and the next change of the manipulated output value (MV) to 2, the close-side
answerback error alarm (ANS-) will be activated.
MV=2
Manipulated output
MV=0
PV=2
Answerback input
PV=0
MTM
Answerback check
suppression timer
0
n Answerback Bypass
The answerback bypass function stops the answerback input function and answerback check
function, forcing the answerback input value (PV) and the manipulated output value (MV) to
match. The status of the answerback bypass switch will be input via the answerback bypass input
terminal (SWI). The contact input and internal status switch can be specified to the input terminal.
If there is no connection to the SWI input terminal, the answerback bypass switch (BPSW) can
be specified directly from outside the function block.
The answerback bypass function is available only when the answerback bypass switch (BPSW)
is set to 1.
The table below shows the relationship between the answerback bypass input terminal and the
answerback bypass switch.
Table Relationship between Answerback Bypass Input Terminal and Answerback Bypass Switch
Item SWI input terminal ON SWI input terminal OFF
Answerback bypass switch (BPSW) 1 0
Answerback bypass function Execute Stop
D030412E.ai
The output contact signal varies with the direction of output action. Output action direction can be
set on the Function Block Detail Builder.
• Output action direction:
Switch instrument block:
Select from [Direct], [Reverse], [Inverted connect Direct action] or [Inverted connect
Reversed action].
Enhanced switch instrument block:
Select from [Direct] or [Reverse].
The default is [Direct].
2 0 ON OFF
(Three-position type) 2 OFF ON
Inverted connection
1 OFF OFF
Direct action (*2)
0 ON OFF
2 ON OFF
Inverted connection
Reversed action 1 ON ON
(*2)
0 OFF ON
2 2 ON OFF
Direct action
(Pulse type) 0 OFF ON
D030413E.ai
*1: “n” in the table indicates the element number specified to connect to OUT terminal of switch instrument blocks and enhanced
switch instrument blocks, or the OUT1 terminal of enhanced switch instrument blocks.
“n+1” in the table indicates the element number succeeding the element number “n” that is specified to connect to OUT terminal
of switch instrument blocks, or the element number specified to connect to OUT2 terminal of enhanced switch instrument blocks.
*2: Inverted connection cannot be defined for enhanced switch instrument block.
ON
n
Number of output points 2 OFF
(three-position type)
ON
n+1
OFF
ON
n
Number of output points 2 OFF 1 to 2 sec
(Pulse type)
ON
n+1
OFF 1 to 2 sec
MV=2 MV=0
D030414E.ai
TIP
The output tracking of switch instrument block starts under the following circumstances:
• When the block becomes IMAN mode.
• When the block changes from service off (O/S) mode to MAN, AUT or CAS mode.
• When the I/O module connected to the output terminals recovered from failure.
CSV=2
Sequence Set Value
CSV=0
MV=2
Manipulated Output Value
MV=0
ON
Actual Output
OFF
CSV=2 is set in the When other block access Switch instrument block
sequence table. the MV, the MV=CSV and sends output MV=2.
MV=2.
D030424E.ai
Figure CSV, MV and Actual Output when the Option is Checked: KFCS2/FFCS/LFCS2
CSV=2
Sequence Set Value
CSV=0
MV=2
Manipulated Output Value
MV=0
ON
Actual Output
OFF
CSV=2 is set in the When other block access Switch instrument block
sequence table. the MV, the MV=0. sends output MV=CSV
and MV=2.
D030425E.ai
Figure CSV, MV and Actual Output when the Option is Unchecked: KFCS2/FFCS/LFCS2
n Answerback Tracking
▼ Answerback Tracking
The answerback tracking function forces the manipulated output value (MV) to coincide with the
answerback input value (PV) (MV=PV) during the on-site manual operation mode (TRK). The
presence/absence of the answerback tracking function can be specified in the Function Block
Detail Builder.
• Answerback Tracking:
Select from “Yes’’ or “No.’’
The default is “Yes.”
n Calibration
The calibration function allows manual setting of the input signal. The calibration function is
activated when the data status of the answerback input value (PV) becomes calibration (CAL).
This state is called the calibration status. Change to the calibration status can be executed from
the human-machine interface station (operation and monitoring functions).
The following describes the switch instrument block and enhanced switch instrument block
actions during the calibration status.
• Answerback input value (PV) can be set manually.
• The manual fall back condition is satisfied and the block mode becomes manual (MAN).
The output function is performed.
• Bypass the alarm process for the answerback input value (PV).
• Bypass the answerback input and answerback check function.
n Simulation
The simulation function simulates only the internal processing of the switch instrument block/
the enhanced switch instrument block in order to test the operation of devices using the switch
instrument block/the enhanced switch instrument block. There exists two main status in the
switch instrument block/the enhanced switch instrument block: normal status and simulation
status.
The status shifts to simulation when the switch instrument block/the enhanced switch instrument
block simulation switch (SIMM) is set to ON (=1).
The following describes the switch instrument block/the enhanced switch instrument block action
in the first scan period after canceling the simulation status.
• For a status-output type, the contact state of the output destination (element connected to
output terminal) is read back as the manipulated output value (MV).
• For a pulse-output type (SIO-12P, SIO-22P, SIO-12PE, SIO-22PE), if the answerback
tracking function is “Yes,” the manipulated output value (MV) is matched to the answerback
input value (PV).
n Initialization Manual
The initialization manual function is an error processing functions. It suspends the control action
by changing the block mode to the initialization manual mode (IMAN). The initialization manual][
function will be activated when a temporary abnormal state occurred at the output destination of
manipulated output value can be restarted automatically upon recovery from the abnormal state,
for instance, during on-line maintenance.
• When the initialization manual function is activated, the control action is stopped when the
block mode is in the status that allows automatic controls as in the automatic mode (AUT).
The previous manipulated output value (MV) is retained. However, the manual operation
will not be available if the initialization manual mode is enabled, even if the mode is changed
from IMAN (AUT) to IMAN (MAN). Upon returning from the initialization manual (IMAN)
mode, the manipulated output value (MV) will track the PV value of the output destination.
• The initialization manual mode (IMAN) is reset upon recovery of the occurrence conditions,
returning to the previous block mode. If the block mode change is executed during the
initialization manual mode (IMAN), the block mode will be the mode specified upon recovery
of IMAN conditions.
SEE
ALSO For initialization manual conditions, see the following:
“n The Initialization Manual Condition” in C6.1.5, “Block Mode Transition Condition”
Table Data Items of the Switch Instrument Blocks (SI-1, SI-2) and the Enhanced Switch Instrument
Block (SI-1E, SI-2E)
Entry Permitted
Data Item Data Name Range Default
or Not
MODE Block mode x ----- O/S (AUT)
BSTS Block status ----- NR
ALRM Alarm status ----- NR
AFLS Alarm flashing status ----- 0
AF Alarm detection ----- 0
AOFS Alarm inhibition ----- 0
PV Answerback input value Δ (*1) 0 to 2 0
RAW Raw input data 0 to 3 -----
SIMM Simulation switch x 0, 1 0
OPMK Operation mark x 0 to 64 0
UAID User application ID x ----- 0
D030415E.ai
Table Data Items of the Switch Instrument Blocks (SO-1, SO-2) and the Enhanced Switch Instrument
Block (SO-1E, SO-2E)
Entry Permitted
Data Item Data Name Range Default
or Not
MODE Block mode x ----- O/S (MAN)
BSTS Block status ----- NR
ALRM Alarm status ----- NR
AFLS Alarm flashing status ----- 0
AF Alarm detection ----- 0
AOFS Alarm inhibition ----- 0
MV Manipulated output value Δ (*1) 0 to 2 0
RMV Remote manipulated output value Δ (*3) 0 to 2 0
CSV Sequence setpoint value x 0 to 2 0
SIMM Simulation switch x 0, 1 0
TSW Tracking switch Δ (*2) 0, 1 0
BSW Backup switch x 0, 1 0
OPMK Operation mark x 0 to 64 0
UAID User application ID x ----- 0
D030416E.ai
*1: ANCK status is not available in SI-1, SI-2, SO-1 and SO-2.
Counting
PV01 OUT
process
D030501E.ai
The table below lists the connection methods and connection destinations of the I/O terminals of
the Timer Block (TM).
Table Connection Methods and Connection Destinations of the I/O Terminals of the Timer Block (TM)
Connection type Connection destination
x: Connection available
Blank: Connection not available
Operations such as the timer start or stop can be performed from the sequence control block,
calculation block, and operation and monitoring functions. The block status which indicates an
operating status can also be referenced from other function blocks.
Status manipulation is the only connection method from the OUT terminal of the Timer Block
(TM). Thus, the Timer Block (TM) manipulates the status according to the action signals specified
in the OUT terminals. The logical value of the Timer Block (TM) becomes true when the preset
timer function is in time-up status (block status: CTUP).
Specify COUNT01.ACT.ON
D030503E.ai
Figure Connection Example of Timer Block (TM) and Other Sequence Control Block
Every time the Timer Block (TM) with the tag name TM001 expires, the Software Counter Block
(CTS) with the tag name COUNT01 is increased by one count.
n Process Timing
The process timing of Timer block is only based on periodical start period. The periodic start
period is based on high-speed scan period, medium-speed scan period (*1) and basic scan
period.
*1: Medium-speed scan period is supported in KFCS2, KFCS, FFCS, LFCS2 and LFCS only.
n Set Parameter
▼ Timer Property
The following describes the set parameters of the Timer Block (TM).
• Preset time setpoint value (PH): 0 to 100000 (second or minute)
• Pre-alarm setpoint value (DL): PL to PH
The PL is the low-limit value (fixed at 0) of the timer elapsed time (PV).
Use the Function Block Detail Builder to set the unit for the preset time setpoint.
• Timer Property:
Select from “Second timer” or “Minute timer.”
Default is “Second timer.”
*1: An action for “N” is enabled only with the sequence table.
An action for “False” is enabled only with the logic chart.
PH
DL
DV
PV
Time
The figure below shows the changes in the timer elapsed time (PV) by the timer start command.
Start command
PV=0 Time
The following describes an example of the timer start specified in the action signal column of the
sequence table.
Tag name.Data item Data Action rule
TM0002.OP START Y D030507E.ai
The figure below shows the changes in the timer elapsed time (PV) by the timer stop command.
PV
Stop command
Scan period
PV=0 Time
Block
RUN STOP
Status
D030508E.ai
The following describes an example of specifying the timer stop in the action signal column of the
sequence table.
Tag name.Data item Data Action rule
TM0002.OP STOP Y D030509E.ai
PH
DL
DV
PV
RUN STOP
Block
NR PALM CTUP
Status
PAUS PAUS
The following describes an example of specifying the timer restart in the action signal column of
the sequence table.
Tag name.Data item Data Action rule
TM0002.OP RSTR Y D030512E.ai
n Preset Timer
The preset timer function notifies that the specified amount of time has elapsed. The content of
the notification includes the time-up status (CTUP) based on the preset time setpoint (PH) and
the pre-alarm status (PALM) which gives prior notices before reaching the preset time.
If one of the following conditions is satisfied for the timer’s remaining time (DV=PH-PV) when the
block status is counting (RUN), the pre-alarm status (PALM) or time-up status becomes true.
• 0<DV≤DL:
Pre-alarm status (PALM)
• DV=0:
Time-up status (CTUP)
However, if the pre-alarm setpoint value (DL) is 0, the pre-alarm status (PALM) will not occur.
The timer block actions and the block statuses are illustrated as follows.
PH
DL
DV
PV
PH
DL
DV
PV
Figure Timer Block Status with Option of Hold PALM in CTUP Status: KFSC2/FFCS/LFCS2
TIP
Inside the FCS, the block status of TM/CTS/CTP blocks is expressed in 32 bits.
PALM hold bit (0x01000000)
31 15 0
Figure Internal Bit Image for Block Status of TM/CTS/CTP Blocks: KFCS2/FFCS/LFCS2
After a snapshot-save in the test function, if you change the checkbox [TM/CTS/CTP blocks hold PALM after
CTUP] and snapshot-load, the setting in the checkbox [TM/CTS/CTP blocks hold PALM after CTUP] and the bit
image indicating the block status become inconsistent.
Operation 1
1. Check the check box of [TM/CTS/CTP blocks hold PALM after CTUP]. After that, start the FCS/FCS
simulator.
2. TM/CTS/CTP blocks go into CTUP status.
3. Snapshot-save.
4. Uncheck the [TM/CTS/CTP blocks hold PALM after CTUP]. After that, restart the FCS/FCS simulator.
5. Snapshot-load the data saved in the step 3.
After the step 5, the setting of the checkbox and the bit image indicating the block status become
inconsistent. Here, if the instrument faceplate for the TM/CTS/CTP is displayed on HIS, the block status
field is blank.
The setting of the checkbox and the bit image become consistent, and the block status is displayed
normally if:
• For TM/CTP
The next scan starts, or RUN/STOP is ordered.
• For CTS
One of PH/DL/PV is changed, or ACT. ON is executed in a sequence table or a logic chart.
Operation 2
1. Uncheck the check box of [TM/CTS/CTP blocks hold PALM after CTUP]. After that, start the FCS/FCS
simulator.
2. TM/CTS/CTP blocks go into CTUP status.
3. Snapshot-save.
4. Check the [TM/CTS/CTP blocks hold PALM after CTUP]. After that, restart the FCS/FCS simulator.
5. Snapshot-load the data saved in the step 3.
After the step 5, the setting of the checkbox and the bit image indicating the block status become
inconsistent. But [CTUP] is displayed in the block status field for TM/CTS/CTP.
The setting of the checkbox and the bit image become consistent if:
• For TM/CTP
The next scan starts, or RUN/STOP is ordered.
• For CTS
One of PH/DL/PV is changed, or ACT. ON is executed in a sequence table or a logic chart.
n Periodic Action
▼ Periodic Action
When timer block reaches time-up status (CTUP), the timer block can be restarted to count
again.
This periodic action can be set using the Function Block Detail Builder.
• Periodic Action:
Select from “Yes” or “No.”
The default is “No.”
The action of the timer is different according to presence specified of the periodic action.
PH 8
4 PV=1
PV
2
0 Time
Scan period
Block RUN
status NR CTUP NR
D030513E.ai
Figure Change in Timer Elapsed Time (PV) When Preset Time Setpoint (PH) is 8 Seconds
n Data Items – TM
The table below shows the data items of the Timer Block (TM):
Table Data Items of the Timer Block (TM)
Entry Permitted
Data Item Data Name Range Default
or Not
MODE Block mode x ----- O/S (AUT)
BSTS Block status ----- STOP
ALRM Alarm status ----- NR
AFLS Alarm flashing status ----- 0
AF Alarm detection ----- 0
AOFS Alarm inhibition ----- 0
PV Elapsed time x PL to PH 0
PH Preset time setpoint value x 0 to 100000 100000
DV Remaining time -PL to PH PH
DL Pre-alarm setpoint value x PL to PH PL
PL PV scale low limit Fixed at 0. 0
OPMK Operation mark x 0 to 64 0
UAID User application ID x ----- 0
D030514E.ai
SEE
ALSO For a list of valid block modes of the timer block, see the following:
D3.1.2, “Block Mode of Sequence Control Blocks”
Count
PV OUT
process
D030601E.ai
Figure Function Block Diagram for the Software Counter Block (CTS)
The table below lists the connection methods and connection destinations of the I/O terminal of
the Software Counter Block (CTS).
Table Connection Methods and Connection Destinations of the I/O Terminals of the Software Counter
Block (CTS)
Connection type Connection destination
x: Connection available
Blank: Connection not available
The calculating operation of the software counter can be performed from other function blocks
such as the sequence control block or the calculation block.
The figure below shows a connection example of Software Counter Block (CTS). In this example,
the CALCU block sends a one-shot start command to CTS for counting.
Sequence connection
DI010 Q01 CTS001.ACT.ON
CALCU OUT
DI011 Q02
n Process Timing
The process timing of CTS block is only based on one-shot start.
n Set Parameter
The set parameters of the Software Counter Block (CTS) are:
• Preset setpoint (PH):
0 to 100000
• Pre-alarm setpoint (DL):
PL to PH
PL: The scale low limit (fixed at 0) of the count value (PV).
7 Hold PV value
6
PH
(=6) DL=2 5
DV=4
4
3
2
PV=1 PV
Time
Counter operation
command
Operation Stop
command command
D030604E.ai
Since the pre-alarm status (PALM) and the count-up status (CTUP) can not become true
simultaneously, the pre-alarm status (PALM) is canceled when DV=0, shifting to the count-up
status (CTUP). Although the count value (PV) continues to be updated even after the status shifts
to the count-up, the count value (PV) is reset when it reaches 100000. However, the block status
at count-up is held as count-up status (CTUP).
In order to cancel the count-up status (CTUP), the count value (PV) must be set remotely or a
stop command must be given. Also, when the pre-alarm setpoint (DL) is set to 0, the pre-alarm
status (PALM) will not occur.
SEE
ALSO For details of the behavior in Count-up complete (CTUP) status with the checked [TM/CTS/CTP blocks hold
PALM after CTUP], see the following:
“l Hold Pre-Alarm after Time-Up: KFCS2/FFCS/LFCS2” in “n Preset Timer” in D3.5, “Timer Block (TM)”
SEE
ALSO For a list of valid block modes of the CTS block, see the following:
D3.1.2, “Block Mode of Sequence Control Blocks”
Count
IN PV OUT
Process
D030701E.ai
Figure Function Block Diagram of the Pulse Train Input Counter Block (CTP)
SEE
ALSO • For the types of alarm processing possible for the CTP block, see the following:
D3.1.1, “Alarm Processing of Sequence Control Blocks”
• For more information about alarm processing, see the following:
C5, “Alarm Processing-FCS”
The table below lists connection methods and destinations for the Pulse Train Input Counter
Block (CTP).
Table Connection Methods and Destinations for the Pulse Train Input Counter Block (CTP) I/O
Terminals
Connection type Connection destination
x: Connection available
Blank: Connection not available
Operations such as start or stop of the pulse counter can be performed from other function blocks
such as the sequence control block or the calculation block, as well as from the operation and
monitoring functions. The block status that indicates the operating status can be referenced from
other function blocks.
CTP
(CTP001)
IN
%Znnusmm
D030703E.ai
Figure Example of the Signal Connection from the Pulse Input Module
n Process Timing
The process timing of Timer block is only based on periodical start period. The periodic start
period is based on high-speed scan period, medium-speed scan period (*1) and basic scan
period.
*1: Medium-speed scan period is supported in KFCS2, KFCS, LFCS2 and LFCS only.
*1: Actions for “N” are valid only for the sequence table.
Actions for “False” are valid only for the logic chart.
PH
DL
DV
PV
5
2
4
4
Time
1 scan
PALM
Action Start Start command Stop
commands command command
4 4 2 5
Time
Scan Scan Scan Scan Scan
D030707E.ai
PH
DL
DV
PV
Time
RUN STOP
Block
NR PALM CTUP
status
PAUS PAUS
Since the pre-alarm status (PALM) and count-up status (CTUP) can not become true
simultaneously, the pre-alarm status (PALM) is canceled when DV=0, and the status shifts to the
count-up (CTUP) status. Although updating of the count value (PV) continue even after the status
shifts to count-up status, the count value (PV) is reset when it reaches 100,000 and counting
continues. However, the block status is held at the count-up status (CTUP) when it is counted.
In order to cancel the count-up status, it is necessary to set the count value (PV) externally or to
issue a stop command. Also, when the pre-alarm setpoint (DL) is set to 0, the pre-alarm status
(PALM) will not occur.
SEE
ALSO For details of the behavior in Count-up complete (CTUP) status with the checked [TM/CTS/CTP blocks hold
PALM after CTUP], see the following:
“l Hold Pre-Alarm after Time-Up: KFCS2/FFCS/LFCS2” in “n Preset Timer” in D3.5, “Timer Block (TM)”
n Status Manipulation from the Pulse Train Input Counter Block (CTP)
When the action signal is specified via sequence connection to the OUT terminal of the Pulse
Train Input Counter Block (CTP), the status is manipulated based on the block status.
• CTUP and NOT PAUS:
Execute status manipulation for true logical value.
• NR and NOT PAUS, or PALM and NOT PAUS:
Execute status manipulation for false logical value.
• STOP or PAUS:
Invalid
If an error occurs during status manipulation, the alarm status of the Pulse Train Input Counter
Block (CTP) becomes the connection failure status (CNF). This is recovered when either the
cause of alarm is removed during the status manipulation, or the pulse counter is stopped or
paused.
SEE
ALSO For a list of valid block modes of the CTP block, see the following:
D3.1.2, “Block Mode of Sequence Control Blocks”
IN Bit Encoding PV
Inversion
D030801E.ai
The table below lists connection methods and destinations for the Code Input Block (CI).
Table Connection Methods and Destinations for Code Input Block (CI) I/O terminals
Connection type Connection destination
x: Connection available
Blank: Connection not available
The CI block input processing and code conversion are performed as one-shot execution from
other function blocks such as a sequence control block.
The following describes an example of specifying the code input block one-shot execution in the
action signal column of the sequence table.
Tag name.Data item Data Action rule
CI001.ACT ON Y D030803E.ai
n Process Timing
The process timing of CI block is only based on one-shot start.
n Bit Inversion
▼ Bit Inversion
The bit inversion of the Code Input Block (CI) inverses the ON/OFF status of the input digital
signals. If the bit inversion is specified as ‘’Non-reversed,’’ the ON/OFF status will not be
inversed.
The bit inversion is set by the Function Block Detail Builder.
• Bit Inversion:
Select from “No” or “Yes.”
Default is “No.”
n Encoding
▼ Code Conversion
The encoding of the Code Input Block (CI) interprets the input digital signal as a code and
converts it into an integer value. The converted integer value becomes the input code value (PV).
The input code value (PV) is held until the Code Input Block (CI) starts for the next time via the
code input read command.
There exist two methods for encoding the digital signals:
• “No conversion,” which interprets the contact signal patterns as binary numbers.
• “BCD conversion,” which interprets the contact digital patterns as binary coded decimal
(BCD) codes.
The figure below shows examples of encoding when “no conversion” and “BCD conversion” are
specified.
O O O O O O O O O O O O
F N F N F N F N F N F N
F F F F F F
X101 X100
Code input data Code input data
0 1 0 1 0 1 0 1 0 1 0 1 (15)
(binary input) (BCD input)
Encoding Encoding
0 1 0 1 0 1 0 0 1 1 1 1
(no conversion) (BCD to binary)
(no inversion) (no inversion)
Conversion at Conversion at
operation and Convert binary operation and Convert binary
monitoring functions to decimal monitoring functions to decimal
(for display) (for display)
D030804E.ai
Figure Encoding When “No Conversion” and “BCD Conversion” are Specified
When 6 points from %Z011101 are specified for CI001, %Z011101 to%Z011106 become the
code input data and %Z011101 is always the most significant bit.
Assuming that current ON/OFF statuses of %Z011101 to %Z011106 are as shown in the figure
above, PV (CI001) =15 when the BCD conversion is specified, and PV (CI001) =21 when the non
conversion is specified. In the above examples, when the BCD conversion is specified, the upper
2 bits (%Z011101, 011102) represent the ones places of 10, and the lower 4 bits (%Z011103 to 6)
does the zeros places of 10.
52 Meaningless
The figure below shows the graphed conditions of the input code value (PV).
PV
PH
DL
NR LO HI
D030806E.ai
Figure Relationship Between Input Code Value (PV) and Block Status
The input data status testing is not performed if an input code error has occurred.
n Data Items – CI
Table Data Items of Code Input Block (CI)
Entry Permitted
Data Item Data Name Range Default
or Not
MODE Block mode x ----- O/S (AUT)
BSTS Block status ----- NR
PV Input code value 0 to 65535 PL
RAW Raw input data ----- -----
PH High - limit alarm setpoint x 0 to 65535 65535
DV PH – PV -PL to PH PH
DL LO width x 0 to 65535 0
PL PV scale low limit Fixed at 0. 0
OPMK Operation mark x 0 to 64 0
UAID User application ID x ----- 0
D030807E.ai
SEE
ALSO For a list of valid block modes of the CI block, see the following:
D3.1.2, “Block Mode of Sequence Control Blocks”
Bit
PV Encoding OUT
Inversion
D030901E.ai
The table below lists connection methods and destinations for the Code Output Block (CO) I/O
terminals.
Table Connection Methods and Destinations for the Code Output Block (CO) I/O Terminals
Connection type Connection destination
x: Connection available
Blank: Connection not available
Δ: Connection available only when connecting to switch blocks (SW-33, SW-91)
The conversion of a CO block setting code value (PV) to a code are performed as one-shot
execution from other function blocks such as the sequence control block.
The following describes an example of specifying the code output block one-shot execution in the
action signal column of the sequence table.
Tag name.Data item Data Action rule
CO001.ACT ON Y D030903E.ai
n Encoding
▼ Code Conversion
The encoding function of the Code Output Block (CO) converts the integer value set as the
setting code value (PV) into bit patterns.
There exist two methods for converting an integer value into bit patterns:
• “No conversion,” converts to binary patterns.
• “BCD conversion,” converts the value into binary coded decimal (BCD) patterns.
The figure below shows examples of encoding when “no conversion” and “BCD conversion” are
specified.
No conversion BCD conversion
%SW0500 %SW0500
%SW0501 %SW0501
%SW0502 %SW0502
%SW0503 %SW0503
%SW0504 %SW0504
%SW0505 %SW0505
O O O O O O O O O O O O
F N F N F N N F F F F N
F F F F F F F
D030904E.ai
Figure Encoding When “Non Conversion” and “BCD Conversion” are Specified
When six points from %SW0500 are specified for CO001, %SW0500 to %SW0505 will be
subject to the code output. If the code conversion is specified as “No Conversion” and code
output is performed with the settings of CO0001 and PV=21, the ON/OFF statuses of the
%SW0500 to %SW0505 will be as the above left figure while for “BCD Conversion,” the statuses
of the switches will be as the above right figure.
The encoding function is set by the Function Block Detail Builder.
• Code Conversion:
Select from “No” and “BCD.”
“No” yields binary output, “BCD” yields binary coded decimal output.
Default is “No.”
n Bit Inversion
▼ Bit Inversion
The bit inversion of the Code Output Block (CO) inverses the ON/OFF status of the signals to be
output. If the bit inversion is specified as “No,” the ON/OFF status will not be inversed.
The bit inversion is set by the Function Block Detail Builder.
• Bit Inversion:
Select from “No” or “Yes.”
Default is “No.”
The figure below shows the graphed conditions of the set code value (PV).
PV
PH
DL
NR LO HI
D030905E.ai
Figure Relationship between Set Code Value (PV) and Block Status
Significant digits
Output 1 1 1 1
D030906E.ai
n Data Items – CO
Table Data Items of Code Output Block (CO)
Entry Permitted
Data Item Data Name Range Default
or Not
MODE Block mode x ----- AUT
BSTS Block status ----- NR
PV Setting code value x 0 to 65535 0
PH High - limit alarm setpoint x 0 to 65535 65535
DV PH – PV -PL to PH PH
DL LO width x 0 to 65535 0
PL PV scale low limit Fixed at 0. 0
OPMK Operation mark x 0 to 64 0
UAID User application ID x ----- 0
D030907E.ai
SEE
ALSO For a list of valid block modes of the CO block, see the following:
D3.1.2, “Block Mode of Sequence Control Blocks”
Q01 RV01
(X01)
Q02 RV02
Q31 RV31
(X16)
Q32 RV32
D031001E.ai
The table below lists connection methods and destinations for the Relational Expression Block
(RL) I/O terminals.
Table Connection Methods and Destinations for Relational Expression Block (RL) I/O Terminals
Connection type Connection destination
x: Connection available
Blank: Connection not available
Δ: Connection available only when connecting to switch blocks (SW-33, SW-91)
Q31 RV31=CALCU1.CPV
(X16)
%SW0500 Q32 RV32=%SW0500.PV
Software I/O
Relational Expression Block
D031003E.ai
n Process Timing
The process timing of RL block is only based on one-shot start.
The following shows the relationship expression between process data and process data.
FIC101.PV: FIC102.PV
FIC101. PV (RV01)
X01
FIC102. PV (RV02)
D031004E.ai
The following shows the relationship expression between process data and constant data.
FIC101.PV: 123.4
FIC101. PV (RV03)
X02
123.4 (RV04)
D031005E.ai
The following shows an entry example to the condition signal column in the sequence table when
testing for RV01 > RV02 shown in the first example above.
RL0100.X01.GT -------- Y
The function block indicated by RL0100 represents the Relational Expression Block (RL).
Use the Function Block Detail Builder to pre-define the data expressed by relational expression
data RV01 and RV02 as X (the first data) and Y (the second data).
• X, Y:
Character string of up to 34 standard width characters.
Describe the process data or a real number.
Default is blank.
The table below lists the operators and description of each operation.
• CMP
Numerical comparison:
Performs the numerical comparison of two data. It tests if the relationship matches the
relational expression and returns a logical value.
• AND
Logical product:
Computes logical products of two data by bit. It returns true if at least one bit satisfies the
relational expression.
The following describes an example of performing the logical product operation against two data.
CI0100 and CI0101 represent the Code Input Block (CI). The above example computes the
logical product of each corresponding bit of the two input code values (PV). If both corresponding
bits include 1, it returns true (1) to the calling function block.
The two data types are converted into floating point, if the relation operation type is numerical
comparison, or are converted to the unsigned integer type if the relational operation type is the
logical product.
n Range of Operation
The Relational Expression Block (RL) performs the operation only for the specified relational
expression during each one-shot execution from other function blocks. When it is not called
as one-shot, the previous values remain for the relational expressions that have not been
performed.
n Data Items – RL
Table Data Items of Relational Expression Block (RL)
Entry Permitted
Data Item Data Name Range Default
or Not
RV01 to RV32 Relational expression data ----- 0
AV01 to AV32 AND data ----- 0
OPMK Operation mark x 0 to 64 0
UAID User application ID x ----- 0
D031006E.ai
1 32
D031101E.ai
Issuing the usage request command and the usage request cancel command, referencing and
setting the maximum permissible number and referencing the permission status of the Resource
Scheduler Block (RS) may be performed from the sequence control blocks or calculation block.
Spot
P (Lorry shipping alarm)
Maximum
Pump count permissible number Request
Resource
control setting scheduler Spot control
Permission
D031102E.ai
In the above system example, the number of spots that can be used simultaneously for product
shipment is restricted by the total flow rate of the products that flow into the spots. In such cases,
the Resource Scheduler Block (RS) is used to control the usage status of each spot for shipping
control. By receiving a shipping request (usage request) from each spot, the Resource Scheduler
Block (RS) issues a sequential shipping permission (usage permission) to the first entry in the
FIFO (First In First Out) queue.
In the above system example, the product total flow rate that restricts the number of spots (the
maximum permissible number) that can be used simultaneously is determined by the number
of operating pumps. Therefore, the maximum permissible number (PMH) for the Resource
Scheduler Block (RS) is set via the function block that controls the pump count.
n Process Timing
The process timing of RS block is only based on one-shot start.
Source tank
Valve 1 2 3 4 5 Valve 10
Tank 1 2 3 4 5 Tank 10
LO LO LO LO LO LO
D031103E.ai
This control includes ten processes that open and close the valves. These processes open valve
nn if level LO of the tank n becomes ON, and then close valve nn if the level LO is released after
waiting for the level being recovered. However, no more than three valves can be opened at a
time. Also, the valves are opened in the order in which the level LO is reached.
The identification numbers of these processes are defined as in the table below.
Table Detecting Input and Identification Number
Identification
Contact input to detect the tank level LO
number
DI0001 1
DI0002 2
DI0003 3
: :
DI00010 10
D031104E.ai
Call the usage requester, usage request and permission by the corresponding number (1 to 10)
of each process identification number.
• Usage Requester 1 (DI001 : Tank 1’s level is LO)
• Usage Request 1
(Usage request 1 that has been submitted by usage requester 1 : Wants to open valve 1.)
• Permission 1 (Permission for usage request 1 : OK to open valve 1.)
Figure Sequence Table Block (ST16) used for Tank Level Control (1/2)
Figure Sequence Table Block (ST16) used for Tank Level Control (2/2)
Usage request
The sequence table block 2 indicates which usage request a permission is issued to.
The following describes an example of specifying the reference of permission status for usage
request 3 into the condition symbol column of the sequence table.
Tag name.Data item Data Action rule
RS0001.PM03 1 Y D031108E.ai
IMPORTANT
It is always necessary to issue the usage request cancel command, because the usage request
is not reset automatically, even after permission is given for the usage request. When the usage
request signal is an internal switch, turn off the internal switch (when the ON status means the
usage request state) for the next request after permission is sent, then issue the usage request
cancel command.
If the usage request that has been permitted is reset, there will be one vacancy for permission,
and permission is given to usage request 6. The following describes an example of setting
permission 2 to be reset in the condition signal column of the sequence table.
Tag name.Data item Data Action rule
RS0001.RQ02 0 Y D031109E.ai
Usage request 10
Usage request 9
Usage request 10
Usage request 9
Ascending order
Usage request 4
Usage request 1
Waiting for permission
Usage request 6
n Data Items – RS
Table Data Items of Resource Scheduler Block (RS)
Entry Permitted
Data Item Data Name Range Default
or Not
MODE Block mode x ----- O/S (AUT)
RQ01 to RQ32 Usage request x 0/1 0
PM01 to PM32 Usage permission 0/1 0
PMH Maximum permission number x 0 to 32 32
OPMK Operation mark x 0 to 64 0
UAID User application ID x ----- 0
D031114E.ai
SEE
ALSO For a list of valid block modes of the RS block, see the following:
D3.1.2, “Block Mode of Sequence Control Blocks”
x: Connection available
Blank: Connection not available
Δ: Connection available only when connecting to switch blocks (SW-33, SW-91)
Connect input terminals (Q01, Q03, ..., Q31) with the contact output leading to the valve.
Connect input terminals (Q02, Q04, ..., Q32) with the contact input (signals from the limit switch)
that indicates the open/close status of the valve. These two types of inputs (for example, Q01
and Q02) are compared and any mismatch present is detected. If a mismatch is detected as a
result of comparison, the valve abnormal state (PVnn) is set to 1, and messages specified in the
output terminal such as the annunciator message (%AN) and print message with data (%PR) are
output.
The figure below shows an example of monitoring the valve that has one point of contact output
(open signal) and one point of limit switch input (open answer-back) using the Valve Monitoring
Block (VLVM).
Valve monitor block
Q03 Action
monitoring PV02 J02
Q04 timer
On/off valve
(with a limit switch)
D031203E.ai
n Process Timing
The process timing of VLVM block is only based on periodical start period. The periodic start
period is based on basic scan period only.
OPEN
Valve action
CLOSE
ON
Limit switch 1
OFF
ON
Limit switch 2
OFF
Positive Negative Bidirectional
action(P) action(N) action(B)
D031204E.ai
To set the limit switch to correspond at two points for the both direction specification, assign
limit switch 1 (direct direction) to the input point specified at the input terminal, and limit switch 2
(reverse direction) to the subsequent point of the specified point.
The monitor action can be specified according to the timing of comparison between the limit
switch and valve contact output. The monitor action is set using the Function Block Detail Builder.
• Monitor action
Select from “Monitoring the ON side only,” “Monitoring the OFF side only” and
“Monitoring both-side.”
The default is “Monitoring both-side.”
OPEN
Valve action
CLOSE
ON
Limit switch
OFF
Positive
Limit switch
action
(P)
Valve abnormal
state
Valve
manipulated
output
Negative
Limit switch
action
(N)
Valve abnormal
state
Valve
manipulated
output
BIdirectional
Limit 1
action
Limit 2
(B)
Valve abnormal
state
• When the action specification for the limit switch is “Operate in Both Direction,” set the valve
abnormal state (PVnn) to 1 if either of the two points of limit switches is a mismatch to the
valve contact output.
Also, the valve abnormal state (PVnn) becomes 0 when both of the two points match the
valve contact output.
• If the valve operation output is changed while the valve status is abnormal (PVnn=1), the
valve abnormal state (PVnn) to reset to 0.
• Upon comparing the valve output contact with the limit switch, if either of the input
destinations has a device error or the data status of input data is faulty (BAD), the valve
abnormal states (PV01 to PV16) hold the current value.
PV01
PV02
OR PVR=1
PV16
D031207E.ai
When there is no connection to the limit switch input terminal, the limit switch input terminal is
recognized as unused, so the valve abnormal state (PVnn) is always 0.
n Message Output
VLVM block may generate an alarm message when an error occurs or recovers to notify the
operator. The message output may be specified.
Be careful that the abnormality recovered message is not output until all the valves return to their
normal state.
• Abnormality detected message
Sends the message at the timing in which the representative valve abnormal state (PVR)
changes from normal to abnormal (0→1).
• Abnormality recovered message
Sends the message at the timing in which the representative valve abnormal state (PVR)
changes from abnormal to normal (1→0).
x: Present
Blank: Absent
Δ: Depends on the builder specification
Specify “No” for the “Printout Message at Representative Recovery” or the “Printout Message at
Recovery” when the connection destination of the message output is other than a print message
with data.
l Message Suppressing
When the message suppression control switch (MCSW) is set to ON (=1), sending of all
messages specified in the output terminal is suppressed. When the message suppression
status is on, setting of the ON/OFF status for the internal switch at the output destination is not
performed. The status of the message suppressing switch (MCSW) can be changed by the
operation and monitoring functions or other function block.
SEE
ALSO For a list of valid block modes of the RS block, see the following:
D3.1.2, “Block Mode of Sequence Control Blocks”
n Faceplate Blocks
A faceplate block enables multiple function blocks to be recognized as one function block. The
function blocks that execute the faceplate function are called faceplate blocks. The following
diagram shows positioning of the faceplate function in basic control functions.
FCS
Basic control
Software I/O
Faceplate blocks
SFC blocks
Options
D040001E.ai
Faceplate blocks are capable of indicating and manipulating the data of multiple function blocks
that comprise a control loop. These indications and operation functions are performed on the
instrument faceplate of the operation and monitoring window. Faceplate blocks are classified into
analog faceplate blocks, sequence faceplate blocks and hybrid faceplate blocks.
ST16
PID PV
TIC102 T1 IN TC 100
INDST3
TC100
IN1
AUT
CALCU IN2 NR
X103 F1 IN 100.0
SV
MV T1 IN
P2 IN T2 IN V OUT
D040101E.ai
In the above example, the data items of TC100 (INDST3 block), TIC102 (PID controller block)
and FIC101 (PID controller block) are connected. The connected data items are shown below.
• PV of TC100 and PV of TIC102
• SV of TC100 and SV of TIC102
• MV of TC100 and MV of FIC101
• MODE of TC100 and MODE of FIC101.
l Setting Operation
When a value is set to any data item of TC100 from the instrument faceplate or other setting
source, the value of the connected data item will be changed.
• When SV of TC100 is changed, SV of TIC102 will change to the same value.
• When MV of TC100 is changed, MV of FIC101 will change to the same value.
• When the block mode of TC100 is changed, MODE of FC101will change to the same block
mode. However, the mode will not change to O/S.
ON
MVnn OFF
ON
Output OFF
Time
t 2t 3t 4t 5t
t = Scan period
Output time span
D040201E.ai
The manipulated command value (MVnn) remains ON for a period of time equivalent to a multiple
of the scan period.
If button operation is performed while the manipulated command value (MVnn) is ON, the value
will remain ON through the specified scan periods from the time when the last button operation
was performed.
The following figure shows the action of the momentary button when button operation is
performed while the manipulated command status is ON.
Block processing
timing Button operation Button operation
ON
MVnn OFF
ON
Output OFF
Time
t 2t 3t 4t 5t
t = Scan period
Output time span
D040202E.ai
Figure When Button Operation is Performed While the Manipulated Command Status is ON
ON
MVnn OFF
ON
Output OFF
Time
t 2t 3t 4t 5t
t = Scan period
D040203E.ai
When multiple button operations are performed in a single scan period, the manipulated
command value (MVnn) changes with each button operation. The change in the manipulated
command value (MVnn) will be executed immediately after the operation, while the output of the
manipulated command value (MVnn) will be executed during block processing. It must be noted
that the change in manipulated command value (MVnn) will not be transmitted to the storage
destination, even when multiple button operations are performed in a single scan period.
The following figure shows the relationship between the manipulated command value (MVnn) and
the output value when multiple button operations are performed in one scan period.
Block processing
timing Button operation Button operation
ON
MVnn OFF
ON
Output OFF
Time
t 2t 3t 4t 5t
t = Scan period
D040204E.ai
Figure When Multiple Button Operations are Performed in One Scan Period
SEE
ALSO For more information about block mode and status, see the following:
C6 “Block Mode and Status”
Note: MAN indicates a mode other than O/S. Actions are the same for all mode other than O/S.
Note: MAN indicates a mode other than O/S. Actions are the same for all mode other than O/S.
• When the block mode of the faceplate block changes to out of service (O/S), only the mode
of the faceplate block becomes out of service (O/S), the mode of the connected destination
function block does not change.
• When the block mode of the connected destination block is changed to out of service
(O/S), the block mode of the faceplate block does not become out of service (O/S) but
becomes O/S (MODE) which is a compound block mode. “MODE” of O/S (MODE) indicates
either the MAN, AUT or CAS mode. If the block mode of the faceplate block is displayed as
“MAN O/S” on the operation and monitoring function or described as “O/S (MAN)” in this
chapter, it means that the connected destination is in the out of service (O/S) mode and the
faceplate block is in the manual (MAN) mode.
• Actions that take place when a mode change is performed against the faceplate block while
the faceplate block is in the out of service (O/S) mode or O/S (MAN):
When a block mode change is performed directly against the faceplate block, the same
block mode change command is sent simultaneously to the connected destination function
block of the faceplate block.
• When a mode change is performed to the connected destination function block while the
faceplate block is in the out of service (O/S) mode:
The faceplate block remains in the out of service (O/S) mode.
Note: SEMI (semi-automatic) has the same priority as AUT and MAN, and is mutually exclusive with the two.
The character strings for faceplate block status are the user-defined status character string
defined in column USER1 on the Status Character String Builder.
In the table, the position 33 (Bit Column) is system reserved, can not be used.
A block status string can be defined with up to 8 alphanumeric characters including underscore ( _ ).
The block status character string of the faceplate block can be changed by application programs
are the strings in the table positions 2, 3, 4, 5, 17, 18, 19, 20, 21, 23, 25, 26 and 28. The strings
are defined to other positions (Bit) cannot be used by the application programs.
The alarm status of faceplate block is indicated with the character string set of USER9 in the
table on the user-defined alarm status character string builder. The block alarm status character
string of the faceplate block can be changed by application programs are the strings in the table
positions 10, 11, 12, 13, 17, 18, 25, 26, 27 and 28.
The character strings defined to the positions 15, 16, 21, 22, 29 and 30 are used when the
ALARM_SUM of fieldbus block is linked through fieldbus module (ACF11).
SEE
ALSO Faceplate alarm status characters strings are defined in column USER9 on user-defined character string builder.
For more information, see the following:
“n User-Defined Alarm Status Character String” in E10.4, “Alarm Status Character String and Alarm
Processing”
n Alarm-Related Functions
The alarm-related functions such as alarm acknowledgment, alarm detection specification and
alarm inhibition functions are available for a faceplate block. They can be set on the data items
named alarm flashing status (AFLS), alarm detection specification (AF), and alarm inhibition
specification (AOFS), respectively.
The settings on the faceplate block itself determines the alarm-related functions. Whether the
faceplate is connected with other function block is irrelevant.
JMOD MODE
JBST BSTS
JALM ALRM
JPV PV
JSV SV
J01 SVH
J02 SVL
INT
D040401E.ai
INDST2 block process timing is periodic type. The scan period can be set to Basic Scan,
Medium-speed Scan (*1) or High-speed Scan.
*1: Medium-speed scan period is available for KFCS2, KFCS, FFCS, LFCS2 and LFCS only.
AIC100
System A
Concentration
AUT
NR
100.0
80.0
60.0
40.0
20.0
0.0
D040402E.ai
The table below shows the connection types and connection destinations of the I/O terminals of
the Dual-Pointer Indicating Station Block (INDST2).
Table Connection Types and Connection Destinations of the I/O Terminals of Dual-Pointer Indicating
Station Block (INDST2)
Connection type Connection destination
I/O terminal Data Data Condition Status Terminal Process Software Function
reference setting testing manipulation connection I/O I/O block
Block mode
JMOD x x x
connection
Block status
JBST x x
connection
Alarm status
JALM x x
connection
PV
JPV x x
connection
SV
JSV x x x
connection
SVH
J01 x x x
connection
SVL
J02 x x x
connection
Interlock
INT x Δ x x x
switch input
D040403E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a selector switch block (SW-33, SW-91).
The setting of analog data to the connection destination is performed during the periodic scan
that immediately follows the setting operation to the data item of the Dual-Pointer Indicating
Station Block (INDST2).
JMOD MODE
JBST BSTS
JALM ALRM
JSV SV
JMV MV
J01 SVH
J02 SVL
J03 MH
J04 ML
INT
D040501E.ai
INDST2S block process timing is periodic type. The scan period can be set to Basic Scan,
Medium-speed Scan (*1) or High-speed Scan.
*1: Medium-speed scan period is available for KFCS2, KFCS, FFCS, LFCS2 and LFCS only.
AIC200
System B
Concentration
AUT
NR
100.0
80.0
60.0
40.0
20.0
0.0
D040502E.ai
The table below shows the connection types and connection destinations of the I/O terminals of
the Dual-Pointer Manual Station Block (INDST2S).
Table Connection Types and Connection Destinations of the I/O Terminals of Dual-Pointer Manual
Station Block (INDST2S)
Connection type Connection destination
I/O terminal Data Data Condition Status Terminal Process Software Function
reference setting testing manipulation connection I/O I/O block
Block mode x
JMOD x x
connection
Block status x x
JBST
connection
Alarm status x x
JALM
connection
SV x x x
JSV
connection
MV x x x
JMV
connection
SVH x x x
J01
connection
SVL x x x
J02
connection
MH x x x
J03
connection
ML x x x
J04
connection
Interlock x Δ x x x
INT
switch input
D040503E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a selector switch block (SW-33, SW-91).
The display form of the manipulated output value (MV) is set in the Function Block Detail Builder.
• MV Display Style:
Select from “Auto determination” or “User Define.”
The default setting is “Auto determination.”
When “User Define” is selected, set the engineering unit and scale range of the manipulated
output value (MV). The engineering unit and scale range of the manipulated output value (MV)
are set in the Function Block Detail Builder.
• MV Engineering Unit Symbol:
MV engineering unit.
The default setting is “%.”
• MV Range:
The high limit and low limit values of the maximum range of the manipulated output value.
The default setting is “100.0” for the high limit value and “0.0” for the low limit value.
The setting of analog data to the connection destination is performed during the periodic scan
that immediately follows the setting operation to the data item of the Dual-Pointer Manual Station
Block (INDST2S).
JMOD MODE
JBST BSTS
JALM ALRM
JPV PV
JSV SV
JMV MV
J01 SVH
J02 SVL
J03 MH
J04 ML
INT
D040601E.ai
INDST3 block process timing is periodic type. The scan period can be set to Basic Scan,
Medium-speed Scan (*1) or High-speed Scan.
*1: Medium-speed scan period is available for KFCS2, KFCS, FFCS, LFCS2 and LFCS only.
AIC300
System C
Concentration
AUT
NR
100.0
80.0
60.0
40.0
20.0
0.0
D040602E.ai
The table below shows the connection types and connection destinations of the I/O terminals of
the Triple-Pointer Manual Station Block (INDST3).
Table Connection Types and Connection Destinations of I/O Terminals of Triple-Pointer Manual Station
Block (INDST3)
Connection type Connection destination
I/O terminal Data Data Condition Status Terminal Process Software Function
reference setting testing manipulation connection I/O I/O block
Block mode x x x
JMOD
connection
Block status x x
JBST
connection
Alarm status x x
JALM
connection
JPV PV connection x x
JSV SV connection x x x
JMV MV connection x x x
J01 SVH connection x x x
J02 SVL connection x x x
J03 MH connection x x x
J04 ML connection x x x
Interlock x Δ x x x
INT
switch input
D040603E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a selector switch block (SW-33, SW-91).
The display form of the manipulated output value (MV) is set in the Function Block Detail Builder.
• MV Display Style:
Select from “Auto determination” or “User Define.”
The default setting is “Auto determination.”
When “User Define” is selected, set the engineering unit and scale range of the manipulated
output value (MV). The engineering unit and scale range of the manipulated output value (MV)
are set in the Function Block Detail Builder.
• MV Engineering Unit Symbol:
MV engineering unit.
The default setting is “%.”
• MV Range:
The high limit and low limit values of the maximum range of the manipulated output value.
The default setting is “100.0” for the high limit value and “0.0” for the low limit value.
The setting of analog data to the connection destination is performed during the periodic scan
that immediately follows the setting operation to the data item of the Triple-Pointer Manual Station
Block (INDST3).
JMOD MODE
JBST BSTS
JALM ALRM
SET SV PV
SWOP[1]
INT
SWST[1]
SWCR[1]
SVLMH
Q01 PV01 SWLB[1]
SVLMH
D040701E.ai
BSI block process timing is periodic type. The scan period can be set to Basic Scan, Medium-
speed Scan (*1) or High-speed Scan.
*1: Medium-speed scan period is available for KFCS2, KFCS, FFCS, LFCS2 and LFCS only.
BS100
Phase in
System A
MAN
NR
Cooling
16
START
HALT
STOP
1
D040702E.ai
The table below shows the connection types and connection destinations of the I/O terminals of
the Batch Status Indicator Block (BSI).
Table Connection Types and Connection Destinations of I/O Terminals of Batch Status Indicator Block
(BSI)
Connection type Connection destination
I/O terminal Data Data Condition Status Terminal Process Software Function
reference setting testing manipulation connection I/O I/O block
Block mode x x x
JMOD
connection
Block status x x
JBST
connection
Alarm status x x
JALM
connection
SV x x
SET
connection
PV01 x x x x x
Q01
connection
PV02 x x x x x
Q02
connection
PV03 x x x x x
Q03
connection
Interlock x Δ x x x
INT
switch input
D040703E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a selector switch block (SW-33, SW-91).
Up to 16 phase signals can be defined in the Function Block Detail Builder. Phase signals
are defined as one-dimensional array data (PHAS[n]) whose elements are character strings
containing 16 alphanumeric characters.
x: Performed
Blank: Not performed
x: Performed
Blank: Not performed
x: Performed
Blank: Not performed
JMOD MODE
AKLB[1]
JBST BSTS SWOP[1]
SWCR[1]MV
SVH
Q01 PV01 SWLB[1]
MVSVH MV01 B01
SVL
Q02 PV02 SWLB[2]
SVHSVL MV02 B02
MH
Q03 PV03 SWLB[3]
SVLMH MV03 B03
INT
D040801E.ai
PBS5C block process timing is periodic type. The scan period can be set to Basic Scan, Medium-
speed Scan (*1) or High-speed Scan.
*1: Medium-speed scan period is available for KFCS2, KFCS, FFCS, LFCS2 and LFCS only.
SC100
System A
MAN NR
NR
SW1 OFF
V1 CLOSE
P1 STOP
SW2 OFF
V2 CLOSE
D040802E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a selector switch block (SW-33, SW-91).
No connection ------
Not used
Lamp x x
Connection
Button
Button with lamp x x
D040804E.ai
x: Performed
Blank: Not performed
x: Performed
Blank: Not performed
x: Performed
Blank: Not performed
l Button Action
▼ Button Action
The button action references the ways in which the switch status changes when button operation
is performed by the operator.
The button action of the Extended 5-Push-Button Switch Block (PBS5C) is set in the Function
Block Detail Builder. Three types of button action are available for selection; “momentary button,”
“alternate button,” and “radio button.” The default is “momentary button.”
When the “momentary button” is selected, output time span must be set. The output time span is
set in the Function Block Detail Builder.
n Reconfirmation Operation
A dialog box for reconfirming the switch operation is displayed.
In the dialog, an OFF switch label is displayed when the current switch status (PVnn) is ON and an
ON switch label is displayed when the switch status is OFF.
JMOD MODE
AKLB[1]
JBST BSTS SWOP[1]
SWCR[1]MV
SVH
Q01 PV01 SWLB[1]
MVSVH MV01 B01
SVL
Q02 PV02 SWLB[2]
SVHSVL MV02 B02
MH
SVLMH
MH
INT
D040901E.ai
PBS10C block process timing is periodic type. The scan period can be set to Basic Scan,
Medium-speed Scan (*1) or High-speed Scan.
*1: Medium-speed scan period is available for KFCS2, KFCS, FFCS, LFCS2 and LFCS only.
SC200
System B
MAN NR
NR
P1 STOP V3 CLOSE
D040902E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a selector switch block (SW-33, SW-91).
x: Connection available
Blank: Connection not available
x: Performed
Blank: Not performed
x: Performed
Blank: Not performed
x: Performed
Blank: Not performed
n Reconfirmation Operation
A dialog box for reconfirming the switch operation is displayed.
In the dialog, an OFF switch label is displayed when the current switch status (PVnn) is ON and an
ON switch label is displayed when the switch status is OFF.
JMOD MODE
AKLB[1]
JBST BSTS SWOP[1]
SWCR[1]MV
SVH
Q01 PV01 SWLB[1]
MVSVH MV01 B01
SVL
Q02 PV02 SWLB[2]
SVHSVL MV02 B02
MH
Q03 PV03 SWLB[3]
SVLMH MV03 B03
JPV PV
JSV SV
JMV MV
J01 SVH
J02 SVL
J03 MH
J04 ML
INT
D041001E.ai
Figure Function Block Diagram of Extended Hybrid Manual Station Block (HAS3C)
HAS3C block process timing is periodic type. The scan period can be set to Basic Scan, Medium-
speed Scan (*1) or High-speed Scan.
*1: Medium-speed scan period is available for KFCS2, KFCS, FFCS, LFCS2 and LFCS only.
HA100
System 1
AUT
NR
100.0
SW1A OFF
80.0
SW1B OFF
60.0
V1A CLOSE
40.0
V1B CLOSE
20.0
P1A STOP
0.0
D041002E.ai
x: Connection available
Blank: Connection not available
Δ: Connection is available only when connecting to a selector switch block (SW-33, SW-91).
The display form of the manipulated output value (MV) is set in the Function Block Detail Builder.
• MV Display Style:
Select from “Automatic Determination” or “User Define.”
The default setting is “Automatic Determination.”
When “Automatic Determination” is selected, the engineering unit and scale range of the
manipulated output value (MV) will be the same with the connected block or device.
When “User Define” is selected, set the engineering unit and scale range of the manipulated
output value (MV). The engineering unit and scale range of the manipulated output value (MV)
are set in the Function Block Detail Builder.
• MV Engineering Unit Symbol:
MV engineering unit.
The default setting is “%.”
• MV Range:
The high limit and low limit values of the maximum range of the manipulated output value.
The default setting is “100.0” for the high limit value and “0.0” for the low limit value.
The setting of analog data to the connection destination is performed during the periodic scan
that immediately follows the setting operation to the data item of the Extended Hybrid Manual
Station Block (HAS3C).
x: Performed
Blank: Not performed
x: Performed
Blank: Not performed
x: Performed
Blank: Not performed
l Button Action
▼ Button Action
The button action references the ways in which the switch status changes when button operation
is performed by the operator.
The button action of the Extended Hybrid Manual Station Block (HAS3C) is set in the Function
Block Detail Builder. Three types of button action are available for selection; “momentary button,”
“alternate button,” and “radio button.” The default is “momentary button.”
When the “momentary button” is selected, output time span must be set. The output time span is
set in the Function Block Detail Builder.
n Reconfirmation Operation
A dialog box for reconfirming the switch is displayed.
In the dialog, an OFF switch label is displayed when the current switch status (PVnn) is ON and an
ON switch label is displayed when the switch status is OFF.
n SFC
▼ SFC Block
The SFC language describes a program defining sequential control steps for every group of
processes.
An example of SFC involving three steps, which are initialization, water feed, and heating, is
shown below:
Step
Transition 01 Initialization
03 Heating
D050001E.ai
TIP
SFC is also used in functions other than the SFC block as indicated below, but the SFC specifications for each of
these will vary somewhat.
• Unit instrument
• Operation
SEE
ALSO For more information about unit instruments and operations, see the following:
D6, “Unit Supervision”
Mode
Status SEBOL,
Sequence table or
Logic chart
D050002E.ai
......
V001.MV = OPEN
02 Water feed wait until (L001.PV >= 10)
V001.MV = CLOSE
......
03 Heating ......
H001.MV = ON
wait until (T001.PV >= 20)
H001.MV = OFF
......
D050003E.ai
Although all step actions are written in SEBOL in the above example, a different manner of
description can be used for each step action according to the disposition of the involved process.
SEE
ALSO • For the details of SEBOL, see the following:
H1, “SEBOL Details”
• For the details of the sequence table and the logic chart, see the following:
D3, “Sequence Control”
n SFC Block
SFC-written programs are classified according to their processing types as follows:
• Queue-signal processing:
Processing executed according to the contents of a queue signal in an SFC main program
designed for normal processing.
• Status-change processing:
Interrupt processing executed due to a status change of the SFC block. Different processing
may be executed before and after the status change.
• Interrupt-signal processing:
Interrupt processing executed according the contents of an interrupt signal in an SFC main
program designed for normal processing.
• Error processing:
Interrupt processing executed when error is caused during the execution of the SFC block.
With the SFC block, a process step which is being executed can be stopped temporarily,
referenced for its step number, or changed.
l Data Items
The SFC block has data items to identify SFC status.
These items are either system-specific predetermined data or user-defined data.
Step
Initial step
Double-Width Step
Step
Initial Double-Width
Step
Interrupt step
Transition Transition
Selective Sequence
Split
Selective Sequence
Join
Loop-Branch
Link Loop-Join
Jump Up Jnn
Jump To Jnn
Link
D050101E.ai
SFC defines processes to be executed using these three basic elements in combinations. Both
step and selective sequences can be defined according to the flow of SFC processing. Interrupt
steps can also be described to interrupt the normal flow of process.
D5.1.1 Step
There are five elements as step elements. Each step needs to be defined with attributes
and action.
n Step
“Step” is the most basic element for defining SFC processings.
The following five step elements are used:
• Step
• Initial step
• Step with expanded comment
• Initial step with expanded comment
• Interrupt step
Up to 99 steps can be described in one SFC, with attributes and action defined for each step.
l Step
This is an ordinary step. In an example shown below, the step number is indicated in the square
on the left and a comment identifying the action defined for the step is shown in the rectangle on
the right:
02 Water feed
D050102E.ai
l Initial Step
This is the step to be executed first. The step number is indicated in the square on the left and
a comment identifying the action defined for the step is shown in the rectangle on the right. The
use of the square and rectangle is the same as the ordinary “step” described above except that a
double square is used instead:
01 Initialization
D050103E.ai
l Double-Height Step
This element is also for an ordinary step except that a larger rectangle permits to enter three-
times the normal volume of action comment:
02
D050104E.ai
01
D050105E.ai
l Interrupt Step
An interrupt step is used to interrupt the execution of the main program and execute an interrupt
program. The interrupt step in the main program specified the destination for the expansion to an
interrupt program.
An example of interrupt steps is shown below:
01
Interrupt step
02 RUN
03 STOP
04 PAUS
D050106E.ai
n Step Attributes
Attributes such as step type and step number need to be defined for each step.
Each step needs to be defined with attributes such as step type and step number.
The table below lists the step attributes.
Table Step Attributes
Attribute Description
Select one of the following:
• SEBOL step
• SEBOL one-shot execution step (SEBOL one-shot)
Action-describing • Sequence table step (sequence table step)
methods • Sequence table one-shot execution step
(sequence table one-shot)
• Logic chart step (logic chart)
• Logic chart one-shot execution step (logic chart one-shot)
Step number Integer 1 through 99 (*1)
Step comment Character string of up to 16 bytes.
Phase name Character string of up to 16 bytes.
D050107E.ai
n Step Action
Each step is described as an action to execute a processing.
The types of action and the description of each step are shown below:
• Initial step
in SEBOL
• SEBOL step
in SEBOL
• SEBOL one-shot
in SEBOL
• Sequence table one-shot execution step (sequence table step)
in Sequence table
• Sequence table one-shot execution step (sequence table one-shot step)
in Sequence table
• Logic chart step (logic chart) in Logic chart
• Logic chart one-shot execution step (logic chart one-shot) in Logic chart
SEE
ALSO For the details of action description, see the following:
D5.2, “Action Description Using SEBOL”
D5.3, “Action Description Using Sequence Table”
D5.4, “Action Description Using Logic Chart”
Some steps require the use of parameters to define action as described below:
Table Action Parameters
Step Parameter Action when unspecified
Initial step None -
SEBOL step &
None -
SEBOL oneshot
Sequence table Parameter-storing variable in action column. Ignored (*1)
one-shot
execution step Name of step executed. -
Sequence table Condition testing result-storing variable. Ignored (*2)
one-shot
execution Name of step executed. -
Logic chart step Parameter-storing variable in action column Ignored (*1)
Logic chart
None -
one-shot
D050108E.ai
SEE
ALSO • For the details of the action signal parameter and condition testing result for sequence table and sequence
table one-shot steps, see the following:
D5.3.1, “Step Common Item Description Using the Sequence Table”
• For the details of the action signal parameter for logic chart steps, see the following:
D5.4.1, “Step Common Item Description Using Logic Chart”
n Step Status
A step is “active” when it is being executed or “inactive” when it is not yet executed or its
execution is completed.
When step status changes to active, the step action is executed.
Ending of the step action, step status changes to inactive and the step advances to the next
precessing.
D5.1.2 Transition
The transition is an element to evaluate the transition condition to the next step.
n Transition
The transition is an element used for evaluating the transition condition between steps. The
transition condition must defined with a single logical expression.
The condition is evaluated when the current step is completed and the next step is activated if the
condition is determined to be true.
The transition is denoted by a short horizontal line crossing the vertical link line between steps.
SFC can describe step sequence transition and selective sequence transition.
06
Transition
07
D050109E.ai
SEE
ALSO For details on transition conditions, see the following:
D5.5, “Transition Conditions”
05
Transition
06 07 08
D050110E.ai
The transition condition is evaluated once every basic cycle, or once in a few cycles unless time
is allocated to the SFC block specifically for once-per-cycle evaluation.
SEE
ALSO For more information, see the following:
D5.1.4, “Step & Selective Sequences”
D5.1.3 Links
The Links define the order of step execution. The following eight links are available:
• Selective Sequence Split
• Selective Sequence Join
• Loop-Branch
• Loop-Join
• Jump Down
• Jump Up
• Jump To
• Link
These links, except for ordinary “Link,” must be used in the following combinations:
• Selective Sequence Split and Selective Sequence Join
• Loop-Branch and Loop-Join
• Jump Down and Jump To
• Jump Up and Jump To
Up to a maximum of eight horizontal rows of steps can be defined within a selective sequence.
The transition of steps in a selective sequence is determined as the steps are evaluated from
left to right. The step located under the transition element is activated if the transition condition is
true.
SEE
ALSO For more information, see the following:
“n Selective Sequence” in D5.1.4, “Step & Selective Sequences”
Loop-Join
Loop-Branch
D050112E.ai
Jump To
J1
Example of Jump Down Example of Jump Up
D050113E.ai
When a new skip label is created, it is automatically numbered adding 1 to the number of the
most recent skip label.
n Link
The “link” used to connect steps as shown below.
The vertical links for a step with a step, a transition with a step are shown in the following
example.
02
Links
03
D050114E.ai
n Step Sequence
In a step sequence, steps are executed in the programmed order from the top and only one
transition is defined between steps.
An example is shown below:
06 Step
Transition
07 Step
D050115E.ai
The defined action is executed when the step is activated. As soon as the action is completed,
the transition condition is evaluated and the successive step is activated when the condition is
true. The successive step will be activated immediately upon completion of the current step if no
transition condition is defined.
n Selective Sequence
In a selective sequence, one of two to eight steps defined in parallel is executed selectively.
An example is shown below:
05
Transition
06 07 08
D050116E.ai
The transition condition is evaluated from left to right for every step; and the step for which the
condition is true will be activated, which is defined preceding the step. If no transition condition is
defined, the step will be activated unconditionally.
No other transition conditions are evaluated within the selective sequence during execution of
one step.
n Interrupt Program
The interrupt program is an SFC program designed to interrupt the main SFC program for
the execution of a non-sequential event. The interrupt program needs to be written for each
non-sequential event and is developed from an interrupt step defined for the event in the main
program.
An example of the interrupt program for pausing (PAUS) developed from an SFC block
containing three interrupt steps is shown below:
Main program
01
Interrupt steps
02 RUN
03 STOP
04 PAUS
Developed
01
02
D050117E.ai
n Using SEBOL
Global and local variables can be used to define steps in the SFC block using SEBOL.
Enabling access to a function block from a SEBOL-written step requires global or local function-
block declaration.
TIP
Parameters cannot be specified when describing action using SEBOL. They can be specified when describing
action using a sequence table, however.
n SEBOL Variables
Global and local SEBOL variables can be used in the SFC block when a step is described using
SEBOL. The global variable can be accessed from all the SEBOL-written steps in the SFC block,
while the local variable can be accessed from only one step.
Areas are allocated to both variables and they are initialized to zero when the SFC block is
started.
The areas are released when the SFC block has been executed.
TIP
In the case of a character-string variable, the global or local variable is initialized to a null-length character string
when the SFC block is started.
l Global Variables
Global variables can be accessed from any SEBOL-written step in the SFC block. To use global
variables, they should be specified in the initial step as shown below:
D050201E.ai
TIP
Global variables cannot be accessed from any sequence table or logic chart described step.
The same local variable can be used in different steps under the same variable name, in which
case area is allocated independently for each variable.
If a step is repeatedly executed in a loop, the local variable remains unchanged throughout the
repeated execution.
l Note Points
The same name cannot be assigned to global and local variables. An error is caused if the two
has the same name.
l Global Declaration
A function block can be accessed from any SEBOL-written step when the use of that function
block is globally declared in the initial step as shown below:
D050203E.ai
D050204E.ai
l Note Points
• No error occurs when the tag name specified in global declaration is used also in local
declaration; however, an error will occur if different block codes are specified. An error also
occurs if specified global and local generic names are identical.
• Using multiple-project-tag name, the function block data of other projects can be accessed.
Since a multiple-project-tag has an @ mark in its name, it is necessary to declare an alias
for the multiple-project-tag.
Multiple-project-tag is named in the following format
TagName@ProjectID
The project ID should be defined in Multiple projects connection builder of the upper project,
with two alphanumeric characters. Up to 16 alphanumeric characters can be used for
naming a tag with project ID including the “@” mark.
When declaring a tag with project ID, since “@” mark is used, an alias should be used to
replace the original tag.
An example of declaring an alias for function block tag with project ID is shown below:
block PID FIC100
block PID TAG001 alias TIC100@P1
FIC100.CSV = TAG001.MV
SEE
ALSO For the details about calling up multiple-project tag name, see the following:
“n Ideatical Tag Names” in M7.2.1, “Operation and Motoring Multiple Projects”
IMPORTANT
For the tag name used in the arithmetic expression of a SEBOL or a general-purpose calculation
block, if it is started with a numeric character or if it contains a [-] (hyphen) character, an error will
occur during compilation.
Thus, it is necessary to use the alias statement to declare the tag with a new name, which started
with an alphabet character and contains no hyphen, and then use the alias.
n Branching Range
The destination for branching is restricted to be within the step in which branching is specified
using a “goto” statement, for example. Processing cannot be branched to other steps using
“error” and “errorsub” specifications, “goto” statements, etc.
SEE
ALSO For the details about “error” and “errorsub” specifications, see the following:
H1.13, “Error Handling”
For the details about “goto” statement, see the following:
H1.8.7, “goto”
n “quit” Statement
The “quit” statement terminates the action being executed.
When this statement is executed as a step action, the transition condition defined succeeding the
step will then be evaluated.
n #define
A name can be defined using “#define” only in the initial step. The defined name can then be
used in all SEBOL-written steps.
SEE
ALSO For the details about “#define”, see the following:
“n #define Statement” in H1.1.8,“Substitution of Character String”
n Order of Description
The initial step action should be described in order of global variables, local variables, and
execution statements as shown below; an error will be caused otherwise.
The initial step action can be described using up to 2000 lines. No parameters are used in
describing the action.
The initial step is completed when the last described execution statement or a “quit” statement
has been executed.
n Example of Description
The following is an example of initial-step description:
n Use of “#define”
Names can be defined using “#define” anywhere within the initial step.
The defined names can then be used in any SEBOL-written step and transition condition.
SEE
ALSO For the details of “#define”, see the following:
“n #define Statement” in H1.1.8,“Substitution of Character String”
n Use of “#include”
“#include” can be specified for file-inclusion anywhere within the initial step.
The order of all statements in the included file, however, must be in conformity with that of the
initial step. Otherwise, an error is caused for the statements in the included file.
SEE
ALSO For the details of “#include”, see the following:
“n #include” in H1.1.9, “Include File”
n Use of “#IMPLICIT”
A “#IMPLICIT” command can be used in the initial step. The command is then valid within the
entire SFC block.
This command cannot be entered in any other steps.
SEE
ALSO For the details of “#IMPLICIT”, see the following:
“n #IMPLICIT Instruction” in H1.1.7, “Implicit Declarations of Variables”
n Order of Description
The SEBOL step action should be described in order of variables and execution statements as
shown below; an error will be caused otherwise.
The SEBOL step action can be described using up to 2000 lines. No parameters are used in
describing the action.
The step is completed when the last described execution statement or a “quit” statement has
been executed.
n Example of Description
The following is an example of SEBOL-step description:
!local variable declaration
block PVI LI303
integer ierr
n Note Points
#define, #include, and #IMPLICIT command cannot be used with SEBOL steps. These
commands can be used only by the initial step. However, the name defined by means of
“#define” in the initial step can be used.
n Order of Description
The SEBOL oneshot-step action should be described in order of variables and execution
statements as shown below; an error will be caused otherwise.
No parameters are used in describing the action. The step is completed when the last described
execution statement or a “quit” statement has been executed.
n Example of Description
The following is an example of SEBOL oneshot-step description:
!local variable declaration
block %SW SW301, SW302
n Execution
The SEBOL oneshot-step action will be executed without any break once it is activated. Its
processing time will not be shared by any other SFC program. No interrupt signals nor status
change instructions are allowed to interrupt the execution until it is completed.
n Note Points
The SEBOL oneshot-step action can be continuously executed up to 20 lines. If a “for” statement
is used, for example, and one line is repeatedly executed, each repetition is counted as one line.
If execution is attempted exceeding 20 lines, an execution error is caused and the successive
action will be executed not as oneshot but normal step action.
The following statements should not be used in order to avoid any execution error:
• Statement for accessing function-block data at another control station.
• “signal” statement for sending signals to another control station.
• “qsigcancel” and “qsigmove” statements for manipulating an SFC block at another control
station.
Also the following statements should not be used in order to avoid any error:
• “drive” statement, “seqstable” and “logicchart” statements with “drivewait” specification.
• “wend,” “until,” and “next” statements without “@.”
• “wait until,” “delay,” and “delaycycle” statements.
• “dialogue” statement.
• “nopreempt begin” and “nopreempt end” statements.
• “semlock wait” statement.
• “wait for qsignal” statement.
• “ssdtwrite” and “ssdtwritebit” statements.
#define, #include, and #IMPLICIT command cannot be used with SEBOL oneshot steps.
These commands can be used only by the initial step. However, the name defined by means of
“#define” in the initial step can be used.
n Tag Name
The sequence table needs to be tagged so that its tangle can be used as the step name. The
specified sequence table can be shared by different steps.
The tag names that can be specified for the step execution name are only the sequence tables in
the same control station.
n Step Name
The step name can be specified for the sequence table step as described below:
Table Step Name Specification
Specification Action
No specification (default) The first step is executed.
An execution step name
The specified step is executed.
specified using up to 2 characters.
Continuation is specified. The current step is executed (*1)
D050301E.ai
*1: The current step is retained in sequence table data item PV.
In the case of sequence table one-shot steps, the specified step and step 00 are oneshot-
executed.
In the case of sequence table steps, the sequence table is periodically executed at its own timing
after the specified step and step 00 have been oneshot-executed. Step 00 is executed in every
scan period. Specifying a step name for a non-step sequence table is ignored.
SEE
ALSO For the details of sequence tables, see the following:
D3.2, “Sequence Table Block (ST16, ST16E)”
x: Stored.
Blank: Not stored.
These variables will be ignored if their names are not specified in step action.
SEE
ALSO For the details of sequence tables, see the following:
D3.2, “Sequence Table Block (ST16, ST16E)”
n Step Execution
The sequence table step is oneshot-executed when its action is activated, and the sequence
table block mode changes to AUT at the same time. The sequence table will then be periodically
executed according to its own action timing.
The sequence table step action is terminated when an SFC/SEBOL return event message
(%RE) is received from the sequence table. The sequence table block mode then changes from
AUT to MAN.
n Step Execution
The sequence table one-shot step is oneshot-executed when its action is activated. The
sequence table block mode remains unchanged.
n Tag Name
The logic chart needs to be tagged so that its tangle can be used as the step name.
The specified logic chart can be shared by different steps.
The tag names that can be specified for the step execution name are only the logic chart in the
same control station.
l Variable Name
The names of both variables can be specified in one of the following four different manners:
• Present SFC-block data item
When storing data as a data item in the present SFC block, specify the variable name as
follows:
%.<data item>
• Global variable
When storing data in a global variable, specify the name of the simple variable declared
using “global long” in the initial step.
<global variable>
• Tag name-specified function-block data item
When storing data as a data item in the tag name-specified function block, specify the
variable name as follows:
<tag name>.<data item>
In this case, the tag name should have been declared using “global block” in the initial step.
• Global generic name-specified function-block data item
When storing data as a data item in the global generic name-specified function block,
specify the variable name as follows:
<global variable>.<data item>
The global generic name, which must be a simple variable, should be declared using “global
block” in the initial step.
SEE
ALSO For the details of logic chart, see the following:
D3.3, “Logic Chart Block (LC64)”
n Step Execution
The logic chart step is one-shot-executed when its step is activated, and the logic chart block
mode changes to AUT at the same time. The sequence table will then be periodically executed
according to its own action timing.
The logic chart step action is terminated when an SFC/SEBOL return event message (%RE) is
received from the logic chart. The logic chart block mode then changes from AUT to MAN.
n Step Execution
The logic chart one-shot step is one-shot-executed when the step is activated. The logic chart
block mode remains unchanged.
n Description
Conditional expressions is SEBOL statement are used to define conditions for the transition of
steps.
The same manner of describing the transition condition applies to all types of steps.
The condition is satisfied when the result of the conditional expression is not zero and not satisfied
when it is zero. When equivalence operators (==, <>) or relational operators (>=, <=, >, <) are
used, the condition is satisfied when the relation is true (1) and not satisfied when it is false (0).
For a selective sequence, up to eight transition conditions can be defined. It is not necessary to
describe transition condition since the step transition is unconditional. Moreover, the maximum
number of transitions including the unconditional transitions is 99 per FCS.
n Variables
The following variables can be used in the conditional expressions for transition:
Table Variables Applicable to Conditional Expressions
Variable Remarks
Constant -
Global variable -
Local variable Declared in step action.
Global tag name Tag name declared using “global block.”
Tag name declared using “block” in SEBOL-step action.
Tag name Sequence table tag name in sequence table step action.
Logic chart tag name in logic chart step action.
Global generic name Generic name declared using “global genname.”
Local generic name Declared using “genname” in step action.
Declared using “global unit genname,” or declared using
Unit generic name
“unit genname” in step action.
Replaced by tag name of action-written sequence
%$
table/logic chart.
D050501E.ai
• Global variables, step local variables, and constants can be used in array subscript
expressions for array-element variables.
• SEBOL built-in functions can be used in conditional expressions.
• “%$” entered in transition condition is replaced by the tag name of the sequence table/logic
chart which defines action. The conditional expression %$.MODE==“AUT” will be changed
to ST0101.MODE==“AUT” if the sequence table tag name is ST0101, for example.
• If the sequence table/logic chart is specified using a unit generic name, “%$” cannot
be replaced by the generic name. The generic name must be written in the conditional
expression in this case.
n SFC Programs
An SFC program that executes normal processing is the main program and an SFC program that
interrupts the main program for execution is the interrupt program.
SFC-written programs are classified according to their function and behavior.
l Main Programs
• Queue signal processing
This process is executed according to the queue signal contents in the SFC main program,
which executes normal processing.
• Exit of the SFC block
• Pause of the SFC block
• Reference of the current step.
• Change of the step to be executed
• Alarm processing of the SFC block
l Interrupt Programs
• Status change
This program is run together with SFC block status change. Separated programs before/
after status changes may be implemented.
• Interrupt signal
Interrupt signal interrupts the SFC main program to run the programs requested by the
interrupt signal.
• Error processing
Error occurrence when SFC block is running may trigger an interrupt program for error
processing.
n Interrupt Programs
Interrupt programs must be described separately for every different purpose.
When the block status has been changed and if it is necessary to pause or terminate the process,
an interrupt program or programs can be executed as required. For example, the heater needs to
be stopped if the process is to be terminated during heating, or the valve needs to be closed if the
process is to be paused during tank charging.
An example of executing an interrupt program for pausing from the main program, which contains
SIGNAL 1, RUN, STOP, and PAUS interrupt steps is shown below:
Main program
Interrupt steps
01 SIGNAL 1
02 RUN
03 STOP
04 PAUS
Developed
01
02
D050601E.ai
Although the first step of the interrupt program is shown in a double square in the above example,
it does not mean that the step is the initial step.
Global variables cannot be declared using “global integer” nor “global block” for the first step of
an interrupt program. They can be read or written, however.
The following steps can be used in these interrupt programs as well as the main program:
Table Steps Applicable to SFC Programs
Program
Step Main Status change Status change Interrupt signal Error
program pre-processing post-processing processing processing
Initial step x
SEBOL step x x x x
SEBOL one-shot step x x x x x
Sequence table step x x x x
Sequence table
x x x x x
one-shot step
Logic chart step x x x x
Logic chart
x x x x x
one-shot step
Interrupt step x
D050602E.ai
Note: Transition can be defined for programs other than the status change pre-processing program.
x: Applicable
Blank: Not applicable
SEE
ALSO For more information, see the following:
D5.6.2, “Status Change Processing”
SEE
ALSO For more information, see the following:
D5.6.3, “Interrupt Signal Processing”
SEE
ALSO For more information, see the following:
D5.6.4, “Error Processing”
n Signal Declaration
Queue signals to be sent to the SFC block must be so declared in the initial step using the “queue
signal” statement.
D050603E.ai
• The signal is ignored and error is returned to the source if an undeclared signal or any non-
defined interrupt signal is received.
• The “queue signal” statement can be used wherever declaration is allowed in the initial step
(global and local variable declarations).
• The “queue signal” statement cannot be used in steps other than the initial step.
• An error is caused if the same signal name is declared in duplication.
• An error is also caused if the same signal name as an interrupt signal name is declared.
n Signal Processing
The SFC block fetches the first signal in the queue to process the signal in the main program.
When the SFC block in the RUN or PAUS status receives a queue signal, it is stored in the signal
queue. If the block is in a status other than RUN and PAUS, the received signal is ignored and
error is returned to the signal source.
The SFC block signal queue may be cancelled as required.
Queue signals are transmitted using the “signal” statement and pending signals can be
manipulated using “qsigcancel” and “qsigmove” statements.
SEE
ALSO • For the details about queue signal transmission, see the following:
H1.12.1, “Signal Transmission Processing”
• For the details about pending signal manipulation, see the following:
H1.12.2, “Processing of Queue Signal”
• Format used to wait for signal-receiving or until the expressed condition is satisfied:
wait for qsignal<signal name-storing variable>(<expression>)
[;<error variable>][; error <label>[,<error identifier>]]
errorsub
<signal name-storing variable>: Character-string local variable to store received
signal names.
<error variable>: Local variable for code-setting when error is caused
(0 when no error is caused).
D050604E.ai
TIP
• Status change pre-processing or post-processing, or interrupt signal processing will be executed while the
waiting for the receiving of queue signals.
• If time cannot be shared sufficiently for the once-every-scan-period check for received signals, the check
will be made no more than once every few scan periods.
TIP
It is recommended to use just one “wait for qsignal” statement, in either one of the two formats, in the SFC block,
and program so that execution returns to the statement for successive signal processing upon completion of the
current signal processing.
SEE
ALSO For the details of error processing, see the following:
H1.13, “Error Handling”
creadpara(<parameter number>)
lreadpara(<parameter number>)
dreadpara(<parameter number>)
D050605E.ai
char*16 signame
J01
wait for qsignal signame
02 Waiting for signal
! Signal name set at signame.
......
J01 J01
D050606E.ai
The “wait for qsignal” statement is executed in step 2 and a signal is fetched from the queue.
The signal name is then evaluated according to the transition condition defined following step 2,
selecting either SG1 or SG2 for processing.
char*16 signame
J01
wait for qsignal signame (<expression>)
02 Waiting for signal
! Signal name set at signame.
......
The “wait for qsignal” statement is executed in step 2, determining to wait for a signal or to
calculate the expression. The result of the expression is checked for the first transition condition
defined following Step 2. Either SG1 or SG2 is selected for processing according to the other two
transition conditions.
n Referencing
▼ Reference Signal Parameter Numbers
User-defined data item QUEUE is used to reference the queue of signals. QUEUE is defined as
a one-dimensional CHR16 character-string array and each of its elements can be accessed as a
char*16 character string in SEBOL. The name of the signal stored in the queue or one of signal
parameters is set at a QUEUE element. The data of signals pending to be processed are set in
the QUEUE array but the data of the signal being processed is not.
l QUEUE Definition
Data item QUEUE can be defined for the purpose of referencing the queue of signals as follows:
• Define a CHR16 one-dimensional array named QUEUE. No data type other than character
strings nor simple variables cannot be used.
• Specify 1 to 32 array elements. Any elements specified exceeding 32 are ignored.
• Do not define QUEUE if there is no need for referencing the queue of signals.
Use the Function Block Detail Builder to specify the use of signal names and parameter numbers
for QUEUE array elements. The parameter numbers specified are then used as reference signal
parameter numbers. The signal name is set if the reference signal parameter number is 0; if
the number is 1 to 8, the signal parameter of that number is set at the QUEUE element. When
numeric signal parameters are used, they are converted to character strings and set at QUEUE
elements starting from the first element.
l Example of Referencing
When the queue has four signals, for example, referencing can be made as described below:
If the reference signal parameter number is 1, the contents of QUEUE array elements are as
follows:
Queue[1] = "SUMMER"
Queue[2] = "AUTUMN"
Queue[3] = "WINTER"
Queue[4] = "SPRING"
Queue[5] = " "
.....
Queue[10] = " "
QUEUE[5] to QUEUE[10] are null-length character strings since there are no signals.
No
Is the command viable?
Yes
Executed as the
Status-change pre-process command is received.
No
Is the change feasible?
Yes
Status-change post-process
End
D050609E.ai
As the SFC block receives a status change command, the feasibility of the commanded change
and the interrupt processes are checked in relation to the current status. The conditions for block
status changes are shown below:
Table Feasibility of Block Status Change
Status commanded for change
Current status
STOP RUN PAUS RSET ABRT
STOP (*1) xx xx
RUN xx (*1) xx x
PAUS xx xx (*1) x
ABRT x (*1)
D050610E.ai
IMPORTANT
The command to change the status to ABRT is a command to forcibly terminate the SFC block
and should not be used during normal operation. It may be used if the SFC block is locked due to
application error causing infinite looping during status-change post-processing, and so forth.
The change-to-ABRT command is different from other status change commands as follows:
• Pre- and post-processing cannot be defined for the command.
• The command can be received even while another status change command is being post-
processed.
l Pre-Processing
The feasibility of status change is determined in the pre-process. If the change is denied, the
source of the command is notified of the error. The status is changed as commanded if the pre-
process is not defined.
l Status Changing
The status of the SFC block is changed as commanded when the change is justified both in the
initial check in relation to the current status and the check performed in pre-processing.
l Post-Processing
Status-change post-processing is executed in accordance with the execution of the SFC block
itself, not with the receiving of the status change command.
Any additional status change command is prohibited until the current post-process is completed;
the command will be ignored if received, causing error.
At the SEBOL and sequence table one-shot steps, the feasibility of status change can be
determined. With the logic chart one-shot step, the status can be changed. If the pre-process is
not defined, the status can also be changed. At the pre-process, the status and mode of the pre-
process-described SFC block or other SFC blocks cannot be changed.
The SEBOL oneshot step in which the pre-process is defined has the following additional
restrictions over the normal steps:
• “exit” statement cannot be used. Error is caused if used.
• “signal” statement cannot be used. Error is caused if used.
• “qsigcancel” and “qsigmove” statements cannot be used. Error is caused if used.
• “isigmask” and “isigunmask” statements cannot be used. Error is caused if used.
• “semlock”: and “semunlock” statements cannot be used. Error is caused if used.
• In the case of fatal error, only a SEBOL error message is output and the SFC block is not
terminated. Any status change will be denied.
• When an execution error is detected, no branching is made to common error processing
and a SEBOL error message is output. Any status change will be denied.
• The block status and mode of the present SFC block or any other SFC block cannot be
changed.
In the pre-process, no variable can be specified to receive the condition testing result, any
specified variable is ignored. The block status and mode cannot be changed in pre-processing
for the SFC block in which the pre-process is defined or for any other SFC block.
IMPORTANT
The post-process should not be kept suspended by means of a selective sequence transition
condition, or a “wait until,” “compare,” or “dialogue” statement. If the process is suspended, the
block status cannot then be changed unless the program is forcibly terminated using a command
to change to ABRT.
The execution of the post-process defined in a SEBOL step can be controlled using “quit” and
“return” statements:
• Using “quit” statement
Executing this statement in a step sequence terminates the current action and executes
the next step. Executing it in a selective sequence starts evaluation of transition conditions.
Executing the statement in the last post-process step terminates the process.
• Using “return” statement
Executing this statement terminates the post-process without executing the remaining
steps. Any operand specified in this statement will be ignored.
The BSTS data is referenced to justify the change of block status for the pre-process. The
PREBSTS data is referenced to justify the status change for the post-process. Two cases of
referencing BSTS and PREBSTS are shown below:
• In the first case, the current status of RUN is changed to STOP as commanded.
• In the second case, the current status of PAUS is changed to STOP as commanded.
Table BSTS & PREBSTS
RUN → STOP PAUS → STOP
Process being executed
BSTS PREBSTS BSTS PREBSTS
Status-change pre-process RUN (*1) PAUS (*1)
Status-change
STOP RUN STOP PAUS
post-process
D050613E.ai
If the same name is used both in the initial-step definition and at the interrupt-signal entrance, an
error is caused.
Interrupt signals can be received only when the SFC block is in the RUN or PAUS status, any
signal transmitted is ignored otherwise and an error is returned to the source.
Interrupt signals received during the course of the PAUS status are stored in a queue and will be
processed when the status is changed to RUN restarting the block.
D050616E.ai
Interrupt signals can be processed only when the SFC block is in the RUN status. The signal
processing is canceled if the status is changed to PAUS during the processing and will not be
resumed when the status is returned to RUN.
If another interrupt signal is received while one is being processed, the received signal is queued
and will be processed as soon as the current processing is completed. The maximum number
of interrupt signals which can be queued can be defined for each SFC block using the Function
Block Detail Builder. The number is 5 at default and can be defined up to 99. The defined
capacity includes the signal currently being processed. If a signal is received when the queue is
full, the signal is ignored causing an error.
The execution of the interrupt signal process defined in a SEBOL step can be controlled using
“quit” and “return” statements:
• Using “quit” statement
Executing this statement terminates the current step action and executes the next step.
Executing it in a selective sequence starts evaluation of transition conditions. Executing the
statement in the last step of interrupt signal processing terminates the process.
• Using “return” statement
Executing this statement terminates the process without executing the remaining steps. Any
operand specified in this statement will be ignored.
creadpara(<parameter number>)
lreadpara(<parameter number>)
dreadpara(<parameter number>)
D050617E.ai
SEE
ALSO For the details of common error processing, see the following:
H1.13, “Error Handling”
The execution of the error processing defined in a SEBOL step can be controlled using “quit” and
“return” statements:
• Using “quit” statement
Executing this statement in a step sequence terminates the current step action and
executes the next step. Executing it in a selective sequence starts evaluation of transition
conditions. Executing the statement in the last error processing step terminates the process.
• Using “return” statement
Executing this statement terminates error processing without executing the remaining steps.
Any operand specified in this statement will be ignored.
The programs which permit terminating the block execution are as follows:
Table Programs Permitted of Terminating Block Execution
Program “exit” statement BSTS change
Main program x x
Status-change pre-process - -
Status-change post-process x -
Interrupt signal processing x x
Common error processing x (*1)
D050618E.ai
x: Definable.
–: Not definable.
*1: The feasibility of block status change during error processing is determined by the location where the error involved has been
caused. If the error is in the main program, the status can be changed. If the error is in the status-change post-process, the status
cannot be changed.
exit[<expression>]
D050619E.ai
The block is terminated when the statement is executed and the block status changes to STOP.
The status change pre-/post-processes are not executed.
Status-change pre- and post-processes can be executed when changing the block status to
STOP.
n Pausing
The four conditions in which the SFC block is paused are described below, the paused block can
be restarted by commanding a status change to RUN in any of these conditions:
n Pause-Interrupted Actions
Actions when the SFC block, for which the PAUS position is defined as the current line, is paused
during execution of a SEBOL step are described.
TIP
For the SFC block with the PAUS position defined as the current line, “ckstep” returns the same data when the
block was paused by a PAUS command and restarted without changing STEPNO. Even after the block has been
restarted, “ckstep” returns the same data as that returned before the pause.
SEE
ALSO For the changing of data item STEPNO, see the following.
D5.6.8, “Changing Current Step”
n Restarting Actions
Actions when the SFC block is restarted with its status changed to RUN are described:
n Procedure
Data item STEPNO is used to reference the step number of the step being executed. As
the execution of the main program advances, the step number of the current step is sent to
STEPNO.
TIP
Data item PHASE is used to hold the name of the current process, which can also be referenced to check the
progress of the block execution. When using PHASE, however, every phase in program steps should be uniquely
named.
n Procedure
The number of the current step can be changed by changing the step number set in main
program data item STEPNO when the block is the PAUS status. The use of STEPNO, however,
is only applicable to main program steps but not to interrupt program steps.
n Note Points
The number of the current step cannot be changed in the following cases:
• When status-change pre- or post-processing is being executed, even if the block is in the
PAUS status.
• Step numbers in the present SFC block cannot be changed, doing so causes error when
executed.
SEE
ALSO • For more information about AF, AOFS and AFLS, see the following:
C5.13, “Deactive Alarm Detection”
C5.14, “Alarm Inhibition (Alarm OFF)”
C5.15.1, “Alarm Display Flashing Actions”
• For more information about changing and referencing alarm data items, see the following:
H1.5.10, “Referencing Alarm Status”
H1. 5.12, “Referencing Alarm Status Individually”
• For more information about alarm status character strings, see the following:
“n User-Defined Alarm Status Character String” in Chapter E10.4, “Alarm Status Character String and
Alarm Processing”
The alarm status is initialized to the normal status (NR) when the SFC block is executed. When
the execution of the block is terminated with any process alarm caused, the normal state is
recovered when the block is executed again. This is the same when the block mode is changed
from O/S to AUT.
SEE
ALSO For more information, see the following:
C5.15.2, “Repeated Warning Alarm”
n Block Manipulation
SFC blocks can be changed, deleted, or added in the following cases:
• SFC blocks can be changed or deleted when they are stopped.
• SFC blocks can be added as long as additions are within the maximum number of function
blocks defined for each control station.
n Order of Execution
SFC blocks are repeatedly executed in the basic scan period according to the following rules:
• SFC blocks are executed in the idle time available after the execution of all other basic
control functions has been completed, which include regulatory control, sequence control,
calculation, and faceplate blocks. The rule also applies when both basic control functions
and SFC blocks reside in the same control drawing.
• SFC blocks are infinitely executed within one scan period during the time available after the
execution of other basic control functions. In the next scan period, execution is resumed
from where it was interrupted last.
• SFC blocks are not executed and terminated if sufficient time is not available after the
execution of other basic control functions. In the next scan period, execution is resumed
from where it was interrupted last.
An example of two control drawings each defined with three SFC blocks is shown below. SFC
blocks are assigned with time for execution in the numbered order:
Control drawing 1
1 2 3
Control drawing 2
4 5 6
D050622E.ai
After the last SFC block 6 in control drawing 2 was allocated with execution time, the order
returns to the top SFC block 1 in control drawing 1 and execution time is reallocated. Execution
time is not allocated to any SFC blocks which are not being executed.
Basic type - - x
None x x -
Trend
PV, SV, MV - - x
D050623E.ai
The instrument faceplates of the three block models are shown below:
60.0
PAUSE PAUSE PAUSE
40.0
20.0
x: Available
x: Available
–: Not available
x: Accessible
–: Not available
*1: Accessible by connecting sequences.
*2: See D5.6.8, “Changing Current Step,” for restrictions.
SEE
ALSO For details on setting step numbers, see the following:
D5.6.8, “Changing Current Step”
x: Accessible
–: Not available
TIP
One exception with interrupt programs is that the phase name of status-change pre-processing is not set at
IPHASE.
When interrupt programs of different levels are being executed simultaneously, only the phase
name of the highest-level interrupt program is set at IPHASE. A null-length character string (“”) is
set at IPHASE for a regular-level interrupt program.
Default STEPNO, PHASE, and IPHASE are as follows:
Table Default STEPNO, PHASE, & IPHASE
Data item Name Builder default At initialization At SFC block start
STEPNO Current step number 0 Step number of initial step
Previous state
PHASE Phase name “” (*1) retained Phase name of initial step
IPHASE Interrupt program phase name “” (*1) “” (*1)
D050629E.ai
SEE
ALSO For details, see the following:
D5.6.9, “SFC Block Alarm Processing”
Simple variables and one- and two-dimensional arrays can be used with every type. Up to 999
array elements can be used and up to 10000 elements can be used for arrays 1 and 2 in total.
The data status-attached data type is not available.
Mainly, the following settings may be defined for a user defined data item of SFC block.
• Data item name
• Data type
• Array element 1
• Array element 2
• Data item comment
SEE
ALSO For the details of queue signals, see the following:
D5.6.1, “Queue Signal Processing”
The actions of SFC block in each block mode are shown below:
• AUT (automatic) mode:
Every step is successively executed.
• SEMI (semi-automatic) mode:
The block stops at the start of each step, and the step is executed at a command from the
operation and monitoring function, etc. The mode can be enabled or disabled for each
block.
• O/S (out-of-service) mode:
The block cannot be executed. Online maintenance operation is performed in this mode.
An example of changing the mode of the SFC block tag-named SFC001 using a SEBOL program
is shown below:
......
SFC001.MODE = "SEMI"
......
SFC001.MODE = "AUT"
......
PAUS
PAUS
PAUS ABRT
(*3) (*1)
STOP RUN
RUN ABRT
STOP RUN ABRT
STOP (*1)
(*2)
RSET
*1: Status changes also in case of fatal or internal error, or insufficient memory.
*2: Status changes also when execution is terminated by the “exit” or “end” statement.
*3: Status changes at the start of a step when the block mode is SEMI.
D050632E.ai
• The RUN command starts execution of the SFC block in the STOP status, which then
changes to RUN when started.
• The PAUS command suspends execution of the SFC block in the STOP status at the start
of the initial step, the status then changes to PAUS.
• The stopping position when the status is changed to PAUS during execution of a SEBOL
step action can be specified either at the start of the step or the current program line.
• In the SEMI mode, the block status changes from RUN to PAUS at the start of every step.
The step can then be executed upon receiving the RUN command from the operation and
monitoring function, etc.
An example of changing the status of the SFC block tag-named SFC001 using a SEBOL
program is shown below, in which a status change command character string is entered on the
right-hand side of each assignment statement:
.....
SFC001.BSTS = "RUN"
......
SFC001.BSTS = "PAUS"
......
SFC001.BSTS = "STOP"
......
The <block model> referred by “block” statement, or etc., are the model name of unit function
blocks displayed in the Function Block Detail Builder.
The following three models of unit are supported.
• _UTSW: Non-Resident Unit Instrument with Three-Position Switch
• _UTPB: Non-Resident Unit Instrument with Five-Pushbutton Switch
• _UTAS: Analog Non-Resident Unit Instrument
SEE
ALSO For the details of unit instruments, see the following:
D6.2, “Unit Instrument”
D050633E.ai
It is required to designate a <tag name> when unit instrument transmitting a signal. If the unit tag
name is not specified, the signal is transmitted to the present unit.
The “signal” statement is normally terminated when the signal has been received by operations
of the destination unit. Error is caused if none of unit operations receive the signal.
TIP
The “signal” statement is used for transmitting both queue and interrupt signals.
SEE
ALSO For the details of operations, see the following:
D6.8, “Operations”