35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
=== FC 127: Set_Output [STL] ===
|
|
INTERFACE:
|
|
Input:
|
|
Enable : Bool // Baustein aktivieren
|
|
Status : Bool // Angegebenen Ausgang auf diesen Status steuern
|
|
OutByte : DInt // Ausgangsbyte zum Steuern
|
|
OutBit : Int // Ausgangsbit zum Steuern
|
|
Output:
|
|
InOut:
|
|
Temp:
|
|
AR1Zeiger : DWord // Statt AR1 (ging nur bis DB-Länge <= 8191 Bytes)
|
|
Constant:
|
|
Return:
|
|
Ret_Val : Void
|
|
|
|
--- NW 1: Baustein aktiviert ? ---
|
|
AN Enable
|
|
BEC
|
|
|
|
|
|
--- NW 2: Ausgang steuern ---
|
|
L OutByte // Ausgangsbyte zum Steuern
|
|
SLD 3
|
|
L OutBit // Ausgangsbit zum Steuern
|
|
OW
|
|
T AR1Zeiger // Statt Dyn.Bereichsstop (ging nur bis DB-Länge <= 8191 Bytes)
|
|
|
|
A Status
|
|
= QX [AR1Zeiger] // Ausgang steuern
|
|
|
|
|
|
--- NW 3: Ende ---
|
|
BE
|
|
|