MFC.Section

Description

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

Properties

appendedSections Accesses the section's appended sections as MFC.Section objects.
content Gets the current content of the section.
decisionPoints Accesses the section's decision points as MFC.DecisionPoint objects.
length Gets the calculated length of the section.
motors Accesses the section's connected motors as MFC.Motor objects.
next Gets the next section of the mass flow conveyor.
prev Gets the previous section of the mass flow conveyor.
speed Gets and sets the speed of the motor.

Details

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

MFC.Section.appendedSections

readonly appendedSections

Description

Accesses the section's appended sections as MFC.Section objects.

Accessing the Number of Appended Sections

You can access the number of appended sections with the following code:

section.appendedSections.length

Accessing Sections by Rank

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


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

MFC.Section.content

readonly int content

Description

Gets the current content of the section.

int count = section.content;
Do no remove, this fixes the anchor on doc.flexsim.com

MFC.Section.decisionPoints

readonly decisionPoints

Description

Accesses the section's decision points as MFC.DecisionPoint objects.

Accessing the Number of Decision Points

You can access the number of decision points with the following code:

section.decisionPoints.length

Accessing Sections by Rank

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


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

MFC.Section.length

readonly length

Description

Gets the calculated length of the section.

For a straight conveyor with no inline, the length is equal to the length specified in the properties window. For curved sections and sections with incline, the length is the calculated length of the section, or the distance a flowitem will travel along the section.

double length = section.length;
Do no remove, this fixes the anchor on doc.flexsim.com

MFC.Section.motors

readonly motors

Description

Accesses the section's connected motors as MFC.Motor objects.

Accessing the Number of Motors

You can access the number of connected motors with the following code:

section.motors.length

Accessing Sections by Rank

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


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

MFC.Section.next

readonly MFC.Section next

Description

Gets the next section of the mass flow conveyor.

MFC.Section nextSection = section.next;
Do no remove, this fixes the anchor on doc.flexsim.com

MFC.Section.prev

readonly MFC.Section prev

Description

Gets the previous section of the mass flow conveyor.

MFC.Section prevSection = section.prev;
Do no remove, this fixes the anchor on doc.flexsim.com

MFC.Section.speed

double speed

Description

Gets and sets the speed of the motor.

If the speed of a section that is connected to a motor is set, the speed of the motor will be ignored until the motor speed is set again.


section.speed = 1;
double speed = section.speed;