Да.
Код:
FUNCTION_BLOCK Relay
VAR_INPUT
	voltage: REAL;
	threshold: REAL;
END_VAR
VAR
	no, nc: BOOL;
END_VAR

no := voltage > threshold;
nc := voltage < threshold;