注意:4 D# W% Y7 h8 g4 @0 m
Connectionsin和connectionsout表示的是实体的输入、输出状态。为0则表示打开,为1表示关闭。
Connectionsin和connectionsout下的子结点表示有多少个端口,为0则表示不可用,为1则表示可用。可以在第一张图片中看到有1个绿色的三角箭头表示输入端口可用,2个红色的三角箭头表示输出端口不可用,以及红色三角箭头右侧的红色长方块表示输出关闭。
Modelers should only use this command when working with fluid objects because the internal behavior of discrete objects controls the opening and closing of their ports, and therefore this command may be overridden.
ip=input port- ^* c. w# D7 u, }* ^/ |
op=output port2 h! K) E; H% r8 }$ S* w
cp=center port, m" u7 Y9 p; p' p
nr=number数量
no=NO.序号,号码
打开输入输出* N8 }3 \0 p# A
openinput
openoutput$ |: Q- f) s- F* q, k7 n2 U
关闭输入输出
closeinput) v0 ]( J/ X {( `! l/ d- C, C6 [
closeoutput; ^# a* f6 j% K' {
停止输入输出1 i7 y9 e# h7 O
stopinput
stopoutput
恢复输入输出
resumeinput# X, y$ P4 o5 {% Z
resumeoutput
打开某个输入输出端口(用于流动实体)
openip. Y$ _3 ]6 g/ @" ^# {; o }2 ]
openop& {; S l& A5 l0 N
打开所有输入输出端口(用于流动实体)! q6 r1 ]8 n e* {+ n! k
openallip7 p- D) S& o& P8 m, o. l" n% Z
openallop
关闭某个输入输出端口(用于流动实体)
closeip# {3 U! c+ w3 @- _7 F; x
closeop
关闭所有输入输出端口(用于流动实体)
closeallip5 s& a) Y. s- b4 P; n3 i
closeallop
判断输入输出是否打开$ J- {5 o1 ^3 b
inputopen \' W% O1 Z" Q# D" P
outputopen$ M( ], s }1 n, N8 x$ ~3 i
判断输入输出(端口)是否就绪(畅通)
ipready6 G9 P( l5 M3 `0 P1 u9 {: e1 V
opready
判断某个输入输出端口是否打开! Z) q- n5 H5 ~* f3 P
ipopen4 |, v! \7 [1 J0 v! k* k
opopen( y }" y# ?$ R- `9 e
判断上下游端口是否可用
ipavailable5 K$ t p7 i0 O
opavailable
3 O# A- E5 R: }# e1 z4 e
统计输入输出中间端口数量
nrcp
nrip7 {( d0 Z# C9 R3 m
nrop
返回上中下游实体; }9 q% p8 _0 P; l, D
centerobject
inobject
outobject
获取上下游端口号码
ipopno上游输出端口号码
cpcpno中间端口号码0 `- w$ Q$ p: T q2 ^% \' O
opipno上游输入端口号码
欢迎光临 全球FlexSim系统仿真中文论坛 (http://www.flexsimasia.com/) | Powered by Discuz! X3.3 |