The text of a manual · part 24 of 50
Festo Software Tools: Statement list and Ladder diagram for SF 3, FST 200 Manual, pages 231 to 240
Pages 231 to 240 of 496
The original document is the PDF (3.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Festo FPC-202
Page 231
FST 200-LDR
5. Programming in ladder diagram
5.4.1 Assignment The assignment function assigns the value of an expression to a multibit operand. The expression can be a constant or another multibit operand. The assignment function allows you to: • put multibit operands in a defined state, • save the contents of a multibit operand (e.g. to a flag word). Inserting an assignment box Activate the function Assignment LOAD TO in the Box definition window. An assignment box with the operation symbol LOAD TO is inserted in the LDR program. You can now activate the operand entry. An input field is displayed above the operation symbol. Enter the name of the operand, the value of which you wish to assign. In the field below the symbol, enter the operand to which the value is to be assigned.
When the rising edge of signal resulting from the logical operation is recognized, the value of input word IW1 is assigned to register R4.
9610a
5-53
Page 232
FST 200-LDR
5. Programming in ladder diagram
5.4.2 Timers Internal timers allow you to program switch-on and switch-off delays and other functions (for example runtime monitoring). Three operands are assigned to each timer. They indicate the status, the current run-time and the preset run-time of the timer. These options are possible: • impulse timer, • delayed startup response timer, • delayed shutdown response timer. The operands are: • Tnn for the timer status, impulse timers, • TONnn for the timer status with delayed startup response, • TOFFnn for the timer status with delayed shutdown response.
nn represents the address of the timers. 32 timers are available.
5-54
9610a
Page 233
FST 200-LDR
5. Programming in ladder diagram
Timer status The operand for the timer status shows whether the timer is active or inactive. It is a one-bit operand that can be set, reset or interrogated. If its value is 1, the timer is active. If its value is 0, the timer is stopped and/or expired. The timer status is not permanent. Tnn=0
Timer is deactivated (stopped or expired)
Tnn=1
Timer is activated (it runs out)
Timer preselection The run-time of the timer is defined by the timer preselection. The operand for the timer preselect is a permanent multibit operand. The preselection of a timer remains stored until a new timer preselection is defined for this timer. The run-time (timer preselection) is given in hundredths of a second and can be in the range of 0.00s to 655.35s. Instead of an absolute time specification in seconds, a multibit operand (e.g. IW0) can be entered. The value of this operand is automatically multiplied by the cycle time of 0.01s and the result is used as the timer preselection. The use of a constant (e.g. V100) is not possible.
9610a
5-55
Page 234
FST 200-LDR
5. Programming in ladder diagram
Timer word The timer word is a multi-bit operand and represents the current run-time of the timer. The timer word is not therefore remanent. Types of timer Delays when switching on and off with a pulse-timer can be achieved using logic circuits. For the SF 3 control block, when programming with LDR, you can use impulse timers as well as each of the 32 timers to initialise delayed startup response and delayed shutdown response. The timer is defined by specifying the timeroperand (timer status). The contents of this operand indicate whether the timer is active or inactive. Type of timer
Operand
Impulse timer
Tnn
Timer status active inactive 1 0
Timer with delayed startup response
TONnn
0
1
Timer with delayed shutdown response
TOFFnn
1
0 nn represents the address of the timer.
5-56
9610a
Page 235
FST 200-LDR
5. Programming in ladder diagram
Impulse timer With an impulse timer, an output can be activated for a preselected time using an input impulse. The impulse timer only responds to a positive edge in the condition (pulse). This is understood to mean a change in status from 0 to 1. It is started by this pulse (Tnn=1). The timer preselection (initial value) is loaded into the timer word and the timer starts to run. The timer word is decreased progressively until: • it reaches the value 0; the timer period has then elapsed (Tnn=0). • another positive edge (pulse) on the conditional part with which the timer is restarted (restart of the timer); • the timer status has been reset (Tnn=0).
9610a
5-57
Page 236
FST 200-LDR
5. Programming in ladder diagram
Status of condition 1 positive edge
0
Status of timer 1
Start of timer with a positive edge
0 Timer Status of condition Positive edge 1-level Negative edge 0-level
Response of timer timer ist started none none none
Example:
With an impulse at input I0.1, the output is activated for the period of time set on the timer preselection (10 seconds). The normally closed contact in the first current path prevents the timer from restarting if it is already active.
5-58
9610a
Page 237
FST 200-LDR
5. Programming in ladder diagram
Delayed startup response timer With this timer, outputs can be activated by a logic 1 (binary signal 1) and a time delay can be processed. The timer preselection represents the time delay. When the timer starts up, the timer status TON is not assigned status 1 until the time delay has been processed. The timer preselection is loaded continuously into the timer word whenever the conditional part is running logic 0 (binary signal 0). With logic 1 (binary signal 1), the timer is started and begins to run until: • The timer word reaches a value of 0. The timer has then elapsed (TONnn=1, TWnn=0). • The timer is reinitialised by a logic 0 (binary signal 0).
9610a
5-59
Page 238
FST 200-LDR
5. Programming in ladder diagram
Status of condition 1 0
Status of the timer 1
Start of timer
0 Timer preselection Status of condition 1-level 0-level
Response of timer The timer is initialised and started. The timer preselection is loaded into the timer word.
Example:
If I0.2 is receiving a logic 1 signal (binary signal 1), the output is not activated until the timer has run. It remains active for as long as logic 1 (binary signal 1) is applied to I0.2.
5-60
9610a
Page 239
FST 200-LDR
5. Programming in ladder diagram
Delayed shutdown response timer With this timer, outputs can be deactivated by a logic 0 (binary signal 0) and after completion of a timed delay. With a logic 1 signal (binary signal 1) on the condition, the timer preselection is loaded into the timer word. In response to a logic 0 signal (binary signal 0), the timer is started and starts to run until: • the timer word has reached the value 0. The timer has then elapsed (TOFFnn=0, TWnn=0). • The timer is reinitialised by a logic 1 signal (binary signal 1). Status of condition 1 0
Status of timer 1
Start of timer
0 Timer preselect
9610a
Status of condition 1-level
Response of timer The timer is initialised.
0-level
The timer preselection is started and completed.
5-61
Page 240
FST 200-LDR
5. Programming in ladder diagram
Initialising and starting a timer At the first call of a timer, it must be started using the function initialising timer. Whenever you activate the function initialise timer in the selection window Box Definition (refer to Fig. 5.21), the timer is transferred to the current path. Take special account of the information in Section 5.4. Now activate the function operand entry, and enter the first timer which you wish to use (e.g. T12). After acknowledgement of the input, you can enter the timer preselection.
Path 1: Not until the timer has been deactivated (T12=0) can it be initialised by a positive edge on input I2.0. The timer preselection (here 10s) is then loaded into the timer word and the timer is activated. Path 2: A positive edge on input I3.1 stops the timer (T12=0). Path 3: The timer can be restarted with a positive edge on input I1.2.
5-62
9610a