### OSCALL – Operating system calls

Block SymbolLicensing group: STANDARD

Function Description
The OSCALL block is intended for executing operating system functions from within the REXYGEN system. The chosen action is performed upon a rising edge (off$\to$on) at the TRG input. However, not all actions are supported on individual platforms. The result of the operation and the possible error code are displayed by the E and iE outputs.

Note that there is also the EPC block available, which allows execution of external programs.

Input

 TRG Trigger of the selected action Bool

Outputs

 E Error flag Bool iE Error code Long (I32) i .... REXYGEN general error

Parameter

 action System function to perform  $\odot$1 Long (I32) 1 .... Reboot system 2 .... System shutdown 3 .... System halt 4 .... Flush disc caches 5 .... Lock system partition 6 .... Unlock system partition 7 .... Disable internal webserver 8 .... Enable internal webserver

2022 © REX Controls s.r.o., www.rexygen.com