|
Post by sparky on Mar 7, 2017 6:50:51 GMT -8
What is the structured text syntax to reset a value for a tag to zero when PAC is first powered up? Is there an inline code method instead of placing extra code in the Power-Up Handler optional task. How to auto reset a variable on power up in Structured Text?
|
|
|
Post by profbyrd on Mar 7, 2017 8:43:03 GMT -8
With some PACs (Programmable automation controllers), there is a syntax of placing [ ] around assignment symbol " := " to make associated tag/memory area non-retentive. So it would look like this [:=]
Structured Text programming example 1: tag [:=] expression ; Example 2: parts_in_oven [:=] parts_in_oven + 1 ;
|
|