Skip to content

CODESYS V3 ​

EMQX Neuron CODESYS V3 TCP 驱动通过 TCP 协议访问基于 CODESYS V3 平台打造的 PLC 和 运动控制系统。

通用配置步骤见添加南向驱动与组与点位。

设备设置 ​

字段说明
host设备 IP 地址
port设备端口, 默认 11740
timeout请求发送接收超时时间, 默认 3000 毫秒
username设备用户名
password设备密码

设备如果是匿名登陆,用户名填写 Anonymous,密码为空。

支持的数据类型 ​

  • uint8
  • int8
  • uint16
  • int16
  • uint32
  • int32
  • float
  • bool
  • string

类型对应表

CODESYS V3EMQX Neuron
Boolbool
Byteuint8
SIntint8
USIntuint8
Worduint16
Intint16
UIntuint16
DWorduint32
DIntint32
Realfloat
UDIntuint32
Stringstring

ADDRESS ​

TAG NAME

CODESYS V3 平台导出的符号配置,即为 Nueron 的点位地址。

如果使用包含中文的 TAG NAME, 需要 CODESYS 3.5.20 以上版本,并进行相应的项目配置。

地址示例 ​

地址数据类型说明
Application.PLC_PRG.okboolbool 标志位
Application.PLC_PRG.d1arr[1]int16一维数组下标 1 的值
Application.PLC_PRG.d2arr[1,1]int32二维数组下标 1,1 的值
Application.PLC_PRG.d3arr[1,1,1]int16三维数组下标 1,1,1 的值
Application.PLC_PRG.point.Yfloat结构体 Point 的 Y 变量值
Application.PLC_PRG.points[1].Namestring结构体 Point 的数组下标 1 的对象的 Name 变量值