Personal Data

Username:
nothinrandom
Joined:
2020-01-17 12:08:18+00:00

Projects

Skills

  • No skills entered.

User Activity

  • Posted a comment on discussion Engineering 🇬🇧 on CODESYS Forge

    @jebates31, You are probably still missing the udiMaxPayloadSize parameter. From the screenshot, it is set to 0, so it is expecting an empty string. You could do something like: 1) udiMaxPayloadSize := SIZEOF(_sMyTestString); 2) udiMaxPayloadSize := 35; // some fixed string length that would cover your test case

  • Posted a comment on discussion Engineering 🇬🇧 on CODESYS Forge

    @jebates31, Pointer means that you need to get the memory address that stores the data. This can be done using the ADR instruction, so in your case you could do things like: 1) reading from a string variable like pbPayload := ADR(_sMyTestString) 2) reading from a static string variable like pbPayload := ADR('My Test String')

  • Posted a comment on discussion Runtime 🇬🇧 on CODESYS Forge

    I believe one works for ARM architecture (Linux ARM SL), whereas the other works for AMD64 (Linux SL)... so they are not interoperable.

  • Posted a comment on discussion Runtime 🇬🇧 on CODESYS Forge

    @galexis, could you elaborate and maybe provide some inputs and results of what you are expecting? There are many types of string sort algorithms. A "quick and simple" one can be implemented by performing memory comparison of strings and then sort them.

  • Posted a comment on discussion Engineering 🇬🇧 on CODESYS Forge

    @unzu, There are multiple ways as suggested here, you could create a function with multiple datatypes for INs and OUTs, initialize them with 0, and then select whichever data type you need to use. Another method is to leverage ANY like what TVM pointed out. So for example, the below allows you to take two variables and multiple them to gain output using ANY datatype. You could modify the below to mix and match certain datatypes if needed. FUNCTION Multiply : BOOL VAR_INPUT aVar1 : ANY; aVar2 : ANY;...

  • Posted a comment on discussion Runtime 🇬🇧 on CODESYS Forge

    @yann2021, I believe you should be able to achieve this inside of CoDeSys. 1) Find this file /etc/CODESYSControl_User.cfg and add the following to it: [SysProcess] Command=AllowAll 2) In your project, add the SysProcess library in Library Manager and execute the following command (example to set pin 18 to pull-up): SysProcess.SysProcessExecuteCommand2(pszCommand := 'gpio -g mode 18 up'); Another example to set it as output: SysProcess.SysProcessExecuteCommand2(pszCommand := 'gpio -1 mode 18 out'...

  • Posted a comment on discussion Engineering 🇬🇧 on CODESYS Forge

    @sivan, If I remember correctly... it operates directly on your array, so it should be sorted already.

  • Posted a comment on discussion Forge 🇬🇧 on CODESYS Forge

    @kislov, No, the CoDeSys_EIP library only handles explicit communication as of now. I guess I could integrate implicit communication, but that's what the CoDeSys EIP scanner already does... I'll put it on my roadmap, but certainly don't hold your breath. Looking at the specs sheet of the IO module and communication setup on page 59/61, it looks like you'll need to use implicit communication. BR,

View All