siemens s7 symbolic field list

Example implementation:

In the interests of furthering my learning I've been looking through LD's example code.

2 questions spring to mind...

1) Am I right in thinking that the TAK command is there to take put the 'new' value (after detecting the words are different) into ACCU1 so that it can be transferred to the 'copy' table? If so, I presume that if order in which the DB's were opened and compared was the other way around then the TAK wouldn't be needed?

i.e.
Code:
If we used:
OPN DB[#iCopyDB]
L W[AR1,P#0.0]
OPN DB[#iTableDB]
L W[AR2,P#0.0]
==I
JC past
S #bChangeDetected
TAK // Now we don't need this, right??
T W[AR1,{#0.0]
etc etc

2) Am I right in thinking that M100.0 (the RET VAL) will one be on for 1 scan as, the next scan, the DB's will be equal again so it will go off ??

Is this correct??

Thanks

;-)
 

Similar Topics

Hello, I am new to Siemens programming. I have been an Allen-Bradley guy for years (20+). I am struggling to understand some of the language...
Replies
5
Views
6,013
HI everyone, i am new to Siemens plc programming and i am in need of some help. yesterday we had an S7-1200 CPU 1214C fail to turn on an output to...
Replies
5
Views
72
Hi PLC people, think about this scenario: The PLC is somehow connected to the same network with the facilities` network. Then someone connects to...
Replies
2
Views
45
Hello everyone, I've had this issue for the last 2 days where I try to assign the profisafe address to an IO block (6ES7 146-6FF00-0AB0) but when...
Replies
5
Views
139
Hello, good morning, I have been having two problems with the Tia Portal software. The first is that I have installed it on my computer and...
Replies
5
Views
172
Back
Top Bottom