Contact
Home
|
Product Support
|
Applications & Tools
|
Services
|
Forum
|
mySupport
Login
|
Register
Print document
Technical Forum
STEP 7 / STEP 7 Lite
SR flip-flop is set to 1 by default
Thread Starter:
krneki10
Started:
8/16/2012 2:21 PM
Replies:
11
« Previous thread
Next thread »
1
2
›
»
Page 1 of 2 (12 items)
8/16/2012, 2:21 PM
krneki10
Joined 8/3/2012
Last visit: 9/14/2012
Posts: 45
Rating:
(0)
(0)
When I switch to online mode and turn monitor on in Step 7 5.4 SP5, some of SR flip-flops are set on 1 by default although all inputs are set on 0. See attachment for an example.
This is really driving me nuts, I can't even continue with programming because I have no idea what's wrong.
Thanks for help in advance.
Attachment:
sr.JPG
(31 Downloads)
Top
8/16/2012, 2:28 PM
nbk
Joined 8/29/2009
Last visit: 5/5/2013
Posts: 190
Rating:
(3)
(0)
Could you check in cross-references if this marker bit is used elsewhere (byte/word/doubleword instances)?
Regards
Top
8/16/2012, 2:35 PM
krneki10
Joined 8/3/2012
Last visit: 9/14/2012
Posts: 45
Rating:
(0)
(0)
On the other hand, see this attachment.
Only OB1 is present online on SIMATIC. Do I still need to check for cross references?
Attachment:
sr2.JPG
(18 Downloads)
Top
8/16/2012, 3:07 PM
fritz
Joined 10/7/2005
Last visit: 5/21/2013
Posts: 2354
Rating:
(612)
(0)
Hello
krneki10
as for the problem in you first post (sr.jpg):
Neither the SET nor the RESET input are true, but could it be that I 0.2 was ON for >7 seconds at some stage?
This would then SET (latch) M1.4 ON which of course would remain ON until such time that the RESET (I 0.1) becomes true.
as for the problem in you second post (sr2.jpg):
The SET as well as the RESET input are ON and the RESET one "wins" in the this case (as you aare using a SR Flip Flop, use a RS Flip Flop if you want the SET to "win", see also <F1> help on the SR and RS Flip Flops for more).
I hope this helps
Cheers
fritz
The advice and opinion given in this thread is that of the author and does not necessarily reflect the views of I S Systems Pty Limited.
To find out how I S Systems can help you with your automation needs please visit
www.issystems.com.au
.
Top
8/17/2012, 1:01 PM
krneki10
Joined 8/3/2012
Last visit: 9/14/2012
Posts: 45
Rating:
(0)
(0)
I have done some modifications to my program, now all inputs are rather defined as memory bits, for example I0.1 is M0.1, and so on.
Program actually works, but if SR flip flop will be on 1 when I close program, next time when I will open and run program it will still be on 1 and I will need to manually modify it to 0 in order to get program working. It seems that Step 7 rember values and use them next time. That's not much of an issue if everything according to the plan, but if error occurs in program, then I will have problems next time.
So, my question is, are there any options to force Step 7 to initialize 0 values for all SR before program runs it's first cycle? I remember Omron PLC had that option if you used first_cycle in CX Programmer, where you could set all initial values.
Top
8/17/2012, 4:27 PM
dchartier
Joined 9/27/2006
Last visit: 5/21/2013
Posts: 3937
Rating:
(619)
(0)
Hello krneki10;
OB100 is the "warm restart" OB. See the attachment for more details on restarts factors (from the System and standard functions manual).
In S7-300 CPUs you have only one restart OB, OB100.
Whatever you program in OB100 will be executed once before the start of the cyclic OB1.
So simply set all your SR bits to zero in OB100 and by the time your CPU starts processing the program all your bits will be correctly initialized.
Attachment:
S7 startups.JPG
(13 Downloads)
Top
8/20/2012, 1:52 PM
krneki10
Joined 8/3/2012
Last visit: 9/14/2012
Posts: 45
Rating:
(0)
(0)
Hello,
I put
CLR
= M 1.0
= M 1.2
= M 1.6
= M 2.1
= M 2.2
to OB100. Is that correct?
=== Edited by krneki10 @ 8/20/2012 1:52 PM [GMT ] ===
Top
8/22/2012, 1:33 PM
krneki10
Joined 8/3/2012
Last visit: 9/14/2012
Posts: 45
Rating:
(0)
(0)
That doesn't work. When I switch from STOP to RUN-P mode, nothing gets resetted.
Top
8/22/2012, 2:27 PM
hdhosseini
Joined 1/28/2009
Last visit: 5/21/2013
Posts: 2859
Rating:
(394)
(0)
krneki10 wrote:
That doesn't work. When I switch from STOP to RUN-P mode, nothing gets resetted.
Hello ,
It is really difficult to judge without checking source
of your project.The memories may be written in the
first cycles after execution of OB100.
Best regards
Hamid Hosseini
Human beings are members of a whole , In creation of one essence and soul
Sa'adi
Top
8/22/2012, 3:48 PM
krneki10
Joined 8/3/2012
Last visit: 9/14/2012
Posts: 45
Rating:
(0)
(0)
They are all SR flip-flops and none is set to 1 by default.
Please see my whole program attached. I already pasted what's in OB100.
Attachment:
OB1 (1).pdf
(19 Downloads)
Top
1
2
›
»
Page 1 of 2 (12 items)
Actions
Copy Link
To conference
Product Conferences
LOGO!
SIMATIC TDC, FM458, T400
SIMATIC S7
SIMATIC S5 / STEP 5
SIMATIC 505
Communication / Networks
Programming Devices
PC-based Automation
Industrial PC SIMATIC PC
Decentral Peripherie
Industrial Software
Industrial Software general
STEP 7 (TIA Portal)
STEP 7 / STEP 7 Lite
STEP 7 Additional Software
SIMATIC Addons / IT4Industry
Process Control Systems SIMATIC PCS 7
Process Control System - APACS+
Process Control System - QUADLOG
Teleperm M / WinCC-TM / PCS 7 - TM
Other Process Control Systems
Visualization
SINUMERIK / SIMODRIVES / MASTERDRIVES / SIMOTION / SINAMICS
SINUMERIK CNC automation systems
SIMODRIVE Converter system
SIMOVERT MASTERDRIVES
Motion Control System SIMOTION
SINAMICS
MICROMASTER
ROBICON Perfect Harmony - Medium voltage converters
DC converters SIMOREG
SIMOTICS
Drive Tools
Process Instrumentation / Analytics / Weighing Systems SIWAREX
SIMATIC Ident
Low-Voltage Controls
Building Technology
General Conferences
Quick Links
All Conferences
The new Threads
Highlight Threads
Contact
Support Request
Contacts Worldwide
Moderator
Users online
Edrho
,
Ragupathy
Help
Online Help
Guided Tour