Wiki
Basic Wiring
Learn how to wire devices together and build your first power grid.
The Wiring Tool: LF Cable Reel
The LF Cable Reel (LFPG_CableReel) is the primary tool for connecting devices together in LF PowerGrid. It allows you to establish wired connections between power sources, batteries, switches, and consuming devices. How you obtain a Cable Reel depends on your server (loot, trader or its own economy rules) — there is no universal crafting station for it.
Once equipped, the Cable Reel enables you to interact with compatible devices and create electrical circuits. The reel contains enough cable for multiple connections and will display connection status when you aim at devices.
How to Connect Devices
Step-by-Step Wiring Process
Follow these steps to create your first wire connection:
- Equip the Cable Reel: Hold the LF Cable Reel (
LFPG_CableReel) in your hands. - Start on an OUT port: Aim at a device and use its wiring action to start the wire from an output port (
output_1). Power flows OUT → IN; starting on an IN and finishing on an OUT is swapped for you. - Route the wire: Walk toward the target. Use the wiring action the game offers to drop a waypoint where the cable should turn (up to 10 per wire, 100 m in total, 50 m per segment). Use the action your version shows.
- Finish on an IN port: Aim at the target device and finish on an input port (
input_1). Logical ports are namedinput_1/output_1— do not confuse them with model memory points such asport_input_0. - Finish or cancel: Use the finish or cancel action your version shows while wiring; cancelling abandons the wire without connecting anything.
- Verify: Check the cable and the device state. A finished wire on an occupied port replaces the old wire instead of being rejected.
If a finish is refused, read the reason the game shows and check: same device (self-connections are refused), OUT→IN direction, total length, waypoint count, and, separately, whether hard demand exceeds the available output (see Overload — that affects power delivery, not whether a wire can be created). Server settings can also cap wires per player and per device.
You can create complex networks by repeating these steps, connecting batteries to switches, switches to devices, and devices to logic gates for automation.
Wire Specifications and Limits
LF PowerGrid enforces several technical limits to prevent performance issues and encourage thoughtful circuit design:
| Specification | Value | Description |
|---|---|---|
| Maximum Wire Length | 100 meters | Total distance a single wire can span |
| Maximum Segment Length | 50 meters | Longest single span between waypoints (over this is invalid/red; near it is yellow) |
| Waypoints per Wire | 10 maximum | Number of turns/corners a single wire can have |
| Wires per Device | Server setting (hard limit 64) | Your server can lower this; in practice each device only exposes its own IN/OUT ports, so usable wires are far fewer than 64 |
| Wires per Player | Server setting | Set by your server admin in LF_PowerGrid.json |
If you hit a limit, split the grid, move devices closer, or ask your admin which server setting applies.
Reading what you see: LED, cable and preview
Three different indicators are easy to confuse. They do not share one colour code:
| Indicator | What it tells you | What to check |
|---|---|---|
| Device LED | Whether that device is powered / its own state (see each device page) | Power reaching that device |
| Finished cable | The state of a placed wire in the grid | Whether the wire exists and carries power |
| Wiring preview | While you route a wire: green = OK, yellow/amber = warning: the preview shows amber when the total exceeds 100 m, but the server rejects finishing a wire whose total is over 100 m — shorten it. Red = invalid (a segment over 50 m), grey = no target | Target, direction, length and waypoints before you finish |
Reference behaviour from reference commit e840252 (see also the Workshop page); colours can differ in the published package — trust the preview message and the device page for its LED. LED ≠ finished cable ≠ preview: they are three different indicators.
Diagnosis by symptom
| Symptom | Check first |
|---|---|
| Nothing has power | Is the source on (daylight for solar)? In the reference, a source/node is overloaded only when hard demand is strictly greater than its available output (demand exactly equal does not trigger it), and battery charging is soft demand that never by itself causes overload. An overloaded source/node delivers zero through itself — that does not automatically switch off every independent grid. Remove hard loads or add supply. (Reference commit e840252; your server may differ.) |
| Finish is refused / preview is red | OUT→IN direction, not the same device, total length ≤ 100 m, waypoints ≤ 10, and your server's per-player/per-device wire caps. |
| A port seems occupied | Finishing a new wire there replaces the old one — check whether the old wire was intentional before you finish. |
| Wire is too long or awkward | Drop waypoints to route around obstacles instead of one straight span; move devices closer if you run out. |
| A kit will not deploy | See Kits & Deployment: flatter, clearer ground and building permission on your server. |
| CCTV shows nothing | Budget the whole chain: monitor 10 u/s + 15 u/s per camera, and link cameras from the monitor — see CCTV Monitor. |
Power Units: The Universal Measurement
All power in LF PowerGrid is measured in units per second (u/s). This is a universal measurement that represents the rate at which electrical energy flows through your circuits.
- Power Generation: Solar panels produce 20 u/s (T1) or 50 u/s (T2) only between 06:00 and 20:00 server time, and 0 u/s outside that window; leave margin for added loads and battery discharge
- Power Storage: Batteries store energy and release it at specified rates
- Power Consumption: Each device consumes a specific amount of u/s when active
- Circuit Load: Total consumption divided by available supply, expressed as a percentage
Example: If a Solar Panel generates 20 u/s and a Ceiling Light consumes 10 u/s, your circuit is at 50% load.
Power Flow and Distribution
Circuit Topology: Source → Battery → Switch → Device
Power flows from sources through wired connections to connected devices, within each node's limits. A splitter does not increase what an upstream node can deliver.
The standard circuit topology is:
How Power Distribution Works
- Sources: Solar Panels and other generators produce power continuously
- Batteries: Store excess power and provide it when sources cannot meet demand
- Switches: Control whether power is allowed to flow to downstream devices
- Devices: Consume power to perform their function (light, cool, heat, etc.)
- Logic Gates: Process signals and control switches based on conditions
Check each branch against the limits of the nodes before it: putting a splitter downstream does not raise an upstream cap.
Overload Conditions
When Supply Cannot Meet Demand
In the reference code (commit e840252), overload is decided on hard demand only: a source/node is overloaded only when total hard demand is strictly greater than the available output (plus a small epsilon). Demand exactly equal to the available output does not trigger overload, and battery charging is soft demand that never by itself causes overload. When a source/node is overloaded, delivery through that overloaded source/node is zero — this does not necessarily mean every separate, independent grid shuts off. Whether a wire can be created is a connection question, separate from this power-delivery rule.
This is a safety feature to prevent circuits from operating under dangerously high loads. To recover from an overload:
- Increase power supply (add more solar panels, charge batteries, etc.)
- Decrease power demand (turn off unnecessary devices, remove high-consumption items)
- Wait for battery reserves to charge (if using renewable sources)
Keep hard demand at or below the available output to stay out of overload; adding battery charging load alone should not push you into it in the reference.
Your First Circuit: Detailed Example
Simple Lighting Circuit
Here's a complete walkthrough of building your first power grid:
Setup Steps:
- Equip the Cable Reel
- Place a Solar Panel outdoors in a visible location
- Interact with the Solar Panel (start wire) and walk to a nearby Battery
- Interact with the Battery to complete the connection
- Interact with the Battery (start new wire) and walk to a Switch
- Interact with the Switch to complete the connection
- Interact with the Switch (start new wire) and walk to a Ceiling Light
- Interact with the Light to complete the final connection
- Toggle the switch on - your light should illuminate!
Your circuit now operates at 50% capacity, which is safe. The solar panel provides 20 u/s, the light consumes 10 u/s, and the battery can store excess energy for use at night.
Power Budget Planning
Designing Circuits for Stability
Plan your circuits to never exceed 90-95% load to keep a safety margin. Solar generation is 20/50 u/s between 06:00 and 20:00 server time and 0 outside that window, so leave margin for added loads and battery discharge.
| Setup Type | Supply (u/s) | Demand (u/s) | Load % | Status |
|---|---|---|---|---|
| Basic Light | 20 | 10 | 50% | Safe |
| Light + Fridge | 40 | 30 | 75% | Safe |
| Light + Fridge + Door | 20 | 35 | 175% | Overload |
| Light + Fridge + Door | 60 | 35 | 58.3% | Safe |
Planning Tips:
- Leave generation margin for added loads: solar is 20/50 u/s only from 06:00 to 20:00 server time and 0 at night, so size batteries for the night and for battery discharge
- Size batteries to store 2-3 hours of production at peak generation
- Use switches to isolate non-essential devices during low-supply periods
- Group devices by priority and control with separate switch branches
- Test circuits before filling them with critical items (food, weapons storage, etc.)
La herramienta de cableado: carrete de cable LF
El carrete de cable LF (LFPG_CableReel) es la herramienta principal para conectar dispositivos en LF PowerGrid. Permite establecer conexiones cableadas entre fuentes de energía, baterías, interruptores y dispositivos consumidores. Cómo obtienes un carrete de cable depende de tu servidor (botín, comerciante o sus reglas) — no hay una estación de crafteo universal para ello.
Una vez equipado, el carrete de cable le permite interactuar con dispositivos compatibles y crear circuitos eléctricos. El carrete contiene suficiente cable para múltiples conexiones y mostrará el estado de la conexión cuando apunte a dispositivos.
Cómo conectar dispositivos
Proceso de cableado paso a paso
Siga estos pasos para crear su primera conexión de cable:
- Equip el carrete de cable: Sostenga el carrete de cable LF en las manos
- Empieza en un puerto OUT: Apunta a un dispositivo y usa su acción de cableado para empezar el cable desde un puerto de salida (
output_1). La energía va SALIDA → ENTRADA; empezar en una ENTRADA y terminar en una SALIDA se intercambia por ti. - Caminar al segundo dispositivo: Muévase al segundo dispositivo que desea conectar (p. ej., batería). El cable se extenderá desde el primer dispositivo mientras camina
- Termina en un puerto IN: Apunta al dispositivo objetivo y termina en un puerto de entrada (
input_1). Usa la acción que muestra tu versión para colocar waypoints (máx. 10, 100 m en total, 50 m por segmento), para terminar o para cancelar sin conectar nada. - Verificar conexión: Ambos dispositivos mostrarán un indicador visual o de interfaz de usuario que muestra que ahora están conectados
Puede crear redes complejas repitiendo estos pasos, conectando baterías a interruptores, interruptores a dispositivos y dispositivos a puertas lógicas para automatización.
Especificaciones y límites de cable
LF PowerGrid impone varios límites técnicos para prevenir problemas de rendimiento y fomentar un diseño de circuito reflexivo:
| Especificación | Valor | Descripción |
|---|---|---|
| Longitud máxima del cable | 100 metros | Distancia total que un cable individual puede abarcar |
| Longitud de segmento de cable | 50 metros | Distancia máxima entre puntos de ruta en un cable |
| Puntos de ruta por cable | 10 máximo | Número de giros/esquinas que puede tener un cable individual |
| Cables por dispositivo | Ajuste del servidor (límite duro 64) | Tu servidor puede bajarlo; en la práctica cada dispositivo solo expone sus puertos IN/OUT, así que los cables útiles son muchos menos que 64. Conecta OUT → IN (output_1 → input_1), usa waypoints (máx. 10, 100 m en total) y la acción de cancelar para abandonar; un cable nuevo en un puerto ocupado reemplaza al anterior. |
Estos límites fomentan un diseño de circuito eficiente y evitan que las redes individuales se vuelvan demasiado complejas. Si alcanza un límite, considere dividir su red o reubicar dispositivos más cerca uno del otro.
Leer lo que ves: LED, cable y previsualización
Tres indicadores distintos son fáciles de confundir. No comparten un único código de color:
| Indicador | Qué te dice | Qué revisar |
|---|---|---|
| LED del dispositivo | Si ese dispositivo tiene energía / su propio estado (consulta la ficha de cada dispositivo) | La energía que llega a ese dispositivo |
| Cable terminado | El estado de un cable ya colocado en la red | Si el cable existe y lleva energía |
| Previsualización de cableado | Mientras trazas un cable: verde = OK, amarillo/ámbar = cerca de un límite (solo aviso: un segmento que se acerca a 50 m o el total que se acerca a 100 m), rojo = inválido (un segmento de más de 50 m, el total de más de 100 m, o más de 10 waypoints), gris = sin objetivo | Objetivo, dirección, longitud y waypoints antes de terminar |
Comportamiento de referencia del commit e840252 (consulta también Workshop); los colores pueden diferir en el paquete publicado — fíate del mensaje de previsualización y de la ficha del dispositivo para su LED. LED ≠ cable ≠ previsualización: son tres indicadores distintos.
Diagnóstico por síntoma
| Síntoma | Revisa primero |
|---|---|
| Nada tiene energía | ¿La fuente está encendida (luz diurna para el solar)? En la referencia, una fuente/nodo solo está sobrecargada cuando la demanda dura es estrictamente mayor que su salida disponible (la demanda exactamente igual no lo activa), y la carga de baterías es demanda blanda que nunca por sí sola causa sobrecarga. Una fuente/nodo sobrecargada entrega cero a través de sí misma — eso no apaga automáticamente cada red independiente. Quita cargas duras o añade suministro. (Commit e840252; tu servidor puede diferir.) |
| No te deja terminar / la vista previa sale roja | Dirección OUT→IN, que no sea el mismo dispositivo, longitud total ≤ 100 m, waypoints ≤ 10 y los límites de cables por jugador/dispositivo de tu servidor. |
| Un puerto parece ocupado | Terminar un cable nuevo ahí reemplaza al anterior: comprueba si el cable viejo era intencionado antes de terminar. |
| El cable es demasiado largo o incómodo | Coloca waypoints para rodear obstáculos en vez de un tramo recto; acerca los dispositivos si te quedas sin puntos. |
| Un kit no se despliega | Consulta Kits y despliegue: suelo más plano y libre, y permiso para construir en tu servidor. |
| El CCTV no muestra nada | Presupuesta toda la cadena: monitor 10 u/s + 15 u/s por cámara, y enlaza las cámaras desde el monitor: consulta Monitor CCTV. |
Unidades de potencia: la medida universal
Toda la potencia en LF PowerGrid se mide en unidades por segundo (u/s). Esta es una medida universal que representa la velocidad a la cual la energía eléctrica fluye a través de sus circuitos.
- Generación de energía: Los paneles solares producen 20 u/s (T1) o 50 u/s (T2) solo entre las 06:00 y las 20:00 hora del servidor, y 0 u/s fuera de ese horario; deja margen para cargas añadidas y descarga de batería
- Almacenamiento de energía: Las baterías almacenan energía y la liberan a velocidades especificadas
- Consumo de energía: Cada dispositivo consume una cantidad específica de u/s cuando está activo
- Carga del circuito: Consumo total dividido por suministro disponible, expresado como porcentaje
Ejemplo: si un panel solar genera 20 u/s y una luz de techo consume 10 u/s, su circuito está al 50% de carga.
Flujo y distribución de energía
Topología de circuito: fuente → batería → interruptor → dispositivo
La energía fluye de las fuentes por los cables a los dispositivos conectados, dentro de los límites de cada nodo. Un divisor no aumenta lo que un nodo anterior puede entregar.
La topología de circuito estándar es:
Cómo funciona la distribución de energía
- Fuentes: Los paneles solares y otros generadores producen energía continuamente
- Baterías: Almacenan energía en exceso y la proporcionan cuando las fuentes no pueden satisfacer la demanda
- Interruptores: Controlan si se permite que la energía fluya hacia dispositivos posteriores
- Dispositivos: Consumen energía para realizar su función (luz, enfriar, calentar, etc.)
- Puertas lógicas: Procesan señales y controlan interruptores según las condiciones
Comprueba cada rama contra los límites de los nodos anteriores: un divisor después no eleva un límite anterior.
Condiciones de sobrecarga
Cuando el suministro no puede satisfacer la demanda
En el código de referencia (commit e840252), la sobrecarga se decide solo con la demanda dura: una fuente/nodo está sobrecargada solo cuando la demanda dura total es estrictamente mayor que la salida disponible (más una pequeña tolerancia). La demanda exactamente igual a la salida disponible no activa la sobrecarga, y la carga de baterías es demanda blanda que nunca por sí sola la causa. Cuando una fuente/nodo está sobrecargada, la entrega a través de esa fuente/nodo es cero — eso no significa necesariamente que cada red independiente se apague. Si se puede crear un cable es una cuestión de conexión, distinta de esta regla de entrega de energía.
Esta es una característica de seguridad para prevenir que los circuitos funcionen bajo cargas peligrosamente altas. Para recuperarse de una sobrecarga:
- Aumente el suministro de energía (agregue más paneles solares, cargue baterías, etc.)
- Disminuya la demanda de energía (apague dispositivos innecesarios, retire artículos de alto consumo)
- Espere a que se carguen las reservas de la batería (si usa fuentes renovables)
Monitoree el porcentaje de carga de su circuito para mantenerse por debajo del 100% de manera segura y mantener operaciones estables.
Su primer circuito: ejemplo detallado
Circuito de iluminación simple
Aquí hay un procedimiento completo para construir su primera red de energía:
Pasos de configuración:
- Equip el carrete de cable
- Coloque un panel solar en el exterior en una ubicación visible
- Interactúe con el panel solar (comience el cable) y camine hacia una batería cercana
- Interactúe con la batería para completar la conexión
- Interactúe con la batería (comience el nuevo cable) y camine hacia un interruptor
- Interactúe con el interruptor para completar la conexión
- Interactúe con el interruptor (comience el nuevo cable) y camine hacia una luz de techo
- Interactúe con la luz para completar la conexión final
- Alterne el interruptor: ¡su luz debe iluminarse!
Su circuito ahora opera al 50% de capacidad, lo cual es seguro. El panel solar proporciona 20 u/s, la luz consume 10 u/s y la batería puede almacenar energía en exceso para usar por la noche.
Planificación del presupuesto de energía
Diseño de circuitos para estabilidad
Planifique sus circuitos para no superar nunca una carga del 90-95% y mantener un margen de seguridad. La generación solar es de 20/50 u/s entre las 06:00 y las 20:00 hora del servidor y 0 fuera de ese horario, así que deje margen para cargas añadidas y descarga de batería.
| Tipo de configuración | Suministro (u/s) | Demanda (u/s) | Carga % | Estado |
|---|---|---|---|---|
| Luz básica | 20 | 10 | 50% | Seguro |
| Luz + Refrigerador | 40 | 30 | 75% | Seguro |
| Luz + Refrigerador + Puerta | 20 | 35 | 175% | Sobrecarga |
| Luz + Refrigerador + Puerta | 60 | 35 | 58.3% | Seguro |
Consejos de planificación:
- Deje margen de generación para cargas añadidas: el solar da 20/50 u/s solo de 06:00 a 20:00 hora del servidor y 0 de noche, así que dimensione las baterías para la noche y la descarga
- Dimensione baterías para almacenar 2-3 horas de producción en generación máxima
- Use interruptores para aislar dispositivos no esenciales durante períodos de bajo suministro
- Agrupe dispositivos por prioridad y controle con ramas de interruptor separadas
- Pruebe circuitos antes de llenarlos con artículos críticos (alimentos, almacenamiento de armas, etc.)
Инструмент подключения: кабельная катушка LF
кабельная катушка LF (LFPG_CableReel) - это основной инструмент для подключения устройств в LF PowerGrid. Он позволяет устанавливать проводные соединения между источниками энергии, батареями, переключателями и потребляющими устройствами. Как вы получите кабельную катушку, зависит от вашего сервера (лут, торговец или его правила) — универсальной станции крафта для неё нет.
После оснащения кабельная катушка позволяет вам взаимодействовать с совместимыми устройствами и создавать электрические цепи. Катушка содержит достаточно кабеля для нескольких подключений и отображает статус соединения, когда вы целитесь на устройства.
Как подключить устройства
Пошаговый процесс подключения
Выполните следующие шаги, чтобы создать первое подключение провода:
- Оснастите кабельную катушку: Держите кабельную катушку LF в руках
- Начните с порта OUT: Наведитесь на устройство и используйте его действие проводки, чтобы начать провод с выходного порта (
output_1). Энергия идёт OUT → IN; начало на IN и завершение на OUT поменяется для вас местами. - Идите ко второму устройству: Переместитесь ко второму устройству, которое вы хотите подключить (например, батарея). Кабель протянется от первого устройства, пока вы идете
- Завершите на порту IN: Наведитесь на целевое устройство и завершите на входном порте (
input_1). Используйте действие, которое показывает ваша версия, чтобы ставить waypoints (макс. 10, всего 100 м, 50 м на сегмент), завершать или отменять без подключения. - Проверить соединение: Оба устройства будут отображать визуальный или графический индикатор, показывающий, что они подключены
Вы можете создавать сложные сети, повторяя эти шаги, соединяя батареи с переключателями, переключатели с устройствами и устройства с логическими элементами для автоматизации.
Спецификации и ограничения проводов
LF PowerGrid применяет несколько технических ограничений для предотвращения проблем с производительностью и поощрения продуманного проектирования цепей:
| Спецификация | Значение | Описание |
|---|---|---|
| максимальная длина провода | 100 метров | Общее расстояние, которое может охватывать один провод |
| длина сегмента провода | 50 метров | Максимальное расстояние между контрольными точками на проводе |
| контрольные точки на провод | 10 максимум | Количество витков/углов, которые может иметь один провод |
| проводов на устройство | Настройка сервера (жёсткий предел 64) | Сервер может снизить предел; на практике у устройства только свои порты IN/OUT, поэтому полезных проводов намного меньше 64. Подключайте OUT → IN (output_1 → input_1), ставьте waypoints (макс. 10, всего 100 м) и используйте действие отмены, которое показывает ваша версия; новый провод на занятом порте заменяет старый. |
Эти ограничения способствуют эффективному проектированию цепей и предотвращают избыточную сложность отдельных сетей. Если вы достигли ограничения, рассмотрите возможность разделения сетки или перемещения устройств ближе друг к другу.
Читать то, что вы видите: LED, кабель и предпросмотр
Три разных индикатора легко перепутать. У них нет единого цветового кода:
| Индикатор | Что он говорит | Что проверять |
|---|---|---|
| LED устройства | Получает ли это устройство питание / его собственное состояние (см. страницу каждого устройства) | Питание, доходящее до этого устройства |
| Готовый кабель | Состояние уже проложенного провода в сети | Существует ли провод и несёт ли он питание |
| Предпросмотр проводки | Пока вы ведёте провод: зелёный = OK, жёлтый/янтарный = близко к пределу (только предупреждение: сегмент приближается к 50 м или итог приближается к 100 м), красный = недействительно (сегмент больше 50 м, итог больше 100 м, или больше 10 промежуточных точек), серый = нет цели | Цель, направление, длину и промежуточные точки перед завершением |
Эталонное поведение из commit e840252 (см. также страницу Workshop); цвета в опубликованном пакете могут отличаться — доверяйте сообщению предпросмотра и странице устройства для его LED. LED ≠ кабель ≠ предпросмотр: это три разных индикатора.
Диагностика по симптому
| Симптом | Проверьте сначала |
|---|---|
| Нигде нет питания | Включён ли источник (дневной свет для солнечной панели)? В эталоне источник/узел перегружен только когда жёсткий спрос строго больше его доступного выхода (спрос ровно равный не активирует), а зарядка батарей — мягкий спрос, который сам по себе никогда не вызывает перегрузку. Перегруженный источник/узел доставляет ноль через себя — это не отключает автоматически каждую независимую сеть. Снимите жёсткую нагрузку или добавьте источник. (Commit e840252; ваш сервер может отличаться.) |
| Не даёт завершить / предпросмотр красный | Направление OUT→IN, не то же самое устройство, общая длина ≤ 100 м, waypoints ≤ 10 и серверные лимиты проводов на игрока/устройство. |
| Порт кажется занятым | Завершение нового провода там заменяет старый: перед завершением проверьте, не нужен ли старый провод. |
| Провод слишком длинный или неудобный | Ставьте waypoints, чтобы обойти препятствия, а не один прямой пролёт; придвиньте устройства, если точек не хватает. |
| Набор не развёртывается | См. Наборы и развёртывание: более ровная и свободная земля и разрешение строить на вашем сервере. |
| CCTV ничего не показывает | Считайте всю цепочку: монитор 10 ед/с + 15 ед/с на камеру, камеры привязываются из монитора — см. Монитор CCTV. |
Энергетические единицы: универсальное измерение
Вся мощность в LF PowerGrid измеряется в единицах в секунду (u/s). Это универсальное измерение, которое представляет скорость, с которой электрическая энергия течет через ваши цепи.
- генерация энергии: солнечные панели дают 20 u/s (T1) или 50 u/s (T2) только с 06:00 до 20:00 по серверному времени и 0 u/s вне этого окна; оставляйте запас на добавленные нагрузки и разряд батареи
- накопление энергии: батареи сохраняют энергию и выпускают ее с заданными скоростями
- потребление электроэнергии: каждое устройство потребляет определенное количество u/s при активности
- нагрузка цепи: общее потребление, разделенное на доступное предложение, выраженное в процентах
Пример: если солнечная панель генерирует 20 u/s, а потолочный светильник потребляет 10 u/s, ваша цепь работает при нагрузке 50%.
Поток и распределение энергии
Топология цепи: источник → батарея → переключатель → устройство
Энергия течёт от источников по кабелям ко всем подключённым устройствам в пределах лимитов каждого узла.
Стандартная топология цепи:
Как работает распределение энергии
- источники: солнечные панели и другие генераторы производят электроэнергию непрерывно
- батареи: накапливают избыток электроэнергии и обеспечивают ее, когда источники не могут удовлетворить спрос
- переключатели: управляют тем, разрешен ли поток электроэнергии к нижестоящим устройствам
- устройства: потребляют электроэнергию для выполнения своей функции (освещение, охлаждение, отопление и т. д.)
- логические элементы: обрабатывают сигналы и управляют переключателями в зависимости от условий
Проверяйте каждую ветвь по лимитам узлов перед ней: разветвитель ниже не повышает предыдущий лимит.
Условия перегрузки
Когда предложение не может удовлетворить спрос
В эталонном коде (commit e840252) перегрузка решается только по жёсткому спросу: источник/узел перегружен только когда суммарный жёсткий спрос строго больше доступного выхода (плюс небольшая толерантность). Спрос ровно равный доступному выходу не активирует перегрузку, а зарядка батарей — мягкий спрос, который сам по себе её никогда не вызывает. Когда источник/узел перегружен, доставка через этот источник/узел равна нулю — это не означает обязательно, что каждая отдельная независимая сеть отключается. Возможность создать провод — вопрос подключения, отдельный от этого правила доставки энергии.
Это функция безопасности, предотвращающая работу цепей под опасно высокими нагрузками. Для восстановления после перегрузки:
- увеличьте подачу электроэнергии (добавьте больше солнечных панелей, зарядите батареи и т. д.)
- снизьте потребление электроэнергии (выключите ненужные устройства, удалите предметы с высоким потреблением)
- подождите, пока зарядятся запасы батареи (при использовании возобновляемых источников)
Контролируйте процентную нагрузку вашей цепи, чтобы оставаться безопасно ниже 100% и поддерживать стабильные операции.
Ваша первая цепь: подробный пример
Простая цепь освещения
Вот полный процесс построения вашей первой энергосистемы:
шаги установки:
- оснастите кабельную катушку
- разместите солнечную панель на улице в видимом месте
- взаимодействуйте с солнечной панелью (начните провод) и идите к ближайшей батарее
- взаимодействуйте с батареей для завершения подключения
- взаимодействуйте с батареей (начните новый провод) и идите к переключателю
- взаимодействуйте с переключателем для завершения подключения
- взаимодействуйте с переключателем (начните новый провод) и идите к потолочному светильнику
- взаимодействуйте с лампой для завершения финального подключения
- переключите выключатель - ваш свет должен загореться!
Ваша цепь теперь работает при 50% мощности, что безопасно. Солнечная панель обеспечивает 20 u/s, свет потребляет 10 u/s, а батарея может сохранять избыток энергии для использования ночью.
Планирование энергетического бюджета
Проектирование цепей для стабильности
Планируйте цепи так, чтобы нагрузка не превышала 90-95% и оставался запас прочности. Солнечная генерация — 20/50 u/s с 06:00 до 20:00 по серверному времени и 0 вне этого окна, поэтому оставляйте запас на добавленные нагрузки и разряд батареи.
| тип настройки | подача (u/s) | спрос (u/s) | нагрузка % | статус |
|---|---|---|---|---|
| базовый свет | 20 | 10 | 50% | безопасно |
| свет + холодильник | 40 | 30 | 75% | безопасно |
| свет + холодильник + дверь | 20 | 35 | 175% | перегрузка |
| свет + холодильник + дверь | 60 | 35 | 58.3% | безопасно |
советы по планированию:
- Оставляйте запас генерации на добавленные нагрузки: солнечная даёт 20/50 u/s только с 06:00 до 20:00 по серверному времени и 0 ночью, поэтому рассчитывайте батареи на ночь и разряд
- размер батареи для сохранения 2-3 часов производства при пиковой генерации
- используйте переключатели для изоляции несущественных устройств во время периодов низкой подачи
- группируйте устройства по приоритетам и управляйте ними с помощью отдельных ветвей переключателей
- протестируйте цепи перед заполнением их критическими элементами (продукты питания, хранилище оружия и т. д.)