Accessing DINT from DB in step 7 V5.6

Join Date
Dec 2015
Location
Windsor
Posts
27
Hi everyone,

I am using step 7 Simatic manager V5.5 for S7-300 (cpu319-3PN/DP). I have created a udt in DB1 which contains DINT and I want to access it from OB1. I could not find the right access name for DINT like DB1.DBD1 (which I know is for DWORD) I have read in a few forums that you can access bit, byte, word and dword only when accessing from DB. Please let me know if it is true.
Also, second question is if I change my DINT to DWORD would I be able to perform mathematical equations like add subtract etc. on Dword data type.

Thank you!
 
one simple table with a column indicating its declaration. The following procedures were created using Siemens SIMATIC STEP 7 version 5.4 software. SFC 6, RD_SINFO, DB_FUNCT, Read OB Start Information FC 5, DI_STRNG, IEC, Data type conversion DINT to STRING. Instructions on different methods of indirect addressing in the Siemens S7-300 By using the methods of indirect addressing the address used by an NOTE: A DINT can be converted to a POINTER by simply shifting the double The OPN instruction can open either a shared data block (DB) or an instance data block (DI).
 
Sameer.

The reason you dont see the symbolic address i.e. "mydb".mydint is probably bacause the absolute address you entered is wrong.
Db1.dbd1 is unlikely because it is an even address. More probably Db1.dbd0.
Open the Db and the first column should show you the offset.
 
Hi I just gave an example, I understand how the offset addresses work. When I defined the variable as DINT and tried to access the variable using the following format DBx.DBDx it would show me as error but when I change the variable's data type to Dword then DBx.DBDx showed me no error.
 

Similar Topics

Hi all. When allocating a bit from a DINT in a 5000 plc to say, the visibility attribute of an object in a pv+, the DINT as shown in the tag...
Replies
2
Views
1,880
Hi all, I am having issues accessing my Cimplicity software - the site code changed after re-install and I am no longer able to attain a new key...
Replies
10
Views
158
For the past few day, I have had problems accessing the Rockwell Knowledgebase. When I try to access it (and I do have a TechConnect Support...
Replies
7
Views
402
Hi, Small issue i've really been beating myself up over today. I've been working with Panelview panels for years. Currently working on an older...
Replies
1
Views
589
Dear experts, I have the following setup: CPU-313C (6ES7313-5BF03-0AB0 V2.6) + CP343-1 (6GK7343-1EX30-0XE0 V2.0) communicating with Siemens PC...
Replies
7
Views
2,686
Back
Top Bottom