Difference between revisions of "Component: Sheep Pen (Scenarios)"
From Flowcode Help
Jump to navigationJump to searchLine 1: | Line 1: | ||
− | + | {| style="width:50%" | |
− | |||
− | {| | ||
|- | |- | ||
− | | width="20%" style="color: gray;" | Author | + | | width="20%" style="color:gray;" | Author |
| Matrix TSL | | Matrix TSL | ||
|- | |- | ||
− | | width="20%" style="color: gray;" | Version | + | | width="20%" style="color:gray;" | Version |
− | | 1.0 | + | | 1.0 |
|- | |- | ||
− | | width="20%" style="color: gray;" | Category | + | | width="20%" style="color:gray;" | Category |
| Scenarios | | Scenarios | ||
|} | |} | ||
+ | ==Sheep Pen component== | ||
+ | A simple sheep pen simulation with two gates and two sensors. Allows for simple logical control to try and move all the sheep from one pen to another. | ||
− | == | + | ==Component Pack== |
− | |||
− | |||
− | + | FREE | |
− | |||
− | + | ==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. | |
− | |||
− | + | [[Sheep_Pen|Sheep Pen Scenario]] | |
− | + | ==Downloadable macro reference== | |
− | :'' | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadSensor''' | ||
+ | |- | ||
+ | | colspan="2" | Checks to see if an object is on the Sensor. Returns 0 if nothing is on the Sensor, Returns 1 if an object is on the Sensor. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | '''Return | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ControlGateB''' | ||
+ | |- | ||
+ | | colspan="2" | Allows gate B to be opened and closed. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL | ||
+ | | width="90%" | State | ||
+ | |- | ||
+ | | colspan="2" | 0 = Closed, 1 = Open | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | |||
− | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | |
− | = | + | |- |
− | + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | |
− | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ControlGateA''' | |
− | + | |- | |
− | + | | colspan="2" | Allows gate A to be opened and closed. | |
− | :[[ | + | |- |
− | :: | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL | |
− | + | | width="90%" | State | |
− | ''' | + | |- |
− | + | | colspan="2" | 0 = Closed, 1 = Open | |
− | + | |- | |
− | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | |
− | + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | |
− | + | |} | |
− | Allows gate A to be opened and closed. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 76: | Line 84: | ||
==Property reference== | ==Property reference== | ||
− | |||
− | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | |
− | + | |- | |
− | Specifies the colour of the sensor's indicator when no sheep are present. | + | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] |
− | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | |
− | + | |- | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-1-icon.png]] | |
− | + | | width="90%" | Inactive Sensor | |
− | + | |- | |
− | + | | colspan="2" | Specifies the colour of the sensor's indicator when no sheep are present. | |
− | Specifies the colour of the sensor's indicator when sheep are present. | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-type-1-icon.png]] | |
− | + | | width="90%" | Active Sensor | |
− | + | |- | |
− | + | | colspan="2" | Specifies the colour of the sensor's indicator when sheep are present. | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | |
− | + | | width="90%" | Num Objects | |
− | + | |- | |
+ | | colspan="2" | Specifies the number of objects active in the simulation. | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections''' | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations''' | ||
+ | |- | ||
+ | |} |
Revision as of 16:25, 7 January 2022
Author | Matrix TSL |
Version | 1.0 |
Category | Scenarios |
Contents
Sheep Pen component
A simple sheep pen simulation with two gates and two sensors. Allows for simple logical control to try and move all the sheep from one pen to another.
Component Pack
FREE
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.
Downloadable macro reference
![]() |
ReadSensor |
Checks to see if an object is on the Sensor. Returns 0 if nothing is on the Sensor, Returns 1 if an object is on the Sensor. | |
![]() |
Return |
![]() |
ControlGateB |
Allows gate B to be opened and closed. | |
![]() |
State |
0 = Closed, 1 = Open | |
![]() |
Return |
![]() |
ControlGateA |
Allows gate A to be opened and closed. | |
![]() |
State |
0 = Closed, 1 = Open | |
![]() |
Return |