rooterWzs commented on code in PR #1964:
URL: https://github.com/apache/plc4x/pull/1964#discussion_r1906218297


##########
protocols/omron/src/main/resources/protocols/omron/omron.mspec:
##########
@@ -0,0 +1,76 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+[type FinsTCPHeader
+    [const uint 32 magicNumber 0x46494E53]      // 固定为 "FINS" 的 ASCII 值
+    [simple uint 16 length]                     // 数据帧长度(包括所有字段)
+    [simple uint 8 reserved]                    // 保留字段,通常为 0
+    [simple uint 8 flags]                       // 标志位,通常为 0
+]
+
+[type FinsCommandHeader
+    [simple uint 8 ICF]                   // 信息控制字段
+    [simple uint 8 RSV]                   // 保留字段
+    [simple uint 8 GCT]                   // 网关计数
+    [simple uint 8 DNA]                   // 目标网络地址
+    [simple uint 8 DA1]                   // 目标节点地址
+    [simple uint 8 DA2]                   // 目标单元地址
+    [simple uint 8 SNA]                   // 源网络地址
+    [simple uint 8 SA1]                   // 源节点地址
+    [simple uint 8 SA2]                   // 源单元地址
+    [simple uint 8 SID]                   // 服务 ID
+]
+
+[type FinsFrame
+    [field FinsTCPHeader tcpHeader]         // TCP 头部

Review Comment:
   thanks.
   I'll give it a try.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@plc4x.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to