Set a bit.......

f117

Member
Join Date
Oct 2007
Location
ath
Posts
26
Hello, i am using siemens s7-300 and i am facing a little problem.
In Hitachi plcs you can difine the value of a Bit 1 or 0 in a box.....
how i can do this with siemens?

thank you:DD
 
One typical method is to define two marker bits to always be 0 or 1 e.g.
M0.0=0
M0.1=1

Then use them throughout the rest of you program:

Code at start of OB1 would be
SET
R M0.0
S M0.1
 

Similar Topics

What is the best way to set a bit over an ethernet/IP network on an Allen-Bradley ControlLogix Series PLC from a Windows PC. We have a program...
Replies
7
Views
2,105
Hi all, Another odd question for you guys, Looking to try and set multiple bits to a single word register. Some context, I am using a Delta...
Replies
2
Views
1,707
Merry Christmas to everyone!! Working on a prototype system using a Click PLC and a Red Lion G306. I am trying to set a bit in the PLC when I am...
Replies
7
Views
2,100
I have an integer coming from an IO Link device into my PLC. The first 2 bits of the integer are digital status bits of 2 alarms in the device...
Replies
4
Views
1,511
Hi all, On a rare occasion I am programming a PV1000, in FV Studio Machine Edition 7. I want to SET a bit with one button and reset it with the...
Replies
5
Views
3,508
Back
Top Bottom