40 lines
774 B
Markdown
40 lines
774 B
Markdown
|
|
||
|
#### FC552: IN/OUT
|
||
|
***
|
||
|
|
||
|
![[Pasted image 20240112115633.png]]
|
||
|
|
||
|
If Signal_Is_Forced signal is enabled the DIG_Signal is not write
|
||
|
|
||
|
```pascal
|
||
|
IF NOT #Signal_Is_Forced THEN
|
||
|
// If is not Forced the DIG_Signal is set with the Real signal
|
||
|
#DIG_Signal := #Signal;
|
||
|
ELSE
|
||
|
// Set the Allarm bit if one signal is Forced on the HMI
|
||
|
#Warning_Signal_Forced := TRUE;
|
||
|
END_IF;
|
||
|
```
|
||
|
|
||
|
#### FC553: OUT
|
||
|
***
|
||
|
|
||
|
![[Pasted image 20240112115603.png|500]]
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
```pascal
|
||
|
IF NOT #Signal_Is_Forced THEN
|
||
|
// If is not Forced the DIG_Signal is set with the Real signal
|
||
|
#DIG_Signal := #Signal;
|
||
|
ELSE
|
||
|
// Set the Allarm bit if one signal is Forced on the HMI
|
||
|
#Warning_Signal_Forced := TRUE;
|
||
|
END_IF;
|
||
|
IF #Visualization THEN
|
||
|
#OUT := #DIG_Signal;
|
||
|
ELSE
|
||
|
#OUT := FALSE;
|
||
|
END_IF;
|
||
|
```
|