PHPackages                             erikwang2013/industrial-protocols-cclink - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. erikwang2013/industrial-protocols-cclink

ActiveIndustrial-protocol

erikwang2013/industrial-protocols-cclink
========================================

CC-Link RS-485 协议包 — 主从轮询，CRC-16/XMODEM 校验

v1.1.1(yesterday)00PHP &gt;=8.1

Since Jul 22Compare

[ Source](https://github.com/erikwang2013/industrial-protocols-cclink)[ Packagist](https://packagist.org/packages/erikwang2013/industrial-protocols-cclink)[ RSS](/packages/erikwang2013-industrial-protocols-cclink/feed)WikiDiscussions Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

CC-Link RS-485 协议包 — 主从轮询，CRC-16/XMODEM 校验
==========================================

[](#cc-link-rs-485-协议包--主从轮询crc-16xmodem-校验)

> [English](README.en.md)

CC-Link RS-485 协议包 — 主从轮询，CRC-16/XMODEM 校验。纯 PHP 实现，通过内核框架适配器兼容 6 种 PHP 运行时环境。

安装
--

[](#安装)

```
composer require erikwang2013/industrial-protocols-kernel erikwang2013/industrial-protocols-cclink
```

> 本包依赖 [erikwang2013/industrial-protocols-kernel](https://github.com/erikwang2013/industrial-protocols-kernel)，内核提供连接管理、协议注册、协程适配、事件系统等基础设施。

架构
--

[](#架构)

基于内核 SDK 接口（ProtocolInterface/ConnectorInterface/DriverInterface/FrameInterface）构建，通过 CclinkDriver 实现底层通信，CclinkConnector 封装为统一 ConnectorInterface。

功能
--

[](#功能)

完整的 cclink 协议帧编解码、驱动层通信、Connector 封装、健康检查、连接策略支持（Lazy/Eager/Pooled）

支持的框架
-----

[](#支持的框架)

本包通过内核的框架适配器兼容以下 6 种 PHP 运行时环境：Laravel (ServiceProvider+Facade+artisan)、Webman (config/plugin 自动发现+ProtocolProcess)、Hyperf (ConfigProvider+DI+KernelFactory)、ThinkPHP (services.php+IndustrialProtocolsService)、Yii2 (Bootstrap+组件注册)、Plain PHP (直接实例化 Kernel)

### Laravel 示例

[](#laravel-示例)

```
use Erikwang2013\IndustrialProtocols\Kernel;
use Erikwang2013\IndustrialProtocols\Modbus\ModbusProtocol;

// AppServiceProvider::boot()
$kernel = app(Kernel::class);
$kernel->getProtocolRegistry()->register(new ModbusProtocol());
$kernel->boot();

$conn = $kernel->getConnectionManager()->connect('device-id');
$result = $conn->read('address');

// 或使用 Facade
\Erikwang2013\IndustrialProtocols\Framework\Laravel\IndustrialProtocolsFacade::connect('device-id')->read('address');
```

### Webman 示例

[](#webman-示例)

Worker 启动时 ProtocolProcess 自动初始化。配置 `config/plugin/erikwang2013/industrial-protocols-kernel/config/industrial-protocols.php`。

### Hyperf 示例

[](#hyperf-示例)

```
$kernel = \Hyperf\Context\ApplicationContext::getContainer()->get(Kernel::class);
$conn = $kernel->getConnectionManager()->connect('device-id');
```

使用说明
----

[](#使用说明)

```
$conn = $kernel->getConnectionManager()->connect('cclink-device');
$result = $conn->read('RWw0');               // 远程寄存器
$result = $conn->read(['RWw0', 'RWw1']);     // 批量
```

配置示例
----

[](#配置示例)

```
'devices' => [
    'device-id' => [
        'protocol' => 'cclink',
        'host'     => '192.168.1.10',
        'port'     => 0,
        'timeout'  => 3000,
    ],
],
```

适配厂商
----

[](#适配厂商)

HMS/Anybus (CC-Link Slave)、Hilscher (netX)、Moxa (MGate)

系统要求
----

[](#系统要求)

- PHP &gt;= 8.1
- Composer
- erikwang2013/industrial-protocols-kernel

相关链接
----

[](#相关链接)

- [Industrial Protocols 主项目](https://github.com/erikwang2013/industrial-protocols)
- [Kernel 内核](https://github.com/erikwang2013/industrial-protocols-kernel)
- [全部 42 个协议包](https://github.com/erikwang2013/industrial-protocols#%E6%94%AF%E6%8C%81%E7%9A%84%E5%8D%8F%E8%AE%AE)

License
-------

[](#license)

MIT — Copyright (c) 2026 erik  —

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9014941?v=4)[erik](/maintainers/erikwang2013)[@erikwang2013](https://github.com/erikwang2013)

---

Tags

mitsubishiindustrial protocolsfieldbuscc-link

### Embed Badge

![Health badge](/badges/erikwang2013-industrial-protocols-cclink/health.svg)

```
[![Health](https://phpackages.com/badges/erikwang2013-industrial-protocols-cclink/health.svg)](https://phpackages.com/packages/erikwang2013-industrial-protocols-cclink)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
