
adccommunitymod (AutomationDirect) asked a question.
Created Date: March 06,2007
Created By: franji1
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
Franji1, This is not about the math, but your text display of ladder logic. Will Import of a ladder program allow lines with comments? IE. id the // delimter and then some text supported? If so, it there a way to have export create that format rather than the minimum 3-line sequence of BEGIN COMMENT; comment; END COMMENT for the rung comments? IF this works, it makes the text version of the program much more readable and usable. If it doesn't, please consider it as an option for the next release of DirectSoft. Roger PS. JAYBGE, Sorry to hijack your thread. R.
Created Date: March 06,2007
Created by: franji1
The // comments are truly comments for documenting the text. It is NOT ladder comments.
The only thing missing to make it valid would be the PLC statement at the beginning.
If you notice, export includes the rung numbers and rung addresses as // comments - which are ignored by the import mechanism. They are just there to make the program more human readable.
Created Date: March 06,2007
Created by: AZRoger
Here's a snippet of Franji1's example from the other topic -- so all the readers will be on the same page.
LD V7767 // I know this is BCD
BIN // convert to binary
BTOR // convert to real
MULR V3000 // value from above
OUTD V3002 // final result
Franji1,
I guess the // comments would really be applicable to individual contacts and coils... I have had lots of places where I have many set and reset operations as a result of one "condition ". I put as much information as I can into the Nickname documentation for the things being set. But I think it would be an improvement if actual comments for each operation could be inserted. I'll have to think about how I'd want the extra commentary to be input and presented. There are still lots of CTRL-somekey available. But where should the cursor be when you activate the input? And there are several other similar questions to answer. I'll let you know if anything good (IMO) comes to mind.
Roger
Created Date: March 12,2007
Created by: franji1
We 're currently re-architecting the concept of what an "instruction " is in DSP. With this new architecture, we may be able to add features of documenting specific instructions. Not elements, not rungs, but a specific instruction.
The bigger (better) questions relate to how to display them, edit them, move them around, print them, etc. Also, there is only so much screen realestate.
This would almost need to be like a 2nd description field, basically a mini rung comment for that instruction. A one line "wiringinfo " type field would probably not cut it???
Just thinking out loud (and no promises - cuz we want to do some real cool features too)
Created Date: March 06,2007
Created by: franji1
Franji1,
This is not about the math, but your text display of ladder logic. Will Import of a ladder program allow lines with comments? IE. id the // delimter and then some text supported? If so, it there a way to have export create that format rather than the minimum 3-line sequence of BEGIN COMMENT; comment; END COMMENT for the rung comments? IF this works, it makes the text version of the program much more readable and usable. If it doesn't, please consider it as an option for the next release of DirectSoft.
Roger
PS. JAYBGE, Sorry to hijack your thread. R.