
14-6
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
14.4 Integer to Double Integer
The Integer to Double Integer conversion instruction reads the contents
specified in the input parameter IN as an integer and converts the integer to a
double integer. The output parameter OUT provides the result. ENO and EN
always have the same signal state.
Certain restrictions apply to the placement of the Integer to Double Integer
conversion box (see Section 6.1).
Table 14-4 Integer to Double Integer Conversion Box and Parameters
LAD Box
Parameter Data Type Memory Area Description
IDI
EN BOOL I, Q, M, D, L Enable input
_
EN ENO
ENO BOOL I, Q, M, D, L Enable output
IN OUT
IN INT I, Q, M, D, L Value to convert
OUT DINT I, Q, M, D, L Result
Status Word Bits
I 0.0
If the signal state of input I 0.0 is 1, the
conversion is executed. The contents of
memory word MW10 is read as an integer
and converted to a double integer. The result
is stored in memory double word MD12. If
the conversion is not executed, the signal
state of output Q 4.0 is 1 (ENO = EN).
Q 4.0
I_DI
EN ENO
MD12INMW10
NOT
BR CC 1 CC 0 OV OS OR STA RLO FC
Write 1 – – – – 0 1 1 x
Function is executed (EN = 1):
OUT
Figure 14-4 Integer To Double Integer
Description
Move and Conversion Instructions
Comentarios a estos manuales