Specifications
BASIC commands
PROGRAMMING MANUAL 108
Revision 5.0
/i
/i
3.2.162 INVERTER_WRITE
/i
Description INVERTER_READ reads the parameter, speed reference, torque reference
or alarm from the Inverter connected to the system via the MECHATROLINK-
II bus.
There are five INVERTER_READ functions:
• 0: Reads an Inverter parameter.
• 1: Reads the Inverter alarm.
• 2: Reads the speed reference.
• 3: Reads the torque reference.
• 4: Reads the Inverter inputs.
To use an Inverter via MECHATROLINK-II you must put the command and
the reference via communication option:
• Inverter MV/V7: N3=3; N4=9
• Inverter F7/G7: B1-01=3; B1-02=3.
Make you sure that the Inverter firmware supports the MECHATROLINK-II
board.
The command returns 1 if successfully executed and 0 if failed. The result (if
any) is returned in the selected VR.
Arguments • module
The number of the TJ1-ML__ that the Inverter is connected to.
• station
The MECHATROLINK-II station number of the Inverter.
• param_number
The number of the parameter to read. See the Inverter manual.
• param_size
The size of the parameter to read, 2 or 4 bytes. Most of the Inverter
parameters are 2 bytes long. See the Inverter manual.
• VR
The address in the VR memory of the TJ-MC__ where the read informa-
tion is put. When the function is 4, the result is returned as a bitwise
value. See the table below.
Bit Value Command Description
0 Hex 1 Run forward
1 Hex 2 Run reverse
2 Hex 4 Inverter multifunction Input 3
3 Hex 8 Inverter multifunction Input 4
4 Hex 10 Inverter multifunction Input 5
5 Hex 20 Inverter multifunction Input 6
6 Hex 40 Inverter multifunction Input 7
8 Hex 100 External fault
9 Hex 200 Fault reset
14 Hex 4000 Fault history data clear
15 Hex 8000 External BB command
• alarm_number
The number of the alarm to read. See the Inverter manual.
• from
The start address of the input to read.
• length
The length of the input to read.
Example No example.
See also N/A
Type System command
Syntax INVERTER_WRITE(module, station, 0, param_number, param_size, VR,
mode)
INVERTER_WRITE(module, station, 2, value)
INVERTER_WRITE(module, station, 3, value)
Bit Value Command Description