User manual
Appendix 2 IT Functionality
Elpro_man_105g_1.18.doc Page 168
The arguments that can be passed to the SSI function printf are:
Argument Description
InReadSByte(offset) Reads a signed byte from position offset in the IN area
InReadUByte(offset) Reads an unsigned byte from position offset in the IN area
InReadSWord(offset) Reads a signed word (short) from position offset in the IN area
InReadUWord(offset) Reads an unsigned word (short) from position offset in the IN area
InReadSLong(offset) Reads a signed longword (long) from position offset in the IN area
InReadULong(offset) Reads an unsigned longword (long) from position offset in the IN
area
InReadString(offset) Reads a string (char*) from position offset in the IN area
InReadFloat(offset) Reads a floating point (float) value from position offset in the IN area
OutReadSByte(offset) Reads a signed byte from position offset in the OUT area
OutReadUByte(offset) Reads an unsigned byte from position offset in the OUT area
OutReadSWord(offset) Reads a signed word (short) from position offset in the OUT area
OutReadUWord(offset) Reads an unsigned word (short) from position offset in the OUT area
OutReadSLong(offset) Reads a signed longword (long) from position offset in the OUT area
OutReadULong(offset) Reads an unsigned longword (long) from position offset in the OUT
area
OutReadString(offset) Reads a NULL terminated string (char*) from position offset in the
OUT area
OutReadFloat(offset) Reads a floating point (float) value from position offset in the OUT
area
scanf
Syntax:
<?--#exec cmd_argument=’scanf( "ObjName", "format", Arg1, ..., ArgN), ErrVal1, ..., ErrvalN’-->
This SSI function reads a string passed from an object in a HTML form, interprets the
string according to the specification in format, and stores the result in the OUT area
according to the passed arguments. The formatting of the string is equal to the standard C
function call scanf()
ObjName - The name of the object with the passed data string
format - Specifies how the passed string shall be formatted
Arg1 - ArgN - Specifies where to write the data
ErrVal1 -ErrValN - Optional; specifies the value/string to write in case of an error.