@tsplc/build 0.2.16 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +628 -352
- package/dist/cli.js.map +30 -28
- package/dist/index.js +548 -387
- package/dist/index.js.map +27 -25
- package/dist/libraries.js +68 -27
- package/dist/libraries.js.map +3 -3
- package/docker/Dockerfile +2 -0
- package/docker/Dockerfile.dockerignore +4 -1
- package/docker/Dockerfile.source +3 -0
- package/docker/config.ts +10 -5
- package/docker/runner.ts +140 -127
- package/package.json +54 -53
- package/python/build.py +183 -124
- package/python/codesys_online.py +44 -45
- package/python/hardware.py +9 -9
- package/python/test_build.py +3 -3
- package/python/test_codesys_online.py +18 -12
- package/python/test_installer_packages.py +1 -0
- package/python/worker.py +11 -7
- package/src/artifacts.ts +82 -60
- package/src/build.ts +71 -62
- package/src/cli.ts +109 -100
- package/src/controller-online.ts +400 -425
- package/src/controller-protocol.ts +140 -0
- package/src/controller-session.ts +466 -397
- package/src/device-tree.ts +19 -15
- package/src/diagnostics.ts +59 -49
- package/src/docker-build.ts +217 -156
- package/src/docker-context.ts +49 -27
- package/src/docker-run.ts +137 -111
- package/src/engineering-settings.ts +42 -0
- package/src/host/codesys-command.ts +35 -34
- package/src/host/codesys-host.ts +157 -129
- package/src/host/codesys-worker.ts +318 -301
- package/src/host/windows-path.ts +63 -59
- package/src/import-request.ts +24 -0
- package/src/index.ts +37 -31
- package/src/io.ts +152 -116
- package/src/libraries.ts +214 -146
- package/src/package-path.ts +3 -1
- package/src/run.ts +132 -108
- package/src/runtime-status.ts +25 -19
- package/src/sources.ts +264 -225
- package/src/st/declarations.ts +181 -193
- package/src/st/lexer.ts +102 -118
- package/src/st/parse.ts +193 -171
- package/src/st/reader.ts +47 -42
- package/src/__tests__/fixtures/xml/fb-simple.xml +0 -40
- package/src/__tests__/fixtures/xml/fb-state-machine.xml +0 -86
- package/src/__tests__/fixtures/xml/prg-cyclic.xml +0 -44
- package/src/config.ts +0 -12
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<project xmlns="http://www.plcopen.org/xml/tc6_0200" xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
|
3
|
-
<fileHeader companyName="" productName="CODESYS" productVersion="CODESYS V3.5 SP21" creationDateTime="<NORMALIZED>" />
|
|
4
|
-
<contentHeader name="PRG_Main" modificationDateTime="<NORMALIZED>">
|
|
5
|
-
<coordinateInfo>
|
|
6
|
-
<fbd><scaling x="1" y="1" /></fbd>
|
|
7
|
-
<ld><scaling x="1" y="1" /></ld>
|
|
8
|
-
<sfc><scaling x="1" y="1" /></sfc>
|
|
9
|
-
</coordinateInfo>
|
|
10
|
-
</contentHeader>
|
|
11
|
-
<types>
|
|
12
|
-
<dataTypes />
|
|
13
|
-
<pous>
|
|
14
|
-
<pou name="PRG_Main" pouType="program">
|
|
15
|
-
<interface>
|
|
16
|
-
<localVars>
|
|
17
|
-
<variable name="fbWorker">
|
|
18
|
-
<type><derived name="FB_StateMachine" /></type>
|
|
19
|
-
<documentation><xhtml xmlns="http://www.w3.org/1999/xhtml">Cycle worker</xhtml></documentation>
|
|
20
|
-
</variable>
|
|
21
|
-
<variable name="bStart">
|
|
22
|
-
<type><BOOL /></type>
|
|
23
|
-
<documentation><xhtml xmlns="http://www.w3.org/1999/xhtml">Operator start button</xhtml></documentation>
|
|
24
|
-
</variable>
|
|
25
|
-
</localVars>
|
|
26
|
-
</interface>
|
|
27
|
-
<body>
|
|
28
|
-
<ST>
|
|
29
|
-
<xhtml xmlns="http://www.w3.org/1999/xhtml"><![CDATA[fbWorker(
|
|
30
|
-
bExecute := bStart,
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
IF fbWorker.bDone THEN
|
|
34
|
-
bStart := FALSE;
|
|
35
|
-
END_IF]]></xhtml>
|
|
36
|
-
</ST>
|
|
37
|
-
</body>
|
|
38
|
-
</pou>
|
|
39
|
-
</pous>
|
|
40
|
-
</types>
|
|
41
|
-
<instances>
|
|
42
|
-
<configurations />
|
|
43
|
-
</instances>
|
|
44
|
-
</project>
|
package/src/config.ts
DELETED