glavanov

Got Simple vs Siemens S7-300

7 posts in this topic

Posted (edited)

Dear All,

I have urgent task connecting GS2110 HMI with Siemens S7-300 CP 343 Ethernet OP module.

I need to monitor the status of slitting machine on the GS HMI.

I do't have the hardware yet, but the machine manufacturer have send me address list for DB's

In Monday arrives a guy, who will install the CP 343 module and i need to do quick connection test, but  i have never handled Siemens DB's before.

No time to research...

Can someone help me understand DB's structure, by addressing the lamps in Status_test.gtx with the bits from DB1101 list

I thought i got it, but stuck on +1.6 and +1.7 since DB1101.DBW0.b0 to DB1101.DBW0.b15 can be added...

Should i continue with DB1101.DBW2.b3 at +1.3? 

I am confused... :)

DB1101.thumb.jpg.35330edf10925d189c25db3

Thank you in advance!

 

Status_test.GTX

Status_test.GTX

Edited by glavanov

Share this post


Link to post
Share on other sites

Posted (edited)

See this snip from the Mitsubishi help file:

 

Edit: Although looking at it I think there is an error as it makes no sense! I think you can deduce how it is supposed to work though.

All_is_explained.JPG

Edited by Veganic

Share this post


Link to post
Share on other sites
7 minutes ago, Veganic said:

See this snip from the Mitsubishi help file:

 

Edit: Although looking at it I think there is an error as it makes no sense! I think you can deduce how it is supposed to work though.

All_is_explained.JPG

Edit 2: 

Add the word and display as a binary as a useful check.

I think the table should be

DB1.DBW0.B0 = DB1.DBX0.0

DB1.DBW0.B1 = DB1.DBX0.1

DB1.DBW0.B2 = DB1.DBX0.2

...

DB1.DBW0.B7 = DB1.DBX0.7

DB1.DBW0.B8 = DB1.DBX1.0

etc

BinDisplay.JPG

Share this post


Link to post
Share on other sites

Posted (edited)

Thank you Veganic. I guess i'll figure it out on the fly... no way to simulate this.

Call me stupid, but still confused! :)

Also steering at the help file table and make's no sense to me....

How DB1.DBW0.b7 = DB1.DBX1.7 and DB1.DBW0.b8 = DB1.DBX0.0 ?!

I have 2 more DB's with a lots of INT's, DINT's and some reals... this is gonna be FUN!:)

Edited by glavanov

Share this post


Link to post
Share on other sites

The example from the help file appears to be incorrect,

The data blocks in s7-300 are natively byte wide (8 bits), the GOT registers on the other hand are 16 bit wide, so it requires 2 bytes of the Siemens DB to make up a 16 bit integer in the GOT.

DB1.DBX0.0 - > DB1.DBW0.b0

DB1.DBX0.7 - > DB1.DBW0.b7

DB1.DBX1.0 - > DB1.DBW0.b8

DB1.DBX1.7 - > DB1.DBW0.b15

etc., etc.

Share this post


Link to post
Share on other sites

And B1.DBX2.0 - > DB1.DBW2.b0...

thank you Nehpets. The big picture is just a 32 bit data register.:-1

That's what i thouth at first, but thinking mitsubishi like (16/32 bits) and confusing GOT help got me.

 

Share this post


Link to post
Share on other sites

Ok, the DB party is on...

Here on address +16.0 begin's new structure.

At address 0.0 i have 12 bytes of character array. it should be 1 byte(8 bits) for each character, so i have 12 characters in this array(+0.0 to +11.0), right?

Any idea, how can i see this array on the GS HMI?:doh:

 

 

Array.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now