20 lines
626 B
Markdown
20 lines
626 B
Markdown
|
|
||
|
FC Read DI: Reads peripheral inputs from the Input parameter. Converts the UINT XXXXX to XXXX.X and returns the XXXX.X value, except
|
||
|
in the special cases where the addresses are 0 and 1.
|
||
|
|
||
|
FC Read DI: Legge gli input periferici dal parametro Input. Converte l'UINT XXXXX in XXXX.X e restituisce il valore XXXX.X, eccetto
|
||
|
nei casi speciali in cui gli indirizzi sono 0 e 1.
|
||
|
|
||
|
```pascal
|
||
|
CASE #Address OF
|
||
|
0:
|
||
|
#Input := FALSE;
|
||
|
1:
|
||
|
#Input := TRUE;
|
||
|
ELSE
|
||
|
#Input := PEEK_BOOL(area := 16#81, dbNumber := 0, byteOffset := (#Address / 10), bitOffset := UINT_TO_INT(#Address MOD 10));
|
||
|
END_CASE;
|
||
|
```
|
||
|
|
||
|
|