User`s manual

AIMB-740-B/741-B User’s Manual 134
mov dx, cx
sub dx, SEQ_LEN
neg dx
mov bx, TEST1_GPO
SET_CURSOR GPO_AXIS, 4
call Belt_GPO_SEQ
SET_CURSOR GPI_AXIS, 4
mov bx, TEST1_GPI
call Dsp_GPI_SEQ
.IF COUNT != (SEQ_LEN - 1)
jmp fail_test
.ENDIF
DELAY_M
loop run_test1
jmp short ok_test
fail_test:
inc START_AXIS
SET_CURSOR START_AXIS, 0
PRINT FAIL_STR
P_CHAR07h
DELAY_M
P_CHAR07h
DELAY_M
jmp end_test
ok_test:
inc START_AXIS
SET_CURSOR START_AXIS, 0
PRINT PASS_STR
end_test:
P_CHAR07h
popa
ret
Do_Test1EndP
;[]==========================================================[]
;Input : BX - GPO sequence Table offset
; DX - set number of pin