Rockwell Arena仿真中‘Undefined symbol: Cold storage’顽固报错求助
Rockwell Arena仿真模型链接错误排查求助:Undefined symbol : Cold storage
模型目标
模拟一条生产线,实体经多道工序后进入三个冷冻隧道之一,最终通过Dispose模块流出;当5333个实体通过该Dispose模块时,仿真终止。
问题现象
运行仿真时,预运行检查(REPLICATE步骤)失败,报错如下:
ERROR: A linker error was detected while processing REPLICATE Undefined symbol : Cold storage Possible cause: A variable or other symbol was used without first being defined.
已尝试的无效排查步骤
- 检查拼写:确认Dispose模块命名为
Cold storage且无拼写错误 - 修复连接:删除并重新绘制三个Process模块(隧道)到
Cold storageDispose模块的图形连接 - 验证终止条件:在
Run -> Setup -> Replication Parameters中确认终止条件为N(Cold storage) >= 5333且拼写正确 - 隔离测试:断开
Cold storage模块及其所有连接,将前置Process模块连接到临时Dispose模块TempExit,错误仍存在,证明问题不在实体流,而是全局引用 - 彻底重命名:将Dispose模块重命名为
FinalExit,同时更新终止条件为N(FinalExit) >= 5333,模型仍报原名称的错误:Undefined symbol : Cold storage
疑问
- 为何重命名模块及更新终止条件后,
Cold storage的“Undefined symbol”错误仍存在? - 此类“幽灵引用”可能隐藏在Arena模型的何处?
- .doe文件是否已损坏?
相关.doe文件内容
// --- Create Module --- MODULEHEADER Create Name Interarrival Type Units Schedule Value Expression First Creation Batch Size Max Batches Entity Type MODULEVALUES Shrimp entry Expression Minutes Schedule 1 EXPO( 30 ) Infinite 6 kg Ingot MODULEFOOTER // --- A Decide Module that leads to the tunnels --- MODULEHEADER Decide Name Type Value Percent True ANamed TypeNamed Column VNamed Conditions N If N VNamed N Is N Value N Percent True N ANamed N TypeNamed N Row N Column MODULEVALUES Decide 3 Expression Available(Tunnel2) = 1 Attribute 1 Entity 1 Variable 1 MODULEFOOTER // --- One of the three final Process modules --- MODULEHEADER Process Name Type Units Priority DelayType Value ValueAdded Expression StDev Action ReportStatistics Resources Resource Type Resource Name Set Name Selection Rule Quantity Save Attribute Input Attribute MODULEVALUES Tunnel1_Freezing Standard Hours Expression UNIF( 10 , 12 ) Resource Tunnel1 Set 1 MODULEFOOTER // --- The problematic Dispose module --- MODULEHEADER Dispose Name EntStats MODULEVALUES Cold storage MODULEFOOTER
终止条件设置于Run > Setup:N(Cold storage) >= 5333
内容的提问来源于stack exchange,提问作者SAEID
相关产品推荐
相关产品推荐

