beautypg.com

Dint data type, Dword data type, Dint – Delta RMC151 User Manual

Page 340: Dword, As a dword

background image

RMC70/150 and RMCTools User Manual

A BOOL number in the RMC is a single bit. In the RMC, a single bit cannot exist by itself. It is

always a part of a of a DWORD value. For details on creating a boolean variable, see the

Boolean Variables topic.

Addressing a BOOL Value

In an expression entered in RMCTools:
A boolean number can be addressed in the following ways in an expression. Notice that

within the RMC, individual bits cannot be addressed using the DF1 or Modbus/RTU

addressing formats.

Tag name: Add a period ( . ) and the bit number or name after the tag name of the

register. The register must be a DWORD type.

Examples: MyVariable.0

Note: MyVariable must be a

DWORD

_Axis[0].StatusBits.InPos

_Axis[0].StatusBits.13

IEC addressing: Add a period ( . ) and the bit number after the IEC address of the

register. The register must be a DWORD type.

Examples: %MD8.1.12 - bit 12 in the Error bits register

%MD56.10.16 - bit 16 in the variable 10

From a host controller:
When communicating with the RMC from an external host controller, to address a bit, you

must specify the bit in the register that contains it. Not all host controllers allow this,

depending on the protocol. For example, addressing a bit in an F file using an Allen-

Bradley protocol is not supported in many HMIs.
Typically, specifying bits in any word is possible with most controllers using Modbus/RTU

or Modbus/TCP. Notice that you may need to address the upper 16-bit portion of the 32-

bit register in order to pick out the bits higher than 15.

5.12.3. DINT Data Type

A DINT number in the RMC is a signed 32-bit integer number. When typing a DINT

number in an expression, it should not include a decimal point, or it may be interpreted

as a REAL.
For details on creating a DINT variable, see the Variables topic.

5.12.4. DWORD Data Type

A DWORD number in the RMC is a 32-bit string of bits. In RMCTools, DWORDS are displayed

with a "16#" or "0x" prefix. For example, 16#1A0002Af.
Each bit in a DWORD data type is a boolean (BOOL data type) and can be individually

addressed by adding "." and then the bit number.
Example: MyDWordVariable.12 is a boolean.

Bit Ordering
DWORDs are displayed in RMCTools with the highest byte first. For example, in

16#80000000, bit 31 is set. 16#00000001, bit 0 is set.

320

Delta Computer Systems, Inc.

This manual is related to the following products: