Connected Components Workbench Question ref JSR instruction

Robomah

Member
Join Date
Jul 2016
Location
Cork
Posts
2
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.
 

Similar Topics

was trying to use Connected Components to connect to a 525 drive via usb with the face off but can't seem to connect to it. the screen lights up...
Replies
7
Views
679
So I'm using CCW to program a panel view and this is not my first I have done many. My Problem is I get an error message that I have never seen...
Replies
2
Views
462
How do you expand a branch in connected components workbench. Example i want to add an interlock around more than one contact. Most software you...
Replies
14
Views
1,212
I’m working on a conveyor project for work. We’re trying to install a few diverts to carry product directly to one of two trailer doors. I have...
Replies
5
Views
1,004
I cannot get CCW to add a controller, i keep getting a error message saying that the device is not authorized. This happens with any model and...
Replies
1
Views
1,267
Back
Top Bottom