Topic: DMD0157

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 (Element Browser) or Down-Arrow key (Auto-Complete) at any time to see a complete list of the memory locations that are valid in the current field of the instruction.

 

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

 

  • Data Block - will display a list of 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 - the number of individual elements the Data Block contains

    • Number of BYTEs in Block - the number of BYTEs of memory the Data Block consumes

    • Number of BITs in Block - the number of BITs of memory the Data Block consumes

    • Data Type ID (Schema ID) - the internal ID number assigned to the Data Block
      (see below for a list of the schema IDs)
       

  • Heap Item - will display a list of all of the Heap Items that are currently configured.
     

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

    • Number of DWORDs in Heap Item - the number of DWORDs of memory the Heap Item consumes

    • Data Type ID (Schema ID) - the internal ID number assigned to the Heap Item
      (see below for a list of the schema IDs)

 

Output - designates a location to store the result. This can be any writable numeric location.

 


Status Display:

The Status display of the Query Information about Data Memory instruction will display the value stored in the Output location.

 

The gray triangle at the right end of an input leg indicates the input is edge triggered.


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:

 


Rung Example: