CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

Need some I2C Driver help, here's my progress so far...
https://forum.codesys.com/viewtopic.php?f=21&t=5698
Page 2 of 2

Author:  Edwin Schwellinger [ Wed May 28, 2014 3:11 pm ]
Post subject:  Re: Need some I2C Driver help, here's my progress so far...

Hi Mladen
>Please can you explain how to open same library in two IDE? First is developing and library is on temporaly folder, and second is >testing IDE.

you mean this was an unprecise description?
viewtopic.php?f=21&t=5698#p10467

BR
Edwin

Author:  mbruck [ Wed May 28, 2014 3:36 pm ]
Post subject:  Re: Need some I2C Driver help, here's my progress so far...

Dear Edwin,
Quote:
you mean this was an unprecise description?
viewtopic.php?f=21&t=5698#p10467

Sorry for misunderstanding, that was precise description, thank you. What I mean is situation when we develop .library from scratch so there is no .project yet using that library.
So after I create and open new library e.g. d:\mynewlib.library and keeping open it, how to actually test/debug with second instance of CodeSys.
Hope now it's more clear. Thank you.
:)
Mladen

Author:  logiro_bo [ Tue Nov 18, 2014 12:41 pm ]
Post subject:  Re: Need some I2C Driver help, here's my progress so far...

mbruck wrote:
Dear Edwin,
Quote:
you mean this was an unprecise description?
viewtopic.php?f=21&t=5698#p10467

Sorry for misunderstanding, that was precise description, thank you. What I mean is situation when we develop .library from scratch so there is no .project yet using that library.
So after I create and open new library e.g. d:\mynewlib.library and keeping open it, how to actually test/debug with second instance of CodeSys.
Hope now it's more clear. Thank you.
:)
Mladen

Hello mbruck,

You should debug in the second instance of Codesys:
1. open the library in the project, find the FB and/or methods in the library
2. log into the RPi, download the application, run the application
3. set breakpoints in the FB/methods as you would do with your program.
4. Then you can modify the library in the first instance of Codesys accordingly.
5. Once you make any changes in the first instance, you can update it by clicking the yellow cabinet icon.
6. Then you log out from the RPi and relog into the RPi and download the application, which should use the new library now.

Author:  plcmax [ Tue Nov 18, 2014 1:22 pm ]
Post subject:  Re: Need some I2C Driver help, here's my progress so far...

hello

for me this FAQ section helped to understand how to debug the libs:

viewtopic.php?f=22&t=5641&p=10677#p10677

Cheers
plcmax

Page 2 of 2 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/