| Crates.io | melsec_mc |
| lib.rs | melsec_mc |
| version | 0.4.13 |
| created_at | 2025-11-03 08:32:28.345673+00 |
| updated_at | 2025-11-11 16:54:31.332638+00 |
| description | A small Rust library to talk to Mitsubishi PLCs via MC Protocol (Ethernet) - transport layer and helpers |
| homepage | https://github.com/tyaro/melsec_mc |
| repository | https://github.com/tyaro/melsec_mc |
| max_upload_size | |
| id | 1914239 |
| size | 381,992 |
melsec_mc は Mitsubishi MELSEC 系 PLC と通信するための Rust ライブラリ(コア実装)です。
Cargo.toml に以下のように記述して利用できます(git 依存の例):
[dependencies]
melsec_mc = { git = "https://github.com/tyaro/melsec_mc.git", branch = "main" }
use melsec_mc::client::McClient;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut c = McClient::new("192.0.2.1:5000")?;
let words = c.read_words("D0", 10)?;
println!("read: {:?}", words);
Ok(())
}
実装・開発はこのモノレポ melsec_com 上で行っています。配布用(公開・クライアント向け)は tyaro/melsec_mc を参照してください。