WWW.NNC.IR
Macro Reference
757
8
App
end
ice
s
Vision System FH/FZ5 Series
User’s Manual (Z340)
Time$
Reads out the clock time from the internal clock.
Format
Time$
Parameter
None.
Return value
Returns the character string type time value.
The time value is a character string of the internal clock time whose hour (HH), minute (MM), and second
(SS) separated by a colon (:). The ranges of the hour, minute, and second values are as follows.
Hour (HH) : 00 to 23
Minute (MM) : 00 to 59
Second (SS) : 00 to 59
Description
Reads the time from the internal clock and returns the time value (HH, MM, SS) in character string format.
The internal clock can be adjusted in [Date-time Settings] under [System settings]. (Reference:
Date and Time: [Date-time Setting] (p.291))
If a value is assigned to the return value variable or the variable is not used in an expression, a "Syntax error"
error will occur.
Usage Cautions
• None.
Example
Outputs to the read internal clock value to the system status console window.
The result is shown below.
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
Dim NOW$(2)
Rem Read out the clock time from the internal clock.
NOW$ = Time$
Rem Change the format of the read out clock time.
For I&=0 To 2
NOW$(I&) = Piece$(NOW$, ":", I&+1, I&+1)
Next
Rem Output to the system status console window the time which the format have been changed previously.
Print NOW$(0) + ":" + NOW$(1) + ":" + NOW$(2)
01:23:45
Содержание fh-1 series
Страница 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Страница 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 132: ...WWW NNC IR Useful Functions for Operation 130 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 172: ...WWW NNC IR Saving Scene Groups in External Memory 170 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 254: ...WWW NNC IR Basic Knowledge For Macro Customize Functions 252 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 650: ...WWW NNC IR Macro Reference 648 Vision System FH FZ5 Series User s Manual Z340 Related Items None...
Страница 881: ...WWW NNC IR...