Component: Port Matrix (Misc): Difference between revisions
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 82: | Line 82: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''AllOff''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AllOff''' | ||
|- | |- | ||
| Line 96: | Line 96: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''AllOn''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AllOn''' | ||
|- | |- | ||
| Line 110: | Line 110: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''BarGraph''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BarGraph''' | ||
|- | |- | ||
| Line 129: | Line 129: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetHandle''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetHandle''' | ||
|- | |- | ||
| Line 148: | Line 148: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetPin''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetPin''' | ||
|- | |- | ||
| Line 167: | Line 167: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''PinOff''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PinOff''' | ||
|- | |- | ||
| Line 186: | Line 186: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''PinOn''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PinOn''' | ||
|- | |- | ||
| Line 205: | Line 205: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''PinToggle''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PinToggle''' | ||
|- | |- | ||
Revision as of 14:17, 13 July 2026
| Author | Matrix Ltd |
| Version | 1.1 |
| Category | Misc |
Port Matrix component
Create an accurately spaced array of up to eight components, each corresponding to a pin of the chosen port. If the cloned component has a property called 'pin', this will be set the the corresponding pin of the matrix port, and the component will behave as if it were connected directly to that pin. If there are less than eight clones, the unused upper bits of the port will be masked out to allow them to be used by other components.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Port_Matrix.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Port_Matrix.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Industrial Tanks
A simple example showing the hoppers, valves and pipes working together. Each tank automatically empties in turn.
Macro reference
AllOff
| AllOff | |
| Turn off all used pins of the port (unused port pins are unaffected) | |
| Return | |
AllOn
| AllOn | |
| Turn on all of the pins in the array (unused port pins are unaffected) | |
| Return | |
BarGraph
| BarGraph | |
| Turns on the first N pins of the array - for generating bar graph meters etc. | |
| Length | |
| How many pins to enable. | |
| Return | |
GetHandle
| GetHandle | |
| Retrieves the object handle of the indexed clone. Returns zero for out of range indexes. | |
| Index | |
| Index of the object to get a handle for. | |
| Return | |
GetPin
| GetPin | |
| Read the state of the selected pin of the port. Returns false if the index is out of range (0..7) | |
| Index | |
| Index of the pin to read. | |
| Return | |
PinOff
| PinOff | |
| Turn off the chosen pin of the port. | |
| Index | |
| Index of the pin to set within the port. | |
| Return | |
PinOn
| PinOn | |
| Turn on the selected pin of the port. | |
| Index | |
| Index of the pin to set within the port. | |
| Return | |
PinToggle
| PinToggle | |
| Toggles the state of the selected pin of the port. | |
| Index | |
| Return | |