BASIC commands
PROGRAMMING MANUAL
58
Revi
si
on 3.0
3.2.51 COMMSERROR
/i
/i
3.2.52 COMMSTYPE
/i
/i
3.2.53 COMPILE
/i
See also
AXIS
,
CONNECT
,
MOVELINK
.
Type
System parameter (read-only)
Syntax
COMMSERROR
Description
The
COMMSERROR
parameter contains the communication errors that
have occurred since the last time that it was initialized.
The bits in
COMMSERROR
are given in the table below.
Arguments
N/A
Example
No example.
See also
N/A
Bit
Description Error
location
8
Port 1 Rx data ready
Serial port 1
9
Port 1 Rx Overrun
Serial port 1
10
Port 1 Parity Error
Serial port 1
11
Port 1 Rx Frame Error
Serial port 1
12
Port 2 Rx data ready
Serial port 2
13
Port 2 Rx Overrun
Serial port 2
14
Port 2 Parity Error
Serial port 2
15
Port 2 Rx Frame Error
Serial port 2
Type
Slot parameter
Syntax
COMMSTYPE SLOT(unit_number)
Description
This parameter returns the type of unit in a controller unit. The table below
lists the return values.
Arguments
•
unit_number
Unit numbers are 0 to 6, with 0 being the unit immediately to the right of
the TJ1-MC__.
Example
No example.
See also
N/A
Return value
Description
0
Unused unit
31
TJ1-ML__
33
TJ1-FL02
34
TJ1-PRT
35
TJ1-DRT
Type
Program command
Syntax
COMPILE
Description
The
COMPILE
command forces the compilation the current program to inter-
mediate code. Program are compiled automatically by the system software
prior to program execution or when another program is selected.
Arguments
N/A
Example
No example.
See also
N/A
I52E-EN-03.book Seite 58 Freitag, 29. Juni 2007 11:55 11