IEC operator⮫ “Overview”: Subtraction of one variable from another of the types: BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT, UDINT, REAL and LREAL.
A TIME variable may also be subtracted from another TIME variable resulting in third TIME type variable. Note that negative TIME values are undefined.
Example in ST:
var1 := 7-2;
Example in FBD:
![sub](media/imge463331c69cdb0be0a317d3112739ae5_1_--_--_PNG96.png)