这边要用到 但看不明白 问问各位 CHKTRE(ICODE)函数是什么作用的? 返回值个表示什么意思? + u' I$ B+ W& T手册里给的解释如下 7 l; L$ O- Y- S! ?CALL CHKTRE(ICODE)! }! [) l2 k5 P5 U
If the case contains Type 4 (or greater) buses with in-service branches then an error condition is 9 J7 o9 z3 M+ i2 A; sreturned. Counts number of islands not containing a Type 3 (swing) bus. It may be inappropriate to( f8 f! S, J2 g6 @6 x$ s2 D
call this subroutine with generators converted; since there will be no Type 3 buses, it will simply& e4 p8 N& Q5 I8 }: o3 O# z5 h
count every island (finding at least one unless there is no working case). + x7 f. d+ t, O! DICODE Error code (integer output):5 f l& ^' E- C+ Y( n8 L, A, _
0 No errors., ^7 h( o5 K5 f# `
-1 No in-service buses remaining.) L9 g" k% L& N9 j
-2 There are Type 4 buses with in-service branches connected.6 T7 N' K+ q, e2 ?1 m- S/ Z/ V$ D
>0 Number of islands without a Type 3 bus. ; A0 c' F9 ~" s太谢谢了