background image

 

Preface 

 

Introducing the flexible and 

powerful S7-1200 

 

1

 

STEP 7 Basic makes the 

work easy 

 

2

 

Getting started 

 

3

 

How the S7-1200 works 

 

4

 

Programming options 

 

5

 

Communications 

 

6

 

Using the pulse generators 

of the S7-1200 

 

7

 

Online functionality 

 

8

 

Technical specifications 

 

A

 

SIMATIC 

S7-1200 

Easy Book 

Manual 

05/2009 

A5E02486774-01 

 

Содержание SIMATIC S7-1200 Easy Book

Страница 1: ... 7 Basic makes the work easy 2 Getting started 3 How the S7 1200 works 4 Programming options 5 Communications 6 Using the pulse generators of the S7 1200 7 Online functionality 8 Technical specifications A SIMATIC S7 1200 Easy Book Manual 05 2009 A5E02486774 01 ...

Страница 2: ... by qualified personnel Within the context of the safety notes in this documentation qualified persons are defined as persons who are authorized to commission ground and label devices systems and circuits in accordance with established safety practices and standards Proper use of Siemens products Note the following WARNING Siemens products may only be used for the applications described in the cat...

Страница 3: ...asic panels that can both be programmed with SIMATIC STEP 7 Basic engineering software The ability to program both devices using the same engineering software significantly reduces development costs The S7 1200 compact controller includes Built in PROFINET high speed motion control I O onboard analog inputs to minimize space requirements and the need for additional I O CPUs available with built in...

Страница 4: ...tor 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 migh...

Страница 5: ...modules 46 5 1 2 Configuring the IP address of the CPU 49 5 2 Structuring your user program is easy 50 5 2 1 Use OBs for organizing your user program 53 5 2 2 FBs and FCs make programming the modular tasks easy 54 5 2 3 Data blocks provide easy storage for program data 55 5 3 Powerful and easy to use instruction set 57 5 3 1 Easy to use programming languages 57 5 3 2 Providing the basic instructio...

Страница 6: ...ss to an online CPU 89 8 2 Going online and connecting to a CPU 90 8 3 Interacting with the online CPU 91 8 4 Uploading from the online CPU 92 8 5 Displaying the diagnostic events 94 8 6 Using a watch table for monitoring the CPU 94 8 7 Forcing variables in the CPU 95 A Technical specifications 97 A 1 General specifications 97 A 2 CPU modules 101 A 3 Signal boards 106 A 4 Digital signal modules 10...

Страница 7: ...The CPU monitors the inputs and changes the outputs according to the logic of your user program which can include Boolean logic counting timing complex math operations and communications with other intelligent devices The CPU provides a PROFINET port for communication over a PROFINET network Communication modules are available for communicating over RS485 or RS232 networks To provide security for ...

Страница 8: ...ts 10 outputs 2 inputs Process image size Inputs Outputs 1024 bytes 1024 bytes 1024 bytes 1024 bytes 1024 bytes 1024 bytes Signal modules expansion None 2 8 Signal board 1 1 1 Communication modules 3 3 3 High speed counters Single phase Quadrature phase 3 3 at 100 kHz 3 at 80 kHz 4 3 at 100 kHz 1 at 30 kHz 3 at 80 kHz 1 at 20 kHz 6 3 at 100 kHz 3 at 30 kHz 3 at 80 kHz 3 at 20 kHz Pulse outputs1 2 ...

Страница 9: ...otocols For detailed information about a specific module see the technical specifications Page 97 ཱ ཱི ི Communication module CM Signal board SB CPU Signal module SM Module Input only Output only Combination in out 8 x DC In 8 x DC Out 8 x Relay Out 8 x DC In 8 x DC Out 8 x DC In 8 x Relay Out Digital 16 x DC In 16 x DC Out 16 x Relay Out 16 x DC In 16 x DC Out 16 x DC In 16 x Relay Out Signal modu...

Страница 10: ...erial PROFINET PROFIBUS DP MPI or serial PROFINET Tags Process screens Alarms Curves Recipe memory integrated flash Recipes 128 50 200 25 32 KB 5 recipes 20 data records 20 entries 256 50 200 25 32 KB 5 recipes 20 data records 20 entries 256 50 200 25 32 KB 5 recipes 20 data records 20 entries Protection rating Certification IP65 CE UL cULus NEMA 4x IP65 CE UL cULus NEMA 4x IP65 CE UL cULus NEMA 4...

Страница 11: ...2C 90 mm 45 mm CPU CPU 1214C 110 mm 55 mm 8 and 16 point DC and Relay 8I 16I 8Q 16Q 8I 8Q 2 and 4 point Analog 4AI 4AI 4AQ 2AQ 45 mm 22 5 mm Signal module SM 16I 16Q Relay 16I 16Q 70 mm 35 mm Communication module CM CM 1241 RS232 and CM 1241 RS485 30 mm 15 mm The CPUs SMs and CMs support DIN rail mounting and panel mounting Use the DIN rail clips on the module to secure the device on the rail Thes...

Страница 12: ...ontal installation Clearance area Always consider the following guidelines when planning your installation Separate the devices from heat high voltage and electrical noise Provide adequate clearance for cooling and wiring A 25 mm thermal zone must be provided above and below the unit for free air circulation Refer to the S7 1200 System Manual for specific requirements and guidelines for installati...

Страница 13: ...the elements within the project Project view Choose which view helps you work most efficiently With a single click you can toggle between the Portal view and the Project view Portal view Portals for the different tasks Tasks for the selected portal Selection panel for the selected action Changes to the Project view The Portal view provides a functional view of the project tasks and organizes the t...

Страница 14: ...de additional information including a link to a specific topic in the online information system online help A black triangle alongside the tool tip signifies that more information is available STEP 7 Basic provides a comprehensive online information and help system that describes all of the SIMATIC TIA products that you have installed The information system also includes reference information and ...

Страница 15: ...STEP 7 Basic makes the work easy 2 1 Help when you need it Easy Book Manual 05 2009 A5E02486774 01 15 Help window default Help window with contents displayed ...

Страница 16: ...cs from the online help To print from the information system click the Print button on the help window The Print dialog allows you to select the topics to print Make certain that the panel displays a topic You can then select any other topic to print Click the Print button to send the selected topics to your printer ...

Страница 17: ...xisting projects Use the Devices Networks portal to configure all of the hardware elements PLC and HMI and also the networks for your application Use the PLC Programming portal to create the control program for every PLC in the project Use the Visualization portal to create the screens for the HMI devices in your project Use the Online Diagnostics portal to monitor the devices on the network ...

Страница 18: ...s from the task card onto a network Easy to drag and drop between editors To help you perform tasks quickly and easily STEP 7 Basic allows you to drag and drop elements from one editor to another For example you can drag an input from the CPU to the address of an instruction in your user program You must zoom in at least 200 to select the I O of the CPU To display two editors at one time use the S...

Страница 19: ...5 2009 A5E02486774 01 19 Easy to modify the appearance and operation of STEP 7 Basic You can select a variety of settings such as the appearance of the interface language or the directory for saving your work Select the Settings command from the Options menu to change these settings ...

Страница 20: ......

Страница 21: ...ate new project task After creating the project select the Devices Networks portal Click the Add new device task Select the CPU to add to the project 1 In the Add new device dialog click the SIMATIC PLC button 2 Select a CPU from the list 3 To add the selected CPU to the project click the Add button Note that the Open device view option is selected Clicking Add with this option selected opens the ...

Страница 22: ... After you create a tag STEP 7 Basic stores the tag in a tag table All of the editors in your project such as the program editor the device editor the visualization editor and the watch table editor can access the tag table With the device editor open you can open a tag table You can see the open editors displayed in the editor bar In the tool bar click the Split editor space horizontally button ...

Страница 23: ...he I O points legible and selectable 1 Select I0 0 and drag it to the first row of the tag table 2 Change the tag name from I0 0 to Start 3 Drag I0 1 to the tag table and change the name to Stop 4 Drag Q0 0 on the bottom of the CPU to the tag table and change the name to Running With the tags entered into the tag table the tags are available to your user program ...

Страница 24: ...e buttons on the Favorites to insert contacts and coils onto the network 1 Click the Normally open contact button on the Favorites to add a contact to the network 2 For this example add second contact 3 Click the Output coil button to insert a coil The Favorites also provides a button for creating a branch 1 Click the Open branch icon to add a branch to the rail of the network 2 Insert another nor...

Страница 25: ...pen the tags in the tag table 3 From the drop down list select Start for the first contact 4 For the second contact repeat the preceding steps and select the tag Stop 5 For the coil and the latching contact select the tag Running You can also drag the I O addresses directly from the CPU Simply split the work area of the Project view Page 17 You can drag the I O on the CPU in the Device configurati...

Страница 26: ...of instructions For this example create an ADD instruction 1 Click the yellow corner of the box instruction to display the drop down list of instructions 2 Scroll down the list and select the ADD instruction 3 Click the yellow corner by the to select the data type for the inputs and output You can now enter the tags or memory addresses for the values to use with the ADD instruction You can also cr...

Страница 27: ...ce dialog 3 Select the specific HMI device from the list You can choose to run the HMI wizard to help you configure the screens for the HMI device 4 Click OK to add the HMI device to your project The HMI device is added to the project STEP 7 Basic provides an HMI wizard that helps you configure all of the screens and structure for your HMI device If you do not run the HMI wizard STEP 7 Basic creat...

Страница 28: ... from the green box on one device to the green box on the other device A network connection is created for the two devices Creating an HMI connection for sharing the tags By creating an HMI connection between the two devices you can easily share the tags between the two devices With the network connection selected click the HMI connection button The HMI connection turns the two devices blue This c...

Страница 29: ... an HMI screen is easy STEP 7 Basic provides a standard set of libraries for inserting basic shapes interactive elements and even standard graphics To add an element simply drag and drop one of the elements onto the screen Use the properties for the element in the Inspector window to configure the appearance and behavior of the element ...

Страница 30: ......

Страница 31: ...user instructions and updates the output values in the process image output area instead of writing to the actual physical outputs After executing the user program the CPU writes the resulting outputs from the process image output area to the physical outputs ཱ ུ ཱི ི STARTUP RUN A Clears the I memory area Writes Q memory to the physical outputs B Initializes the outputs with either the last value ...

Страница 32: ...CPU supports the warm restart method for entering the RUN mode Warm restart does not include a memory reset but a memory reset can be commanded from the programming software A memory reset clears all work memory clears retentive and non retentive memory areas and copies load memory to work memory A memory reset does not clear the diagnostics buffer or the permanently saved IP address All non reten...

Страница 33: ...tive data You can specify work memory data values such as data in a DB or bit memory M that are to be saved permanently each time power is removed Retentive memory is non volatile storage for a limited quantity of work memory values The retentive memory area is used to store the values of selected user memory locations during power loss When a power down occurs the CPU by design has enough hold up...

Страница 34: ...rd 32 16 00000000 to 16 FFFFFFFF 16 02468ACE Char 8 16 00 to 16 FF A t Sint 8 128 to 127 123 123 Int 16 32 768 to 32 767 123 123 Dint 32 2 147 483 648 to 2 147 483 647 123 123 USInt 8 0 to 255 123 UInt 16 0 to 65 535 123 UDInt 32 0 to 4 294 967 295 123 Real 32 1 18 x 10 38 to 3 40 x 10 38 123 456 3 4 1 2E 12 3 4E 3 LReal 64 2 2250738585072020 10 308 to 1 7976931348623157 10308 12345 123456789 1 2E...

Страница 35: ...ess the process image To immediately access the physical input or output append the reference with P such as I0 3 P Q1 7 P or Stop P Each different memory location has a unique address Your user program uses these addresses to access the information in the memory location Memory area Description Force Retentive Copied from physical inputs at the beginning of the scan cycle No No I Process image in...

Страница 36: ... 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 configuration screen and entering new addresses The following figure shows an example of a CPU 1214C with two SMs and one CM CPU inputs are bits addressed from I0 0 to I0 7 and I1 0 to I1 5 14 total points CPU outputs are bits addres...

Страница 37: ...nication A function FC is a subroutine that is executed when called from another code block OB FB or FC The FC does not have an associated instance DB The calling block passes parameters to the FC The output values from the FC must be written to a memory address or to a global DB The size of the user program data and configuration is limited by the available load memory and the work memory in the ...

Страница 38: ... priority first Events of the same priority are serviced on a first come first served basis After the execution of an OB has started processing of the OB cannot be interrupted by the occurrence of another event from the same or lower priority group Such events are queued for later processing allowing the CPU to complete the execution of the current OB An OB within a priority group does not interru...

Страница 39: ...otected CPU allows only one user unrestricted access at a time PLC to PLC communications using communication instructions in the code blocks are not restricted by the security level in the CPU HMI functionality is also not restricted Entering the correct password provides access to all of the functions With password protection you can use instructions for process control and communications without...

Страница 40: ......

Страница 41: ...ted in slots 101 102 and 103 CPU Slot 1 Ethernet port of CPU Signal board SB up to 1 inserted in the CPU Signal module SM for digital or analog I O up to 8 inserted in slots 2 through 9 CPU 1214C allows 8 CPU 1212C allows 2 CPU 1211C does not allow any To create the device configuration add a device to your project In the Portal view select Devices Networks and click Add device In the Project view...

Страница 42: ...vice configuration entirely by selecting the Create a PLC program from the First steps STEP 7 Basic then automatically creates an unspecified CPU From the program editor you select the Hardware detection command from the Online menu From the device configuration editor you select the option for detecting the configuration of the connected device After you select the CPU from the online dialog STEP...

Страница 43: ...K to add the CPU to the project The Device view shows the CPU and rack Selecting the CPU in the Device view displays the CPU properties in the inspector window Use these properties to configure the operational parameters of the CPU Page 46 Note The CPU does not have a pre configured IP address You must manually assign an IP address for the CPU during the device configuration If your CPU is connect...

Страница 44: ...d on the front of the CPU Signal modules SM provide additional digital or analog I O points These modules are connected to the right side of the CPU Communication modules CM provide an additional communication port RS232 or RS485 for the CPU These modules are connected to the left side of the CPU To insert a module into the hardware configuration select the module in the hardware catalog and eithe...

Страница 45: ...e 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 Select Network view to display the devices to be connected Select the port on one device and drag the connection to the port on the second device Release the mouse button to create the network connection ...

Страница 46: ... CPU Use the properties of the CPU to configure the following parameters PROFINET IP address and time synchronization for the CPU Local on board digital and analog I O High speed counters HSC and pulse generators Startup behavior of the CPU following an off to on transition System clock time time zone and daylight saving time Read write protection and password for accessing the CPU System memory f...

Страница 47: ...ulse width modulation and PtP point to point communication modules can be made in startup Actual operation of HSC PWM and point to point communication modules only occurs in RUN After the execution of the startup OBs finishes the CPU goes to RUN mode and processes the control tasks in a continuous scan cycle Use the CPU properties to configure how the CPU starts up after a power cycle Select wheth...

Страница 48: ...arameters for individual inputs such as voltage current range and smoothing and also enables underflow or overflow diagnostics Analog outputs Configures the parameters for individual analog outputs such as output type voltage or current and also to enable diagnostics such as short circuit for voltage outputs or overflow values greater than 32511 or less than 32512 I O diagnostic addresses Configur...

Страница 49: ...nd enables short circuit diagnostics for voltage outputs and to freeze or use a substitute value on a transition from RUN mode to STOP mode I O diagnostic addresses Configures the start address for the set of inputs and outputs of the module 5 1 2 Configuring the IP address of the CPU Because the CPU does not have a pre configured IP address you must manually assign an IP address You configure the...

Страница 50: ...grouping of connected network devices A mask also known as the subnet mask or network mask defines the boundaries of a subnet The only connection between different subnets is via a router Routers are the link between LANs and rely on IP addresses to deliver and receive data packets After completing the configuration download the project to the CPU The IP address for the CPU and for the router if a...

Страница 51: ...r program A linear program executes all of the instructions for your automation tasks in sequence one after the other Typically the linear program puts all of the program instructions into one program cycle OB OB 1 for cyclic execution of the program A modular program calls specific code blocks that perform specific tasks To create a modular structure you divide the complex automation task into sm...

Страница 52: ...ks of code for standard tasks such as for controlling a pump or a motor You can also store these generic code blocks in a library that can be used by different applications or solutions When you structure the user program into modular components that relate to functional tasks the design of your program can be easier to understand and to manage The modular components not only help to standardize t...

Страница 53: ...cycle OB again This cyclic processing is the normal type of processing used for programmable logic controllers For many applications the entire user program is located in a single cyclic OB such as the default program cycle OB 1 You can create other OBs to perform specific functions such as startup tasks for handling interrupts and errors or for executing specific program code at specific time int...

Страница 54: ... the execution of the FC has finished assign the output value to a global memory location such as M memory or to a global DB 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 DB The instance...

Страница 55: ...le FB 22 controls three separate devices with DB 201 storing the operational data for the first device DB 202 storing the operational data for the second device and DB 203 storing the operational data for the third device 2 5 2 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 p...

Страница 56: ... blocks then double click the Add new block command 1 In the Add new block dialog click the Function FC icon 2 Specify the programming language for the FC by selecting LAD from the drop down menu 3 Click OK to add the block to the project Selecting the Add new open option default opens the FC in the Project view To save the project click the Save project button in the toolbar You can easily have a...

Страница 57: ... are opened downwards or are connected directly to the power rail You terminate the branches upwards LAD also provides box instructions for a variety of functions such as math timer counter and move The elements of a circuit diagram such as normally closed contacts normally open contacts and coils are linked to form networks Consider the following rules when creating a LAD network Every LAD networ...

Страница 58: ...user program determines the status of the value for that address Normally Open Contact Normally Closed Contact The Normally Open contact is closed ON when the assigned bit value is equal to 1 The Normally Closed contact is closed ON when the assigned bit value is equal to 0 The basic structure of a bit logic operation is either AND logic or OR logic Contacts connected in series create AND logic ne...

Страница 59: ...setting new output state values in the process image output register After each program execution cycle the CPU transfers the new output state reaction stored in the process image register to the wired output terminals You can specify an immediate write of a physical output using P following the tag for an output such as Motor_On P or Q3 4 P For an immediate write the bit data values are written t...

Страница 60: ...d then drop it onto the input side of the box to add more inputs You can also right click on the box input connector and select Insert input Box inputs and output can be connected to another logic box or you can enter a bit address or bit symbol name for an unconnected input When the box instruction is executed the current input states are applied to the binary box logic and if true the box output...

Страница 61: ...r to the destination address specified by the OUT parameter The MOVE_BLK and UMOVE_BLK instructions have an additional COUNT parameter The COUNT specifies how many data elements are copied The number of bytes per element copied depends on the data type assigned to the IN and OUT parameter tag names in the PLC tag table Counters You use the counter instructions to count internal program events and ...

Страница 62: ...t count value is equal to or less than 0 the counter output parameter Q 1 If the value of parameter LOAD changes from 0 to 1 the value at parameter PV Preset value is loaded to the counter as the new CV Current count value 8 9 4 2 The CTUD counts up or down by 1 on the 0 to 1 transition of the Count up CU or Count down CD inputs The figure shows a CTUD timing diagram with an unsigned integer count...

Страница 63: ...P TON and TOF timers have the same input and output parameters The TONR timer has the additional reset input parameter R The RT instruction resets the timer data for the specified timer Timer name RT Each timer uses a structure stored in a data block to maintain timer data You assign the data block when the timer instruction is placed in the editor When you place timer instructions in a function b...

Страница 64: ...ul and easy to use instruction set Easy Book 64 Manual 05 2009 A5E02486774 01 TON timer On delay timing diagram 1 4 7 37 37 37 TOF timer Off delay timing diagram 1 4 7 37 37 37 TONR timer On delay retentive timing diagram 1 4 5 7 37 ...

Страница 65: ...e monitoring function and is used for calculation in the block Monitoring includes the current measuring time between two calls and the mean value of the defined controller sampling time Modes Description Inactive After the user program has been downloaded the first time the PID controller remains in the Inactive operating mode In this case carry out a Self tuning during initial start in the commi...

Страница 66: ...ion control axis MC_Reset resets all motion control errors All motion control errors that can be acknowledged are acknowledged MC_Home establishes the relationship between the axis control program and the axis mechanical positioning system MC_Halt cancels all motion processes and causes the axis motion to stop The stop position is not defined MC_MoveJog executes jog mode for testing and startup pu...

Страница 67: ...e execution of the first scan the first scan bit is set to 0 You can assign one byte in M memory for clock memory Each bit of the byte configured as clock memory generates a square wave pulse The byte of clock memory provides 8 different frequencies from 0 5 Hz slow to 10 Hz fast You can use these bits as control bits especially when combined with edge instructions to trigger actions in the user p...

Страница 68: ... you to reproduce tests during commissioning or for service and maintenance purposes With a watch table you can monitor and interact with the CPU as it executes the user program You can display or change values not only for the tags of the code blocks and data blocks but also for the memory areas of the CPU including the inputs and outputs I and Q peripheral inputs bit memory M and data blocks DB ...

Страница 69: ...aving the project saves any changes in the project library You can create your own global library to store the objects you want to make available for other projects to use When you create a new global library you save this library to a location on your computer or network STEP 7 Basic provides several global libraries for use by any project Note Saving the project does not save or update the globa...

Страница 70: ...such as whether an instance DB is used as template or as a multiple instance Access Type of access whether access to the operand is read access R and or write access W Address Address of the operand Type Information on the type and language used to create the object Path Path of object in project tree To display the cross references select the Show cross references command In the Project view find...

Страница 71: ...can group several block calls and data blocks as a group You use a drop down list to see the links to the various call locations You can also perform a consistency check to show time stamp conflicts Changing the time stamp of a block during or after the program is generated can lead to time stamp conflicts which in turn cause inconsistencies among the blocks that are calling and being called Most ...

Страница 72: ......

Страница 73: ...onnected to a CPU The project must include the CPU The programming device is not part of the project but must be running STEP 7 Basic Direct connection HMI panel connected to a CPU The project must include both the CPU and the HMI Direct connection A CPU connected to another CPU The project must include both CPUs You must configure a network connection between the two CPUs CSM1277 Ethernet Switch ...

Страница 74: ...k mounted Siemens CSM1277 4 port Ethernet switch to connect your CPUs and HMI devices 6 1 PROFINET instructions T blocks Use the T block instructions only in a program cycle OB such as OB 1 TSEND_C establishes a TCP or ISO on TCP communication connection to a partner station sends data and can terminate the connection After the connection is set up and established it is automatically maintained an...

Страница 75: ...ion connection to a partner CPU receives data and can terminate the connection After the connection is set up and established it is automatically maintained and monitored by the CPU The TRCV_C instruction combines the functions of the TCON TDISCON and TRCV instructions To establish a connection execute TRCV_C with parameter CONT 1 To receive data execute TRCV_C with parameter EN_R 1 Receive data c...

Страница 76: ...or vision systems or radio modems PtP communication is serial communication that support a variety of baud rates and parity options STEP 7 Basic provides libraries of instructions that you can use in programming your application These libraries provide PtP communication functions for the following protocols USS drive protocol RS485 only Modbus RTU Master protocol Modbus RTU Slave protocol Communic...

Страница 77: ... 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 SEND_PTP transfers the specified buffer to the CM module The CPU continues to execute the user program while the module sends the data at the specified baud ra...

Страница 78: ...to control the functions of the drive Call the USS_DRV instruction only from the program cycle OB The USS_RPM and USS_WPM instructions read and write the operating parameters of the remote drive These parameters control the internal operation of the drive See the drive manual for the definition of these parameters Your program can contain as many of these instructions as necessary However only one...

Страница 79: ...U 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 The following table shows the minimum USS_PORT interval for each baud rate Calling the USS_PORT function more frequently than the USS_PORT interval will not increase the number of transactions The drive timeout interval is th...

Страница 80: ... responds via MB_SLAVE execution You assign a unique instance DB when you place the MB_SLAVE instruction in your user program You use the DB name when you specify the MB_DB parameter on the MB_COMM_LOAD instruction Execute all MB_SLAVE instructions from a cyclic interrupt OB The Modbus instructions do not use communication interrupt events to control the communication process Your program must pol...

Страница 81: ... purposes in your user program If your user program writes a value to an output used as a pulse generator the CPU does not write that value to the physical output NOTICE Do not exceed the maximum pulse frequency As described in the S7 1200 System Manual the maximum pulse frequency of the pulse output generators is 100 KHz for the digital outputs of the CPU and 20 KHz for the digital outputs of the...

Страница 82: ...on the same way for the same counter mode of operation There are four basic types of HSC single phase counter with internal direction control single phase counter with external direction control two phase counter with 2 clock inputs and A B phase quadrature counter Note that every mode is not supported by every HSC You can use each HSC type with or without a reset input When you activate the reset...

Страница 83: ...Mode Monitor pulse train outputs PTO 1 Clock Direction Count 1 Pulse train output monitoring always uses clock and direction If the corresponding PTO output is configured for pulse only then the direction output should generally be set for positive counting 2 HSC3 with a reset input is not possible for the CPU 1211C which supports only 6 built in inputs 3 HSC4 is not possible for the CPU 1211C whi...

Страница 84: ...he CPU to configure the parameters of each individual HSC Configure the parameters for the high speed counters by editing the Properties of the CPU After enabling the HSC configure the other parameters such as counter function initial values reset options and interrupt events After configuring the HSC you use the CTRL_HSC instruction in your user program to control the operation of the HSC Enable ...

Страница 85: ...ue PERIOD BOOL 1 Request to set new period value only for frequency measurement mode NEW_DIR INT New direction 1 forward 1 backward NEW_CV DINT New counter value NEW_RV DINT New reference value NEW_PERIOD INT New period value in seconds 01 1 or 1 only for frequency measurement mode BUSY BOOL Function busy STATUS WORD Execution condition code You must configure the high speed counters in the projec...

Страница 86: ...guration You may use program logic to directly read the count value and the value returned to your program will be a correct count for the instant in which the counter was read but the counter will continue to count high speed events The actual count value could change before your program completes a process using an old count value 7 2 Pulse width modulation PWM Two pulse generators are available...

Страница 87: ...selecting the CPU then Pulse Generator PTO PWM and choose either PWM1 or PWM2 Enable the pulse generator check box If a pulse generator is enabled a unique default name is assigned to this particular pulse generator You can change this name by editing it in the Name edit box but it must be a unique name Names of enabled pulse generators will become tags in the constant tag table and will be availa...

Страница 88: ...M parameter to specify the enabled pulse generator When the EN input is TRUE the PWM_CTRL instruction starts or stops the identified PWM based on the value at the ENABLE input Pulse width is specified by the value in the associated Q word output address Because the CPU processes the request when the CTRL_PWM instruction is executed parameter BUSY will always report FALSE on S7 1200 CPU models The ...

Страница 89: ...nloaded as part of the device configuration will not be lost on a power cycle of the PLC Use Online access to display the IP address for the CPU Note that Online access displays all of configured networks for the programming device Select the correct network to display the IP address for the specific CPU IP address of the CPU on the network Select Download to device and Extended download to device...

Страница 90: ... user programs Displaying and changing the operating mode of the CPU Displaying and setting the date and time of day of the CPU Displaying the module information Comparing online and offline blocks Diagnosing hardware You can then access the data on the target system in the online or diagnostics view using the Online tools task card The current online status of a device is indicated by an icon to ...

Страница 91: ...P mode and green indicates RUN mode The CPU panel also allows you to change the operating mode of the online CPU Use the button on the operator panel to change the operating mode STOP or RUN The CPU panel also provides an MRES button for resetting the memory To use the CPU panel you must be connected online to the CPU After you select the CPU in the device configuration or display a code block in ...

Страница 92: ... CPU 2 Expand the online CPU to display the code blocks of the user program 3 Drag the code blocks from the online CPU to the Program blocks container of the CPU in your offline project STEP 7 Basic copies the code blocks from the online CPU to your offline project You can also use the Compare function to synchronize the code blocks between the online CPU and the offline CPU 1 Select the online CP...

Страница 93: ...ration Project view or Portal view add a new device but select the unspecified CPU instead of selecting a specific CPU In the Portal view click the Create a PLC program from the First steps STEP 7 Basic creates an unspecified CPU After creating the unspecified CPU you can upload the hardware configuration for the online CPU From the program editor you select the Hardware detection command from the...

Страница 94: ... are recorded in the diagnostics buffer Each system diagnostic event for example CPU errors and module errors Each state change of the CPU each power up each transition to STOP each transition to RUN Each change to a configured object except changes issued by the CPU and the user program 8 6 Using a watch table for monitoring the CPU A watch table allows you to perform monitoring and control funct...

Страница 95: ...t provide feedback to indicate that the selected addresses were actually modified If feedback of the change is required use the Modify now function Enable peripheral outputs allows you to turn on the peripheral outputs when the CPU is in STOP mode This feature is useful for testing the wiring of the output modules The various functions can be selected using the buttons at the top of a watch table ...

Страница 96: ...ory card will be transferred to the CPU ཱ ུ ཱི ི Startup RUN A The clearing of the I memory area is not affected by the Force function While writing Q memory to the physical outputs the CPU applies the force value as the outputs are updated B The initialization of the outputs values is not affected by the Force function After copying the state of the physical inputs to I memory the CPU applies the ...

Страница 97: ...t requirements and tests EC Directive 2004 108 EC EMC Directive Electromagnetic Compatibility Emission standard EN 61000 6 4 2007 Industrial Environment Immunity standard EN 61000 6 2 2005 Industrial Environment EC Directive 94 9 EC ATEX Equipment and Protective Systems Intended for Use in Potentially Explosive Atmosphere EN 60079 15 2005 Type of Protection n The CE Declaration of Conformity is he...

Страница 98: ...C at the branching point of the conductors the temperature specification of the selected cable should be in compliance with the actual measured temperature Provisions should be made to prevent the rated voltage from being exceeded by transient disturbances of more than 40 The S7 1200 automation system satisfies requirements of standards to AS NZS 2064 Class A Maritime approval The S7 1200 products...

Страница 99: ... common mode 1kV differential mode For DC systems I O signals DC power systems external protection is required EN 61000 4 6 Conducted disturbances 150 kHz to 80 MHz 10 V RMS 80 AM at 1kHz EN 61000 4 11 Voltage dips AC systems 0 for 1 cycle 40 for 12 cycles and 70 for 30 cycles at 60 Hz Electromagnetic Compatibility Conducted and Radiated Emissions per EN 61000 6 4 Conducted Emissions EN 55011 Clas...

Страница 100: ...ts 115 230 V circuits to ground 115 230 V circuits to 115 230 V circuits 115 V 230V circuits to 24 V 5 V circuits 520 VDC type test of optical isolation boundaries 1 500 VAC routine test 1950 VDC type test 1 500 VAC routine test 1950 VDC type test 1 500 VAC routine test 3250 VDC type test Protection Class Protection Class II according to EN 61131 2 Protective conductor not required Degree of prote...

Страница 101: ...d Operating Current A A 2 CPU modules For the complete set of technical specifications see the S7 1200 system manual General specifications CPU 1211C CPU 1212C CPU 1214C Dimensions W x H x D 90 x 100 x 75 mm 90 x 100 x 75 mm 110 x 100 x 75 mm Weight AC DC relay DC DC Relay DC DC DC 420 grams 380 grams 370 grams 425 grams 385 grams 370 grams 475 grams 435 grams 415 grams Power dissipation AC DC rel...

Страница 102: ... 14 Time delay cyclic interrupts 4 total with 1 ms resolution 4 total with 1 ms resolution 4 total with 1 ms resolution Edge interrupts With optional SB 6 rising and 6 falling 10 rising and 10 falling 8 rising and 8 falling 12 rising and 12 falling 12 rising and 12 falling 14 rising and 14 falling Memory card optional SIMATIC Memory Card SIMATIC Memory Card SIMATIC Memory Card Real time clock Accu...

Страница 103: ... 80 KHz Ia 0 to Ia 5 and 20 KHz Ia 6 to Ia 7 Single phase 100 KHz Ia 0 to Ia 5 and 30 KHz Ia 6 to Ib 5 Quadrature phase 80 KHz Ia 0 to Ia 5 and 20 KHz Ia 6 to Ib 5 Cable length meters 500 shielded 300 unshielded 50 shielded for HSC inputs Digital outputs Relay DC Number of outputs AC DC Relay and DC DC Relay CPU 1211C 4 CPU 1212C 6 CPU 1214C 10 DC DC DC CPU 1211C 4 CPU 1212C 6 CPU 1214C 10 Number ...

Страница 104: ...lose cycles N A Behavior on RUN to STOP Last value or substitute value default value 0 Cable length meters 500 m shielded 150 m unshielded Analog inputs Description Number and type of inputs 2 Voltage single ended inputs CPU 1211C CPU 1212C and CPU 1214C Range 0 to 10 V Full scale range data word 1 0 to 27648 Overshoot range data word 1 27649 to 32511 Overflow data word 1 32512 to 32767 Resolution...

Страница 105: ...dules Easy Book Manual 05 2009 A5E02486774 01 105 Sample wiring diagrams for the S7 1200 CPU For complete information see the S7 1200 system manual CPU 1214C AC DC Relay 24 VDC Sensor Power Out CPU 1214C DC DC DC 24 VDC Sensor Power Out ...

Страница 106: ...DC max Surge voltage 35 VDC for 0 5 sec Logic 1 signal min Logic 0 signal max 15 VDC at 2 5 mA 5 VDC at 1 mA HSC clock input rates max 20 kHz 15 to 30 VDC 30 kHz 15 to 26 VDC Isolation field side to logic Isolation groups 500 VAC for 1 minute 1 Filter times 0 2 0 4 0 8 1 6 3 2 6 4 and 12 8 ms Selectable in groups of 2 Cable length meters 500 shielded 300 unshielded Digital Outputs SB 1223 DI 2x24V...

Страница 107: ...e or current Range 10 V or 0 to 20 mA Resolution Voltage 12 bits Current 11 bits Full scale range data word Voltage 27 648 to 27 648 Current 0 to 27 648 Accuracy 25 C 0 to 55 C 0 5 1 of full scale Settling time 95 of new value Voltage 300 μS R 750 μS 1 uF Current 600 μS 1 mH 2 ms 10 mH Load impedance Voltage 1000 Ω Current 600 Ω Behavior on RUN to STOP Last value or substitute value default value ...

Страница 108: ...x 100 x 75 mm 45 x 100 x 75 mm Weight 170 grams 210 grams Power dissipation 1 5 W 2 5 W Current consumption SM Bus 105 mA 130 mA Current consumption 24 VDC 4 mA input used 4 mA input used Digital inputs Description Input type Sink Source IEC Type 1 sink Rated voltage 24 VDC at 4 mA nominal Continuous permissible voltage 30 VDC max Surge voltage 35 VDC for 0 5 sec Logic 1 signal min Logic 0 signal ...

Страница 109: ...er dissipation 8 5 W 2 5 W Current consumption SM Bus 135 mA 140 mA Current consumption 24 VDC 11 mA Relay coil used N A Digital outputs SM1222 DQ 16xRelay SM1222 DQ 16x24VDC Number and type of outputs Number of outputs on simultaneously 16 relay dry contact 16 16 solid state MOSFET 16 Voltage range 5 to 30 VDC or 5 to 250 VAC 20 4 to 28 8 VDC Logic 1 signal at max current Logic 0 signal with 10K ...

Страница 110: ...contacts 100 MΩ min when new 750 VAC for 1 minute N A Isolation groups 4 1 Current per common max 10 A 8 A Inductive clamp voltage N A L minus 48 V 1 W dissipation Switching delay 10 ms max 50 μs max off to on 200 μs max on to off Lifetime mechanical no load Lifetime contacts at rated load 10 000 000 open close cycles 100 000 open close cycles N A Behavior on RUN to STOP Last value or substitute v...

Страница 111: ...l Continuous permissible voltage 30 VDC max Surge voltage 35 VDC for 0 5 sec Logic 1 signal min Logic 0 signal max 15 VDC at 2 5 mA 5 VDC at 1 mA Isolation field side to logic Isolation groups 500 VAC for 1 minute 2 Filter times ms 0 2 0 4 0 8 1 6 3 2 6 4 and 12 8 ms selectable in groups of 4 Cable length meters 500 shielded 300 unshielded Digital outputs SM 1223 DI 16x24 VDC DQ 16xRelay SM 1223 D...

Страница 112: ...tion groups 4 1 Current per common max 8 A 8 A Inductive clamp voltage N A L minus 48 V 1 W dissipation Switching delay 10 ms max 50 μs max off to on 200 μs max on to off Lifetime mechanical no load Lifetime contacts at rated load 10 000 000 open close cycles 100 000 open close cycles N A Behavior on RUN to STOP Last value or substitute value default value 0 Cable length meters 500 shielded 150 un...

Страница 113: ...table in groups of 2 Range 10 V 5 V 2 5 V or 0 to 20 mA Full scale range data word 27 648 to 27 648 Overshoot undershoot range data word 1 Voltage 32 511 to 27 649 27 649 to 32 512 Current 32 511 to 27 649 0 to 4864 Overflow underflow data word 1 Voltage 32 767 to 32 512 32 513 to 32 768 Current 32 767 to 32 512 4865 to 32 768 Resolution 12 bits sign bit Maximum withstand voltage current 35 V 40 m...

Страница 114: ...Ω Behavior on RUN to STOP Last value or substitute value default value 0 Isolation field side to logic None Cable length meters 10 meters twisted and shielded 1 Refer to the S7 1200 system manual for voltage and current representations of the analog outputs Diagnostics SM 1231 AI 4x13bit SM 1234 AI 4x13bit AQ 2x14bit SM 1232 AQ 2x14bit Overflow underflow Yes1 Yes1 N A Short to ground voltage mode ...

Страница 115: ...Technical specifications A 5 Analog signal modules Easy Book Manual 05 2009 A5E02486774 01 115 SM 1231 AI x 13 Bit SM 1234 AI 4 x 13 Bit SM 1232 AQ 2 x 14 bit ...

Страница 116: ...ge 7 V to 12 V 1 second 3 VRMS continuous Transmitter differential output voltage 2 V min at RL 100 Ω 1 5 V min at RL 54 Ω Tranmitter RS485 Termination and bias 10K Ω to 5 V on B PROFIBUS Pin 3 10K Ω to GND on A PROFIBUS Pin 8 Transmitter output voltage 5 V min at RL 3K Ω Transmitter RS232 Transmit output voltage 15 VDC max Receiver input impedance RS485 5 4K Ω min including termination RS232 3 K ...

Страница 117: ...e 43 Device configuration 41 Communication module CM Comparison chart 9 Communication modules RS232 and RS485 76 Communications module CM specifications 116 Communications module CM USS library 78 Compare instructions 60 Comparison chart CPU models 8 HMI devices 10 Comparison chart of modules 9 Configuration Discover 42 93 HSC high speed counter 84 Industrial Ethernet port 49 IP address 50 PROFINE...

Страница 118: ... 94 Digital signal board SB specifications 106 Discover 42 93 Displaying the contents and index online help 14 Documentation 14 Download to device 89 E Electromagnetic compatibility EMC 99 Environmental conditions 99 Environments industrial 98 Ethernet IP address 50 Network connection 45 Ethernet communication 74 Ethernet instructions TRCV_C 75 TSEND_C 74 Event execution 37 Expanding the capabilit...

Страница 119: ...60 counter 61 CTRL_PWM 86 high speed counter HSC 85 move 61 PID_Compact 65 timer 63 timer RT reset timer 63 timer TOF off delay timer 63 timer TON on delay timer 63 timer TONR on delay retentive timer 63 timer TP pulse timer 63 TRCV_C 75 TSEND_C 74 uninterruptible move UMOVE_BLK 61 IP address 49 50 assigning 89 IP router 50 L LAD ladder logic 57 Linear programming 51 M MAC address 50 Maritime appr...

Страница 120: ...ation In the call structure 70 Program structure 51 Programming FBD function block diagram 58 LAD ladder 57 Linear 51 Structured 51 Unspecific CPU 42 93 Project Restricting access to a CPU 39 Project view 13 14 Add modules 44 Add new device 43 Configuring the CPU parameters 46 48 Configuring the Ethernet port 49 Configuring the modules 46 48 Device configuration 41 Network connection 45 PROFINET 4...

Страница 121: ...approval 98 protection 100 rated voltages 100 relay electrical service life 101 SB 1223 106 SM 1221 signal module 108 SM 1221 wiring diagram 109 SM 1222 signal module 109 SM 1222 wiring diagram 110 SM 1223 signal module 111 SM 1223 wiring diagram 112 Startup parameters 47 STEP 7 Add modules 44 Add new device 43 Configuring the CPU 46 48 Configuring the modules 46 48 Device configuration 41 Etherne...

Страница 122: ...nual 05 2009 A5E02486774 01 Portal view 13 Project view 14 USS protocol library 78 W Watch tables 68 94 Wiring diagrams Analog signal modules 115 SM 1221 signal module 109 SM 1222 signal module 110 SM 1223 signal module 112 ...

Отзывы: