CODESYS: Is there a way to generate Ladder / FBD code?

AustralIan

Member
Join Date
Jan 2013
Location
Leipzig, Germany
Posts
1,368
Hello,

So in RSLogix 5K I would be used to doing the following:
1. Double click the left of the rung, to bring the rung text editor, will be something like:
BST XIC BOOL1 NXB XIO BOOL2 BND XIC BOOL3 OTE BOOL4
2. I would then copy and paste that into excel/word/visual studio code, copy and paste a few times and change the BOOL1 to BOOL5 etc.
3. Double click an empty rung and paste my newly edited rungs.

I am wanting to do the same with CODESYS, but copy and pasting rungs doesn't seem to work with external programs.

Has anyone gotten copy and paste of Ladder to an external program to work? Or do you have another solution that accomplices the same?

I would also ask also about git integration, but I notice they are advertising for a Masters Thesis topic for Codesys Integration with Git on their website.
 
Codesys 3 does copy directly to TwinCAT 3.Project -> Export PLCOpenXML might allow you to import the code into more IDEs, but I am not aware of any.
 
Any particular reason why you don't use search / replace or refactoring on Codesys after copying POU to new name?
 
Thanks everyone for your thoughts so far.

PLCOpenXML: This looks like the easiest way to get everything out in a "readable" format. I don't find it as easy as Rockwell's ladder syntax, but it can be compared and it can be modified. There are also a few more mouse clicks than Rockwell's "Double click on the rung and hit Ctrl+C". Once I get a bit more CoDeSerious, I will probably write a few routines to manipulate this.

Search / Replace or refactoring: It is much slower and more error prone than copy and pasting into a text editor.

Object Orient: I will look a bit more into the object oriented style of CoDeSys. Although in this case, 36 rungs with the same code with different variables would read better than 36 rungs of calls to the same code with different variables.
 

Similar Topics

Hello, I am using a Hitachi Micro EHV+ for a small project, and I wanted to have a Web visu, done with Codesys V3.5 SP13 Patch 2. I test the...
Replies
6
Views
262
Hello, I have a requirement to manage the text alignment dynamically. So, for example: 1. English Texts should be displayed from Left in...
Replies
0
Views
86
Hello, I am new to Codesys, and am trying to learn about it for a project we're developing. I've got a couple questions, but first a little...
Replies
1
Views
133
Hi everyone, as this is my first experience with Rockwell Software i would like to know what's the best way to make Enumerations?
Replies
10
Views
481
I am trying to get Codesys to work with a couple of Moxa ioLogik E1200 series DIO devices (E1210 and E1211). I am able to write to the E1211 DOs...
Replies
2
Views
158
Back
Top Bottom