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.
New Here? Please read this important info!!!
|May 7th, 2009, 03:40 AM||#1|
Join Date: May 2009
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
|May 7th, 2009, 05:05 AM||#2|
Join Date: Oct 2004
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.
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Siemens Simoreg DC-Master Devicenet EDS file help?||jamesponty||LIVE PLC Questions And Answers||0||November 5th, 2008 06:08 PM|
|Siemens or Omron?||Gromit||LIVE PLC Questions And Answers||30||September 13th, 2008 11:22 AM|
|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|
|Sequencers||randy||LIVE PLC Questions And Answers||42||September 7th, 2004 08:55 AM|