RSlogix5000 GOTO instruction

grnick50

Lifetime Supporting Member
Join Date
Nov 2010
Location
Ptolemaida
Posts
332
I am using ST language to write an AOI.
At some point in my code in an IF statement I want to use a GOTO command to jump to another part of the code.

I cant find a way to do this as in 1756-pm007_-en-p.pdf it states that GOTO is reserved for future use.
Also I read that JMP & LBL is only available in Ladder.

Is there a way to do this?

Regards.
 
I would avoid Goto/Jump/Label type stuff in a higher level text based language like ST. It already has the CASE keyword for making a nice, organized state machine, which will probably solve your problem. The various types of loops (FOR, WHILE, REPEAT) handle any kind of code repetition you might need, and if you need to sporadically repeat code, you can simply make it an action (subroutine in Rockwell speak) or a function.
 

Similar Topics

Hi! So my problem is a little funky, I had Studio 5000 v 24 and 30 installed, but forgot to install RSLogix (which I cannot go without). Is there...
Replies
2
Views
121
So I had an odd request from a customer for the above. I have written the logic and tested it all in one PLC with only using 7 outputs and 7...
Replies
15
Views
428
Hello everyone, I have an RSLogix5000 project which is running live in the factory but I need to make some changes to the logic. I want to test...
Replies
0
Views
1,121
Good Morning Everyone, I'm looking to use the GSV instruction to get I/O fault codes for my project so I know if there's a comms issue in my E/IP...
Replies
5
Views
869
The machine is running production. When trying to go online with the laptop the whole machine looses communication and faults out. Drives, HMI...
Replies
13
Views
1,936
Back
Top Bottom