You are not registered yet. Please click here to register!

plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!

Go Back - Interactive Q & A > - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Thread Tools Display Modes
Old May 7th, 2009, 03:40 AM   #1
United Kingdom

baboon is offline
Join Date: May 2009
Location: rotherham
Posts: 1
Siemens Step 7 bits and words ???


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
  Reply With Quote
Old May 7th, 2009, 05:05 AM   #2

manmeetvirdi is offline
Join Date: Oct 2004
Location: India.
Posts: 750
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 by manmeetvirdi; May 7th, 2009 at 05:33 AM.
  Reply With Quote
Jump to Live PLC Question and Answer Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Siemens or Omron? Gromit LIVE PLC Questions And Answers 35 November 14th, 2017 10:44 AM
Sequencers randy LIVE PLC Questions And Answers 43 December 20th, 2014 03:10 PM
Siemens Simoreg DC-Master Devicenet EDS file help? jamesponty LIVE PLC Questions And Answers 0 November 5th, 2008 06:08 PM
Extracting bits out of a double word with Siemens S7 kemppioy LIVE PLC Questions And Answers 4 November 5th, 2007 08:47 AM
Comparing bits, bytes, words and double words in SCL? BoSChoW LIVE PLC Questions And Answers 14 May 6th, 2006 02:37 PM

All times are GMT -5. The time now is 08:50 PM.