S5 to s7 conversion, but the code is locked!!!

mo_mesbah

Member
Join Date
Aug 2010
Location
Perth
Posts
21
Hi
I am quite new in this forum, and I hope this is the right one ;)
I have a code in s5 that I want to convert it to s7. The problem is that there are labels in the code that I cannot find!
It is like I can not see some parts of program in some FBs.
As an example in FB 69 I have:
;
NAME: ORGANI
BEZ: ODAT DKF

SPA =M001
BE

And I have nothing after BE
Seems that the code is locked! And it does not let me to convert the code to s7.

Please help!!!
 
This is quite common is S5 programs. It's been a while, but the story goes something like this:- When the program was first created a NOP was placed after the jump instruction (SPA).
When the block was completed, the NOP instruction was replaced by the BE instruction either programmatically (S5 is capable of self modification) or with a hex editor.
When the block is opened in S5, the BE signals to the editor there is no more program to display, but of course there is more. I've not attempted to "unlock" a block like this recently so maybe someone else can chime in. Copy the FB to a small S5 project and post it here.
 
The file you just posted does not seem to be an original S5 file from STEP5. What programming software do you use?
 
Here's a quick look at the code....

Highlighted is the start of the program

JU= X
BE
X:LW= ODAT
T FW 214
...
...

s5P.JPG
 
If you change one command from 65 00H (BE) to f.ex. 30 40H ( L KH), you will probably be able to read the code with your prog. sw.

Edit; No, no! 2D 02 (JU ) to 30 40.
Kalle
 
Last edited:
Do you close the hexprog inbetween?
Kalle

Edit:
My earlier post was a bit confusing. The code should be changed from 2D 02 to 30 40. Now you s5 should interpret this as L KH6500 instead of a jump and a BE.

If it still does not work, we could try to load the code to a CPU and change the code online.
 
Last edited:

Similar Topics

I have a machine which is undergoing upgradation. As part of the process two SEW drives are being replaced., existing Gen B with new Gen C. The...
Replies
3
Views
192
Can you please verify my mnemonic code conversion? Thank you LD KR 2 AND 4 LD KR 0 OR 2 OUT 15
Replies
9
Views
2,962
I have a Cognex 8050 barcode scanner and I am trying to pull recipes from this information. The recipes are in different locations in the string...
Replies
19
Views
3,702
Hi all, I am looking forward for all available PLC code conversion tools or links for the companies which provides such conversions. Thanks in...
Replies
7
Views
2,698
Hi Gents, I am just wondering if there is someone here who could decipher the following code for a Siemens S5 PLC system. I ma converting the...
Replies
2
Views
3,223
Back
Top Bottom