Wiring Components

From Official Barotrauma Wiki
(Redirected from Exponentiation Component)
Jump to: navigation, search


Wiring Components
Wiring Components.png
Stats
Type Electrical Component
Item Cost 90-125 Marks
Crafting
Fabricator Skill Electrical Engineering 20
Crafting Time 10
Fabricator Materials FPGA Circuit.pngFPGA Circuit

Tin.pngTin

Deconstructing Time 10
Deconstructor Materials FPGA Circuit.pngFPGA Circuit

Tin.pngTin


Wiring Components are craftable, placeable items used to automate certain tasks or provide information about various submarine systems.

Controls

  • In-game, Wiring Components can be placed on background walls by "equipping" them in one hand, holding Rightright click, then Leftleft clicking on any empty space on the background wall's grid.
    • Placed Wiring Components can be detached from the wall by making sure a Screwdriver is not equipped, equipping a Wrench, and pressing E.
    • Accessing the component's connection panel is done by equipping a Screwdriver and pressing E.
    • For more details on wiring mechanics, see Wiring Interface.
  • In the Submarine Editor, Wiring Mode is enabled by clicking the corresponding button to the top-right or pressing Control+2.
    • From there, the same commands as in-game apply, although the Editor allows access to all components and wires, as well as many other customization features.
    • For more details, see Wiring Mode.

Logic

And Component.png And Component

"Sends a signal when both inputs receive a signal within a set period of each other."

The And Component is an electrical component used to check if both inputs are receiving a signal.


Connection panel for And Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In_1
Connection Port.png
Signal_In_2
Connection Port.png
Set_Output
The input of the first signal.
The input of the second signal.
Sets the "true" output.
Signal_Out
Connection Port.png
The output of the component.


"1" denotes any input, "0" denotes a blank or zero input

Truth Table
Input 1 Input 2 Output
0 0 0
0 1 0
1 0 0
1 1 1

Equals Component.png Equals Component

"Sends a signal when both inputs receive the same signal."

The Equals Component is an electrical component used to check if both inputs are the same.


Connection panel for Equals Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In_1
Connection Port.png
Signal_In_2
The input of the first signal.
The input of the second signal.
Signal_Out
Connection Port.png
The output of the component.


Greater Component.png Greater Component

"Sends a signal if the value the signal_in1 input is larger than the signal_in2 input."

The Greater Component is an electrical component used to check if one input is higher than the other.


Connection panel for Greater Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In_1
Connection Port.png
Signal_In_2
The input of the first signal.
The input of the second signal.
Signal_Out
Connection Port.png
The output of the component.


Not Component.png Not Component

"Sends a signal when the input is NOT receiving a signal."

The Not Component is an electrical component used to invert a signal.


Connection panel for Not Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In
The input signal.
Signal_Out
Connection Port.png
The output of the component.


"1" denotes any input, "0" denotes a blank or zero input

Truth Table
Input Output
0 1
1 0

Or Component.png Or Component

"Sends a signal if either of the inputs receives a signal."

The Or Component is an electrical component used to check if any input is receiving a signal unequal to 0.


Connection panel for Or Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In_1
Connection Port.png
Signal_In_2
Connection Port.png
Set_Output
The input of the first signal.
The input of the second signal.
Sets the "true" output.
Signal_Out
Connection Port.png
The output of the component.


"1" denotes any input, "0" denotes a blank or zero input

Truth Table
Input 1 Input 2 Output
0 0 0
0 1 1
1 0 1
1 1 1

RegEx Component.png RegEx Find Component

"Sends a signal if the received signal matches a specific regular expression pattern."

The RegEx Find Component is an electrical component used to match an exact string.

It is most commonly used with a Terminal.

Click here for a tutorial on regular expressions. Click here to create/test regular expressions.


Connection panel for RegEx Find Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In
The input signal.
Signal_Out
Connection Port.png
The output of the component.


Signal Check Component.png Signal Check Component

"Sends a signal when a signal matching a specific value is received."

The Signal Check Component is an electrical component used to check if the received signal matches a target signal.

Operates like an IF-THEN-ELSE statement, if the signal input matches the target the output is sent. Otherwise the false output is sent.

  • It is important to note that only the true output can be changed externally using SET_OUTPUT.

This is typically used to switch between an normal state and an override state.


Connection panel for Signal Check Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In
Connection Port.png
Set_Output
Connection Port.png
Set_Targetsignal
The input signal.
Sets the "true" output.
Sets the signal that must be matched to. (Optional, can be set in editor)
Signal_Out
Connection Port.png
The output of the component.


Xor Component.png Xor Component

"Sends a signal if either of the inputs, but not both, receives a signal."

The Xor Component is an electrical component used to check if only one input is receiving a signal unequal to 0.


Connection panel for Xor Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In_1
Connection Port.png
Signal_In_2
Connection Port.png
Set_Output
The input of the first signal.
The input of the second signal.
Sets the "true" output.
Signal_Out
Connection Port.png
The output of the component.


"1" denotes any input, "0" denotes a blank or zero input

Truth Table
Input 1 Input 2 Output
0 0 0
0 1 1
1 0 1
1 1 0

Math

Abs Component.png Abs Component

"Outputs the absolute value of the input."

Adder Component.png Adder Component

"Outputs the sum of the received signals."

Ceil Component.png Ceil Component

"Transforms a given float input into the closest integer, rounding up."

Divide Component.png Divide Component

"Outputs the divided value of the received signals."

Exponentiation Component.png Exponentiation Component

"Outputs the input raised to a given power."

Factorial Component.png Factorial Component

"Outputs the factorial of the input."

Floor Component.png Floor Component

"Transforms a given float input into the closest integer, rounding down."

Modulo Component.png Modulo Component

"Outputs the remainder when the input is divided by a specific number."

Multiply Component.png Multiply Component

"Outputs the product of the received signals."

Round Component.png Round Component

"Rounds a numerical input to the nearest integer value."

Square Root Component.png Square Root Component

"Outputs the square root of the input."

Subtract Component.png Subtract Component

"Outputs the subtracted value of the received signals."

Trigonometry

Acos Component.png Acos Component

"Outputs the angle whose cosine is equal to the input."

The Acos Component is an electrical component that performs the inverse cosine function; cos-1(x).


Connection panel for Acos Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In
The input signal.
Signal_Out
Connection Port.png
The output of the component.


Asin Component.png Asin Component

"Outputs the angle whose sine is equal to the input."

The Asin Component is an electrical component that performs the inverse sine function; sin-1(x).


Connection panel for Asin Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In
The input signal.
Signal_Out
Connection Port.png
The output of the component.


Atan Component.png Atan Component

"Outputs the angle whose tangent is equal to the input. If the "signal_in_x" and "signal_in_y" connections are used, the input is interpreted as a vector and the angle calculated using Atan2."

The Atan Component is an electrical component that performs the inverse tan function; tan-1(x).


Connection panel for Atan Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In
Connection Port.png
Signal_In_X
Connection Port.png
Signal_In_Y
The input signal.
The input of the X signal.
The input of the Y signal.
Signal_Out
Connection Port.png
The output of the component.


Cos Component.png Cos Component

"Outputs the cosine of the input."

The Cos Component is an electrical component that performs the cosine function; cos(x).


Connection panel for Cos Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In
The input signal.
Signal_Out
Connection Port.png
The output of the component.


Sin Component.png Sin Component

"Outputs the sine of the input."

The Sin Component is an electrical component that performs the sine function; sin(x).


Connection panel for Sin Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In
The input signal.
Signal_Out
Connection Port.png
The output of the component.


Tan Component.png Tan Component

"Outputs the tangent of the input."

The Tan Component is an electrical component that performs the tangent function; tan(x).


Connection panel for Tan Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In
The input signal.
Signal_Out
Connection Port.png
The output of the component.


Misc

Color Component.png Color Component

"Outputs a combined color signal for light control."

The Color Component is an electrical component used to provide a color signal for lamps/lights.

It is most commonly used in tandem with Light Components for easily changeable lighting.


Connection panel for Color Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_R
Connection Port.png
Signal_G
Connection Port.png
Signal_B
Connection Port.png
Signal_A
The brightness of the red channel.
The brightness of the green channel.
The brightness of the blue channel.
The transparency of the alpha channel.
Signal_Out
Connection Port.png
The combined color signal.


Concatenation Component.png Concatenation Component

"``Joins the inputs together and outputs the joined value (for example, the inputs "mud" and "raptor" would output "mudraptor")."``

Connection panel for Concatenation Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In_1
Connection Port.png
Signal_In_2
Input of the first signal.
Input of the second signal.
Signal_Out
Connection Port.png
The joined value.



Delay Component.png Delay Component

"Delays all received signals for a specific amount of time."

The Delay Component is an electrical component used to delay a signal for a short amount of time.

It is most commonly used in tandem with Terminals for custom commands.


Connection panel for Delay Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In
The signal to be delayed.
Signal_Out
Connection Port.png
The delayed signal.


Memory Component.png Memory Component

"Outputs a stored value that can be updated from other sources. Use the signal_in connection to set the stored value, and the lock_state input to toggle whether the received signals should be stored."

The Memory Component is an electrical component used to store signals for later use.


Connection panel for Memory Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In
Connection Port.png
LOCK_STATE
The signal to be stored
Sets whether signals will be stored (1=yes, 0=no)
Signal_Out
Connection Port.png
The currently stored signal


Oscillator Component.png Oscillator Component

"Sends out a periodic, oscillating signal."

The Oscillator is an electrical component used to provide a signal that changes over time.

  • Frequency is in hertz (Hz), 1 Hz is once per second, 0.5 Hz is once every 2 seconds and so on.

The output type may be set on the component directly or by sending a 0,1, or 2 signal.

  • 0 = Pulse, a 1 signal is sent every cycle.
  • 1 = Sine, a smooth series of numbers from -1 to 1 will be sent that cycles as fast as the frequency.
  • 2 = Square, switches between 0 and 1 every time a cycle is completed. (Half the time is 0, Half the time is 1)

It is most commonly used in tandem with a Subtract Component for timers, countdowns, or making automatic searchlights.


Connection panel for Oscillator Component
Hover over pins to see their descriptions.
Connection Port.png
Set_Frequency
Connection Port.png
Set_Outputtype
Sets the frequency of the oscillator, in Hz (Hertz).
Sets the output type of the oscillator (0=pulse, 1=sine, 2=square).
Signal_Out
Connection Port.png
The output of the component.


Relay Component.png Relay Component

"When switched on, forwards all received signals from the input connections to the outputs."

The Relay Component is an electrical component used to disconnect power or signals from a circuit.

In-game, a relay may only pass a maximum of 1000 kW however in the Submarine Editor this can be adjusted.

It is most commonly used for providing toggleable power to lights or duplicating signals.


Connection panel for Relay Component
Hover over pins to see their descriptions.
Connection Port.png
Power_In
Connection Port.png
Signal_In_1
Connection Port.png
Signal_In_2
Connection Port.png
Toggle_State
Connection Port.png
Set_State
Power input from a power network.
The input of the first signal.
The input of the second signal.
Toggles the state on any signal.
Sets the state of the Relay. (0 = Off, all other signals = On)
Power_Out
Connection Port.png
Signal_Out_1
Connection Port.png
Signal_Out_2
Connection Port.png
State_Out
Connection Port.png
Power output to a power network.
The output of the first signal.
The output of the second signal.
The current state of the relay.


Wifi Component.png Wifi Component

"Allows remote communication between other wifi components that are using the same channel."

The Wifi Component is an electrical component used to transfer signals over long distances.

It can also output into text radio chat.


Connection panel for Wifi Component
Hover over pins to see their descriptions.
Connection Port.png
Signal_In
Connection Port.png
Set_Channel
The signal to be transmitted.
Sets the current wifi channel.
Signal_Out
Connection Port.png
The recieved signal.


Electrical
Alarms
Detectors
Interactable
Wiring Components
Misc