Home > Net >  Siemens DB block after optimization block access to PC can be read directly to the corresponding add
Siemens DB block after optimization block access to PC can be read directly to the corresponding add

Time:09-17

Write a machine into line is not too long, because take a housing project, others said the company to write PLC program before writing the man machine PC to read and write operations on the optimal access DB block (outsourcing to others, all leave program source code, q is a can do), but before I write is done with the offset value of the absolute address of access (which is similar to DB1. DBD0), Internet and didn't find who write a machine using optimized access DB, so I want to ask to check PC can also directly after the optimal access to read and write access the DB block? If you can sign addressing the address in the upper machine should be written in what style?

CodePudding user response:

Symbolic access: & lt; The DB block name & gt; . & lt; The variable name & gt; PC can't access, bosses to help look at what a format

CodePudding user response:

Program to change myself, be familiar with the process yourself to write,

CodePudding user response:

I currently use absolute address read, let the PLC to cancel optimal access to go, just a tick, then download a problem!

CodePudding user response:

Even when using S7 agreement, cannot use optimization block access,

CodePudding user response:

Well, can't optimized by addressing access, can only be accessed through symbolic address

So, you can ask them to give you the symbol table

CodePudding user response:

Optimization, data address is automatically assigned, not offset the claim

CodePudding user response:

reference 5 floor wanghui0380 reply:
well, can't optimized by addressing access, can only be accessed through symbolic address

So, you can ask them to give you the symbol table

Symbolic access: & lt; The DB block name & gt; . & lt; The variable name & gt; Similar DB name for the TEST, the inside of the access location for test1, writing for the TEST. The test1 this appearance, but access has been an error, optimized with the symbol can't access to the same place checked, I am very confused if S7.net does not support this access

CodePudding user response:

reference line, 4/f, Jon response:
even if used S7 protocol, also cannot use optimization block access,

Optimization block unless, that is to say, our access to the library classes or rewriting S7 is unable to access the optimized DB block, thanks

CodePudding user response:

reference potatoes don't look back forward reply: 3/f
I currently use absolute address read, let PLC cancel optimal access to go, just a tick, then download a problem!

Yes now I also is such, but said the company leadership has been predecessors can I should be no problem, skull pain, run, I also have to run (helpless stand hand)
  •  Tags:  
  • C#
  • Related