Dependencies between DB variables (TIA17)

zoomable

Member
Join Date
Oct 2021
Location
Ontario
Posts
36
Hi all,

I'm not a PLC programmer but I am interfacing with a PLC for a project (mostly the integrated OPC server on 1211C).

What is the best way to update a DB variable based on the value of another DB variable (I'm in TIA Portal 17)?

In the various YouTube videos I've watched in passing, a simple conditional update like this seems to be handled by adding an instruction to 'Network k'. I don't understand what these Network segments are in TIA...

Is there a programmatic trigger that could be used to automate the update?

Thanks
z

UPDATE: Add pseudocode

if _nest1Ready then _nest1Result := 0

where _nest1Ready is a bool in DB1, and _nest1Result is an int in DB1
 
Last edited:
If the block was created using LAD, you can intermingle LAD/SCL/STL networks as desired. If the block was created in SCL, you can only use SCL in the block. (Other block types are available, but not mentioned for clarity)
 
Getting static errors: "Access to your own instance DB is not permitted".

On Siemens forum I see this error can be suppressed. However it must exist for a reason?

My DB is based on a FB. Maybe that is why.

UPDATE: Figure it out; made reference to the FB variables instead.
 
Last edited:

Similar Topics

Hello All, Is there a way in Step 7 5.5 SIMATIC Manager to export a data block so that it can be imported into another project with all...
Replies
11
Views
3,776
Dear All, Currently i'm working with Endress Hauser flowmeter and AB PLC and try to integrate with 2 items. Flow meter spec using is Promass...
Replies
1
Views
20
Something I've never thought about before... maybe you folks have some thoughts or experience. I have a customer that uses a Weidmuller, Modbus...
Replies
3
Views
188
Hello, I am currently in the final week of my internship and I have encountered issues with communication between a PowerFlex 700 variable...
Replies
8
Views
241
I’m attempt to establish a communication between two simulator M580 CPUs, using a READ_VAR, I have two vitalization Windows 10 in VMWare and each...
Replies
4
Views
174
Back
Top Bottom