STeps in STL Jump Label JL

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
I've tried JL instead of a lot of JCN instructions. JCN to labels is a dangerous way of stepping.
So I tried JL, and it works, but, the only problem I have is...

When starting up new written code, then we allways need a step/step program. In an other post of me you can see how this was done.

When I make a step in my way, see second peece of code please, then I only run 1 cycle in my program (FC5). That's not good, when a step is demanded, then the step must do the actions, + check if the actions are done and then standstill in the next step. How can I solve this when using the JL instruction ?


Code:
	L	 MB	 5					//Load jump destination number into ACCU 1-L-L.
	  JL	NSTP   
	  JU	INIT   
	  JU	ST_1   
	  JU	ST_2  
	  JU	ST_3   
	  JU	ST_4  
	  JU	ST_5   
	  JU	ST_6   
NSTP: L	 0
	  T	 MW	10
	  BE	

INIT: L	 0
	  T	 MW	10
	  BE	

ST_1: L	 1
	  T	 MW	10
	  BE	

ST_2: L	 2
	  T	 MW	10
	  BE	

ST_3: CALL  "Parallel"
	  L	 3
	  T	 MW	10
	  BE	

ST_4: CALL  "Parallel"
	  A	 BR
	  L	 4
	  T	 MW	10
	  BE	

ST_5: L	 5
	  T	 MW	10
	  BE	

ST_6: L	 6
	  T	 MW	10
	  BE	

	  L	 7
	  T	 MW	10
	  BE

Code:
 A	 I	  0.0				  // stepper
	   L	 S5T#1S
	   SD	T	  1

	   A	 T	  1
	   FP	M	100.0
	   JCN   END
	   CALL  FC	 5
END:   NOP   0
 
I don't see where you are writing to MB5, but maybe you intend to use MW10. Anyway, if you need to pause on a step, then simply do not increment MB5. When the logic is excuted, it will jump to the marker matching MB5, and will continue to do so until you change it.
 

Similar Topics

Hello everyone, is it possible to run several parameter sets of a parameter set type automatically - one after the other with an individual time...
Replies
1
Views
458
Work instruction. Hey seasoned vets, I have to make some work instruction for a couple things and I’m just out of school I was wondering if...
Replies
9
Views
988
Looking for some help ! I need to change an inverters frequency using two speed steps. The operator uses a momentary push button. So first press...
Replies
8
Views
1,394
Good Morning/Afternoon everyone this is my first post as registered member but i have been searching for a few days with no luck. So here is my...
Replies
4
Views
1,411
Hi Everyone: I come a cross a really wired problem with Unity Pro, I am running the Unity pro Simulator, the SFC in unity somehow had the box...
Replies
1
Views
2,257
Back
Top Bottom