.

MemoryOut

Overview

Overview

The MemoryOut block is used to output a MechaWare block’s output to an internal memory location, other than those provided by the standard blocks. Any internal variable on the controller can be written to by the MemoryOut block.

The Memory Address defines the internal variable memory location that will be written to by this block. The data type of the internal variable that is written to can be float (32 bits), double (64 bits), integer (32 bits) or a Long integer (64 bits).

The configuration values for this block are as follows:

 
Motor Address

Memory Address.

Defines location of the internal input variable. Format is Hexadecimal.

Data Type

Data Type.

Defines the data type of the internal variable memory being written to.

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

output_sim1

The Memory Address of the MemoryOut block specifies which memory location the block is writing to. The address is in hexadecimal format. Addresses for output variables can be obtained using VM3.

Data Type defines the type 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

MEMOUTBlock

Declaration

Public Method

 
MEMOUTBlock&   MEMOUT();
  Required Header: mechaware.h

Description

The MEMOUT block is used to output to memory locations other than those provided by the standard output blocks. Any internal variable on the controller can be written to using the MEMOUT block. See the Overview for details.

Parameters

 
long MEMOUT().Address

Memory Address of the internal variable being written to.

long MEMOUT().DataType

Data type of the internal variable being written to.

Methods

Block Methods

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