设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6221|回复: 0

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

[复制链接]
发表于 2016-6-14 16:17:06 | 显示全部楼层 |阅读模式
使用Plant Simultation 9运行周老师的生产系统仿真教程第一章的P5的程序时,总是报错(勘误之后的),显示。- i# N& m2 K( [6 W
is# V. h! D. e0 I' [# x$ i2 _
        m,n:integer; --zhengshu bianliang
1 _" @( P; H7 D1 O. ?        Name:string; --zifuchuan bianliang
( @! ^& y9 g$ p" M; o7 t2 P* |        obj:Object;  --dui xiang lei xing bianliang
3 b5 |: Z& ~, a( @6 p; ?; Kdo9 O1 P. }/ L9 X, }7 U
        m:=str_to_num(omit(?.Name,1,5));
4 b  l: P) N/ D# v# ?- A        Name:=sprint("Output_Line",m); --sheng chan xian mingcheng
6 U6 F: O8 U# m! T% H$ i        Obj:=str_to_obj(Name);. Z- t# {. w1 Y5 {  l0 `/ {: ^1 V. N
        n:=?.StatNumIn;
( M0 n% L1 V( T% l$ r* Z- k& d: y* {        Obj.val:=n;- N7 {7 `7 W  r) D9 `# r' d
        if m>1 then4 g+ [7 p; X" C. J( \: B
                Name:=sprint("OutRate_Line",m);
6 e( c3 Y) @4 D2 R0 v, a% k                Obj:=str_to_obj(Name);" M% V1 W( I. j# T- S: @7 E7 @- @
             Obj.val:=n*100/Output_Line1;
) C* S( G- O) t8 Q8 ^& s( Q( n2 C5 ?        end;
& |8 j& b3 u% T# _0 [' Send;" R7 m7 j. K0 Z0 ]" ~& [2 ^
行 6 中的方法 '.DOE_sim.SingleLine.CalOutPut' 出错:'VOID' 无法接受方法 'Name'。是怎么回事啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-8-20 11:52 , Processed in 0.015567 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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