S5 operation JU +1

iPegg

Member
Join Date
Mar 2014
Location
Hermitage
Posts
4
I have a question that I think will be simple to answer, but I could not find a solution from looking through the manuals. There is an instruction:

JU +1

in an S5 program that I am trying to convert to S7. What does this mean, and how do I implement it in S7? My guess was that it simply meant go to the next line, but then what would be its purpose?

Thanks in advance for your help
 
Are you sure it's JU and not JUR where you specify an absolute jump distance?
 
It may be JUR, I'd have to go back and check. But would it have any effect other than going on to the next instruction?


Edit:

I did get it wrong, the command was JUR. So does this simply mean a jump to the next instruction?
 
Last edited:
Yes, JUR is a JUmp Relative so +1 indicates the next instruction. Maybe they used it as a placeholder or they were jumping further and decided not to anymore and made it +1?
 
Which S5 CPU is the code from ? - As an example, here's a link to a 928B CPU which describes the JUR instruction.

http://support.automation.siemens.com/WW/view/en/19397726

The possibility of a case statement has been mentioned (this uses the DO command) but the JUR instruction is not allowed with the DO command (for the 928B at least).

Unlikely, but possible, is that the the program is self modifying and the relative jump changes at run time to implement the case statement.

Another unlikely but possible scenario is that the code is actually data hidden in the function block - the section of code you are seeing is never meant to be executed.
 
Which S5 CPU is the code from ? - As an example, here's a link to a 928B CPU which describes the JUR instruction.

http://support.automation.siemens.com/WW/view/en/19397726

The possibility of a case statement has been mentioned (this uses the DO command) but the JUR instruction is not allowed with the DO command (for the 928B at least).

Unlikely, but possible, is that the the program is self modifying and the relative jump changes at run time to implement the case statement.

Another unlikely but possible scenario is that the code is actually data hidden in the function block - the section of code you are seeing is never meant to be executed.

Thank you! I'll take a look at the code to see if its doing anything funky like that. I really hope it's not, because that will be a real pain in the *** to duplicate in S7.
 

Similar Topics

Hello, I need assistance in making a Relay operation that follows the given parameters: -if S1 is switched and S2 is at off, the Lamp 1 will be...
Replies
3
Views
111
dear all.. i am designing the Sea Water Intake pump which the 4 pumps will be operated parallel, and 1 pump will be as stand by pump The pump data...
Replies
3
Views
157
Hello all, I got a session with the network guys that never deals with Profinet before. One of a comment to me was "can you make it not scan the...
Replies
5
Views
1,023
So I'm still a little new to LC muting, and currently do not have a test bench. THE SITUATION My LC function is set to manual reset. I mute the...
Replies
3
Views
945
I am working on GE 90-30 system CPU specification is ic693cpu331. Software "PME8.5" when i download program and put check to save flash program...
Replies
1
Views
1,437
Back
Top Bottom