The ezeio system supports the PAWN script language. PAWN has a C-like syntax and executes completely inside the ezeio controller, allowing users to add custom functionality to the ezeio controller. This manual documents only the custom functions added to the language for interaction with the ezeio resources. We assume the reader already has a general understanding of programming languages, and should with the help of the PAWN language guide (http://www.compuphase.com/pawn) be able to learn the specifics of the language.
The PAWN language is powerful enough to create very complex functionality. Inputs, outputs, timers, schedules, alarm events and reporting features are available to the script through the custom functions defined in this manual, and the language can handle basic math, text strings, state machines and complex logic.
Scripts written for the ezeio should be “event driven”. The ezeio defines a number of system events that are suitable as containers for user logic. There should be no “main loop” in the user code, as that would block the ability to process system events. Instead, design your code to react on the events, and as soon as you finish processing, return from the event call to allow the next event to be processed.
Example of script functions
- Configuration interface functions
- Calendar and time functions
- Mathematical functions
- Language functions
- String functions
- Communication functions
- Library functions
See the ezeio Manual for further information