pyprofibus.awl 399 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. ORGANIZATION_BLOCK OB 100
  2. BEGIN
  3. L 0
  4. T MW 0
  5. T AB 8
  6. END_ORGANIZATION_BLOCK
  7. ORGANIZATION_BLOCK OB 1
  8. BEGIN
  9. L MW 0
  10. L W#16#1000
  11. ==I
  12. SPB STOP
  13. L MB 1
  14. L W#16#FF
  15. <>I
  16. SPB END
  17. L EB 8
  18. L AB 8
  19. XOW W#16#FF
  20. __ASSERT== __ACCU 1, __ACCU 2
  21. END: L MW 0
  22. + 1
  23. T MW 0
  24. L MB 0
  25. T AB 8
  26. BEA
  27. STOP: CALL SFC 46 // STOP CPU
  28. END_ORGANIZATION_BLOCK