show the entry list
STEP 7 Micro/WIN -- Creating S7 programs -- Calling blocks and functions
How do you reset the high-speed counters of the S7-200?
Using an S7-200 without twilight switch, how do you have shutters open at sunrise and close at sunset?
How do you count values over 16 bits with the S7-200?
How can you limit the pitch of jumps with S7-200?
How do you configure the positioning module EM253 so that the connected stepper motor can proceed in both directions?
How do you position a servo drive axis using the S7-200 pulse interface?
How do you create a bar display in TD 200 or TD 200C?
How can you optimize use of timers in STEP 7 Micro/WIN?
How do you determine the frequency of a pulse sequence and speeds?
How can you scale analog values with S7-200 in conjunction with CPU224XP and expansion modules EM 231, EM 232 and EM 235?
How do you convert a binary number into Gray code (or vice versa) in STEP 7 Micro/WIN?
How do you convert the number format DOUBLE INTEGER into BCD code (or vice versa) in STEP 7 Micro/WIN?
How do you form the absolute and negative values of numbers in STEP 7 Micro/WIN?
Why does the PID controller created by the instruction wizard sometimes not work?
What do you have to do in the SIMATIC S7-200 in order to edit part of the program once after restarting?
Which library with the inverse functions to the trigonometric functions (sine, cosine, tangent) is available for STEP 7-Micro/WIN?
Scaling the setpoint and actual values in the STEP 7 Micro/WIN V4 wizards for PID control loops
Positioning Wizard for PTO/PWM in STEP 7 Micro/WIN V4.0
How to implement a three step control with PID-loop in the S7-200 via STEP 7-Mirco/WIN?
How can you optimize use of timers in STEP 7 Micro/WIN?
Part number:

Description:
The calls of the prepared time functions are limited to a total of 256 in STEP 7 Micro/WIN:

Switch-on ("TON") and switch-off delays ("TOF")

  • 2 ("T32" and "T96") with a resolution of 1 ms
  • 8 ("T33" to "T36" and "T97" to "T100") with a resolution of 10 ms
  • 182 ("T37" to "T63" and "T101" to "T255") with a resolution of 100 ms

Storage switch-on delays ("TONR")

  • 2 ("T0" and "T64") with a resolution of 1 ms
  • 8 ("T1" to "T4" and "T65" to "T68") with a resolution of 10 ms
  • 54 ("T5" to "T31" and "T69" to "T95") with a resolution of 100 ms


Fig. 01

From STEP 7 Micro/WIN version V4, functions "BGN_ITIME" and "CAL_ITIME" are also available for S7-200 CPUs from version V2, with which the prepared timers can be simulated without limit as follows:

Note:
The maximum timer length you can set is 49.7 days because of the double-word format.

Switch-on delay
3 seconds (3000 ms) after switching on (positive edge) of the input I0.0 the output Q0.0 is set.


Fig. 02

Storage switch-on delay
If the time total of switch-ons from input I0.1 is equal to more than 3 seconds (3000 ms), the output Q0.1 is set. Reset is via input I0.2.


Fig. 03

Switch-off delay
3 seconds (3000 ms) after switching off (negative edge) of the input I0.3 the output Q0.3 is reset.


Fig. 04

Pulse generation
By activating (positive edge) input I0.4, a pulse lasting 3 seconds (3000 ms) is generated at the output Q0.4.


Fig. 05

Download:
The download "TON_TONR_TOF_TP.zip" contains the sample project with the networks presented above.

TON_TONR_TOF_TP.zip ( 2 KB )

Note:
There is more information on the time functions in the STEP 7 Micro/WIN Help.

 Entry ID:31044952   Date:2008-10-23 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Help
Online Help
Guided Tour