
Communication protocols
PROGRAMMING MANUAL
242
R
e
vi
si
o
n
1
.0
4.8.3
GRT1-ML2 status word
The GRT1-ML2 status flags give the status of the connection between the
GRT1-ML2 and the SmartSlice I/O Units, and the status of the SmartSlice I/
O Units. The status flags are 1 word in size. Their information is transferred
to the TJ2-MC64 as part of the input data.
The table below gives the meaning of the bits in the status word.
/i
To read the status word, use the command
MECHATROLINK(unit,36,station,vr)
where:
•
unit
is the number of the MECHATROLINK-II Master Unit in the Motion
Controller system
•
station
is the station address of the GRT1-ML2 set with the rotary
switches
•
vr
is the VR memory address where the read status word is put. Use -1
to print the status word to the Command Line Terminal interface.
Every servo cycle the status word is checked and a bitwise AND is
performed with the status word and the status error mask. If the result of this
AND operation is not 0, the WDOG is switched off. This can be used to
detect particular errors in GRT1-ML2 and stop the controller operation if they
occur.
To set the status error mask, use the command
MECHATROLINK(unit,37,station,value)
where:
•
unit
is the number of the MECHATROLINK-II Master Unit in the Motion
Controller system
•
station
is the station address of the GRT1-ML2 set with the rotary
switches
•
value
is the value of the status error mask that must be set.
The status error mask value can be read back by means of the command
MECHATROLINK(unit,39,station,vr)
where the arguments of the command are the same as for the command
MECHATROLINK(unit,36,station,vr)
. The default value of the status error
mask after the controller is turned on or reset is 4000 hex. This triggers the
Bit
Flag
Description
0
SmartSlice I/O Bus Communication
Error
Monitors the status of SmartSlice I/O commu-
nication
1
−
Reserved
2
SmartSlice I/O Unit Warning
0: Normal
1: Error detected
Indicates a minor SmartSlice I/O Unit error.
This flag goes ON when there is an error in
any one of the connected SmartSlice I/O
Units.
3
−
Reserved
4
SmartSlice I/O Unit Alarm
0: Normal
1: Error detected
Indicates a major SmartSlice I/O Unit error.
This flag goes ON when there is an error in
one of the connected SmartSlice I/O Units.
5
−
11
−
Reserved
12
Unit Maintenance
0: Normal
1: Error (monitor value reached)
Monitors the operating time threshold that is
set with the Unit power ON time monitor func-
tion
13
Automatic Restore Monitor
0: Restore successful
1: Restore failed
Indicates whether or not the automatic
parameter restore to the SmartSlice I/O Units
was completed successfully
14
Communication Unit Error
0: Normal
1: Error occurred
This flag is ON if one of the other flags (bits 0
to 13) is ON
15
I/O Refreshing
0: I/O communication stopped
1: I/O communication normal
Indicates whether I/O data is exchanged nor-
mally