-
Notifications
You must be signed in to change notification settings - Fork 4
/
plant.properties
executable file
·488 lines (409 loc) · 11.3 KB
/
plant.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
# This file is part of ShopFloorSimulator.
#
# ShopFloorSimulator is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ShopFloorSimulator is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with ShopFloorSimulator. If not, see <http://www.gnu.org/licenses/>.
#Size of factory in meters
configuration.width = 53
configuration.height = 20
#Floor color
floor.color = 55AA33
#How many meters one pixel represents
configuration.pixelsize = 0.05
#Block size in meters
configuration.blocksize = 1
#Radius of conveyor middle sensors in meters
configuration.sensorradius = 0.2
#Miliseconds between each simulation step
configuration.simulationtime = 100
#Miliseconds before error occurs when forcing
configuration.errortime = 2000
#Miliseconds before piece on the floor disappears
configuration.floortime = 2000
#Conveyor speed in meters/second
configuration.conveyorspeed = 1
#Conveyor random speed delta in meters/second
configuration.conveyorspeeddelta = 0.3
#Rotator rotation speed in degrees/second
configuration.rotationspeed = 15
#Pusher speed in meters/second
configuration.pushspeed = 0.5
#Machine tool rotation speed in degrees/second
configuration.toolrotationspeed = 15
#Machine tool move speed in meters/second
configuration.toolmovespeed = 0.05
#Modbus Port
configuration.port = 5502
#Set to true if you want to use address 127.0.0.1
configuration.loopback = true
#Blocktypes
blocktype.1.name = P1
blocktype.1.color = 8B4513
blocktype.1.shape = rounded
blocktype.2.name = P2
blocktype.2.color = FF0000
blocktype.2.shape = rounded
blocktype.3.name = P3
blocktype.3.color = F88017
blocktype.3.shape = circle
blocktype.4.name = P4
blocktype.4.color = FFFF00
blocktype.4.shape = circle
blocktype.5.name = P5
blocktype.5.color = 00FF00
blocktype.5.shape = square
blocktype.6.name = P6
blocktype.6.color = 1E90FF
blocktype.6.shape = square
#Tools
tool.1.color = 880000
tool.2.color = 008800
tool.3.color = 000088
tool.4.color = FF8888
tool.5.color = 88FF88
tool.6.color = 8888FF
#Transformations (tool number, initial block type, final block type and duration in miliseconds)
transformation.1.tool = 1
transformation.1.initial = 2
transformation.1.final = 6
transformation.1.duration = 30000
transformation.2.tool = 2
transformation.2.initial = 1
transformation.2.final = 3
transformation.2.duration = 10000
transformation.3.tool = 3
transformation.3.initial = 1
transformation.3.final = 2
transformation.3.duration = 18000
transformation.4.tool = 4
transformation.4.initial = 2
transformation.4.final = 5
transformation.4.duration = 15000
transformation.5.tool = 5
transformation.5.initial = 3
transformation.5.final = 2
transformation.5.duration = 10000
transformation.6.tool = 6
transformation.6.initial = 5
transformation.6.final = 6
transformation.6.duration = 15000
#########################################
# #
# Facility types: conveyor, #
# rotator, #
# rail, #
# warehousein, #
# warehouseout, #
# machine #
# #
#########################################
#########################
# Plate 1 #
# Warehouse #
#########################
warehouse.1.length = 18
warehouse.1.width = 2
warehouse.1.orientation = vertical
warehouse.1.center.x = 2
warehouse.1.center.y = 10
warehouse.1.block.1.stock = 20
warehouse.1.block.2.stock = 0
warehouse.1.block.3.stock = 20
warehouse.1.block.4.stock = 20
warehouse.1.block.5.stock = 0
warehouse.1.block.6.stock = 0
warehouse.1.mintime = 3000
warehouse.1.maxtime = 3000
facility.1.type = warehouseout
facility.1.length = 4
facility.1.width = 2
facility.1.orientation = horizontal
facility.1.center.x = 6
facility.1.center.y = 2
facility.1.warehouse = 1
facility.2.type = warehousein
facility.2.length = 4
facility.2.width = 2
facility.2.orientation = horizontal
facility.2.center.x = 6
facility.2.center.y = 18
facility.2.warehouse = 1
#########################
# Plate 2 #
# Serial Machines #
#########################
facility.3.type = conveyor
facility.3.length = 4
facility.3.width = 2
facility.3.orientation = horizontal
facility.3.center.x = 10
facility.3.center.y = 2
facility.3.alias = C1
facility.4.type = rotator
facility.4.length = 4
facility.4.width = 2
facility.4.orientation = horizontal
facility.4.center.x = 14
facility.4.center.y = 2
facility.5.type = machine
facility.5.length = 4
facility.5.width = 2
facility.5.orientation = vertical
facility.5.center.x = 14
facility.5.center.y = 6
facility.5.tool1 = 1
facility.5.tool2 = 2
facility.5.tool3 = 3
facility.6.type = conveyor
facility.6.length = 4
facility.6.width = 2
facility.6.orientation = vertical
facility.6.center.x = 14
facility.6.center.y = 10
facility.7.type = machine
facility.7.length = 4
facility.7.width = 2
facility.7.orientation = vertical
facility.7.center.x = 14
facility.7.center.y = 14
facility.7.tool1 = 4
facility.7.tool2 = 5
facility.7.tool3 = 6
facility.8.type = rotator
facility.8.length = 4
facility.8.width = 2
facility.8.orientation = horizontal
facility.8.center.x = 14
facility.8.center.y = 18
facility.9.type = conveyor
facility.9.length = 4
facility.9.width = 2
facility.9.orientation = horizontal
facility.9.center.x = 10
facility.9.center.y = 18
#########################
# Plate 3 #
# Parallel Machines #
#########################
facility.10.type = conveyor
facility.10.length = 4
facility.10.width = 2
facility.10.orientation = horizontal
facility.10.center.x = 18
facility.10.center.y = 2
facility.11.type = rotator
facility.11.length = 4
facility.11.width = 2
facility.11.orientation = horizontal
facility.11.center.x = 22
facility.11.center.y = 2
facility.12.type = conveyor
facility.12.length = 8
facility.12.width = 2
facility.12.orientation = horizontal
facility.12.center.x = 28
facility.12.center.y = 2
facility.12.sensors = 2
facility.13.type = rail
facility.13.length = 4
facility.13.width = 2
facility.13.orientation = vertical
facility.13.center.x = 24
facility.13.center.y = 6
facility.13.rail.size = 4
facility.14.type = machine
facility.14.length = 4
facility.14.width = 2
facility.14.orientation = vertical
facility.14.center.x = 22
facility.14.center.y = 10
facility.14.tool1 = 1
facility.14.tool2 = 2
facility.14.tool3 = 3
facility.15.type = machine
facility.15.length = 4
facility.15.width = 2
facility.15.orientation = vertical
facility.15.center.x = 26
facility.15.center.y = 10
facility.15.tool1 = 4
facility.15.tool2 = 5
facility.15.tool3 = 6
facility.16.type = rail
facility.16.length = 4
facility.16.width = 2
facility.16.orientation = vertical
facility.16.center.x = 24
facility.16.center.y = 14
facility.16.rail.size = 4
facility.17.type = conveyor
facility.17.length = 4
facility.17.width = 2
facility.17.orientation = horizontal
facility.17.center.x = 18
facility.17.center.y = 18
facility.18.type = rotator
facility.18.length = 4
facility.18.width = 2
facility.18.orientation = horizontal
facility.18.center.x = 22
facility.18.center.y = 18
facility.19.type = conveyor
facility.19.length = 8
facility.19.width = 2
facility.19.orientation = horizontal
facility.19.center.x = 28
facility.19.center.y = 18
facility.19.sensors = 2
#########################
# Plate 4 #
# 3 Axis Portal #
#########################
facility.20.type = conveyor
facility.20.length = 4
facility.20.width = 2
facility.20.orientation = horizontal
facility.20.center.x = 34
facility.20.center.y = 2
facility.21.type = rotator
facility.21.length = 4
facility.21.width = 2
facility.21.orientation = horizontal
facility.21.center.x = 38
facility.21.center.y = 2
facility.22.type = conveyor
facility.22.length = 8
facility.22.width = 2
facility.22.orientation = vertical
facility.22.center.x = 38
facility.22.center.y = 8
facility.22.sensors = 2
facility.23.type = conveyor
facility.23.length = 4
facility.23.width = 2
facility.23.orientation = vertical
facility.23.center.x = 38
facility.23.center.y = 14
facility.38.type = table
facility.38.length = 12
facility.38.width = 2
facility.38.orientation = vertical
facility.38.center.x = 34
facility.38.center.y = 10
facility.38.sensors = 3
facility.24.type = conveyor
facility.24.length = 4
facility.24.width = 2
facility.24.orientation = horizontal
facility.24.center.x = 34
facility.24.center.y = 18
facility.25.type = rotator
facility.25.length = 4
facility.25.width = 2
facility.25.orientation = horizontal
facility.25.center.x = 38
facility.25.center.y = 18
#########################
# Plate 5 #
# Load/Unload Dock #
#########################
facility.26.type = conveyor
facility.26.length = 4
facility.26.width = 2
facility.26.orientation = horizontal
facility.26.center.x = 42
facility.26.center.y = 2
facility.27.type = rotator
facility.27.length = 4
facility.27.width = 2
facility.27.orientation = horizontal
facility.27.center.x = 46
facility.27.center.y = 2
facility.28.type = conveyor
facility.28.length = 4
facility.28.width = 2
facility.28.orientation = horizontal
facility.28.center.x = 50
facility.28.center.y = 2
facility.29.type = pusher
facility.29.length = 6
facility.29.width = 2
facility.29.orientation = vertical
facility.29.center.x = 46
facility.29.center.y = 7
facility.30.type = pusher
facility.30.length = 6
facility.30.width = 2
facility.30.orientation = vertical
facility.30.center.x = 46
facility.30.center.y = 13
facility.31.type = conveyor
facility.31.length = 4
facility.31.width = 2
facility.31.orientation = horizontal
facility.31.center.x = 42
facility.31.center.y = 18
facility.32.type = rotator
facility.32.length = 4
facility.32.width = 2
facility.32.orientation = horizontal
facility.32.center.x = 46
facility.32.center.y = 18
facility.33.type = conveyor
facility.33.length = 4
facility.33.width = 2
facility.33.orientation = horizontal
facility.33.center.x = 50
facility.33.center.y = 18
facility.34.type = roller
facility.34.length = 1
facility.34.width = 2
facility.34.orientation = horizontal
facility.34.center.x = 47.5
facility.34.center.y = 7
facility.34.direction = 1
facility.34.sensors = 1
facility.35.type = table
facility.35.length = 1
facility.35.width = 2
facility.35.orientation = horizontal
facility.35.center.x = 48.5
facility.35.center.y = 7
facility.35.sensors = 0
facility.36.type = roller
facility.36.length = 1
facility.36.width = 2
facility.36.orientation = horizontal
facility.36.center.x = 47.5
facility.36.center.y = 13
facility.36.direction = 1
facility.36.sensors = 1
facility.37.type = table
facility.37.length = 1
facility.37.width = 2
facility.37.orientation = horizontal
facility.37.center.x = 48.5
facility.37.center.y = 13
facility.37.sensors = 0
facility.39.type = portal3d
facility.39.width = 6
facility.39.height = 12
facility.39.center.x = 36
facility.39.center.y = 10
facility.39.sensorsx = 3
facility.39.sensorsy = 3
#Initial Blocks: block types from 1 to 4
#block.1.center.x = 3
#block.1.center.y = 2
#block.1.type = 1
#block.2.center.x = 7
#block.2.center.y = 10
#block.2.type = 2