PROGRAMMING15. CUSTOM MACRO
B–64124EN/01
310
Time information can be read and written.
Table 15.2 (d) System variables for time information
Variable
number
Function
#3001 This variable functions as a timer that counts in 1–millisecond in-
crements at all times. When the power is turned on, the value of
this variable is reset to 0. When 2147483648 milliseconds is
reached, the value of this timer returns to 0.
#3002 This variable functions as a timer that counts in 1–hour incre-
ments when the cycle start lamp is on. This timer preserves its
value even when the power is turned off. When 9544.371767
hours is reached, the value of this timer returns to 0.
#3011 This variable can be used to read the current date (year/month/
day). Year/month/day information is converted to an apparent
decimal number. For example, September 28, 2001 is repre-
sented as 20010928.
#3012 This variable can be used to read the current time (hours/minutes/
seconds). Hours/minutes/seconds information is converted to an
apparent decimal number. For example, 34 minutes and 56 se-
conds after 3 p.m. is represented as 153456.
The control state of automatic operation can be changed.
Table 15.2 (e) System variable (#3003) for automatic operation control
#3003 Single block Completion of an auxiliary
function
0 Enabled To be awaited
1 Disabled To be awaited
2 Enabled Not to be awaited
3 Disabled Not to be awaited
S When the power is turned on, the value of this variable is 0.
S When single block stop is disabled, single block stop operation is not
performed even if the single block switch is set to ON.
S When a wait for the completion of auxiliary functions (M, S, and T
functions) is not specified, program execution proceeds to the next
block before completion of auxiliary functions. Also, distribution
completion signal DEN is not output.
D Time information
D Automatic operation
control