The RMC's expressions are strongly typed. This means that any math or comparison operation in an expression that involves multiple tags must operate on tags of the same data type. This does not mean that each expression must contain only the same data types - rather, each operator within an expression must operate on the same data types. Data types can be converted using specific conversion functions.
The RMC data have the following internal types:
Data Type |
Description |
32-bit floating point number. When typing a REAL number, it must include a decimal point, or RMCTools will assume it is a DINT. |
|
32-bit integer number. |
|
32-bit string of bits. Each bit in a DWORD data type is a boolean and can be individually addressed by adding "." and then the bit number. Note:
|
|
Boolean, 1 bit, either True or False. For discrete I/O, On = True, Off = False. As a bit in a DWORD, 1 = True, 0 = False.
Each bit in a DWORD data type is a boolean and can be individually addressed by adding "." and then the bit number. |
To find the data type of a register, use the Address Selection Tool, or the Register Maps.
Arrays
An array is a numerically indexed sequence of elements of the same data type. The RMC supports arrays of each 32-bit data type: REAL, DINT, and DWORD. See the Arrays topic for details.
Internal versus External Data Types
Some RMC75 and RMC150 registers have different data types depending on whether they are accessed from user programs or externally, such as from a PLC. The RMC150 Register Map and RMC75 Register Map topics list the external and internal data types of the registers. When reading from and writing to registers in the RMC75 or RMC150 via one of the communication protocols, use the external data type. The RMC200 does not have different internal and external data types.
The different external and internal data types are intended to make it easier to communicate with the RMC. Some registers that are DINT or DWORD internally are a REAL externally, so that the PLC does not have to deal with may different data types.
Converting Data Types
When used in a math or compare operation in expressions, data types can not be mixed without explicitly converting them. The following functions convert data to different data types:
REAL_TO_DINT(a)
DINT_TO_REAL(a)
DWORD_TO_DINT(a)
DINT_TO_DWORD(a)
See the functions topic for usage details.
See Also
Data Type REAL | Data Type DINT | Data Type DWORD | Data Type BOOL
Copyright © 2025 Delta Computer Systems, Inc. dba Delta Motion