BASIC commands
PROGRAMMING MANUAL
62
Revi
si
on 3.0
3.2.66 DATE
/i
3.2.67 DATE$
/i
3.2.68 DATUM
/i
Type
System parameter
Syntax
DATE
Description
Returns or sets the current date held by the Trajexia' s real time clock. The
number may be entered in DD:MM:YY or DD:MM:YYYY format.
Arguments
N/A
Example
DATE=20:10:05
or
DATE=20:10:2005
Example
>>PRINT DATE
36956
This prints the number representing the current day. This number is the
number of days since 1st January 1900, with 1 Jan. 1900 as 1.
See also
N/A
Type
System command
Syntax
DATE$
Description
Prints the current date DD/MM/YY as a string to the port. A 2-digit year
description is given.
Arguments
N/A
Example
PRINT #1,DATE$
This will print the date in format for example: 20/10/05
See also
N/A
Type
Axis command
Syntax
DATUM(sequence)
Description
The
DATUM
command makes one of 6 origin searches to position an axis to
an absolute position and also reset the Following Errors:
DATUM
uses both the creep and demand speed for the origin search. The
creep speed in the sequences is set with the
CREEP
axis parameter and the
demand speed is set with the
SPEED
axis parameter. The datum switch input
number, used for sequences 3 to 6, is set by the
DATUM_IN
parameter.
DATUM
works on the default basis axis (set with
BASE
) unless
AXIS
is used
to specify a temporary base axis.
Note: The origin input set with the
DATUM_IN
parameter is active low, i.e., the
origin switch is set when the input is off. The feedhold, reverse jog, forward
jog, forward and reverse limit inputs are also active low. Active low inputs are
used to enable fail-safe wiring.
Arguments
•
sequence
See the table below.
Example
No example.
See also
ACCEL
,
AXIS
,
AXISSTATUS
,
CREEP
,
DATUM_IN
,
DECEL
,
MOTION_ERROR
,
SPEED
.
I52E-EN-03.book Seite 62 Freitag, 29. Juni 2007 11:55 11