在功能块中,
FB35
Segment 1(此段只有块名与参数表)
Name :KRAFT
Decl :KANA I/Q/D/B/T/C: I BI/BY/W/D: W
Decl :SPEI I/Q/D/B/T/C: I BI/BY/W/D: W
Decl :ZAEH I/Q/D/B/T/C: I BI/BY/W/D: W
Decl :MAL I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :GET I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :ERG I/Q/D/B/T/C: Q BI/BY/W/D: W
Decl :FUN1 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :FUN2 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :SOL1 I/Q/D/B/T/C: I BI/BY/W/D: W
Decl :SOL2 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :DB I/Q/D/B/T/C: B
Decl :INC I/Q/D/B/T/C: I BI/BY/W/D: W
Decl :OFF I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
:***
Decl :KANA是参数名么?为什么全是Decl ?
Segment 2
:IA
:DO =DB 本行什么意思?
:L =KANA
:SRW 3
:T =INC
:L =SPEI
:+F
:T =SPEI
:
:L =ZAEH
:L KF +1 //本行什么意思?
:+F
:T =ZAEH
:L KF +4
:<F
:L =INC // 是比较结果为真的时候装载INC么?
:JC =M001 // JC是跳转到M001标号处,可跳转的条件是什么?
:
:L =SPEI
:SRW 2
M001 :
:T FW 172
:
:LW =GET
:T FW 174
:
:JU FB 171
Name :DIV-16BI
ZAH1 : FW 172
ZAH2 : FW 174
ERGE : FW 172
REST : FW 174
:
:LW =MAL
:T FW 174
:
:JU FB 170
Name :MUL:16
ZAH1 : FW 172
ZAH2 : FW 174
ERGE : FW 172
UEBL : F 0.4
:
:L FW 172
:LW =OFF
:+F
:T FW 172
:
:L =ZAEH
:L KF +4
:<F
:JC =M002
:L FW 172
:T =ERG
:L KH 0000
:T =SPEI
:T =ZAEH
M002 :
:L FW 172
:L =SOL1
:>F
:= =FUN1
:L =INC
:LW =SOL2
:<=F
:= =FUN2
:RA
:BE
如果有人十分了解,请说明一下DO指令吧,看了资料,可很糊涂