Obsidean_VM/04-InLavoro/9..... MASTER Transport/Standard Transport/FC552 - FC553 FC Signal For...

40 lines
774 B
Markdown
Raw Permalink Normal View History

2025-02-18 05:37:27 -03:00
#### 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;
```