Page 1
___________________ Easy Book Preface ___________________ Introducing the powerful and flexible S7-1200 ___________________ STEP 7 makes the work easy SIMATIC ___________________ Getting started S7-1200 ___________________ Easy Book PLC concepts made easy ___________________ Easy to create the device configuration Manual ___________________ Programming made easy ___________________ Easy to communicate between devices...
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.
Preface Welcome to the world of S7-1200. 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. The compact design, low cost, and powerful features make the S7-1200 a perfect solution for controlling small applications.
Page 4
With My Documentation Manager, you can drag and drop topics from various documents to create your own custom manual. The customer support entry portal (http://support.automation.siemens.com) provides a link to My Documentation Manager under mySupport. ● The customer support web site also provides podcasts, FAQs, and other helpful documents for S7-1200 and STEP 7.
Page 5
Siemens products that you are using, they can provide the fastest and most efficient answers to any problems you might encounter.
Page 6
Preface Easy Book Manual, 03/2014, A5E02486774-AF...
Table of contents Preface ..............................3 Introducing the powerful and flexible S7-1200 ..................15 Introducing the S7-1200 PLC ....................... 15 Expansion capability of the CPU....................18 S7-1200 modules ......................... 21 Basic HMI panels ......................... 22 Mounting dimensions and clearance requirements ..............23 New features ..........................
Page 8
Table of contents 3.10 Create an HMI screen ......................... 49 3.11 Select a PLC tag for the HMI element ..................50 PLC concepts made easy ........................51 Tasks performed every scan cycle ..................... 51 Operating modes of the CPU ...................... 52 Execution of the user program ....................
Page 9
Table of contents 6.3.4 Math made easy with the Calculate instruction ................. 103 6.3.5 Timers ............................104 6.3.6 Counters ............................. 109 6.3.7 Pulse-width modulation (PWM) ....................111 Easy to create data logs ......................112 Easy to monitor and test your user program ................114 6.5.1 Watch tables and force tables ....................
Page 10
Table of contents 7.10.5 Modbus instructions ........................167 PID is easy ............................169 Inserting the PID instruction and technology object ..............171 PID_Compact instruction ......................173 PID_Compact instruction ErrorBit parameters ................177 PID_3Step instruction ........................ 179 PID_3Step instruction ErrorBit parameters ................186 Configuring the PID controller ....................
Page 11
Table of contents 10.6.3.2 Configuration of homing parameters ..................249 10.6.3.3 Sequence for active homing ...................... 251 10.7 Commissioning........................... 252 Easy to use the online tools......................... 257 11.1 Going online and connecting to a CPU ..................257 11.2 Interacting with the online CPU ....................258 11.3 Going online to monitor the values in the CPU ................
Page 12
Table of contents A.3.4 SM 1223 VDC digital input/output (DI / DQ) ................299 A.3.5 SM 1223 120/230 VAC input / Relay output ................300 Specifications for the digital inputs and outputs ................ 302 A.4.1 24 VDC digital inputs (DI) ......................302 A.4.2 120/230 VAC digital AC inputs ....................
Table of contents Exchanging a V3.0 CPU for a V4.0 CPU ..................... 345 Exchanging a V3.0 CPU for a V4.0 CPU ................... 345 Index..............................349 Easy Book Manual, 03/2014, A5E02486774-AF...
Page 14
Table of contents Easy Book Manual, 03/2014, A5E02486774-AF...
Introducing the powerful and flexible S7-1200 Introducing the S7-1200 PLC 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 the S7-1200 a perfect solution for controlling a wide variety of applications.
Page 16
Introducing the powerful and flexible S7-1200 1.1 Introducing the S7-1200 PLC Table 1- 1 Comparing the CPU models Feature CPU 1211C CPU 1212C CPU 1214C CPU 1215C CPU 1217C Physical size (mm) 90 x 100 x 75 90 x 100 x 75 110 x 100 x 75 130 x 100 x 75 150 x 100 x 75...
Page 17
Introducing the powerful and flexible S7-1200 1.1 Introducing the S7-1200 PLC Table 1- 2 Blocks, timers, and counters supported by S7-1200 Element Description Blocks Type OB, FB, FC, DB Size 30 Kbytes (CPU 1211C) 50 Kbytes (CPU 1212C) 64 Kbytes (CPU 1214C, CPU 1215C, and CPU 1217C) Quantity Up to 1024 blocks total (OBs + FBs + FCs + DBs) Nesting depth...
Introducing the powerful and flexible S7-1200 1.2 Expansion capability of the CPU Expansion capability of the CPU The S7-1200 family provides a variety of modules and plug-in boards for expanding the capabilities of the CPU with additional I/O or other communication protocols. For detailed information about a specific module, see the technical specifications (Page 281).
Page 19
Introducing the powerful and flexible S7-1200 1.2 Expansion capability of the CPU Table 1- 4 Analog signal modules and signal boards Type Input only Output only Combination In/Out ③ 1 x 12 bit Analog In 1 x Analog Out • •...
Page 20
Introducing the powerful and flexible S7-1200 1.2 Expansion capability of the CPU Table 1- 6 Technology modules Module Type Description ④ SM 1278 4xIO-Link Master Supports 4 IO link slaves IO Link Table 1- 7 Other boards Module Description ③ Plugs into expansion board interface on front of CPU.
Introducing the powerful and flexible S7-1200 1.3 S7-1200 modules S7-1200 modules Table 1- 8 S7-1200 expansion modules Type of module Description ① The CPU supports one plug-in Status LEDs on expansion board: the SB ② Removable user A signal board (SB) provides •...
Introducing the powerful and flexible S7-1200 1.4 Basic HMI panels Basic HMI panels The SIMATIC HMI Basic Panels provide touch-screen devices for basic operator control and monitoring tasks. All panels have a protection rating for IP65 and have CE, UL, cULus, and NEMA 4x certification.
Introducing the powerful and flexible S7-1200 1.5 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 System Manual Refer to the for specific requirements and guidelines for installation.
Page 24
Introducing the powerful and flexible S7-1200 1.5 Mounting dimensions and clearance requirements Table 1- 9 Mounting dimensions (mm) S7-1200 Devices Width A (mm) Width B (mm) Width C (mm) CPU 1211C and CPU 1212C CPU 1214C CPU 1215C 65 (top) Bottom: C1: 32.5 C2: 65...
Page 25
WARNING Installation requirements for S7-1200 PLCs The SIMATIC S7-1200 PLCs are Open Type Controllers. It is required that you install the S7-1200 in a housing, cabinet, or electric control room. Entry to the housing, cabinet, or electric control room should be limited to authorized personnel.
Page 26
Introducing the powerful and flexible S7-1200 1.5 Mounting dimensions and clearance requirements ① ③ Side view Vertical installation ② ④ Horizontal installation Clearance area WARNING Installation or removal of S7-1200 or related equipment with the power applied could cause electric shock or unexpected operation of equipment. Failure to disable all power to the S7-1200 and related equipment during installation or removal procedures could result in death, severe personal injury and/or property damage due to electric shock or unexpected equipment operation.
Introducing the powerful and flexible S7-1200 1.6 New features New features The following features are new in this release: ● The S7-1200 supports new Organization Blocks (OBs) (Page 89) with differences in priority levels and interrupts. ● The Web server (Page 193) now supports the display of standard Web pages and user- defined Web pages from a mobile device as well as from a PC.
Page 28
Introducing the powerful and flexible S7-1200 1.6 New features New modules for the S7-1200 New modules expand the power of the S7-1200 CPU and provide the flexibility to meet your automation needs: ● New CPU 1217C DC/DC/DC with high-speed differential points ●...
STEP 7 makes the work easy STEP 7 provides a user-friendly environment to develop controller logic, configure HMI visualization, and setup network communication. To help increase your productivity, STEP 7 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).
STEP 7 makes the work easy 2.1 Easy to insert instructions into your user program Easy to insert instructions into your user program STEP 7 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.
STEP 7 makes the work easy 2.3 Easy to add inputs or outputs to LAD and FBD instructions Easy to add inputs or outputs to LAD and FBD instructions Some of the instructions allow you to create additional inputs or outputs. ●...
STEP 7 makes the work easy 2.5 Easy to change the operating mode of the CPU Easy to change the operating mode of the CPU The CPU does not have a physical switch for changing the operating mode (STOP or RUN). Use the "Start CPU"...
STEP 7 makes the work easy 2.6 Easy to modify the appearance and configuration of STEP 7 Easy to modify the appearance and configuration of STEP 7 You can select a variety of settings, such as the appearance of the interface, language, or the folder for saving your work.
STEP 7 makes the work easy 2.8 Easy to select a version of an instruction Easy to select a version of an instruction The development and release cycles for certain sets of instructions (such as Modbus, PID and motion) have created multiple released versions for these instructions. To help ensure compatibility and migration with older projects, STEP 7 allows you to choose which version of instruction to insert into your user program.
STEP 7 makes the work easy 2.10 Changing the call type for a DB To toggle between the editors that have been opened, click the icons in the editor bar. 2.10 Changing the call type for a DB STEP 7 allows you to easily create or change the association of a DB for an instruction or an FB that is in an FB.
STEP 7 makes the work easy 2.11 Temporarily disconnecting devices from a network 2.11 Temporarily disconnecting devices from a network You can disconnect individual network devices from the subnet. Because the configuration of the device is not removed from the project, you can easily restore the connection to the device.
STEP 7 makes the work easy 2.12 Easy to virtually "unplug" modules without losing the configuration 2.12 Easy to virtually "unplug" modules without losing the configuration STEP 7 provides a storage area for "unplugged" modules. You can drag a module from the rack to save the configuration of that module.
Page 38
STEP 7 makes the work easy 2.12 Easy to virtually "unplug" modules without losing the configuration Easy Book Manual, 03/2014, A5E02486774-AF...
Getting started Create a project Working with STEP 7 is easy! See how quickly you can get started with creating a project. In the Start portal, click the "Create new project" task. Enter a project name and click the "Create" button. After creating the project, select the Devices &...
Getting started 3.2 Create tags for the I/O of the CPU Create tags for the I/O of the CPU "PLC tags" are the symbolic names for I/O and addresses. After you create a PLC tag, STEP 7 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.
Getting started 3.3 Create a simple network in your user program With the tags entered into the PLC tag table, the tags are available to your user program. Create a simple network in your user program Your program code consists of instructions that the CPU executes in sequence. For this example, use ladder logic (LAD) to create the program code.
Page 42
Getting started 3.3 Create a simple network in your user program 1. Click the "Normally open contact" button on the "Favorites" to add a contact to the network. 2. For this example, add a second contact. 3. Click the "Output coil" button to insert a coil.
Getting started 3.4 Use the PLC tags in the tag table for addressing the instructions Use the PLC tags in the tag table for addressing the instructions Using the tag table, you can quickly enter the PLC tags for the addresses of the contacts and coils.
Getting started 3.5 Add a "box" instruction Add a "box" instruction 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"...
Getting started 3.6 Use the CALCULATE instruction for a complex mathematical equation Use the CALCULATE instruction for a complex mathematical equation The Calculate instruction lets you create a math function that operates on multiple input parameters to produce the result, according to the equation that you define. In the Basic instruction tree, expand the Math functions folder.
Page 46
Getting started 3.6 Use the CALCULATE instruction for a complex mathematical equation Where: (Out) Scaled output value value (in1) Analog input value value (in2) Upper limit for the scaled input value high (in3) Lower limit for the scaled input value (in4) Upper limit for the scaled output value high...
Getting started 3.7 Add an HMI device to the project Add 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" button in the Add new device"...
Getting started 3.8 Create a network connection between the CPU and HMI device Create a network connection between the CPU and HMI device Creating a network is easy! • Go to "Devices and Networks" and select the Network view to display the CPU and HMI device.
Getting started 3.10 Create an HMI screen You can use other options for creating an HMI connection: ● Dragging a PLC tag from the PLC tag table, the program editor or the device configuration editor to the HMI screen editor automatically creates an HMI connection. ●...
Getting started 3.11 Select a PLC tag for the HMI element 3.11 Select a PLC tag for the HMI element After you create the element on your screen, use the properties of the element to assign a PLC tag to the element. Click the selector button by the tag field to display the PLC tags of the CPU.
PLC concepts made easy 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.
PLC concepts made easy 4.2 Operating modes of the CPU STARTUP ① Clears the input (or "I") memory Writes Q memory to the physical outputs ② Initializes the outputs with either the last Copies the state of the physical inputs to I value or the substitute value memory ③...
PLC concepts made easy 4.3 Execution of the user program You can configure the "startup after POWER ON" setting of the CPU complete with restart method using STEP 7. This configuration item appears under the Device Configuration for the CPU under Startup. At power up, the CPU performs a sequence of power-up diagnostic checks and system initialization.
PLC concepts made easy 4.3 Execution of the user program The size of the user program, data, and configuration is limited by the available load memory and work memory in the CPU (Page 15). There is no specific limit to the number of each individual OB, FC, FB and DB block.
PLC concepts made easy 4.3 Execution of the user program 4.3.2 OBs help you structure your user program OBs control the execution of the user program. Specific events in the CPU trigger the execution of an organization block. OBs cannot call each other or be called from an FC or FB.
Page 56
PLC concepts made easy 4.3 Execution of the user program Consider the following two cases where interrupt events trigger a cyclic OB and a time delay OB. In both cases, the time delay OB (OB201) has no process image partition assignment and executes at priority 4.
Page 57
PLC concepts made easy 4.3 Execution of the user program Table 4- 1 OB events Event Quantity allowed Default OB priority Program cycle 1 program cycle event Multiple OBs allowed Startup 1 startup event Multiple OBs allowed Time delay Up to 4 time events 1 OB per event Cyclic interrupt Up to 4 events...
PLC concepts made easy 4.4 Memory areas, addressing and data types Table 4- 2 Additional events Event Description CPU action I/O access error Direct I/O read/write error The CPU logs the first occurrence in the diagnostic buffer and stays in RUN mode. Max cycle time error CPU exceeds the configured cycle time The CPU logs the error in the diagnostic buffer and...
Page 59
PLC concepts made easy 4.4 Memory areas, addressing and data types An optional SIMATIC memory card provides an alternative memory for storing your user program or a means for transferring your program. If you use the memory card, the CPU runs the program from the memory card and not from the memory in the CPU.
PLC concepts made easy 4.4 Memory areas, addressing and data types 4.4.1 Data types supported by the 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 61
PLC concepts made easy 4.4 Memory areas, addressing and data types Data types Description Array and structure Array contains multiple elements of the same data type. Arrays can be created in the block • data types interface editors for OB, FC, FB, and DB. You cannot create an array in the PLC tags editor. Struct defines a structure of data consisting of other data types.
PLC concepts made easy 4.4 Memory areas, addressing and data types 4.4.2 Addressing memory areas STEP 7 facilitates symbolic programming. You create symbolic names or "tags" for the addresses of the data, whether as PLC tags relating to memory addresses and I/O points or as local variables used within a code block.
Page 63
PLC concepts made easy 4.4 Memory areas, addressing and data types Each different memory location has a unique address. Your user program uses these addresses to access the information in the memory location. The absolute address consists of the following elements: ●...
PLC concepts made easy 4.4 Memory areas, addressing and data types Configuring the I/O in the CPU and I/O modules When you add a CPU and I/O modules to your configuration screen, I and Q addresses are automatically assigned. You can change the default addressing by selecting the address field in the device configuration and typing new numbers.
PLC concepts made easy 4.4 Memory areas, addressing and data types Note Valid data types that can be accessed by slice are Byte, Char, Conn_Any, Date, DInt, DWord, Event_Any, Event_Att, Hw_Any, Hw_Device, HW_Interface, Hw_Io, Hw_Pwm, Hw_SubModule, Int, OB_Any, OB_Att, OB_Cyclic, OB_Delay, OB_WHINT, OB_PCYCLE, OB_STARTUP, OB_TIMEERROR, OB_Tod, Port, Rtm, SInt, Time, Time_Of_Day, UDInt, UInt, USInt, and Word.
Page 66
PLC concepts made easy 4.4 Memory areas, addressing and data types Declaration To overlay a parameter, declare an additional parameter directly after the parameter that is to be overlaid and select the data type "AT". The editor creates the overlay, and you can then choose the data type, struct, or array that you wish to use for the overlay.
PLC concepts made easy 4.5 Pulse outputs Rules ● Overlaying of tags is only possible in FB and FC blocks with standard access. ● You can overlay parameters for all block types and all declaration sections. ● An overlaid parameter can be used like any other block parameter. ●...
Page 68
PLC concepts made easy 4.5 Pulse outputs Note Do not exceed the maximum pulse frequency. The maximum pulse frequency of the pulse output generators is 1 MHz for the CPU 1217C and 100 KHz for CPUs 1211C, 1212C, 1214C, and 1215C; 20 KHz (for a standard SB); or 200 KHz (for a high-speed SB).
Page 69
PLC concepts made easy 4.5 Pulse outputs Description Pulse Direction PTO4 Built-in I/O Q0.6 Q0.7 SB I/O Q4.2 Q4.3 PWM4 Built-in outputs Q0.6 SB outputs Q4.3 The CPU 1211C does not have outputs Q0.4, Q0.5, Q0.6, or Q0.7. Therefore, these outputs cannot be used in the CPU 1211C.
Page 70
PLC concepts made easy 4.5 Pulse outputs Easy Book Manual, 03/2014, A5E02486774-AF...
Easy to create the device configuration You create the device configuration for your PLC by adding a CPU and additional modules to your project. ① Communications module (CM) or communication processor (CP): Up to 3, inserted in slots 101, 102, and 103 ②...
Easy to create the device configuration 5.1 Detecting the configuration for an unspecified CPU Detecting the configuration for an unspecified CPU If you are connected to a CPU, you can upload the configuration of that CPU, including any modules, to your project.
Easy to create the device configuration 5.2 Adding a CPU to the configuration 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 click "OK" to add the CPU to the project.
Easy to create the device configuration 5.3 Changing a device Changing a device You can change the device type of a configure CPU or module. From Device configuration, right-click the device and select "Change device" from the context menu. From the dialog, navigate to and select the CPU or module that you want to replace.
Page 75
Easy to create the device configuration 5.4 Adding modules to the configuration Table 5- 1 Adding a module to the device configuration Module Select the module Insert the module Result SB, BB or CM or CP Easy Book Manual, 03/2014, A5E02486774-AF...
Easy to create the device configuration 5.5 Configuring the operation of the CPU and modules Configuring the operation of the CPU and modules To configure the operational parameters for the CPU, select the CPU in the Device view and use the "Properties" tab of the inspector window. You can configure the following CPU properties: •...
Easy to create the device configuration 5.5 Configuring the operation of the CPU and modules • In STOP mode • In RUN mode • In the previous mode (prior to the power cycle) The CPU performs a warm restart before going to RUN mode. Warm restart resets all non- retentive memory to the default start values, but the CPU retains the current values stored in the retentive memory.
Page 78
Easy to create the device configuration 5.5 Configuring the operation of the CPU and modules The CPU initializes these bytes on the transition from STOP mode to STARTUP mode. The bits of the clock memory change synchronously to the CPU clock throughout the STARTUP and RUN modes.
Page 79
Easy to create the device configuration 5.5 Configuring the operation of the CPU and modules Table 5- 3 Clock memory Bit number Tag name Period (s) Frequency (Hz) 0.625 1.25 Because clock memory runs asynchronously to the CPU cycle, the status of the clock memory can change several times during a long cycle.
Easy to create the device configuration 5.6 Configuring the IP address of the CPU Communication module (CM) and communication board (CB) • Port configuration: Configure the communication parameters, such as baud rate, parity, data bits, stop bits, and wait time. ●...
Page 81
Easy to create the device configuration 5.6 Configuring the IP address of the CPU The "Properties" window displays the settings for the programming device. After determining the IP address and subnet mask for the CPU, enter the IP address for the CPU and for the router (if applicable).
Easy to create the device configuration 5.7 Protecting access to the CPU or code block is easy Protecting access to the CPU or code block is easy The CPU provides four 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 83
Authorized users can perform operating mode changes, writes to PLC data, and firmware updates. Siemens recommends that you observe the following security practices: • Password protect CPU access levels and Web server user IDs with strong passwords.
Easy to create the device configuration 5.7 Protecting access to the CPU or code block is easy When you download this configuration to the CPU, the CPU permits PUT/GET communication from remote partners 5.7.1 Know-how protection Know-how protection allows you to prevent one or more code blocks (OB, FB, FC, or DB) in your program from unauthorized access.
Easy to create the device configuration 5.7 Protecting access to the CPU or code block is easy After entering and confirming the password, click "OK". 5.7.2 Copy protection An additional security feature allows you to bind program blocks for use with a specific memory card or CPU.
Page 86
Easy to create the device configuration 5.7 Protecting access to the CPU or code block is easy 1. After opening the code block, select "Protection". 2. From the drop-down list under "Copy protection" task, select the option to bind the code block either to a memory card or to a specific CPU.
Programming made easy Easy to design your user program When you create a user program for the automation tasks, you insert the instructions for the program into code blocks (OB, FB, or FC). Choosing the type of structure for your user program Based on the requirements of your application, you can choose either a linear structure or a modular structure for creating your user program.
Page 88
Programming made easy 6.1 Easy to design your user program Calling block (or interrupted block) Called FB or BC (or interrupting OB) ① Program execution ② Instruction (or interrupting event) that initiates the execution of another block ③ Program execution ④...
Programming made easy 6.1 Easy to design your user program 6.1.1 Use OBs for organizing your user program Organization blocks provide 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, causes the CPU to execute an OB.
Programming made easy 6.1 Easy to design your user program Creating additional OBs You can create multiple OBs for your user program, even for the program cycle and startup OB events. Use the "Add new block" dialog to create an OB and enter a name for your OB. If you create multiple program cycle OBs for your user program, the CPU executes each program cycle OB in numerical sequence, starting with the program cycle OB with the lowest number (such as OB 1).
Page 91
Programming made easy 6.1 Easy to design your user program A function block (FB) is like a subroutine with memory. An FB is a code block whose calls can be programmed with block parameters. The FB stores the input (IN), output (OUT), and in/out (IN_OUT) parameters in variable memory that is located in a data block (DB), or "instance"...
Programming made easy 6.1 Easy to design your user program 6.1.3 Data blocks provide easy storage for program data You create data blocks (DB) in your user program to store data for the code blocks. All of the program blocks in the user program can access the data in a global DB, but an instance DB stores data for a specific function block (FB).
Programming made easy 6.1 Easy to design your user program 6.1.5 Creating reusable code blocks Use the "Add new block" dialog under "Program blocks" in the Project navigator to create OBs, FBs, FCs, and global DBs. When you create a code block, you select the programming language for the block.
Programming made easy 6.2 Easy-to-use programming languages 6.1.6 Calling a code block from another code block You can easily have any code block (OB, FB, or FC) in your user program call an FB or FC in your CPU. 1. Open the code block that will call the other block. 2.
Programming made easy 6.2 Easy-to-use programming languages To create the logic for complex operations, you can insert branches to create the logic for parallel circuits. Parallel branches are opened downwards or are connected directly to the power rail. You terminate the branches upwards. LAD provides "box"...
Programming made easy 6.2 Easy-to-use programming languages 6.2.3 SCL overview Structured Control Language (SCL) is a high-level, PASCAL-based programming language for the SIMATIC S7 CPUs. SCL supports the block structure of STEP 7. You can also include program blocks written in SCL with program blocks written in LAD and FBD. SCL instructions use standard programming operators, such as for assignment (:=), mathematical functions (+ for addition, - for subtraction, * for multiplication, and / for division).
Page 97
Programming made easy 6.2 Easy-to-use programming languages In the Interface section of the SCL code block you can declare the following types of parameters: ● Input, Output, InOut, and Ret_Val: These parameters define the input tags, output tags, and return value for the code block. The tag name that you enter here is used locally during the execution of the code block.
Programming made easy 6.3 Powerful instructions make programming easy Powerful instructions make programming easy 6.3.1 Providing the basic instructions you expect Bit logic instructions The basis of bit logic instruction is contacts and coils. Contacts read the status of a bit, while the coils write the status of the operation to a bit.
Page 99
Programming made easy 6.3 Powerful instructions make programming easy Note the following output results for power flow through output and inverted output coils: ● If there is power flow through an output coil, then the output bit is set to 1. ●...
Programming made easy 6.3 Powerful instructions make programming easy In FBD programming, the contact networks of LAD are represented by AND (&), OR (>=1), and exclusive OR (x) box networks where you can specify bit values for the box inputs and outputs.
Programming made easy 6.3 Powerful instructions make programming easy Table 6- 2 MOVE, MOVE_BLK and UMOVE_BLK instructions LAD / FBD Description Copies a data element stored at a specified out1 := in; address to a new address or multiple addresses. To add another output in LAD or FBD, click the icon by the output parameter.
Page 102
Programming made easy 6.3 Powerful instructions make programming easy Table 6- 4 Round and Truncate instructions LAD / FBD Description Converts a real number (Real or LReal) to an integer. The instruction out := ROUND (in); rounds the real number to the nearest integer value (IEEE - round to nearest).
Programming made easy 6.3 Powerful instructions make programming easy Table 6- 6 SCALE_X and NORM_X instructions LAD / FBD Description Scales the normalized real parameter VALUE where ( 0.0 out := SCALE_X( <= VALUE <= 1.0 ) in the data type and value range min,:=_undef_in_ specified by the MIN and MAX parameters: value:=_real_in_,...
Programming made easy 6.3 Powerful instructions make programming easy Note You also must create an input for any constants in your function. The constant value would then be entered in the associated input for the CALCULATE instruction. By entering constants as inputs, you can copy the CALCULATE instruction to other locations in your user program without having to change the function.
Page 105
Programming made easy 6.3 Powerful instructions make programming easy When you create the DB, you can also use a multi-instance DB. Because the timer data is contained in a single DB and does not require a separate DB for each timer, the processing time for handling the timers is reduced.
Page 107
Programming made easy 6.3 Powerful instructions make programming easy Table 6- 14 Data types for the parameters Parameter Data type Description Box: IN Bool TP, TON, and TONR: Coil: Power flow Box: 0=Disable timer, 1=Enable timer Coil: No power flow=Disable timer, Power flow=Enable timer TOF: Box: 0=Enable timer, 1=Disable timer Coil: No power flow=Enable timer, Power flow=Disable timer...
Page 108
Programming made easy 6.3 Powerful instructions make programming easy Timer programming The following consequences of timer operation should be considered when planning and creating your user program: ● You can have multiple updates of a timer in the same scan. The timer is updated each time the timer instruction (TP, TON, TOF, TONR) is executed and each time the ELAPSED or Q member of the timer structure is used as a parameter of another executed instruction.
Programming made easy 6.3 Powerful instructions make programming easy As long as the timer runs, the state of DB1.MyIEC_Timer.Q=1 and the Tag_Output value=1. When the Tag_Time value has elapsed, then DB1.MyIEC_Timer.Q=0 and the Tag_Output value=0. 6.3.6 Counters You use the counter instructions to count internal program events and external process events.
Page 110
Programming made easy 6.3 Powerful instructions make programming easy Table 6- 17 CTU (count up) counter LAD / FBD Operation "ctu_db".CTU( CU:=_bool_in, R:=_bool_in, PV:=_undef_in, Q=>_bool_out, CV=>_undef_out); The timing diagram shows the operation of a CTU counter with an unsigned integer count value (where PV = 3).
Programming made easy 6.3 Powerful instructions make programming easy Table 6- 19 CTUD (count up and down) counter LAD / FBD Operation "ctud_db".CTUD( CU:=_bool_in, CD:=_bool_in, R:=_bool_in, LOAD:=_bool_in, PV:=_undef_in, QU=>_bool_out, QD=>_bool_out, CV=>_undef_out); The timing diagram shows the operation of a CTUD counter with an unsigned integer count value (where PV = 4).
Programming made easy 6.4 Easy to create data logs Duty cycle can be expressed, for example, as a percentage of the cycle time or as a relative quantity (such as 0 to 1000 or 0 to 10000). The pulse width can vary from 0 (no pulse, always off) to full scale (no pulse, always on).
Page 113
Programming made easy 6.4 Easy to create data logs Table 6- 22 DataLogCreate and DataLogNewFile instructions LAD/FBD Description DataLogCreate creates and initializes a "DataLogCreate_DB"( data log file stored in the \DataLogs req:=_bool_in_, directory of the CPU. The data log file is records:=_udint_in_, created with a pre-determined fixed size.
Programming made easy 6.5 Easy to monitor and test your user program Table 6- 23 DataLogOpen and DataLogClose instructions LAD/FBD Description The DataLogOpen instruction opens a pre-existing data log "DataLogOpen_DB"( file. A data log must be opened before you can write new req:=_bool_in_, records to the log.
Programming made easy 6.5 Easy to monitor and test your user program STEP 7 also provides the capability of tracing and recording program variables based on trigger conditions. 6.5.2 Cross reference to show usage The Inspector window displays cross-reference information about how a selected object is used throughout the complete project, such as the user program, the CPU and any HMI devices.
Programming made easy 6.5 Easy to monitor and test your user program 6.5.3 Call structure to examine the calling hierarchy The call structure describes the call hierarchy of the block within your user program. It provides an overview of the blocks used, calls to other blocks, the relationships between blocks, the data requirements for each block, and the status of the blocks.
Programming made easy 6.5 Easy to monitor and test your user program 6.5.4 Diagnostic instructions to monitor the hardware 6.5.4.1 Reading the states of the LEDs on the CPU The LED instruction allows your user program to determine the state of the LEDs on the CPU.
Programming made easy 6.6 High-speed counter (HSC) High-speed counter (HSC) Use the high-speed counters (HSC) for counting events that occur faster than the OB execution rate. The CTRL_HSC instruction controls the operation of the HSC. Note If the events to be counted occur within the execution rate of the OB, use CTU, CTD, or CTUD counter instructions.
Programming made easy 6.6 High-speed counter (HSC) Some of the parameters for the HSC can be modified by your user program to provide program control of the counting process: ● Set the counting direction to a NEW_DIR value ● Set the current count value to a NEW_CV value ●...
Page 120
Programming made easy 6.6 High-speed counter (HSC) HSC input channel selection Use the following table and ensure that the CPU and SB input channels that you connect can support the maximum pulse rates in your process signals. Note CPU and SB input channels (V4 or later firmware) have configurable input filter times Earlier firmware versions had fixed HSC input channels and fixed filter times that could not be changed.
Page 121
Programming made easy 6.6 High-speed counter (HSC) Selecting the functionality for the HSC All HSCs function the same way for the same counter mode of operation. Counter mode, direction control, and initial direction are assigned in the CPU device configuration for HSC function properties.
Page 122
Programming made easy 6.6 High-speed counter (HSC) Input addresses for the HSC When you configure the CPU, you have the option to enable and configure the "Hardware inputs" for each HSC. All HSC inputs must be connected to terminals on the CPU module or optional signal board that plugs into the front of the CPU module.
Page 123
Programming made easy 6.6 High-speed counter (HSC) CPU on-board input Optional SB input (default counter mode (default 0.x) 4.x) AB-phase HSC 5 1-phase 2-phase AB-phase HSC 6 1-phase 2-phase AB-phase An SB with only 2 digital inputs provides only the 4.0 and 4.1 inputs. Table 6- 32 CPU 1212C: HSC default address assignments HSC counter mode...
Page 124
Programming made easy 6.6 High-speed counter (HSC) Table 6- 33 CPU 1214C, CPU 1215C, and CPU1217C: HSC default address assignments (on-board inputs only, see next table for optional SB addresses) HSC counter mode Digital input byte 0 Digital input byte 1 (default: 0.x) (default: 1.x) HSC 1...
Programming made easy 6.6 High-speed counter (HSC) Note The digital I/O points used by high-speed counter devices are assigned during CPU device configuration. When digital I/O point addresses are assigned to HSC devices, the values of the assigned I/O point addresses cannot be modified by the force function in a watch table. 6.6.2 Configuration of the HSC You may configure up to 6 high-speed counters.
Page 126
Programming made easy 6.6 High-speed counter (HSC) For additional information about configuring the HSC, refer to the section on configuring the CPU (Page 76). Easy Book Manual, 03/2014, A5E02486774-AF...
The S7-1200 CPU is a PROFINET IO controller and communicates with STEP 7 on a programming device, with HMI devices, and with other CPUs or non-Siemens devices. An Ethernet switch is not required for a direct connection between a programming device or HMI and a CPU.
Easy to communicate between devices 7.1 Creating a network connection Creating 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.
For security information and recommendations, please see our "Operational Guidelines for Industrial Security" on the Siemens Service and Support site. PROFINET PROFINET is used for exchanging data through the user program with other communications partners through Ethernet: ●...
Page 130
In TeleService via GPRS, an engineering station on which STEP 7 is installed communicates via the GSM network and the Internet with a SIMATIC S7-1200 station with a CP 1242-7. The connection runs via a telecontrol server that serves as an intermediary and is connected to the Internet.
Easy to communicate between devices 7.3 Number of asynchronous communication connections Number of asynchronous communication connections The CPU supports the following maximum number of simultaneous, asynchronous communication connections for PROFINET and PROFIBUS: ● 8 connections for Open User Communications (active or passive): TSEND_C, TRCV_C, TCON, TDISCON, TSEND, and TRCV.
Easy to communicate between devices 7.4 PROFINET and PROFIBUS instructions PROFINET and PROFIBUS instructions PROFINET instructions The TSEND_C and TRCV_C instructions make PROFINET communications simpler by combining the functionality of the TCON and TDISCON instructions with the TSEND or TRCV instruction. ●...
Easy to communicate between devices 7.5 PROFINET PROFINET 7.5.1 Open user communication The integrated PROFINET port of the CPU supports multiple communications standards over an Ethernet network: ● Transport Control Protocol (TCP) ● ISO on TCP (RFC 1006) ● User Datagram Protocol (UDP) Table 7- 2 Protocols and communication instructions for each Protocol...
Easy to communicate between devices 7.5 PROFINET 7.5.1.1 Ad hoc mode Typically, TCP and ISO-on-TCP receive data packets of a specified length, ranging from 1 to 8192 bytes. However, the TRCV_C and TRCV communication instructions also provide an "ad hoc" communications mode that can receive data packets of a variable length from 1 to 1472 bytes.
Page 135
Easy to communicate between devices 7.5 PROFINET The following example shows the communication between two CPUs that utilize 2 separate connections for sending and receiving the data. ● The TSEND_C instruction in CPU_1 links to the TRCV_C in CPU_2 over the first connection ("connection ID 1"...
Page 136
Easy to communicate between devices 7.5 PROFINET The following example shows the communication between two CPUs that utilize 1 connection for both sending and receiving the data. ● Each CPU uses a TCON instruction to configure the connection between the two CPUs. ●...
Easy to communicate between devices 7.5 PROFINET As shown in the following example, you can also use individual TSEND and TRCV instruction to communication over a connection created by a TSEND_C or TRCV_C instruction. The TSEND and TRCV instructions do not themselves create a new connection, so must use the DB and connection ID that was created by a TSEND_C, TRCV_C or TCON instruction.
Page 138
Easy to communicate between devices 7.5 PROFINET TCON_Param Table 7- 3 Structure of the connection description (TCON_Param) Byte Parameter and data type Description 0 … 1 block_length UInt Length: 64 bytes (fixed) 2 … 3 CONN_OUC Reference to this connection: Range of values: 1 (default) to 4095. (Word) Specify the value of this parameter for the TSEND_C, TRCV_C or TCON instruction under ID.
Page 139
Easy to communicate between devices 7.5 PROFINET Byte Parameter and data type Description 12 … 27 local_tsap_id Array [1..16] of Local address component of connection: Byte TCP and ISO-on-TCP: local port no. (possible values: 1 to • 49151; recommended values: 2000...5000): –...
Easy to communicate between devices 7.5 PROFINET 7.5.2 Configuring the Local/Partner connection path After inserting a TSEND_C, TRCV_C or TCON instruction into the user program, the inspector window displays the properties of the connection whenever you have selected any part of the instruction. Specify the communication parameters in the "Configuration" tab of the "Properties"...
Page 141
Easy to communicate between devices 7.5 PROFINET Table 7- 5 Configuring the connection path for S7 communication (Device configuration) S7 communication (GET and PUT) Connection properties For S7 communication, use the "Devices & networks" editor of the network to configure the Local/Partner connections.
Easy to communicate between devices 7.6 PROFIBUS Parameter Definition TSAP and Subnet ID: ISO on TCP (RFC 1006) and S7 communication: Local and partner CPU TSAPs in ASCII and hexadecimal formats When configuring a connection with an S7-1200 CPU for ISO-on-TCP, use only ASCII characters in the TSAP extension for the passive communication partners.
Page 143
DP V0/V1 masters. If you want to configure the module in a third-party system, there is a GSD file available for the CM 1242-5 (DP slave) on the CD that ships with the module and on Siemens Automation Customer Support (http://support.automation.siemens.com/WW/llisapi.dll?func=cslib.csinfo&lang=en&objid=6G K72425DX300XE0&caller=view) pages on the Internet.
Easy to communicate between devices 7.6 PROFIBUS 7.6.1 Communications services of the PROFIBUS CMs The PROFIBUS CMs use the PROFIBUS DP-V1 protocol. Types of communication with DP-V1 The following types of communication are available with DP-V1: ● Cyclic communication (CM 1242-5 and CM 1243-5) Both PROFIBUS modules support cyclic communication for the transfer of process data between DP slave and DP master.
Further information You can find detailed information on the PROFIBUS CMs in the manuals for the devices. You can find these on the Internet in the pages of Siemens Industrial Automation Customer Support under the following entry IDs: ● CM 1242-5 (http://support.automation.siemens.com/WW/view/en/49852105) ●...
Easy to communicate between devices 7.6 PROFIBUS Next, select "6ES7 151-1BA02-0AB0" (IM151-1 HF) from the list of part numbers, and add the ET200 S DP slave as shown in the figure below. Table 7- 8 Adding an ET200 S DP slave to the device configuration Insert the DP slave Result 7.6.4...
Page 147
● Address 0: Reserved for network configuration and/or programming tools attached to the ● Address 1: Reserved by Siemens for the first master ● Address 126: Reserved for devices from the factory that do not have a switch setting and must be re-addressed through the network ●...
Easy to communicate between devices 7.7 AS-i Parameter Description Transmission rate Transmission rate of the configured PROFIBUS network: The PROFIBUS transmission rates range from 9.6 Kbits/sec to 12 Mbits/sec. The transmission rate setting depends on the properties of the PROFIBUS nodes being used.
Easy to communicate between devices 7.7 AS-i 7.7.1 Adding the AS-i master CM 1243-2 and AS-i slave Use the hardware catalog to add AS-i master CM1243-2 modules to the CPU. These modules are connected to the left side of the CPU, and a maximum of three AS-i master CM1243-2 modules can be used.
Easy to communicate between devices 7.7 AS-i 7.7.2 Assigning an AS-i address to an AS-i slave Configuring the AS-i slave interface To configure parameters for the AS-i interface, click the yellow AS-i box on the AS-i slave, and the "Properties" tab in the inspector window displays the AS-i interface. ①...
Page 151
Easy to communicate between devices 7.7 AS-i In the example below, three AS-i devices have been addressed as "1" (a standard type device), "2A" (an A/B node type device), and "3" (a standard type device): ① AS-i slave address 1; Device: AS-i SM-U, 4DI; order number: 3RG9 001-0AA00 ②...
Page 152
Easy to communicate between devices 7.7 AS-i Table 7- 13 Parameters for the AS-i interface Parameter Description Network Name of the network to which the device is connected Address(es) Assigned AS-i address for the slave device in range of 1(A or B) to 31(A or B) for a total of up to 62 slave devices Easy Book Manual, 03/2014, A5E02486774-AF...
Easy to communicate between devices 7.8 S7 communication S7 communication 7.8.1 GET and PUT instructions You can use the GET and PUT instructions to communicate with S7 CPUs through PROFINET and PROFIBUS connections. This is only possible if the "Permit access with PUT/GET communication"...
Easy to communicate between devices 7.8 S7 communication 7.8.2 Creating an S7 connection Connection mechanisms To access remote connection partners with PUT/GET instructions, the user must also have permission. By default, the "Permit access with PUT/GET communication" option is not enabled. In this case, read and write access to CPU data is only possible for communication connections that require configuration or programming both for the local CPU and for the communication partner.
Easy to communicate between devices 7.8 S7 communication 7.8.3 GET/PUT connection parameter assignment The GET/PUT instructions connection parameter assignment is a user aid for configuring S7 CPU-CPU communication connections. After inserting a GET or PUT block, the GET/PUT instructions connection parameter assignment is started: The inspector window displays the properties of the connection whenever you have selected any part of the instruction.
Easy to communicate between devices 7.9 GPRS GPRS 7.9.1 Connection to a GSM network IP-based WAN communication via GPRS Using the CP 1242-7 communications processor, the S7-1200 can be connected to GSM networks. The CP 1242-7 allows WAN communication from remote stations with a control center and inter-station communication.
Page 157
Sending messages by SMS Figure 7-1 Sending messages by SMS from an S7-1200 station A SIMATIC S7-1200 with a CP 1242-7 can send messages by SMS to a configured mobile phone or a configured S7-1200 station. Easy Book Manual, 03/2014, A5E02486774-AF...
Page 158
Figure 7-2 Communication between S7-1200 stations and a control center In telecontrol applications, SIMATIC S7-1200 stations with a CP 1242-7 communicate with a control center via the GSM network and the Internet. The TELECONTROL SERVER BASIC application is installed on the telecontrol server in the master station. This results in the following use cases: ●...
Page 159
Figure 7-3 Direct communication between two S7-1200 stations In this configuration, two SIMATIC S7-1200 stations communicate directly with each other using the CP 1242-7 via the GSM network. Each CP 1242-7 has a fixed IP address. The relevant service of the GSM network provider must allow this.
Page 160
In TeleService via GPRS, an engineering station on which STEP 7 is installed communicates via the GSM network and the Internet with a SIMATIC S7-1200 station with a CP 1242-7. The connection runs via a telecontrol server that serves as an intermediary and is connected to the Internet.
Page 161
Easy to communicate between devices 7.9 GPRS Other services and functions of the CP 1242-7 ● Time-of-day synchronization of the CP via the Internet You can set the time on the CP as follows: – In "Telecontrol" mode, the time of day is transferred by the telecontrol server. The CP uses this to set its time.
Page 162
Easy to communicate between devices 7.9 GPRS The ANT794-4MR GSM/GPRS antenna The following antennas are available for use in GSM/GPRS networks and can be installed both indoors and outdoors: ● Quadband antenna ANT794-4MR Figure 7-5 ANT794-4MR GSM/GPRS antenna Short name Order no.
Easy to communicate between devices 7.10 PtP, USS, and Modbus communication protocols 7.10 PtP, USS, and Modbus communication protocols 7.10.1 Point-to-point communication The CPU supports the following Point-to-Point communication (PtP) for character-based serial protocols: ● PtP (Page 164) ● USS (Page 165) ●...
Easy to communicate between devices 7.10 PtP, USS, and Modbus communication protocols The serial communication interfaces have the following characteristics: ● Have an isolated port ● Support Point-to-Point protocols ● Are configured and programmed through the point-to-point communication processor instructions ●...
Easy to communicate between devices 7.10 PtP, USS, and Modbus communication protocols The dynamic configuration changes are not permanently stored in the CPU. After a power cycle, the initial static configuration from the device configuration will be used. The SEND_PTP, RCV_PTP, and RCV_RST instructions control the PtP communication: ●...
Page 166
Easy to communicate between devices 7.10 PtP, USS, and Modbus communication protocols Calculating the time required for communicating with the drive Communications with the drive are asynchronous to the CPU scan. The CPU typically completes several scans before one drive communications transaction is completed. The USS_PORT interval is the time required for one drive transaction.
If an attacker can physically access your networks utilizing these forms of communication, the attacker can possibly read and write data. For security information and recommendations, please see our "Operational Guidelines for Industrial Security" on the Service and Support site: www.industry.siemens.com/topics/global/en/industrial- security/Documents/operational_guidelines_industrial_security_en.pdf (http://www.industry.siemens.com/topics/global/en/industrial- security/Documents/operational_guidelines_industrial_security_en.pdf) Note Modbus TCP will only operate correctly with CPU firmware release V1.02 or later.
Page 168
Easy to communicate between devices 7.10 PtP, USS, and Modbus communication protocols Table 7- 15 Modbus instructions Type of communication Instruction Modbus RTU (RS232 or RS485) MB_COMM_LOAD: One execution of MB_COMM_LOAD is used to set up PtP port parameters like baud rate, parity, and flow control. After the CPU port is configured for the Modbus RTU protocol, it can only be used by either the MB_MASTER or MB_SLAVE instructions.
PID is easy STEP 7 provides the following PID instructions for the S7-1200 CPU: ● The PID_Compact instruction is used to control technical processes with continuous input- and output variables. ● The PID_3Step instruction is used to control motor-actuated devices, such as valves that require discrete signals for open- and close actuation.
Page 170
PID is easy PID algorithm The PID (Proportional/Integral/Derivative) controller measures the time interval between two calls and then evaluates the results for monitoring the sampling time. A mean value of the sampling time is generated at each mode changeover and during initial startup. This value is used as reference for the monitoring function and is used for calculation.
PID is easy 8.1 Inserting the PID instruction and technology object Inserting the PID instruction and technology object STEP 7 provides two instructions for PID control: ● The PID_Compact instruction and its associated technology object provide a universal PID controller with tuning. The technology object contains all of the settings for the control loop.
Page 172
PID is easy 8.1 Inserting the PID instruction and technology object Table 8- 2 (Optional) Creating a technology object from the project navigator You can also create technology objects for your project before inserting the PID instruction. By creating the technology object before inserting a PID instruction into your user program, you can then select the technology object when you insert the PID instruction.
PID is easy 8.2 PID_Compact instruction PID_Compact instruction The PID_Compact instruction provides a universal PID controller with integrated self-tuning for automatic and manual mode. Table 8- 3 PID_Compact instruction LAD / FBD Description PID_Compact provides a PID controller with "PID_Compact_1"( self-tuning for automatic and manual mode.
Page 174
PID is easy 8.2 PID_Compact instruction Parameter and type Data type Description ManualEnable Bool Enables or disables the manual operation mode. (Default value: FALSE): A FALSE to TRUE edge activates "manual mode", while State = 4, • Mode remains unchanged. As long as ManualEnable = TRUE, you cannot change the operating mode using a rising edge at ModeActivate or use the commissioning dialog.
Page 175
PID is easy 8.2 PID_Compact instruction Parameter and type Data type Description InputWarning_L Bool If InputWarning_L = TRUE, the process value has reached or fallen below the warning low limit. (Default value: FALSE) State Current operating mode of the PID controller. (Default value: 0) You can change the operating mode using the Mode input parameter and a rising edge at ModeActivate: State = 0: Inactive...
Page 176
PID is easy 8.2 PID_Compact instruction Operation of the PID_Compact controller Figure 8-1 Operation of the PID_Compact controller Figure 8-2 Operation of the PID_Compact controller as a PIDT1 controller with anti-windup Easy Book Manual, 03/2014, A5E02486774-AF...
PID is easy 8.3 PID_Compact instruction ErrorBit parameters PID_Compact instruction ErrorBit parameters If several errors are pending, the values of the error codes are displayed by means of binary addition. The display of error code 0003, for example, indicates that the errors 0001 and 0002 are also pending.
Page 178
PID is easy 8.3 PID_Compact instruction ErrorBit parameters ErrorBit (DW#16#...) Description 20000 Invalid value at the SubstituteValue tag: Value has an invalid number format. PID_Compact uses the output value low limit as the output value. Note: If automatic mode was active before the error occurred, ActivateRecoverMode = TRUE, and the error is no longer pending, PID_Compact switches back to automatic mode.
PID is easy 8.4 PID_3Step instruction PID_3Step instruction The PID_3Step instruction configures a PID controller with self-tuning capabilities that has been optimized for motor-controlled valves and actuators. Table 8- 6 PID_3Step instruction LAD / FBD Description PID_3Step configures a PID controller with "PID_3Step_1"( self-tuning capabilities that has been SetpoInt:=_real_in_,...
Page 180
PID is easy 8.4 PID_3Step instruction Table 8- 7 Data types for the parameters Parameter and type Data type Description Setpoint Real Setpoint of the PID controller in automatic mode. (Default value: 0.0) Input Real A tag of the user program is used as the source of the process value. (Default value: 0.0) If you are using the Input parameter, you must set Config.InputPerOn = FALSE.
Page 181
PID is easy 8.4 PID_3Step instruction Parameter and type Data type Description ManualUP Bool Manual_UP = TRUE: • – The valve is opened even if you use Output_PER or a position feedback. The valve is no longer moved if the high end stop has been reached.
Page 182
PID is easy 8.4 PID_3Step instruction Parameter and type Data type Description Output_DN Bool Digital output value for closing the valve. (Default value: FALSE) If Config.OutputPerOn = FALSE, the parameter Output_DN is used. Output_PER Word Analog output value. If Config.OutputPerOn = TRUE, the parameter Output_PER is used. SetpointLimitH Bool Setpoint high limit.
Page 183
PID is easy 8.4 PID_3Step instruction Figure 8-3 Operation of the PID_3Step controller as a PID T1 controller with anti-windup Easy Book Manual, 03/2014, A5E02486774-AF...
Page 184
PID is easy 8.4 PID_3Step instruction Figure 8-4 Operation of the PID_3Step controller without position feedback Easy Book Manual, 03/2014, A5E02486774-AF...
Page 185
PID is easy 8.4 PID_3Step instruction Figure 8-5 Operation of the PID_3Step controller with position feedback enabled Easy Book Manual, 03/2014, A5E02486774-AF...
PID is easy 8.5 PID_3Step instruction ErrorBit parameters PID_3Step instruction ErrorBit parameters If several errors are pending, the values of the error codes are displayed by means of binary addition. The display of error code 0003, for example, indicates that the errors 0001 and 0002 are also pending.
Page 187
PID is easy 8.5 PID_3Step instruction ErrorBit parameters ErrorBit (DW#16#...) Description 10000 Invalid value at the ManualValue parameter: Value has an invalid number format. The actuator cannot be moved to the manual value and remains in its current position. Assign a valid value in ManualValue or move the actuator in manual mode with Manual_UP and Manual_DN.
PID is easy 8.6 Configuring the PID controller Configuring the PID controller The parameters of the technology object determine the operation of the PID controller. Use the icon to open the configuration editor. Table 8- 9 Sample configuration settings for the PID_Compact instruction Settings Description Basic...
Page 189
PID is easy 8.6 Configuring the PID controller Table 8- 10 Sample configuration settings for the PID_3Step instruction Settings Description Basic Controller type Selects the engineering units. Invert the control logic Allows selection of a reverse-acting PID loop. If not selected, the PID loop is in direct-acting mode, and the output of PID loop •...
PID is easy 8.7 Commissioning the PID controller Settings Description Reaction to error Defines the behavior of the valve when an error is detected or when the PID loop is reset. If you select to use a substitute position, enter the "Safety position". For analog feedback or analog output, select a value between the upper or lower limit for the output.
Page 191
PID is easy 8.7 Commissioning the PID controller PID start value control You can edit the actual values of the PID configuration parameters so that the behavior of the PID controller can be optimized in online mode. Open the "Technology objects" for your PID controller and its "Configuration" object. To access the start value control, click the "eyeglasses icon"...
Page 192
PID is easy 8.7 Commissioning the PID controller Additionally, click the parameter button with the downward arrow to open a small window that shows the project (offline) start value and the PLC (online) start value of each parameter: Easy Book Manual, 03/2014, A5E02486774-AF...
Web server for easy Internet connectivity The Web server provides Web page access to data about your CPU and to the process data within the CPU. With these Web pages, you access the CPU with the Web browser of your PC or mobile device.
Web server for easy Internet connectivity 9.1 Easy to use the standard Web pages Easy to use the standard Web pages Using the standard Web pages is easy! You only have to enable the Web server when configuring the CPU. The Start page displays a representation of the CPU to which you are connected and lists general information about the CPU.
Page 195
Because enabling the Web server allows authorized users to perform operating mode changes, writes to PLC data, and firmware updates, Siemens recommends that you observe the following security practices: • Enable access to the Web server only with the HTTPS protocol.
Web pages and user-defined Web pages with an URL of either http://ww.xx.yy.zz or https://ww.xx.yy.zz, where "ww.xx.yy.zz" represents the IP address of the CPU. ● Siemens provides a security certificate for secure access to the Web server. From the Introduction standard Web page, you can download and import the certificate into the Internet options of your Web browser.
Web server for easy Internet connectivity 9.2 Constraints that can affect the use of the Web server 9.2.1 Feature restrictions when the Internet options disable JavaScript The standard Web pages use HTML, JavaScript, and cookies. If your site restricts the use of JavaScript and cookies, then enable them for the pages to function properly.
Web server for easy Internet connectivity 9.3 Easy to create user-defined web pages 9.2.2 Feature restrictions when the Internet options do not allow cookies If you disable cookies in your Web browser, the following restrictions apply: ● You cannot log in. ●...
Web server for easy Internet connectivity 9.3 Easy to create user-defined web pages You can use the software package of your choice to create your own HTML pages for use with the Web server. Be sure that your HTML code is compliant to the HTML standards of the W3C (World Wide Web Consortium).
Web server for easy Internet connectivity 9.3 Easy to create user-defined web pages Load memory space Your user-defined Web pages become data blocks when you click "Generate blocks", which require load memory space. If you have a memory card installed, you have up to the capacity of your memory card as external load memory space for the user-defined Web pages.
Web server for easy Internet connectivity 9.3 Easy to create user-defined web pages After you enable the Web server functionality, enter the following information: ● Name and the current location of the HTML default start page to generate the DBs for the user-defined Web pages.
Page 202
Web server for easy Internet connectivity 9.3 Easy to create user-defined web pages Easy Book Manual, 03/2014, A5E02486774-AF...
Motion control is easy The CPU provides motion control functionality for the operation of stepper motors and servo motors with pulse interface. The motion control functionality takes over the control and monitoring of the drives. ● The "Axis" technology object configures the mechanical drive data, drive interface, dynamic parameters, and other drive properties.
Page 204
Motion control is easy The four pulse generators have default I/O assignments; however, they can be configured to any digital output on the CPU or SB. Pulse generators on the CPU cannot be assigned to SMs or to distributed I/O. Note Pulse-train outputs cannot be used by other instructions in the user program When you configure the outputs of the CPU or signal board as pulse generators (for use with...
Page 205
Motion control is easy Table 10- 2 CPU output: maximum frequency CPU output channel Pulse and direction A/B, quadrature, up/down, output and pulse/direction 1211C Qa.0 to Qa.3 100 kHz 100 kHz 1212C Qa.0 to Qa.3 100 kHz 100 kHz Qa.4, Qa.5 20 kHz 20 kHz 1214C and 1215C...
Page 206
Motion control is easy CPU 1217C example output speed configurations Note The CPU 1217C can generate pulse outputs up to 1 MHz, using the onboard differential outputs. The examples below show four possible output speed combinations: ● Example 1: 4 - 1 MHz PTOs, no direction output ●...
Page 207
Motion control is easy CPU 1211C, CPU 1212C, CPU 1214C, and CPU 1215C example output speed configurations The examples below show four possible output speed combinations: ● Example 1: 4 - 100 KHz PTOs, no direction output ● Example 2: 2 - 100 KHz PTOs and 2 - 20 KHz PTOs, all with direction output ●...
Motion control is easy 10.1 Phasing 10.1 Phasing You have four options for the "Phasing" interface to the stepper/servo drive. These options are as follows: ● PTO (pulse A and direction B): If you select a PTO (pulse A and direction B) option, then one output (P0) controls the pulsing and one output (P1) controls the direction.
Page 209
Motion control is easy 10.1 Phasing ● PTO (A/B phase-shifted): If you select a PTO (A/B phase-shifted) option, then both outputs pulse at the speed specified, but 90 degrees out-of-phase. It is a 1X configuration, meaning one pulse is the amount of time between positive transitions of P0.
Motion control is easy 10.2 Configuring a pulse generator ● PTO (pulse and direction (direction de-selected)): If you de-select the direction output in a PTO (pulse and direction (direction de-selected)), then output (P0) controls the pulsing. Output P1 is not used and is available for other program uses. Only positive motion commands are accepted by the CPU in this mode.
Motion control is easy 10.3 Configuring the axis Note Configuring a pulse generator to signal board outputs: Select the "Pulse generators (PTO/PWM)" properties for a CPU (in Device configuration) and enable a pulse generator. Two pulse generators are available for each S7-1200 CPU V1.0, V2.0, V2.1, and V2.2. S7-1200 CPU V3.0 and V4.0 CPUs have four pulse generators available.
Page 212
Motion control is easy 10.3 Configuring the axis Table 10- 5 STEP 7 tools for motion control Tool Description Configuration Configures the following properties of the "Axis" technology object: Selection of the PTO to be used and configuration of the drive interface •...
Page 213
Motion control is easy 10.3 Configuring the axis Configure the properties for the drive signals, drive mechanics, and position monitoring (hardware and software limit switches). You configure the motion dynamics and the behavior of the emergency stop command. You also configure the homing behavior (passive and active). Use the "Commissioning"...
Motion control is easy 10.4 Configuring the TO_CommandTable_PTO 10.4 Configuring the TO_CommandTable_PTO You can configure a CommandTable instruction using the Technology objects. Adding a Technology object 1. In the Project tree, expand the node "Technology Objects" and select "Add new object". 2.
Page 215
Motion control is easy 10.4 Configuring the TO_CommandTable_PTO Table 10- 6 MC_CommandTable command types Command type Description Empty The empty serves as a placeholder for any commands to be added. The empty entry is ignored when the command table is processed Halt Pause axis.
Page 216
Motion control is easy 10.4 Configuring the TO_CommandTable_PTO In the figure below, "Blending motion" is used as the transition to the next step. This type of transition allows your device to maintain its velocity into the start of the next step, resulting in a smooth transition for the device from one step to the next.
Motion control is easy 10.5 Motion control instructions 10.5 Motion control instructions 10.5.1 MC instruction overview 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. ●...
Page 218
Motion control is easy 10.5 Motion control instructions Table 10- 7 MC_Power instruction LAD / FBD Description The MC_Power motion control instruction enables "MC_Power_DB"( or disables an axis. Before you can enable or Axis:=_multi_fb_in_, disable the axis, ensure the following conditions: Enable:=_bool_in_, The technology object has been configured •...
Page 219
Motion control is easy 10.5 Motion control instructions Parameter and type Data type Description Status Bool Status of axis enable: FALSE: The axis is disabled: • – The axis does not execute motion control tasks and does not accept any new tasks (exception: MC_Reset task). –...
Page 220
Motion control is easy 10.5 Motion control instructions To enable an axis with configured drive interface, follow these steps: 1. Check the requirements indicated above. 2. Initialize input parameter "StopMode" with the desired value. Set input parameter "Enable" to TRUE. The enable output for "Drive enabled"...
Motion control is easy 10.5 Motion control instructions 10.5.3 MC_Reset (Confirm error) instruction Table 10- 9 MC_Reset instruction LAD / FBD Description Use the MC_Reset instruction to acknowledge "MC_Reset_DB"( "Operating error with axis stop" and Axis:=_multi_fb_in_, "Configuration error". The errors that require Execute:=_bool_in_, acknowledgement can be found in the "List of Restart:=_bool_in_,...
Motion control is easy 10.5 Motion control instructions 10.5.4 MC_Home (Home axis) instruction Table 10- 11 MC_Home instruction LAD / FBD Description Use the MC_Home instruction to match "MC_Home_DB"( the axis coordinates to the real, physical Axis:=_multi_fb_in_, drive position. Homing is required for Execute:=_bool_in_, absolute positioning of the axis: Position:=_real_in_,...
Page 223
Motion control is easy 10.5 Motion control instructions Parameter and type Data type Description Mode Homing mode 0: Direct homing absolute • New axis position is the position value of parameter "Position". 1: Direct homing relative • New axis position is the current axis position + position value of parameter "Position".
Motion control is easy 10.5 Motion control instructions Table 10- 13 Override response Mode Description 0 or 1 The MC_Home task cannot be aborted by any other motion control task. The new MC_Home task does not abort any active motion control tasks. Position-related motion tasks are resumed after homing according to the new homing position (value at the Position input parameter).
Page 225
Motion control is easy 10.5 Motion control instructions Table 10- 15 Parameters for the MC_Halt instruction Parameter and type Data type Description Axis TO_Axis_1 Axis technology object Execute Bool Start of the task with a positive edge Done Bool TRUE = Zero velocity reached Busy Bool TRUE = The task is being executed.
Motion control is easy 10.5 Motion control instructions Override response The MC_Halt task can be aborted by the The new MC_Halt task aborts the following following motion control tasks: active motion control tasks: • MC_Home Mode = 3 • MC_Home Mode = 3 •...
Page 227
Motion control is easy 10.5 Motion control instructions Parameter and type Data type Description Busy Bool TRUE = The task is being executed. CommandAborted Bool TRUE = During execution the task was aborted by another task. Error Bool TRUE = An error has occurred during execution of the task. The cause of the error can be found in parameters "ErrorID"...
Motion control is easy 10.5 Motion control instructions Override response The MC_MoveAbsolute task can be The new MC_MoveAbsolute task aborts aborted by the following motion control the following active motion control tasks: tasks: • MC_Home Mode = 3 • MC_Home Mode = 3 •...
Page 229
Motion control is easy 10.5 Motion control instructions Parameter and type Data type Description Busy Bool TRUE = The task is being executed. CommandAborted Bool TRUE = During execution the task was aborted by another task. Error Bool TRUE = An error has occurred during execution of the task. The cause of the error can be found in parameters "ErrorID"...
Motion control is easy 10.5 Motion control instructions Override response The MC_MoveRelative task can be aborted The new MC_MoveRelative task aborts the by the following motion control tasks: following active motion control tasks: • MC_Home Mode = 3 • MC_Home Mode = 3 •...
Page 231
Motion control is easy 10.5 Motion control instructions Parameter and type Data type Description Direction Direction specification: 0: Direction of rotation corresponds to the sign of the value in • parameter "Velocity" (Default value) 1: Positive direction of rotation (The sign of the value in •...
Page 232
Motion control is easy 10.5 Motion control instructions The following values were configured in the "Dynamics > General" configuration window: Acceleration = 10.0 and Deceleration = 10.0 ① An active MC_MoveVelocity task signals via "InVel_1" that its target velocity has been reached. It is then aborted by another MC_MoveVelocity task.
Motion control is easy 10.5 Motion control instructions Note Behavior with zero set velocity (Velocity = 0.0) An MC_MoveVelocity task with "Velocity" = 0.0 (such as an MC_Halt task) aborts active motion tasks and stops the axis with the configured deceleration. When the axis comes to a standstill, output parameter "InVelocity"...
Page 234
Motion control is easy 10.5 Motion control instructions Parameter and type Data type Description Velocity Real Preset velocity for jog mode (Default value: 10.0) Limit values: Start/stop velocity ≤ |Velocity| ≤ maximum velocity InVelocity Bool TRUE = The velocity specified in parameter "Velocity" was reached. Busy Bool TRUE = The task is being executed.
Motion control is easy 10.5 Motion control instructions 10.5.10 MC_CommandTable (Run axis commans as movement sequence) instruction Table 10- 24 MC_CommandTable instruction LAD / FBD Description Executes a series of individual "MC_CommandTable_DB"( motions for a motor control axis Axis:=_multi_fb_in_, that can combine into a CommandTable:=_multi_fb_in_, movement sequence.
Page 236
Motion control is easy 10.5 Motion control instructions You can create the desired movement sequence in the "Command Table" configuration window and check the result against the graphic view in the trend diagram. You can select the command types that are to be used for processing the command table. Up to 32 jobs can be entered.
Motion control is easy 10.5 Motion control instructions Override response The MC_CommandTable task can be The new MC_CommandTable task aborts the aborted by the following motion control following active motion control tasks: tasks: • MC_Home Mode = 3 • MC_Home Mode = 3 •...
Page 238
Motion control is easy 10.5 Motion control instructions Table 10- 28 Parameters for the MC_ChangeDynamic instruction Parameter and type Data type Description Axis TO_Axis_1 Axis technology object Execute Bool Start of the command with a positive edge. Default value: FALSE ChangeRampUp Bool TRUE = Change ramp-up time in line with input parameter...
Motion control is easy 10.5 Motion control instructions Override response An MC_ChangeDynamic command cannot be aborted by any other Motion Control command. A new MC_ChangeDynamic command does not abort any active Motion Control jobs. Note The input parameters "RampUpTime", "RampDownTime", "EmergencyRampTime" and "RoundingOffTime"...
Page 240
Motion control is easy 10.5 Motion control instructions Writeable parameter name Writeable parameter name Sensor[1].PassiveHoming.Mode PositionLimitsSW.Active Sensor[1].PassiveHoming.SideInput PositionLimitsSW.MinPosition Sensor[1].PassiveHoming.SwitchedLevel PositionLimitsSW.MaxPosition Units.LengthUnit Homing.AutoReversal Mechanics.LeadScrew Homing.ApproachDirection DynamicLimits.MinVelocity Homing.ApproachVelocity DynamicLimits.MaxVelocity Homing.ReferencingVelocity Table 10- 30 Parameters for the MC_WriteParam instruction Parameter and type Data type Description PARAMNAME Variant...
Motion control is easy 10.5 Motion control instructions 10.5.13 MC_ReadParam instruction (read parameters of a technology object) instruction You use the MC_ReadParam instruction to read a select number of parameters that indicate the current position, velocity, and so forth of the axis defined in the Axis input. Table 10- 32 MC_ReadParam instruction LAD / FBD Description...
Motion control is easy 10.6 Operation of motion control for S7-1200 Table 10- 34 Condition codes for ERRORID and ERRORINFO ERRORID ERRORINFO Description (W#16#...) (W#16#...) Successful read of a parameter 8410 0028 Invalid parameter (incorrect length) 8410 0029 Invalid parameter (no TO-DB) 8410 0030 Invalid parameter (not readable)
Page 243
Motion control is easy 10.6 Operation of motion control for S7-1200 The table below shows the default I/O assignments; however, the four pulse generators can be configured to any digital output. Note Pulse-train outputs cannot be used by other instructions in the user program. When you configure the outputs of the CPU or signal board as pulse generators (for use with the PWM or motion control instructions), the corresponding output addresses no longer control the outputs.
Motion control is easy 10.6 Operation of motion control for S7-1200 Drive interface For motion control, you can optionally configure a drive interface for "Drive enabled" and "Drive ready". When using the drive interface, the digital output for the drive enable and the digital input for "drive ready"...
Page 245
Motion control is easy 10.6 Operation of motion control for S7-1200 Hardware limit switches Hardware limit switches determine the maximum travel range of the axis. Hardware limit switches are physical switching elements that must be connected to interrupt-capable inputs of the CPU. Use only hardware limit switches that remain permanently switched after being approached.
Page 246
Motion control is easy 10.6 Operation of motion control for S7-1200 WARNING Risks with changes to filter time for digital input channel If the filter time for a digital input channel is changed from a previous setting, a new "0" level input value may need to be presented for up to 20.0 ms accumulated duration before the filter becomes fully responsive to new inputs.
Motion control is easy 10.6 Operation of motion control for S7-1200 Use additional hardware limit switches if a mechanical endstop is located after the software limit switches and there is a risk of mechanical damage. Additional information Your user program can override the hardware or software position limits by enabling or disabling both hardware and software limits functionality.
Page 248
Motion control is easy 10.6 Operation of motion control for S7-1200 There are 4 different homing functions. The first two functions allow the user to set the current position of the axis and the second two position the axis with respect to a Home reference Sensor.
Motion control is easy 10.6 Operation of motion control for S7-1200 10.6.3.2 Configuration of homing parameters Configure the parameters for active and passive homing in the "Homing" configuration window. The homing method is set using the "Mode" input parameter of the motion control instruction.
Page 250
Motion control is easy 10.6 Operation of motion control for S7-1200 Parameter Description Reference point switch Active homing: Select whether the axis is to be referenced on the left or right side • of the reference point switch. Depending on the start position of the axis and the (Active and passive homing) configuration of the homing parameters, the reference point approach sequence can differ from the diagram in the configuration window.
Motion control is easy 10.6 Operation of motion control for S7-1200 10.6.3.3 Sequence for active homing You start active homing with motion control instruction "MC_Home" (input parameter Mode = 3). Input parameter "Position" specifies the absolute reference point coordinates in this case.
Motion control is easy 10.7 Commissioning Note If the homing search does not function as you expected, check the inputs assigned to the hardware limits or to the reference point. These inputs may have had their edge interrupts disabled in device configuration. Examine the configuration data for the axis technology object of concern to see which inputs (if any) are assigned for "HW Low Limit Switch Input", "HW High Limit Switch Input", and "Input reference point switch".
Page 253
Motion control is easy 10.7 Commissioning Table 10- 41 Drive status Status Description Drive ready The drive is ready for operation. (Tag of technology object: <Axis name>.StatusBits.DriveReady) Error The drive has reported an error after failure of its ready signal. (Tag of technology object: <Axis name>.ErrorBits.DriveFault) Table 10- 42 Status of the axis motion Status...
Page 254
Motion control is easy 10.7 Commissioning Error Description Max software limit exceeded The upper software limit switch has been exceeded. (Tag of technology object: <Axis name>.ErrorBits.SwLimitMaxExceeded) Negative hardware limit The lower hardware limit switch has been approached. (Tag of technology object: <Axis name>.ErrorBits.HwLimitMin) Positive hardware limit The upper hardware limit switch has been approached.
Page 255
Motion control is easy 10.7 Commissioning Motion start value control You can edit the actual values of the Motion configuration parameters so that the behavior of the process can be optimized in online mode. Open the "Technology objects" for your motion control and its "Configuration" object. To access the start value control, click the "eyeglasses icon"...
Page 256
Motion control is easy 10.7 Commissioning The figure above shows the Motion parameter screen with compare icons showing which values are different between online and offline projects. A green icon indicates that the values are the same; a blue/orange icon indicates that the values are different. Additionally, click the parameter button with the downward arrow to open a small window that shows the project (offline) start value and the PLC (online) start value of each parameter.
Easy to use the online tools 11.1 Going online and connecting to a CPU An online connection between the programming device and CPU is required for loading programs and project engineering data as well as for activities such as the following: ●...
Easy to use the online tools 11.2 Interacting with the online CPU 11.2 Interacting with the online CPU The "Online tools" task card in the project view displays an operator panel that shows the operating mode of the online CPU. The operator panel also allows you to change the operating mode of the online CPU.
Easy to use the online tools 11.3 Going online to monitor the values in the CPU 11.3 Going online to monitor the values in the CPU To monitor the tags, you must have an online connection to the CPU. Simply click the "Go online"...
Easy to use the online tools 11.4 Displaying status of the user program is easy 11.4 Displaying status of the user program is easy You can monitor the status of the tags in the LAD and FBD program editors. Use the editor bar to display the LAD editor.
Easy to use the online tools 11.6 Using the force table To create a watch table: 1. Double-click "Add new watch table" to open a new watch table. 2. Enter the tag name to add a tag to the watch table.
Page 262
Easy to use the online tools 11.6 Using the force table In the "Force value" cell, enter the value for the input or output to be forced. You can then use the check box in the "Force" column to enable forcing of the input or output. Use the "Start or replace forcing"...
Page 263
Easy to use the online tools 11.6 Using the force table If the CPU is executing the user program from a write-protected memory card, you cannot initiate or change the forcing of I/O from a watch table because you cannot override the values in the write-protected user program.
Easy to use the online tools 11.7 Capturing the online values of a DB to reset the start values 11.7 Capturing the online values of a DB to reset the start values You can capture the current values being monitored in an online CPU to become the start values for a global DB.
Easy to use the online tools 11.8 Copying elements of the project 11.8 Copying elements of the project You can also copy the program blocks from an online CPU or a memory card attached to your programming device. Prepare the offline project for the copied program blocks: 1.
Easy to use the online tools 11.9 Comparing offline and online CPUs 11.9 Comparing offline and online CPUs You can compare the code blocks in an online CPU with the code blocks in your project. If the code blocks of your project do not match the code blocks of the online CPU, the "Compare"...
Easy to use the online tools 11.10 Displaying the diagnostic events 11.10 Displaying the diagnostic events The CPU provides a diagnostic buffer that contains an entry for each diagnostic event, such as transition of the CPU operating mode or errors detected by the CPU or modules. To access the diagnostic buffer, you must be online.
Easy to use the online tools 11.12 Resetting to factory settings 11.12 Resetting to factory settings You can reset an S7-1200 to its original factory settings under the following conditions: ● No memory card is inserted in the CPU. ● The CPU has an online connection. ●...
3. Click the Browse button and navigate to the location that contains the firmware update file. This could be a location on your hard drive to which you have downloaded an S7-1200 (http://support.automation.siemens.com/WW/view/en/34612486/133100) firmware update file from the service and support Web site (http://www.siemens.com/automation/).
Easy to use the online tools 11.14 Downloading an IP address to an online CPU 11.14 Downloading an IP address to an online CPU To assign an IP address, you must perform the following tasks: • Configure the IP address for the CPU (Page 80).
Easy to use the online tools 11.15 Using the "unspecified CPU" to upload the hardware configuration 11.15 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.
Easy to use the online tools 11.16 Downloading in RUN mode 11.16 Downloading in RUN mode The CPU supports "Download in RUN mode". This capability is intended to allow you to make small changes to a user program with minimal disturbance to the process being controlled by the program.
Easy to use the online tools 11.16 Downloading in RUN mode 11.16.1 Changing your program in RUN mode To change the program in RUN mode, your must first ensure that the CPU and program meet the prerequisites, and then follow these steps: 1.
Easy to use the online tools 11.17 Tracing and recording CPU data on trigger conditions 11.17 Tracing and recording CPU data on trigger conditions STEP 7 provides trace and logic analyzer functions with which you can configure variables for the PLC to trace and record. You can then upload the recorded trace data to your programming device and use STEP 7 tools to analyze, manage, and graph your data.
IO-Link is easy 12.1 Overview of IO-Link technology IO-Link is an innovative communication technology for sensors and actuators defined by the PROFIBUS user organization (PNO). IO-Link is an international standard according to IEC 61131-9. It is based on a point-to-point connection between the sensors and actuators (slaves) and the controller (master).
FB indicates the IO-Link master your program uses, and which ports the master uses for data exchange. Visit the Siemens Industry Online Support website (http://support.automation.siemens.com) for details on working with the IOL_CALL FB. Enter "IO-Link" in the website's search box to access information about IO-Link products and their use.
IO-Link is easy 12.7 The SM 1278 4xIO-Link Master 12.7 The SM 1278 4xIO-Link Master The SM 1278 4xIO-Link Master is a 4-port module that functions as both a signal module and a communication module. Each port can operate in the IO-Link mode, single 24 VDC digital input or 24 VDC digital output.
Page 278
IO-Link is easy 12.7 The SM 1278 4xIO-Link Master SM 1278 4xIO-Link Master block diagram Easy Book Manual, 03/2014, A5E02486774-AF...
Page 279
IO-Link is easy 12.7 The SM 1278 4xIO-Link Master Connection examples The following illustration shows the configuration for IO-Link operating mode (3-wire and 5-wire), where n = port number: The following illustration shows the configuration for DI operating mode (2-wire and 3-wire), where n = port number: The following illustration shows the configuration for DQ operating mode (2-wire and 3-wire), where n = port number:...
Page 280
IO-Link is easy 12.7 The SM 1278 4xIO-Link Master Easy Book Manual, 03/2014, A5E02486774-AF...
It is your responsibility to determine applicable certifications by referring to the ratings marked on the product. Consult your local Siemens representative if you need additional information related to the latest listing of exact approvals by part number.
Page 282
WARNING Substitution of components can impair the suitability for Class I, Division 2 and Zone 2. Repair of units should only be performed by an authorized Siemens Service Center. ATEX approval ATEX approval applies to DC models only. ATEX approval does not apply to AC and Relay models.
Page 283
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. Classification societies: ●...
Page 284
Technical specifications A.1 General technical 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. Table A- 2 Immunity per EN 61000-6-2 Electromagnetic compatibility - Immunity per EN 61000-6-2...
Page 285
Technical specifications A.1 General technical specifications Table A- 3 Conducted and radiated emissions per EN 61000-6-4 Electromagnetic compatibility - Conducted and radiated emissions per EN 61000-6-4 Conducted Emissions 0.15 MHz to 0.5 MHz <79dB (μV) quasi-peak; <66 dB (μV) average EN 55011, Class A, Group 1 0.5 MHz to 5 MHz <73dB (μV) quasi-peak;...
Page 286
Technical specifications A.1 General technical specifications Table A- 6 High potential isolation test High potential isolation test 24 VDC / 5 VDC nominal circuits 520 VDC (type test of optical isolation boundaries) 115 VAC / 230 VAC circuits to ground 1500 VAC 115 VAC / 230 VAC circuits to 115 VAC / 230 VAC 1500 VAC...
Page 287
Technical specifications A.1 General technical specifications Reverse voltage protection Reverse voltage protection circuitry is provided on each terminal pair of +24 VDC power or user input power for CPUs, signal modules (SMs), and signal boards (SBs). It is still possible to damage the system by wiring different terminal pairs in opposite polarities.
Page 288
Technical specifications A.1 General technical specifications Table A- 8 Typical performance data Data for selecting an actuator Continuous thermal current 2 A max. Switching capacity and life of the contacts For ohmic load Voltage Current Number of operating cycles (typical) 24 VDC 2.0 A 0.1 million...
Technical specifications A.2 CPU modules CPU modules For a more complete list of modules available for S7-1200, refer to the S7-1200 System Manual or to the customer support web site (http://www.siemens.com/automation/). Table A- 9 General specifications General specifications CPU 1211C...
Page 290
Technical specifications A.2 CPU modules CPU features CPU 1211C CPU 1212C CPU 1214C CPU 1215C CPU 1217C Process image size Inputs 1024 bytes 1024 bytes 1024 bytes 1024 bytes 1024 bytes • • • • • • Outputs 1024 bytes 1024 bytes 1024 bytes 1024 bytes...
Page 291
Technical specifications A.2 CPU modules CPU features CPU 1211C CPU 1212C CPU 1214C CPU 1215C CPU 1217C Real time clock Accuracy +/- 60 +/- 60 +/- 60 +/- 60 +/- 60 • • • • • • seconds/ seconds/ seconds/ seconds/ seconds/ month...
Page 292
Technical specifications A.2 CPU modules Table A- 12 Wiring diagram for CPU 1214C AC/DC/Relay CPU 1214C AC/DC/Relay ① 24 VDC Sensor Power Out. For additional noise immunity, connect "M" to chassis ground even if not using sensor supply. ② For sinking inputs, connect "-" to "M" (shown).
Digital I/O modules For a more complete list of modules available for S7-1200, refer to the S7-1200 System Manual or to the customer support web site (http://www.siemens.com/automation/). A.3.1 SB 1221, SB 1222, and SB 1223 digital input/output (DI, DQ, and DI/DQ)
Page 294
Technical specifications A.3 Digital I/O modules Table A- 15 SB 1223 combination digital input/output (DI / DQ) modules General SB 1223 DI / DQ (200 kHz) SB 1223 2 DI / 2 DQ Order number 24 VDC: 6ES7 223-0BD30-0XB0 24 VDC: 6ES7 223-3BD30-0XB0 •...
Page 295
Technical specifications A.3 Digital I/O modules Table A- 16 Wiring diagrams for digital SBs SB 1221 input module SB 1222 output module SB 1223 input/output module SB 1221 DI 4 (200 kHz) SB 1222 DQ 4 (200 kHz) SB 1223 DI 2 / DQ 2 (200 kHz) ①...
Technical specifications A.3 Digital I/O modules Note The high-speed (200 kHz) SBs (SB 1221 and SB 1223) support only sinking inputs. The standard SB 1223 supports only sourcing inputs. The high-speed (200 kHz) outputs (SB 1222 and SB 1223) can be either sourcing or sinking. For sourcing outputs, connect "Load"...
Technical specifications A.3 Digital I/O modules Table A- 18 Wiring diagram for SM 1221 digital input (DI) modules SM 1221 DI 8 (24 VDC) SM 1221 DI 16 (24 VDC) ① For sinking inputs, connect "-" to "M" (shown). For sourcing inputs connect "+" to "M". A.3.3 SM 1222 digital output (DQ) Table A- 19...
Page 298
Technical specifications A.3 Digital I/O modules Technical data SM 1222 DQ (Relay) SM 1222 DQ (24 VDC) Power dissipation DQ 8: 4.5 W DQ 8: 1.5 W • • DQ 8 Changeover: 5 W DQ 16: 2.5 W • • DQ 16: 8.5 W •...
Technical specifications A.3 Digital I/O modules A.3.4 SM 1223 VDC digital input/output (DI / DQ) Table A- 21 SM 1223 combination digital input / output (DI / DQ) Technical data SM 1223 DI (24 VDC) / DQ (Relay) SM 1223 DI (24 VDC) / DQ (24 VDC) Order number DI 8 / DQ 8: 6ES7 223-1PH32-0XB0 DI 8 / DQ 8: 6ES7 223-1BH32-0XB0...
Technical specifications A.3 Digital I/O modules Table A- 22 Wiring diagram for SM 1223 combination DI / DQ modules SM 1223 DI 16 (24 VDC) / DQ 16 (24 VDC) SM 1223 DI 16 (24 VDC) / DQ 16 (Relay) ①...
Page 301
Technical specifications A.3 Digital I/O modules Note The SM 1223 DI 8 x 120/230 VAC, DQ 8 x Relay signal module (6ES7 223-1QH32-0XB0) is approved for use in Class 1, Division 2, Gas Group A, B, C, D, Temperature Class T4 Ta = 40 °C. Table A- 24 Wiring diagram for SM 1223 DI 8 (120/230 VAC) / DQ 8 (Relay) SM 1223 DI 8 (120/230 VAC) / DQ 8 (Relay)
Technical specifications A.4 Specifications for the digital inputs and outputs Specifications for the digital inputs and outputs A.4.1 24 VDC digital inputs (DI) Table A- 25 Specifications for the digital inputs (DI) Technical data CPU, SM and SB High-speed SB (200 KHz) Type SB 1221 200 KHz and SB 1223 200 KHz: CPU and SM: IEC Type 1 sink...
Technical specifications A.4 Specifications for the digital inputs and outputs Note When switching frequencies above 20 KHz, it is important that the digital inputs receive a square wave. Consider the following options to improve the signal quality to the inputs: •...
Technical specifications A.4 Specifications for the digital inputs and outputs Technical data Cable length Unshielded 300 meters Shielded 500 meters Number of inputs on simultaneously Channels within a group must be of the same phase. A.4.3 Digital outputs (DQ) Table A- 28 Specifications for the digital outputs (DQ) Technical data Relay...
Page 305
Technical specifications A.4 Specifications for the digital inputs and outputs Technical data Relay 24 VDC 200 KHZ 24 VDC (CPU and SM) (CPU, SM, and SB) (SB) Isolation groups CPU 1211C: 1 CPU: 1 • • CPU 1212C: 2 SB: 1 •...
SB 1223 200 KHz DI 2 / DQ 2: No isolation to inputs Analog I/O modules For a more complete list of modules available for S7-1200, refer to the S7-1200 System Manual or to the customer support web site (http://www.siemens.com/automation/). A.5.1 SB 1231 and SB 1232 analog input (AI) and output (AQ)
Technical specifications A.5 Analog I/O modules Table A- 30 Wiring diagrams for the analog SBs SB 1231 AI 1 x12 bit SB 1232 AQ 1 x 12 bit ① Connect "R" and "0+" for current. A.5.2 SM 1231 analog input (AI) Table A- 31 SM 1231 analog inputs (AI) Technical data...
Technical specifications A.5 Analog I/O modules A.5.3 SM 1232 analog output (AQ) Table A- 32 SM 1232 analog outputs (AQ) Technical data SM 1232 AQ 2 x 14 bit SM 1232 AQ 4 x 14 bit Order number (MLFB) 6ES7 232-4HB32-0XB0 6ES7 232-4HD32-0XB0 Number and type of outputs 2 outputs (AQ)
Technical specifications A.6 BB 1297 battery board A.5.5 Wiring diagrams for SM 1231 (AI), SM 1232 (AQ), and SM 1234 (AI/AQ) Table A- 34 Wiring diagrams for the analog SMs SM 1231 AI 8 x 13 bit SM 1232 AQ 4 x 13 bit SM 1234 AI 4 x13 bit / AQ2 x 14 bit Note Unused voltage input channels should be shorted.
Technical specifications A.6 BB 1297 battery board BB 1297 battery board BB 1297 Battery Board Table A- 35 General specifications Technical data BB 1297 Battery Order number 6ES7 297-0AX30-0XA0 Dimensions W x H x D (mm) 38 x 62 x 21 Weight 28 grams Hold up time real time clock...
Technical specifications A.7 Specifications for the analog I/O Specifications for the analog I/O A.7.1 Specifications for the analog inputs (CPU, SM, and SB) Table A- 36 Specifications for analog inputs (AI) Technical data Type Voltage (single-ended) Voltage or current Voltage or current (differential) (differential), selectable in groups of 2...
Technical specifications A.7 Specifications for the analog I/O Table A- 38 Analog input representation for current (SB and SM) System Current measuring range Decimal Hexadecimal 0 mA to 20 mA 4 mA to 20 mA 32767 7FFF 23.70 mA 22.96 mA Overflow 32512 7F00...
Technical specifications A.7 Specifications for the analog I/O A.7.5 Specifications for the analog outputs Table A- 43 Specifications for the analog outputs (SB and SM) Technical data Type Voltage or current Voltage or current Range ±10 V, 0 to 20 mA, or 4 to 20 mA ±10 V, 0 to 20 mA, or 4 to 20 mA Resolution Voltage: 12 bits...
Page 316
Technical specifications A.7 Specifications for the analog I/O System Voltage Output Range Decimal Hexadecimal ± 10 V FFFF -361.7 μ V -20736 AF00 -7.5 V -27648 9400 -10 V -27649 93FF Undershoot range -32512 8100 -11.76 V -32513 80FF See note 1 Underflow -32768 8000...
Technical specifications A.8 RTD and Thermocouple modules Table A- 46 Analog output representation for current (CPU 1215C and CPU 1217C) System Current output range Decimal Hexadecimal 0 mA to 20 mA 32767 7FFF See note 1 Overflow 32512 7F00 See note 1 32511 7EFF 23.52 mA...
Technical specifications A.8 RTD and Thermocouple modules Note After power is applied, the module performs internal calibration for the analog-to-digital converter. During this time the module reports a value of 32767 on each channel until valid data is available on that channel. Your user program may need to allow for this initialization time.
Technical specifications A.8 RTD and Thermocouple modules Table A- 48 Wiring diagrams for SB 1231 TC and RTD SB 1231 AI 1 x 16 bit TC SB 1231 AI 1 x 16 bit RTD ① Loop-back unused RTD input ② ③...
Page 320
Technical specifications A.8 RTD and Thermocouple modules Technical data SM 1231 AI 4 x RTD x 16 bit SM 1231 AI 8 x RTD x 16 bit Number of inputs (Page 323) Type Module-referenced RTD and Ω Module-referenced RTD and Ω Diagnostics Overflow / underflow Overflow / underflow...
Technical specifications A.8 RTD and Thermocouple modules Table A- 50 Wiring diagrams for the RTD SMs SM 1231 RTD 4 x 16 bit SM 1231 RTD 8 x 16 bit ① Loop-back unused RTD inputs ② 2-wire RTD ③ 3-wire RTD ④...
Page 322
Technical specifications A.8 RTD and Thermocouple modules Model SM 1231 AI 4 x 16 bit TC SM 1231 AI 8 x 16 bit TC Number of inputs (Page 323) Type Floating TC and mV Floating TC and mV Diagnostics Overflow / underflow Overflow / underflow •...
Technical specifications A.8 RTD and Thermocouple modules Table A- 52 Wiring diagrams for the TC SMs SM 1231 AI 4 x 16 bit TC SM 1231 AI 8 x 16 bit TC ① SM 1231 AI 8 TC: For clarity, TC 2, 3, 4, and 5 are not shown connected. A.8.4 Analog input specifications for RTD and TC (SM and SB) Table A- 53...
Technical specifications A.8 RTD and Thermocouple modules Technical data RTD and Thermocouple (TC) Isolation Field side to logic 500 VAC Field to 24 VDC SM RTD and SM TC: 500 VAC (Not applicable for SB RTD and SB TC) 24 VDC to logic SM RTD and SM TC: 500 VAC (Not applicable for SB RTD and SB TC) Channel to channel isolation...
Technical specifications A.8 RTD and Thermocouple modules Type Under range Nominal Nominal Over range Normal range Normal range 3, 4 minimum range low limit range high maximum accuracy accuracy limit @ 25 °C -20 °C to 60 °C 0.0 °C 100.0 °C 2315.0 °C 2500.0 °C...
Technical specifications A.8 RTD and Thermocouple modules A.8.7 RTD sensor type selection table Table A- 56 Ranges and accuracy for the different sensors supported by the RTD modules Temperature RTD type Under range Nominal Nominal Over Normal Normal range coefficient minimum range range...
Technical specifications A.8 RTD and Thermocouple modules Table A- 57 Resistance Range Under range Nominal range Nominal range Over Normal range Normal range minimum low limit high limit range accuracy accuracy maximum @ 25 °C -20 °C to 60 °C 150 Ω...
Technical specifications A.9 Communication interfaces Communication interfaces For a more complete list of modules available for S7-1200, refer to the S7-1200 System Manual or to the customer support web site (http://www.siemens.com/automation/). A.9.1 PROFIBUS master/slave A.9.1.1 CM 1242-5 PROFIBUS slave Table A- 59...
Technical specifications A.9 Communication interfaces Technical specifications Weight Net weight 115 g • • Weight including packaging 152 g • • The current load of an external consumer connected between VP (pin 6) and DGND (pin 5) must not exceed a maximum of 15 mA (short-circuit proof) for bus termination.
Page 330
Technical specifications A.9 Communication interfaces Technical specifications Power supply / external 24 V minimum 19.2 V • • maximum 28.8 V • • Current consumption (typical) from 24 V DC 100 mA • • from the S7-1200 backplane bus 0 mA •...
Technical specifications A.9 Communication interfaces PROFIBUS cable Note Contacting the shield of the PROFIBUS cable The shield of the PROFIBUS cable must be contacted. To do this, strip the insulation from the end of the PROFIBUS cable and connect the shield to functional earth.
Page 332
Technical specifications A.9 Communication interfaces Technical specifications Permitted ambient conditions Ambient temperature during storage -40 °C to 70 °C • • during transportation -40 °C to 70 °C • • during operation with a vertical installation (DIN rail 0 °C to 55 °C •...
Page 333
Technical specifications A.9 Communication interfaces Technical specifications of the ANT794-4MR GSM/GPRS antenna ANT794-4MR Order number 6NH9860-1AA00 Mobile wireless networks GSM/GPRS Frequency ranges 824 to 960 MHz (GSM 850, 900) • 1 710 to 1 880 MHz (GSM 1 800) • 1 900 to 2 200 MHz (GSM / UMTS) •...
Technical specifications A.9 Communication interfaces Max. power 10 W Antenna cable HF cable RG 174 (fixed) with SMA male connector Cable length 1.2 m Degree of protection IP64 Permitted temperature range -40°C to +75°C Flammability UL 94 V2 External material ABS Polylac PA-765, light gray (RAL 7035) Dimensions (W x L x H) in mm 70.5 x 146.5 x 20.5...
Page 335
Technical specifications A.9 Communication interfaces Table A- 65 Transmitter and receiver Technical data CB 1241 RS485 Type RS485 (2-wire half-duplex) Common mode voltage range -7 V to +12 V, 1 second, 3 VRMS continuous Transmitter differential output voltage 2 V min. at R = 100 Ω...
Page 336
Technical specifications A.9 Communication interfaces CB 1241 RS485 (6ES7 241-1CH30-1XB0) ① Connect "TA" and TB" as shown to terminate the network. (Terminate only the end devices on the RS485 network.) ② Use shielded twisted pair cable and connect the cable shield to ground. You terminate only the two ends of the RS485 network.
Technical specifications A.9 Communication interfaces A.9.4.2 CM 1241 RS422/485 specifications CM 1241 RS422/485 Specifications Table A- 68 General specifications Technical data CM 1241 RS422/485 Order number 6ES7 241-1CH32-0XB0 Dimensions W x H x H (mm) 30 x 100 x 75 Weight 155 grams Table A- 69...
Technical specifications A.9 Communication interfaces Table A- 71 RS485 or RS422 connector (female) Description Connector Description (female) Logic or communication ground 6 PWR +5 V with 100 ohm series resistor: Output 2 TxD+ Connected for RS422 Not connected Not used for RS485: Output 3 TxD+ Signal B (RxD/TxD+): Input/Output 8 TXD-...
Technical specifications A.10 Technology modules Technical data CM 1241 RS232 Flow control Hardware, software Wait time 0 to 65535 ms Table A- 74 Power supply Technical data CM 1241 RS232 Power loss (dissipation) From +5 VDC 200 mA Table A- 75 RS232 connector (male) Description Connector...
Page 340
Technical specifications A.10 Technology modules Technical data SM 1278 4xIO-Link Master signal module Valid range high limit (DC) 28.8 VDC Polarity reversal protection Input current Current consumption 65 mA; without load Encoder supply Number of outputs Output current, rated value 200 mA Power loss Power loss, typ.
Page 341
Technical specifications A.10 Technology modules Technical data SM 1278 4xIO-Link Master signal module Monitoring of supply voltage Short circuit Diagostic indicator LED Monitoring of supply voltage Yes; flashing red DIAG LED Channel status display Yes; per channel one green LED for channel status Qn (SIO mode) and PORT status Cn (IO-Link mode) For channel diagnostics Yes;...
A.11 Companion products A.11.1 PM 1207 power module The PM 1207 is a power supply module for the SIMATIC S7-1200. It provides the following features: ● Input 120/230 VAC, output 24 VDC/2.5A ● Order number 6ESP 332-1SH71-4AA0 For more information about this product and for the product documentation, refer to the product catalog web site for the PM 1207.
A.11.3 CM CANopen module The CM CANopen module is a plug-in module between the SIMATIC S7-1200 PLC and any device running CANopen. The CM CANopen can be configured to be both master or slave. There are two CM CANopen modules: the CANopen module (order number 021620-B), and the CANopen (Ruggedized) module (order number 021730-B).
Exchanging a V3.0 CPU for a V4.0 CPU Exchanging a V3.0 CPU for a V4.0 CPU You can replace your V3.0 CPU with a V4.0 CPU (Page 74) and use your existing STEP 7 project that you designed for the V3.0 CPU. You might also want to check for and apply firmware updates (Page 269) to your connected modules.
Page 346
Exchanging a V3.0 CPU for a V4.0 CPU B.1 Exchanging a V3.0 CPU for a V4.0 CPU Web server If you exchange a V3.0 CPU for a V4.0 CPU, your Web server project settings for activating the Web server and whether or not to require HTTPS access will be the same as they were in V3.0.
Page 347
Exchanging a V3.0 CPU for a V4.0 CPU B.1 Exchanging a V3.0 CPU for a V4.0 CPU V3.0 V4.0 Config.DynamicLimits.MaxVelocity DynamicLimits.MaxVelocity Config.DynamicDefaults.Acceleration DynamicDefaults.Acceleration Config.DynamicDefaults.Deceleration DynamicDefaults.Deceleration Config.DynamicDefaults.EmergencyDeceleration DynamicDefaults.EmergencyDeceleration Config.DynamicDefaults.Jerk DynamicDefaults.Jerk Config.PositionLimits_SW.Active PositionLimitsSW.Active Config.PositionLimits_SW.MinPosition PositionLimitsSW.MinPosition Config.PositionLimits_SW.MaxPosition PositionLimitsSW.MaxPosition Config.PositionLimits_HW.Active PositionLimitsHW.Active Config.PositionLimits_HW.MinSwitchedLevel PositionLimitsHW.MinSwitchLevel Config.PositionLimits_HW.MaxSwitchedLevel PositionLimitsHW.MaxSwitchLevel Config.Homing.AutoReversal Homing.AutoReversal...
Page 348
Manufacturer) provided, you must contact the OEM to provide V4.0 versions of those blocks. In general, Siemens recommends that you recompile the hardware configuration and software in STEP 7 and download to all devices in your project after the device exchange.
Index Korea Certification, 283 Maritime, 283 AS-i add AS-i master CM1243-2 module, 149 Access protection, CPU, 82 add AS-i slave, 149 Active/passive communication address, 150 configuring the partners, 140, 155 AS-i master CM 1243-2, 148 connection IDs, 134 ATEX approval, 282 parameters, 137 Ad hoc mode, TCP and ISO on TCP, 134 Add new device...
Page 350
Index scaling analogs, 45 add modules, 74 using for complex equations, 45 CB 1241 RS485, 335 Call structure, 116 CM 1241 RS232, 338 CANopen modules comparison chart of the modules, 18 021620-B, 021630-B, 344 RS232 and RS485, 163 Capturing values from an online DB, 264 Communication module CB 1241 RS485, 335 Add new device, 73...
Page 352
Index capturing values, 264 SM 1221, 296 global data block, 62, 92 SM 1222, 297 instance data block, 62 SM 1223, 299, 300 organization blocks (OBs), 89 Discover, 271 resetting the start values, 264 Discover to upload an online CPU, 72 Data handling block (DHB), 92 Documentation, 4 Data log...
Page 353
Index from STEP 7, 269 Global library First scan indicator, 78 USS, 165 FLOOR, 102 Global memory, 62 FM approval, 282 Guidelines Force, 261, 262 installation, 25 I memory, 261, 262 inputs and outputs, 262 peripheral inputs, 261, 262 scan cycle, 262 Hardware configuration, 71 Force table add modules, 74...
Page 354
Index force operation, 262 CTRL_PWM), 111 force table, 261 DeviceStates, 117 monitor, 259 drag and drop, 30 monitor LAD, 260 drag and drop between editors, 34 peripheral input addresses (force table), 261 expandable instructions, 31 watch table, 259 favorites, 30 FLOOR, 102 addressing, 64 force, 261...
Page 355
Index IO-Link components, 275 MAC address, 80 configuring, 276 Main entry, 297 data, 276 Manuals, 4 device profile, 276 Maritime approval, 283 power-up, 275 Math, 45, 103 technology overview, 275 Maximum Web server connections, 196 IO-Link Master MC_ChangeDynamic (change dynamic settings for the block diagram, 278 axis), 237 connection examples, 279...
Page 356
Index signal modules (SM), 21 thermal zone, 23, 24, 25 Network ModuleStates, 117 getting started, 41, 44 Monitor network connection, 48 capturing values of a DB, 264 Network communication, 127 resetting the start values of a DB, 264 Network connection Monitoring configuration, 128 force operation, 262...
Page 357
Index priority in processing, 55 Process image Panels (HMI), 22 force, 261 Parameter assignment, 91 force operation, 262 Passive/active communication monitor, 259, 260 configuring the partners, 140, 155 status, 259, 260, 261 connection IDs, 134 PROFIBUS parameters, 137 add CM 1243-5 (DP master) module, 145 Password protection add DP slave, 145 access to the CPU, 82...
Page 358
Index getting started, 39 Add new device, 73 Program card, 58 Configuring the CPU parameters, 76, 79 Program editor Configuring the Ethernet port, 80 capturing values of a DB, 264 Configuring the modules, 76, 79 monitor, 260 device configuration, 71 resetting the start values of a DB, 264 PROFINET, 80 status, 260...
Page 360
Index Signal board (SB) SM 1231 AI 8 x 16 bit TC, 321 step response times for analog inputs, 313 SM 1231 AI 8 x RTD x 16 bit, 319 Signal board (SM) SM 1232 AQ 2 x 14 bit, 308 Add new device, 73 SM 1232 AQ 4 x 14 bit, 308 Signal boards (SB)
Page 361
Index SM 1231 AI 4 x 16 bit TC, 321 Project view, 29 SM 1231 AI 4 x RTD x 16 bit, 319 resetting the start values of a DB, 264 SM 1231 AI 8 x 13 bit, 307 RUN/STOP buttons, 32 SM 1231 AI 8 x 16 bit TC, 321 unplugged modules, 37 SM 1231 AI 8 x RTD x 16 bit, 319...
Page 362
Index TIA Portal Updating user-defined Web pages, 199 Add new device, 73 Upload Configuring the CPU, 76, 79 discover, 271 Configuring the modules, 79 Uploading device configuration, 71 copying blocks from an online CPU, 265 Portal view, 29 user program, 265 PROFINET, 80 User interface Project view, 29...
Page 363
Index CPU 1214C DC/DC/DC, 293 SB 1221 DI 4 200 kHz, 295 SB 1222 DQ 4 200 kHzl;, 295 SB 1223 DI 2/DQ 2 200 kHz, 295 SB 1231 AI 1 x 12 bit, 307 SB 1231 AI 1 x 16 bit RTD, 319 SB 1231 AI 1 x 16 bit TC, 319 SB 1232 AQ 1 x 12 bit, 307 SM 1221 DI 16 24 VDC, 297...
Page 364
Index Easy Book Manual, 03/2014, A5E02486774-AF...