Topic: DMD0140

Help File Version: 2.9.4.37

DATAINFO - Query Information about Data Memory


The Query Information about Data Memory (DATAINFO) instruction is used to determine the size or Schema ID of a Data Block or a Heap Item.

 

 


Parameters:

Note: Use the F9 key to open the Default Element Selection Tool (the Element Picker or the Element Browser) or use the Down-Arrow key (Auto-Complete) on any parameter field to see a complete list of the memory locations that are valid for that parameter of the instruction.

 

Memory Type selects which area of the Do-more CPU contains the memory item to query:

 

  • Data Block is a drop-down list that will display all of the Data Blocks that are currently configured.

Information Type selects what information about the data block to query for :

Number of Elements in Block is the number of individual elements in the memory block.

Number of BYTEs in Block is the total number of BYTEs of memory the data block consumes.

Number of BITs in Block is the number of BITs of memory the data block consumes.

Data Type ID (Schema ID) is the internal ID number assigned to the data block (see below for a list of Schema IDs).

Block Number is the unique identifier for this data block.

  • Heap Item is a drop-down list that will display all of the Heap Items that ere currently configured.

Information Type selects what information about the Heap Item to display.

Number of Bytes in Heap Item is the number of BYTEs of memory the Heap Item consumes.

Data Type ID (Schema ID) is the internal ID number assigned to the data block (see below for a list of Schema IDs).


Output specifies a numeric memory location to store the result. This can be any writable numeric location.

 


Input Leg selects which of the following power-flow conditions will cause this instruction to run:

 

  • Edge Triggered means the instruction will run to completion each time the input ladder logic transitions from OFF to ON.
     
  • Power flow enabled means the instruction will run repeatedly as long as the input ladder logic remains ON.

 


Status Display:

 


Schema ID

Description

Schema ID

Description

1 (0x0001)

BIT

265 (0x0109)

File

2 (0x0002)

Unsigned BYTE

266 (0x010A)

Program

3 (0x0003)

Signed BYTE

267 (0x010B)

Device Reference

4 (0x0004)

Unsigned Word

 

 

5 (0x0005)

Signed Word

268 (0x010C)

CTRIO

6 (0x0006)

Signed DWord

269 (0x010D)

CTRIO Counter

7 (0x0007)

REAL

270 (0x010E)

CTRIO Timer

 

 

271 (0x010F)

CTRIO Pulse-Catch

256 (0x0100)

Timer

272 (0x0110)

CTRIO Pulse

257 (0x0101)

Counter

273 (0x0111)

CTRIO Discrete

258 (0x0102)

String

274 (0x0112)

CTRIO Raw

259 (0x0103)

PID

 

 

260 (0x0104)

Clock

275 (0x0113)

Drum

261 (0x0105)

Task

276 (0x0114)

Stream

262 (0x0106)

Peerlink

277 (0x0115)

Server

263 (0x0107)

RampSoak

278 (0x0116)

Packet

264 (0x0108)

Reserved

279 (0x0117)

Process Simulator

 


See Also:

HWINFO - Get Hardware Information

 

Memory Configuration

Data Blocks

 

Heap Items

 

User Data Types


Rung Example: