s5->s7

smelek

Member
Join Date
Jun 2008
Location
Wro
Posts
1
Hi all, i have some questions about conversion s5 to s7 by Siemens and to code of s5 itself:

1) in whole my S5 code i met 3 extended flags -> S 0.0, S1.4 and S 28.3. I have comments do the firs 2 of them "1s generator" and "1 minute generator". Is there some way to configure this flags or there is a list of these flags and their jobs? I can't find any thing about this S 28.3 ....

code:
:JU =M001
:O F 185.7
:O F 182.3
:JC =M002
:L KF +61
:T =DATA1
:S =DATA2
:S =DATA3
:BEU
M002 :
M001 :
:AN F 182.2
:JC =M003
:L KF +62
:T =DATA1
:S =DATA2
:S =DATA3
:BEU
M003 :
:JU =M004
:AN S 28.3
:JC =M004
:L KF +63
:T =DATA1
:S =DATA2
:S =DATA3
:BEU


2) I've read about TNB statement in S5 and it is used in copying memory areas but in my code:

:L FY 255
:L KB 13
:<F
:R F 202.5
:JC =M001
:T FY 255
:S F 202.5
:R F 254.0
:***
Segment 3

L FY 255
TNB 0
>=F
JC =M001
A =#MAX
S F 201.4


3) In my project there is OB 31 (for "Special function group error") and in S7 it is omitted. I read that it can be subtituted by SFC 43 but in my program in this OB 31 only some one bit is SET and in code somewhere else it becomes a condition to other instructions. Should I ignore that or place that condition bit in e.g OB80 or OB121 ?

4) Another question about Profibus addresses. I have a config of Profibus network in COMPROFIBUS but i have problem with addresses. There are Inputs and Outputs with P and Q area. I read that P is an area of perypherial and Q is an extended peryphelial. But in my code there is e.g address OW 172. How i suppose to know which address that is? In COMPROFIBUS there is OW172 input and output address. And how i suppose to know witch is called right now in code?

thanks for Your help
 

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,352
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,024
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,085
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,477
Back
Top Bottom