CAST_TO_DWORD(a)
Converts the type of a to a DWORD type without changing the underlying bit pattern.
Parameters
a (REAL or DINT)
The value whose data type is to be converted to a DWORD.
Return Value
Returns a DWORD.
Remarks
Converts the data type to DWORD data type by reinterpreting the raw 32 bits. Typically used with communications to correct the actual data type of a data value.
Examples
CAST_TO_DWORD(5.0) returns 16#40A00000
CAST_TO_DWORD(1075314688) returns 16#40180000
See Also
Standard Functions | CAST_TO_REAL | CAST_TO_DINT
Copyright © 2024 Delta Computer Systems, Inc. dba Delta Motion