Timing functions. Schneider Electric PL7 Micro/Junior/Pro - Detailed
Advertentie
Advertentie
2.11
Timing functions
Introduction
Aim of this subsection
What's in this
Section?
This sub-section describes PL7 language timing functions
This Section contains the following Maps:
Topic
Timing functions
Engagement timing (on delay) function
Release timing (off delay) function
Pulse timer function
Rectangular signal generator function
Advanced instructions
Page
TLX DR PL7 xxE
249
Advanced instructions
Timing functions
General As opposed to the predefined function blocks, these timing functions are not limited l l l l in number and can be used in the DFB function block code.
4 timing functions are available.
FTON : Engagement timing (on delay).
FTOF
FTP
: Release timing (off delay).
: Pulse timing: Timing
FPULSOR : rectangular signal: Timing
250
TLX DR PL7 xxE
Advanced instructions
Engagement timing (on delay) function
General
Structure
Syntax
This function is used to manage the delays on engagement. This delay is programmable
Ladder language
%I1.2
OPERATE
FTON(%I3.0,1000,%Q4.0,%MW2,%MD8)
Instruction list language
LD I1.2
[FTON(%I3.0,1000,%Q4.0,%MW2,%MD8)]
Structured text language
IF %I1.2 THEN
FTON(%I3.0,1000,%Q4.0,%MW2,%MD8) ;
END_IF;
FTON engagement timing function operators
Syntax
FTON (EN,PT,Q,ET,PRIV)
FTON engagement timing function operands
Type
Words which can be indexed
Words which can not be indexed
EN
-
-
Double words which can be indexed
Bits
-
%I,%Q,%M,
%S,%BLK,
%*:Xk,%X
PT
%MW,%KW,
%Xi.T
Q
-
%IW,%QW,
%SW,%NW,
Immediate value,
Numeric expression
-
-
%I,%Q,%M
%S,%*:Xk,
%X
ET
%MW
PRIV
-
%IW,%QW -
-
-
%MD
-
TLX DR PL7 xxE
251
Advanced instructions
Characteristics FTON engagement timing function characteristics
Characteristic
Input "Activation"
Preset value
Output "Timer"
Current value
Calculation variable
Address Value
EN The timing starts on rising edge
PT Input word which determines the timing length (in one hundredths of a second). It is used to define a maximum duration of 5 min and 27 s to the nearest
10 ms. (1)
Q
ET
PRIV
Output set to 1 on time-out.
Output word which increases from 0 to PT on completion of the timer cycle.
Double word for internal latching. An application variable exclusively reserved for this is associated with this double word.
Note: (1) a modification of this word is taken into account during the timing.
Operation
Step
1
2
3
FTON engagement timing function operation description
Action
Rising edge on the EN input
The current value has reached
PT the EN input is clear
Description
The timer is started: its current value ET increases from 0 to PT
(hundredths of a second).
The output bit Q switches to 1, then stays at 1 whilst the input EN is at 1.
The timer is stopped even if it was still running:
ET takes a 0 value.
Illustration
EN
Q
PT
ET
(1) (2) (3) (1) (3) (1) (2)
252
TLX DR PL7 xxE
Advanced instructions
Release timing (off delay) function
General
Structure
This function is used to manage the release delays. This delay is programmable
Ladder language
%I1.2
OPERATE
FTOF(%I3.0,1000,%Q4.0,%MW2,%MD8)
Syntax
Instruction list language
LD I1.2
[FTOF(%I3.0,1000,%Q4.0,%MW2,%MD8)]
Structured text language
IF %I1.2 THEN
FTOF(%I3.0,1000,%Q4.0,%MW2,%MD8) ;
END_IF;
FTOF Release timing function operators
Syntax
FTOF (EN,PT,Q,ET,PRIV)
FTOF Release timing function operands: identical to FTON (See Engagement
timing (on delay) function, p. 251)
TLX DR PL7 xxE
253
Advanced instructions
Characteristics FTOF Release timing function characteristics
Characteristic
Input "Activation"
Preset value
Output "Timer"
Current value
Calculation variable
Address Value
EN The timing starts on falling edge
PT Input word which determines the timing length (in one hundredths of a second). It is used to define a maximum duration of 5 min and 27 s with a 10 ms precision. (1)
Q
ET
PRIV
Output set to 1 on rising edge of EN and set to 0 on time-out.
Output word which increases from 0 to PT on completion of the timer cycle.
Double word for internal latching. An application variable exclusively reserved for this is associated with this double word.
Note: (1) a modification of this word is taken into account during the timing.
Operation
Step
1
2
3
FTOF release timing function operation description
Action Description Illustration
Rising edge on the EN input
On falling edge of
EN input
When the current value has reached PT.
The current ET value takes a 0 value
(even if the timer is still running) and the output bit Q switches to 1 (or remains at
1)
EN the timer is started, then the current value increases from 0 to PT
(hundredths of a second).
Q
Output bit Q falls back to 0.
PT
ET
1 2 3 1 2 1 2 3
254
TLX DR PL7 xxE
Advanced instructions
Pulse timer function
General
Structure
This function is used to generate a pulse of precise duration. This duration can be programmed.
Ladder language
%I1.2
OPERATE
FTP(%I3.0,1000,%Q4.0,%MW2,%MD8)
Syntax
Instruction list language
LD I1.2
[FTP(%I3.0,1000,%Q4.0,%MW2,%MD8)]
Structured text language
IF %I1.2 THEN
FTP(%I3.0,1000,%Q4.0,%MW2,%MD8) ;
END_IF;
FTP pulse timer function operators
Syntax
FTP(EN,PT,Q,ET,PRIV)
FTP pulse timer function operands: identical to FTON (See Engagement timing (on
TLX DR PL7 xxE
255
Advanced instructions
Characteristics FTP pulse timer function characteristics
Characteristic
Input "Activation"
Preset value
Output "Timer"
Current value
Calculation variable
Address Value
EN The timing starts on falling edge
PT Input word which determines the timing length (in one hundredths of a second). It is used to define a maximum duration of 5 min and 27 s with a 10 ms precision. (1)
Q
ET
PRIV
Output set to 1 on time-out.
Output word which increases from 0 to PT on completion of the timer cycle.
Double word for internal latching. An application variable exclusively reserved for this is associated with this double word.
Note: (1) a modification of this word is taken into account during the timing.
Operation
Step
1
2
3
FTP pulse timer function operating description
Action Description Illustration
Rising edge on the EN input
When the current value has reached PT.
The timer is started (if it is not already on) and the current ET value advances from 0 to PT (hundredths of a second).
Output bit Q switches to 1
EN
Output bit Q falls back to 0.
Q
The EN input and output Q are at 0
PT takes a 0 value.
PT
ET
1 2 3 1 3 1 2
This monostable cannot be reactivated.
256
TLX DR PL7 xxE
Advanced instructions
Rectangular signal generator function
General
Structure l l
This function is for generating a periodic rectangular signal, the set slot size and clear slot size of which can be varied by the program using 2 timers:
TON : rise timing (for the set slot).
TOFF : fall back timing (for the clear slot).
Ladder language
OPERATE
FPULSOR(%I3.0,500,200,%Q4.0,%MW2,%MD8)
Instruction list language
LD TRUE
[FPULSOR(%I3.0,500,200,%Q4.0,%MW2,%MD8)]
Structured text language
IF %I1.2 THEN
FPULSOR(%I3.0,500,200,%Q4.0,%MW2,%MD8) ;
END_IF;
TLX DR PL7 xxE
257
Advanced instructions
Syntax FPULSOR rectangular signal generator function operators
Syntax
FPULSOR (EN,TON,TOFF,Q,ET,PRIV)
FPULSOR rectangular signal generator function operands
Type EN
Words which can be indexed
-
Words which can not be indexed
-
Double words which can be indexed
-
Bits %BLK,%*:Xk,
%X
TON,TOFF
%MW,%KW,
%Xi.T
-
-
%I,%Q,%M,
%S
Q
-
-
-
ET
%MW
%IW,%QW
-
%S,%*:Xk,%X %I,%Q,%M
PRIV
-
-
%MD
-
Characteristics FPULSOR rectangular signal generator function characteristics
Characteristic
Input "Activation"
Preset value (slot set)
Preset value (slot clear)
Address Value
EN The rectangular signal generation starts on rising edge
TON
TOFF
The input word determining the period (in hundredths of a second) of the set slot period. It is used to set a maximum duration of 5 min and 27 s to the nearest
10 ms. (1)
The input word determining the period (in hundredths of a second) of the clear slot period. It is used to set a maximum duration of 5 min and 27 s to the nearest
10 ms. (1)
Rectangular signal output
Current value
Q
ET
Output slot clear on the TOFF period, set on the TON period.
Output word which increases from 0 to TON+TOFF on completion of the timer cycle.
258
TLX DR PL7 xxE
Characteristic
Calculation variable
Advanced instructions
Address Value
PRIV Double word for internal latching. An application variable exclusively reserved for this is associated with this double word.
Note: (1) a modification of these words is taken into account during timing. The
TOFF+TON sum has a maximum duration of 5 min and 27 s.
Operation
Step
1
2
3
4
FPULSOR rectangular signal generator function operating description:
Action
Rising edge on the EN input
Description Illustration
The rectangular signal is generated:
(if the signal is not already on) its current ET value increases from 0 to
TON+TOFF (hundredths of a second).
EN
As long as the
TOFF timing has not elapsed
Output bit Q remains at 0.
TOFF is complete, TON is engaged
Output bit Q switches to 1 until the end of TON and the generator loops back on (2) and (3)
EN switches to 0 TON and TOFF are reset to 0, output bit Q switches to 0
Q
TON+TOFF
ET
TOFF
TON
TOFF
TON
TOFF
TLX DR PL7 xxE
259
Downloaden
Advertentie