Component: Car Seat (Scenarios): Difference between revisions
Appearance
No edit summary |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_CarSeatSource_v004.fcfx FC_Comp_Source_CarSeatSource_v004.fcfx] | ||
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_CarSeatSource_v004.fcfx FC_Comp_Source_CarSeatSource_v004.fcfx] | ||
==Detailed description== | ==Detailed description== | ||
| Line 67: | Line 67: | ||
[[Car_Seat|Car Seat Scenario]] | [[Car_Seat|Car Seat Scenario]] | ||
| Line 77: | Line 81: | ||
===CurrentSenseMotor1=== | ===CurrentSenseMotor1=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''CurrentSenseMotor1''' | ||
|- | |- | ||
| colspan="2" | This macro is used to sense the current draw from DC motor 1. When it is not being used, it will draw no current. In normal operating conditions it will draw 3A, and under stall conditions (when the motor hits the end stops) it will draw 20A. | | colspan="2" | This macro is used to sense the current draw from DC motor 1. When it is not being used, it will draw no current. In normal operating conditions it will draw 3A, and under stall conditions (when the motor hits the end stops) it will draw 20A. | ||
| Line 91: | Line 95: | ||
===CurrentSenseMotor2=== | ===CurrentSenseMotor2=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''CurrentSenseMotor2''' | ||
|- | |- | ||
| colspan="2" | This macro is used to sense the current draw from DC motor 2. When it is not being used, it will draw no current. In normal operating conditions it will draw 3A, and under stall conditions (when the motor hits the end stops) it will draw 20A. | | colspan="2" | This macro is used to sense the current draw from DC motor 2. When it is not being used, it will draw no current. In normal operating conditions it will draw 3A, and under stall conditions (when the motor hits the end stops) it will draw 20A. | ||
| Line 105: | Line 109: | ||
===CurrentSenseMotor3=== | ===CurrentSenseMotor3=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''CurrentSenseMotor3''' | ||
|- | |- | ||
| colspan="2" | This macro is used to sense the current draw from DC motor 3. When it is not being used, it will draw no current. In normal operating conditions it will draw 3A, and under stall conditions (when the motor hits the end stops) it will draw 20A. | | colspan="2" | This macro is used to sense the current draw from DC motor 3. When it is not being used, it will draw no current. In normal operating conditions it will draw 3A, and under stall conditions (when the motor hits the end stops) it will draw 20A. | ||
| Line 119: | Line 123: | ||
===Encoder1=== | ===Encoder1=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Encoder1''' | ||
|- | |- | ||
| colspan="2" | Returns value is equal to X Axis current value (forward/ backwards movement). | | colspan="2" | Returns value is equal to X Axis current value (forward/ backwards movement). | ||
| Line 133: | Line 137: | ||
===Encoder2=== | ===Encoder2=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Encoder2''' | ||
|- | |- | ||
| colspan="2" | Returns value is equal to Front Z Axis current value. | | colspan="2" | Returns value is equal to Front Z Axis current value. | ||
| Line 147: | Line 151: | ||
===Encoder3=== | ===Encoder3=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Encoder3''' | ||
|- | |- | ||
| colspan="2" | Returns value is equal to Rear Z Axis current value. | | colspan="2" | Returns value is equal to Rear Z Axis current value. | ||
| Line 161: | Line 165: | ||
===Load=== | ===Load=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Load''' | ||
|- | |- | ||
| colspan="2" | Moves the seat back into the last saved position stored in the allocated save slot. | | colspan="2" | Moves the seat back into the last saved position stored in the allocated save slot. | ||
| Line 180: | Line 184: | ||
===Motor1=== | ===Motor1=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Motor1''' | ||
|- | |- | ||
| colspan="2" | Moves the Car Seat Forwards and Backwards | | colspan="2" | Moves the Car Seat Forwards and Backwards | ||
| Line 199: | Line 203: | ||
===Motor2=== | ===Motor2=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Motor2''' | ||
|- | |- | ||
| colspan="2" | Controls the Movement of the seat going up and down by the front | | colspan="2" | Controls the Movement of the seat going up and down by the front | ||
| Line 218: | Line 222: | ||
===Motor3=== | ===Motor3=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Motor3''' | ||
|- | |- | ||
| colspan="2" | Controls the Movement of the seat going up and down by the back | | colspan="2" | Controls the Movement of the seat going up and down by the back | ||
| Line 237: | Line 241: | ||
===Save=== | ===Save=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Save''' | ||
|- | |- | ||
| colspan="2" | Saves the current position of the seat into the allocated save slot. | | colspan="2" | Saves the current position of the seat into the allocated save slot. | ||
| Line 253: | Line 257: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:23, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Scenarios |
Car Seat component
An electric car seat chassis with a series of motors and sensors. Students should work through exercises to learn the principles of electric car seats including how to save and load memory positions.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_CarSeatSource_v004.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_CarSeatSource_v004.fcfx
Detailed description
No detailed description exists yet for this component
Examples
There is a detailed walk through of the scenario detailed at the link below to go with this component.
Macro reference
CurrentSenseMotor1
CurrentSenseMotor2
CurrentSenseMotor3
Encoder1
| Encoder1 | |
| Returns value is equal to X Axis current value (forward/ backwards movement). | |
| Return | |
Encoder2
| Encoder2 | |
| Returns value is equal to Front Z Axis current value. | |
| Return | |
Encoder3
| Encoder3 | |
| Returns value is equal to Rear Z Axis current value. | |
| Return | |
Load
| Load | |
| Moves the seat back into the last saved position stored in the allocated save slot. | |
| Location | |
| 0 = A, 1 = B | |
| Return | |
Motor1
| Motor1 | |
| Moves the Car Seat Forwards and Backwards | |
| Direction | |
| 0 = Stop, 1 = Forward, 2 = Backward | |
| Return | |
Motor2
| Motor2 | |
| Controls the Movement of the seat going up and down by the front | |
| Direction | |
| 0 = Stop, 1 = Up, 2 = Down | |
| Return | |
Motor3
| Motor3 | |
| Controls the Movement of the seat going up and down by the back | |
| Direction | |
| 0 = Stop, 1 = Up, 2 = Down | |
| Return | |
Save
| Save | |
| Saves the current position of the seat into the allocated save slot. | |
| SavePos | |
| 0 = pos A, 1 = pos B | |
| Return | |
Property reference
| Properties | |
| Show seat base? | |
| Controls if the base of the car seat is shown on the simulation panel. | |