LREAL_TO_DWORD
This function will perform the data type conversion from LREAL to DWORD.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_INPUT | ||||
| B | EN | BOOL | The function will continue to execute every scan while EN is held high and there are no errors. | FALSE |
| V | In | LREAL | Input LREAL value to be converted. | LREAL#0.0 |
| VAR_OUTPUT | ||||
| B | ENO | BOOL | Indicates that the function is operating normally and the outputs of the function are valid. ENO confirms that the value encoded into a DWORD is equivalent to the truncated value of the input LREAL. | |
Note:
The DWORD value of the output contains the converted value from In. This value should match the integer component of the In value, as the decimal portion is lost during conversion.