Siemens S7-300 Question

Clay B.

Lifetime Supporting Member
Join Date
Jun 2005
Location
Concord,NC
Posts
1,304
I think I know but I want to be sure. If I have a Db adress say DB50.DBW1 and I want to look at the LSB bit of that word. Would that adress be DB50.DBW1.0?

What I am trying to do is create a flip flop from the Db word. The DB word is my the sum of an add function where I add a 1 per pulse of an input.
 
Hi,
the address you defined is inefficent because it is on an odd boundary it should be DB50.DBW0 or DBW2 etc

See attachment for code example

int_Counter.jpg
 
Ok if the adress is DB67.DBW2 would the LSB the be DB67.DBX2.0 or DB67DBX3.0 or something else?

My DB50.DBW1 was just an adress I made up. The actual adress I am using is DB67.DBW2
 
Got it

OK My LSB for word DB67.DBW2 is DB67.DBX3.0 Now to figure out how to make that work for me.
 
DB67.DBW2 consists of DBB2 & DBB3 so the LSB of DBB2 = DBX2.0 and LSB of DBB3 = DBX3.0

so 2#0000_0000_0000_0001 is when DBX3.0 = 1
and 2#0000_0001_0000_0000 is when DBX2.0 = 1

Edit: too slow
 
Last edited:

Similar Topics

Hello all. I have an ESA HMI that is connected to a Simatic S7-300 (CPU312). I have uploaded the program from the PLC which is written with Step7...
Replies
6
Views
1,491
Good afternoon, I am hoping someone out there can help me with a query I have about Siemens S7-300 I/O addressing. We have an S7-400 PLC system...
Replies
8
Views
3,722
Hi all, I'm starting learning Siemens from scratch. I have to use a S7-300 Siemens PLC in a project. There's a change more pieces of equipment...
Replies
7
Views
6,457
Could anyone please tell me why i am getting 'illegal command' message whenever i tried to download to the PLC and i can not download to the PLC...
Replies
1
Views
1,303
Hello, I am very familiar with Siemens programming but never have done any network configuration. We have a CPU 317-2 PN/DP PLC with profibus ET...
Replies
3
Views
3,713
Back
Top Bottom