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
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