.

GainSwitchSTD Block

Overview

Overview

Description

The GainSwitchSTD outputs the status of a specified axis. The output from this block is usually used for Gain Index control. GainSwitchSTD Block has Enable input for control the operation modes:

 

Enable

Description

0

GainSwitchSTD Block will always output 0.

1

Gain Switch operation is enabling. The output is one of four states specified by the axis status:

0 - NOT MOVING
1 - ACCEL
2 - DECEL
3 - CONSTANT_VEL

Axis Number The number of the axis which is the source of the position data. This number may be absolute or linked to the Model Number.
Enable If Enable is 0, the output of the block is always 0. Otherwise, the block behaves as normal.

Evaluate Block

This block allows you to specify whether the block executes Every Sample, Every Other Sample (Odd or Even), or Every Fourth Sample (and specify the First, Second, Third, or Fourth) or background. This provides greater flexibility in controlling the execution of a model and to preserve performance for other areas of motion control.

User Defined Block Priority When selected, allows you to enter a Priority Code to modify Execution Ordering of this block. For more information, see Block Execution Order and User Defined Block Priority.
Priority For an explanation of how the Priority field is used by the MechaWare Model Downloader, see Block Execution Order and User Defined Block Priority.
User Data 0 Application-specific data. See User Data Storage.
User Data 1 Application-specific data. See User Data Storage.

Matlab/Simulink

Simulink Interface

The Output of the GainSwitchSTD Status block is based on the status of the Axis's trajectory. This block has no inputs.

The Axis Number of the axis providing the status data is determined by the Axis Number parameter. This number can be absolute or linked to the model number.

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

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:

 

Note: Simulation of this block under Simulink is not fully supported at this time.

C++ API

GainSWSTDBlock

Declaration

Public Method

 
class GAINSSWSTDBlock: public virtual Block
{
public:

	// User accessible coefficients
	int32_t				AxisNumber;
        int32_t				Enable;
};
 

Required Header: mechaware.h

Description

The GainSwitchSTD Block outputs the status of a specified axis. The output from this block is usually used for Gain Index control. GainSwitchSTD Block has Enable input for control the operation modes:

Int32_t

AxisNumber
Axis number to check the status of
Int32_t
Enable
Switch to enable operation. Valid values are 0, or other.

Methods

Block Methods

 

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