.

Memory User Buffer

Overview

Overview

The Memory User Buffer block is used to input a user buffer register’s contents into a MechaWare block. Any of the controller’s user buffer registers can be accessed by the Memory User Buffer block. Currently, there are 1024 user buffer registers (defined by MEIXmpUserDataSize), each user buffer register is 32 bits. Double and long integer (64-bit) transfers use two user buffer registers.

The Memory User Buffer Number defines the register location that will be accessed by this block. The data types that are input to the block from the user buffer are float (32 bits), double (64 bits), integer (32 bits) or Long integer (64 bits). If the data being accessed from the user buffer is 64 bits, odd user buffer numbers should be specified, and the next even user buffer should not be used.

The configuration values for this block are as follows:

 
Memory User Buffer Number

Memory User Buffer Number.

Defines the user buffer register that is accessed by this block.

Data Type

Defines the data type of the data being accessed in the user buffer.

0 = float (32 bits)
1 = double (64 bits)
2 = short integer (16 bits)
3 = integer (32 bits)
4 = long integer (64 bits)

Subsample Code A code which determines the schedule for updating this block (every sample, even samples only, etc.) See Subsampling.
User Data 0 Application-specific data. See User Data Storage.
User Data 1 Application-specific data. See User Data Storage.

Matlab/Simulink

Simulink Interface

memout

The Memory User Buffer Number defines the register location that will be accessed to by this block. Data Type defines the data type of the internal variable being written to by the block.

0 = float (32 bits)
1 = double (64 bits)
2 = short integer (16 bits)
3 = integer (32 bits)
4 = long integer (64 bits)

The block has two user data fields (User Data 0, User Data 1) to store application-specific data for convenient storage and retrieval. See User Data Storage for details.

The block's update schedule is determined by the Subsample Code (See Subsampling). The following Parameter Dialog Box can be opened by double-clicking on the block in a Simulink Model:

output_sim2

 

C++ API

MEMORYBlock

The Memory User Buffer block is used to direct input from the user buffer. This block has no configurable parameters.

See Also

Memory
Output
Noise Generator MemoryOut
Actual Position Memory Out User Buffer
Command Position Scope
Error Feedback
Memory User Buffer Reset Status
Command Acceleration Test In
Command Velocity Test Out

 

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2012 Motion Engineering