wiki Discussion
i-campbell
wiki
(Discussion)
Forum for wiki comments
Last updated: 2019-10-25
forked-help-wiki Discussion
i-campbell
forked-help-wiki
(Discussion)
Forum for forked-help-wiki comments
Last updated: 2020-04-28
comparestrings Discussion
i-campbell
comparestrings
(Discussion)
Forum for comparestrings comments
Last updated: 2020-05-20
MT Discussion
i-campbell
MT
(Discussion)
Forum for MT comments
Last updated: 2020-08-28
Home
tamermazen
wiki
(WikiPage)
This is the personal project of tamermazen. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2019-10-23
Home
wknbt
wiki
(WikiPage)
This is the personal project of wknbt. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2019-10-25
(no subject)
tamermazen
wiki
(Thread)
Last updated: 2019-10-23
Home (version 1) discussion
tamermazen
wiki
(Thread)
Home (version 1) discussion
Last updated: 2019-10-24
Home (version 1) discussion
wknbt
wiki
(Thread)
Home (version 1) discussion
Last updated: 2020-01-06
(no subject)
wknbt
wiki
(Thread)
Last updated: 2019-10-25
blog Discussion
wknbt
blog
(Discussion)
Forum for blog comments
Last updated: 2019-10-25
wiki Discussion
wknbt
wiki
(Discussion)
Forum for wiki comments
Last updated: 2019-10-25
Home
i-campbell
wiki
(WikiPage)
This is the personal project of i-campbell. To-Do list: Voice Assistant (20% complete) IEC-ST SparkplugB - MQTT (25% complete) CODESYS 4 MAC (95% complete) 4x4x4 Zauberwürfel solving 3D simulator for softmotion (no hardware) (2%) 4x4x4 Zauberwürfel solving robot (hardware) (0%) Convert PLCOpenXML to ASCII Art Ladder for text based compare tools (10%) Voice Assistant (20%) (Mycroft) Online Voice assistant for better speech recognition and text to speech (Mycroft Skill => OPC UA => CODESYS PLC) (Mycroft) Offline Voice assistant for better privacy (Mycroft Skill => OPC UA => CODESYS PLC) (Alexa) Echo => AWS => MQTT => CODESYS (AWS IoT Core Client SL) currently I have a Mycroft set up on a pi4 doing speech to text (STT) offline with deepspeech. IEC-ST SparkplugB - MQTT (25%) Just another fieldbus :P. Actually this one is maybe unique, in that it uses an MQTT message broker rather than talking directly from device to device. First open source collaborative CODESYS project for me. project link CODESYS 4 MAC (95%) Because one needs a windows OS license to run the CODESYS prerequisites (.NET Framework), as with [tol/codesys-4-linux:tickets:2], there is really no point trying to run it on a MAC using Wine instead of a Windows VM. There are also some other bugs running it on Wine for Mac such as Chromium Embedded Framework not working (I think this is why I cannot use the Device Object Viewer). Also as it only runs on 32-bit single core wine (as with many wine programs) the performance is much less than what I should get from a VM. I disabled various background options to improve performance - which helped but not enough. I feel the investment in a Windows OS license at minimum, or Windows PC at most will offset the productivity cost of rebooting CODESYS or waiting a few minutes for the save to finish. The remaining 5% of this project are: Install with VM blog post with steps to install with Wine / with VM 4x4x4 Zauberwürfel solving 3D simulator for softmotion (no hardware) (2%) So it seems CODESYS Depictor is the product for simulation. Made a 2x2x2 cube array to experiment. Looks pretty neat. The free demo version gives me 10 'poses' which just might fit into what I want to do for the simulation. I considered the paid version, as technically each sub-cube with an external face could be a pose (68) + the robot itself. but I think getting it to work with the 10 poses will allow the project to reach (and be maintained by) a wider audience. Have started planning the solver algorithm. Convert PLCOpenXML Ladder to ASCII Art Ladder (10%) Does what it says on the tin. Actually, I am using this as a python learning experience. Yesterday I learned of some undocumented Ladder features in CODESYS, debating whether to support it in this project by giving error messages, support it fully, or not support it at all and just let everything go silently pearshaped.
Last updated: 2020-07-07
Home
i-campbell
forked-help-wiki
(WikiPage)
TEST ONLY Hi, Welcome to the Forge Community Documentation It replicates and links to the Online Help, but also allows forge members to add their documentation. For a template, use [Template] {TODO} To add a new page simply reference it within brackets, e.g.: [SamplePage]. The wiki uses Markdown syntax. [Libraries] + [Standard64] ++ [Standard64.WLEN] + [StringUtils] ++ [StringUtils.StrLenW]
Last updated: 2020-04-28
Standard64.WLEN
i-campbell
forked-help-wiki
(WikiPage)
[Libraries] > [Standard64] Library Documentation > String Functions > WLEN (FUN) Content from Online Help Libraries (3.5.15.0) > Standard64 Library Documentation > String Functions > WLEN (FUN) WLEN (FUN) FUNCTION WLEN : INT String length function. Returns the number of wcharacters in STR. InOut: Scope Name Type Return WLEN INT Input STR WSTRING(255) Click "Details" to expand Forge Community Additional Documentation This function is limited to a WSTRING of 255 words. For longer WSTRINGs you can use [StringUtils.StrLenW] (V3.5.15.40 @i-campbell) This returns the number of WORDs used in the WSTRING, not including the Terminating NULL character. So this is not the actual number of "characters" to for example pad a string for display purposes. As WSTRINGs are UTF-16, WLEN("a") = 1, but WLEN("𐐷") = 2 (V3.5.15.40 @i-campbell) Related Forum Topics Engineering / How long can a WSTRING be in CodeSys V3?
Last updated: 2020-04-28
Libraries
i-campbell
forked-help-wiki
(WikiPage)
Libraries Content from Online Help Libraries are used for preparing POUs and functions for use in CODESYS applications. In addition to the descriptions presented here in the help, always see the documentation included in the library as well. For using libraries in your CODESYS project, see the “Managing Libraries” chapter. To create your own CODESYS libraries, follow the guidelines for library developers. See also Using Libraries Click "Details" to expand Forge Community Additional Documentation [Standard64] [StringUtils]
Last updated: 2020-04-28
Standard64
i-campbell
forked-help-wiki
(WikiPage)
[Libraries] > Standard64 Library Documentation Content from Online Help Standard64 Library Documentation Company: System Title: Standard64 Version: 3.5.15.0 Categories: Application|Common Author: 3S - Smart Software Solutions GmbH Placeholder: Standard64 Description [1] String functions for wide character strings Contents: Atomic Read-Write Functions AtomicReadLInt (FUN) AtomicReadLReal (FUN) AtomicReadLTime (FUN) AtomicReadLWord (FUN) AtomicReadULInt (FUN) AtomicWriteLInt (FUN) AtomicWriteLReal (FUN) AtomicWriteLTime (FUN) AtomicWriteLWord (FUN) AtomicWriteULInt (FUN) String Functions WCONCAT (FUN) WDELETE (FUN) WFIND (FUN) WINSERT (FUN) WLEFT (FUN) WLEN (FUN) WMID (FUN) WREPLACE (FUN) WRIGHT (FUN) Timer LTOF (FB) LTON (FB) LTP (FB) Indices and tables [1] Based on standard64.library, last modified 18.07.2019, 07:47:12. LibDoc 3.5.15.0 The content file standard64.clean.json was generated with CODESYS V3.5 SP15 on 18.07.2019, 07:47:14. Click "Details" to expand Forge Community Additional Documentation [Standard64.WLEN]
Last updated: 2020-04-28
CODESYS Android Apps
i-campbell
blog
(Blog Post)
Today I was talking about the CODESYS Forge Android App with a colleague. Normally I am loathe to install apps when I am satisfied with the web functionality. I am yet to sideload any apps at all on my phone, so I will probably wait for at least a beta release in the Google Play Store before installing. But the discussion brought up the fact that there are already a couple of android apps in the Google Play Store for CODESYS, which I didn't yet know about. You can find them in the store here: https://store.codesys.com/catalogsearch/result/?q=android The first one, CODESYS Sensor App for Android, is very neat. It takes all of your sensor data available on an Android device and sends it to your CODESYS PLC. Looking for a battery powered, WiFi enabled, GPS / accelerometer / compass / thermometer / hygrometer / barometer / luminosity meter / voice recognition input to your PLC for the cost of a mobile phone? Then this free Android app and CODESYS project are for you! The second one, CODESYS Web View, has a bit more of an obvious practical use in the factory. Connect your android tablet or smartphone to a network with your PLC or PLCs, hit search, then fire up its WebVisualisation. How easy! What are your thoughts? Are you looking forward to having easy access via the forge app to the discussions when the forum arrives here? Have you already used one of the CODESYS play store apps? Are you now thinking of a great use for one of them now that you've just learned about it? Discuss in the comments below.
Last updated: 2020-01-16
My first forge project
i-campbell
blog
(Blog Post)
I started my first project over at [prj:mqttchat]. I documented my steps in the hopes it will help others publish their first project, and to be used as a basis for improving the forge platform to make these steps even easier. If relevant, talk to your employer about it. In my organization, there is a work instruction for this very thing, called "AA: Produktentwicklung: Forge Development". If you already have TortoiseSVN installed, make sure your svn path variables are set: (Start > Control Panel > Programs and features > TortoiseSVN > Change > Next > Modify > Tick the option for command line client tools > Next > Install) If not, simply install TortoiseSVN and tick the command line tools option Install SVN plugin CODESYS from store.codesys.com Install cforge package CODESYS from https://forge.codesys.com/tol/cforge/home/Home/ (big "Download package" button) Run <CODESYS Install directory>/cforge/Setup.bat edit <CODESYS Install directory>/cforge/Setup.reg ==> and replace %V with \"%V\" if not already done Run <CODESYS Install directory>/cforge/Setup.reg Pick which area to create your project in forge (Drivers and targets are obvious, Projects are for if it does something all by itself, libraries are if it is just a part of the users application, and tools are for non-codesys projects that might be useful when you make codesys projects) Go to your chosen area's homepage and "Register a new project" Give it some cool names and metadata Go to the Code section of the website of your new project, and press the [checkout] button. This checks it out with cforge BOOM! You have an SVN repository at C:\Users\<username>\<forge neighborhood name>,<project name>,<code> ... but it's empty in the code section of your forge project it has some suggested steps... but they are not customized to the cforge workflow. You've already checked out with cforge though.. so in windows explorer, navigate to C:\User\<username>\<forge neighborhood name>,<project name>,<code> make three new empty directories: trunk branches tags select the three of them, right click > TortoiseSVN... > add right click the C:\Users\<username>\<forge neighborhood name>,<project name>,<code> folder > cforge > commit. Give it a commit message like "Just adding the default SVN folders" pop your .project (or .libs or whatever) in /trunk select all your files, right click > TortoiseSVN... > add right click the C:\Users\<username>\<forge neighborhood name>,<project name>,<code> folder > cforge > commit. Give it a commit message like "First publicly available code, it currently does what it says on the tin most of the time" back in forge.codesys.com/<your project>, go to Code and find the file you want people to download. right click and copy url Edit your homepage for your project, describing how to use it, and include a [[download url=<copied_link> label=<the label, eg. project>]] when you have the permission to, give it a license of UNLICENSE let people know about it on social media or forge.codesys.com/forge/talk TODO: Investigate the forge .package mechanism described at https://forge.codesys.com/forge/wiki/Migrating%20Projects/
Last updated: 2020-04-16
My first forge project (version 1) discussion
i-campbell
blog
(Thread)
My first forge project (version 1) discussion
Last updated: 2020-05-03
Home (version 2) discussion
i-campbell
wiki
(Thread)
Home (version 2) discussion
Last updated: 2019-12-18
(no subject)
i-campbell
forked-help-wiki
(Thread)
Last updated: 2020-04-28
CODESYS Android Apps (version 2) discussion
i-campbell
blog
(Thread)
CODESYS Android Apps (version 2) discussion
Last updated: 2020-03-07
Home (version 1) discussion
i-campbell
wiki
(Thread)
Home (version 1) discussion
Last updated: 2019-12-18
(no subject)
i-campbell
forked-help-wiki
(Thread)
Last updated: 2020-04-28