Hello, trying to integrate the C code in Automation Builder. The purpose of this code is to convert base64 encoded message. The C function will be called in CoDeSyS. The base64 converter code works successfully in MPLAB (running on PIC32) However when I try to integrate it, I cant do it, since in available data types I cant choose array of uint, only data types without array. The picture shows the dialogue of C code app in Automation Builder (CoDeSys data types). I had a thought maybe I can use a...
Hello, trying to integrate the C code in Automation Builder. The purpose of this code is to convert base64 encoded message. The C function will be called in CoDeSyS. The base64 converter code works successfully in MPLAB (running on PIC32) However when I try to integrate it, I cant do it, since in available data types I cant choose array of uint, only data types without array. The picture shows the dialogue of C code app in Automation Builder (CoDeSys data types). I had a thought maybe I can use a...
Hello, trying to integrate the C code in Automation Builder. The purpose of this code is to convert base64 encoded message. The C function will be called in CoDeSyS. The base64 converter code works successfully in MPLAB (running on PIC32) However when I try to integrate it, I cant do it, since in available data types I cant choose array of uint, only data types without array. The picture shows the dialogue of C code app in Automation Builder (CoDeSys data types). I had a thought maybe I can use a...
Hello, trying to integrate the C code in Automation Builder. The purpose of this code is to convert base64 encoded message. The C function will be called in CoDeSyS. The base64 converter code works successfully in MPLAB (running on PIC32) However when I try to integrate it, I cant do it, since in available data types I cant choose array of uint, only data types without array. The picture shows the dialogue of C code app in Automation Builder (CoDeSys data types). I had a thought maybe I can use a...
Hello, trying to integrate the C code in Automation Builder. The purpose of this code is to convert base64 encoded message. The C function will be called in CoDeSyS. The base64 converter code works successfully in MPLAB (running on PIC32) However when I try to integrate it, I cant do it, since in available data types I cant choose array of uint, only data types without array. The picture shows the dialogue of C code app in Automation Builder (CoDeSys data types). I had a thought maybe I can use a...
Hello, trying to integrate the C code in Automation Builder. The purpose of this code is to convert base64 encoded message. The C function will be called in CoDeSyS. The base64 converter code works successfully in MPLAB (running on PIC32) However when I try to integrate it, I cant do it, since in available data types I cant choose array of uint, only data types without array. The picture shows the dialogue of C code app in Automation Builder (CoDeSys data types). I had a thought maybe I can use a...
Sorry for many questions, can it be that this library suits only for limited PLC's, like plc 841 ? Meaning not all PLC are supported by OSCAT network library.
Checked the block, may be I have stupid question but how to enable the block, choose read/write option and how to select UDP ? I see in VAR list it is possible to select UDP option, but it internal variables, cant modify them.
Thank you for advise. Will try.
Hello, I am making the project, where gateway with UDP packet forwarder, connected to PLC. The gateway sends the data each minute using UDP to PLC controller, so gateway is initializer of communication. I looked up on OSCAT net library, but this does not suits me, since two blocks are required on both PLC to use UDP. Does someone has a project utilizing UDP communication, which can be used for PLC and gateway communication ?
Thank you, I took a look. But not exactly matching, since they propose to use two blocks of NET_VAR on both sides, of PLC. However I will use gateway with UDP packet forwarder connected to PLC. I believe I needed to specify from beginning what is needed.
I try to work with UDP packets in Codesys V2. Which is the best library to use for reading and writing UDP packets ?
Wanted to ask, does I need premium licence to use the C/C++ programming option on V3 ? I am trying to use this feature, however help option in Automation Builder says that: The project controller supports the integration of C code. So not all V3 is supporting C+C++ programming ? And why there is no info about V2 C/C++ programming ?
Hello, I have a C code which performs encryption/decryption. I want to use this a C code in the CODESYS project, to avoid hard translation to ST. If there possibility to utilize C functions in CODESYS ? And, if yes can I call them in ST code ?
Hello, I am making the project which will decrypt/encrypt payload and calculate CMAC, I need to use AES128 function in ECB mode, I checked the CmpCrypto.library and it doesn't support ECB mode, the library support CBC mode. What can I do in this situation ? Should I convert to ST language, the AES128 ECB library using the https://github.com/kokke/tiny-AES-c/blob/master/aes.c project code as source ?