fbname-usage-before-decl.awlpro 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <!-- Awlsim project file generated by awlsim-0.66.0-pre -->
  3. <awlsim_project date_create="2015-04-26 11:50:46.884405"
  4. date_modify="2018-07-08 18:00:09.727913"
  5. format_version="1">
  6. <!-- CPU core configuration -->
  7. <cpu>
  8. <!-- CPU core feature specification -->
  9. <specs call_stack_size="256"
  10. nr_accus="2"
  11. nr_counters="256"
  12. nr_flags="2048"
  13. nr_inputs="128"
  14. nr_localbytes="1024"
  15. nr_outputs="128"
  16. nr_timers="256"
  17. parenthesis_stack_size="7" />
  18. <!-- CPU core configuration -->
  19. <config clock_memory_byte="-1"
  20. cycle_time_limit_us="1000000"
  21. ext_insns_enable="0"
  22. mnemonics="0"
  23. ob_startinfo_enable="0"
  24. run_time_limit_us="-1" />
  25. </cpu>
  26. <!-- AWL/STL language configuration -->
  27. <language_awl>
  28. <!-- AWL/STL source code -->
  29. <source enabled="1"
  30. name="OB1"
  31. type="0"><![CDATA[
  32. // Bug: The DB source is in the hierarchy _before_
  33. // the FB source. However, the DB declaration
  34. // references the FB (it is an instance DB).
  35. // This caused errors in translation of the DBs.
  36. // Fix: Deferred translation.
  37. ORGANIZATION_BLOCK OB 1
  38. BEGIN
  39. CALL "test_fb", DB 1
  40. CALL FB 2, DB 2
  41. CALL SFC 46 // STOP CPU
  42. END_ORGANIZATION_BLOCK
  43. ]]></source>
  44. <!-- AWL/STL source code -->
  45. <source enabled="1"
  46. name="DB"
  47. type="0"><![CDATA[
  48. DATA_BLOCK DB 1
  49. "test_fb"
  50. BEGIN
  51. END_DATA_BLOCK
  52. DATA_BLOCK DB 2
  53. FB 2
  54. BEGIN
  55. END_DATA_BLOCK
  56. ]]></source>
  57. <!-- AWL/STL source code -->
  58. <source enabled="1"
  59. name="FB"
  60. type="0"><![CDATA[
  61. FUNCTION_BLOCK "test_fb"
  62. VAR
  63. v : BOOL;
  64. END_VAR
  65. BEGIN
  66. BE
  67. END_FUNCTION_BLOCK
  68. FUNCTION_BLOCK FB 2
  69. VAR
  70. v : BOOL;
  71. END_VAR
  72. BEGIN
  73. BE
  74. END_FUNCTION_BLOCK
  75. ]]></source>
  76. </language_awl>
  77. <!-- Symbol table configuration -->
  78. <symbols>
  79. <!-- symbol table source code -->
  80. <source enabled="1"
  81. name="Symbol table"
  82. type="3"><![CDATA[
  83. 126,test_fb FB 1 FB 1
  84. ]]></source>
  85. </symbols>
  86. <!-- Core server link configuration -->
  87. <core_link>
  88. <!-- Locally spawned core server -->
  89. <spawn_local enable="1"
  90. interpreters="$DEFAULT"
  91. port_range_begin="4183"
  92. port_range_end="8278" />
  93. <!-- Remote server connection -->
  94. <connect host="localhost"
  95. port="4151"
  96. timeout_ms="3000" />
  97. <!-- Transport tunnel -->
  98. <tunnel local_port="-1"
  99. type="0">
  100. <ssh executable="ssh"
  101. port="22"
  102. user="pi" />
  103. </tunnel>
  104. </core_link>
  105. <!-- Graphical user interface configuration -->
  106. <gui>
  107. <editor autoindent="1"
  108. paste_autoindent="1"
  109. validation="1" />
  110. </gui>
  111. </awlsim_project>