浅谈工业标准通讯协议SECS\GEM格式

标准的工业通讯协议SECS\GEM格式你知道?
S14F1 W input上面一段代码就是S14F1回复的消息,那么怎么解析这些数据呢?
<L [5]
<A[0]>
<A[9] ‘Substrate’>
<L [1]
<A[8] ‘KW001010’>
>
<L [1]
<L [2]
<A[4] ‘Boat’>
<U1[1] 0>
>
>
<L [1]
<A[7] ‘MapData’>
>

.
<L [5]代表数据结构List,有5个参数,
<A[0] 代表数据结构是ASILL码
<A[8] ‘KW001010’>代表ASILL值是8位数值KW001010
<U1 0> 代表unit1数据结构,值是0

SECS\GEM常用的数据类型:
ASCII,List,UNIT1,UNIT2,UNIT4,BINARY,
具体如下:
Item Format SECS-II Format Code SML Item Format Mnemonic
Binary Octal
LIST 000000 00 L [length]
Binary 001000 10 B
Boolean 001001 11 BOOLEAN
ASCII 010000 20 A [length] or A [min., max.]
JIS-8 010001 21 J [length] or J [min., max.]
8-byte integer (signed) 011000 30 I8
1-byte integer (signed) 011001 31 I1
2-byte integer (signed) 011010 32 I2
4-byte integer (signed) 011100 34 I4
8-byte floating point 100000 40 F8
4-byte floating point 100100 44 F4
8-byte integer (unsigned) 101000 50 U8
1-byte integer (unsigned) 101001 51 U1
2-byte integer (unsigned) 101010 52 U2
4-byte integer (unsigned) 101100 54

相关推荐

  1. 工业标准通讯协议SECS\GEM格式

    2024-01-11 08:32:01       62 阅读
  2. 【杂记-SNMP网络管理标准协议

    2024-01-11 08:32:01       27 阅读
  3. C++容器——unordered_set

    2024-01-11 08:32:01       44 阅读
  4. 什么是https协议

    2024-01-11 08:32:01       52 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-11 08:32:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-11 08:32:01       101 阅读
  3. 在Django里面运行非项目文件

    2024-01-11 08:32:01       82 阅读
  4. Python语言-面向对象

    2024-01-11 08:32:01       91 阅读

热门阅读

  1. 2024系统分析师---论设计模式及其应用

    2024-01-11 08:32:01       59 阅读
  2. spark相关

    2024-01-11 08:32:01       64 阅读
  3. 初学者的嵌入式 Linux 计划!

    2024-01-11 08:32:01       57 阅读
  4. 第七讲_css浮动

    2024-01-11 08:32:01       59 阅读
  5. Windows Copilot 更新及使用教程

    2024-01-11 08:32:01       177 阅读
  6. onlyOffice实践-在线协同word、ppt、excel编辑

    2024-01-11 08:32:01       139 阅读