siemens plc

jugenzhu1963

Member
Join Date
Jun 2006
Location
toronto
Posts
72
hi,everybody

I am learning siemens plc(s7-300) now. I don't know how to manipulate the bit memory. For Example how i can make bit M0.0 always ON. Please help me.

Thank you
 
Hopefully the two other posts have answered your question. (Another answer is that you can't - if some other processing decides to clear M0.0, then it will be clear until the next time the set instructions are executed)
 
Another thing to remember is that an "always on" bit really isn't necessary with Siemens S7. I've written tens of thousands of lines of code, and haven't used one yet. Instead, take advantage of the "SET" and "CLR" commands, which directly affect the RLO.
 
S7Guy said:
Another thing to remember is that an "always on" bit really isn't necessary with Siemens S7.

Interesting. I use AlwaysOn bits to temporarily bypass one or more contacts in ladder or disable (parts of) a rung, without actually removing any logic. Only in LAD, in STL I have no use for it.
 
[stplanken]Interesting. I use AlwaysOn bits to temporarily bypass one or more contacts in ladder or disable (parts of) a rung, without actually removing any logic. Only in LAD, in STL I have no use for it.

I have done the same as stplanken using always ON (M0.0) and always OFF (M0.1)flags. The flags are set up in OB1. Anyone else do the same?

Homer
 
Rack Failure said:
I have done the same as stplanken using always ON (M0.0) and always OFF (M0.1)flags. The flags are set up in OB1. Anyone else do the same?

Homer

Hrm... maybe it's just me, but wouldn't it be more intuitive to use M0.0 for the 'Always OFF' state and M0.1 for the 'Always ON' state?
 
Rdast
Oops a typo, should've been more carefull.
BTW how do you do a quote box like you've done? Tried it in my last post but hasn't worked.
 
Rack Failure said:
Rdast
Oops a typo, should've been more carefull.
BTW how do you do a quote box like you've done? Tried it in my last post but hasn't worked.



click here
rack.gif
 
Always OFF, always ON

rdrast said:
Hrm... maybe it's just me, but wouldn't it be more intuitive to use M0.0 for the 'Always OFF' state and M0.1 for the 'Always ON' state?


I use the same setup in order to debug as well as enable disable certain functions and rungs of logic on the fly.
Yes, M0.0=always OFF, M0.1=always ON.
 

Similar Topics

Good morning fellow sea captains and wizards, I am being asked to do the above and obtain 4 values from each slave, I know about the MRX and MWX...
Replies
26
Views
308
Hey guys, I have to take an upload of a program on an S71200 PLC to change a hardware config option and then redownload the program with this...
Replies
3
Views
104
Hello Guys, I want to establish profinet communication between siemens plc and my system using python programming. Which python lib can i use to...
Replies
12
Views
325
When you download a DB, the values get overwritten by what is in the "actual" column in offline DB. Does this happen at the start of the PLC...
Replies
6
Views
139
Hi everyone, I want to upload the program from my CPU317TF-2 DP to my PC via connecting to CP 343-1 Advanced since it has LAN ports and the CPU...
Replies
1
Views
160
Back
Top Bottom