 |
plc.myforum.ro PLCs users www.plc.myforum.ro!
|
| View previous topic :: View next topic |
| Author |
Message |
gert Member 3


Joined: 02 Jan 2015 Posts: 645
|
Posted: 19/01/2017 13:18 Post subject: How do you program the starting time of an event S7-1200/S7- |
|
|
How do you program the starting time of an event for the S7-1200/S7-1500 in STEP 7 (TIA Portal)?
https://support.industry.siemens.com/cs/document/42781160/how-do-you-program-the-starting-time-of-an-event-for-the-s7-1200-s7-1500-in-step-7- (tia-portal)-?dti=0&pnid=13613&lc=en-US
You define the starting time of the event via the input parameters of the "ClockAlarm" function. You can disable the time units you do not need (for example, year, month, day, ...) with the parameters below. The block synchronizes the configured parameters with the system time. When the defined time is reached, the "ClockAlarm" function value receives the True signal until the time at the inputs corresponds to the system time.
Example
A daily event is to be configured with the "ClockAlarm" function for 14:50 local time. Details about the parameters are described in the table below.
Set the input parameters "enableHour" and "enableMinute" to the True signal. This enables the input parameters "hour" and "minute".
Configure the "hour" parameter with the value 14 and the "minute" parameter with the value 50.
Disable all the parameters not needed ("year", "month", "day", "second" and "week") by setting the False signal for the parameters underneath (that begin with "enable...").
The function value "Ret_Val" is parameterized with the output "WakeUp" (Q0.0).
Save and compile the block and load the program into the CPU.
The digital function value "Ret_Val" is now programmed daily to 14:50 local time. Figure 1 shows the example with the described parameters.
You can also set the parameters of the "ClockAlarm" function with DB variables and control them via a panel, for example.
The "ClockAlarm" function was created in the SCL programming language and includes German and English comments. The table below describes the block parameters.
The download includes the STEP 7 (TIA Portal) library with the block described above for the S7-1200 and for the S7-1500
https://support.industry.siemens.com/cs/attachments/42781160/42781160_ClockAlarm_Lib_STEP7_TIA_Portal_V13.zip |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro
|