File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ CONFIGURATION DefaultCfg
5
5
TASK NewTask (INTERVAL := T#20ms);
6
6
PROGRAM Main WITH NewTask : PLC_PRG;
7
7
END_CONFIGURATION
8
- PROGRAM demo
8
+
9
+ PROGRAM demo
9
10
VAR_EXTERNAL
10
11
Start_Stop: BOOL;
11
12
END_VAR
@@ -18,7 +19,11 @@ END_CONFIGURATION
18
19
Start_Stop := TRUE;
19
20
END_IF
20
21
END_PROGRAM;
21
- /* Get a square of the circle */
22
+
23
+ FUNCTION_BLOCK PRIVATE MyName EXTENDS AnotherName
24
+
25
+ END_FUNCTION_BLOCK
26
+ /* Get a square of the circle */
22
27
FUNCTION csq : REAL
23
28
VAR_INPUT
24
29
r: REAL;
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ function hljsDefineIECST(hljs) {
22
22
keyword :
23
23
"if then end_if elsif else case of end_case " +
24
24
"to do by while repeat end_while end_repeat for end_for from " +
25
+ "private public protected " +
25
26
"or and not xor le ge eq ne ge lt constant return exit at retain non_retain task with until using extend" ,
26
27
title :
27
28
"program end_program function end_function function_block end_function_block configuration " +
You can’t perform that action at this time.
0 commit comments