chewychewbacca
Member
Hey guys, I'm learning how to program a CLX in RSLogix5000.
In my MainRoutine I want to run through a subroutine one time, that checks some conditions in order to proceed through the rest of the MainRoutine when the first scan bit is set, and only when it is set.
The first scan subroutine is a single rung with conditionals and one Output Energize. Something like this ----[/]---[ ]-----[LES]---[EQU]-----( )----
If all conditionals are met(if the output energize from the first scan subroutine is set), then proceed through the MainRoutine, else don't go through the rest of it which consists of JSRs and flag an alarm bit which will be XIO by another subroutine which will stop all operation.
I guess the question I have is then how do I make a conditional JSR, I'm quite confused on how to only JSR when the F:SC bit is set.
My best guess is ----| |----[JSR]----
Would that only run the JSR if the XIO condition is met?
In my MainRoutine I want to run through a subroutine one time, that checks some conditions in order to proceed through the rest of the MainRoutine when the first scan bit is set, and only when it is set.
The first scan subroutine is a single rung with conditionals and one Output Energize. Something like this ----[/]---[ ]-----[LES]---[EQU]-----( )----
If all conditionals are met(if the output energize from the first scan subroutine is set), then proceed through the MainRoutine, else don't go through the rest of it which consists of JSRs and flag an alarm bit which will be XIO by another subroutine which will stop all operation.
I guess the question I have is then how do I make a conditional JSR, I'm quite confused on how to only JSR when the F:SC bit is set.
My best guess is ----| |----[JSR]----
Would that only run the JSR if the XIO condition is met?
Last edited: