Siemens Step 7 bits and words ???

baboon

Member
Join Date
May 2009
Location
rotherham
Posts
7
Hi,

I'm fairly new to Step 7 and mainly have a Rockwell background. I have a project which has an S7-300 talking to ABB drives over profibus. the first peripheral input word form the drive is its status word. This word is made up of individual bits for its status i.e Bit 0 = 'drive healthy', bit 1 = 'drive tripped' etc. PIW256 is the status word. I've created a DB for each drive and within this created a UDT which has all the drive status bits as BOOL's. This is so I can use symbolic addressing for the status bits. when I look at the DB in data view it shows that the status word is DBW8 and that 'drive healthy' = 8.1 and 'drive tripped' = 8.2 etc.
So DB20.DB8.0 is drive healthy ??
I MOVE PIW256 to DB20.DBW8. When I monitor these at word level, when the drive sets its healthy bit, then bit 0 of PIW256 is energised as is bit 0 of DB20.DBW8. Theres no byte swapping here. So far so good. The problem is that if I monitor DB20.DBX8.0 ('drivehealthy' symbolically), this doesn't reflect bit 0 of the words. its DB20.DBX9.0 which does. This isn't even shown in the DB. I'm confused ??? I was under the impression that its only when changinf rom Bytes to words that you have to be careful of the byte swapping ???

Thanks in advance
 
Hi there
In Siemens bit 0 is DB8.dbx9.0
bit 7 is DB8.DBX9.7

bit 8 is DB8.DBX8.0
bit 15 is DB8.DBX8.7

So there is swapping in the ABB vfd itself ;-)
If ABB manual is saying that bit 0 of status word is HEALTHY BIT then if you are mapping it in DB8.DBW8 then it will appear in DB8.DBX9.0 , because both the companies follows different memory architecture.

Google: Big endian and little endian type memory.

Also see here
 
Last edited:

Similar Topics

I am using Siemens Step 7 with an S7-400 Procesor. I am looking for a sleek way to count a number of bits and store the result as an integer...
Replies
5
Views
6,315
Good Morning, Hoping someone with some Siemens experience can give me a hand with this one. Customer has a S7-200 cpu, which has a 6GK7...
Replies
0
Views
214
I'm just trying to figure out the right method of adding a DO card to an existing rack. It's not the *next* open slot, but I have to move the AO...
Replies
5
Views
526
Hi Siemens Experts, I am hoping someone can shed some light on my issue. I have uploaded the code from a S7-300 (317-2PN/DP) using Step 7...
Replies
9
Views
591
Hello, We monitor the temperature of a pipe via a 4-20mA temperature transducer. This goes into DB135(Read Analog Inputs). The issue I have is the...
Replies
0
Views
615
Back
Top Bottom