OSSHELL
Inputs
Input |
Data type |
Description |
EN |
BOOL |
The command is executed on a rising edge of this input. |
CMD |
STRING |
Command line (can include arguments). |
ARGS |
STRING |
Optional arguments to be added to the command line. |
OUTFILE |
STRING |
Optional pathname of a file where to redirect shell outputs. |
The command line contains the content of several inputs.
Example:
CMD = ‘ls’
ARGS = ‘./folder’
OUTFILE = ‘./dirlist.txt’
The command line will be: ls ./folder>./dirlist.txt
Hint: The syntax of the command line depends on the operating system. This function block may be not available on some platforms. Refer to your OEM for more details.
Outputs
Output |
Data type |
Description |
READY |
BOOL |
Provides information about the function block:
|
ERR |
DINT |
Description of the last error. |
FBD Language
OSSHELL |
IEC 61131-3 Automation platform > Programming - Reference guide > Advanced operations > OSSHELL |
Created with the Personal Edition of HelpNDoc: Easily create iPhone documentation