你好,帮我看个程序,好吗 ' Z0 N8 g. M+ Z 这个程序是一个machine的logic,我是想根据part的型号(400号,500号),来执行不同的process.程序编译没错,能够运行.但是运行时Machine中却有两个part(process中只定义需要一个part)# K1 F) ~6 v8 ^" `; h
% @ t9 q) } d* b7 d3 D3 q1 Jprocedure mech_Pro_Type()" a/ i$ D# E8 j, G( ~' q- D: g
var1 |! }. r1 D) O7 M2 q% {1 L2 n0 E
pro1_process,pro2_process:process D* H; s" C! }the_logic:logic" Q; f; h% {) X* e% X& G' F
begin , f$ z. s6 E* Q7 P9 `: l+ G+ \6 T wait until out part_count 0 - `1 R* e- |8 X2 t: J require part any) O- P9 S7 x( a; ^
pro1_process=get_process('Mechanism400')/ B, J2 n$ A" v7 B+ G
pro2_process=get_process('Mechanism500') ; `0 J5 b E1 ^$ C. \ ) D, L0 B, I+ a8 F( C1 {# [; m& }' Q
if(cpart<>NULL)then/ D3 E/ F/ T& _# m J% }2 v+ n
if( cpart->Product_Type==400)then 3 U5 a5 m" `' P do_process(pro1_process)in state IDLE_IDLE, BUSY_PROCESSING - I- y2 A, {8 d6 E2 C T -- write('装机构工位:正在执行工艺号',cpart->Product_Type,cr) - c. d4 A% G- \2 [5 D K else # k, |* X( |- K1 F/ a" c; M do_process(pro2_process)in state IDLE_IDLE, BUSY_PROCESSING * h" g. t V1 T$ D! g" t# y" E0 Y --write('装机构工位:正在执行工艺号',cpart->Product_Type,cr)) _! q! I$ j# ]! B5 t
endif ! X! h2 `0 h: h% ?+ S0 P6 U, a4 M2 H endif; w. [& W3 R. K! k- [/ M
end