LC-01 Operations Manual
The LANBox Instrument DivisionLC-01

Lost Constraints / Workshop Equipment

Logic CoreOperations Manual

Front-right view of the Logic Core, showing the raised X ribs, front display, INFO and EDIT keys, and two recessed connectors at the right.
Fig. 0. Logic Core chassis
THE LANBOXAtoll Motor Pool
First Issue
Logic CorePublication LC-01

Contents

LC-0102
Logic CoreSection 1 · Operating instructions

1. Operating the Core

1.1 Controls and fittings

Find the Logic Core under Q → Props → Devices. With the physgun equipped, step within reach and click a front key to use it.

Logic Core viewed from the front and right, with its display, two keys, side connectors, lid ribs and cover plate identified below.
Fig. 1.1. Logic Core with Parking aid installed.
1. Display
PROGRAM shows the installed program’s name or No program. NAMED PORTS counts the available inputs and outputs, wired or not.
2. INFO
The grey key switches between the two display modes. It doesn’t interrupt the program.
3. EDIT
The amber key opens the program editor. You can also aim at the case and press E (Use by default).
4. Connectors
The sockets are case details. Aim Link at the Core itself to make a connection. No power connection is needed.
5. Lid ribs
The raised X makes the Core easy to spot from above.
6. Cover plate
The four-screw plate is fixed to the lid and doesn’t open.
LC-0103
Logic CoreSection 1 · Operating instructions

1.2 Signals, ports and graphs

A signal is a value passed between devices. A Button sends On or Off; a Rangefinder can send a distance in metres. A port is a named connection on a device. An output sends a value and an input receives one.

Link connects devices in the workshop. Run a Link wire from a Button’s Pressed output to a Work light’s Power input and the button controls the light directly. You don’t need a Core for that.

Add a Core when the connection needs a rule. In Fig. 1.2 the button still sends On or Off, but the Core waits for two seconds of On before it switches the lamp on.

A Button connects by Link to a Core’s Button input. Inside the program, the Input passes through a two-second Delay to the Lamp output. A second Link wire connects Lamp to the Work light’s Power input. LOGIC CORE PROGRAM ButtonPressed InputButton Delay2 s OutputLamp Work lightPower
Fig. 1.2. Dashed lines are Link wires; solid lines connect nodes in the editor.

In the editor, a node is a block that performs an operation. Its connections are called pins. The nodes and the wires between their pins form the program’s graph. In this example the Delay node receives the switch value and returns the lamp command.

Input and Output nodes give the Core named workshop ports. Here the Input node brings in the button signal; the Output node sends the lamp command. Click Apply to install the program and make its ports available. To load this example, use the Hold to light card.

LC-0104
Logic CoreSection 1 · Operating instructions

1.3 First light

Set out one Logic Core, one Button and one Work light from Props → Devices. For this test, the Core will pass the button signal through unchanged. Leave the devices loose; Link wires carry values and don’t attach parts.

  1. Aim at the Core and press E to open the editor. Drag in an Input and an Output. Select each node and set its Port name to Button or Lamp, respectively. Leave both set to Boolean so they carry On and Off.
  2. Drag a graph wire from the right-hand jack of the Button node to the Lamp node’s Value pin. Click Apply and close the editor.
  3. Equip Q → Tools → Connections → Link. Aim at the Button prop, scroll to Pressed and click. Aim at the Core, scroll to its Button input and click again. Repeat from the Core’s Lamp output to the Work light’s Power input.
  4. Aim at the Button prop and press E. In Toggle mode, each press changes the lamp’s state. For a light that only stays on while held, turn the Button off, open Tune (T by default), choose Momentary and apply.

For a second test, put a NOT node between the Input and Output, then click Apply. The lamp should now be on when the Button is off. The two Link wires stay where they are.

LC-0105
Logic CoreSection 1 · Operating instructions

1.4 Working the graph

Drag a node from the palette on the left. Use the search field if you know its name. To move a node that’s already on the canvas, drag its name or the narrow grip at the top. Click a node to edit its settings in the inspector on the right.

Drag from a node’s output jack to a highlighted input jack, or click them in that order. Drop onto empty canvas to cancel. To remove a graph wire, right-click the input that receives it.

Left-drag empty canvas to pan and scroll to zoom. The controls at the bottom right include Fit graph, which fits the whole program on screen.

The Parking aid program in the game editor, with the node palette at left, the graph at centre and the selected Distance Input inspector at right.
Fig. 1.3. Parking aid in the editor. Open the image to see the full-size graph.

Outside the editor, Link lets you pick either port first. Scroll or use the arrow keys to select a port. Right-click to cancel a pick. With no pick in progress, right-click the highlighted input to remove its Link wire.

LC-0106
Logic CoreSection 1 · Operating instructions

1.5 Signal types

Boolean
On or Off. Literal fields also accept 1 and 0. Available both in the graph and in Link.
Number
Floating-point values such as -2.5. The graph uses double precision; Link wires use single precision. A Number has no unit of its own. The device determines whether it means metres, degrees or something else.
Integer
Exact signed 64-bit whole numbers, from -9223372036854775808 to 9223372036854775807. Integer pins are available inside the graph only.
Missing
— means there is no value. It differs from zero and Off. For example, a Rangefinder with no target sends — on Distance and Off on Hit.

Wire pins of the same type. The editor doesn’t convert values between types; changing a node’s type clears its graph wires and pin defaults. An unwired input pin uses the default you enter in the inspector. Leave that field blank if you want a missing value. A wired pin uses the value on the wire, even when it is missing. Use Fallback if you need to replace it.

A program can have up to 96 nodes and 24 named ports total. Older Switch and Angle ports keep their wires and open as Boolean and Number ports, respectively. The Pilot dock’s Mouse aim output cannot connect to a Core; its mouse-button outputs can.

1.6 Ticks and memory

The game advances its physics simulation in fixed steps called ticks. Each tick, the Core reads its inputs and runs the graph in dependency order before it updates its outputs. A Link wire from another Core reads the output it produced on the previous tick.

When you feed a result back into the graph that calculates it, put a Register in the loop. It supplies a stored value for this tick and saves the new value for the next one.

LC-0107
Logic CoreSection 1 · Operating instructions

1.7 Draft, run and store

The editor works on a draft. You can change, save or load it while the installed program keeps running.

Apply
Install the draft and make its ports available to Link. Renaming a port keeps its existing wires. If you’re replacing a wired port, use Retain wire from on a compatible node before you apply.
Pause / Resume
Pause stops this Core and makes its outputs inactive. Other Cores keep running. Resume continues with the same memory and timers. Applying an edit while paused doesn’t resume it.
Save
Save the draft to My Programs on your machine, even in someone else’s workshop. If you loaded it from a file, Save updates that file. Choose Save as a copy to keep the old file.
Load / Import
Open a starter, saved or shared program as a draft. The editor matches existing ports by name, direction and type. Applying that draft starts the program with fresh memory.
Share
Export the current draft, or share a selected program from Load. Copy image and Save PNG use the same program card. Copy code produces a text code starting with LCP1:.

A program file includes the nodes, their settings and layout, graph wires and port names. To keep the physical build and its Link wires, save it as a blueprint. World saves remember whether a Core was paused; program files and blueprints don’t. Reloading the world starts the program’s memory fresh.

LC-0108
Logic CoreSection 1 · Operating instructions

1.8 Fault finding

Port absent
Click Apply, then aim Link at the Core. If you can see the port before picking a wire but not after, check the direction and type of both ends.
Value shows —
Follow the wires back to the source. If it’s a sensor, connect the sensor directly to a Dashboard screen to check the reading before it reaches the Core.
Feedback refused
Put a Register in the loop so the result comes back on the following tick. An Edge or Delay cannot break the loop.
Output inactive
Check whether the program is paused and whether the receiving device is wired to the right output. A Dashboard screen on the same port can show whether the Core is sending a value.
PNG rejected
Try the original program PNG. A screenshot, crop or resized copy can lose the program. Import a program card through Load → Import in the Core editor. Use the Blueprint menu for a build card.
LC-0109
Logic CoreSection 2 · Node reference

2. Node reference

These are the groups you’ll find in the editor’s node palette. Each sheet lists the node’s connections and gives a test you can run in the workshop.

LC-0110
Logic CoreSection 2 · Ports

2.01 Input

Read a workshop signal into the graph.

ConnectionType
No input pins—
ResultBoolean / Number
Fig. 2.01. Pinout

Operation

Set Port name and choose Boolean or Number for Type. Click Apply to make the new port available to Link. Inside the graph, the node’s right-hand jack passes on the value from that port. You can wire it to more than one node.

If there’s no Link wire or the device on that wire has no reading, Input returns —. Input has no default field; use Fallback after it to supply a value. A Link wire from another Core carries the value that Core produced on its previous tick.

Renaming a port keeps its Link wire. Two inputs can’t share a name, even if the capitalisation differs.

Bench check

Apply a Boolean Input called Button and link a Button’s Pressed output to it. In Momentary mode, the input reads Off when released and On while held. Disconnect the Link wire and it reads —.

LC-0111
Logic CoreSection 2 · Ports

2.02 Output

Make a graph value available to other devices.

ConnectionType
ValueBoolean / Number
ResultNamed Link port
Fig. 2.02. Pinout

Operation

Set Port name and choose Boolean or Number for Type, then click Apply. The new port sends whatever reaches the node’s Value pin. The Output node has no right-hand jack. To use the value elsewhere in the graph, run a second wire from the node that produced it.

If Value is unwired, the port sends the default in the inspector. If the wire carries —, the port sends a missing value. Pausing the Core also makes its outputs unavailable. How a missing value affects the build depends on the device receiving it.

Only one Output node can write to a port. Two outputs can’t share a name, even if the capitalisation differs. Renaming a port keeps its Link wires.

Bench check

Create a Boolean Output called Lamp with no graph wire and a Value default of On. Apply and link Lamp to a Work light’s Power. Change Value to Off and apply again to switch the lamp off.

LC-0112
Logic CoreSection 2 · Values

2.03 Constant

Send a fixed value.

ConnectionType
No input pins—
ResultBoolean / Number / Integer
Fig. 2.03. Pinout

Operation

Choose a Type and enter a Value. Boolean accepts On, Off, 1 or 0. Use a whole number for Integer; Number also accepts decimals. A new Constant is Boolean Off. Changing its type resets Value to Off or 0.

Leave Value blank or enter — to produce a missing value. Use a named Constant for a setting shared by several nodes. For a value used by one unwired pin, you can enter it as that pin’s default.

Bench check

Make a Number Constant named Bay clearance with Value 2.5. Wire it to the B pin of two Number Compare nodes to give two sensors the same threshold.

LC-0113
Logic CoreSection 2 · Values

2.04 Fallback

Substitute a value when the main input is missing.

ConnectionType
ValueSelected type
DefaultSelected type
ResultBoolean / Number / Integer
Fig. 2.04. Pinout

Operation

Choose one Type for both pins and the result. Fallback returns Value when it’s present and Default otherwise. Wire a second reading into Default or enter a fixed value for that pin. If both inputs are missing, the result is missing.

Zero and Off pass through unchanged. Use Fallback when a connected wire can carry —; a pin’s own default is only used while it’s unwired.

Bench check

A Rangefinder's Distance can be missing. With a Number Fallback, set Default to 100 to display 100 m on a miss, and keep Hit alongside it so the operator can tell a substitute from a measured distance.

LC-0114
Logic CoreSection 2 · Math

2.05 Add

Add A and B.

ConnectionType
ASelected numeric type
BSelected numeric type
ResultNumber / Integer
Fig. 2.05. Pinout

Operation

The result is A + B. Choose Number for fractional readings or Integer for exact whole-number sums. Both inputs and the result use that type.

A missing operand, an Integer overflow or a non-finite Number result gives —. An Integer sum does not wrap at the end of its range.

Bench check

For a Number correction of half a metre, wire the measurement into A and type 0.5 into unwired B. A reading of 2.25 becomes 2.75.

LC-0115
Logic CoreSection 2 · Math

2.06 Subtract

Take B away from A.

ConnectionType
ASelected numeric type
BSelected numeric type
ResultNumber / Integer
Fig. 2.06. Pinout

Operation

The result is A − B. Choose Number or Integer for both pins and the result. Negative differences are valid.

A missing operand, an Integer overflow or a non-finite Number result gives —. Follow Subtract with Clamp if the receiving device needs a value within set limits.

Bench check

On a lift, put the requested height on A and measured height on B. A target of 4 with a reading of 5.5 leaves −1.5: you're above the mark.

LC-0116
Logic CoreSection 2 · Math

2.07 Multiply

Multiply A by B.

ConnectionType
ASelected numeric type
BSelected numeric type
ResultNumber / Integer
Fig. 2.07. Pinout

Operation

The result is A × B. Choose Number or Integer for both inputs and the result. Multiply by -1 to reverse the sign of a value.

A missing operand gives — even if the other is zero. Integer overflow and non-finite Number products also give —.

Bench check

Scale a Number command by setting B to 0.5. A request of 40 becomes 20. Set B to -0.5 for −20.

LC-0117
Logic CoreSection 2 · Math

2.08 Divide

Divide A by B.

ConnectionType
ASelected numeric type
BSelected numeric type
ResultNumber / Integer
Fig. 2.08. Pinout

Operation

A is the numerator and B the divisor. Number keeps the fractional part. Integer division truncates towards zero, so −7 ÷ 2 gives −3 as Integer and −3.5 as Number.

A zero divisor, a missing operand, an Integer overflow or a non-finite Number result gives —. The smallest Integer divided by -1 is an overflow.

Bench check

To turn a Number travel reading of 75 percent into a fraction, set B to 100. The result is 0.75.

LC-0118
Logic CoreSection 2 · Math

2.09 Clamp

Keep a number between two stops.

ConnectionType
ValueSelected numeric type
MinSelected numeric type
MaxSelected numeric type
ResultNumber / Integer
Fig. 2.09. Pinout

Operation

Choose Number or Integer for all three pins and the result. If Value is below Min, Clamp returns Min. If it’s above Max, it returns Max. A value within the limits passes through unchanged.

You can wire Min and Max or set them as pin defaults. Equal limits give that one value whenever all inputs are present. Min above Max, or a missing input, gives —.

Bench check

Set Min to -30 and Max to 30 on a Number Clamp. A request of 12 passes through; 65 becomes 30; −45 becomes −30.

LC-0119
Logic CoreSection 2 · Decisions

2.10 Compare

Test A against B.

ConnectionType
ASelected type
BSelected type
ResultBoolean
Fig. 2.10. Pinout

Operation

Choose a Type for both operands and an Operator: <, ≤, =, ≠, ≥ or >. The order is A then B. The default is a Number comparison of A < B.

The result is On when the comparison is true and Off when it’s false. If either value is missing, the result is —, even with ≠. Integer compares exact whole values. Number equality uses no tolerance, so use a range or threshold when readings fluctuate. For Boolean comparisons, Off is less than On.

Bench check

Wire a distance into A, type 3 into B, and use <. Expect On at 2.9 m and Off at 3 m. Change the operator to ≤ if 3 m should also switch it on.

LC-0120
Logic CoreSection 2 · Decisions

2.11 Select

Pick one of two values with a Boolean signal.

ConnectionType
ConditionBoolean
If trueSelected type
If falseSelected type
ResultBoolean / Number / Integer
Fig. 2.11. Pinout

Operation

Select returns If true when Condition is On and If false when it’s Off. Set Type for the two branches and the result. Condition is always Boolean.

A missing Condition gives — even if the branches agree. With a known Condition, a missing value matters only on the selected branch. The Core still evaluates nodes on both branches; Select only chooses which value to pass on.

Bench check

Set Type to Number, If true to 4 and If false to 3. The Parking aid uses last tick’s lamp state as Condition, so it selects 4 m when the lamp was on and 3 m when it was off.

LC-0121
Logic CoreSection 2 · Logic

2.12 AND

Require both Boolean inputs to be On.

ConnectionType
ABoolean
BBoolean
ResultBoolean
Fig. 2.12. Pinout

Operation

AND returns On when both inputs are on. Either input set to Off makes the result Off, even if the other is missing. In the remaining cases, a missing input gives —.

To require three conditions, connect two to one AND, then combine its result with the third condition in a second AND.

Bench check

Use a momentary control as one input and an independent enable as the other. Switching the enable Off keeps the result Off even if the control is disconnected.

Expected readings

A \ BOnOff—
OnOnOff—
OffOffOffOff
——Off—
LC-0122
Logic CoreSection 2 · Logic

2.13 OR

Accept either Boolean input being On.

ConnectionType
ABoolean
BBoolean
ResultBoolean
Fig. 2.13. Pinout

Operation

Either input set to On makes the result On, even if the other is missing. If both are off, the result is Off. With neither input on and at least one missing, the result is —.

Both inputs on still gives On. To check that exactly one of two known switches is on, use Boolean Compare with ≠.

Bench check

Give two momentary buttons their own Boolean Inputs and wire them to OR. Either button lights a shared lamp. If one button is disconnected, the remaining one still turns the lamp on, but releasing it leaves an unknown result.

Expected readings

A \ BOnOff—
OnOnOnOn
OffOnOff—
—On——
LC-0123
Logic CoreSection 2 · Logic

2.14 NOT

Reverse a Boolean value.

ConnectionType
SignalBoolean
ResultBoolean
Fig. 2.14. Pinout

Operation

NOT turns On into Off and Off into On. A missing Signal stays missing. To treat a disconnected input like an off switch, put a Boolean Fallback with Default set to Off before NOT.

Bench check

Use NOT on a button's Pressed signal so a bench lamp is lit with the button released and goes dark when you hold it.

Expected readings

SignalResult
OnOff
OffOn
——
LC-0124
Logic CoreSection 2 · Memory

2.15 Register

Read the value stored on the previous tick.

ConnectionType
NextSelected type
ResultBoolean / Number / Integer
Fig. 2.15. Pinout

Operation

Choose a Type and set Initial, the value the Register sends on the first tick. On every tick it sends what it stored before the tick began. Once the other nodes have run, it stores the value on Next for the following tick. It stores a missing Next too.

Use a Register in a feedback loop when part of the graph depends on its own earlier result. To hold a value until a condition changes, use Select to send the Register’s output back to Next whenever there’s no new value to write.

Pause preserves the stored value. Applying a loaded or imported program, pasting a blueprint or reloading a world starts the Register at Initial. Edits can keep the stored value if they preserve the node, its type and its Initial setting.

Bench check

Use an Integer Register with Initial 0. Wire it to Integer Add A, set Add B to 1, and wire Add back to Next. The Register reads 0, 1, 2 on successive ticks. Inspect inside the graph; Integer can't leave by a Link port.

Expected readings

TickRegister outNext
First01
Second12
Third23
LC-0125
Logic CoreSection 2 · Timing

2.16 Edge

Make a one-tick pulse when a Boolean changes.

ConnectionType
SignalBoolean
ResultBoolean
Fig. 2.16. Pinout

Operation

Set Edge to Rising for Off to On or Falling for On to Off. The result is On for one tick at the selected transition and Off on other ticks with a valid Signal.

Edge starts with a remembered input of Off. A rising Edge can therefore pulse on the first tick if Signal is already on. A missing Signal gives — and leaves the remembered input unchanged. For example, On, missing, then On again gives no second rising edge.

A feedback loop still needs a Register. Edge compares the present Signal with the last valid one; its result can’t replace the Register’s stored output.

Bench check

Connect a momentary button. Rising pulses on the press; Falling pulses on release. The One-button lamp program makes the one-tick pulse visible by using it to toggle a lamp.

Expected readings

SignalOffOnOnOffOff
RisingOffOnOffOffOff
FallingOffOffOffOnOff
LC-0126
Logic CoreSection 2 · Timing

2.17 Delay

Wait for an enable signal to stay On.

ConnectionType
EnableBoolean
SecondsNumber
ResultBoolean
Fig. 2.17. Pinout

Operation

While Enable is on and Seconds is present and non-negative, Delay accumulates simulation time. It sends Off until the elapsed time reaches Seconds, then sends On as long as Enable stays on. A setting of zero turns it on at the first enabled tick.

Turning Enable off resets the timer and sends Off, regardless of Seconds. A missing Enable also resets the timer, but sends —. If Enable is on and Seconds is missing or negative, Delay resets and sends —. It reads Seconds afresh each tick.

Pause holds the elapsed time. A feedback loop still needs a Register.

Bench check

In the Hold to light program, a momentary Button drives Enable and Seconds is set to 2. Tap the button, then try holding it for two seconds. Release it to check that the lamp turns off without a delay.

LC-0127
Logic CoreSection 3 · Program library

3. Program library

Each PNG encodes a Logic Core program in its pixels. Download the original file so the editor can read it. The card includes no hardware or workshop wiring; each program sheet lists the Link connections to make.

Loading a card

  1. Download the original PNG. A screenshot or a resized copy may not import.
  2. Open a Logic Core with E. Choose Load → Import → Choose file and pick the PNG.
  3. Check the name and port counts, click Import, then click Apply in the editor. Use Save if you want it in My Programs.

When sharing a card, send the original PNG as a file or link to it. A service that resizes the preview may make that copy unreadable.

LC-0128
Logic CoreSection 3 · Program library

3.01 Parking aid

A clearance indicator for a reversing bay. This is the Parking aid from the starter library.

Parking aid Logic Core PNG with a small graph drawing and the encoded program.
Card 3.01. Download Parking aid PNG

Link wiring

FromTo
Rangefinder · DistanceLogic Core · Distance
Rangefinder · HitLogic Core · Hit
Logic Core · LampWork light · Power

Bench check

Point the Rangefinder at a crate. Move the crate in from beyond 4 m. The lamp comes on below 3 m and stays on as you move the crate back out, until it reaches 4 m. Move the crate out of the beam and the lamp goes out.

A Register holds the lamp’s previous state. Select uses a 3 m threshold when the lamp was off and 4 m when it was on. The two thresholds stop the lamp flickering when the reading drifts around 3 m.

LC-0129
Logic CoreSection 3 · Program library

3.02 Hold to light

Switch on a lamp only after the button has been held for two seconds.

Hold to light Logic Core PNG with a small graph drawing and the encoded program.
Card 3.02. Download Hold to light PNG

Link wiring

FromTo
Button · PressedLogic Core · Button
Logic Core · LampWork light · Power

Bench check

Use a Button in Momentary mode. A short tap leaves the lamp off. Hold E for two seconds and the lamp comes on; release it and the lamp goes out. The next press starts a fresh two-second wait.

The Button drives Delay’s Enable pin. To change the wait, set a new Seconds default and click Apply.

LC-0130
Logic CoreSection 3 · Program library

3.03 One-button lamp

A latch that turns a momentary button into a toggle for a Work light.

One-button lamp Logic Core PNG with a small graph drawing and the encoded program.
Card 3.03. Download One-button lamp PNG

Link wiring

FromTo
Button · PressedLogic Core · Button
Logic Core · LampWork light · Power

Bench check

Set the Button to Momentary. Press and release it. The lamp stays on until you press it again. Holding the button down doesn’t repeat the toggle.

Fallback substitutes Off if the Button signal is missing. A rising Edge sends one pulse on each press. Boolean Compare with ≠ inverts the saved lamp state during the pulse and passes it through otherwise. The Register saves that result for the next tick and starts at Off.

LC-0131
Logic CoreSection 3 · Program library

3.04 Steering stop

Limit a commanded angle to 30 degrees either side of the servo’s zero.

Steering stop Logic Core PNG with a small graph drawing and the encoded program.
Card 3.04. Download Steering stop PNG

Link wiring

FromTo
Number input · ValueLogic Core · Request
Logic Core · AngleDashboard screen · Channel 1
Logic Core · AngleServo (optional) · Target angle

Bench check

Open Tune on the Number input with T. Apply each of these settings in turn: 12, 65 and -45. The dashboard should read 12, 30 and -30. Disconnect Request and the dashboard should read zero.

Fallback supplies zero when Request is missing; Clamp limits the result. The Servo interprets it as an absolute angle measured from the hinge’s zero. Its physical travel stops still apply. Before wiring Target angle, disconnect any links to Positive angle or Negative angle.