Changes

Jump to: navigation, search

The Queue of Events

1,935 bytes added, 11:15, 22 June 2017
no edit summary
// program end
}
</syntaxhighlight>
 
= Type of Events =
 
This are the system events, declared in the library
 
<syntaxhighlight lang="pawn" line>
/* events codes */
const
{
SevEmergExit = 1, // receiving this event means that the program must stop execution
 
SevOnEnter, // the first event sent while entering a state
SevOnExit, // the last event sent while exiting a state
 
SevTick100mSec, // system tick sent at 100 (ms) rate
SevTick500mSec, // system tick sent at 500 (ms) rate
SevTickOneSec, // system tick sent at 1 (s) rate
 
SevTimerElapsed, // p0=timer number
 
SevEncCount, // p0=0, p1=1(count UP), p1=2(count DW)
 
SevDinChange, // p0= din number (0-19 = CP) (1000-1159 = IO) (2000-2159 = CA) (3000-3119 = CE)
SevDinActive, // p0= din number (0-19 = CP) (1000-1159 = IO) (2000-2159 = CA) (3000-3119 = CE)
SevDinInactive, // p0= din number (0-19 = CP) (1000-1159 = IO) (2000-2159 = CA) (3000-3119 = CE)
SevDinFastRel, // p0= din number (0-19 = CP) (3000-3119 = CE)
SevDinKeep, // p0= din number (0-19 = CP) (3000-3119 = CE)
 
SevAccMatch, // p0= acc number
 
SevAxisMoveDone, // p0= board number
SevAxisMoveAbort, // p0= board number p1= abort code ( 0= cil0 stalled max curr, 1= cil1 stalled max curr, 2= cil0 stop by cil1, 3= cil1 stop by cil0, 4= max delta )
 
SevCsDone, // p0= board number p1= pwm channel p2= cs number p3= step number
SevCsAbort, // p0= board number p1= pwm channel p2= cs number p3= step number
SevCsStep, // p0= board number p1= pwm channel p2= cs number p3= step number
 
SevMenuChange, // p0= return code of menu item selected
SevMenuClick, // p0= return code of menu item clicked
 
SevBareditChange, // no params
SevBareditExit, // no params
 
SevNumeditChange, // p0= numedit
SevNumeditExit, // p0= numedit, p1= exit code ( 0= cancel, 1= ok)
 
SevCmd, // p0,p1,p2,p3 came from command line eg:(script cmd 0 1 2 3)
SevCustom // opcode to use to feed in custom events
}
</syntaxhighlight>

Navigation menu