Numeric (IEC) | |||
Inputs/Outputs | Operands | Data Types | |
IN | VD, ID, QD, MD, SMD, SD, LD, AC, Constant, *VD, *AC, *LD | REAL | |
OUT | VD, ID, QD, MD, SMD, SD, LD, AC, *VD, *AC, *LD | REAL |
Memory Ranges | ENO | Errors | Instruction Support for S7-200 CPUs | SIMATIC/International Mnemonics | ||
The Tangent instruction evaluates the trigonometric function of the angle value IN and places the result in OUT. The input angle value is in radians. To convert an angle from degrees to radians, multiply the angle in degrees by 1.745329E-2 (approximately by p / 180).
Error Conditions that Set ENO = 0: SM1.1 (overflow), SM4.3 (run-time), 0006 (indirect address) This instruction affects the following Special Memory bits: SM1.0 (zero); SM1.1 (overflow); SM1.2 (negative) |