I've just noticed that there are two network libraries: NetBaseServices and CAANetBaseServices. I don't know what's the difference between them, but all examples I've found is for the CAA one. Does anyone if there are any examples for NetBaseServices (Without the CAA)?
I have a PLC with very strange PLC Load behavior. The project is running fine with all libraries upgraded to latest SP 17, except for TCP network traffic. TCP packets take forever to read and write - we've seen response times of 40 seconds. When checking the PLC load we see that the load is unusually high at ~60%. Checking the task monitor we don't see anything out of the ordinary - the background task where all of the communication is performed is taking ~1000us average cycle time. Max cycle time...
My code has a reproducible case of infinite loop, but it only happens when running without any breakpoints. The observed behavior is the freewheeling task is not finishing. Debugging by setting breakpoints "fixes" this behavior. When I press "STOP" the application stops. I couldn't find any way to debug this - show me where the freewheeling task was executing before stop. Is there any way to break at the infinite loop (which I don't know where it's located in the code...)
I'm seeing different behavior between the libraries, which makes my project work with the old version and not with the new version. First difference I can spot is TCP disconnection. The old version of the library sets tcp_connection.xActive to FALSE. In the latest version of the library when the TCP connection is dropped I get a receive error in the TCP_Reader, while the TCP_connection.xActive is still TRUE. And the documentation of the NetBase library is practically non-existent. Can anyone else...
We have a library containing common infrastructure for our projects, like a TCP server. We're upgrading the project from Codesys 3.5.6.1 to 3.5.17.0. My question is regarding the included library versions in the project vs. the library versions in our infrastructure library. I've opened the library, upgraded all libraries to the newest, and deployed the library. When including our library the placeholders list shows the "CAA NetBase" library. When setting the NetBase library to version 3.5.17.0 the...
Does anyone how to provide the terrible feedback I have regarding the GIT package to CODESYS? Support mails are not handled as I would like because I need to purchase a ticket. It seems absurd to me that I have to purchase a ticket so I'm able to provide feedback. Does any one from the development team ever read posts in these forums? Because, for me, the GIT package is almost unusable in the current version. Anything from long file names that the OS can't handle, up to IDE that doesn't respond to...
I have the following code: FUNCTION_BLOCK B VAR idA : INT; idB : INT; END_VAR METHOD FB_Init: BOOL VAR_INPUT bInitRetains: BOOL; // TRUE: the retain variables are initialized (reset warm / reset cold) bInCopyCode: BOOL; // TRUE: the instance will be copied to the copy code afterward (online change) idA : INT; idB : INT; END_VAR // B's FB_init: THIS^.idA := idA; THIS^.idB := idB; FUNCTION_BLOCK A VAR idA : INT; arrB : ARRAY[0..1] OF B[ (idA, 0), (idA, 1) ]; i : INT; END_VAR METHOD FB_Init: BOOL VAR_INPUT...
I have the following code: FUNCTION_BLOCK B VAR idA : INT; idB : INT; END_VAR METHOD FB_Init: BOOL VAR_INPUT bInitRetains: BOOL; // TRUE: the retain variables are initialized (reset warm / reset cold) bInCopyCode: BOOL; // TRUE: the instance will be copied to the copy code afterward (online change) idA : INT; idB : INT; END_VAR // B's FB_init: THIS^.idA := idA; THIS^.idB := idB; FUNCTION_BLOCK A VAR idA : INT; arrB : ARRAY[0..1] OF B (idA, 0), (idA, 1) ; i : INT; END_VAR METHOD FB_Init: BOOL VAR_INPUT...
Hi, I know it's been a long time, but did you manage to solve the internal error issue? I'm having the same error here.
Hi, I encounter strange STRUCT sizing in CodeSys. I have a STRUCT with various members, with various sizes. There's no real logic to the order in which the members are located, and I can't change the order. The member are all basic types, and range from BOOL to LREAL and UDINT. The STRUCT is pack_mode 1 due to the fact that it's dumped to disk every few seconds. When I perform a SIZEOF or VAR_INFO of the struct I get the same number - 324 bytes. When I count the individual sizes of each of the members...
Are there any good example projects for the new NetBase and the new Segmented Buffer Manager libraries? I can't even find proper documentation for it. The only thing I found was the outline of the libraries. Can't figure out how to use the BufferPool.
Couldn't find any info for this in the forums and/or documentation: How do I get the IP address of the client connecting to my server? I'm using NetBase Services.
I have a project that was compiled on an old version of codesys. I recently upgraded my entire project to use all latest library and bumped into the same error (6012). My problem is even worse, as on newer versions of the library (3.5.12.0/3.5.15.0) I don't even receive data from the network. My temporary solution was to downgrade only the NBS library to an older version - that seemed to solve my issue. I've gone back to version 3.5.6.0 of the library. Can anyone from codesys comment on this?
I have a project that was compiled on an old version of codesys. I recently upgraded my entire project to use all latest library and bumped into the same error (6012). My temporary solution was to downgrade only the NBS library to an older version - that seemed to solve my issue. I've gone back to version 3.5.6.0 of the library. Can anyone from codesys comment on this?
No. It's a variant on one of the options I described above that doesn't compile. For some reason the compiler tries to push INTs into the array and fails on compilation.
Yes. It's my own Function Block.
searching the forums didn't reveal any helpful advice. I have a FB that is initialized through FB_init. It requires an additional parameter. METHOD FB_init VAR_INPUT bInitRetains : BOOL; // if TRUE, the retain variables are initialized (warm start / cold start) bInCopyCode : BOOL; // if TRUE, the instance afterwards gets moved into the copy code (online change) supportId : BYTE; END_VAR I have an array of these: SupportHandlerArray:ARRAY[1..2] OF SupportHandler; I can't successfully initialize all...