Step 7: set initial values

krneki10

Member
Join Date
Aug 2012
Location
slovenia
Posts
18
How could I set initial values in Step7 SIMATIC Manager which would run before OB1? I heard that could be done with OB100, so I inserted there:
CLR
= M 1.0
= M 1.2
= M 1.6
= M 2.1
= M 2.2

But that unfortunately doesn't work. When I switch from STOP to RUN-P mode, nothing gets resetted.

Thanks for help in advance.
 
Do you want to bring on M1.0, M1.2 etc or clear them down to zero?

If you want to 'zero' them then use Roy's suggestion.

If you want to Set them to '1' then use:

SET
S M1.0
S M1.2

etc...

Wasn't sure from your original post what you were after. ;-)
 
How could I set initial values in Step7 SIMATIC Manager which would run before OB1? I heard that could be done with OB100, so I inserted there:
CLR
= M 1.0
= M 1.2
= M 1.6
= M 2.1
= M 2.2

But that unfortunately doesn't work. When I switch from STOP to RUN-P mode, nothing gets resetted.

Thanks for help in advance.

How are you testing this - To verify you should only have OB100 in your plc. (i.e. delete OB1,OB35 etc.)
 

Similar Topics

Hi, I am programming a blow moulding machine with 2 stations. So far I have the sequence done with function STEP ( and SNXT). How can I jump...
Replies
1
Views
1,594
Hello I am building a machine and i would like to get some suggestions about the right plc to choose for my application. My application: I need...
Replies
13
Views
6,670
Hi experts, I'm wondering whether I can set the scan cycle time in step 7, for example, how to set it to 50ms if I want the program (OB1) is...
Replies
9
Views
6,704
Hello I usually represent all my time delay in 0.001sec inside the hmi but know i need to enter values ranging to 2o minutes meaning 1200...
Replies
4
Views
3,631
I need to set a Z_RUECK counter using data from HMI: in particular, the ZW input must be set by user (this data is saved in DB7). What is the data...
Replies
2
Views
1,483
Back
Top Bottom