Tia 1200 handbuch



ISBN: 675447155


Tia 1200 handbuch

Quick Links Download this manual See also: System ManualManual. Controller Siemens SIMATIC S System Manual Automation system pages. Technology module, tm posinput 2 6esabab0 pages. Page 2: Warranty And Liability Siemens recommends strongly that you regularly check for product updates. For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action e.

Third-party products that may be in use should also be considered. Page 3: Table Of Contents Optimized machine code Page 4 3. Page 5: Preface This helps you to create a standardized and optimal programming of your automation solutions. The examples described can be universally used for the controllers S and S Core content of this programming guideline Additionally, there are many innovations that make programming easier for you and which allow a powerful and storage-saving code.

Page 7 STEP 7 Professional TIA Portal? Page 8: Programming Languages How can the constants be defined under STEP 7 V11 in a S7-SCL program? All languages are compiled the same, directly into the machine code.

Page Optimized Blocks 2. In optimized blocks, all tags are automatically sorted by their data type. The sorting ensures that data gaps between the tags are minimized and that the tags are stored access-optimized for the processor. Page S Setup Of Optimized Blocks S can directly read or write all tags with just one machine command. Boolean tags are stored as byte for faster access. The controller therefore does not have to mask the access. Page Best Possible Data Storage In The Processor On S When accessing, the controller does not The complete byte is blocked for any have to mask the byte.

Maximum block size is 64kB. Maximum block size can be up to 16MB. Block access can be set for OBs, FBs and global DBs. For instance DBs, the setting depends on the respective FB. Page Conversion Between Optimized And Non-Optimized Tags In the case of type-identical allocations between two tags with different storage locations, the system converts automatically. In the case of structured tags, this conversion requires performance and should therefore be avoided, if possible.

Page Communication With Optimized Data Any tags or data blocks derived from PLC data types can be used as data records. With the new 64 bit data types considerably larger and more accurate values can be used. Page Instructions Always use the CALCULATE instruction for mathematical calculations instead of many calls of instructions, such as, e. ADD, SUB, etc. Page Symbolic And Comments 4. Network title comment 5.

Network comment 6. Comment on instructions, blocks and functions open, close, etc. All hardware and software components e. Page Stop Mode In The Event Of Errors TIA Portal. This makes the programming of the error management clearer and easier.

Page General Programming Due to a good and structured program you get many function units that can be multiply reused within a project and also in other projects. These function units then usually only differ by a different configuration see chapter 3. Page Organization Blocks Ob OBs are the interface between the operating system and the user program. They are called by the operating system and control, e. Page 29 OBs, use the global DBs see chapter 4.

Divide all program parts that belong to each other into folders and store them for reusability in the project or global library. Page Functions Fc FCs are blocks without cyclic data storages. This is why the values of block parameters cannot be saved until the next call and has to be provided with actual parameters when called.

Properties FCs are blocks without cyclic data storages. Page 31 Temporary and out tags are undefined when called in non-optimized blocks. In optimized blocks, the values are always preset to the default value S and S Firmware V4. Thus, the resulting behavior is not accidental but reproducible. In order to permanently save the data of an FC, the functions of the global data blocks are available.

Page Function Blocks Fb Temporary and out tags are undefined when called in non-optimized blocks. Static tags keep the value from cycle to cycle All data is saved in a multi instance DB. It is thus possible to create a block with an independent time behavior, for example, a clock generator. If possible, also always use multi-instances here. This keeps the number of blocks in the user program low. Page Global Data Blocks Db How do you declare the timers and counters for the S in STEP 7 TIA Portal V12?

Page Downloading Without Reinitialization 3. You can load the changed blocks without setting the controller to STOP and without influencing the actual values of already loaded tags. Page 37 Define a memory reserve for blocks that are to be expanded during commissioning e. The commissioning process is not interrupted by download of new defined tags.

The current values of already existing variables are kept. Page 38 You can also set a default value for the size of the memory reserve for new blocks in the TIA portal. Page Reusability Of Blocks The block concept offers you a number of options to program in a structured and effective way. Advantages Blocks can be used universally in any location of the user program.

Blocks can be used universally in different projects. Page Block Interface Types Call-by-value with In interface type When calling the block, the value of the actual parameter is copied onto the input parameter of the block for the In interface type. For this, additional memory is required. Page Call-By-Reference With Inout Interface Type 3. Page Global Memory This is why you should use global DBs instead of hardware-dependent memory areas.

Non-optimized blocks: Temporary tags are undefined for each call of the block. Optimized blocks: Temporary tags, parameters of an FC and FB, non-retentive static tags 2. Optimized blocks whose accesses for compiling are known: — Page 46 Retentivity can be set from address 0 onward! As already described in chapter 3. Page Symbolic Addressing If the retentive memory on the PLC is not sufficient, it is possible to store data in the form of data blocks that are only located in the load memory of the PLC.

The following entry is described by taking the example of an S This programming also works for S Page 48 Open the program editor and open any block. Enter a symbolic name directly at the input of an instruction. Note You will find further information in the following entry: How do you implement an array access with an S with variable index?

Page Struct Data Type And Plc Data Types PLC data type can be used for any number of DBs. You can easily and conveniently create as many DBs of the same structure and adjust them centrally on the PLC data type. Transfer of the PLC tag as actual parameter to the function block 4. Page Slice Access 3. The division of a memory area e. Bool is also called slice. In the figure below displays the symbolic bit, byte and word accesses to the operands. Page Libraries 3. Page 55 Subordinate elements are automatically typified.

Page Type Concept Control elements are edited in a test HMI images and HMI scripts are edited in a environment. Faceplates and HMI - UDTs are directly edited in the library without test environment. Page Versioning Of A Block Define an input tag of the data type you have created. The PLC data type is therefore subordinate to the function block. Page 58 The subordinate PLC data type is automatically also stored in the library. Page 59 In this place you have the option to test the change on the block by loading the project onto a controller.

When you have finished testing the block, continue with the following steps.

Das TIA-Portal ist ein Automatisierungsframework für die CPU-Familien SIMATIC S, S, S und S von SIEMENS. Im TIA-Portal sind alle notwendigen Software-Tools unter einer Bedienoberfläche vereint. Die Bedienoberfläche des TIA-Portal unterscheidet sich stark von dem klassischen STEP7 V5. Im TIA-Portal werden nicht alle S CPUs unterstützt. Beispielsweise fehlen alle CPUs, deren Firmware älter ist als V2. Beispiel: CPU IFM 6ESAC02 Der CPU Typ S CPU fehlt gänzlich.

Aus diesem Grund kann das TIA-Portal die klassische Step7-Software "Simatic Manager" nicht vollständig ersetzen. STEP7-Anwender, die alle SIMATIC CPUs unterstützen müssen, sind gezwungen, beide Software-Tools zu installieren. Erstmals ist das TIA-Portal im Jahr erschienen. Zu diesem Zeitpunkt konnte das TIA-Portal nur für die S Steuerungsfamilie verwendet werden.

PLC-SIM ist die Software-SPS innerhalb des TIA PORTAL. Davon gibt es insgesamt 3 Varianten:. Alle 3 Varianten sind in der "Professional" Version enthalten. In der "Basic" Version des TIA PORTALs ist nur PLC-SIM für die S enthalten. PLC-SIM dient dazu, ein Steuerungsprogramm ohne die reale Hardware SPS zu simulieren. Bevor man ein Steuerungsprogramm auf die Hardware-SPS lädt, sollte man vorher eine Simulation durchführen, um Fehler zu finden, die in einer realen Anlage hohen Schaden verursachen könnten.

Bei der Simulation mit PLC-SIM müssen die Eingangssignale so eingestellt werden, damit das Steuerungsprogramm geprüft werden kann. Dies kann in den meisten Fällen nicht mehr manuell durchgeführt werden, da die Anzahl der Eingänge für eine hohe Komplexität sorgt. Hier helfen virtuelle Anlagenmodelle in 2D oder 3D digitaler Zwilling.

Ein virtuelles Anlagenmodell kann die Signalzustände im optimalen Fall genauso liefern, wie die reale Anlage. Hier kann ein vereinfachter digitaler Zwilling in 2D erstellt werden. PLC-Lab synchronisiert die virtuellen Eingänge und Ausgänge mit PLC-SIM und somit kann das Steuerungsprogramm wie bei einer Inbetriebnahme ablaufen.

TIA-Portal Beschreibung auf der SIEMENS Webseite. PLC-Lab: Ergänzung zu PLCSIM Simulator im TIA-Portal. PLC-SIM PLC-SIM ist die Software-SPS innerhalb des TIA PORTAL. Davon gibt es insgesamt 3 Varianten: S7-PLC-SIM zur Simulation von S Steuerungen S7-PLC-SIM zur Simulation von S Steuerungen S7-PLC-SIM zur Simulation von S Steuerungen Alle 3 Varianten sind in der "Professional" Version enthalten.

Ein Vertreter dieser Software ist PLC-Lab von MHJ-Software. Links STEP7-Beschreibung Wikipedia TIA-Portal Beschreibung auf der SIEMENS Webseite PLC-Lab: Ergänzung zu PLCSIM Simulator im TIA-Portal.