Note the following if you wish to transform your LD program to an ST program:
1. Network with normal output |
||
---|---|---|
LD program |
ST program code |
Remarks |
|
||
Also possible: |
|
Same behavior, but requires more resources. NOTE A WHILE loop would cause a scan time error and lead to a watchdog error. |
2. Network with a set or reset output |
||
LD program |
ST program code |
|
|
||
3. Network with pulse flag (rising/falling edge) |
||
LD program |
ST program code |
Remarks |
|
Explicit query of edge detection without function or function block. |
|
Also possible: |
|
Using R_TRIG or F_TRIG function block instances from the IEC standard library. |
Also possible: |
|
Using the basic functions DF or DFN. |