Connected Components Workbench Question ref JSR instruction

Hi Guys,

I'm confused about the program flow in connected components workbench there appears to be no JSR instruction so with multiple programs do they just flow top to bottom in sequence ??

It may be a stupid question but I am confused !! any help appreciated
 
I don't have my laptop with me right now but I don't believe there are JMP and LBL instructions in CCW? That example in the link is for RSLogix 500.

Which is a good thing, because JMP and LBL instructions are a good way to make your program a nightmare for anyone to fault find.

There is no need to call any programs in CCW, they are called automatically in the order they are shown in the program list.

If you need to call a piece of code multiple times under specific conditions you can look at making it a UDFB which is like an AOI in Logix 5000.
 
There are JMP & LBL instruction in CCW.

I do agree with making a "User Defined Function Block" they will make your program much more efficient and easy to follow.
 
There are JMP and LBL instructions. The jump instruction is in the toolbox list (at least for ladder diagrams) and to insert a LBL you right click on the rung you want to add it to and choose "add label" and proceed to name the label which can then be called by JMPs added elsewhere.

I do agree, though, that it is good practice to mostly avoid using JMPs. It is hard to find good documentation on CCW. I have been somewhat confused myself with what the best structuring choice for programming is. Such as; making one long main program as opposed to splitting it up into separate programs. I'm sure scan cycle time is still affected by these choices. Also, I have been having trouble properly implementing my ladder designed UDFBs for some reason. I do, however, like the tag based system used in CCW. I'm still in the process of figuring everything out in my PLC and HMI machine project I started a couple weeks ago,but it's coming along. It's a big learning curve for me coming straight from RSLogix to this.
 
Bah

Anyway :confused: after searching for an hour in the USER MANUAL AND NOT THE HELP I found the section you were recommending. I hope this will help my fellow googlers.

Make a user defined function block and give it the subroutine name.

Cut all of the code out of the main program and paste it into the function block code.

Go back to the empty main and on rung 1 open the toolbox and click on instruction block.

Scroll down and your "subroutine Name" will be in there.

BOOM! 🍻

It tells you this in that manual the dude kind of mentioned.
 
Bah

Anyway :confused: after searching for an hour in the USER MANUAL AND NOT THE HELP I found the section you were recommending. I hope this will help my fellow googlers.

Make a user defined function block and give it the subroutine name.

Cut all of the code out of the main program and paste it into the function block code.

Go back to the empty main and on rung 1 open the toolbox and click on instruction block.

Scroll down and your "subroutine Name" will be in there.

BOOM! ?

It tells you this in that manual the dude kind of mentioned.
Jeremy youre my savior
 

Similar Topics

Hi all, I'm really, really green with PLCs - self taught and very much still trying to figure best practices out. Currently I'm trying to...
7
Replies
1,498
Views
I was given a project from a vendor. It says that my Project Database Manager is version 05.50.10 and I need 05.50.11. See attached. I am running...
0
Replies
1,168
Views
Build is failing in Connected Components Workbench. See screenshot. I did just install ControlFlashPlus and I don't think I have used CCW since...
2
Replies
1,319
Views
Hello everyone! I have AB Micro820 controllers that need updated software downloaded to them. I need to send microSD cards with the updated...
0
Replies
692
Views
Is there an instruction equivalent in CCW for the CLR instruction that is in RSLogix500 and RSLogix5000? Reasons I use CLR... (maybe this will...
2
Replies
1,048
Views
Top