在功能塊中,
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指令吧,看了資料,可很糊涂