Table of Contents

Table of Contents

FlexScript Class - MFC.Motor

MFC.Motor

Inherits from Object

Description

A class that provides properties for controlling a Mass Flow Conveyor Motor.

Properties

sections Accesses the motor's connected sections as MFC.Section objects.
speed Gets and sets the speed of the motor.

Details

Do no remove, this fixes the anchor on doc.flexsim.com

MFC.Motor.sections

readonly sections

Description

Accesses the motor's connected sections as MFC.Section objects.

Accessing the Number of Sections

You can access the number of sections connected to the motor with the following code:

motor.sections.length

Accessing Sections by Rank

You can access an individual section by rank with the following code:


motor.sections[1] // first section
motor.sections[mfc.sections.length] // last section
motor.sections[i] // i-th section
			
Do no remove, this fixes the anchor on doc.flexsim.com

MFC.Motor.speed

double speed

Description

Gets and sets the speed of the motor.

Setting the speed of a motor will change the speeds of all connected sections. If a section has two motors connected to it, then the speed of the section will be averaged between the two motor speeds.


motor.speed = 1;
double speed = motor.speed;