Technical data

Appendix
27.3 Data Types and Parameter Types
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 625
Valid Data Types for the Call of a Function by a Function
You can assign the formal parameters of a calling FC to the formal parameters of a called FC. The
following figure illustrates the formal parameters of FC10 that are assigned as actual parameters to
the formal parameters of FC12.
STEP 7 restricts the assignment of formal parameters of an FC as actual parameters for the formal
parameters of a different FC. You cannot, for example, assign parameters with complex data types
or a parameter type as the actual parameter.
The following table shows the permitted data types (z) when one FC calls another FC.
Declaration Type Elementary
Data Types
Complex
Data
Types
Parameter
Type
Parameter
Type
Parameter
Type
Parameter
Type
Parameter
Type
TIMER COUNTER BLOCK POINTER ANY
Input −> Input
z
-- -- -- -- -- --
Input −> Output -- -- -- -- -- -- --
Input −> In/out -- -- -- -- -- -- --
Output −> Input -- -- -- -- -- -- --
Output −> Output
z
-- -- -- -- -- --
Output −> In/out -- -- -- -- -- -- --
In/out −> Input
z
-- -- -- -- -- --
In/out −> Output
z
-- -- -- -- -- --
In/out −> In/out
z
-- -- -- -- -- --