problem converting S5 to S7 program

Apel

Member
Join Date
Aug 2007
Location
Singapore
Posts
98
HI
when i just finished converting S5 program to S7, converting software reports number of errors and warnings.Same type of errors are aslo there.
Warning type-1:
Warning in Line52 S5 ASCII File:
*** FB 151, rel.Addr.0H:preheader does not exist.***
Warning type-2:
invalid release(product no.)********
Warning type-3:
Not different STOP commands.
Warning type-4:
Jump Instruction after DO cannot be compiled.(Use JL)
warning type-5:
Please check setting for time base (S7 config.)

error type-1:
Command not defined.***
LIR 0;
and also some times TIR 2;
also ASM 0;

error type-2:
Invalid operator.****
T BS 97;
also
L # DB_R;

also T # DB_T;
also L #DB_S
also L#DB_D
also L#DBPA;

Error type 3:
call FB 200;

thans is advance.
 
LIR = Load register indirectly
TIR = Transfer to register indirectly

T BS 97 if this german than it menas Betriebs Systemword 97 ( in Englisch RS 97 ?)
This for the S5 plc the timesetting for OB13.
In S7 this is done in the hardware configuration en not longer needed in the program.

Error type 3:
call FB 200;
In S7 an FB call must always include a DB.
call fb200,db200 if the db does not exsist it will be generated.

also T # DB_T;
also L #DB_S
also L#DB_D
also L#DBPA;
in FC or FB look in de declaration part to see what is declared.


i have to go, leaving te rest to the group

Peter
 
The ASM means this is a siemens compiled block the code may not resemble s5 code so you cannot convert it.

These blocks could be standard functions like Analog, PID, Maths etc.

The conversion generally only works on standard code & not on vendor supplied function blocks.
 
this could help too...

read the 'S5 to S7 manual'
http://support.automation.siemens.com/WW/view/en/1118413

it gives you a general idea, how to go.

further more, I think, you'll need the operation list of the S5 PLC
( I guess it's 135/155U -- CPU 928.. 948??,( because you mentioned LIR and TIR))
http://support.automation.siemens.com/WW/view/en/1086150
( for more information of Step5 searchon the given link)
As for the 'FBs' == function blocks in Step5: ( a favorite trap :) )
Normaly the "Step5-FB's" are translated to "FC's" in Step7.
But the important thing is, the order of the parameter.
In a 'Step5'- functionblock you could have a order like this:
Par1 : in
Par2 : out
Par3 : in
Par4 : out
and so on.....
but that's impossible in 'Step7', in this case the converter generates an error.
In 'Step7' the order have to be : first the Input-.... then the output parameter.
So, you have to correct this order , before you compile the translation in 'Step7'

[Info]
If you in need for manuals for 'Step7' ( Hard-&Software)
a good point to start is here:
http://www.automation.siemens.com/simatic/portal/html_76/techdoku.htm


HTH

regards
Rolf
 
hi, thank you all ,i got the idea to correct the errors,just I have started one by one.
I will be back if again found anything interesting..
 
Hi,

I've done a few conversions now and I find that the best way is to study the original S5 code for those parts that don't convert to understand what they are doing. Once you understand the S5 then you can re-write the non-convertable parts in S7.

Nick
 

Similar Topics

It's been a while that I can't convert one of my program on concept using concept converter. When I try converting it, it pops an error (ERROR...
Replies
0
Views
1,202
Hello folks, Using AB RSLogix micro.. I have a 6 digit ASCII text string and Im looking to convert the 4 most significant digits to an integer...
Replies
2
Views
1,444
Hello, I've got a problem when converting my old PanelBuilder aplication to the new FTView ME plataform due to the need of replacing my PanelView...
Replies
2
Views
2,286
hi all i have problems when i try to convert s5 program to s7 the problem is db0 this is the code that contain the error Segment 3 of 8 :JU...
Replies
2
Views
1,838
Hello, I am inquiring if anyone else has had this issue, I have talked with rockwell tech connect and even they have been unable to resolve yet...
Replies
3
Views
2,006
Back
Top Bottom