經(jīng)常得到樓主的幫助,現(xiàn)在我寫一份實際例子,希望對于大家有用.
硬件組態(tài):siemens338定位模塊,傳感器是二進制格式.25位.
A(
A(
A(
L PID520
L L#0
-D
T MD900
AN OV
SAVE
CLR
A BR
)
JNB _001
L MD900
DTR
T MD904
SET
SAVE
CLR
_001: A BR
)
JNB _002
L MD904
L 5.000000E+001
/R
T MD908
AN OV
SAVE
CLR
_002: A BR
)
JNB _003
L MD908
L 1.000000E+002
+R
T DB2.DBD28
_003: NOP 0