Here is an example of how you can write a program to have the ACR9030/9040 automatically start the EPL network on powerup.
PROGRAM
PBOOT
...
PERIOD 0.001 : REM for Compax3EPL, PERIOD *must* be set to 0.001
INH 16648 : REM wait until EPL card is ready
EPLC ON : REM Turns on EPL Network. Same as SET 16640
REM loop until Network Start either failed or successful
WHILE NOT(BIT 16650 OR BIT 16649)
WEND
IF(BIT 16650) : REM Network start failed
GOTO NoEPL
END IF
REM Network is now operational.
...
[code]
...
_NoEPL
PRINT "EPL Network failed to start"
'[diagnostic stuff]
ENDP
0 Comments