Mitsubishi Electric MELSEC-Q/L Programming Manual page 76

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

When the DWORD_TO_WORD(_E) function is executed, low-order 16-bit data of double word (unsigned)/32-
bit string type data input to (s) are converted into word (unsigned)/16-bit string type data.
High-order 16-bit data are discarded.
Operation error
• No operation error occurs.
Program example
■DWORD_TO_WORD(_E)
The program which converts double word (unsigned)/32-bit string type data input to (s) into word (unsigned)/16-bit string type
data, and outputs the operation result from (d).
• Function without EN/ENO (DWORD_TO_WORD)
[Structured ladder/FBD]
[ST]
g_word1 := DWORD_TO_WORD(g_dword1);
• Function with EN/ENO (DWORD_TO_WORD_E)
[Structured ladder/FBD]
[ST]
g_bool3 := DWORD_TO_WORD_E(g_bool1, g_dword1, g_word1);
5 APPLICATION FUNCTIONS
74
5.1 Type Conversion Functions

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents