Re: Send Data to PLC with DDE connection.
Code
Sub Poke()
Channel = Application.DDEInitiate("GatewayDDEServer", "Kateris_13_2.pro")
Set RangeToPoke = Worksheets("Sheet1").Range("B1")
Application.DDEPoke Channel, ".excel_in_1", RangeToPoke
Application.DDETerminate Channel
End Sub
Made it work with this code. It needs the RangeToPoke to set the value. So this code, will assign in "excel_in_1" variable of the PLC any value inserted in B1 cell.