-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
33 lines (20 loc) · 825 Bytes
/
README
File metadata and controls
33 lines (20 loc) · 825 Bytes
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
Creating new project:
For example, if you would like to create project with name "foo"
located in subdirectory foo of your home type:
tmp]# mkplc.sh --create fooo --target-dir ~/foo
If your project consist from source file foo.plc, you must add it
to makefile, so edit file ~/foo/Makefile. Find this line in original
Makefile:
# FILES=deps/filename.plc
and change it to:
FILE=deps/foo.plc
Now create source file foo.plc with PLC program in instruction list.
When you would like compile it, simple type:
foo]# make
In subdirectory sources you can find file named plc_foo.o, which
represents Software PLC as kernel module. If you have already started
RT-Linux modules and selected Software PLC drivers, you can start
software PLC by typing:
foo]# make start
If you want stop PLC, type:
foo]# make stop