Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
On/Off Flicker Example
   
Award
Favorite
Favorited
Unfavorite
Tags: v0.8.15
File Size
Posted
Updated
55.538 KB
21 Aug, 2019 @ 9:09am
21 Aug, 2019 @ 9:12am
2 Change Notes ( view )

Subscribe to download
On/Off Flicker Example

Description
For causing an input to flicker to an off state when secondary input is triggered.

Peripherals
Inputs
On/Off: Normal Operation
On/Off: Disruption
Outputs
On/Off: Output

How it works
Pseudo Code
If (in normal operation & there is no disruption)
Then: pass the normal operation straight to output

Else
If (in normal operation & there is a disruption)
Then: for pair of Delay blocks negate normal operation, then re-enable normal operation

Else
Do nothing

XOR Gates
An AND gate will output TRUE if both inputs are TRUE. An OR gate will output TRUE as long as at least one input is TRUE. An XOR gate will output TRUE as long as one, and only one, input is TRUE. Therefore, if both inputs are TRUE, then the output will be equal to FALSE.

Experimenting
Take out the NOT gate at the end of the XOR chain, and put a NOT gate right after normal operation (going into the final AND gate). I don't exactly know what operational use of doing this, but I want to address that the entire functionality can be nearly flipped by doing this.

Additional Example
I use a variation of the "Experimenting" example here. You can see the result in the driver seat located in the control room of this craft. The logic is tucked away in an adjacent wall.

Feel free to edit and re-upload your own variations