Insert A Block; Edit The Block - Siemens SIMATIC C7-621 Manual

First steps with step 7-mini and protool/lite
Hide thumbs Also See for SIMATIC C7-621:
Table of Contents

Advertisement

Program development

Insert a block

Select the Blocks folder in the SIMATIC Manager and select Insert → S7 Block → 3 Function Block
to insert a new function. In the dialog box that appears, allocate the internal identifier FC15. Select
STL as the programming language and close the dialog box with OK.

Edit the block

Now open the LAD/STL/FBD Editor from the SIMATIC Manager by double-clicking the Function
FC15 you have just created.
Click Title beside block number FC15 and enter the block name Mode. You can enter a block
comment in the gray field directly below the block name.
Now assign the name Plant ON/OFF to Network 1. Do this by clicking Title beside the network
number. Once again, you can enter a network comment in the gray field directly below the network
name.
You can now insert the first program lines below the network comment. Use the mouse to click the
white area below the gray comment field. A box appears with the current cursor position. Please
remember to enter spaces between inputs (at least one space separating each of the command
code, operand and comment) in every program line, otherwise STEP 7 will not recognize the
statement and will highlight the line in red italics. Enter the following code in the first network:
16
A 03/99
First Steps with the C7-621
6ZB5610-0AF02-0BA0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents