xiuos/APP_Framework/Applications/control_app/plc_demo/inovance
jqy1988 041368d4c6 modify inovance test menu 2023-10-30 14:40:38 +08:00
..
image modify inovance test menu 2023-10-30 14:40:38 +08:00
json modify inovance test menu 2023-10-30 14:40:38 +08:00
Makefile add inovance am401 cpu1608tn serial test app 2023-05-16 15:12:19 +08:00
README.md add inovance am401 communication test readme file 2023-04-26 10:14:43 +08:00
inovance_am401_cpu1608tn_ethernet.c add inovance am401 ethernet test app 2023-04-25 15:18:19 +08:00
inovance_am401_cpu1608tn_uart.c add inovance am401 cpu1608tn serial test app 2023-05-16 15:12:19 +08:00

README.md

INOVANCE AM4011608TN通信测试

[TOC]

通信接线及参数设置

  • 网口

    • CN3 EtherNET,Mosbus TCP协议IP192.168.250.50Port502
  • 串口

    • CN1 RS485AM401只支持一路串口AM600可支持两路串口。AM401接线pin1:485-pin2:485+。波特率9600数据位8位停止位1位校验偶校验

存储区

  • 存储区 IQM区。

通信测试

1共测试BOOLINT16INT32FLOAT共四种类型数据。

2测试M区及Q区数据。

3M区数据测试用功能码03以字为单位读取。如读MX0.3,则读取MW0然后按位拆解。如读MW100则配方文件中起始地址则直接写100即可。如读MDx则配方文件中起始地址应为2*x这是汇川的地址编码规则决定如MD200则对应400。

4Q区数据测试用功能码01以位为单位读取。如读QX.Y则配方文件中起始地址为X*8+Y如读QWQD等则需按位进行读取后然后组合得到。