Siemens SIMATIC S5-115U User Manual page 186

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

Introduction to STEP 5
Table 7-4. Block Parameter Types and Data Types with Permissible Actual Operands
Parameter
Data Type
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
Calling a Function Block
Function blocks are stored like other blocks under a specific number (e.g. FB47) in internal pro-
gram memory. Numbers 240 to 251 are reserved for integral FBs and can therefore not be used for
user-written FBs! Numbers 238 to 239 are also reserved for integral FBs; however, these FBs can be
renumbered (see Chapter 11).
FB calls can be programmed in all blocks except data blocks.
7-14
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 0.0 to 999.3
for a count (BCD-coded)
0 to 999
for a fixed-point number in the range
from - 32768 to +32767
S5-115U Manual
Permissible Actual Operands
I
x.y inputs
Q
x.y outputs
F
x.y flags
IB
x
input bytes
QB x
output bytes
FB x
flag bytes
DL x
data bytes left
DR x
data bytes right
PB 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.
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).
OB x
Organization blocks are called
unconditionally (SPA..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 811 6130-02b

Advertisement

Table of Contents
loading

Table of Contents