Label [LBL] instruction in RSLogix 5000

cherymax

Member
Join Date
Dec 2007
Location
Georgia
Posts
3
I understand that when the [JMP] instruction is true, it jumps/skips to the [LBL] instruction. I don't understand how the [LBL] is handeled when the [JMP] is false.


In the below scenerio... [JMP] is always false and [switch_1] always true would the light come one every time the rung is scanned or never come on?


Rung 1: [JMP]

Rung 2: [LBL]---------[switch_1]--------(lamp_1)
 
For the purposes of your question, think of a label as a place marker. It has no influence on the logic. So in your example the lamp will follow the state of the switch whether the plc arrived at the rung via the jump or just because it was the next rung in order to be scanned.

Keith
 
The LBL instruction is always true. In your example, lamp_1 would always be on when switch_1 is on, regardless of the state of the rung containing the JMP.
 
Another thing to remember - if your Rung 2 is the only one controlling lamp_1 and it is NOT executed because of jumps around it then the state of lamp_1 as determined on the last time the rung WAS scanned will hold. A rung which is not executed doesn't evaluate as false, it doesn't evaluate at all.
 
It will have the same effect as my post in 2008. If the LBL rung is JMPed to or is executed in the normal sequence the the logic would cause [LAMP] to be TRUE (I guess). But, if the rung is not executed and no other logic controls LAMP then it will retain its prior state.
 

Similar Topics

We are considering dropping our UL membership because most of our customers do not care if we are a 508A shop. However, there may be times when a...
Replies
8
Views
397
I copied a panel in factory talk HMI for an identical system. The label names are still the same as the original panel but I am trying to change...
Replies
1
Views
142
Hello, My company has recently been tasked with a redesign of an HMI and they were originally using Numeric Inputs to display the values. I am...
Replies
9
Views
967
Hi Guys I'm having trouble assigning a tag to an activex label on a Multipage Tab. I can assign the tag to an active x label on a normal display...
Replies
0
Views
600
Hi there! I'm new to GX Works3 so please bear with me. So far I've created a new project with an FX5U PLC and tried to add some global labels...
Replies
4
Views
1,183
Back
Top Bottom