项目 / MikaylaFischler/cc-mek-scada

MikaylaFischler/cc-mek-scada

行业推荐
语言 Lua标签 cc-tweakedmekanismminecraftscadacomptuercraft数据更新 2026-11-25 06:49:28 · 仓库 2026-11-23

一段话介绍

Configurable ComputerCraft SCADA system for multi-reactor control of Mekanism fission reactors with a GUI, automatic safety features, waste processing control, and more! Please be sure to take a look at the Wiki tab, this project has lots…

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
Configurable ComputerCraft SCADA system for multi-reactor control of Mekanism fission reactors with a GUI, automatic safety features, waste processing control, and more! Please be sure to take a look at the Wiki tab, this project has lots of docs!
662累计星
39Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

数字孪生与产线仿真

适配系统:数字孪生平台、制造执行系统 · 得分 1.4

具备物理对象建模与仿真推演能力,可用于产线布局验证、排产推演与虚拟调试。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
在 ComputerCraft 上安装 cc-mek-scada,可用 wget 获取 ccmsi.lua、pastebin get sqUN6VUb,HTTP 禁用时改用 release bundles。
特点或设计要点
安装脚本会按组件分别管理版本。部署时会先压缩代码再发布到 GitHub Pages,由安装脚本拉取,以适配 ComputerCraft 电脑的存储空间。系统按协调端、监督端、远程终端和控制器等部分组织,详细说明和备选安装方式见 Wiki。另有 [Discord](https://discord.gg/R9NSCkhcwt) 讨论入口和 [YouTube 频道](https://www.youtube.com/@cc-mek-scada)。
局限和适用边界
该系统依赖 CC: Tweaked 与 Mekanism v10.1 及以上版本(因 v10.1 才完整支持 CC:Tweaked)。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-11-22 · 语言 Lua · 贡献者 —
lua

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 9,183 字节。

# cc-mek-scada
Configurable ComputerCraft SCADA system for multi-reactor control of Mekanism fission reactors with a GUI, automatic safety features, waste processing control, and more! 

![GitHub](https://img.shields.io/github/license/MikaylaFischler/cc-mek-scada)
![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/MikaylaFischler/cc-mek-scada?include_prereleases)
![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/MikaylaFischler/cc-mek-scada/check.yml?branch=main&label=main)
![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/MikaylaFischler/cc-mek-scada/check.yml?branch=devel&label=devel)

### Join [the Discord](https://discord.gg/R9NSCkhcwt)!

![Discord](https://img.shields.io/discord/1129075839288496259?logo=Discord&logoColor=white&label=discord)

## Released Component Versions

Each application and library has its own version, allowing individual component updates to be managed by the installation script.

#### Installer
![Installer](https://img.shields.io/endpoint?url=https%3A%2F%2Fmikaylafischler.github.io%2Fcc-mek-scada%2Finstaller.json)

#### Core Libraries/Components
![Bootloader](https://img.shields.io/endpoint?url=https%3A%2F%2Fmikaylafischler.github.io%2Fcc-mek-scada%2Fbootloader.json)
![Common](https://img.shields.io/endpoint?url=https%3A%2F%2Fmikaylafischler.github.io%2Fcc-mek-scada%2Fcommon.json)
![Comms](https://img.shields.io/endpoint?url=https%3A%2F%2Fmikaylafischler.github.io%2Fcc-mek-scada%2Fcomms.json)
![Graphics](https://img.shields.io/endpoint?url=https%3A%2F%2Fmikaylafischler.github.io%2Fcc-mek-scada%2Fgraphics.json)
![Lockbox](https://img.shields.io/endpoint?url=https%3A%2F%2Fmikaylafischler.github.io%2Fcc-mek-scada%2Flockbox.json)

#### Main Applications
![Reactor PLC](https://img.shields.io/endpoint?url=https%3A%2F%2Fmikaylafischler.github.io%2Fcc-mek-scada%2Freactor-plc.json)
![RTU](https://img.shields.io/endpoint?url=https%3A%2F%2Fmikaylafischler.github.io%2Fcc-mek-scada%2Frtu.json)
![Supervisor](https://img.shields.io/endpoint?url=https%3A%2F%2Fmikaylafischler.github.io%2Fcc-mek-scada%2Fsupervisor.json)
![Coordinator](https://img.shields.io/endpoint?url=https%3A%2F%2Fmikaylafischler.github.io%2Fcc-mek-scada%2Fcoordinator.json)
![Pocket](https://img.shields.io/endpoint?url=https%3A%2F%2Fmikaylafischler.github.io%2Fcc-mek-scada%2Fpocket.json)

## Requirements

Mod Requirements:
- CC: Tweaked
- Mekanism v10.1+

Mod Recommendations:
- Advanced Peripherals (adds the capability to detect environmental radiation levels)
- Immersive Engineering (provides bundled redstone, though any mod containing bundled redstone will do)

v10.1+ is required due to the complete support of CC:Tweaked added in Mekanism v10.1

## Installation

You can install this on a ComputerCraft computer using either:
* `wget https://raw.githubusercontent.com/MikaylaFischler/cc-mek-scada/main/ccmsi.lua`
* `pastebin get sqUN6VUb ccmsi.lua`
* Off-line (when HTTP is disabled) installation via [release bundles](https://github.com/MikaylaFischler/cc-mek-scada/wiki/Alternative-Installation-Strategies#release-bundles)

### Installed Software

The software installed on your ComputerCraft computers will not appear perfectly identical to the source on GitHub, since the deployment system first minifies the code (removing leading whitespace, most comments, blank lines, etc.) before publishing it to GitHub pages, where the installation script pulls the source from. This is required at this point in the project, as the installed applications are now nearly filling all the available space on a 1 MB ComputerCraft computer.

`build/gen_minified.py` is responsible for the minification, and GitHub Actions takes care of running that and publishing builds to GitHub pages using the `.github/workflows/deploy.yml` workflow.

Builds end up at these paths:
- `https://mikaylafischler.github.io/cc-mek-scada/builds/main/`
- `https://mikaylafischler.github.io/cc-mek-scada/builds/devel/`

Installation manifests end up at these paths:
- [`https://mikaylafischler.github.io/cc-mek-scada/manifests/main/install_manifest.json`](https://mikaylafischler.github.io/cc-mek-scada/manifests/main/install_manifest.json)
- [`https://mikaylafischler.github.io/cc-mek-scada/manifests/devel/install_manifest.json`](https://mikaylafischler.github.io/cc-mek-scada/manifests/devel/install_manifest.json)

## Contributing

Please reach out to me via Discord, email, or on GitHub issues if you are thinking of making contributions. I started this project as a challenge for myself and have been enjoying having something I can work on in my own way.

## [SCADA](https://en.wikipedia.org/wiki/SCADA)
> Supervisory control and data acquisition (SCADA) is a control system architecture comprising computers, networked data communications and graphical user interfaces for high-level supervision of machines and processes. It also covers sensors and other devices, such as programmable logic controllers, which interface with process plant or machinery.

This project implements concepts of a SCADA system in ComputerCraft (because why not?). I recommend reviewing that linked Wikipedia page on SCADA if you *want* to understand the concepts used here.

![Architecture](https://upload.wikimedia.org/wikipedia/commons/thumb/1/10/Functional_levels_of_a_Distributed_Control_System.svg/3840px-Functional_levels_of_a_Distributed_Control_System.svg.png)
###### *Above image by Daniele Pugliesi - Own work, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=31527335*

SCADA and industrial automation terminology is used throughout the project, such as:
- Supervisory Computer: Gathers data and controls the process
- Coordinating Computer: Used as the HMI component, user requests high-level processing operations
- RTU: Remote Terminal Unit
- PLC: Programmable Logic Controller

## ComputerCraft Architecture

### Coordinator Server

There can only be one of these. This server acts as a hybrid of levels 3 & 4 in the SCADA diagram above. In addition to viewing status and controlling processes with advanced monitors, it can host access for one or more Pocket computers.

### Supervisory Computers

There should be one of these per facility system. Currently, that means only one. In the future, multiple supervisors would provide the capability of coordinating between multiple facilities (like a fission facility, fusion facility, etc).

### RTUs

RTUs are effectively basic connections between a device and the SCADA system with no internal logic providing the system with I/O capabilities. A single Advanced Computer can represent multiple RTUs as instead I am modeling an RTU as the wired modems connected to that computer rather than the computer itself. Each RTU is referenced separately with an identifier in the modbus communications (see Communications section), so a single computer can distribute instructions to multiple devices. This should save on having a pile of computers everywhere (but if you want to have that, no one's stopping you).

The RTU control code is relatively unique, as instead of having instructions be decoded simply, due to using modbus, I implemented a generalized RTU interface. To fulfill this, each type of I/O operation is linked to a function rather than implementing the logic itself. For example, to connect an input register to a turbine `getFlowRate()` call, the function reference itself is passed to the `connect_input_reg()` function. A call to `read_input_reg()` on that register address will call the `turbine.getFlowRate()` function and return the result.

### PLCs

PLCs are advanced devices that allow for both reporting and control to/from the SCADA system in addition to programed behaviors independent of the SCADA system. Currently there is only one type of PLC, and that is the reactor PLC. This is responsible for reporting on and controlling the reactor as a part of the SCADA system, and independently regulating the safety of the reactor. It checks the status for multiple hazard scenarios and shuts down the reactor if any condition is met.

There can and should only be one of these per reactor. A single Advanced Computer will act as the PLC, with either a direct connection (physical contact) or a wired modem connection to the reactor logic port.

## Communications

A vaguely-modbus [modbus](https://en.wikipedia.org/wiki/Modbus) communication protocol is used for communication with RTUs. Useful terminology for you to know:
- Discrete Inputs: Single Bit Read-Only (digital inputs)
- Coils: Single Bit Read/Write (digital I/O)
- Input Registers: Multi-Byte Read-Only (analog inputs)
- Holding Registers: Multi-Byte Read/Write (analog I/O)

### Security

HMAC message authentication is available as a configuration option to prevent replay attacks and generally prevent control or false data reporting within a system's network. This is done utilizing the [lua-lockbox](https://github.com/somesocks/lua-lockbox) project.

The other, simpler security feature is to enforce a maximum authorized transmission range, which is also a configurable feature on each device.
↑