Personal Data

Username:
powertrick
Joined:
2020-08-18 04:54:37

Projects

  • No projects to display.

User Activity

  • Posted a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    Codesys V3.5 SP16P4 In the main task the variable tags update when the app runs however other tasks the tags show only ??? even though the tasks are running. In the PLC settings I have tried all the 'Always update variables' settings however still nothing. Any ideas please?

  • Posted a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    After a lot of frustration the key to us getting this working well was to practice with I2Ctools until we knew exactly what we were doing. We then took several weeks to develop a rubust FB that could be controlled through a OOP method interface for 8 or 16 bits and a few other features. In our FB we added small/big endian support with Pragma IF statements by simply switching the datatostore[1] and datatostore[2] around. As I2C to Azure is the crux of our application it was the best thing we did to...

  • Posted a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    I asked about the slave device as some need a 8 bit and others 16 bit data word. I posted below all nicely formatted however the server rejected it so it's slightly less now formatted below. I managed to get the new win10 desktop power apps also using the I2C tools cmds and it works well i2cset -y 0 0x68 0x0D 0x0 w (reg 13d,15) i2cset -y 0 0x68 0x14 0x0 w (reg 20d,4) Bear in mind the following: We are interacting with a device with 16 bit data words so adjust accordingly for 8 bit data words In our...

  • Posted a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    Which I2C part? Get Outlook for Androidhttps://aka.ms/AAb9ysg From: talk@forge.forge.codesys.com talk@forge.forge.codesys.com on behalf of krishemanth forge@codesys.com Sent: Tuesday, March 23, 2021 5:29:24 PM To: [forge:talk] Runtime@talk.forge.forge.codesys.com Subject: [forge:talk] Re: How to read I2C without specified device from FB Hi powertrick, i am trying to read and write data to registers of a controller from my arm board through Codesys. if you have managed to make it work, can you share...

  • Modified a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    .

  • Modified a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    I2C_master.write(16#68, 16#15, 1); I2C_master.read(16#68, ADR(datatoget), 2); //2 the is for 2

  • Modified a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    Bear in mind the following: We are interacting with a device with 16 bit data words so adjust accordingly for 8 bit data words In our case we created a function method to read and a method to write the devices and this is not shown supporting small/big endian and also 8/16 bit data words so it can get very complex We struggled so spent some time to master I2Cget and I2Cset (I2Ctools) on the linux terminal to cross check the device interaction..do this first and master it to save your sanity ie. 1)...

  • Modified a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    Bear in mind the following: We are interacting with a device with 16 bit data words so adjust accordingly for 8 bit data words In our case we created a function method to read and a method to write the devices and this is not shown supporting small/big endian and also 8/16 bit data words so it can get very complex We struggled so spent some time to master I2Cget and I2Cset (I2Ctools) on the linux terminal to cross check the device interaction..do this first and master it to save your sanity ie. 1)...

View All