Tag: plc

通过VBA DDEPoke将string数据导入到ControlLogix PLC中

我正在使用一个实用程序更新ControlLogix处理器中的某些function标记值。 标签是控制器范围,我目前有程序在本地运行在模拟器上。 目标是将某些信息从Excel表格的一列转移到相邻列中指定的标签,以获得两条信息,一条是DINT,另一条是STRING。 我的VBA代码触发button点击成功: Sub CreateTags() Dim rslinx As Long Dim messageid As String Dim Message As String Dim severityid As String Dim severity As Long Dim channel As String rslinx = DDEInitiate("RSLinx", "TestAE2") channel = CStr(rslinx) 'Check if the connection was made If Err.Number <> 0 Then MsgBox "Error Connecting to topic" + channel, […]