Omron FZ4 Series User Manual page 251

Vision sensor
Table of Contents

Advertisement

Example
Output the character string to the file "C:\sample.txt".
Open "C:\sample.txt" For Append As #1
STRING$ = "Sample"
Print #1, STRING$ + " Print#"
Close #1
Writes data (macro console).
Print <Expression>[;|,<Expression>...]][;|,]
Parameters
The expression to be output and the character string (integer, double-precision, character
<Expression>
string).
Return Value
None.
Description
Output the variables and character strings to the macro console.
When the <Expression> is delimited with commas, it is output delimited by tabs.
When the <Expression> is delimited with semicolons, it is output after what was output immediately
before.
When the final semicolon (;) is deleted, the delimiter is attached and output.
The delimiter is that which is set in [SYS] -> [Communications] -> [Normal (ignored process)].
Example
Output the measurement results.
GetUnitData Unitnum&,"CR",CR#
GetUnitData Unitnum&,"X",X#
GetUnitData Unitnum&,"Y",Y#
Print CR#;",";X#;",";Y#
Output terminal all point output
PutAll <ioIdent>, <data>
Parameters
<ioIdent>
Identification name (string) of I/O module that executes send processing
<data>
Data to be output (integer)
FZ4 User's Manual
Using Custom Command
4
249

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents