Technical data
Appendix
27.3 Data Types and Parameter Types
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 623
Valid Data Types for the Local Data of an FC
The following table illustrates the restrictions (-) for declaring local data for an FC. Since an FC
does not have an instance DB, it also has no static variables. For input, output, and in/out
parameters of an FC, only the parameter types POINTER and ANY are permitted. You can also
declare temporary variables of the ANY parameter type.
The valid assignments are shown by the z symbol.
Declaration
Type
Elementary
Data Types
Complex
Data Types
Parameter
Type
Parameter
Type
Parameter
Type
Parameter
Type
Parameter
Type
TIMER COUNTER BLOCK POINTER ANY
Input
z
z(2)
z z z z z
Output
z
z(2) -- -- --
z z
In/out
z
z(2) -- -- --
z z
Temporary z(1)
z(1)
-- -- -- -- z(1)
1
Located in the L stack of the FC.
2
STRINGS can be defined in the default length only.