Introduction to STEP 5
S5-95F
Table 7-4.
Block Parameter Types and Data Types with Permissible
Actual Operands
*
Not permitted for integral FBs
Parameter
Type
Data Type
Permissible Actual Operands
I, Q
BI
for an operand with bit address
BY
for an operand with byte address
W
for an operand with word address
I
x.y
Inputs
Q
x.y
Outputs
F
x.y
Flags
IB
x
Input bytes
QB x
Output bytes
FY
x
Flag bytes
DL
x
Data bytes left
DR x
Data bytes right
PY x
Peripheral bytes*
IW
x
Input words
QW x
Output words
FW x
Flag words
DW x
Data words
PW x
Peripheral words*
D
KM
for a binary pattern (16 digits)
KY
for two absolute numbers, one byte each,
each in the range from 0 to 255
KH
for a hexadecimal pattern (maximum 4
digits)
KS
for a character (maximum 2
alphanumeric characters)
KT
for a time (BCD-coded time) with time
base 1.0 to 999.3
KC
for a count (BCD-coded) 0 to 999
KF
for a fixed-point number in the range
from -32768 to +32767
Constants
B
Type designation not permitted
DB x
Data blocks. The C DBx operation is
executed.
OB x
Organization blocks are called
unconditionally (JU ... x).
FB
x
Function blocks (permissible without
parameters only) are called
unconditionally (JU..x).
PB x
Program blocks are called
unconditionally (JU..x).
SB x
Sequence blocks are called
unconditionally (JU..x).
T
Type designation not permitted
T
Timer. The time should be assigned
parameters as data or be programmed
as a constant in the function block.
C
Counter. The count should be
assigned parameters as data or be
programmed as a constant in the
function block.
Type designation not permitted
C
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
Calling a Function Block
Like other blocks, function blocks are stored under a specific number in the program memory (e.g.,
FB47). The numbers 240 to 255 are reserved for integrated function blocks.
You can program function block calls in all blocks except data blocks and OB2.
7-14
EWA 4NEB 812 6210-02