difference between := and [:=] in studio 5000 structured text

basically ...

the first one := acts like a LATCH instruction ... specifically, it is a RETENTIVE instruction - so it is able to retain an ON status after a processor's power up condition ...

the second one [:=] acts like an OTE instruction ... specifically, it is a NON-retentive instruction - so the processor will automatically "reset it" to an OFF status - during PRE-SCAN on a power up condition ...

sometimes a programmer will try to build a "structured text" construction intending for it to act like a ladder-logic "seal-in" rung - but they mistakenly use the := instruction ... this can have SEVERE consequences if the rung's output unexpectedly powers-up in an ON condition ... ("severe" as in "lawyer level" consequences) ...
 
basically ...

the first one := acts like a LATCH instruction ... specifically, it is a RETENTIVE instruction - so it is able to retain an ON status after a processor's power up condition ...

the second one [:=] acts like an OTE instruction ... specifically, it is a NON-retentive instruction - so the processor will automatically "reset it" to an OFF status - during PRE-SCAN on a power up condition ...

sometimes a programmer will try to build a "structured text" construction intending for it to act like a ladder-logic "seal-in" rung - but they mistakenly use the := instruction ... this can have SEVERE consequences if the rung's output unexpectedly powers-up in an ON condition ... ("severe" as in "lawyer level" consequences) ...
Initialize your variables! :eek:
 

Similar Topics

3
Replies
3,741
Views
This question may be odd but I am a maintenance guy and just started with Rockwell automation software. I have got a computer from my new current...
3
Replies
19,608
Views
Hello PLCTalk Forum, I have been a member for some time but only of the reading type but here I go writing for the first time. For context, I...
4
Replies
700
Views
Hi, what are the differences between legacy and current product version (Studio 5000) in Factorytalk activation manager and when do you pick one...
1
Replies
1,677
Views
what are the difference between design(local) and runtime(target) in factory talk ME?
5
Replies
1,902
Views
Top