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