big-blocknum.awl 468 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. TYPE UDT 65535
  2. STRUCT
  3. VAR_INT : INT := 42;
  4. END_STRUCT;
  5. END_TYPE
  6. FUNCTION FC 65535 : UDT 65535
  7. BEGIN
  8. NOP 0
  9. BE
  10. END_FUNCTION
  11. FUNCTION_BLOCK FB 65535
  12. BEGIN
  13. NOP 0
  14. BE
  15. END_FUNCTION_BLOCK
  16. DATA_BLOCK DB 65535
  17. FB 65535
  18. BEGIN
  19. END_DATA_BLOCK
  20. ORGANIZATION_BLOCK OB 1
  21. VAR_TEMP
  22. RETVAL : UDT 65535;
  23. END_VAR;
  24. BEGIN
  25. CALL FC 65535 ( RET_VAL := #RETVAL )
  26. CALL FB 65535, DB 65535
  27. CALL SFC 46 // STOP CPU
  28. END_ORGANIZATION_BLOCK