Token导航 LogoToken导航TokenDH.com
AI 工具需要联网github未标认证来源可访问clear审计通过

hses-protocol健康安全环境协议

Agent Skill

hses-protocol 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

404

周安装

17

GitHub Stars

公开资料未说明

下载量

141
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:hses-protocol(健康安全环境协议)
来源仓库:https://github.com/masayuki-kono/agent-skills
仓库路径:skills/hses-protocol
安装命令:
npx skills add https://github.com/masayuki-kono/agent-skills --skill hses-protocol
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/masayuki-kono/agent-skills --skill hses-protocol

简介

用于处理 GitHub 仓库、Issue 和 Pull Request 协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中整合 HSES 协议相关内容。
  • 通过 npx 命令从指定仓库安装,需确认 token 权限。
  • 涉及工业安全数据时应确保符合行业规范。
  • 建议结合原始 README 了解协议版本和适用范围。

SKILL.md

HSES Protocol Specification

This skill provides the complete specification for the HSES (High Speed Ethernet Server) protocol used to communicate with Yaskawa robot controllers.

When to Use

  • Understanding HSES protocol message structure and formats
  • Implementing or debugging HSES communication
  • Looking up specific command IDs, attributes, or error codes
  • Understanding the binary protocol layout (headers, payloads)

Protocol Overview

HSES is a UDP-based communication protocol for Yaskawa robots.

Communication Specifications

PropertyValue
ProtocolUDP
Robot Control Port10040
File Control Port10041
EndiannessLittle-endian

Message Structure

+------------------+
| Header (32 bytes)|
+------------------+
| Payload (≤479B)  |
+------------------+

Header Layout (32 bytes)

OffsetSizeFieldDescription
0-34Magic"YERC"
4-52Header sizeAlways 0x20 (32)
6-72Payload sizeVariable
81ReservedAlways 0x03
91Division0x01=Robot, 0x02=File
101ACK0x00=Request, 0x01=Response
111Request IDIncremental session ID
12-154Block numberSee block numbering rules
16-238Reserved"99999999"
24-318Sub-headerCommand-specific

Block Number Rules

ContextValue
RequestAlways 0
Single response0x8000_0000
Multi-response data (not last)Increment from previous
Multi-response data (last)Previous + 0x8000_0000
ACK packetSame as corresponding data

Request Sub-header (bytes 24-31)

OffsetSizeField
24-252Command ID
26-272Instance
281Attribute
291Service
30-312Padding (0x00)

Response Sub-header (bytes 24-31)

OffsetSizeField
241Service + 0x80
251Status
261Added status size
271Padding
28-292Added status (error code)
30-312Padding (0x00)

Response Status Values:

  • 0x00: Normal reply
  • 0x08: Command not defined
  • 0x09: Invalid element number
  • 0x1f: Abnormal reply (check added status)
  • 0x28: Instance does not exist

Robot Commands (Division = 0x01)

Command Reference Table

Command IDNameDescription
0x70Alarm data readingRead current alarm
0x71Alarm history readingRead alarm history
0x72Status readingRead robot status
0x73Executing job infoRead current job info
0x74Axis configurationRead axis config
0x75Position data readingRead robot position
0x76Position error readingRead position error
0x77Torque data readingRead torque data
0x78I/O dataRead/write I/O
0x79Register dataRead/write registers
0x7AByte variable (B)8-bit unsigned
0x7BInteger variable (I)16-bit signed
0x7CDouble variable (D)32-bit signed
0x7DReal variable (R)32-bit float
0x7EString variable (S)16-byte string
0x7FPosition variable (P)Robot position
0x80Base position (BP)Base position
0x81External axis (EX)External axis
0x82Alarm resetReset/cancel alarms
0x83HOLD/Servo controlHOLD and servo ON/OFF
0x84Cycle mode switchStep/cycle/continuous
0x85PP message displayShow message on pendant
0x86Job STARTStart job execution
0x87Job selectSelect job
0x88Management timeGet management time
0x89System informationGet system info
0x8AMove (Cartesian)Move command
0x8BMove (Pulse)Move command
0x8CString (S) 32-byte32-byte string variable
0x300Plural I/OMultiple I/O
0x301Plural registerMultiple registers
0x302Plural B variableMultiple byte vars
0x303Plural I variableMultiple integer vars
0x304Plural D variableMultiple double vars
0x305Plural R variableMultiple real vars
0x306Plural S variableMultiple string vars
0x307Plural P variableMultiple position vars
0x308Plural BP variableMultiple base pos vars
0x309Plural EX variableMultiple ext axis vars
0x30AAlarm data (sub code)Alarm with sub strings
0x30BAlarm history (sub)History with sub strings
0x30CPlural S 32-byteMultiple 32-byte strings
0x0411Encoder temperatureRead encoder temp
0x0413Converter temperatureRead converter temp

Service Types

ServiceValueDescription
Get_Attribute_Single0x0ERead single attribute
Get_Attribute_All0x01Read all attributes
Set_Attribute_Single0x10Write single attribute
Set_Attribute_All0x02Write all attributes

File Commands (Division = 0x02)

File commands use Command ID = 0x00 and are distinguished by Service code.

ServiceNameDirectionDescription
0x09File delete-Delete file on controller
0x15File loadingPC → FS100Upload file to controller
0x16File savingFS100 → PCDownload file from controller
0x32File listFS100 → PCGet directory listing

File Transfer Protocol

Downloading file from controller (File Saving, Service 0x16):

  1. Send request with filename
  2. Receive file data blocks from controller
  3. Send ACK for each data block
  4. Continue until final block (bit 31 set in block number)

Uploading file to controller (File Loading, Service 0x15):

  1. Send request with filename
  2. Receive ACK for command acceptance
  3. Send file data blocks to controller
  4. Receive ACK for each data block
  5. Set bit 31 on final block

Status Data Structure

Status Data 1 (Command 0x72, Instance 1)

BitMeaning when ON
0Step mode
1One-cycle mode
2Continuous mode
3Running
4Speed limited
5Teach mode
6Play mode
7Remote mode
8-15Reserved

Status Data 2 (Command 0x72, Instance 2)

BitMeaning when ON
0Hold pending
1Hold by external
2Hold by command
3Servo ON (ready)
4Error
5Alarm
6-15Reserved

Common Error Codes (Added Status)

CodeMeaning
0x1010Cannot operate (mode/state)
0x1018Servo not ready
0x2010Cannot operate in teach mode
0x2050In hold state
0x2060System already in requested state
0x3040Job not found
0x3400File not found
0x4040Invalid variable index

Related Skills

For implementing HSES communication in Rust, see:

  • moto-hses-usage: Client library usage guide for the moto-hses crate family

Detailed Reference

For complete protocol details including all command payloads, response formats, and example packets, see:

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Cursor

30.3%
按下载量换算43

OpenCode

22.44%
按下载量换算32

Antigravity

16.98%
按下载量换算24

windsurf

14.13%
按下载量换算20

Claude Code

8.07%
按下载量换算11

Codex

3.91%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills