1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

Hướng dẫn sử dụng s71200 system manual en US en US

864 13K 12

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Cấu trúc

  • S7-1200 Programmable controller

  • Legal information

  • Preface

  • Table of contents

  • 1 Product overview

    • 1.1 Introducing the S7-1200 PLC

    • 1.2 Expansion capability of the CPU

    • 1.3 S7-1200 modules

    • 1.4 New features

    • 1.5 Basic HMI panels

  • 2 STEP 7 programming software

    • 2.1 System requirements

    • 2.2 Different views to make the work easier

    • 2.3 Easy-to-use tools

      • 2.3.1 Inserting instructions into your user program

      • 2.3.2 Accessing instructions from the "Favorites" toolbar

      • 2.3.3 Creating a complex equation with a simple instruction

      • 2.3.4 Adding inputs or outputs to a LAD or FBD instruction

      • 2.3.5 Expandable instructions

      • 2.3.6 Selecting a version for an instruction

      • 2.3.7 Modifying the appearance and configuration of STEP 7

      • 2.3.8 Dragging and dropping between editors

      • 2.3.9 Changing the operating mode of the CPU

      • 2.3.10 Changing the call type for a DB

      • 2.3.11 Temporarily disconnecting devices from a network

      • 2.3.12 Virtual unplugging of devices from the configuration

  • 3 Installation

    • 3.1 Guidelines for installing S7-1200 devices

    • 3.2 Power budget

    • 3.3 Installation and removal procedures

      • 3.3.1 Mounting dimensions for the S7-1200 devices

      • 3.3.2 Installing and removing the CPU

      • 3.3.3 Installing and removing an SB, CB or BB

      • 3.3.4 Installing and removing an SM

      • 3.3.5 Installing and removing a CM or CP

      • 3.3.6 Removing and reinstalling the S7-1200 terminal block connector

      • 3.3.7 Installing and removing the expansion cable

      • 3.3.8 TS (teleservice) adapter

        • 3.3.8.1 Connecting the TeleService Adapter

        • 3.3.8.2 Installing the SIM card

        • 3.3.8.3 Installing the TS adapter unit

        • 3.3.8.4 Installing the TS adapter on a wall

    • 3.4 Wiring guidelines

  • 4 PLC concepts

    • 4.1 Execution of the user program

      • 4.1.1 Operating modes of the CPU

      • 4.1.2 Processing the scan cycle in RUN mode

      • 4.1.3 Organization blocks (OBs)

      • 4.1.4 Event execution priorities and queuing

      • 4.1.5 Monitoring the cycle time

      • 4.1.6 CPU memory

        • 4.1.6.1 System and clock memory

      • 4.1.7 Diagnostics buffer

      • 4.1.8 Time of day clock

      • 4.1.9 Configuring the outputs on a RUN-to-STOP transition

    • 4.2 Data storage, memory areas, I/O and addressing

      • 4.2.1 Accessing the data of the S7-1200

    • 4.3 Processing of analog values

    • 4.4 Data types

      • 4.4.1 Bool, Byte, Word, and DWord data types

      • 4.4.2 Integer data types

      • 4.4.3 Floating-point real data types

      • 4.4.4 Time and Date data types

      • 4.4.5 Character and String data types

      • 4.4.6 Array data type

      • 4.4.7 Data structure data type

      • 4.4.8 PLC data type

      • 4.4.9 Pointer data types

        • 4.4.9.1 "Pointer" pointer data type

        • 4.4.9.2 "Any" pointer data type

        • 4.4.9.3 "Variant" pointer data type

      • 4.4.10 Accessing a "slice" of a tagged data type

      • 4.4.11 Accessing a tag with an AT overlay

    • 4.5 Using a memory card

      • 4.5.1 Inserting a memory card in the CPU

      • 4.5.2 Configuring the startup parameter of the CPU before copying the project to the memory card

      • 4.5.3 Transfer card

      • 4.5.4 Program card

      • 4.5.5 Firmware update

    • 4.6 Recovery from a lost password

  • 5 Device configuration

    • 5.1 Inserting a CPU

    • 5.2 Detecting the configuration for an unspecified CPU

    • 5.3 Adding modules to the configuration

    • 5.4 Configuring the operation of the CPU

    • 5.5 Configuring the parameters of the modules

    • 5.6 Configuring the CPU for communication

      • 5.6.1 Creating a network connection

      • 5.6.2 Configuring the Local/Partner connection path

      • 5.6.3 Parameters for the PROFINET connection

      • 5.6.4 Assigning Internet Protocol (IP) addresses

        • 5.6.4.1 Assigning IP addresses to programming and network devices

        • 5.6.4.2 Checking the IP address of your programming device

        • 5.6.4.3 Assigning an IP address to a CPU online

        • 5.6.4.4 Configuring an IP address for a CPU in your project

      • 5.6.5 Testing the PROFINET network

      • 5.6.6 Locating the Ethernet (MAC) address on the CPU

      • 5.6.7 Configuring Network Time Protocol synchronization

      • 5.6.8 PROFINET device start-up time, naming, and address assignment

  • 6 Programming concepts

    • 6.1 Guidelines for designing a PLC system

    • 6.2 Structuring your user program

    • 6.3 Using blocks to structure your program

      • 6.3.1 Organization block (OB)

      • 6.3.2 Function (FC)

      • 6.3.3 Function block (FB)

      • 6.3.4 Data block (DB)

    • 6.4 Understanding data consistency

    • 6.5 Programming language

      • 6.5.1 Ladder logic (LAD)

      • 6.5.2 Function Block Diagram (FBD)

      • 6.5.3 SCL

      • 6.5.4 EN and ENO for LAD, FBD and SCL

    • 6.6 Protection

      • 6.6.1 Access protection for the CPU

      • 6.6.2 Know-how protection

      • 6.6.3 Copy protection

    • 6.7 Downloading the elements of your program

    • 6.8 Uploading from the CPU

      • 6.8.1 Copying elements of the project

      • 6.8.2 Using the compare function

    • 6.9 Debugging and testing the program

      • 6.9.1 Monitor and modify data in the CPU

      • 6.9.2 Watch tables and force tables

      • 6.9.3 Cross reference to show usage

      • 6.9.4 Call structure to examine the calling hierarchy

  • 7 Basic instructions

    • 7.1 Bit logic

      • 7.1.1 Bit logic contacts and coils

      • 7.1.2 Set and reset instructions

      • 7.1.3 Positive and negative edge instructions

    • 7.2 Timers

    • 7.3 Counters

    • 7.4 Compare

      • 7.4.1 Compare

      • 7.4.2 In-range and Out-of-range instructions

      • 7.4.3 OK and Not OK instructions

    • 7.5 Math

      • 7.5.1 Calculate instruction

      • 7.5.2 Add, subtract, multiply and divide instructions

      • 7.5.3 Modulo instruction

      • 7.5.4 Negation instruction

      • 7.5.5 Increment and decrement instructions

      • 7.5.6 Absolute value instruction

      • 7.5.7 Minimum and Maximum instructions

      • 7.5.8 Limit instruction

      • 7.5.9 Floating-point math instructions

    • 7.6 Move

      • 7.6.1 Move and block move instructions

      • 7.6.2 FieldRead and FieldWrite instructions

      • 7.6.3 Fill instructions

      • 7.6.4 Swap instruction

    • 7.7 Convert

      • 7.7.1 CONV instruction

      • 7.7.2 Conversion instructions for SCL

      • 7.7.3 Round and truncate instructions

      • 7.7.4 Ceiling and floor instructions

      • 7.7.5 Scale and normalize instructions

    • 7.8 Program control

      • 7.8.1 Overview of SCL program control statements

      • 7.8.2 IF-THEN statement

      • 7.8.3 CASE statement

      • 7.8.4 FOR statement

      • 7.8.5 WHILE-DO statement

      • 7.8.6 REPEAT-UNTIL statement

      • 7.8.7 CONTINUE statement

      • 7.8.8 EXIT statement

      • 7.8.9 GOTO statement

      • 7.8.10 RETURN statement

      • 7.8.11 Jump and label instructions

      • 7.8.12 JMP_LIST instruction

      • 7.8.13 SWITCH instruction

      • 7.8.14 RET execution control instruction

      • 7.8.15 Re-trigger scan cycle watchdog instruction

      • 7.8.16 Stop scan cycle instruction

      • 7.8.17 Get Error instructions

    • 7.9 Word logic operations

      • 7.9.1 AND, OR, and XOR instructions

      • 7.9.2 Invert instruction

      • 7.9.3 Encode and decode instructions

      • 7.9.4 Select, Multiplex, and Demultiplex instructions

    • 7.10 Shift and Rotate

      • 7.10.1 Shift instructions

      • 7.10.2 Rotate instructions

  • 8 Extended instructions

    • 8.1 Date and time-of-day

      • 8.1.1 Date and time instructions

      • 8.1.2 Set and read system clock

      • 8.1.3 Run-time meter instruction

      • 8.1.4 SET_TIMEZONE instruction

    • 8.2 String and character

      • 8.2.1 String data overview

      • 8.2.2 S_MOVE instruction

      • 8.2.3 String conversion instructions

        • 8.2.3.1 String to value and value to string conversions

        • 8.2.3.2 String-to-characters and characters-to-string conversions

        • 8.2.3.3 ASCII to Hex and Hex to ASCII conversions

      • 8.2.4 String operation instructions

        • 8.2.4.1 LEN

        • 8.2.4.2 CONCAT

        • 8.2.4.3 LEFT, RIGHT, and MID

        • 8.2.4.4 DELETE

        • 8.2.4.5 INSERT

        • 8.2.4.6 REPLACE

        • 8.2.4.7 FIND

    • 8.3 Distributed I/O (PROFINET, PROFIBUS, or AS-i)

      • 8.3.1 Distributed I/O Instructions

      • 8.3.2 RDREC and WRREC

      • 8.3.3 RALRM

      • 8.3.4 STATUS parameter for RDREC, WRREC, and RALRM

      • 8.3.5 DPRD_DAT and DPWR_DAT

      • 8.3.6 DPNRM_DG

    • 8.4 Interrupts

      • 8.4.1 Attach and detach instructions

      • 8.4.2 Cyclic interrupts

        • 8.4.2.1 SET_CINT (Set cyclic interrupt)

        • 8.4.2.2 QRY_CINT (Query cyclic interrupt)

      • 8.4.3 Time delay interrupts

      • 8.4.4 Asynchronous event interrupts

    • 8.5 Diagnostics (PROFINET or PROFIBUS)

      • 8.5.1 Diagnostic instructions

      • 8.5.2 Diagnostic events for distributed I/O

      • 8.5.3 LED instruction

      • 8.5.4 DeviceStates instruction

      • 8.5.5 ModuleStates instruction

      • 8.5.6 GET_DIAG instruction

    • 8.6 Pulse

      • 8.6.1 CTRL_PWM instruction

      • 8.6.2 Operation of the pulse outputs

      • 8.6.3 Configuring a pulse channel for PWM

    • 8.7 Data logging

      • 8.7.1 Data log record structure

      • 8.7.2 Program instructions that control Data logs

        • 8.7.2.1 DataLogCreate

        • 8.7.2.2 DataLogOpen

        • 8.7.2.3 DataLogClose

        • 8.7.2.4 DataLogWrite

        • 8.7.2.5 DataLogNewFile

      • 8.7.3 Working with data logs

      • 8.7.4 Limits to the size of data log files

      • 8.7.5 Data log example program

    • 8.8 Data block control

      • 8.8.1 READ_DBL, WRIT_DBL (Read from or write to a DB in load memory)

    • 8.9 Common error codes for the "Extended" instructions

  • 9 Technology instructions

    • 9.1 High-speed counter

      • 9.1.1 Operation of the high-speed counter

      • 9.1.2 Configuration of the HSC

    • 9.2 PID control

      • 9.2.1 Inserting the PID instruction and technological object

      • 9.2.2 PID_Compact instruction

      • 9.2.3 PID_Compact instruction ErrorBit parameters

      • 9.2.4 PID_3STEP instruction

      • 9.2.5 PID_3STEP instruction ErrorBit parameters

      • 9.2.6 Configuring the PID controller

      • 9.2.7 Commissioning the PID controller

    • 9.3 Motion control

      • 9.3.1 Configuring the axis

      • 9.3.2 Configuring the TO_CommandTable_PTO

      • 9.3.3 Motion control instructions

        • 9.3.3.1 MC_Power instruction

        • 9.3.3.2 MC_Reset instruction

        • 9.3.3.3 MC_Home instruction

        • 9.3.3.4 MC_Halt instruction

        • 9.3.3.5 MC_MoveAbsolute instruction

        • 9.3.3.6 MC_MoveRelative instruction

        • 9.3.3.7 MC_MoveVelocity instruction

        • 9.3.3.8 MC_MoveJog instruction

        • 9.3.3.9 MC_CommandTable instruction

        • 9.3.3.10 MC_ChangeDynamic

      • 9.3.4 Operation of motion control for S7-1200

        • 9.3.4.1 CPU outputs used for motion control

        • 9.3.4.2 Hardware and software limit switches for motion control

        • 9.3.4.3 Homing

        • 9.3.4.4 Jerk limit

      • 9.3.5 Commissioning

      • 9.3.6 Monitoring active commands

        • 9.3.6.1 Monitoring MC instructions with a "Done" output parameter

        • 9.3.6.2 Monitoring the MC_Velocity instruction

        • 9.3.6.3 Monitoring the MC_MoveJog instruction

  • 10 Communication

    • 10.1 Number of asynchronous communication connections supported

    • 10.2 PROFINET

      • 10.2.1 Local/Partner connection

      • 10.2.2 Open user communication

        • 10.2.2.1 Connection IDs for the PROFINET instructions

        • 10.2.2.2 Protocols

        • 10.2.2.3 Ad hoc mode

        • 10.2.2.4 TCP and ISO on TCP

        • 10.2.2.5 UDP

        • 10.2.2.6 T_CONFIG

        • 10.2.2.7 Common parameters for instructions

      • 10.2.3 Communication with a programming device

        • 10.2.3.1 Establishing the hardware communications connection

        • 10.2.3.2 Configuring the devices

        • 10.2.3.3 Assigning Internet Protocol (IP) addresses

        • 10.2.3.4 Testing your PROFINET network

      • 10.2.4 HMI-to-PLC communication

        • 10.2.4.1 Configuring logical network connections between two devices

      • 10.2.5 PLC-to-PLC communication

        • 10.2.5.1 Configuring logical network connections between two devices

        • 10.2.5.2 Configuring the Local/Partner connection path between two devices

        • 10.2.5.3 Configuring transmit (send) and receive parameters

      • 10.2.6 Configuring a CPU and PROFINET IO device

      • 10.2.7 Diagnostics

      • 10.2.8 Distributed I/O Instructions

      • 10.2.9 Diagnostic instructions

      • 10.2.10 Diagnostic events for distributed I/O

    • 10.3 PROFIBUS

      • 10.3.1 Communications modules PROFIBUS

        • 10.3.1.1 Connecting to PROFIBUS

        • 10.3.1.2 Communications services of the PROFIBUS CMs

        • 10.3.1.3 Other properties of the PROFIBUS CMs

        • 10.3.1.4 Configuration examples for PROFIBUS

      • 10.3.2 Configuring a DP master and slave device

        • 10.3.2.1 Adding the CM 1243-5 (DP master) module and a DP slave

        • 10.3.2.2 Configuring logical network connections between two PROFIBUS devices

        • 10.3.2.3 Assigning PROFIBUS addresses to the CM 1243-5 module and DP slave

      • 10.3.3 Distributed I/O Instructions

      • 10.3.4 Diagnostic instructions

      • 10.3.5 Diagnostic events for distributed

    • 10.4 AS-i

      • 10.4.1 Configuring an AS-i master and slave device

        • 10.4.1.1 Adding the AS-i master CM 1243-2 and AS-i slave

        • 10.4.1.2 Configuring logical network connections between two AS-i devices

        • 10.4.1.3 Configuring the properties of the AS-i master CM1243-2

        • 10.4.1.4 Assigning an AS-i address to an AS-i slave

      • 10.4.2 Exchanging data between the user program and AS-i slaves

        • 10.4.2.1 STEP 7 basic configuration

        • 10.4.2.2 Configuring slaves with STEP 7

      • 10.4.3 Distributed I/O Instructions

      • 10.4.4 Working with AS-i online tools

    • 10.5 S7 communication

      • 10.5.1 GET and PUT instructions

      • 10.5.2 Creating an S7 connection

      • 10.5.3 Configuring the Local/Partner connection path between two devices

      • 10.5.4 GET/PUT connection parameter assignment

        • 10.5.4.1 Connection parameters

        • 10.5.4.2 Configuring a CPU-to-CPU S7 connection

  • 11 Web server

    • 11.1 Enabling the Web server

    • 11.2 Standard web pages

      • 11.2.1 Accessing the standard Web pages from the PC

      • 11.2.2 Layout of the standard Web pages

      • 11.2.3 Introduction

      • 11.2.4 Start

      • 11.2.5 Identification

      • 11.2.6 Diagnostic Buffer

      • 11.2.7 Module Information

      • 11.2.8 Communication

      • 11.2.9 Variable Status

      • 11.2.10 Data Logs

      • 11.2.11 Update Firmware

    • 11.3 User-defined web pages

      • 11.3.1 Creating HTML pages

      • 11.3.2 AWP commands supported by the S7-1200 Web server

        • 11.3.2.1 Reading variables

        • 11.3.2.2 Writing variables

        • 11.3.2.3 Reading special variables

        • 11.3.2.4 Writing special variables

        • 11.3.2.5 Using an alias for a variable reference

        • 11.3.2.6 Defining enum types

        • 11.3.2.7 Referencing CPU variables with an enum type

        • 11.3.2.8 Creating fragments

        • 11.3.2.9 Importing fragments

        • 11.3.2.10 Combining definitions

        • 11.3.2.11 Handling tag names that contain special characters

      • 11.3.3 Configuring use of user-defined Web pages

      • 11.3.4 Programming the WWW instruction for user-defined web pages

      • 11.3.5 Downloading the program blocks to the CPU

      • 11.3.6 Accessing the user-defined web pages from the PC

      • 11.3.7 Constraints specific to user-defined Web pages

      • 11.3.8 Example of a user-defined web page

        • 11.3.8.1 Web page for monitoring and controlling a wind turbine

        • 11.3.8.2 Reading and displaying controller data

        • 11.3.8.3 Using an enum type

        • 11.3.8.4 Writing user input to the controller

        • 11.3.8.5 Writing a special variable

        • 11.3.8.6 Reference: HTML listing of remote wind turbine monitor Web page

        • 11.3.8.7 Configuration in STEP 7 of the example Web page

      • 11.3.9 Setting up user-defined Web pages in multiple languages

        • 11.3.9.1 Creating the folder structure

        • 11.3.9.2 Programming the language switch

        • 11.3.9.3 Configuring STEP 7 to use a multi-language page structure

      • 11.3.10 Advanced user-defined Web page control

    • 11.4 Constraints

      • 11.4.1 Features restricted when JavaScript is disabled

      • 11.4.2 Features restricted when cookies are not allowed

      • 11.4.3 Importing the Siemens security certificate

      • 11.4.4 Importing CSV format data logs to non-USA/UK versions of Microsoft Excel

  • 12 Communication processor

    • 12.1 Using the serial communication interfaces

    • 12.2 Biasing and terminating an RS485 network connector

    • 12.3 Point-to-Point (PtP) communication

      • 12.3.1 Point-to-Point instructions

        • 12.3.1.1 Common parameters for Point-to-Point instructions

        • 12.3.1.2 PORT_CFG instruction

        • 12.3.1.3 SEND_CFG instruction

        • 12.3.1.4 RCV_CFG instruction

        • 12.3.1.5 SEND_PTP instruction

        • 12.3.1.6 RCV_PTP instruction

        • 12.3.1.7 RCV_RST instruction

        • 12.3.1.8 SGN_GET instruction

        • 12.3.1.9 SGN_SET instruction

      • 12.3.2 Configuring the communication ports

        • 12.3.2.1 Managing flow control

      • 12.3.3 Configuring the transmit (send) and receive parameters

        • 12.3.3.1 Configuring transmit (send) parameters

        • 12.3.3.2 Configuring receive parameters

      • 12.3.4 Programming the PtP communications

        • 12.3.4.1 Polling architecture

      • 12.3.5 Example: Point-to-Point communication

        • 12.3.5.1 Configuring the communication module

        • 12.3.5.2 Configuring the RS422 and RS485

        • 12.3.5.3 Programming the STEP 7 program

        • 12.3.5.4 Configuring the terminal emulator

        • 12.3.5.5 Running the example program

    • 12.4 Universal serial interface (USS) communication

      • 12.4.1 Requirements for using the USS protocol

      • 12.4.2 USS_DRV instruction

      • 12.4.3 USS_PORT instruction

      • 12.4.4 USS_RPM instruction

      • 12.4.5 USS_WPM instruction

      • 12.4.6 USS status codes

      • 12.4.7 General drive setup information

    • 12.5 Modbus communication

      • 12.5.1 Overview of Modbus RTU and TCP communication

      • 12.5.2 Modbus TCP

        • 12.5.2.1 MB_CLIENT (Modbus TCP)

        • 12.5.2.2 MB_SERVER (Modbus TCP)

        • 12.5.2.3 MB_SERVER example: Multiple TCP connections

        • 12.5.2.4 MB_CLIENT example 1: Multiple requests with common TCP connection

        • 12.5.2.5 MB_CLIENT example 2: Multiple requests with different TCP connections

        • 12.5.2.6 MB_CLIENT example 3: Output image write request

        • 12.5.2.7 MB_CLIENT example 4: Coordinating multiple requests

      • 12.5.3 Modbus RTU

        • 12.5.3.1 MB_COMM_LOAD

        • 12.5.3.2 MB_MASTER

        • 12.5.3.3 MB_SLAVE

        • 12.5.3.4 Modbus RTU master example program

        • 12.5.3.5 Modbus RTU slave example program

    • 12.6 Telecontrol and TeleService with the CP 1242-7

      • 12.6.1 Connection to a GSM network

      • 12.6.2 Applications of the CP 1242-7

      • 12.6.3 Other properties of the CP

      • 12.6.4 Accessories

      • 12.6.5 Configuration examples for telecontrol

  • 13 Teleservice communication (SMTP email)

    • 13.1 TM_Mail transfer email instruction

  • 14 Online and diagnostic tools

    • 14.1 Status LEDs

    • 14.2 Going online and connecting to a CPU

    • 14.3 Assigning a name to a PROFINET IO device online

    • 14.4 Setting the IP address and time of day

    • 14.5 Resetting to factory settings

    • 14.6 CPU operator panel for the online CPU

    • 14.7 Monitoring the cycle time and memory usage

    • 14.8 Displaying diagnostic events in the CPU

    • 14.9 Comparing offline and online CPUs

    • 14.10 Monitoring and modifying values in the CPU

      • 14.10.1 Going online to monitor the values in the CPU

      • 14.10.2 Displaying status in the program editor

      • 14.10.3 Capturing the online values of a DB to reset the start values

      • 14.10.4 Using a watch table to monitor and modify values in the CPU

        • 14.10.4.1 Using a trigger when monitoring or modifying PLC tags

        • 14.10.4.2 Enabling outputs in STOP mode

      • 14.10.5 Forcing values in the CPU

        • 14.10.5.1 Using the force table

        • 14.10.5.2 Operation of the Force function

    • 14.11 Downloading in RUN mode

      • 14.11.1 Prerequisites for "Download in RUN mode"

      • 14.11.2 Changing your program in RUN mode

      • 14.11.3 Downloading selected blocks

      • 14.11.4 Downloading a single selected block with a compile error in another block

      • 14.11.5 System reaction if the download process fails

      • 14.11.6 Downloading the program in RUN mode

  • A Technical specifications

    • A.1 General Technical Specifications

    • A.2 CPU 1211C

      • A.2.1 General specifications and features

      • A.2.2 Timers, counters and code blocks supported by CPU 1211C

      • A.2.3 Digital inputs and outputs

      • A.2.4 Analog inputs

        • A.2.4.1 Step response of the built-in analog inputs of the CPU

        • A.2.4.2 Sample time for the built-in analog ports of the CPU

      • A.2.5 CPU 1211C Wiring diagrams

    • A.3 CPU 1212C

      • A.3.1 General specifications and features

      • A.3.2 Timers, counters and code blocks supported by CPU 1212C

      • A.3.3 Digital inputs and outputs

      • A.3.4 Analog inputs

        • A.3.4.1 Step response of the built-in analog inputs of the CPU

        • A.3.4.2 Sample time for the built-in analog ports of the CPU

      • A.3.5 CPU 1212C Wiring diagrams

    • A.4 CPU 1214C

      • A.4.1 General specifications and features

      • A.4.2 Timers, counters and code blocks supported by CPU 1214C

      • A.4.3 Digital inputs and outputs

      • A.4.4 Analog inputs

        • A.4.4.1 Step response of the built-in analog inputs of the CPU

        • A.4.4.2 Sample time for the built-in analog ports of the CPU

      • A.4.5 CPU 1214C Wiring Diagrams

    • A.5 CPU 1215C

      • A.5.1 General specifications and features

      • A.5.2 Timers, counters and code blocks supported by CPU 1215C

      • A.5.3 Digital inputs and outputs

      • A.5.4 Analog inputs and outputs

        • A.5.4.1 Analog input specifications

        • A.5.4.2 Step response of built-in analog inputs of the CPU

        • A.5.4.3 Sample time for the built-in analog ports of the CPU

        • A.5.4.4 Analog output specifications

      • A.5.5 CPU 1215C Wiring Diagrams

    • A.6 Digital signal modules (SMs)

      • A.6.1 SM 1221 digital input specifications

      • A.6.2 SM 1222 8-Point Digital Output Specifications

      • A.6.3 SM 1222 16-Point Digital Output Specifications

      • A.6.4 SM 1223 Digital Input/Output VDC Specifications

      • A.6.5 SM 1223 Digital Input/Output AC Specifications

    • A.7 Analog signal modules (SMs)

      • A.7.1 SM 1231 analog input module specifications

      • A.7.2 SM 1232 analog output module specifications

      • A.7.3 SM 1234 analog input/output module specifications

      • A.7.4 Step response of the analog inputs

      • A.7.5 Sample time and update times for the analog inputs

      • A.7.6 Measurement ranges of the analog inputs for voltage

      • A.7.7 Measurement ranges of the analog inputs for current

      • A.7.8 Output (AQ) measurement ranges for voltage and current (SB and SM)

    • A.8 Thermocouple and RTD signal modules (SMs)

      • A.8.1 SM 1231 Thermocouple

        • A.8.1.1 Basic operation for a thermocouple

        • A.8.1.2 Selection tables for the SM 1231 thermocouple

      • A.8.2 SM 1231 RTD

        • A.8.2.1 Selection tables for the SM 1231 RTD

    • A.9 Digital signal boards (SBs)

      • A.9.1 SB 1221 200 kHz digital input specifications

      • A.9.2 SB 1222 200 kHz digital output specifications

      • A.9.3 SB 1223 200 kHz digital input / output specifications

      • A.9.4 SB 1223 2 X 24 VDC input / 2 X 24 VDC output specifications

    • A.10 Analog signal boards (SBs)

      • A.10.1 SB 1231 1 analog input specifications

      • A.10.2 SB 1232 1 analog output specifications

      • A.10.3 Measurement ranges for analog inputs and outputs

        • A.10.3.1 Step response of the analog inputs

        • A.10.3.2 Sample time and update times for the analog inputs

        • A.10.3.3 Measurement ranges of the analog inputs for voltage

        • A.10.3.4 Measurement ranges of the analog inputs for current

        • A.10.3.5 Output (AQ) measurement ranges for voltage and current (SB and SM)

      • A.10.4 Thermocouple SBs

        • A.10.4.1 SB 1231 1 analog thermocouple input specifications

        • A.10.4.2 Basic operation for a thermocouple

      • A.10.5 RTD SBs

        • A.10.5.1 SB 1231 1 analog RTD input specifications

        • A.10.5.2 Selection tables for the SB 1231 RTD

    • A.11 BB 1297 Battery Board

    • A.12 Communication interfaces

      • A.12.1 PROFIBUS

        • A.12.1.1 CM 1242-5

        • A.12.1.2 CM 1243-5

      • A.12.2 GPRS

        • A.12.2.1 CP 1242-7

      • A.12.3 CM 1243-2 AS-i Master

        • A.12.3.1 Technical data for the AS-i master CM 1243-2

        • A.12.3.2 Electrical connections of the AS-i master CM 1243-2

      • A.12.4 RS232, RS422, and RS485

        • A.12.4.1 CB 1241 RS485 Specifications

        • A.12.4.2 CM 1241 RS232 Specifications

        • A.12.4.3 CM 1241 RS422/485 Specifications

    • A.13 TeleService (TS Adapter and TS Adapter modular)

    • A.14 SIMATIC memory cards

    • A.15 Input simulators

    • A.16 I/O expansion cable

    • A.17 Companion products

      • A.17.1 PM 1207 power module

      • A.17.2 CSM 1277 compact switch module

  • B Calculating a power budget

  • C Order numbers

    • C.1 CPU modules

    • C.2 Signal modules (SMs), signal boards (SBs) and battery boards (BB)

    • C.3 Communication

    • C.4 Other modules

    • C.5 Memory cards

    • C.6 Basic HMI devices

    • C.7 Spare parts and other hardware

    • C.8 Programming software

    • C.9 Documentation

  • Index

    • A

    • B

    • C

    • D

    • E

    • F

    • G

    • H

    • I

    • J

    • K

    • L

    • M

    • N

    • O

    • P

    • Q

    • R

    • S

    • T

    • U

    • V

    • W

    • X

Nội dung

Hướng dẫn sử dụng s71200 system manual en

 S7-1200 Programmable controller SIMATIC S7 S7-1200 Programmable controller System Manual 04/2012 A5E02486680-06 _ Preface _ Product overview STEP programming _ software _ Installation _ PLC concepts _ Device configuration _ Programming concepts _ Basic instructions _ Extended instructions _ Technology instructions 10 _ Communication 11 _ Web server 12 _ Communication processor Teleservice communication 13 _ (SMTP email) 14 _ Online and diagnostic tools A _ Technical specifications B _ Calculating a power budget C _ Order numbers Legal information Legal information Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol These notices shown below are graded according to the degree of danger DANGER indicates that death or severe personal injury will result if proper precautions are not taken WARNING indicates that death or severe personal injury may result if proper precautions are not taken CAUTION with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken CAUTION without a safety alert symbol, indicates that property damage can result if proper precautions are not taken NOTICE indicates that an unintended result or situation can occur if the relevant information is not taken into account If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems Proper use of Siemens products 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 The permissible ambient conditions must be complied with The information in the relevant documentation must be observed Trademarks All names identified by ® are registered trademarks of Siemens AG The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described Since variance cannot be precluded entirely, we cannot guarantee full consistency However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY Order number: 6ES7298-8FA30-8BH0 Ⓟ 05/2012 Technical data subject to change Copyright © Siemens AG 2012 All rights reserved Preface Purpose of the manual The S7-1200 series is a line of programmable logic controllers (PLCs) that can control a variety of automation applications Compact design, low cost, and a powerful instruction set make the S7-1200 a perfect solution for controlling a wide variety of applications The S71200 models and the Windows-based programming tool give you the flexibility you need to solve your automation problems This manual provides information about installing and programming the S7-1200 PLCs and is designed for engineers, programmers, installers, and electricians who have a general knowledge of programmable logic controllers Required basic knowledge To understand this manual, it is necessary to have a general knowledge of automation and programmable logic controllers Scope of the manual This manual describes the following products: ● STEP V11 Basic and Professional ● S7-1200 CPU firmware release V3.0 For a complete list of the S7-1200 products described in this manual, refer to the technical specifications (Page 699) Certification, CE label, C-Tick, and other standards Refer to the technical specifications (Page 699) for more information Service and support In addition to our documentation, we offer our technical expertise on the Internet on the customer support web site (http://www.siemens.com/automation/) Contact your Siemens distributor or sales office for assistance in answering any technical questions, for training, or for ordering S7 products Because your sales representatives are technically trained and have the most specific knowledge about your operations, process and industry, as well as about the individual Siemens products that you are using, they can provide the fastest and most efficient answers to any problems you might encounter S7-1200 Programmable controller System Manual, 04/2012, A5E02486680-06 Preface Documentation and information S7-1200 and STEP provide a variety of documentation and other resources for finding the technical information that you require ● The S7-1200 system manual provides specific information about the operation, programming and the specifications for the complete S7-1200 product family In addition to the system manual, the S7-1200 Easy Book provides a more general overview to the capabilities of the S7-1200 family Both the system manual and the Easy Book are available as electronic (PDF) and printed manuals The electronic manuals can be downloaded from the customer support web site and can also be found on the companion disk that ships with every S7-1200 CPU ● The online information system of STEP provides immediate access to the conceptual information and specific instructions that describe the operation and functionality of the programming package and basic operation of SIMATIC CPUs ● My Documentation Manager accesses the electronic (PDF) versions of the SIMATIC documentation set, including the system manual, the Easy Book and the information system of STEP 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 The podcasts utilize short educational video presentations that focus on specific features or scenarios in order to demonstrate the interactions, convenience and efficiency provided by STEP Visit the following web sites to access the collection of podcasts: – STEP Basic web page (http://www.automation.siemens.com/mcms/simaticcontroller-software/en/step7/step7-basic/Pages/Default.aspx) – STEP Professional web page (http://www.automation.siemens.com/mcms/simaticcontroller-software/en/step7/step7-professional/Pages/Default.aspx) ● You can also follow or join product discussions on the Service & Support technical forum (https://www.automation.siemens.com/WW/forum/guests/Conferences.aspx?Language=e n&siteid=csius&treeLang=en&groupid=4000002&extranet=standard&viewreg=WW&nodei d0=34612486) These forums allow you to interact with various product experts – Forum for S7-1200 (https://www.automation.siemens.com/WW/forum/guests/Conference.aspx?SortField= LastPostDate&SortOrder=Descending&ForumID=258&Language=en&onlyInternet=Fa lse) – Forum for STEP Basic (https://www.automation.siemens.com/WW/forum/guests/Conference.aspx?SortField= LastPostDate&SortOrder=Descending&ForumID=265&Language=en&onlyInternet=Fa lse) S7-1200 Programmable controller System Manual, 04/2012, A5E02486680-06 Table of contents Preface Product overview 19 1.1 1.2 Expansion capability of the CPU 22 1.3 S7-1200 modules .24 1.4 New features 25 1.5 Introducing the S7-1200 PLC .19 Basic HMI panels 26 STEP programming software 29 2.1 2.2 Different views to make the work easier 30 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.3.10 2.3.11 2.3.12 System requirements 29 Easy-to-use tools 31 Inserting instructions into your user program .31 Accessing instructions from the "Favorites" toolbar 32 Creating a complex equation with a simple instruction 33 Adding inputs or outputs to a LAD or FBD instruction 35 Expandable instructions .35 Selecting a version for an instruction 36 Modifying the appearance and configuration of STEP .36 Dragging and dropping between editors 37 Changing the operating mode of the CPU 37 Changing the call type for a DB 39 Temporarily disconnecting devices from a network 40 Virtual unplugging of devices from the configuration 41 Installation 43 3.1 Guidelines for installing S7-1200 devices 43 3.2 Power budget .44 3.3 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.8.1 3.3.8.2 3.3.8.3 3.3.8.4 Installation and removal procedures 46 Mounting dimensions for the S7-1200 devices 46 Installing and removing the CPU 49 Installing and removing an SB, CB or BB 51 Installing and removing an SM 52 Installing and removing a CM or CP 53 Removing and reinstalling the S7-1200 terminal block connector .55 Installing and removing the expansion cable .56 TS (teleservice) adapter .57 Connecting the TeleService Adapter 57 Installing the SIM card 58 Installing the TS adapter unit .59 Installing the TS adapter on a wall .60 S7-1200 Programmable controller System Manual, 04/2012, A5E02486680-06 Table of contents 3.4 Wiring guidelines 61 PLC concepts 67 4.1 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.6.1 4.1.7 4.1.8 4.1.9 4.2 4.2.1 Data storage, memory areas, I/O and addressing 87 Accessing the data of the S7-1200 87 4.3 Processing of analog values 92 4.4 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9 4.4.9.1 4.4.9.2 4.4.9.3 4.4.10 4.4.11 Data types 93 Bool, Byte, Word, and DWord data types 94 Integer data types 95 Floating-point real data types 95 Time and Date data types 96 Character and String data types 97 Array data type 99 Data structure data type 100 PLC data type 100 Pointer data types 101 "Pointer" pointer data type 101 "Any" pointer data type 102 "Variant" pointer data type 103 Accessing a "slice" of a tagged data type 104 Accessing a tag with an AT overlay 105 4.5 4.5.1 4.5.2 4.5.3 4.5.4 4.5.5 Using a memory card 107 Inserting a memory card in the CPU 108 Configuring the startup parameter of the CPU before copying the project to the memory card 110 Transfer card 110 Program card 112 Firmware update 115 4.6 Execution of the user program 67 Operating modes of the CPU 69 Processing the scan cycle in RUN mode 72 Organization blocks (OBs) 73 Event execution priorities and queuing 75 Monitoring the cycle time 80 CPU memory 82 System and clock memory 84 Diagnostics buffer 86 Time of day clock 86 Configuring the outputs on a RUN-to-STOP transition 87 Recovery from a lost password 118 Device configuration 119 5.1 Inserting a CPU 120 5.2 Detecting the configuration for an unspecified CPU 121 5.3 Adding modules to the configuration 122 5.4 Configuring the operation of the CPU 123 5.5 Configuring the parameters of the modules 125 S7-1200 Programmable controller System Manual, 04/2012, A5E02486680-06 Table of contents 5.6 5.6.1 5.6.2 5.6.3 5.6.4 5.6.4.1 5.6.4.2 5.6.4.3 5.6.4.4 5.6.5 5.6.6 5.6.7 5.6.8 Configuring the CPU for communication 126 Creating a network connection 126 Configuring the Local/Partner connection path 127 Parameters for the PROFINET connection .129 Assigning Internet Protocol (IP) addresses .132 Assigning IP addresses to programming and network devices 132 Checking the IP address of your programming device 134 Assigning an IP address to a CPU online 134 Configuring an IP address for a CPU in your project .136 Testing the PROFINET network 139 Locating the Ethernet (MAC) address on the CPU 140 Configuring Network Time Protocol synchronization 141 PROFINET device start-up time, naming, and address assignment 142 Programming concepts 145 6.1 6.2 Structuring your user program 146 6.3 6.3.1 6.3.2 6.3.3 6.3.4 Using blocks to structure your program .148 Organization block (OB) 148 Function (FC) .150 Function block (FB) 150 Data block (DB) 151 6.4 Understanding data consistency 153 6.5 6.5.1 6.5.2 6.5.3 6.5.4 Programming language 154 Ladder logic (LAD) .155 Function Block Diagram (FBD) 156 SCL 156 EN and ENO for LAD, FBD and SCL .163 6.6 6.6.1 6.6.2 6.6.3 Protection 164 Access protection for the CPU 164 Know-how protection 165 Copy protection 166 6.7 Downloading the elements of your program 168 6.8 6.8.1 6.8.2 Uploading from the CPU 168 Copying elements of the project 168 Using the compare function .170 6.9 6.9.1 6.9.2 6.9.3 6.9.4 Guidelines for designing a PLC system 145 Debugging and testing the program 170 Monitor and modify data in the CPU 170 Watch tables and force tables 170 Cross reference to show usage 171 Call structure to examine the calling hierarchy 172 Basic instructions 175 7.1 7.1.1 7.1.2 7.1.3 Bit logic .175 Bit logic contacts and coils .175 Set and reset instructions 178 Positive and negative edge instructions 180 7.2 Timers 182 S7-1200 Programmable controller System Manual, 04/2012, A5E02486680-06 Table of contents 7.3 Counters 190 7.4 7.4.1 7.4.2 7.4.3 Compare 196 Compare 196 In-range and Out-of-range instructions 197 OK and Not OK instructions 197 7.5 7.5.1 7.5.2 7.5.3 7.5.4 7.5.5 7.5.6 7.5.7 7.5.8 7.5.9 Math 198 Calculate instruction 198 Add, subtract, multiply and divide instructions 199 Modulo instruction 200 Negation instruction 201 Increment and decrement instructions 202 Absolute value instruction 202 Minimum and Maximum instructions 203 Limit instruction 204 Floating-point math instructions 205 7.6 7.6.1 7.6.2 7.6.3 7.6.4 Move 207 Move and block move instructions 207 FieldRead and FieldWrite instructions 209 Fill instructions 211 Swap instruction 212 7.7 7.7.1 7.7.2 7.7.3 7.7.4 7.7.5 Convert 213 CONV instruction 213 Conversion instructions for SCL 214 Round and truncate instructions 217 Ceiling and floor instructions 218 Scale and normalize instructions 219 7.8 7.8.1 7.8.2 7.8.3 7.8.4 7.8.5 7.8.6 7.8.7 7.8.8 7.8.9 7.8.10 7.8.11 7.8.12 7.8.13 7.8.14 7.8.15 7.8.16 7.8.17 Program control 222 Overview of SCL program control statements 222 IF-THEN statement 223 CASE statement 224 FOR statement 225 WHILE-DO statement 226 REPEAT-UNTIL statement 227 CONTINUE statement 227 EXIT statement 228 GOTO statement 229 RETURN statement 229 Jump and label instructions 230 JMP_LIST instruction 230 SWITCH instruction 231 RET execution control instruction 233 Re-trigger scan cycle watchdog instruction 234 Stop scan cycle instruction 235 Get Error instructions 235 7.9 7.9.1 7.9.2 7.9.3 7.9.4 Word logic operations 239 AND, OR, and XOR instructions 239 Invert instruction 240 Encode and decode instructions 240 Select, Multiplex, and Demultiplex instructions 242 S7-1200 Programmable controller System Manual, 04/2012, A5E02486680-06 Table of contents 7.10 7.10.1 7.10.2 Shift and Rotate 244 Shift instructions .244 Rotate instructions .245 Extended instructions 247 8.1 8.1.1 8.1.2 8.1.3 8.1.4 Date and time-of-day 247 Date and time instructions 247 Set and read system clock .249 Run-time meter instruction .251 SET_TIMEZONE instruction 252 8.2 8.2.1 8.2.2 8.2.3 8.2.3.1 8.2.3.2 8.2.3.3 8.2.4 8.2.4.1 8.2.4.2 8.2.4.3 8.2.4.4 8.2.4.5 8.2.4.6 8.2.4.7 String and character 254 String data overview 254 S_MOVE instruction 254 String conversion instructions 255 String to value and value to string conversions 255 String-to-characters and characters-to-string conversions 263 ASCII to Hex and Hex to ASCII conversions .265 String operation instructions 267 LEN 267 CONCAT 268 LEFT, RIGHT, and MID .269 DELETE .270 INSERT 271 REPLACE 272 FIND 273 8.3 8.3.1 8.3.2 8.3.3 8.3.4 8.3.5 8.3.6 Distributed I/O (PROFINET, PROFIBUS, or AS-i) 274 Distributed I/O Instructions .274 RDREC and WRREC .275 RALRM .278 STATUS parameter for RDREC, WRREC, and RALRM 280 DPRD_DAT and DPWR_DAT 284 DPNRM_DG .286 8.4 8.4.1 8.4.2 8.4.2.1 8.4.2.2 8.4.3 8.4.4 Interrupts 288 Attach and detach instructions 288 Cyclic interrupts 291 SET_CINT (Set cyclic interrupt) 291 QRY_CINT (Query cyclic interrupt) 293 Time delay interrupts 294 Asynchronous event interrupts 296 8.5 8.5.1 8.5.2 8.5.3 8.5.4 8.5.5 8.5.6 Diagnostics (PROFINET or PROFIBUS) 297 Diagnostic instructions .297 Diagnostic events for distributed I/O 297 LED instruction 298 DeviceStates instruction 299 ModuleStates instruction 301 GET_DIAG instruction 302 8.6 8.6.1 8.6.2 8.6.3 Pulse 309 CTRL_PWM instruction 309 Operation of the pulse outputs 311 Configuring a pulse channel for PWM .312 S7-1200 Programmable controller System Manual, 04/2012, A5E02486680-06 Table of contents 8.7 8.7.1 8.7.2 8.7.2.1 8.7.2.2 8.7.2.3 8.7.2.4 8.7.2.5 8.7.3 8.7.4 8.7.5 8.8 8.8.1 Data block control 332 READ_DBL, WRIT_DBL (Read from or write to a DB in load memory) 332 8.9 Data logging 313 Data log record structure 314 Program instructions that control Data logs 315 DataLogCreate 315 DataLogOpen 318 DataLogClose 319 DataLogWrite 320 DataLogNewFile 322 Working with data logs 324 Limits to the size of data log files 325 Data log example program 327 Common error codes for the "Extended" instructions 335 Technology instructions 337 9.1 9.1.1 9.1.2 High-speed counter 337 Operation of the high-speed counter 339 Configuration of the HSC 345 9.2 9.2.1 9.2.2 9.2.3 9.2.4 9.2.5 9.2.6 9.2.7 PID control 346 Inserting the PID instruction and technological object 348 PID_Compact instruction 350 PID_Compact instruction ErrorBit parameters 354 PID_3STEP instruction 355 PID_3STEP instruction ErrorBit parameters 362 Configuring the PID controller 363 Commissioning the PID controller 365 9.3 9.3.1 9.3.2 9.3.3 9.3.3.1 9.3.3.2 9.3.3.3 9.3.3.4 9.3.3.5 9.3.3.6 9.3.3.7 9.3.3.8 9.3.3.9 9.3.3.10 9.3.4 9.3.4.1 9.3.4.2 9.3.4.3 9.3.4.4 9.3.5 9.3.6 9.3.6.1 9.3.6.2 Motion control 366 Configuring the axis 370 Configuring the TO_CommandTable_PTO 372 Motion control instructions 375 MC_Power instruction 375 MC_Reset instruction 378 MC_Home instruction 379 MC_Halt instruction 381 MC_MoveAbsolute instruction 383 MC_MoveRelative instruction 385 MC_MoveVelocity instruction 387 MC_MoveJog instruction 390 MC_CommandTable instruction 392 MC_ChangeDynamic 394 Operation of motion control for S7-1200 396 CPU outputs used for motion control 396 Hardware and software limit switches for motion control 397 Homing 401 Jerk limit 406 Commissioning 407 Monitoring active commands 410 Monitoring MC instructions with a "Done" output parameter 410 Monitoring the MC_Velocity instruction 414 S7-1200 Programmable controller 10 System Manual, 04/2012, A5E02486680-06 Index J Lost password, 118 JavaScript restrictions, standard Web pages, 558 JMP, 230 JMP_LIST, 230 JMPN, 230 M K Know-how protection password protection, 165 L Label, 230 LAD (ladder logic) monitor, 683, 684 overview, 155 program editor, 684 status, 683, 684, 688 Lamp loads, 64 Languages, user-defined Web pages, 551 Latency, 75 LED (Get LED status), 298 LED indicators communication interface, 563, 673 CPU status, 673 LED instruction, 298 LEFT (left substring), 269 LEN (length), 267 Length message, 593 Length m, 593 Length n, 593 LENGTH parameter, SEND_PTP, 577 Limit, 204 Linear programming, 146 LN (natural logarithm), 205 Load memory, 20 CPU 1211C, 705 CPU 1212C, 715 CPU 1214C, 724 CPU 1215C, 734 memory card, 107 program card, 107 transfer card, 107 Load memory, user-defined Web pages, 539 Local time RD_LOC_T (read local time), 249 Local/Partner connection, 425 Logging in/out standard Web pages, 507 MAC address, 136, 140 Manual fragment DB control, 555 Manuals, Maritime approval, 701 Master polling architecture, 595 Math, 33, 198, 199 MAX (maximum), 203 Maximum message length, 592 Maximum Web server connections, 558 MB_CLIENT, 622 MB_COMM_LOAD, 638 MB_MASTER, 641 MB_SERVER, 628 MB_SLAVE, 647 MC_ChangeDynamic, 394 MC_CommandTable, 392 MC_Halt, 381 MC_Home, 379 MC_MoveAbsolute, 383 MC_MoveJog, 390 MC_MoveRelative, 385 MC_MoveVelocity, 387 MC_Power, 376 MC_Reset, 378 Memory clock memory, 84 I (process image input), 89 L (local memory), 87 load memory, 82 M (bit memory), 90 monitoring memory usage, 680 peripheral input addresses (force table), 688 Q (process image output), 90 retentive memory, 82 system memory, 84 Temp memory, 91 work memory, 82 Memory areas addressing Boolean or bit values, 88 immediate access, 88 process image, 88 Memory card configure the startup parameters, 110 empty transfer card for a lost password, 118 firmware update, 115 inserting into CPU, 108 lost password, 118 operation, 107 S7-1200 Programmable controller 850 System Manual, 04/2012, A5E02486680-06 Index order number, 826 overview, 107 program card, 113 specifications, 826 transfer card, 110 Memory locations, 87, 89 Message configuration instructions, 595 receive, 587 transmit, 586 Message end, 590 Message length, 592 Message start, 588 MID (middle substring), 269 MIN (minimum), 203 Miscellaneous PtP parameter errors, 567 MOD (modulo), 200 MODBUS MB_CLIENT, 622 MB_COMM_LOAD, 638 MB_MASTER, 641 MB_SERVER, 628 MB_SLAVE, 647 Modbus slave example, 655 versions, 36, 637 Modifying program editor status, 684 watch table, 685 Modifying variables from PC, 515 Module information standard Web page, 511 Modules CB 1241 RS485, 822 CM 1241 RS232, 824 communication board (CB), 24 communication module (CM), 24 communication processor (CP), 24 comparison chart, 22 configuring parameters, 125 CPU 1211C specifications, 705 CPU 1212C specifications, 715 CPU 1214C specifications, 724 CPU 1215C specifications, 734 SB 1221 DI 4, 200 kHz, 784 SB 1222 DQ 4, 200 kHz, 200 kHz, 786 SB 1223 DI / DQ 2, 792 SB 1223 DI / DQ 2, 200 kHz, 789 SB 1231 AI x 12 bit, 794 SB 1231 AI x 16 bit RTD, 806 SB 1231 AI x 16 bit Thermocouple signal board, 801 SB 1232 AQ 1x12 bit, 797 signal board (SB), 24 signal module (SM), 24 SM 1221, 745 SM 1222, 748, 750 SM 1222 DQ8 RLY Changeover, 748 SM 1223, 755 SM 1231 AI x 16 bit TC, 772 SM 1231 AI x RTD x 16 bit, 778 SM 1231 AI x 13 bit, 760 SM 1231 AI x 16 bit TC signal module, 772 SM 1231 AI x RTD x 16 bit, 778 SM 1232 AQ x 14bit, 764 SM 1232 AQ x 14bit, 764 SM 1234 AI x 13 bit / AQ x 14 bit, 766 thermal zone, 44, 46 ModuleStates, 301 Monitor capturing values of a DB, 684 resetting the start values of a DB, 684 Monitoring cycle time, 680 force operation, 689 force table, 688 LAD status, 683, 684 LED instruction, 298 memory usage, 680 watch table, 683, 685 Monitoring the program, 170 Monitoring variables from PC, 515 Motion control configuring the axis, 370 hardware and software limit switches, 397 homing (sequence for active homing), 404 homing configuration parameters, 402 homing the axis, 401 MC_ChangeDynamic, 394 MC_CommandTable, 392 MC_Halt, 381 MC_Home, 379 MC_MoveAbsolute, 383 MC_MoveJog, 390 MC_MoveRelative, 385 MC_MoveVelocity, 387 MC_Power, 376 MC_Reset, 378 overview, 366 Mounting airflow, 44 clearance, 44 communication board (CB), 51 communication module (CM), 53 cooling, 44 CPU, 49 S7-1200 Programmable controller System Manual, 04/2012, A5E02486680-06 851 Index dimensions, 46 expansion cable, 56 grounding, 63 guidelines, 43 inductive loads, 64 isolation, 62 lamp loads, 64 overview, 47 signal board (SB), 51 signal module (SM), 52 terminal block connector, 55 thermal zone, 44, 46 wiring guidelines, 61, 63 MOVE, 207 MRES operator panel, 38 MUL (multiply), 199 Multi-node connections connection types, 493 Ethernet protocols, 493 Multiple AWP variable definitions, 533 MUX (multiplex), 242 My Documentation Manager, N N_TRIG, 181 NEG (negation), 201 Negative edge, 180 Nesting depth, 67 Network communication, 460 Network connection configuration, 126 multiple CPUs, 463, 465, 469, 478, 482 Network time protocol (NTP), 141 No restart, 69 NORM_X (normalize), 219 Normalizing analogs, 220 NOT OK instruction, 197 Numbers binary, 94 integer, 95 real, 95 O Off-delay (TOF), 182 operation, 186 OK instruction, 197 On-delay delay (TON), 182 operation, 186 On-delay retentive (TONR), 182 operation, 186 Online assigning an IP address, 134 capturing values of a DB, 684 comparing and synchronizing, 681 cycle time, 680 diagnostics buffer, 680 force, 688 force operation, 689 going online, 675 IP address, 678 memory usage, 680 monitor, 683 operating panel, 679 operator panel, 38 resetting the start values of a DB, 684 RUN/STOP buttons, 37 status, 683, 684 time of day, 678 tools, 682 watch table, 683, 684, 685 Online and diagnostic tools downloading in RUN mode, 690 Online device names PROFINET IO, 676 OPC, configuration, 661 Open User Communication instructions return values, 459 Operating mode, 37, 38 changing STOP/RUN, 679 operating modes of the CPU, 69 Operator panel, 38 operating modes of the CPU, 69 Operator panels, 26 OR, 239 Order numbers Communication interfaces (CM, CB and CP), 834, 835 connector blocks, 836 Connectors and terminal connections, 835 CPUs, 833 CSM 1277 Ethernet switch, 835 documentation, 837 Expansion cables, 836 HMI basic panels, 836 memory cards, 836 PM 1207 power supply, 835 programming software, 837 Signal boards (SB), 834 Signal modules (SM), 833 simulators, 836 S7-1200 Programmable controller 852 System Manual, 04/2012, A5E02486680-06 Index STEP 7, 837 visualization software, 837 WinCC, 837 Organization block call, 73 calling code blocks within the user program, 148 configuring operation, 150 creating, 149 function, 73 know-how protection, 165 linear and structured programming, 146 multiple cyclic, 149 overview, 67 priority classes, 73 processing, 148 startup processing, 71 OUT_RANGE (outside of a range), 197 Output parameters, 150 configuring pulse channels, 312 pulse outputs, 311 P P_TRIG, 181 Panels (HMI), 26 Parameter assignment, 150 Parameters configuration LENGH and BUFFER for SEND_PTP, 577 receive, 468 transmit, 467 Parity, 584 Passive/active communication configuring the partners, 127, 494 connection IDs, 427 parameters, 129 Password protection access to the CPU, 164 binding to a CPU or memory card, 166 code block, 165 copy protection, 166 CPU, 164 empty transfer card, 118 lost password, 118 Peripheral access alarms, 471 PID overview, 347 PID_3STEP, 355 PID_3Step algorithm, 347, 355 PID_Compact, 350 PID_Compact algorithm, 347, 350 PLC add modules, 122 assigning an IP address to an online CPU, 134 communication load, 81 comparing and synchronizing, 681 copying blocks from an online CPU, 168 CPU 1211C, 705 CPU 1212C, 715 CPU 1214C, 724 CPU 1215C, 734 cycle time, 81 cycle time, 81 device configuration, 119 download, 168 expansion cable, 56 force, 688 force operation, 689 HSC configuration, 346 installation, 47, 49 know-how protection, 165 memory card, 107, 826 monitoring, 683 operating modes, 69 overview of the CPU, 19 power budget, 44 RD_LOC_T (read local time), 249 RD_SYS_T (read system time), 249 run time meter, 251 startup processing, 71 system design, 145 tags, 87 terminal block connector, 55 time synchronization property, 142 using blocks, 146 watch table, 685 WR_SYS_T (write system time), 249 Podcasts, Pointer pointer overview, 101 Pointers Any data type, 102 Pointer data type, 101 Variant data type, 103 Point-to-Point communication, 565 Point-to-Point programming, 594 Polling architecture, 595 Port configuration, 583 errors, 569 instructions, 595 PtP example program, 597 Port number, 430 Port numbers restricted, 460 PORT_CFG (port configuration), 568 S7-1200 Programmable controller System Manual, 04/2012, A5E02486680-06 853 Index Portal view, 30 Positive edge, 180 Power budget, 44 example, 830 form for calculations, 831 overview, 829 Power requirements calculating a power budget, 830 form for calculations, 831 power budget, 829 Priority priority class, 73 priority in processing, 75 Priority class, 73 Process image force, 688 force operation, 689 monitor, 683, 684 status, 683, 684, 688 PROFIBUS add CM 1243-5 (DP master) module, 478 add DP slave, 478 CM 1242-5 (DP slave) module, 473 CM 1243-5 (DP master) module, 473 distributed I/O instructions, 274 DPNRM_DG, 286 DPRD_DAT, 284 DPWR_DAT, 284 GET, 489 master, 472 network connection, 126, 478 PROFIBUS address, 479 PROFIBUS address properties, 480 PUT, 489 RALRM, 278 RDREC, 275 S7 connection, 493 slave, 472 WRREC, 275 PROFIBUS address, 479, 480 configuring, 479 PROFINET ad hoc mode, 431 configuring communication between CPU and HMI device, 462 configuring the IP address, 123 connection IDs, 427 CPU-to-CPU communication, 464 device naming and addressing, 143 diagnostics, 472 distributed I/O instructions, 274 DPRD_DAT, 284 DPWR_DAT, 284 Ethernet address properties, 137 GET, 489 IP address, 136 IP address assignment, 143 MAC address, 136 network connection, 126, 463, 465, 469 number of communication connections, 424 overview, 430 PLC-to-PLC communication, 464 PUT, 489 RALRM, 278 RDREC, 275 S7 connection, 493 system start-up time, 142 T_CONFIG, 451 TCON, 439 TDISCON, 439 testing a network, 139 time synchronization, 123 time synchronization property, 142 TRCV, 439 TRCV_C, 432 TSEND, 439 TSEND_C, 432 TURCV, 447 TUSEND, 447 types of communication, 423 WRREC, 275 PROFINET IO Adding a device, 468 Assigning a CPU, 469 Assigning device names, 469 Assigning device names online, 676 Device names, 469 Devices, 468 Online device names, 676 PROFINET RT, 430 Program binding to a CPU or memory card, 166 calling code blocks within the user program, 148 capturing values of a DB, 684 copying blocks from an online CPU, 168 download, 168 linear and structured programs, 146 memory card, 107 organization block (OB), 148 password protection, 165 priority class, 73 resetting the start values of a DB, 684 Program card configure the startup parameters, 110 S7-1200 Programmable controller 854 System Manual, 04/2012, A5E02486680-06 Index creating, 113 inserting into CPU, 108 operation, 107 order number, 826 overview, 107 Program control (SCL), 222 CASE, 224 CONTINUE, 227 EXIT, 228 FOR, 225 GO TO, 229 IF-THEN, 223 REPEAT, 227 RETURN, 229 WHILE, 226 Program editor capturing values of a DB, 684 monitor, 684 resetting the start values of a DB, 684 status, 684 Program execution, 67 Program information In the call structure, 172 Program structure, 148 calling code blocks, 148 Programming adding inputs or outputs to LAD or FBD instructions, 35 binding to a CPU or memory card, 166 block calls, 67 calling code blocks within the user program, 148 comparing and synchronizing code blocks, 681 counters, 190 data block (DB), 67 drag and drop between editors, 37 expandable instructions, 35 favorites, 32 FBD (function block diagram), 156 function (FC), 150 function block (FB), 67, 150 initial value of an FB, 150 inserting instructions, 31 instance data block (DB), 150 LAD (ladder), 155 linear program, 146 operating modes of the CPU, 69 organization block (OB), 148 PID overview, 347 PID_3STEP, 355 PID_3Step algorithm, 347, 355 PID_Compact, 350 PID_Compact algorithm, 347, 350 power flow (EN and ENO), 163 priority class, 73 PtP instructions, 594 RD_LOC_T (read local time), 249 RD_SYS_T (read system time), 249 run time meter, 251 SCL (Structured Control Language), 156, 157 structured program, 146 types of code blocks, 67 unplugged modules, 41 unspecific CPU, 121 valid FC, FB, and DB numbers, 67 WR_SYS_T (write system time), 249 Programming user-defined Web page language switch, 552 Project access protection, 164 binding to a CPU or memory card, 166 comparing and synchronizing, 681 download, 168 empty transfer card, 118 lost password, 118 program card, 113 protecting a code block, 165 restricting access to a CPU, 164 transfer card, 110 Project view, 30 Protection class, 703 Protection level binding to a CPU or memory card, 166 code block, 165 CPU, 164 lost password, 118 Protocol communication, 565 freeport, 565 ISO on TCP, 430 Modbus, 565 PROFINET RT, 430 TCP, 430 UDP, 430 USS, 565 PTO (pulse train output) cannot be forced, 689 configuring pulse channels, 312 CTRL_PWM, 309 operation, 311 PtP communication, 565 configuring parameters, 586 configuring ports, 583 example program, 596 example program configuration, 597 S7-1200 Programmable controller System Manual, 04/2012, A5E02486680-06 855 Index example program, running, 604 example program, STEP programming, 602 programming, 594 terminal emulator for example program, 603 PtP error classes, 567 PtP instruction return values, 566 Pulse delay (TP), 182 operation, 186 Pulse outputs, 311 PUT, 489 configuring the connection, 128 PWM (pulse width modulation) cannot be forced, 689 configuring pulse channels, 312 CTRL_PWM, 309 operation, 311 Q Q memory configuring pulse channels, 312 pulse outputs, 311 QRY_CINT (query cyclic interrupt), 293 Queuing, 75 Quotation mark conventions, Web server, 534 R RALRM, 278, 280 Rated voltages, 704 RCV_CFG (receive configuration), 571 RCV_PTP (receive Point-to-Point), 578 RCV_RST (receiver reset), 580 RD_LOC_T (read local time), 249 RD_SYS_T (read system time), 249 RDREC, 275, 280 RE_TRIGR, 234 READ_DBL, 332 Reading HTTP variables, 526 Receive configuration errors, 575 Receive message configuration, 587 PtP example program, 598 Receive parameters configuration, 468 Receive runtime return values, 578 Referencing enum types, user-defined Web pages, 530 Refreshing user-defined Web pages, 522 Relay electrical service life, 705 REPLACE (replace substring), 272 Replacing modules, 41 Requirements, installation, 29 Reset, 178 Reset timer (RT), 182 Reset to factory settings, 678 Resetting the start values of a DB, 684 Restricted TSAPs and port numbers, 460 Retentive memory, 20, 82 CPU 1211C, 705 CPU 1212C, 715 CPU 1214C, 724 CPU 1215C, 734 Return value (RET), 233 Return values Open User Communication instructions, 459 PtP instructions, 566 RIGHT (right substring), 269 ROL and ROR (rotate left and rotate right), 245 ROUND, 217 Router IP address, 137 RS232 and RS485 communication modules, 563 RT (reset timer), 182 RTS, 585 RTS always on, 585 RTS Off delay, 587 RTS On delay, 587 RTS switched, 585 RUN mode, 69, 72, 679 force operation, 689 operator panel, 38 toolbar buttons, 37 Run time meter, 251 RUN to STOP transition, 87 RUN/STOP buttons, 37 S S_CONV (value to string conversions), 255 S_MOV (string move), 254 S7 communication configuring the connection, 128 S7-1200 access protection, 164 add modules, 122 add new device, 120 airflow, 44 AS-i, 483 AS-i address, 484 AS-i port, 483 capturing values of a DB, 684 clearance, 44 communication board (CB), 24 communication load, 81 communication module (CM), 24 communication processor (CP), 24 S7-1200 Programmable controller 856 System Manual, 04/2012, A5E02486680-06 Index compare code blocks, 681 comparison chart of CPU models, 20 configuring the CPU parameters, 123 configuring the modules, 125 cooling, 44 CPU installation, 49 cycle time, 81 device configuration, 119 empty transfer card for a lost password, 118 Ethernet port, 136 expansion cable, 56 force, 688 force operation, 689 grounding, 63 HMI devices, 26 HSC configuration, 346 inductive loads, 64 installation, 47 installing a CB, 51 installing a CM, 53 installing an SB, 51 installing an SM, 52 IP address, 136 isolation guidelines, 62 know-how protection, 165 lamp loads, 64 lost password, 118 MAC address, 136 memory card, 826 modules, 22 monitoring, 683 mounting dimensions, 46 network connection, 126 operating modes, 69 operation, 685 operator panel, 38 overview of the CPU, 19 password protection, 164 power budget, 44 PROFIBUS, 479 PROFIBUS address, 479 PROFIBUS port, 479 PROFINET, 136 program card, 113 pulse outputs, 311 resetting the start values of a DB, 684 RUN/STOP buttons, 37 signal board (SB), 24 signal module (SM), 24 startup parameters, 110 startup processing, 71 terminal block connector, 55 thermal zone, 44, 46 transfer card, 110 TS Adapter, 22 wiring guidelines, 61, 63 SB 1221 SB 1221 DI 4, 200 kHz wiring diagram, 785 SB 1222 SB 1222 DQ x 24 VDC, 200 kHz wiring diagram, 788 SB 1223 SB 1223 DI / DQ wiring diagram, 793 SB 1223 DI / DQ, 200 kHz wiring diagram, 791 SB 1231 AI x 16 bit Thermocouple Filter selection table, 804 SB 1232 SB 1232 AQ x 12 bit wiring diagram, 798 SCALE_X (scale), 219 Scaling analogs, 34, 220 Scan cycle force, 688 force operation, 689 Scan cycle time overview, 80 SCL (Structured Control Language) ABS (absolute value), 202 ACOS (arc cosine or inverse cosine), 205 addressing, 157 AND, 239 ASIN (arc sine or inverse sine), 205 ATAN (arc tangent or inverse tangent), 205 ATH (ASCII to hexadecimal), 265 ATTACH and DETACH, 288 bit logic, 175 calling an FB or FC, 157 calling blocks, 148 CAN_DINT (cancel time delay interrupt), 294 CASE, 224 CEIL (ceiling), 218 compare, 196 CONCAT (concatenate), 268 conditions, 157 CONTINUE, 227 control statements, 157, 222, 223, 224, 225, 226, 227, 228, 229 CONV (convert), 213 Conversion instructions, 214 COS (cosine), 205 counters, 190 CTD (count down), 190 CTU (count up), 190 CTUD (count up and down), 190 DataLogClose (close Data log), 319 S7-1200 Programmable controller System Manual, 04/2012, A5E02486680-06 857 Index DataLogCreate (create Data log), 315 DataLogNewFile (create Data log based on existing Data log), 322 DataLogOpen (open Data log), 318 DataLogWrite (write Data log), 320 DEC (decrement), 202 DECO (decode), 240 DELETE (delete substring), 270 DeviceStates, 299 DIS_AIRT (disable alarm interrupt), 296 EN and ENO (power flow), 163 EN_AIRT (enable alarm interrupt), 296 ENCO (encode), 240 EXIT, 228 EXP (natural exponential), 205 expressions, 157 EXPT (general exponential), 205 FILL_BLK, 211 FIND (find substring), 273 floating-point math, 205 FLOOR, 218 FOR, 225 FRAC (fraction), 205 GET_DIAG, 302 GOTO, 229 HTA (hexadecimal to ASCII), 266 IF-THEN, 223 IN_RANGE (within a range), 197 INC (increment), 202 INSERT (insert substring), 271 INV (invert), 240 JMP_LIST, 230 LED status, 298 LEFT (left substring), 269 LEN (length), 267 LIMIT, 204 LN (natural logarithm), 205 math, 199 math (floating-point), 205 MAX (maximum), 203 MC_ChangeDynamic, 394 MC_CommandTable, 392 MC_Halt, 381 MC_Home, 379 MC_MoveAbsolute, 383 MC_MoveJog, 390 MC_MoveRelative, 385 MC_MoveVelocity, 387 MC_Power, 376 MC_Reset, 378 MID (middle substring), 269 MIN (minimum), 203 MOD (modulo), 200 ModuleStates, 301 move, 207 MUX (multiplex), 242 N_TRIG, 181 NEG (negation), 201 NORM_X (normalize), 219 OK, 197 operators, 157 OR, 239 OUT_RANGE (outside of a range), 197 overview, 156 P_TRIG, 181 PID overview, 347 PID_3STEP, 355 PID_3Step algorithm, 347, 355 PID_Compact, 350 PID_Compact algorithm, 347, 350 priority of operators, 157 program control, 222 program editor, 156 QRY_CINT (query cyclic interrupt), 293 RD_LOC_T (read local time), 249 RD_SYS_T (read system time), 249 REPEAT, 227 REPLACE (replace substring), 272 RETURN, 229 RIGHT (right substring), 269 ROL and ROR (rotate left and rotate right), 245 round, 217 run time meter, 251 S_CONV (value to string conversions), 255 S_MOV (move string), 254 SCALE_X (scale), 219 SEL (select), 242 Set and Reset, 178 SET_CINT (set cyclic interrupt), 291 SET_TIMEZONE (set time zone), 252 SHL and SHR (shift left and shift right), 244 SIN (sine), 205 SQR (square), 205 SQRT (square root), 205 SRT_DINT (start time delay interrupt), 294 STRG_VAL (string to value), 255 swap, 212 SWITCH, 231 T_ADD (add time), 248 T_COMBINE (combine times), 249 T_CONV (convert time), 247 T_DIFF (time difference), 248 T_SUB (subtract time), 248 TAN (tangent), 205 S7-1200 Programmable controller 858 System Manual, 04/2012, A5E02486680-06 Index timer operations, 186 timers, 182 truncate, 217 UFILL_BLK (uninterruptible fill), 211 VAL_STRG (value to string), 255 Var section, 156 WHILE, 226 WR_SYS_T (write system time), 249 XOR (exclusive OR), 239 Security access protection, 164 binding to a CPU or memory card, 166 copy protection, 166 CPU, 164 know-how protectionf for a code block, 165 lost password, 118 SEL (select), 242 Send message configuration, 586 Send parameters configuration, 127, 467, 494 SEND_CFG (send configuration), 569 SEND_PTP (send Point-to-Point data), 575 LENGH and BUFFER parameters, 577 Serial communication, 565 Service and support, Set, 178 SET_CINT (set cyclic interrupt), 291 SET_TIMEZONE (set time zone), 252 Settings, 36 SGN_GET (get RS232 signals), 581 SGN_SET (set RS232 signals), 582 SHL and SHR (shift left and shift right), 244 Siemens security certificate, Web pages, 508, 560 Siemens technical support, siemens_automation_language cookie, 552 Signal board (SB) add modules, 122 analog output representation (current), 771, 801 analog output representation (voltage), 771, 800 configuration of parameters, 125 input representation (current), 770, 800 input representation (voltage), 770, 799 installation, 51 overview, 24 power requirements, 829 removal, 51 SB 1221 DI 4, 200 kHz, 784 SB 1222 DQ, 200 kHz, 786 SB 1223 DI / DQ 2, 792 SB 1223 DI / DQ 2, 200 kHz, 789 SB 1231 AI x 12 bit, 794 SB 1231 AI x 16 bit RTD, 806 SB 1231 AI x 16 bit Thermocouple, 801 SB 1232 AQ 1x12 bit, 797 step response times, 798 Signal handling errors, 581, 583 Signal module (SM) add modules, 122 analog input representation (current), 770, 800 analog input representation (voltage), 770, 799 analog output representation (current), 771, 801 analog output representation (voltage), 771, 800 configuration of parameters, 125 expansion cable, 56 installation, 52 overview, 24 power requirements, 829 removal, 53 SM 1221, 745 SM 1222, 748, 750 SM 1222 DQ8 RLY Changeover, 748 SM 1223, 755 SM 1223 specifications, 757 SM 1231 AI x 13 bit, 760 SM 1231 AI x 16 bit TC, 772 SM 1231 AI x RTD x 16 bit, 778 SM 1231 AI x 16 bit TC, 772 SM 1231 AI x RTD x 16 bit, 778 SM 1232 AQ x 14bit, 764 SM 1232 AQ x 14bit, 764 SM 1234 AI x 13 bit / AQ x 14 bit, 766 step response times, 769 Simulators, 827 SIN (sine), 205 Slave polling architecture, 596 SM 1231 RTD selection tables, 783, 810 SM and SB comparison chart, 22 device configuration, 119 SMS, 660 Software flow control, 586 Special characters User-defined Web pages, 534 Specifications analog input representation (current), 770, 800 analog input representation (voltage), 770, 799 analog output representation (current), 771, 801 analog output representation (voltage), 771, 800 ATEX approval, 700 CB 1241 RS485, 822 CE approval, 699 CM 1241 RS232, 824 CPU 1211C, 705 CPU 1212C, 715 S7-1200 Programmable controller System Manual, 04/2012, A5E02486680-06 859 Index CPU 1214C, 724 CPU 1215C, 734 C-Tick approval, 701 cULus approval, 700 electromagnetic compatibility (EMC), 702 environmental conditions, 702 FM approval, 700 general technical specifications, 699 industrial environments, 701 input simulators, 827 maritime approval, 701 memory cards, 826 protection, 703 rated voltages, 704 relay electrical service life, 705 SB 1221 DI 4, 200 kHz, 784 SB 1222 DQ 4, 200 kHz, 786 SB 1223 DI / DQ 2, 792 SB 1223 DI x / DQ 2, 200 kHz, 789 SB 1231 AI x 12 bit, 794 SB 1231 AI x 16 bit RTD, 806 SB 1231 AI x 16 bit RTD wiring diagram, 808 SB 1231 AI x 16 bit Thermocouple, 801 SB 1231 AI x 16 bit thermocouple wiring diagram, 805 SB 1231 AI x 12 bit wiring diagram, 796 SB 1232 AQ 1x12 bit, 797 SM 1221 signal module, 745 SM 1221 wiring diagram, 746 SM 1222 DQ8 RLY Changeover, 748 SM 1222 signal module, 748, 750 SM 1222 wiring diagram, 750 SM 1223 signal module, 755, 757 SM 1223 wiring diagram, 755, 757 SM 1231 AI x 13 bit, 760 SM 1231 AI x 16 bit TC signal module, 772 SM 1231 AI x 16 bit TC wiring diagram, 774 SM 1231 AI x RTD x 16 bit signal module, 778 SM 1231 AI x 16 bit TC signal module, 772 SM 1231 AI x 16 bit TC wiring diagram, 774 SM 1231 AI x RTD x 16 bit signal module, 778 SM 1231 RTD x 16 bit wiring diagram, 780 SM 1231 RTD x 16 bit wiring diagram, 780 SM 1232 AQ x 14bit, 764 SM 1232 AQ x 14bit, 764 SM 1234 AI x 13 bit / AQ x 14 bit, 766 step response times (CPU), 711, 720, 730, 740 step response times (SB), 798 step response times (SM), 769 wiring diagrams SM 1231 analog input, 764 wiring diagrams SM 1232 analog output, 765 wiring diagrams SM 1234 analog input/output, 768 SQR (square), 205 SQRT (square root), 205 SRT_DINT (start time delay interrupt), 294 Standard Web pages, 503 accessing from PC, 505 changing operating mode, 509 communication, 513 cookie restrictions, 560 Data Logs, 516 Diagnostic, 510 Identification, 510 Intro, 508 JavaScript restrictions, 558 layout, 506 logging in and out, 507 Module information, 511 secure access, 506 Start, 509 Variable Status, 515 Start conditions, 588 Start message character, 588 Start standard Web page, 509 Startup after POWER ON, 69 startup processing, 71 STARTUP mode force operation, 689 Startup OB, 74 Startup parameters, 110 Status LED indicators, 673 LED indicators (communication interface), 563 LED instruction, 298 STEP add modules, 122 add new device, 120 Adding a PROFINET IO device, 468 adding inputs or outputs to a LAD or FBD instruction, 35 AS-i, 483 AS-i port, 483 assigning an IP address to an online CPU, 134 block calls, 67 calling code blocks within the user program, 148 capturing values of a DB, 684 changing the settings, 36 communication load, 81 comparing and synchronizing, 681 configuring the CPU, 123 configuring the modules, 125 copying blocks from an online CPU, 168 counters, 190 cycle time, 81 S7-1200 Programmable controller 860 System Manual, 04/2012, A5E02486680-06 Index cycle time, 81 data block (DB), 67 device configuration, 119 download, 168 drag and drop between editors, 37 Ethernet port, 136 expandable inputs or outputs, 35 favorites, 32 force, 688 force operation, 689 function (FC), 150 function block (FB), 67, 150 HSC configuration, 346 initial value of an FB, 150 inserting instructions, 31 instance data block (DB), 150 linear and structured programs, 146 memory card, 107, 826 monitoring, 683, 684 network connection, 126 operating modes, 69 operation, 685 operator panel, 38 password protection, 165 Portal view, 30 priority class (OB), 73 PROFIBUS, 479 PROFIBUS port, 479 PROFINET, 136 program card, 107 Project view, 30 RD_LOC_T (read local time), 249 RD_SYS_T (read system time), 249 resetting the start values of a DB, 684 run time meter, 251 RUN/STOP buttons, 37 startup processing, 71 time synchronization property (PROFINET), 142 transfer card, 107 types of code blocks, 67 unplugged modules, 41 valid FC, FB, and DB numbers, 67 WR_SYS_T (write system time), 249 STEP programming PtP example program, 602 user-defined Web pages, 537 STEP web pages, Stop bits, 584 STOP mode, 69, 679 enable outputs in STOP mode, 687 force operation, 689 operator panel, 38 toolbar buttons, 37 STP (stop PLC scan cycle), 235 STRG_VAL (string to value), 255 String S_MOVE (string move), 254 string data overview, 254 String data type, 98 string operations overview, 267 Structured programming, 146, 148 calling blocks, 148 SUB (subtract), 199 Subnet mask, 136 Support, SWAP, 212 SWITCH, 231 Switching languages, user-defined Web pages, 551 Synchronization time synchronization property (PROFINET), 142 System clock RD_LOC_T (read local time), 249 RD_SYS_T (read system time), 249 WR_SYS_T (write system time), 249 System memory byte, 85 System requirements, 29 T T_ADD (add time), 248 T_COMBINE (combine times), 249 T_CONFIG, 451 T_CONV (convert time), 247 T_DIFF (time difference), 248 T_SUB (subtract timet), 248 Tags force, 688 force operation, 689 monitor, 683 status, 683 TAN (tangent), 205 Task cards columns and headers, 36, 637 TCON, 439 configuration, 127 connection IDs, 427 connection parameters, 129 TCON_Param, 129 TCP ad hoc mode, 431 connection configuration, 127 connection IDs, 427 parameters, 129 protocol, 430 S7-1200 Programmable controller System Manual, 04/2012, A5E02486680-06 861 Index TCP/IP communication, 430 TDISCON, 439 Technical specifications, 699 Technical support, Technological objects HSC (high-speed counter), 339 Telecontrol, 657 Teleservice communication TM_MAIL, 665 TeleService via GPRS, 657 Terminal block connector, 55 Terminal emulator for PtP example program, 603 Testing the program, 170 Thermal zone, 44, 46 Thermocouple basic operation, 775, 803 cold junction compensation, 775, 803 SB 1231 Thermocouple filter selection table, 804 SB 1231 Thermocouple selection table, 804 SM 1231 Thermocouple filter selection table, 776 SM 1231 Thermocouple selection table, 776 TIA Portal Portal view, 30 Project view, 30 Time DTL (date and time long data type), 97 RD_LOC_T (read local time), 249 RD_SYS_T (read system time), 249 SET_TIMEZONE (set time zone), 252 T_ADD (add time), 248 T_COMBINE (combine times), 249 T_CONV (convert time), 247 T_DIFF (time difference), 248 T_SUB (subtract time), 248 Time data type, 96 TOD (time of day data type), 96 WR_SYS_T (write system time), 249 Time delay interrupt), 294 Time of day configuring the online CPU, 678 Time synchronization property, 142 Time-error interrupt OB, 74 Timers operation, 186 quantity, 21, 707, 716, 726, 736 RT (reset timer), 182 size, 21, 707, 716, 726, 736 TOF (off-delay timer), 182 TON (on-delay delay timer), 182 TONR (on-delay retentive) timer, 182 TP (pulse delay timer), 182 TM_MAIL, 665 Transfer card, 110 configure the startup parameters, 110 empty transfer card for a lost password, 118 inserting into CPU, 108 lost password, 118 operation, 107 order number, 826 overview, 107 Transmission block (T-block), 465 Transmit configuration errors, 570 Transmit message configuration, 586 PtP example program, 597 Transmit runtime errors, 577 TRCV, 439 ad hoc mode, 431 connection IDs, 427 TRCV_C, 432, 467 ad hoc mode, 431 configuration, 127 connection IDs, 427 connection parameters, 129 TRCV_C instruction configuration, 468 Triggering values in the watch table, 686 Troubleshooting diagnostics buffer, 680 LED indicators, 673 TRUNC (truncate), 217 TS Adapter, 22 installing a TS module, 58 installing on a DIN rail, 59 installing on a wall, 60 SIM card, 58 TSAP, 430 TSAP (transport service access points), 129, 432, 465, 493 TSAPs restricted, 460 TSEND, 439 connection IDs, 427 TSEND_C, 466 configuration, 127 connection IDs, 427 connection parameters, 129 TSEND_C, 466 TSEND_C instruction configuration, 467 TURCV, 447 configuration, 127 connection parameters, 129 TUSEND, 447 configuration, 127 parameters, 129 S7-1200 Programmable controller 862 System Manual, 04/2012, A5E02486680-06 Index U UDP connection configuration, 127 parameters, 129 UDP protocol, 430 UFILL_BLK (uninterruptible fill), 211 Uninterruptible move (UMOVE_BLK), 207 Unplugged modules, 41 Unspecific CPU, 121 Updating user-defined Web pages, 522 Uploading copying blocks from an online CPU, 168 user program, 168 User interface Portal view, 30 Project view, 30 User program adding inputs or outputs to LAD or FBD instructions, 35 binding to a CPU or memory card, 166 calling code blocks within the user program, 148 copying blocks from an online CPU, 168 download, 168 drag and drop between editors, 37 expandable instructions, 35 favorites, 32 inserting instructions, 31 linear and structured programs, 146 memory card, 107 organization block (OB), 148 password protection, 165 program card, 107 transfer card, 107 User-defined Web pages, 503, 521 accessing from PC, 539 activating and deactivating from control DB, 555 AWP commands for accessing S7-1200 data, 522 configuring, 535 creating fragments, 532 creating with HTML editor, 521 deleting program blocks, 537 downloading corresponding DBs, 538 enabling with WWW instruction, 537 example, 540 generating program blocks, 537 handling special characters, 534 HTML listing, 545 importing fragments, 533 load memory constraints, 539 manual fragment DB control, 555 multiple language configuration, 554 multiple languages, 551 programming in STEP 7, 537 reading special variables, 526 reading variables, 523 refreshing, 522 writing special variables, 527 writing variables, 524 USS protocol library general drive setup inforamtion, 616 overview, 604 requirements for using, 605 status codes, 614 USS_DRV, 608 USS_PORT, 610 USS_RPM, 611 USS_WPM, 613 V VAL_STRG (value to string), 255 Variable index for an array, 210 Variable Status standard Web page, 515 Variables monitoring and modifying from PC, 515 Versions of instructions, 36, 637 Visualization HMI devices, 26 W Wait time, 584 Warm restart, 69 Watch table enable outputs in STOP mode, 687 force, 170 memory card, 107 monitor, 683 operation, 685 trigger values, 686 Watchdog, 234 Web pages STEP 7, Web server, 503 constraints, 558 enabling, 504 maximum HTTP connections, 558 Quotation mark conventions, 534 standard Web pages, 505 update rate, 504 Web server, user-defined Web pages, 521 Wiring diagrams CPU 1211C, 714 S7-1200 Programmable controller System Manual, 04/2012, A5E02486680-06 863 Index CPU 1212C, 723 CPU 1214C, 733 CPU 1215C, 744 SB 1221 DI 4, 200 kHz, 785 SB 1222 DQ 4, 200 kHz, 788 SB 1223 DI / DQ 2, 200 kHz, 791 SB 1223 DI 2/ DQ 2, 793 SB 1231 AI x 16 bit RTD, 808 SB 1231 AI x 16 bit thermocouple, 805 SB 1231 AI x 12 bit, 796 SB 1232 AQ x 12 bit, 798 SM 1221 signal module, 746 SM 1222 signal module, 750 SM 1223 signal module, 755, 757 SM 1231 AI x 16 bit TC, 774 SM 1231 AI x 16 bit TC, 774 SM 1231 analog input, 764 SM 1231 RTD x 16 bit, 780 SM 1231 RTD x 16 bit, 780 SM 1232 analog output, 765 SM 1234 analog input/output, 768 Wiring guidelines, 63 clearance for airflow and cooling, 44 grounding, 63 prerequisites, 61 Work memory, 20 CPU 1211C, 705 CPU 1212C, 715 CPU 1214C, 724 CPU 1215C, 734 WR_SYS_T (write system time), 249 WRIT_DBL, 332 WRREC, 275, 280 WWW (enable user-defined Web pages), 537 X XON / XOFF, 586 XOR (exclusive OR), 239 S7-1200 Programmable controller 864 System Manual, 04/2012, A5E02486680-06 ... terminals must connect to the same external reference potential WARNING Connecting non-isolated M terminals to different reference potentials will cause unintended current flows that may cause damage... 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... and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems Proper use of Siemens products Note the following: WARNING Siemens products

Ngày đăng: 29/03/2014, 22:33

TỪ KHÓA LIÊN QUAN

w