Table of Contents

Advertisement

Quick Links

SIMATIC
S7-1200
Easy Book
Manual
05/2009
A5E02486774-01
Preface
Introducing the flexible and
powerful S7-1200
STEP 7 Basic makes the
work easy
Getting started
How the S7-1200 works
Programming options
Communications
Using the pulse generators
of the S7-1200
Online functionality
Technical specifications
1
2
3
4
5
6
7
8
A

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC S7-1200 Easy Book

  • Page 1 Preface Introducing the flexible and powerful S7-1200 STEP 7 Basic makes the work easy SIMATIC Getting started S7-1200 Easy Book How the S7-1200 works Programming options Manual Communications Using the pulse generators of the S7-1200 Online functionality Technical specifications 05/2009 A5E02486774-01...
  • Page 2 Note the following: WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems.
  • Page 3: Preface

    Preface Welcome to the world of S7-1200, the latest in a line of the Siemens SIMATIC controllers. The SIMATIC S7-1200 compact controller is the modular, space-saving controller for small automation systems that require either simple or advanced functionality for logic, HMI and networking.
  • Page 4 Siemens products that you are using, they can provide the fastest and most efficient answers to any problems you might encounter.
  • Page 5: Table Of Contents

    Table of contents Preface ..............................3 Introducing the flexible and powerful S7-1200 ................... 7 Expanding the capability of the CPU .....................9 Display panels..........................10 Mounting dimensions and clearance requirements ..............11 STEP 7 Basic makes the work easy ......................13 Help when you need it .........................14 All of the tools you need.......................17 Getting started ............................
  • Page 6 Table of contents 6.2.3 Library of Modbus instructions ....................80 Using the pulse generators of the S7-1200....................81 High-speed counters ........................82 Pulse-width modulation (PWM)....................86 Online functionality ..........................89 Downloading a permanent IP address to an online CPU ............89 Going online and connecting to a CPU..................
  • Page 7: Introducing The Flexible And Powerful S7-1200

    Introducing the flexible and powerful S7-1200 The S7-1200 controller provides the flexibility and power to control a wide variety of devices in support of your automation needs. The compact design, flexible configuration, and powerful instruction set combine to make S7-1200 a perfect solution for controlling a wide variety of applications.
  • Page 8 Introducing the flexible and powerful S7-1200 1.1 Expanding the capability of the CPU Feature CPU 1211C CPU 1212C CPU 1214C Physical size (mm) 90 x 100 x 75 90 x 100 x 75 110 x 100 x 75 User memory Work memory 25 Kbytes 25 Kbytes...
  • Page 9: Expanding The Capability Of The Cpu

    Introducing the flexible and powerful S7-1200 1.1 Expanding the capability of the CPU Expanding the capability of the CPU The S7-1200 family provides a variety of signal modules and signal boards for expanding the capabilities of the CPU. You can also install additional communication modules to support other communication protocols.
  • Page 10: Display Panels

    Introducing the flexible and powerful S7-1200 1.2 Display panels Display panels As visualization becomes a standard component for most machine designs, the SIMATIC HMI Basic Panels provide touch-screen devices for basic operator control and monitoring tasks. Color panels KTP 600 Basic (PN or DP) KTP1000 Basic (PN or DP) TP1500 Basic PN 6"...
  • Page 11: Mounting Dimensions And Clearance Requirements

    Introducing the flexible and powerful S7-1200 1.3 Mounting dimensions and clearance requirements Mounting dimensions and clearance requirements The S7-1200 PLC is designed to be easy to install. Whether mounted on a panel or on a standard DIN rail, the compact size makes efficient use of space. S7-1200 Devices Width A Width B...
  • Page 12 Introducing the flexible and powerful S7-1200 1.3 Mounting dimensions and clearance requirements ① Side view ③ Vertical installation ② Horizontal installation ④ Clearance area Always consider the following guidelines when planning your installation: • Separate the devices from heat, high voltage, and electrical noise.
  • Page 13: Step 7 Basic Makes The Work Easy

    STEP 7 Basic makes the work easy STEP 7 Basic provides a user-friendly environment to develop controller logic, configure HMI visualization, and setup network communication. To help increase your productivity, STEP 7 Basic provides two different views of the project: a task-oriented set of portals that are organized on the functionality of the tools (Portal view), or a project-oriented view of the elements within the project (Project view).
  • Page 14: Help When You Need It

    STEP 7 Basic makes the work easy 2.1 Help when you need it The Project view provides access to all of the components within a project. With all of these components in one place, you have easy access to every aspect of your project. ●...
  • Page 15 STEP 7 Basic makes the work easy 2.1 Help when you need it Help window (default) Help window with contents displayed Easy Book Manual, 05/2009, A5E02486774-01...
  • Page 16 STEP 7 Basic makes the work easy 2.1 Help when you need it Printing topics from the online help To print from the information system, click the "Print" button on the help window. The "Print" dialog allows you to select the topics to print. Make certain that the panel displays a topic.
  • Page 17: All Of The Tools You Need

    STEP 7 Basic makes the work easy 2.2 All of the tools you need All of the tools you need Use the "Start" portal to create new projects and to open existing projects. Use the "Devices & Networks" portal to configure all of the hardware elements (PLC and HMI) and also the networks for your application.
  • Page 18 STEP 7 Basic makes the work easy 2.2 All of the tools you need Easy to insert the instructions into your user program STEP 7 Basic provides task cards that contain the instructions for your program. The instructions are grouped according to function. To create your program, you drag instructions from the task card onto a network.
  • Page 19 STEP 7 Basic makes the work easy 2.2 All of the tools you need Easy to modify the appearance and operation of STEP 7 Basic You can select a variety of settings, such as the appearance of the interface, language, or the directory for saving your work.
  • Page 21: Getting Started

    Getting started Working with STEP 7 Basic is easy! In the next few pages, you can see how quickly you can get started with creating a project. Create a new project In the Start portal, click the "Create new project" task. After creating the project, select the Devices &...
  • Page 22 Getting started The Device view displays the CPU that you added. Create tags for the I/O of the CPU Note "Tags" are the symbolic names for I/O and addresses. After you create a tag, STEP 7 Basic stores the tag in a tag table. All of the editors in your project (such as the program editor, the device editor, the visualization editor, and the watch table editor) can access the tag table.
  • Page 23 Getting started STEP 7 Basic displays both the tag table and the device editor together. Zoom the CPU (over 200%) to make the I/O points legible and selectable. 1. Select I0.0 and drag it to the first row of the tag table.
  • Page 24 Getting started Create a simple network in your user program Your program code consists of instructions that the PLC executes in sequence. For this example, you use ladder logic (LAD) to create the program code. The LAD program is a sequence of networks that resemble the rungs of a ladder.
  • Page 25 Getting started Use the tag table to enter addresses for your instructions Use the tags that you created in the tag table to enter the addresses for the contacts and coils. 1. Double-click the default ??.?> address < above the first normally open contact.
  • Page 26 Getting started Add a Math instruction to the second network The program editor features a generic "box" instruction. After inserting this box instruction, you then select the type of instruction, such as an ADD instruction, from a drop-down list. Click the generic "box" instruction in the "Favorites"...
  • Page 27 Getting started Adding an HMI device to the project Adding an HMI device to your project is easy! 1. Double-click the "Add new device" icon. 2. Click the "SIMATIC HMI" buttonin the Add new device" dialog. 3. Select the specific HMI device from the list.
  • Page 28 Getting started Creating a network connection between the PLC and HMI device Creating a network is easy! Go to "Devices and Networks" and select the Network view to display the PLC and HMI device. To create a PROFINET network, drag a line from the green box on one device to the green box on the other device.
  • Page 29 Getting started Creating an HMI screen Even if you do not utilize the HMI wizard, configuring an HMI screen is easy. STEP 7 Basic provides a standard set of libraries for inserting basic shapes, interactive elements, and even standard graphics. To add an element, simply drag and drop one of the elements onto the screen.
  • Page 31: How The S7-1200 Works

    How the S7-1200 works Tasks performed every scan cycle Each scan cycle includes writing the outputs, reading the inputs, executing the user program instructions, and performing system maintenance or background processing. The cycle is referred to as a scan cycle or scan. Under default conditions, all digital and analog I/O points are updated synchronously with the scan cycle using an internal memory area called the process image.
  • Page 32: Operating Modes Of The Cpu

    How the S7-1200 works 4.2 Operating modes of the CPU You can change the default behavior for a module by removing it from this automatic update of I/O. You can also immediately read and write digital and analog I/O values to the modules when an instruction executes.
  • Page 33: Memory Areas, Addressing And Data Types

    How the S7-1200 works 4.3 Memory areas, addressing and data types Memory areas, addressing and data types The CPU provides the following memory areas to store the user program, data, and configuration: ● Load memory is non-volatile storage for the user program, the data, and the configuration.
  • Page 34 How the S7-1200 works 4.3 Memory areas, addressing and data types Data types supported by S7-1200 Data types are used to specify both the size of a data element as well as how the data are to be interpreted. Each instruction parameter supports at least one data type, and some parameters support multiple data types.
  • Page 35 How the S7-1200 works 4.3 Memory areas, addressing and data types Memory areas and addressing The CPU provides several options for storing data during the execution of the user program: ● Memory locations: The CPU provides a variety of specialized memory areas, including inputs (I), outputs (Q), bit memory (M), data block (DB), and local or temporary memory (L).
  • Page 36 How the S7-1200 works 4.3 Memory areas, addressing and data types The figure shows how to access a bit (which is also called "byte.bit" addressing). In this example, the memory area and byte address (I = input, and 3 = byte 3) are followed by a period (".") to separate the bit address (bit 4).
  • Page 37: Execution Of The User Program

    How the S7-1200 works 4.4 Execution of the user program Execution of the user program The CPU supports the following types of code blocks that allow you to create an efficient structure for your user program: ● An organization block (OB) is a code block that typically contains the main program logic. The OB responds to a specific event in the CPU and can interrupt the execution of the user program.
  • Page 38 How the S7-1200 works 4.4 Execution of the user program Event Type (OB) Quantity Valid OB Queue Priority Priority Numbers Depth Group Program cycle 1 program cycle event 1 (default) Multiple OBs allowed 200 or greater Startup 1 startup event 100 (default) 1, 2 Multiple OBs allowed...
  • Page 39: Protecting Access To The Cpu Or Code Block Is Easy

    How the S7-1200 works 4.5 Protecting access to the CPU or code block is easy Protecting access to the CPU or code block is easy The CPU provides 3 levels of security for restricting access to specific functions. When you configure the security level and password for a CPU, you limit the functions and memory areas that can be accessed without entering a password.
  • Page 41: Programming Options

    Programming options Easy to configure the hardware devices You create the device configuration for your PLC by adding a CPU and additional modules to your project. ① Communications module (CM): Up to 3, inserted in slots 101, 102, and 103 ②...
  • Page 42 Programming options 5.1 Easy to configure the hardware devices Uploading an existing hardware configuration is easy If you are connected to a CPU, you can upload the configuration of that CPU, including any modules, to your project. Simply create a new project and select the "unspecified CPU" instead of selecting a specific CPU.
  • Page 43 Programming options 5.1 Easy to configure the hardware devices Adding a CPU to the configuration You create your device configuration by inserting a CPU into your project. Select the CPU in the "Add a new device" dialog and clock "OK" to add the CPU to the project. The Device view shows the CPU and rack .
  • Page 44 Programming options 5.1 Easy to configure the hardware devices Adding a device to the configuration Use the hardware catalog to add modules to the CPU. There are three types of modules: ● Signal boards (SB) provide just a few additional I/O points for the CPU. The SB is installed on the front of the CPU.
  • Page 45 Programming options 5.1 Easy to configure the hardware devices Configuring a network connection Use the "Network view" of Device configuration to create the network connections between the devices in your project. After creating the network connection, use the "Properties" tab of the inspector window to configure the parameters of the network.
  • Page 46: Configuring The Operation Of The Cpu And Modules

    Programming options 5.1 Easy to configure the hardware devices 5.1.1 Configuring the operation of the CPU and modules Configuring the operation of the CPU To configure the operational parameters for the CPU, select the CPU in the Device view and use the "Properties"...
  • Page 47 Programming options 5.1 Easy to configure the hardware devices Configuring the STOP-to-RUN operation of the CPU Whenever the operating state changes from STOP to RUN, the CPU clears the process image inputs, initializes the process image outputs, and processes the startup OBs. (Therefore, any read accesses to the process-image inputs by instructions in the startup OBs will read zero rather than the current physical input value.) To read the current state of a physical input during the startup mode, you must perform an immediate read.
  • Page 48 Programming options 5.1 Easy to configure the hardware devices Configuring the operation of the I/O and communication modules To configure the operational parameters for the signal module (SM), signal board (SB), or communication module (CM), select the module in the Device view and use the "Properties" tab of the inspector window.
  • Page 49: Configuring The Ip Address Of The Cpu

    Programming options 5.1 Easy to configure the hardware devices Signal board (SB) • Digital inputs: Configures the individual inputs for both rising-edge detection and falling- edge detection (associating each with an event and hardware interrupt) and for "pulse catch" (to stay on after a momentary pulse) through the next update of the input process image •...
  • Page 50: Structuring Your User Program Is Easy

    Programming options 5.2 Structuring your user program is easy Parameter Description Subnet Name of the Subnet to which the device is connected. Click the "Add new subnet" button to create a new subnet. "Not connected" is the default. Two connection types are possible: The "Not connected"...
  • Page 51 Programming options 5.2 Structuring your user program is easy block (DB) that stores the data for the specific call or instance of that FB. Changing the instance DB allows a generic FB to control the operation of a set of devices. For example, one FB can control several pumps or valves, with different instance DBs containing the specific operational parameters for each pump or valve.
  • Page 52 Programming options 5.2 Structuring your user program is easy Calling block Called (or interrupting) block ① Program execution ② Instruction or event that initiates the execution of another block ③ Program execution ④ Block end (returns to calling block) You can nest the block calls for a more modular structure.
  • Page 53: Use Obs For Organizing Your User Program

    Programming options 5.2 Structuring your user program is easy 5.2.1 Use OBs for organizing your user program Organization blocks provide the structure for your program. They serve as the interface between the operating system and the user program. OBs are event-driven. An event, such as a diagnostic interrupt or a time interval, will cause the CPU to execute an OB.
  • Page 54: Fbs And Fcs Make Programming The Modular Tasks Easy

    Programming options 5.2 Structuring your user program is easy Configuring the operation of an OB You can modify the operational parameters for an OB. For example, you can configure the time parameter for a time-delay OB or for a cyclic interrupt 5.2.2 FBs and FCs make programming the modular tasks easy A function (FC) is like a subroutine.
  • Page 55: Data Blocks Provide Easy Storage For Program Data

    Programming options 5.2 Structuring your user program is easy You can associate different instance DBs with different calls of the FB. The instance DBs allow you to use one generic FB to control multiple devices. You structure your program by having one code block make a call to an FB and an instance DB.
  • Page 56 Programming options 5.2 Structuring your user program is easy Creating a new code block In this example, use the Project view to add an FC to the project. You also configure the program block to enter the instructions in ladder logic (LAD). In the Project view, select the PLC programming portal and select the PLC_1 device from the drop-down list.
  • Page 57: Powerful And Easy-To-Use Instruction Set

    Programming options 5.3 Powerful and easy-to-use instruction set Powerful and easy-to-use instruction set 5.3.1 Easy-to-use programming languages You have the option of choosing either the LAD (ladder logic) or FBD (Function Block Diagram) programming language. LAD is a graphical programming language. The representation is based on circuit diagrams. To create the logic for complex operations, you can insert branches to create the logic for parallel circuits.
  • Page 58: Providing The Basic Instructions You Expect

    Programming options 5.3 Powerful and easy-to-use instruction set Like LAD, FBD is also a graphical programming language. The representation of the logic is based on the graphical logic symbols used in Boolean algebra. Mathematical functions and other complex functions can be represented directly in conjunction with the logic boxes.
  • Page 59 Programming options 5.3 Powerful and easy-to-use instruction set Output coil Inverted output coil ● If there is power flow through an output coil, then the output bit is set to 1. ● If there is no power flow through an output coil, then the output coil bit is set to 0. ●...
  • Page 60 Programming options 5.3 Powerful and easy-to-use instruction set AND box (FBD) OR box (FBD) XOR box (FBD) ● All inputs of an AND box must be TRUE for the output to be TRUE. ● Any input of an OR box must be TRUE for the output to be TRUE. ●...
  • Page 61 Programming options 5.3 Powerful and easy-to-use instruction set Move and Block Move instructions You use the move instructions to copy data elements to a new memory address and convert from one data type to another. The source data is not changed by the move process. MOVE copies a data element stored at a specified address to a new address.
  • Page 62 Programming options 5.3 Powerful and easy-to-use instruction set The CTU counts up by 1 when the value of parameter CU changes from 0 to 1. The figure shows a CTU timing diagram with an unsigned integer count value (where PV = 3). •...
  • Page 63 Programming options 5.3 Powerful and easy-to-use instruction set Timers You use the timer instructions to create programmed time delays: ● TP: The pulse timer generates a pulse with a preset width time. ● TON: The on-delay timer output Q is set to ON after a preset time delay. ●...
  • Page 64 Programming options 5.3 Powerful and easy-to-use instruction set TON timer On-delay timing diagram TOF timer Off-delay timing diagram TONR timer On-delay retentive timing diagram Easy Book Manual, 05/2009, A5E02486774-01...
  • Page 65 Programming options 5.3 Powerful and easy-to-use instruction set S7-1200 provides powerful instructions In addition to the basic instructions, S7-1200 also provides an impressive set of instructions that help you easily resolve complex control applications. The following instructions are just a sampling of the power packed into the S7-1200.
  • Page 66 Programming options 5.3 Powerful and easy-to-use instruction set Motion control instructions: The motion control instructions use an associated technology data block and the dedicated PTO (pulse train outputs) of the CPU to control the motion on an axis. For information about the operation of the motion control instructions, see the online information system of STEP 7 Basic.
  • Page 67: Other Features To Make Programming Easy

    Programming options 5.4 Other features to make programming easy Other features to make programming easy 5.4.1 System memory and clock memory provide standard functionality You use the CPU properties to enable bytes for "system memory" and "clock memory". Your program logic can reference the individual bits of these functions. ●...
  • Page 68: Watch Tables Make Monitoring The User Program Easy

    Programming options 5.4 Other features to make programming easy The clock memory byte cycles the individual bits on and off at fixed intervals. The clock flags each generate a square wave pulse on the corresponding M memory bit. These bits can be used as control bits, especially when combined with edge instructions, to trigger actions in the user code on a cyclic basis.
  • Page 69: Saving Elements In The Project Or Global Libraries

    Programming options 5.4 Other features to make programming easy 5.4.3 Saving elements in the project or global libraries The global and project libraries allow you to reuse the stored objects throughout a project or across projects. For example, you can create block templates for use in different projects and adapt them to the particular requirements of your automation task.
  • Page 70: Using The "Call Path" To Debug Your User Program

    Programming options 5.4 Other features to make programming easy The cross-reference list provides an overview of the use of memory addresses and tags within the user program. ● When creating and changing a program, you retain an overview of the operands, tags and block calls you have used.
  • Page 71 Programming options 5.4 Other features to make programming easy You can selectively display only the blocks causing conflicts within the call structure. Conflicts are caused by the following conditions: ● Blocks executing any calls with older or newer code time stamps. ●...
  • Page 73: Communications

    ● Programming device with STEP 7 Basic ● HMI devices ● Other CPUs or non-Siemens devices using standard TCP communications protocols transmission block (T-block) instructions Direct connection: Programming device connected to a CPU •...
  • Page 74: Profinet Instructions (T-Blocks)

    HMI devices. Note The PROFINET port on the CPU does not contain an Ethernet switching device. You can use a rack-mounted Siemens CSM1277 4-port Ethernet switch to connect your CPUs and HMI devices. PROFINET instructions (T-blocks) Use the T-block instructions only in a program cycle OB (such as OB 1).
  • Page 75 Communications 6.1 PROFINET instructions (T-blocks) Note Due to the asynchronous processing of TSEND_C, you must keep the data in the sender area consistent until the DONE parameter or the ERROR parameter assumes the values TRUE. For TSEND_C, a TRUE state at the parameter DONE means that the data was sent successfully.
  • Page 76: Ptp, Uss, And Modbus Communication Protocols

    Communications 6.2 PtP, USS, and Modbus communication protocols PtP, USS, and Modbus communication protocols The CPU supports the PtP protocol for character-based serial communication, in which the user application completely defines and implements the protocol of choice. PtP enables a wide variety of possibilities: •...
  • Page 77: Ptp Instructions

    Communications 6.2 PtP, USS, and Modbus communication protocols 6.2.1 PtP instructions The PORT_CFG, SEND_CFG, and RCV_CFG instructions allow you to change the configuration from your user program. • PORT_CFG changes the port parameters such as baud rate. • SEND_CFG changes the configuration of serial transmission parameters.
  • Page 78: Library Of Uss Instructions

    Communications 6.2 PtP, USS, and Modbus communication protocols 6.2.2 Library of USS instructions The USS library supports the USS protocol and provides the functions that are specifically designed for communicating with drives over the RS485 port of a CM module. You can control the physical drive and the read/write drive parameters with the USS library.
  • Page 79 Communications 6.2 PtP, USS, and Modbus communication protocols The USS_RPM instruction reads a parameter from the drive. Execute the USS_RPM from the program cycle OB. The USS_WPM instruction modifies a parameter in the drive. Execute the USS_WPM from the program cycle OB. Minimize the number of EEPROM write operations to extend the EEPROM life.
  • Page 80: Library Of Modbus Instructions

    Communications 6.2 PtP, USS, and Modbus communication protocols 6.2.3 Library of Modbus instructions The MB_COMM_LOAD instruction configures a port on the CM module for Modbus RTU protocol communications. You can use either the RS232 or the RS485 CM module. Your user program must execute the MB_COMM_LOAD to configure a port before either a MB_SLAVE or a MB_MASTER instruction can communicate with that port.
  • Page 81: Using The Pulse Generators Of The S7-1200

    Using the pulse generators of the S7-1200 You can configure the outputs of the CPU or signal board (SB) to function as a pulse generator or pulse-train output (PTO). The pulse-width modulation (PWM) instruction and the basic motion instruction use these outputs. Note Pulse-train outputs cannot be used by other instructions in the user program.
  • Page 82: High-Speed Counters

    Using the pulse generators of the S7-1200 7.1 High-speed counters High-speed counters A high-speed counter (HSC) can be used as an input for an incremental shaft encoder. The shaft encoder provides a specified number of counts per revolution and a reset pulse that occurs once per revolution.
  • Page 83 Using the pulse generators of the S7-1200 7.1 High-speed counters Description Default Input Assignment Function HSC1: Built In I0.0 I0.1 I0.3 or Signal Board I4.0 I4.1 or monitor PTO 0 PTO 0 Pulse PTO 0 Direction HSC2: Built In I0.2 I0.3 I0.1 or monitor PTO 1...
  • Page 84 Using the pulse generators of the S7-1200 7.1 High-speed counters Configuration of the HSC The CPU allows you to configure up to 6 high-speed counters. You edit the "Properties" of the CPU to configure the parameters of each individual HSC. Configure the parameters for the high-speed counters by editing the "Properties"...
  • Page 85 Using the pulse generators of the S7-1200 7.1 High-speed counters Using the CTRL_HSC instruction The CTRL_HSC instruction controls the high-speed counters that are used to count events that occur faster than the CPU scan rate. While the counting rate of the CTU, CTD, and CTUD counter instructions is limited by the CPU scan rate, the high-speed counters operate asynchronously to the CPU scan and allow counting events up to a 100 kHz count rate (for HSC 1, 2, or 3 and onboard CPU count input configuration).
  • Page 86: Pulse-Width Modulation (Pwm)

    Using the pulse generators of the S7-1200 7.2 Pulse-width modulation (PWM) ● Set the reference value to a NEW_RV value ● Set the Period value (for frequency measurement mode) to a NEW_PERIOD value If the following boolean flag values are set to 1 when the CTRL_HSC instruction is executed, the corresponding NEW_xxx value is loaded to the counter.
  • Page 87 Using the pulse generators of the S7-1200 7.2 Pulse-width modulation (PWM) Configuring the pulse generators The two pulse generators are mapped to specific digital outputs as shown in the following table. You can use onboard CPU outputs, or you can use the optional signal board outputs. The output point numbers are shown in the following table (assuming the default output configuration).
  • Page 88 Using the pulse generators of the S7-1200 7.2 Pulse-width modulation (PWM) Using the CTRL_PWM instruction When placing a CTRL_PWM instruction into the program editor, a DB will be assigned. A data block (DB) is used by the CTRL_PWM instruction to store parameter information. The data block parameters are controlled by the CTRL_PWM instruction.
  • Page 89: Online Functionality

    Online functionality Downloading a permanent IP address to an online CPU To permanently assign an IP address, you must configure the IP address in the Device configuration, save the configuration, and download it to the CPU. An IP address that has been downloaded as part of the device configuration will not be lost on a power cycle of the PLC.
  • Page 90: Going Online And Connecting To A Cpu

    Online functionality 8.2 Going online and connecting to a CPU Going online and connecting to a CPU An online connection between the programming device and a target system is required for loading programs and project engineering data to the target system as well as for activities such as the following: ●...
  • Page 91: Interacting With The Online Cpu

    Online functionality 8.3 Interacting with the online CPU Interacting with the online CPU The Online and Diagnostics portal provides an operating panel for changing the operating mode of the online CPU. The "Online tools" task card displays a CPU panel that shows the operating mode of the online CPU.
  • Page 92: Uploading From The Online Cpu

    Online functionality 8.4 Uploading from the online CPU Uploading from the online CPU Uploading the code blocks from an online CPU STEP 7 provides two methods for uploading the code blocks of the user program from an online CPU. Using the Project navigation, you can drag and drop the code blocks from the online CPU to a CPU in your off-line project.
  • Page 93 Online functionality 8.4 Uploading from the online CPU Using the "unspecified CPU" to upload the hardware configuration If you have a physical CPU that you can connect to the programming device, it is easy to upload the configuration of the hardware. You must first connect the CPU to your programming device, and you must create a new project.
  • Page 94: Displaying The Diagnostic Events

    Online functionality 8.5 Displaying the diagnostic events Displaying the diagnostic events The CPU supports a diagnostic buffer which contains an entry for each diagnostic event. Each entry includes a date and time the event occurred, an event category, and an event description.
  • Page 95: Forcing Variables In The Cpu

    Online functionality 8.7 Forcing variables in the CPU Note The digital I/O points used by the high-speed counter (HSC), pulse-width modulation (PWM), and pulse-train output (PTO) devices are assigned during device configuration. When digital I/O point addresses are assigned to these devices, the values of the assigned I/O point addresses cannot be modified by the Force function of the watch table.
  • Page 96 Online functionality 8.7 Forcing variables in the CPU When an input or output is forced in a watch table, the force actions become part of the user program. If you close STEP 7 Basic, the forced elements remain active for the user program being executed by the CPU program until they are cleared.
  • Page 97: Technical Specifications

    ● EC Directive 94/9/EC (ATEX) "Equipment and Protective Systems Intended for Use in Potentially Explosive Atmosphere – EN 60079-15:2005: Type of Protection 'n' The CE Declaration of Conformity is held on file available to competent authorities at: Siemens AG IA AS RD ST PLC Amberg Werner-von-Siemens-Str. 50 D92224 Amberg Germany Underwriters Laboratories Inc.
  • Page 98 2064 (Class A) Maritime approval: The S7-1200 products are periodically submitted for special agency approvals related to specific markets and applications. Consult your local Siemens representative if you need additional information related to the latest listing of exact approvals by part number.
  • Page 99 Technical specifications A.1 General specifications Electromagnetic compatibility: Electromagnetic Compatibility (EMC) is the ability of an electrical device to operate as intended in an electromagnetic environment and to operate without emitting levels of electromagnetic interference (EMI) that may disturb other electrical devices in the vicinity.
  • Page 100 Technical specifications A.1 General specifications Environmental Conditions - Operating Ambient temperature range 0° C to 55° C horizontal mounting (Inlet Air 25 mm below unit) 0° C to 45° C vertical mounting 95% non-condensing humidity Atmospheric pressure 1080 to 795 hPa (Corresponding to an altitude of -1000 to 2000m) Concentration of contaminants : <...
  • Page 101: Cpu Modules

    Technical specifications A.2 CPU modules Relay electrical service life: The typical performance data supplied by relay vendors is shown below. Actual performance may vary depending upon your specific application. An external protection circuit that is adapted to the load will enhance the service life of the contacts. ①...
  • Page 102 Technical specifications A.2 CPU modules CPU features CPU 1211C CPU 1212C CPU 1214C User memory Work memory 25 Kbytes 25 Kbytes 50 Kbytes • • • • Load memory 1 Mbytes 1 Mbytes 2 Mbytes • • • • Retentive memory 2 Kbytes 2 Kbytes 2 Kbytes...
  • Page 103 Technical specifications A.2 CPU modules Digital inputs Description Number of inputs Number that can be on simultaneously CPU 1211C • • • CPU 1212C • • • CPU 1214C • • • Type Sink/Source (IEC Type 1 sink) Rated voltage 24 VDC at 4 mA, nominal Continuous permissible voltage 30 VDC, max.
  • Page 104 Technical specifications A.2 CPU modules Digital outputs Relay Coil to contact 1500 VAC for 1 Isolation (field side to logic) • 500 VAC for 1 minute minute Coil to logic: None • Isolation resistance 100 MΩ min. when new Isolation between open contacts 750 VAC for 1 minute Isolation groups AC/DC/Relay and DC/DC/Relay...
  • Page 105 Technical specifications A.2 CPU modules Sample wiring diagrams for the S7-1200 CPU For complete information, see the S7-1200 system manual. CPU 1214C AC/DC/Relay ① 24 VDC Sensor Power Out CPU 1214C DC/DC/DC ① 24 VDC Sensor Power Out Easy Book Manual, 05/2009, A5E02486774-01...
  • Page 106: Signal Boards

    Technical specifications A.3 Signal boards Signal boards General SB 1223 DI 2x24VDC, DQ 2x24VDC SB 1223 AQ 1x12bit Order number 6ES7 223-0BD30-0XB0 6ES7 232-4HA30-0XB0 Dimensions (W x H x D) 38 x 62 x 21 (mm) 38 x 62 x 21 (mm) Weight 40 grams 40 grams...
  • Page 107 Technical specifications A.3 Signal boards Digital Outputs SB 1223 DI 2x24VDC, DQ 2x24VDC Inductive clamp voltage L+ minus 48 V, 1 W dissipation Switching delay 2 μs max. off-to-on; 10 μs max. on-to-off Behavior on RUN to STOP Last value or substitute value (default value 0) Cable length (meters) 500 shielded, 150 unshielded Analog Outputs...
  • Page 108: Digital Signal Modules

    Technical specifications A.4 Digital signal modules Digital signal modules The following specifications provide a sample of the digital SM modules available for S7- 1200. Refer to the S7-1200 system manual for more information. Sample SM 1221 digital input signal modules General SM 1221 DI 8x24VDC SM 1221 DI 16x24VDC...
  • Page 109 Technical specifications A.4 Digital signal modules SM 1221 DI 8 x 24 VDC SM 1221 DI 16 x 24 VDC Sample SM 1222 output-only signal modules General SM1222 DQ 16xRelay SM1222 DQ 16x24VDC Number and type of outputs 16 relay, dry contact 16 solid state - MOSFET Dimensions (W x H x D) 45 x 100 x 75 (mm)
  • Page 110 Technical specifications A.4 Digital signal modules Digital outputs SM1222 DQ 16xRelay SM1222 DQ 16x24VDC Surge current 7 A with contacts closed 8 A for 100 ms max. Overload protection Isolation (field side to logic) Coil to contact: 1500 VAC for 1 minute 500 VAC for 1 minute Coil to logic: None Isolation resistance...
  • Page 111 Technical specifications A.4 Digital signal modules Sample SM 1223 combination digital input/output signal modules General SM 1223 SM 1223 DI 16x24 VDC, DQ 16xRelay DI 16x24 VDC, DQ16x24 VDC Number and type of inputs 16 sink/source (IEC Type 1 sink) 16 sink/source (IEC Type 1 sink) (Number of inputs on simultaneously) (16)
  • Page 112 Technical specifications A.4 Digital signal modules Digital outputs SM 1223 SM 1223 DI 16x24 VDC, DQ 16xRelay DI 16x24 VDC, DQ16x24 VDC Isolation resistance 100 MΩ min. when new Isolation between open contacts 750 VAC for 1 minute Isolation groups Current per common (max.) Inductive clamp voltage L+ minus 48 V, 1 W dissipation...
  • Page 113: Analog Signal Modules

    Technical specifications A.5 Analog signal modules Analog signal modules The following specifications provide a sample of the analog SM modules available for S7- 1200. Refer to the S7-1200 system manual for more information. Sample analog signal modules General SM 1231 SM 1234 SM 1232 AI 4x13bit...
  • Page 114 Technical specifications A.5 Analog signal modules Analog outputs Description Type of outputs Voltage or current Range ±10 V or 0 to 20 mA Resolution Voltage: 14 bits Current: 13 bits Full scale range (data word) Voltage: -27,648 to 27,648 Current: 0 to 27,648 Accuracy (25°C / 0 to 55°C) ±0.3% / ±0.6% of full scale Settling time (95% of new value)
  • Page 115 Technical specifications A.5 Analog signal modules SM 1231 AI x 13 Bit SM 1234 AI 4 x 13 Bit SM 1232 AQ 2 x 14 bit Easy Book Manual, 05/2009, A5E02486774-01...
  • Page 116: Communication Modules

    Technical specifications A.6 Communication modules Communication modules The following specifications provide a sample of the CM modules available for S7-1200. Refer to the S7-1200 system manual for pin-outs and other information. General CM 1241 RS485 CM 1241 RS232 Dimensions (W x H x D) 30 x 100 x 75 (mm) 30 x 100 x 75 mm Weight...
  • Page 117: Index

    Index Device configuration, 41 Communication module (CM) Comparison chart, 9 Communication modules Accessing the online help, 14 RS232 and RS485, 76 Adding a device Communications module (CM) Unspecific CPU, 42, 93 specifications, 116 Analog signal module specifications, 113 Communications module (CM), USS library, 78 ATEX approval, 98 Compare instructions, 60 Comparison chart...
  • Page 118 Index operating panel for online, 91 Environments Overview, 7 industrial, 98 Password protection, 39 Ethernet PROFINET, 49 IP address, 50 Program execution, 31 Network connection, 45 Security levels, 39 Ethernet communication, 74 Startup parameters, 47 Ethernet instructions Startup processing, 47 TRCV_C, 75 Thermal zone, 11 TSEND_C, 74...
  • Page 119 Index Configuring the CPU, 46, 48 timer: TP (pulse timer), 63 Configuring the modules, 46, 48 TRCV_C, 75 Discover, 42, 93 TSEND_C, 74 Ethernet port, 49 uninterruptible move (UMOVE_BLK), 61 Network connection, 45 IP address, 49, 50 PROFINET, 49 assigning, 89 Help, 14 IP router, 50 Displaying the contents and index, 14...
  • Page 120 Index Online help, 14 Project Displaying the contents and index, 14 Restricting access to a CPU, 39 Expanding the help window, 14 Project view, 13, 14 Printing, 16 Add modules, 44 Undocking, 14 Add new device, 43 Online, going online, 90 Configuring the CPU parameters, 46, 48 Organization block Configuring the Ethernet port, 49...
  • Page 121 Index IP address, 50 SM 1222 wiring diagram, 110 Mounting dimensions, 11 SM 1223 signal module, 111 Network connection, 45 SM 1223 wiring diagram, 112 Password protection, 39 Startup parameters, 47 PROFINET, 49 STEP 7 Startup parameters, 47 Add modules, 44 Thermal zone, 11 Add new device, 43 SB 1223 specifications, 106...
  • Page 122 Index Portal view, 13 Wiring diagrams Project view, 14 Analog signal modules, 115 USS protocol library, 78 SM 1221 signal module, 109 SM 1222 signal module, 110 SM 1223 signal module, 112 Watch tables, 68, 94 Easy Book Manual, 05/2009, A5E02486774-01...

Table of Contents