ezeio2:scriptref:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
ezeio2:scriptref:start [2019-09-02 21:29] andrehezeio2:scriptref:start [2019-11-19 01:51] andreh
Line 45: Line 45:
 | ''ModbusTCP()'' | Send & Receive Modbus commands on the Ethernet port | | ''ModbusTCP()'' | Send & Receive Modbus commands on the Ethernet port |
 | ''sleep()'' | Suspend the script for a short time (process events immediately) | | ''sleep()'' | Suspend the script for a short time (process events immediately) |
-| ''msSleep()'' | Suspend the script for a short time (not processing events - DEPRECIATED) | 
 | ''MBRTU_Read()'' | Read a register from a Modbus RTU device | | ''MBRTU_Read()'' | Read a register from a Modbus RTU device |
 | ''MBRTU_Write()'' | Write to a register on a Modbus RTU device | | ''MBRTU_Write()'' | Write to a register on a Modbus RTU device |
Line 65: Line 64:
 === State machines === === State machines ===
  
-A common programming pattern in control applications is to use state machines. PAWN and the ezeio implements strong support for state machines. The following is a typical pattern:+A common programming pattern in control applications is to use state machines. PAWN and the ezeio implements strong support for state machines. The following is a typical pattern showing the startup sequence of an engine. Note that there are three @Tick handlers; one for each state. Also note the "entry" and "exit" functions. For more detail, refer to the PAWN language guide.
  
 <code javascript> <code javascript>
  • ezeio2/scriptref/start.txt
  • Last modified: 2024-03-01 17:24
  • by andreh