S5-->S7

tulip

Member
Join Date
Oct 2005
Location
ist
Posts
236
I want to convert a software from S5 (95U)to S7 (300).Some of addresses that in Block address list were used.Like this;

:L KH 7EB4 ( DB90 )
:LIR 0
:L KF+0
:!=F
:R C 0
:BEC
What is the equivalent of this part in S7?

Another question;
In OB1
:JU PB1
:JU PB2
:JU OB31 ( reset watchdog timer )
:JU PB3
:JU PB4
:JU OB31 ( reset watchdog timer )
etc...
What is the equivalent JU OB31 in S7?
Thanks in advance...
 
Hello tulip;

There is no exact equivalent to the LIR/TIR (Load/Transfer Indirect Register) in S7. There have been better explanations on earlier threads that I can give, for example here:
http://www.plctalk.net/qanda/showthread.php?t=39561&highlight=LIR

To reset the watchdog timer, you can have a look at SFC43:
4 SFCs for Controlling Program Execution


4.1 Re-triggering Cycle Time Monitoring with SFC43 "RE_TRIGR"




Description



With SFC43 "RE_TRIGR" (re-trigger watchdog), you can re-trigger the cycle time monitoring.



Look it up in the Standard and System Functions manual. But in general S7 systems do not require the watchdog timer to be reset, this was a limitaion of smaller S5 systems when too many blocks were being called at the same time.
One thing you have to ensure to get a good conversion is an understanding of the platforms you are converting from, and converting to. Much code in the S5 is now taken care of in the S7 processor directly.

Hope this helps,
Daniel Chartier
 
Last edited:
The S5 DB90 part is testing to see if DB90 exists, here is the equivilant in S7:

Code:
	  L	 90
	  T	 #sfc24Data.DB_Number
	  CALL  SFC   24
	   DB_NUMBER :=#sfc24Data.DB_Number
	   RET_VAL   :=#sfc24Data.RETVAL
	   DB_LENGTH :=#sfc24Data.DB_LENGTH
	   WRITE_PROT:=#sfc24Data.WRITE_PROTECT
	  L	 #sfc24Data.RETVAL
	  L	 0
	  <>I   
	  R	 C	  0
	  BEC
 
Hello tulip;


SFC24.jpg


Hope this helps,
Daniel Chartier
 

Similar Topics

Hello I am trying to establish a S7-connection from a S7-1500F CPU to a S7-300 CPU via a S7-300 Lean card. I want to use put and get from the 1500...
Replies
6
Views
6,363
Hello Everybody, I need a help on the above subject :- Scenario: We need to upgrade a present system consisting on S5 PLC, OP15 HMI and...
Replies
10
Views
3,025
I have some error about RJ area on Regular PID code S5->S7 FUNCTION FC 30 : VOID AUTHOR: _48021 NAME: HAU_KREG // HAU:KREG VAR_INPUT...
Replies
2
Views
2,088
Does anyone has experience with a IM306 communication card from VIPA? We want the use this to do the conversion from S5-S7 and test the software...
Replies
1
Views
2,203
Hi,What is the equivalent following software? S5 S7 ---------- ----------- DO FW250 JU =M005 JU...
Replies
3
Views
1,478
Back
Top Bottom