
4
Using
Tool
284
Using Custom Command
FZ4 User's Manual
Example
Get the tangent of 45 degrees.
DATA#=Tan(45/180*3.141592)
The result is as follows:
DATA#=0.999999673205
Reads out the time from the internal clock.
Time$
Parameters
None.
Return Value
Returns the value of the character string.
The content of the value is the character string in which the time from the internal clock is given as Hour
(HH), Minute (MM) and Second (SS), separated by colons (:).
The range of the time returned is as follows.
Hour (HH) : 00 - 23
Minute (MM) : 00 - 59
Second (SS) : 00 - 59
Description
Read out the time from the internal clock in the Controller.
The internal clock setting is performed using [System Settings] -> [Date/Time].
Example
Read out the date from the internal clock, change the format and output it to the macro console.
Dim NOW$(2)
NOW$=Time$
For I&=0 To 2
NOW$(I&) = Piece$(NOW$,":",I&+1,I&+1)
Next
Print NOW$(0)+"Hours"+NOW$(1)+"Minutes"+NOW$(2)+"Seconds"
Acesst 1.0 6251194
Summary of Contents for FZ4 Series
Page 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Page 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Page 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Page 566: ......
Page 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Page 654: ...652 FZ4 User s Manual...
Page 655: ......