Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
I am new to this forum and I am just beginning to us codesys.
I am trying to get communication between berghof EC1000 and roboteq 2130. I am using 232 serial port. I am using a program I got from the codesys store ( http://store.codesys.com/serial-com.html ). I am using Codesys v3.5 SP1 Patch 4.
My problem is that I can send one message through the serial port whit out any problems, but when I try to do it again nothing happens. Then I have to logout from the project and download it again to be able to send the messages again.
Can anybody please help me with this problem?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
IF xPortOpen THEN
//The first Port is opened with the given parameters
como1(xExecute := TRUE, usiListLength:=SIZEOF(aCom1Params)/SIZEOF(COM.PARAMETER),pParameterList:= ADR(aCom1Params));
IF xWrite THEN
// the write process is started for the first port
comw1(xExecute := TRUE,hCom:= como1.hCom,pBuffer:= ADR(sWrite),szSize:= SIZEOF(sWrite));
Hi
I am new to this forum and I am just beginning to us codesys.
I am trying to get communication between berghof EC1000 and roboteq 2130. I am using 232 serial port. I am using a program I got from the codesys store ( http://store.codesys.com/serial-com.html ). I am using Codesys v3.5 SP1 Patch 4.
My problem is that I can send one message through the serial port whit out any problems, but when I try to do it again nothing happens. Then I have to logout from the project and download it again to be able to send the messages again.
Can anybody please help me with this problem?
check the handshake and do you close the communication after sending.
Think you for your replay.
I have tried it with and without handshake. I have also tried it without closing the port between sending messages. Here is the code I am using.
IF xStartTest THEN
IF xPortOpen THEN
//The first Port is opened with the given parameters
como1(xExecute := TRUE, usiListLength:=SIZEOF(aCom1Params)/SIZEOF(COM.PARAMETER),pParameterList:= ADR(aCom1Params));
IF xWrite THEN
// the write process is started for the first port
comw1(xExecute := TRUE,hCom:= como1.hCom,pBuffer:= ADR(sWrite),szSize:= SIZEOF(sWrite));
IF xPortClose THEN