[gd_scene load_steps=15 format=3 uid="uid://bcby8jt3gsud8"]

[ext_resource type="Script" uid="uid://dsxxycqvgg68a" path="res://station_epc.gd" id="1_qc5a3"]
[ext_resource type="PackedScene" uid="uid://dyhvoundu2kqc" path="res://parts/Building.tscn" id="1_v76qd"]
[ext_resource type="PackedScene" uid="uid://bqlkj4ar8q1ws" path="res://parts/assemblies/BeltConveyorAssembly.tscn" id="3_u7586"]
[ext_resource type="PackedScene" uid="uid://gddgyvex6gdj" path="res://parts/PushButton.tscn" id="4_ahe6k"]
[ext_resource type="PackedScene" uid="uid://co2mqmdwpn57w" path="res://parts/BoxSpawner.tscn" id="5_u7586"]
[ext_resource type="PackedScene" uid="uid://drle8i15nwr68" path="res://parts/StackLight.tscn" id="6_qc5a3"]
[ext_resource type="Script" uid="uid://bl7o7avq4pi78" path="res://src/StackLight/stack_light_data.gd" id="7_kdh4b"]
[ext_resource type="Script" uid="uid://buet0tp11gjdl" path="res://src/StackLight/stack_segment_data.gd" id="8_spet4"]
[ext_resource type="PackedScene" uid="uid://bl73u0rvt2orv" path="res://parts/Despawner.tscn" id="9_kdh4b"]

[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_6pmrs"]
friction = 0.5

[sub_resource type="Resource" id="Resource_kdh4b"]
resource_local_to_scene = true
script = ExtResource("8_spet4")
active = true
segment_color = Color(0, 1, 0, 0.5)

[sub_resource type="Resource" id="Resource_spet4"]
resource_local_to_scene = true
script = ExtResource("7_kdh4b")
segment_datas = [SubResource("Resource_kdh4b")]

[sub_resource type="Resource" id="Resource_3ipjn"]
resource_local_to_scene = true
script = ExtResource("8_spet4")
active = true
segment_color = Color(0, 1, 0, 0.5)

[sub_resource type="Resource" id="Resource_bghi8"]
resource_local_to_scene = true
script = ExtResource("7_kdh4b")
segment_datas = [SubResource("Resource_3ipjn")]

[node name="Simulation" type="Node3D"]
script = ExtResource("1_qc5a3")

[node name="Building" parent="." instance=ExtResource("1_v76qd")]

[node name="BoxSpawner" parent="." instance=ExtResource("5_u7586")]
transform = Transform3D(1, 2.30012e-09, -9.31322e-10, -2.30012e-09, 1, 8.84756e-09, 9.31322e-10, -8.84756e-09, 1, -4.09642, 0.192588, -1.6166)
disable = true

[node name="Despawner" parent="." instance=ExtResource("9_kdh4b")]
transform = Transform3D(2, 0, 0, 0, 1, 0, 0, 0, 2, 4.05126, -1.42588, -1.63314)

[node name="UL1_3" parent="." instance=ExtResource("3_u7586")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.819656, -0.308412, -1.61317)
local_floor_plane = Plane(0, 1, 0, -1.69159)
speed = 0.0
belt_physics_material = SubResource("PhysicsMaterial_6pmrs")
enable_comms = true
speed_tag_name = "UL1_3_OIP"
running_tag_name = ""
metadata/hijack_scale = true
size = Vector3(8, 0.5, 1.524)
metadata/hijack_scale = true

[node name="UL1_3_EPC1" parent="." instance=ExtResource("4_ahe6k")]
transform = Transform3D(1, 0, 0, 0, 0.999853, 0.0171208, 0, -0.0171208, 0.999853, -4.5, -0.18, -0.75)
text = "UL1_3_EPC1"
toggle = true
pressed = true
lamp = true
button_color = Color(0.886275, 0.537255, 0, 1)
enable_comms = true
pushbutton_tag_group_name = "TagGroup0"
pushbutton_tag_name = "Estop_OIP"
lamp_tag_group_name = "TagGroup0"
lamp_tag_name = "Estop_OIP"

[node name="UL1_3_EPC1_STATION" parent="." instance=ExtResource("4_ahe6k")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.5, -0.7, -0.75)
text = "STATION EPC1"
toggle = true
pressed = true
lamp = true
button_color = Color(0.886275, 0.533333, 0, 1)
enable_comms = true
pushbutton_tag_group_name = "TagGroup0"
pushbutton_tag_name = "UL1_3_EPC1.CTRL.STS.EStop_Was_Actuated"
lamp_tag_group_name = "TagGroup0"
lamp_tag_name = "UL1_3_EPC1.CTRL.STS.EStop_Was_Actuated"

[node name="UL1_3_EPC1_BEACON" parent="." instance=ExtResource("6_qc5a3")]
transform = Transform3D(3.03596, -0.00241847, 0, 0.0540532, 0.135836, 0, 0, 0, 3.03644, -4.5, 0.0338165, -0.637099)
light_value = 1
_data = SubResource("Resource_spet4")
"Light 1" = SubResource("Resource_kdh4b")
enable_comms = true
tag_groups = null
tag_name = "Beacon_OIP.0"

[node name="UL1_3_EPC2" parent="." instance=ExtResource("4_ahe6k")]
transform = Transform3D(-1, 1.49675e-09, -8.74099e-08, 0, 0.999853, 0.0171208, 8.74228e-08, 0.0171208, -0.999853, -4.5, -0.18, -2.46)
text = "UL1_3_EPC2"
toggle = true
pressed = true
lamp = true
button_color = Color(0.886275, 0.537255, 0, 1)
enable_comms = true
pushbutton_tag_group_name = "TagGroup0"
pushbutton_tag_name = "Estop_OIP2"
lamp_tag_group_name = "TagGroup0"
lamp_tag_name = "Estop_OIP2"

[node name="UL1_3_EPC2_STATION" parent="." instance=ExtResource("4_ahe6k")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -4.5, -0.7, -2.46)
text = "STATION EPC2"
toggle = true
pressed = true
lamp = true
button_color = Color(0.886275, 0.533333, 0, 1)
enable_comms = true
pushbutton_tag_group_name = "TagGroup0"
pushbutton_tag_name = "UL1_3_EPC2.CTRL.STS.EStop_Was_Actuated"
lamp_tag_group_name = "TagGroup0"
lamp_tag_name = "UL1_3_EPC2.CTRL.STS.EStop_Was_Actuated"

[node name="UL1_3_EPC2_BEACON" parent="." instance=ExtResource("6_qc5a3")]
transform = Transform3D(3.03596, -0.00241847, 0, 0.0540532, 0.135836, 0, 0, 0, 3.03644, -4.5, 0.0338165, -2.5929)
light_value = 1
_data = SubResource("Resource_bghi8")
"Light 1" = SubResource("Resource_3ipjn")
enable_comms = true
tag_groups = null
tag_name = "Beacon_OIP2.0"

[node name="MCM_START" parent="." instance=ExtResource("4_ahe6k")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, -0.18, -0.75)
text = "MCM START"
toggle = true
pressed = true
lamp = true
button_color = Color(0.359592, 0.479432, 1, 1)
enable_comms = true
pushbutton_tag_group_name = "TagGroup0"
pushbutton_tag_name = "MCM.STS.Start_PB"
lamp_tag_group_name = "TagGroup0"
lamp_tag_name = "MCM.STS.Start_PB"

[node name="START_CONVEYOR" parent="." instance=ExtResource("4_ahe6k")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.5, -0.18, -0.75)
text = "START CONVEYOR"
toggle = true
button_color = Color(0.407843, 1, 0.164706, 1)
enable_comms = true
pushbutton_tag_group_name = "TagGroup0"
pushbutton_tag_name = "Start_Conveyor_OIP"
lamp_tag_group_name = "TagGroup0"
lamp_tag_name = "Start_Conveyor_OIP"

[node name="COMMUNIACTION" parent="." instance=ExtResource("4_ahe6k")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4, -0.18, -0.75)
text = "COMMUNIACTION OFF"
toggle = true
button_color = Color(0.886275, 0.533333, 0, 1)
enable_comms = true
pushbutton_tag_group_name = "TagGroup0"
pushbutton_tag_name = "UL1_3_SIO1.CTRL.STS.Communication_Fault"
lamp_tag_group_name = "TagGroup0"
lamp_tag_name = "UL1_3_SIO1.CTRL.STS.Communication_Fault"
