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,724
Hello Everyone, I have a issue with communication between two different PLCs. So here is the facts, The Master PLC is Guard Logix 5069 with IP...
Replies
4
Views
51
i have two plc 1. s7-1212dc/dc/dc ip; 192.168.0.1 2. s7-1500 1513-1pn ip; 192.168.3.2 i need to get data from plc1 to plc2. any idea how to do...
Replies
5
Views
86
I'm using a SLC typed write from the ControlLogix5572 to the MicroLogix 1400, with path: 2, (MicroLogix IP). The ControlLogix equipment has a...
Replies
0
Views
87
I'm trying to write a data in Arduino using MODWR function block .I used the code I got from online for both PLC and Arduino. I made the wiring...
Replies
4
Views
100
Back
Top Bottom