File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11control ShowcaseController {
2- var presenceSensor: BOOL;
3- var roomOccupancy: INT = 0;
4- unit CountPersonEntering once when (presenceSensor) {
5- roomOccupancy = roomOccupancy + 1;
2+ enum OpMode {
3+ Auto,
4+ Manual,
5+ Off
6+ }
7+ struct RoomStatus {
8+ currentMode: OpMode = OpMode.Auto,
9+ temperature: REAL,
10+ isOccupied: BOOL
11+ }
12+ unit LightingControl {
13+ var currentMode: OpMode = OpMode.;
14+ if (MotionSensor.) {
15+ // Turn on lights...
16+ }
617 }
718}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ controller ShowcaseController {
3333 channels: 4
3434 }
3535
36- portgroup TwoDigitalInputs {
36+ portgroup Room1DigitalInputs {
3737 module: Zwei_Kanal_Digital_Eingang_Modul
3838 ioType: DIGITAL_INPUT
3939 channels: 2
@@ -50,7 +50,14 @@ controller ShowcaseController {
5050 ioType: ANALOG_OUTPUT
5151 channels: 4
5252 }
53- }
53+
54+ datapoint MotionSensor {
55+ portgroup: Room1DigitalInputs
56+ channels: {
57+ channel Value: BOOL link "Channel 1^Input"
58+ }
59+ }
60+ }
5461
5562network {
5663 hostname: "CX-301714"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export class BCSControlLangCompletionProvider extends DefaultCompletionProvider
2121 ) : MaybePromise < void > {
2222 const node = context . node ;
2323
24- if ( next . property === "property " && isRef ( node ) ) {
24+ if ( next . property === "properties " && isRef ( node ) ) {
2525 const namedElement = node . ref . ref ;
2626
2727 if ( isDatapoint ( namedElement ) ) {
You can’t perform that action at this time.
0 commit comments