简单程序如下:
LD M8002
SET S0
STL S0
LD M8000
MPS
AND X0
SET S20
MPP
AND X1
SET S40
STL S20
LD M8000
OUT Y0
OUT T1 K50
LDP T1
SET S21
STL S21
LD M8000
OUT Y1
OUT T2 K50
LDP T2
SET S0
STL S40
LD M8000
OUT Y3
OUT T5 K50
LDP T5
SET S41
STL S41
LD M8000
OUT Y4
OUT T6 K50
LDP T6
SET S0
RET
END