Plant Simulation 双深位立库开发系列教程-出库操作
上一节讲到初始化物料,这一节我们继续讲初始化物料,根据需求参照autoremove的method,我们就可以很容易的写出来如何自动出库。

从autoRemove可以看出
if Content.YDim>0 then// get one of the productsvar row : integer := ceil(z_uniform(87, 0, Content.YDim))var product := Content[0, row]if Content[1,row]>0 then// get the number of products to remove from stockvar quantity : integer := min(round(z_uniform(1, MaxAmount)), Content[1,row])// remove the productremoveProducts("0", product, quantity)end
endself.executeIn(RemoveInterval)
核心调度了removeProducts这个函数,所
