Mircologix 1000 Subroutines

Just place the Jump to Subroutine (JSR) box with conditions which are always on.



+--JSR----------+
---------------------------------------| |
| File Number |
+---------------+



Is it possible you mean something other than 'once each scan'?
 
i hope this can help you¡¡

.......................................+--JSR----------+
-------[/]------------------|
.......................................| File Number |
.......................................+---------------+

when the input condition is true, then the rung comes true too, making the program scan jump to the subroutine, if you want to scan it all the time what you can do is to use a NC contact that you're not using or simply put the subroutine with no conditions. Of course you need to put it on the principal program so it can always scan it.
Or if you want to put it inside of another subroutine(nested subroutines)you need to make sure that the subroutine (on the principal program) wich have the one you want to scan is always true, so in that way the processor scan the subroutine on the principal program and then goes to the subrutine you want to scan

Example for the JSR on the principal program.

2- Principal (In this part you tell the processor to go to the subroutine#3)
.
.
.
.......................................+--JSR----------+
----------------------------|
.......................................| 03
.......................................+---------------+
.
.


3- (This is the subroutine you want to scan all the time)
.
.
. (of course you have your ladder conditions on this part)
.
.
---------------------------------------(END)
When it reaches the END instruction then goes back to the principal program and start scaning the instructions that are after the JSR #3



Example for nested soubroutines

2-Principal (this is where you tell the processor to go to subroutine #3 all the time because the rung has no conditions and is always true)
.......................................+--JSR----------+
----------------------------|
.......................................| 03
.......................................+---------------+
.
.
.
.
.



3- after the processor reads at the principal program the JSR #3, now reads the instructions inside this subroutine before the JSR#4, when it gets there now the processor goes to subroutine #4

.......................................+--JSR----------+
----------------------------|
.......................................| 04
.......................................+---------------+
.
.
.
.
.
.
.------------------------------------(END)
when the program read this END instruction the processor returns to the principal program



4- (This is the soubroutine you want to scan all the time, but you need to make sure that the previous JSR are always true so it can be done. In this part when the program reaches the END instruction the processor continue scaning the instructions after the last JSR; in this case the instructions in subroutine 3)
.
.
.
.
---------------------------------------(END)
 

Similar Topics

Hi, I'm having an issue with a mircologix not transmitting out. The current setup is a mircologix 1400 connected to a Guardian 100 Radio...
Replies
1
Views
109
hi all, i have a plc i need to get info from for a site im working on: I have a 1764 Micro Logix 1500 LSP Series C (See Attached Image) im...
Replies
2
Views
373
Please suggest me plc software for simulation (micrologix 500) or any plc simulator
Replies
5
Views
1,885
Hello everyone, From experience which is better for field use, 90 deg or straight and why? I a inclined to buy the straight one but started...
Replies
8
Views
2,107
Can anyone please help me out with a Mircologix 1400. I'm trying to configure it to send email and think I've got it figured out. However, I don't...
Replies
9
Views
3,245
Back
Top Bottom