Download Program Block Editor and Compiler (PBEC) For Hercules
Transcript
TABLE OF CONTENTS 1. INTRODUCTION ................................................................................................... 4 1.1 File menu .........................................................................................................................................................4 1.2 Compile menu .................................................................................................................................................4 1.3 Language menu...............................................................................................................................................4 1.4 Help menu .......................................................................................................................................................4 2. PROGRAM BLOCKS............................................................................................ 5 2.1 Starting the Program Block Editor and Compiler ......................................................................................6 2.1.1 Starting up the application............................................................................................................................6 2.2 Creating and editing code ..............................................................................................................................7 2.2.1 Creating global References...........................................................................................................................7 2.2.2 Creating global Functions ............................................................................................................................8 2.2.2.1 Function Code display ............................................................................................................................9 2.2.2.2 Library functions ..................................................................................................................................10 2.2.3 Events: viewing event handler functions....................................................................................................16 2.2.3.1 OnError(uchar channel, uchar error_type .............................................................................................16 2.2.3.2 OnFrame(DataFrame *frame, uchar channel) .......................................................................................16 2.2.3.3 OnKey(char character)..........................................................................................................................16 2.2.3.4 OnStart(long time) ................................................................................................................................17 2.2.3.5 OnStop(long time) ...............................................................................................................................17 2.2.3.6 OnTimer(uint timerid) ..........................................................................................................................17 2.2.3.7 OnTrigger(long time)............................................................................................................................18 2.2.3.8 OnSerial(const void * data, unsigned short datacount).........................................................................18 2.3 Creating and Managing PSF files ...............................................................................................................19 2.4 Compiling PSF Files .....................................................................................................................................20 3