Another question on "Call" instruction

Craig S

Member
Join Date
Jul 2003
Posts
12
Just finished reading P Lucas's question.

Can an instruction be placed in front of the "Call" instruction?
(I have just finished work and haven't proved this.)
Existing code:

PB 10
Seg1.

:C DB254
:***
DB254 (Machine timing values)
DW0 KT=002.1
etc
etc

The machine has two recipes, both use the same timing values.
Due to changes there needs to be a third recipe added, in which
these values need to be changed and thus machine speed will quicken.

I was hoping to program DB255 with new timing values for third recipe.
New code
PB 10
Seg 1
If recipe1 or 2 selected Call DB254
If recipe3 selected Call DB255

Is this possible?

Thanks
 
You can do it this way. ALWAYS open a block first

:C DB254 //Recipe 1 or 2
:A I 0.0 / Load recipe #3 if = 0
:JC DATA //Jump to data area
:C DB255 // recipe #3

DATA :L DW0
:T FW0
:etc
:etc
 

Similar Topics

Hello all, I have an example scenario 1. Host serving FactoryTalk Directory server is on 10.125.54.32 2. Client 1 is on host 10.125.54.33 ...
Replies
1
Views
1,540
We've got a sump pump which is switched on/off at the HMI by clicking a button on the screen then a physical pushbutton on a console, using this...
Replies
50
Views
12,335
So, after adding a second PC, purchasing another server license and setting up to function as a redundant server for FTV SE, I think I've...
Replies
2
Views
2,176
When the subroutine is no longer being called, and then called up again, what happens with one-shots in that subroutine? I have some rungs in...
Replies
12
Views
3,049
This may very well be my last question. I'm not on to system alarming. Each station has its own set of alarms. What I have done is provide a list...
Replies
5
Views
2,400
Back
Top Bottom