Simatic 505 SoftShop
6 - Programming
••••
95
NOTE
Most SF programs and subroutines can be compiled. However,
an SF program or subroutine which contains any of the following
instructions cannot be compiled: The data compacting instructions:
PACK, PACKLOOP, PACKRS, and PACKAA The shift register
instructions: SSR, FTSR–IN and FTSR–OUT The PRINT instruction
The BCD instructions: BCDBIN and BINBCD Additionally, the CDT
and SDT instructions, when used in a compiled SF program or
subroutine, must specify a static table; that is, the table’s base address
must be a V, K, G, VMS, or VMM address and the table’s size must be
specified as a constant.
11.
Save Header changes and return to the SF Programs
Subroutines dialog box by clicking on OK. To disregard
changes and return to the SF Programs Subroutines dialog box,
click Cancel.
Insert a New Row
You can insert a new row to a Special Function Program similar to
inserting a new network. In the active logic program window, use the
mouse, or keyboard to place the cursor on an existing row in the Special
Function Program.
To enter a new row using the mouse:
1.
Click
(new row) on the Toolbar. Notice that the new row
attaches to the pointer.
2.
Place the pointer in the position where you want the new row to
appear.
3.
Click the left mouse button, and the new row is inserted.
4.
Repeat Step 3 to insert additional rows.
5.
Remove the new row from the pointer by clicking the arrow on
the Instruction Bar.
To insert a new row using the keyboard:
1.
Press the Insert key to turn the Ins mode on. See the Status Line
near the bottom of the screen.
2.
Use the arrow keys to position the parameter cursor (red or
highlighted box) in the last row of the Special Function
Program.
3.
Press Enter and the new row appears as the last row.
4.
Repeat Step 3 to enter additional rows.
Entering Special Function Program Instructions
You can enter instructions into your Special Function Program
efficiently using either the Instruction Bar or Menu Bar.
To enter instructions using the Instruction Bar:
1.
Move the pointer to the Instruction bar.
2.
Click with the left mouse button on the desired instruction on
the lower half of the Instruction Bar. If the desired instruction is
not displayed, click the appropriate instruction group on the top
half of the instruction bar.
3.
Move the pointer over the Special Function Program. Notice
that the instruction is attached to the pointer.