|
|
/*目的就是想让Q中的数量保持为定值7 J" E. n& V. m1 S; Z0 _
M_support 是conv1的电机
, B* Q, I5 V' M/ p% _ V_support 是Q中Load的数量
; Q E! _/ m0 v; ^) c9 z order出一个减1
! _7 e8 f# y0 y, A K$ i conv1送到一个就加1
1 L: M1 b# b& j* T2 B+ q) T% W 一直处于监视状态; x7 V* O9 {. V7 H
现在的问题是order出后- X& h5 b. T0 ~ ]' ^/ Z: D# }4 i4 c
conv1的电机并不启动8 c! i4 E# [) r
感觉程序并没有立即监视到V_support 被减1了- V$ e& o& u7 U8 S
不知道是不是这个send to的问题
. L$ m/ H/ _1 P! s8 Q* E* @ 请高手指点*/ V3 g! {4 y4 [& v
( U$ b6 }$ U7 h, ^
4 E; i" N+ d0 R( lbegin P_monitorSupport arriving
. x6 [' D% R; q: [ g- R if V_support >=4 then
' }" U v3 P: |* f- F5 ?+ z4 J& t take down conv1.M_support
/ t& `; j* x7 U5 q5 D% p else3 k' \1 [6 }4 A- k
bring up conv1.M_support% a! g; [3 o$ Y. E# Q0 w. D
wait for 1 sec /*感觉此句多余,但去掉后电脑感觉就死机了*/ - q( x9 D/ h1 G. |5 q" x% Y: O' O) x& V" i
send to P_monitorSupport
3 l8 p% p, J4 i$ dend |
|