Download Print this page

Anybus CompactCom 40 Network Manual page 46

Ethernet/ip iiot
Hide thumbs Also See for CompactCom 40:

Advertisement

Server Side Include (SSI)
8.3.9
printf()
This function returns a formatted string which may contain data from the Anybus CompactCom
module and/or application. The formatting syntax used is similar to that of the standard C-
function printf().
The function accepts a template string containing zero or more formatting tags, followed by a
number of arguments. Each formatting tag corresponds to a single argument, and determines
how that argument shall be converted to human readable form.
Syntax:
<?--#exec cmd_argument='printf("template" [, argument1, ..., argumentN])'-->
template:
argument:
Default Output
Scenario
Success
ABCCMessage error
Example
See ..
ABCCMessage(), p. 48
Example (Get_Attribute):, p. 50
Formatting Tags
Formatting tags are written as follows:
%[Flags][Width][.Precision][Modifier]type
Anybus CompactCom 40 EtherNet/IP IIoT Network Guide
Template which determines how the arguments shall be represented. May contain any
number of formatting tags which are substituted by subsequent arguments and formatted as
requested. The number of format tags must match the number of arguments; if not, the
result is undefined.
See section "Formatting Tags" below for more information.
Source arguments; optional parameters which specify the actual source of the data that shall
be inserted in the template string. The number of arguments must match the number of
formatting tags; if not, the result is undefined.
At the time of writing, the only allowed argument is ABCCMessage().
See also...
ABCCMessage(), p. 48
Default Output
(printf() result)
ABCCMessage error string
(Errors, p.
51)
44 (244)
SCM-1202–069 1.9 en-US

Advertisement

loading
Need help?

Need help?

Do you have a question about the CompactCom 40 and is the answer not in the manual?

Questions and answers