Tool for Control Technology



Similar documents
Application on Control Technology

Applications & Tools. Configuration of Messages and Alarms in WinCC (TIA Portal) WinCC (TIA Portal) Application description December 2012

How To Use An American Zw.Com V20-20 (V20) V20 (Veu) V2.20 (Femalese) V1.2.2 (V2.1) V3.

Application example and brief instruction 04/2015. LOGO! App V3.0. LOGO! 8 and LOGO! 7

RAID systems within Industry

Configuration Instruction

Applications & Tools. Migration to TIA Portal. WinCC Basic / Comfort / Advanced STEP 7 V5.x / WinCC flexible 2008 SP3. Migration Guide September 2013

Applications & Tools. Master Slave Communication via a CM PtP using the Modbus RTU Protocol. S CM PtP RS422/485 HF, ET 200SP CM PtP

Applications & Tools. Control and Status Check of the digital Output of a SCALANCE W748-1 via S7 PN-CPU and SNMP Library

Applications & Tools. Remote Control Concept with SCALANCE S Modules over IPsec-secured VPN Tunnel SCALANCE S. Application Description February 2010

Application about Communication

Application about Communication

Creating the program. TIA Portal. SIMATIC Creating the program. Loading the block library. Deleting program block Main [OB1] Copying program blocks

Cover. WinCC/Server Virtualization. WinCC. Technical Information April Applications & Tools. Answers for Industry.

Applications & Tools. Monitoring Machines and Plants with Network Cameras and SIMATIC HMI Comfort Panels. WinCC V11 Comfort

Applications & Tools. Industrial Ethernet Communication: Data Exchange S7-200 <-> S SIMATIC S Configuration Example X20 October 2010

SIMATIC. Open TCP/IP Communication via Industrial Ethernet. Contents Open TCP/IP Communication via Industrial Ethernet 1. Index.

S Configuration Example X18 August 2010 Applications & Tools Answers for industry.

SIMATIC. Structured Control Language (SCL) for S7-300/S7-400 Programming. Preface, Contents. Part 1: Designing Programs

Automating witfi STEP7 in LAD and FBD

Automating with STEP7 in LAD and FBD

Applications & Tools. Connecting a SINAMICS G120 Drive to an S7-300/400 CPU in TIA Portal V11 SINAMICS G120 (CU 240E-2 PN(-F)), SIMATIC S7-300/400

Software redundancy for SIMATIC S7 SIMATIC. S7-300/S7-400 Software redundancy for SIMATIC S7. Contents 1

Start-up of IVI-KHD2-4HRX, IVI-KHA6-4HRX at S7-300 V1.1. Table of Contents TABLE OF CONTENTS... 1

SIMATIC NET. Functions (FC) and function blocks (FB) for SIMATIC NET S7 CPs. Preface. Overview and general information on working with FCs and FBs

THE STEP7 PROGRAMMING LANGUAGE

Remote Monitoring of Woodward easygen-3000

Conditions for the Provision and Maintenance of Software

Tool for Communication

Training document for the company-wide automation solution Totally Integrated Automation (T I A) MODULE A5. PLC-Simulation with S7-PLCSIM

Training Document for Integrated Automation Solutions Totally Integrated Automation (TIA) MODULE M1

Section 29. Real-Time Clock and Calendar (RTCC)

The goal is to program the PLC and HMI to count with the following behaviors:

SIMATIC. Programming with STEP 7 Lite V3.0. Preface, Contents Introducing the Product and Installing the Software. Basics of Designing a Program 2

SIMATIC NET. CP AS-Interface Master B C. Preface Contents. Technical Description and Installation Instructions Interface to the User Program

WinCC. Communication Manual. Manual 2. This manual is part of the documentation package with the order number: 6AV6392-1CA05-0AB0 C79000-G8276-C156-01

How many high-speed counters (HSCs) are provided by the SIMATIC S PLC? SIMATIC S FAQ March Service & Support. Answers for industry.

SIMATIC. C7-621, C7-621 AS-i Control Systems. Volume 2 Working with C7 A B C D E. Contents. User Information. Introduction. Startup.

CPU PN/DP: Configuring an ET. 200S as PROFINET IO device SIMATIC. PROFINET CPU PN/DP: Configuring an ET 200S as PROFINET IO device

WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide

SIMATIC. PLC Simulation for S7-300 and S Preface, Contents Installing the PLC. Simulation Software Getting Started with

Cover. SEB SIMOTION Easy Basics. Collection of standardized SIMOTION basic functions. FAQ April Service & Support. Answers for industry.

S and STEP 7 Basic V10.5

CMC-PD01 PROFIBUS DP Slave Communication Card Operation Manual


SIMATIC. Testing Your S7 Programs with S7-PLCSIM. Preface, Contents. Product Overview. Installing the S7-PLCSIM Software. Getting Started with

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE A5 Programming the CPU 314C-2DP

Applications & Tools. Creating Report Templates for the Information Server on the Process Historian Database in the PCS 7 Environment SIMATIC PCS 7

Installation Manual. PLCSQL link

MATCHDAY September 2014

FACTORY AUTOMATION. Manual Commissioning IDENTControl IC-KP-B12-V45 and IC-KP-B17-AIDA1 with PROFINET Protocol to Siemens S7 Controller

Commissioning IDENTControl Compact IC-KP2-2HB17-2V1D Profinet Protocol with a Siemens S7 PLC

Using Logix5000 Controllers as Masters or Slaves on Modbus

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE C2. High Level Programming with S7-SCL

Application about Human Machine Interface

Installation Manual. PLCSQL link

Cover sheet. Reading out the topology data of a PROFINET IO system SFB52 "RDREC" FAQ September Service & Support. Answers for industry.

1 General information

OnSite: Support and Software Maintenance

General terms and conditions for repair work on machines and systems of HUBTEX Maschinenbau GmbH & Co. KG

System Administration Guide. Model KS 832. Expandable up to 1664

Communication Unit 560CMU05 Data sheet

User's Guide. Integrating Sound Level Datalogger. Model Introduction

SIMATIC. ET 200S distributed I/O 2AO I ST analog electronic module (6ES7135-4GB01-0AB0) Preface. Properties 1. Parameters 2.

AN LPC1700 timer triggered memory to GPIO data transfer. Document information. LPC1700, GPIO, DMA, Timer0, Sleep Mode

SIMATIC S7-300, CPU 315-2DP CPU WITH MPI INTERFACE INTEGRATED 24 V DC POWER SUPPLY 128 KBYTE WORKING MEMORY 2

The Answer to the 14 Most Frequently Asked Modbus Questions

PRODUCT MANUAL LUMENTO X4 LED. LED Controller ZN1DI-RGBX4. Program version: 1.0 Manual edition: a

HOMEWORKS. RS-232 Protocol. Data Protocol for Communicating with Lutron's HOMEWORKS System

Control/Communicator Installation Manual

Technical Manual. FAN COIL CONTROLLER COOLING or HEATING ANALOG or PWM Art A

SCHEDULE DOCUMENT HOSTED TELEPHONY PUBLIC NODE4 LIMITED 03/02/2014

SOFTLINK 300. CPU Specifications. Reference Manual

Programming Examples. B.1 Overview of Programming Examples. Practical Applications. Instructions Used

EMC6D103S. Fan Control Device with High Frequency PWM Support and Hardware Monitoring Features PRODUCT FEATURES ORDER NUMBERS: Data Brief

Getting Started with IntelleView POS Administrator Software

Micro800 Programmable Controllers: Getting Started with CIP Client Messaging

DATA COMMUNICATION BETWEEN PROGRAMMABLE LOGIC CONTROLLERS IN THE INDUSTRIAL DISTRIBUTION APPLICATIONS

1. Content and implementation. 2. Services of Matrix42 GENERAL TERMS AND CONDITIONS OF BUSINESS

EWF Management Software Windows driver software for Classembly Devices /Industrial Controller

Identification System. FC 44 Function for ASM 450 With Supplements for FB 240. Contents. General Features Hardware Description of ASM 450

FACTORY AUTOMATION MANUAL IC-KP-B12-V45

Training Document for SIMIT SCE. MODULE G2 'Startup System Simulation with SIMIT SCE V7

SIMATIC S Getting Started for First Time Users. Order No.: 6ZB5310-0NC02-0BA0 04/2007 A5E

21152 PCI-to-PCI Bridge

FAQ Communication over IE

AN11008 Flash based non-volatile storage

How To Set The Sensor On A Powerpoint 3.5 (Powerpoint) On A Blackberry 2.5A (Powerplant) On An Iphone Or Ipad (Powerplant) On The Blackberry 3.2 (

INSTRUCTIONS: Answer Question 1 and any other 2 questions QUESTION ONE. 1. Fill up the following crossword: [14 Marks] Page 1 of 5

Cover sheet. Consistent Data. PROFIBUS DP and PROFINET IO. FAQ September Service & Support. Answers for industry.

Allen-Bradley/Rockwell

Service Level Agreement (SLA)

SIMATIC. System Software for S7-300 and S7-400 Program Design A B C D. Programming Manual C79000-G7076-C Preface, Contents

Combi B PC software 8213X. Installation and operating instructions

STEP 7 MICRO/WIN TUTORIAL. Step-1: How to open Step 7 Micro/WIN

Transcription:

Tool for Control Technology Tools Collection of Functions for Programming Tasks Tools Collection of Functional Examples for Date and Time

Warranty, Liability and Support Note The application examples and Tools are not binding and do not claim to be complete regarding the circuits shown, equipping and any eventuality. The application examples and Tools do not represent customer-specific solutions. They are only intended to provide support for typical applications. You are responsible in ensuring that the described products are correctly used. These application examples and Tools do not relieve you of the responsibility in safely and professionally using, installing, operating and servicing equipment. When using these application examples, you recognize that we cannot be made liable for any damage/claims beyond the liability clause described. We reserve the right to make changes to these application examples at any time without prior notice. If there are any deviations between the recommendations provided in these application examples and other Siemens publications - e.g. Catalogs - then the contents of the other documents have priority. Warranty, Liability and Support We do not accept any liability for the information contained in this document. Any claims against us - based on whatever legal reason - resulting from the use of the examples, information, programs, engineering and performance data etc., described in this application example shall be excluded. Such an exclusion shall not apply in the case of mandatory liability, e.g. under the German Product Liability Act ( Produkthaftungsgesetz ), in case of intent, gross negligence, or injury of life, body or health, guarantee for the quality of a product, fraudulent concealment of a deficiency or breach of a condition which goes to the root of the contract ( wesentliche Vertragspflichten ). However, claims arising from a breach of a condition which goes to the root of the contract shall be limited to the foreseeable damage which is intrinsic to the contract, unless caused by intent or gross negligence or based on mandatory liability for injury of life, body or health The above provisions does not imply a change in the burden of proof to your detriment. Copyright 2009 Siemens Industry Sector. It is not permissible to transfer or copy these examples or excerpts of them without first having prior authorization from Siemens Industry Sector in writing. For questions about this document please use the following e-mail address: online-support.automation@siemens.com V1.0 Edition 24.04.2009 2/22

Preface Preface In this example we introduce fully functional and tested automation configurations based on Siemens Industry Sector standard products and individual function blocks or tools, for simple, fast and inexpensive implementation of automation tasks. Apart from a list of all required hardware and software components and a description of the way they are connected to each other, the examples include the tested tools or function blocks. This ensures that the functionalities described here can be reset in a short period of time and thus also be used as a basis for individual expansions. Industry Automation and Drives Technologies Service & Support Portal This entry is from the internet service portal of Siemens AG, Industry Automation and Drives Technologies. Clicking the link below directly displays the download page of this document. http://support.automation.siemens.com/ww/view/en/31696259 V1.0 Edition 24.04.2009 3/22

Table of Contents Table of Contents 1 Time... 5 1.1 Determining the calendar day... 5 1.2 24-hour time switch... 8 1.3 Time-of-day schedule... 13 2 Overview of the Download Files... 21 3 History... 22 V1.0 Edition 24.04.2009 4/22

1 Time 1.1 Determining the calendar day Description The calendar day is the number of past days from January 1 st of a specific year to a specific date of the same year. The DATE data type can be used to calculate the calendar day. The DATE type contains the number of past days since 01.01.1990 and has a size of 16 bits. This allows to specify a date until max. 31.12.2168. When correcting the value by 1, the difference between a specific date and January 1 st of the same year results in the number of days until this date. Leap years and the exception rules have already been considered internally in DATE format so that case differentiations are not necessary. January 1 st of a year can be determined with the Date_and_Time (DT) data type. Figure 1-1 shows the structure of the DT data type. Bytes 1 and 2 contain the month and day that are manually set to 1. The necessary format conversions between DT and DATE can be performed with the D_TOD_DT (FC 3) and DT_DATE (FC 6) IEC functions. Figure 1-1 CldrDay function The CldrDay (FC1) function determines the corresponding calendar day of a transferred date in DATE format. The date is transferred with the dddate input parameter. In this case, the bsystemclock input parameter must be FALSE. If bsystemclock is TRUE, the date is ignored at the dddate input and the function determines the calendar day from the date that corresponds to the CPU system time. The respective calendar day is returned via the icalenderday output parameter. It is of the INT type. The function checks the date for permissible values and, in the event of an error, returns the value W#16#8001 via the RET_VAL return value. Note Due to the internal conversion to DT format, the latest permissible date is 31.12.2089, even if the DATE data type allows a later date. V1.0 Edition 24.04.2009 5/22

To determine the system time, the CldrDay function uses the READ_CLK (SFC1) system function. If the return value of this function is not equal to 0, the function is terminated and the error code is returned via RET_VAL. Block parameters of the CldrDay (FC 1) function Table 1-1 Parameter Declaration Data type Area Description bsystemclock IN BOOL I, Q, M, D, L dddate IN DATE I, Q, M, D, L icalenderdays OUT INT Q, M, D, L RET_VAL Return INT Q, M, D, L true: Function determines the calendar day from the current date of the system time false: Function determines the calendar day of the date at dddate. The calendar day is calculated from this date if bsystemclock == true. If bsystemclock == false, this parameter has to significance Calendar days that passed in the relevant year Error code: W#16#8001: Value at dddate is not within the permissible limits. For other error messages, see documentation of the SFC1 system function Example In the program example, the CldrDay (FC1) function is called in TestFB (FB1) with all necessary parameters and an error check is performed. If an error occurs, this is indicated via a bit. The input parameters can be changed and the results can be checked in the VAT_1 variable table created in the project. V1.0 Edition 24.04.2009 6/22

To test the sample project, proceed as follows: Table 1-2 Step Action/event 1. Download the complete station to the CPU or to S7-PLCSIM and open the VAT_1 variable table in online mode 2. In the variable table, enter a valid date in DB1.ddDate 1 3. Result: The number of calendar days is displayed in DB1.iCalenderDays. In the example, these are 33 days for 02.02.2008. Set the DB1.bUseSystemClock bit. 3 2 Result: The calendar day of the current system time is determined instead of the transferred date. Figure 1-2 3 2 1 Technical specifications Table 1-3 Block CldrDay (FC1) determination of the calendar day Data Required local data : 30 bytes Load memory requirement : 448 bytes Work memory requirement : 356 bytes V1.0 Edition 24.04.2009 7/22

1.2 24-hour time switch Description For time-dependent switching operations, a simple time switch with a maximum time range of 24 hours is sufficient in many cases. By specifying the switch-on and switch-off time and the weekdays, such a time switch can be used flexibly, also beyond the day limits (e.g., from 23:00 to 01:00 of the following day). The possibility of activating the switching times for individual weekdays increases flexibility. TSwitch (FC 100) function The TSwitch function is the realization of a 24-hour time switch. By specifying switch-on time ( OnTime ), switch-off time ( OffTime ) and days ( SwitchDays ), you can parameterize the switching time. The weekdays on which the time switch is active are specified as a bit pattern: Figure 1-3 For example, the value B#16#C (bit 2 and 3 set) means that switching is performed only on Mondays and Tuesdays. The function is processed only if the Enable input == true. If the switch-off time is less than the switch-on time, this means that switching is performed beyond the day limit. For example, SwitchDays = B#16#80 (only Saturday), TimeOn = TOD#23:00:00.000, TimeOff = TOD#01:00:00.000 mean that the time switch is switched on on Saturday at 23:00 and switched off on Sunday at 1:00. If switching is to be performed on Saturdays only, bit 1 (= Sunday) must not be set in this case since otherwise the time switch would also be switched on on Sunday at 23:00 and switched off on Monday at 01:00. The WeekDayToPattern (FC101) auxiliary function features a binary input for each weekday and provides a bit pattern for the weekdays corresponding to the inputs at the output. Switching output Q is enabled as soon as TimeOn <= time <= TimeOff. Q is available as an inverted QN output signal. V1.0 Edition 24.04.2009 8/22

Note If several switching times are required, the function can be called multiple times. The function internally calls the SFC1 ( READ_CLK ) system function and the FC8 ( TD_TOD ) IEC function. Block parameters of the TSwitch function Table 1-4 Parameter Declaration Data type Area Description OnTime IN TOD I, Q, M, D, L Switch-on time OffTime IN TOD I, Q, M, D, L Switch-off time SwitchDays IN BYTE I, Q, M, D, L Weekdays on which switch-on and switch-off time 1 are evaluated Enable IN BOOL I, Q, M, D, L Enable block ( 1 ), disable block ( 0 ). If the block is disabled, W#16#8001 is returned as a return value. Q OUT BOOL Q, M, D, L Switching output 1 if switch-on condition is met QN OUT BOOL Q, M, D, L Inverted switching output 0 if switch-on condition is met RET_VAL RET_VAL INT Q, M, D, L Error code: W#16#0 : No error W#16#8001 : Block disabled <>0 : Error for SFC1 Example In the program example, the TSwitch (FC100) function is called in TestFB (FB1) with all necessary parameters and an error check is performed. If an error occurs, this is indicated via a bit. The input parameters can be changed and the results can be checked in the VAT_1 variable table created in the project. NOTICE For test purposes, the following sample project provides the option of resetting the CPU system time. For this reason, the following steps must only be performed with PLCSIM. V1.0 Edition 24.04.2009 9/22

To test the sample project, proceed as follows: Table 1-5 Step Action/event 1. Download the complete station to S7-PLCSIM and open the VAT_1 variable table in online mode 2. Read the current system time and the weekday 1 If you want to use another time for test purposes, enter the desired time and the desired date, enable the sbosetclock input and disable it. 2 Result: The system time is set to the specified value 1 3. Enter the desired switching time 4 Select the weekdays on which the switch-on and switch-off time are evaluated. 5 4. Activate the function 3 5. Monitor the switching output 6 Result: As soon as the switching time is reached, the Q output changes from 0 to 1 V1.0 Edition 24.04.2009 10/22

Figure 1-4 1 2 3 5 4 6 V1.0 Edition 24.04.2009 11/22

Technical specifications Table 1-6 TSwitch (FC100) 24-hour time switch Block Data Required local data : 30 bytes Load memory requirement : 534 bytes Work memory requirement : 418 bytes For the associated download file, please refer to the chapter Overview of the Download Files. V1.0 Edition 24.04.2009 12/22

1.3 Time-of-day schedule Description If more complex switching operations are to be realized with a time switch, it is mostly not sufficient to use a 24-hour time switch with only one single switching point as described in 1.2. Amongst others, the use of the time switch described in the following allows the following switching points: Every hour (at a specific minute) Every day or only on a specific weekday Every month or only at a specific month Only on weekdays or only on weekends When combining these options, for example, the following switching times are possible Only on weekends at 8:00 h for each month On each first of the month every full hour In January from Monday to Friday at 12:00 h Always on Friday at 18:25 h Several switching points of this time switch can be managed in a schedule. TOD (FC1) function The TOD function is the realization of a time switch that can manage up to 255 switching points in a schedule in a data block. The switching points are created as a structure (UDT). The structure is described in the next section. The block is created as an FC and has the following formal parameters: DBNO: Number of the data block containing the schedule with the switching points. ENT: Number of switching points included in the DNBO data block. ERROR: Bit that is set when an error occurs CODE: Detailed message when an error occurs (0 when no error occurs) V1.0 Edition 24.04.2009 13/22

Note The function should be called at least once per minute. It may be continuously processed in OB 1 CYCL_EXC, scheduled for execution in OB 10 to OB 17 TOD_INTx on a per-minute basis, or called from OB 30 to OB 38 CYC_INTy on a periodic basis. An event is active only while this switch-on condition is met. To be able to specify, for example, an exact switch-on time and an associated switch-off time, separate entries have to be created for the switch-on and switch-off time and the positive edges of the EVENT.active events (see structure of the UDT1 schedule entries) must be evaluated. Structure of the SCHED (UDT1) schedule entries The schedule structure for an entry is defined in the SCHED UDT and is as follows: Table 1-7 ATD STRUCT //structure for activation time/date minute INT //scheduled minute hour INT //scheduled hour day INT //scheduled day of the month month INT //scheduled month dow INT //scheduled weekday END_STRUCT EVENT user STRUCT id DINT //event identifier assigned by active BOOL //current event entry is active END_STRUCT ATD and EVENT are structures and ATD (activation time and date) contains the scheduled activation time and date information. EVENT contains information on the event such as activation and a user-assigned identifier. The significance of the entries is described below: Table 1-8 Entry ATD.minute ATD.hour ATD.day Significance This entry defines the minute (0..59) at which the event is to be active. -1 marks every minute as valid. Other values are not permitted. This entry defines the hour (0..23) at which the event is to be active. -1 marks every hour as valid. Other values are not permitted. This entry defines the calendar day of a month (1..31) on which the event is to be active. -1 marks every calendar day as valid. V1.0 Edition 24.04.2009 14/22

Entry ATD.month ATD.dow EVENT.id EVENT.active Other values are not permitted. Significance This entry defines the month (1 = January 12 = December) at which the event is to be active. -1 marks every month day as valid. Other values are not permitted. This entry defines the weekday (1 = Sunday 7 = Saturday) on which the event is to be active. -1 marks every weekday as valid. Other values are not permitted. If the event is to be active only from Monday to Friday, the value 8 has to be entered. If the event is to be active only on weekends (Saturday/Sunday), a value of 9 has to be entered Other values are not permitted. This entry assigns a unique identifier to the event. The value is assigned by the user (optional) and does not affect the function. This entry is set by the TOD function (true) when the event is active. The entry is false when the event is not active. For a sample configuration of a data block with two entries, the result for the first Data.entry[1] with the values ADT.minute = 30 ADT.hour = -1 ADT.day = -1 ADT.month = -1 ADT.dow = -1 is a switching instant for each hour on each day in each month when the value of the minute is 30. For a sample configuration for the second Data.entry[2] with the values ADT.minute = -1 ADT.hour = 8 ADT.day = -1 ADT.month = -1 ADT.dow = 8, the Data.entry[2].EVENT.active event is activated on each weekday in each month at 8:00 h for one hour. The figure below shows when and how long the events are active for this sample configuration. V1.0 Edition 24.04.2009 15/22

Figure 1-5 T Einminütige Duration of Dauer 1 minute Data.entry[1].EVENT.active F T F Data.entry[2].EVENT.active 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Block parameters of the TOD function ZEIT Time Table 1-9 Parameter Declaration Data type Area Description DBNO IN INT I, Q, M, D, L, const. ENT IN INT I, Q, M, D, L, const. Number of the data block containing the schedule with the switching times. Number of entries included in the DBNO data block. ERROR OUT BOOL Q, M, D, L Error status: 1 if an error has occurred CODE OUT INT Q, M, D, L Error code W#16#80A1 : Invalid DB number W#16#80B1 : DB with number DBNO does not exist W#16#80B2 : DB with number DBNO has been generated with the UNLINKED keyword W#16#80D1 : DB too small for the number of entries specified at ENT W#16#80D2 : DB with number DBNO is write-protected W#16#80D3 : Number of entries ENT > 255 W#16#8100 : Error when reading the system time (SFC1) W#16#82xx : Error in entry number xx in the DBNO data block V1.0 Edition 24.04.2009 16/22

Example In the program example, the TOD (FC1) function is called in TestFB (FB1) with all necessary parameters and an error check is performed. If an error occurs, this is indicated via a bit. The input parameters can be changed and the results can be checked in the VAT_1 variable table created in the project. NOTICE For test purposes, the following sample project provides the option of resetting the CPU system time. For this reason, the following steps must only be performed with PLCSIM. Table 1-10 Step To test the sample project, proceed as follows: Action/event 1. Download the complete station to S7-PLCSIM and open the VAT_1 variable table in online mode Result: The current system time is displayed 1 An error is displayed (W#16#80A1) since the current DB number is 0 2. Transfer the modify values preset in the variable table to the CPU. Result: 3 4 The error message disappears since the correct data block is now enabled. 4 Switching time 1 is configured for exactly 11:00 for each day in each month ON duration 1 h 5 Switching time 2 is configured for exactly 11:03 for each day in each month ON duration 1 min 7 3. 4. Set the system clock by setting the sbosetclock binary signal briefly to 1 and then back to 0 2 Result: The system clock is set to 11:00:00 The status of switching time 1 at the Data.entry[1].EVENT.active output changes to 1 (hour 11 has been reached) Wait until the system clock displays 11:03. 6 Result: V1.0 Edition 24.04.2009 17/22

Step Action/event Now also the status of switching time 2 at the Data.entry[2].EVENT.active output changes to 1 5. When the relevant times have elapsed, the corresponding switching outputs are reset. 6. Repeat points 2-5 for any times 8 V1.0 Edition 24.04.2009 18/22

Figure 1-6 1 2 3 4 5 6 7 8 V1.0 Edition 24.04.2009 19/22

Technical specifications Table 1-11 TOD (FC1) time-of-day schedule Block Data Required local data : 62 bytes Load memory requirement : 1482 bytes Work memory requirement : 1268 bytes V1.0 Edition 24.04.2009 20/22

Overview of the Download Files 2 Overview of the Download Files Download file 31696259_Datum-Uhrzeitfunktionen.zip contains the ZIP files for the respective functional examples listed below. Table 2-1 Serial no. Data block ZIP file 1. Determining the calendar day CalendarDay.zip 2. 24-hour time switch TSwitch.zip 3. Time-of-day schedule TimeOfDay.zip V1.0 Edition 24.04.2009 21/22

History 3 History Table 3-1 Version Date Modification V1.0 04/24/09 First edition V1.0 Edition 24.04.2009 22/22