EasyManuals Logo
Home>Omron>Industrial Equipment>SYSMAC FH Series

Omron SYSMAC FH Series User Manual

Omron SYSMAC FH Series
882 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #759 background imageLoading...
Page #759 background image
WWW.NNC.IR
Macro Reference
757
8
Appendices
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: XSetting the
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

Table of Contents

Other manuals for Omron SYSMAC FH Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC FH Series and is the answer not in the manual?

Omron SYSMAC FH Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC FH Series
CategoryIndustrial Equipment
LanguageEnglish

Related product manuals