Attribute 'minimal_input_size'

The pragma defines the minimum size for inputs on the stack. For C++-compatibility with C++ compilers for 32-bit-systems, each input takes up at least 4 bytes on the stack.

Syntax: {attribute 'minimal_input_size'}

Insertion location: Line above the method declaration

Sample:

Declaration of a PLC function block method that implements a C++-compatible interface:

{attribute 'c++_compatible'}
{attribute 'minimal_input_size' := '4'}
{attribute 'pack_mode' := '4'}
METHOD Method1 : HRESULT
VAR_INPUT
    nParameter1 : INT; 
END_VAR

See also: