BASIC commands
PROGRAMMING MANUAL
24
R
e
vi
si
o
n
1
.0
3.1.11 System parameters
/i
DATE$
Prints the current date as a string.
DAY$
Prints the current day as a string
DEVICENET
Configures the TJ1-DRT (DeviceNet Slave Unit) for data
exchange, or returns the data exchange status of the TJ1-DRT.
ETHERNET
Reads and sets various parameters of TJ2-MC64 Ethernet port.
EX
Resets the controller.
FREE
Returns the amount of available memory.
GLOBAL
Declares a reference to one of VR variables.
HALT
Stops execution of all programs currently running.
HEX
Used in a print statement to output a number in hexadecimal for-
mat.
INITIALISE
Sets all axes and parameters to their default values.
INTEGER_READ
Splits a 64 bit variable in 2 32 bit values and copies
these values to 2 other variables.
INVERT_IN
Inverts input channels 0 - 31 in the software.
INVERTER_COMMAND
Reads I/O and clears alarm of the Inverter.
INVERTER_READ
Reads parameter, alarm, speed and torque reference of the
Inverter.
INVERTER_WRITE
Writes to parameter, speed and torque reference of the Inverter.
LIST_GLOBAL
Shows all GLOBAL and CONSTANT variables.
LOCK
Prevents the programs from being viewed or modified.
PROFIBUS
Configures the TJ1-PRT (PROFIBUS-DP Slave Unit) to
exchange I/O data with the master and returns the status of the
TJ1-PRT.
READ_BIT
Returns the value of the specified bit in the specified VR varia-
ble.
RESET
Resets all local variables on a task.
SCOPE
Programs the system to automatically store up to 4 parameters
every sample period to the TABLE variable array.
Name
Description
SET_BIT
Sets the specified bit in the specified VR variable to one.
TABLE
Writes and reads data to and from the TABLE variable array.
TABLEVALUES
Returns list of values from the TABLE memory.
TIME$
Prints the current time as a string.
TRIGGER
Starts a previously set
SCOPE
command.
VR
Writes and reads data to and from the global (VR) variables.
VRSTRING
Combines VR memory values so they can be printed as a string.
WA
Holds program execution for the number of milliseconds speci-
fied.
WAIT IDLE
Suspends program execution until the base axis has finished
executing its current move and any buffered move.
WAIT LOADED
Suspends program execution until the base axis has no moves
buffered ahead other than the currently executing move.
WAIT UNTIL
Repeatedly evaluates the condition until it is
TRUE
.
Name
Description
ADDRESS
Sets the ModbusRTU multidrop address for the controller
BATTERY_LOW
Returns the current status of the battery condition.
CHECKSUM
Contains the checksum for the programs in RAM.
COMMSERROR
Contains all the communications errors that have occurred since
the last time that it was initialised.
CONTROL
Contains the type of TJ2-MC64 in the system.
CORNER_MODE
Allows the program to control the cornering action.
D_ZONE_MAX
Controls the DAC output in conjunction with the Following Error
value.
D_ZONE_MIN
Controls the DAC output in conjunction with the Following Error
value.
Name
Description