Parameter
type
Data type
Actual operands permitted
Table 2-6 continued:
D
(Cont.)
KF
for a fixed point number
-32768 to +32767
KG
for a floating point
number
1)
Constants
B
Data type designation not possible DB
n
Data block; the operation
C DB n is executed
FB
n
Function block (permitted
only without parameters)
called unconditionally (JU . .n)
OB
n
Organization block called
unconditionally (JU . .n)
PB
n
Program blocks - called
unconditionally (JU . .n)
SB
n
Sequence blocks - called
unconditionally (JU . .n)
T
Data type designation not possible T 0 to 255 Timer
C
Data type designation not possible Z 0 to 255 Counter
1)
±
0.1469368 x 10
-38
to
±
0.1701412 x 10
39
Note
S flags are not permitted as actual operands for function blocks.
After the jump to a function block, the actual operands from the block
then called are used in the function block program instead of the
formal operands.
This feature of programmable function blocks allow them to be used
for a wide variety of purposes in your user program.
When the program returns from the called function block, the list of
actual operands in the calling block is skipped by a jump operation
activated implicitly by STEP 5 in MC-5 code.
Function Blocks
CPU 948 Programming Guide
2 - 30
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 ...