设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4379|回复: 0

[原创] 生产系统仿真教程中的问题

[复制链接]
发表于 2016-6-14 16:17:06 | 显示全部楼层 |阅读模式
使用Plant Simultation 9运行周老师的生产系统仿真教程第一章的P5的程序时,总是报错(勘误之后的),显示。
" X- g9 Q8 g" g* }% k% x) s8 }# L5 dis
% B5 u9 c% W  _* c" Y2 P        m,n:integer; --zhengshu bianliang: \/ L( B4 |* ?
        Name:string; --zifuchuan bianliang# L# N8 J9 E: I5 |: ?1 h% G
        obj:Object;  --dui xiang lei xing bianliang" A/ s% h2 ^6 Q2 ]: R3 s
do$ i( y2 z9 i2 P3 f2 q
        m:=str_to_num(omit(?.Name,1,5));
, C) Z, P4 j  g        Name:=sprint("Output_Line",m); --sheng chan xian mingcheng* i) F+ L4 r! Y9 r' r
        Obj:=str_to_obj(Name);. H' }* d5 w6 [$ z" @: I
        n:=?.StatNumIn; 7 q3 A; T+ v8 K, u. C
        Obj.val:=n;
" Q2 V- N5 N  P$ F' j  p. u) A        if m>1 then
( V, P, |# q) X                Name:=sprint("OutRate_Line",m);
" a& T  {, Z) B5 T! a* g% n                Obj:=str_to_obj(Name);- b* D3 k4 p/ s0 Q
             Obj.val:=n*100/Output_Line1; ) x9 n# J: @+ q; i
        end;
/ [# U# h$ f& q" @5 Nend;
% W0 d  d7 F- w0 ^0 ~( M行 6 中的方法 '.DOE_sim.SingleLine.CalOutPut' 出错:'VOID' 无法接受方法 'Name'。是怎么回事啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2025-5-2 06:38 , Processed in 0.015750 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表