
12-15
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
Table 12-16 Box TAN and Parameters
LAD Box Parameter Data
Type
Memory
Area
Description
EN BOOL I, Q, M, D, L Enable input
EN ENO
ENO BOOL I, Q, M, D, L Enable output
IN OUT
IN REAL I, Q, M, D, L Number
OUT REAL I, Q, M, D, L Tangent of the
number
Table 12-17 Box ATAN and Parameters
LAD Box Parameter Data
Type
Memory
Area
Description
EN BOOL I, Q, M, D, L Enable input
EN ENO
ENO BOOL I, Q, M, D, L Enable output
IN OUT
IN REAL I, Q, M, D, L Number
OUT REAL I, Q, M, D, L Arc tangent of the
number
Status Word Bits
BR CC 1 CC 0 OV OS OR STA RLO FC
Write x x x x x 0 x x 1
Function is executed (EN = 1):
I 0.0
Q 4.0
SIN
OUT
EN ENO
MD10
INMD0
S
NOT
The box SIN is activated when I 0.0 = 1.
The result of SIN (MD0) is stored in the
memory double word MD10. If the result
is outside of the permissible area for
floating-point numbers or if the signal
state of I 0.0 = 0, output Q 4.0 is set.
Figure 12-9 Establishing the Sine of a Floating-Point Number
Floating-Point Math Instructions
Comentarios a estos manuales