Siemens SIMATIC S5-95F Manual page 159

Table of Contents

Advertisement

Introduction to STEP 5
Table 7-4.
Parameter
Type
I, Q
BI
BY
W
D
KM
KY
KH
KS
KT
KC
KF
B
Type designation not permitted
T
Type designation not permitted
C
Type designation not permitted
*
Not permitted for integral FBs
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
Block Parameter Types and Data Types with Permissible
Actual Operands
Data Type
for an operand with bit address
for an operand with byte address
for an operand with word address
for a binary pattern (16 digits)
for two absolute numbers, one byte each,
each in the range from 0 to 255
for a hexadecimal pattern (maximum 4
digits)
for a character (maximum 2
alphanumeric characters)
for a time (BCD-coded time) with time
base 1.0 to 999.3
for a count (BCD-coded) 0 to 999
for a fixed-point number in the range
from -32768 to +32767
Permissible Actual Operands
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*
Constants
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
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.
EWA 4NEB 812 6210-02
S5-95F

Advertisement

Table of Contents
loading

Table of Contents