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
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: