BASIC commands
PROGRAMMING MANUAL
21
R
e
vi
si
o
n
1
.0
3.1.3
Communication commands and parameters
/i
3.1.4
Constants
/i
3.1.5
I/O commands, functions and parameters
/i
3.1.6
Mathematical functions and operands
/i
Name
Description
FINS_COMMS
Sends FINS Read Memory and Write Memory to a designated
FINS server unit.
GET
Waits for the arrival of a single character and assigns the ASCII
code of the character to variable.
HLM_COMMAND
Executes a specific Host Link command to the Slave.
HLM_READ
Reads data from the Host Link Slave to either VR or TABLE var-
iable array.
HLM_STATUS
Represents the status of the last Host Link Master command.
HLM_TIMEOUT
Defines the Host Link Master timeout time.
HLM_WRITE
Writes data to the Host Link Slave from either VR or TABLE var-
iable array.
HLS_NODE
Defines the Slave unit number for the Host Link Slave protocol.
INDEVICE
Parameter defines the default input device.
INPUT
Waits for a string to be received and assigns the numerical value
to variable.
KEY
Returns TRUE or FALSE depending on if character is received.
LINPUT
Waits for a string and puts it in VR variables.
OUTDEVICE
Defines the default output device.
Outputs a series of characters to a serial port.
SETCOM
Sets the serial communications.
Name
Description
FALSE
Equal to the numerical value 0.
OFF
Equal to the numerical value 0.
ON
Equal to the numerical value 1.
PI
Equal to the numerical value 3.1416.
TRUE
Equal to the numerical value -1.
Name
Description
AIN
Holds the value of the analog channel.
AOUT
Holds the value of the analog channel.
HW_PSWITCH
Sets on and off the hardware switch on output 0 of the TJ1-FL02
when predefined positions are reached.
IN
Returns the value of digital inputs.
OP
Sets one or more outputs or returns the state of the first 24 out-
puts.
PSWITCH
Turns on an output when a predefined position is reached, and
turns off the output when a second position is reached.
READ_OP
Returns the value of the digital outputs.
Name
Description
+ (ADDITION)
Adds two expressions.
- (SUBTRACTION)
Subtracts two expressions.
* (MULTIPLICATION)
Multiplies two expressions.
/ (DIVISION)
Divides two expressions.
^ (POWER)
Takes the power of one expression to the other expression.
= (IS EQUAL TO)
Checks two expressions to see if they are equal.
= (ASSIGNMENT)
Assigns an expression to a variable.
Name
Description