Beckhoff Automation GmbH & Co. KG TX1200 — 7.2.3.3 SUB

Reference programming Returns the tangent of a number. IN can be type BYTE, WORD, DWORD, INT, DINT, REAL, SINT, USINT, UINT, UDINT, OUT must be type REAL. 7.2.3 Arithmetic Operators 7.2.3.1 ADD Addition of variables of the types: BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT, UDINT, REAL and LREAL.Two TIME variables can also be added together resulting in another time (e.g., t#45s + t#50s = t#1m35s). Example in IL: LD 7 ADD 2,4,7 ST var1 Example in ST: var1 := 7+2+4+7; Example in FBD: 7.2.3.2 MUL Multiplication of variables of the types: BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT, UDINT, REAL and LREAL. Example in IL: LD 7 MUL 2,4,7 ST var1 Example in ST:

var1 := 7*2*4*7; Example in FBD: 7.2.3.3 SUB 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 IL: TX1200 197 Version: 1.3