WWW.NNC.IR
Macro Reference
458
Vision System FH/FZ5 Series
User’s Manual (Z340)
DebugPrint
Outputs debug information to the system status console window.
Format
DebugPrint <expression>[;|, <expression>...]
Parameter
Return value
None.
Description
Outputs the numerical expression or character string specified in the <expression> parameter to the system
status console window. (Reference: XDescription of the System Status Console Window (p.185))
If an non-existent number, numerical value, or combination of data types or values are specified for a
parameter, an "Illegal function call" error will occur.
If the format is written incorrectly, such as writing the macro function name incorrectly, omitting a comma, or
omitting a half-width space, a "Syntax error" error will occur.
Usage Cautions
• This macro function is only enabled when specified in debug mode with the Debug function. Specifying
other values than the range above will treat the statement with this function in the same manner with the
Rem function (i.e., ignores the statement). (Reference: XHow to Use the Debug Function (p.235))
• After the data output to the system status console window, the window is displayed on top of the Sensor
Controller main screen. To display the system status console window on top of the main screen, click [_] on
the upper-right of the system status console window or press [Alt] + [Tab] on the connected USB keyboard
to the sensor controller.
Example
Outputs a debug information (character string) to the system status console window in debug mode.
Parameter
name
Data type Description
<expression>
Integer type
Double
precision real
number data
type
Character
string type
Array
Numerical expression or character string to be output
Rem Set the execution form to debug mode.
Debug 18
Rem Output character string "Result = OK" as the debug information
DebugPrint "Result = " + "OK"
Rem Set the execution form to release mode.
Debug 1