2.3.2
Programming
Function Blocks
You can program a function block only in the "statement list"
method of representation. When entering a function block at a
programmer, perform the following steps:
Step
Action
1
Enter the block type (FB/FX) and the number of the
function block.
Number your function blocks in descending order
starting with FB 255, so that they do not collide with
the standard function blocks. The standard function
blocks are numbered from FB 1 to FB 199.
2
Enter the name of the function block.
The name can have a maximum of eight characters
and must start with a letter.
3
If the function block is to process formal operands:
Enter the formal operands you require in the block as
block parameters.
Enter the following information for each formal
operand:
-
the name of the block parameter (maximum
4 characters),
-
the type of block parameter and the data type of
the block parameter (if applicable)
You can define a maximum of 40 formal operands.
4
Enter your STEP 5 program in the form of a statement
list (STL). The formal operands are preceded by an
equality sign (e.g. A = X1). They can also be referenced
more than once at various positions in the function block.
5
Terminate your program input with the block end
operation "BE".
Function Blocks
CPU 948 Programming Guide
2 - 26
C79000-G8576-C848-04
Содержание CPU 948
Страница 10: ...Contents CPU 948 Programming Guide 1 2 C79000 G8576 C848 04 ...
Страница 32: ...Contents CPU 948 Programming Guide 2 2 C79000 G8576 C848 04 ...
Страница 72: ...Data Blocks CPU 948 Programming Guide 2 42 C79000 G8576 C848 04 ...
Страница 74: ...Contents CPU 948 Programming Guide 3 2 C79000 G8576 C848 04 ...
Страница 154: ...Contents CPU 948 Programming Guide 4 2 C79000 G8576 C848 04 ...
Страница 200: ...Contents CPU 948 Programming Guide 5 2 C79000 G8576 C848 04 ...
Страница 308: ...Contents CPU 948 Programming Guide 7 2 C79000 G8576 C848 04 ...
Страница 324: ...Examples of Parameter Assignment CPU 948 Programming Guide 7 18 C79000 G8576 C848 04 ...
Страница 326: ...Contents CPU 948 Programming Guide 8 2 C79000 G8576 C848 04 ...
Страница 370: ...Addressable System Data Area CPU 948 Programming Guide 8 46 C79000 G8576 C848 04 ...
Страница 372: ...Contents CPU 948 Programming Guide 9 2 C79000 G8576 C848 04 ...
Страница 404: ...Operations with the Base Address Register BR Register CPU 948 Programming Guide 9 34 C79000 G8576 C848 04 ...
Страница 486: ...Contents CPU 948 Programming Guide 11 2 C79000 G8576 C848 04 ...
Страница 522: ...PG Functions via the S5 Bus CPU 948 Programming Guide 11 38 C79000 G8576 C848 04 ...
Страница 524: ...Contents CPU 948 Programming Guide 12 2 C79000 G8576 C848 04 ...
Страница 538: ...Contents CPU 948 Programming Guide 13 2 C79000 G8576 C848 04 ...
Страница 546: ...List of Key Words CPU 948 Programming Guide Index 6 C79000 G8576 C848 04 ...