TYPE UDT 65535
	STRUCT
		VAR_INT	: INT := 42;
	END_STRUCT;
END_TYPE


FUNCTION FC 65535 : UDT 65535
BEGIN
	NOP	0
	BE
END_FUNCTION


FUNCTION_BLOCK FB 65535
BEGIN
	NOP	0
	BE
END_FUNCTION_BLOCK


DATA_BLOCK DB 65535
	FB 65535
BEGIN
END_DATA_BLOCK


ORGANIZATION_BLOCK OB 1
	VAR_TEMP
		RETVAL : UDT 65535;
	END_VAR;
BEGIN
	CALL FC 65535 ( RET_VAL := #RETVAL )
	CALL FB 65535, DB 65535

	CALL SFC 46 // STOP CPU
END_ORGANIZATION_BLOCK
