单按钮控制电动机的起动停止(多种方法)
方法一:
LD X0
ANI M0
OUT C0 K1
AND Y0
RST C0
LD X0
OUT M0
LD C0
OUT Y0
END
方法二:
LD X0
ALT Y0
END
方法三:
LD X0
INCP D0
MOV D0 K4M0
LD M0
OUT Y0
END
方法四:
LD M8002
SET S0
STL S0
LD X0
SET S20
STL S20
PLS M1
SET Y0
LD X0
ANI M1
SET S21
STL S21
PLS M2
RST Y0
LD X0
ANI M2
OUT S20
RET
END
方法五:
LD X0
OUT M2800
LD M8002
SET S0
STL S0
LDP M2800
SET S20
STL S20
SET Y0
LDP M2800
SET S21
STL S21
RST Y0
LDP M2800
OUT S21
RET
END
方法六:
LD X0
OUT C0 K32767
MOV C0 D0
LD M8000
DIV D0 K2 D4
LD<> D5 K0
OUT Y0
END
方法七:
LDP X0
OUT C0 K1
AND Y0
RST C0
LD C0
OUT Y0
END