BASIC commands
PROGRAMMING MANUAL 65
Revision 3.0
3.2.74 DEL
/i
3.2.75 DEMAND_EDGES
/i
3.2.76 DEVICENET
/i
Arguments The command can take up to 16 arguments.
• pos_i
The absolute position for (base+i) axis in user units. Refer to the BASE
command for the grouping of the axes.
Example BASE(2)
DATUM(5)
BASE(1)
DATUM(4)
WAIT IDLE
DEFPOS(-1000,-3500)
The last line defines the current position to (-1000,-3500) in user units. The
current position would have been reset to (0,0) by the two DATUM com-
mands.
See also AXIS, DATUM, DPOS, OFFPOS, MPOS, UNITS.
Type Program command
Syntax DEL [program_name]
RM [program_name]
Description The DEL command deletes a program from the controller. DEL without a pro-
gram name can be used to delete the currently selected program (using
SELECT). The program name can also be specified without quotes. DEL ALL
will delete all programs.
DEL can also be used to delete the Table: DEL "TABLE". The name
"TABLE" must be in quotes.
Note: This command is implemented for an offline (VT100) terminal. Within
Trajexia Tools users can select the command from the Program menu.
Arguments • program_name
Name of the program to be deleted.
Example >> DEL oldprog
See also COPY, NEW, RENAME, SELECT, TABLE.
Type Axis parameter (read-only)
Syntax DEMAND_EDGES
Description The DEMAND_EDGES axis parameter contains the current value of the
DPOS axis parameter in encoder edge units.
Arguments N/A
Example No example.
See also AXIS, DPOS.
Type System command
Syntax DEVICENET(unit_number, 2, 1, VR_start_outputs, no_outputs,
VR_start_inputs, no_inputs)
DEVICENET(unit_number, 4, 0)
Description DEVICENET function 2 configures the TJ1-DRT for data exchange with the
DeviceNet master unit and defines areas in the VR memory where I/O
exchange takes place. DEVICENET function 4 returns the data exchange sta-
tus of the TJ1-DRT. Refer to the table for the description of the bits in the data
exchange status word.
Arguments • unit_number
Specifies the unit number of the TJ1-DRT in the Trajexia system.
• VR_start_outputs
The starting address in VR memory of the controller where the output
data from the DeviceNet master is located.
• no_outputs
The number of output words from the DeviceNet master in VR memory.
• VR_start_inputs
The starting address in VR memory of the controller where the input data
for the DeviceNet master is located.
• no_inputs
The number of input words to the DeviceNet master in VR memory.
I52E-EN-03.book Seite 65 Freitag, 29. Juni 2007 11:55 11