startup_multiple.awl 576 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ORGANIZATION_BLOCK OB 100
  2. BEGIN
  3. L MD 0
  4. __ASSERT== __ACCU 1, 0
  5. L 100
  6. T MD 0
  7. END_ORGANIZATION_BLOCK
  8. ORGANIZATION_BLOCK OB 101
  9. BEGIN
  10. L MD 0
  11. __ASSERT== __ACCU 1, 0
  12. L 101
  13. T MD 0
  14. END_ORGANIZATION_BLOCK
  15. ORGANIZATION_BLOCK OB 102
  16. BEGIN
  17. L MD 0
  18. __ASSERT== __ACCU 1, 0
  19. L 102
  20. T MD 0
  21. END_ORGANIZATION_BLOCK
  22. ORGANIZATION_BLOCK OB 1
  23. BEGIN
  24. // assert 2-accus
  25. __FEATURE 0
  26. __ASSERT== __ACCU 1, 2
  27. // check that OB 100 was executed
  28. L MD 0
  29. __ASSERT== __ACCU 1, 100
  30. CALL SFC 46 // STOP CPU
  31. END_ORGANIZATION_BLOCK