Skip to content

Commit e528e98

Browse files
committed
docs -add a man page for the mitsubushi VFD driver
1 parent 58624aa commit e528e98

2 files changed

Lines changed: 239 additions & 1 deletion

File tree

docs/man/man1/mitsub_vfd.1

Lines changed: 238 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,238 @@
1+
.TH mitsub_vfd "1" "2018-10-25" "LinuxCNC Documentation" "HAL Component"
2+
3+
4+
.SH NAME
5+
6+
mitsub_vfd - HAL userspace component for Mitsubishi A500 F500
7+
E500 A500 D700 E700 F700-series VFDs (others may work)
8+
9+
10+
.SH SYNOPSIS
11+
12+
.B loadrt mitsub_vfd [--baud 4800] [--port /dev/ttyUSB0] name1=number1[,name2=numer2...]
13+
.br
14+
\fBname1\fR is user selectable (usually a description of the
15+
controlled device).
16+
.br
17+
\fBnumber1\fR is the slave number that was set on the VFD.
18+
must be two digits (Parameter 117)
19+
.br
20+
\fBname=number\fR can be repeated for multiple VFD's
21+
connected together
22+
.br
23+
\fB--baud\fR is optional as it defaults to 9600
24+
all networked vfds must be set to the same baudrate
25+
.br
26+
\fB--port\fR is optional as it defaults to ttyS0
27+
28+
.SH DESCRIPTION
29+
30+
The mitsub_vfd component interfaces a Mitsubishi VFD to
31+
LinuxCNC. The VFD is connected via RS-485 serial to the
32+
computer's USB or serial port using a RS-232/RS-485 converter
33+
34+
35+
.SH HARDWARE SETUP
36+
reference manual 'communication option reference manual'
37+
and A500 technical manual for 500 series.
38+
Fr-A700 F700 E700 D700 technical manual for the 700 series
39+
.br
40+
The inverter must be set manually for communication
41+
.br
42+
( you may have to set PR 77 to 1 to unlock PR modifcation )
43+
.br
44+
You must power cycle the inverter for some of these. (eg 79)
45+
46+
.TP
47+
\fBVFD INTERNAL PARAMETERS: \Fr
48+
49+
\fBPARAMETER 79\fR - 1 or 0
50+
51+
\fBPARAMETER 117\fR station number - 1
52+
.br
53+
(can be optionally set 0 - 31) if component is also set
54+
55+
\fBPARAMETER 118\fR communication speed 96
56+
.br
57+
(can be optionally set 48,96,192 if component is also set)
58+
59+
\fBPARAMETER 119\fR stop bit/data length - 0
60+
.br
61+
(8 bits, two stop - don't change)
62+
63+
\fBPARAMETER 120\fR parity - 0
64+
.br
65+
(no parity - don't change)
66+
67+
\fBPARAMETER 121\fR COM tries - 10
68+
.br
69+
(if maximuim 10 COM errors then inverter faults- can change)
70+
71+
\fBPARAMETER 122\fR COM check time interval 9999
72+
.br
73+
(never check - if communication is lost inverter will
74+
not know (can change)
75+
76+
\fBPARAMETER 123\fR wait time - 9999
77+
.br
78+
no wait time is added to the serial data frame (don't change)
79+
80+
\fBPARAMETER 124\fR CR selection - 0
81+
.br
82+
don't change
83+
84+
.SH
85+
86+
This driver assumes certain other VFD settings:
87+
-That the motor frequency status is set to show herts.
88+
.br
89+
-That the status bit 3 is up to speed
90+
.br
91+
-That the status bit 7 is alarm
92+
93+
some models (eg E500) cannot monitor status.
94+
.br
95+
You must set set the monitor pin to false.
96+
.br
97+
In this case pins such as up-to-speed,
98+
amps, alarm and status bits are not useful.
99+
100+
.SH PINS
101+
\fB[VFD NAME].fwd\fR (bit, in)::
102+
forward/reverse pin
103+
.br
104+
\fB[VFD NAME].run\fR (bit, in)::
105+
run/stop pin
106+
.br
107+
\fB[VFD NAME].debug\fR (bit, in)::
108+
set debug mode pin
109+
.br
110+
This will print many messages to the terminal
111+
.br
112+
\fB[VFD NAME].monitor\fR (bit, in)::
113+
set monitor mode pin
114+
If false request-status command will not be sent to vfd.
115+
Status, amps, power, motor-feedback, and alarm would then not
116+
be useful.
117+
.br
118+
\fB[VFD NAME].estop\fR (bit, in)::
119+
set estop mode pin
120+
.br
121+
This will stop the VFD.
122+
Restarting requires the run pin to cycle.
123+
124+
\fB[VFD NAME].fwd\fR (bit, out)::
125+
up-to-speed status pin
126+
Motor is at requested speed within VFD's settings tolerance.
127+
.br
128+
\fB[VFD NAME].alarm\fR (bit, out)::
129+
alarm status pin
130+
.br
131+
132+
\fB[VFD NAME].motor-cmd\fR (float, in)::
133+
The requested motor speed, is Hertz
134+
.br
135+
136+
\fB[VFD NAME].motor-fb\fR (float, out)::
137+
The motor feedback speed (from vfd) in hertz
138+
.br
139+
\fB[VFD NAME].motor-amps\fR (float, out)::
140+
The motor current, in amps
141+
.br
142+
\fB[VFD NAME].motor-power\fR (float, out)::
143+
The motor power
144+
.br
145+
146+
\fB[VFD NAME].scale-cmd\fR (float, in)::
147+
Motor command's scale setting defaults to 1
148+
.br
149+
\fB[VFD NAME].scale-cmd\fR (float, in)::
150+
Motor command's scale setting defaults to 1
151+
.br
152+
\fB[VFD NAME].scale-cmd\fR (float, in)::
153+
Motor command's scale setting defaults to 1
154+
.br
155+
156+
\fB[VFD NAME].stat-bit-0\fR (bit, out)::
157+
raw status bit
158+
.br
159+
\fB[VFD NAME].stat-bit-1\fR (bit, out)::
160+
raw status bit
161+
.br
162+
\fB[VFD NAME].stat-bit-2\fR (bit, out)::
163+
raw status bit
164+
.br
165+
\fB[VFD NAME].stat-bit-3\fR (bit, out)::
166+
raw status bit
167+
set the VFD so this is motor-at-speed status
168+
.br
169+
\fB[VFD NAME].stat-bit-4\fR (bit, out)::
170+
raw status bit
171+
.br
172+
\fB[VFD NAME].stat-bit-5\fR (bit, out)::
173+
raw status bit
174+
.br
175+
\fB[VFD NAME].stat-bit-6\fR (bit, out)::
176+
raw status bit
177+
.br
178+
\fB[VFD NAME].stat-bit-7\fR (bit, out)::
179+
raw status bit
180+
Set the VFD so this in the alarm bit
181+
182+
.SH SAMPLE HAL
183+
loadusr -Wn coolant mitsub_vfd --port /dev/ttyUSB0 spindle=02 coolant=01
184+
.br
185+
# **************** Spindle VFD setup slave 2 ****************
186+
.br
187+
net spindle-vel-cmd spindle.motor-cmd
188+
.br
189+
net spindle-cw spindle.fwd
190+
.br
191+
net spindle-on spindle.run
192+
.br
193+
net spindle-at-speed spindle.up-to-speed
194+
.br
195+
net estop-out spindle.estop
196+
.br
197+
# cmd scaled to RPM (belt/gearbox driven)
198+
.br
199+
setp spindle.scale-cmd .135
200+
.br
201+
# feedback is in rpm (recipicale of command)
202+
.br
203+
setp spindle.scale-fb 7.411
204+
.br
205+
# turn on monitoring so feedback works
206+
.br
207+
setp spindle.monitor 1
208+
.br
209+
net spindle-speed-indicator spindle.motor-fb
210+
.br
211+
# *************** Coolant vfd setup slave 1 *****************
212+
.br
213+
net coolant-flood coolant.run
214+
.br
215+
net coolant-is-on coolant.up-to-speed
216+
.br
217+
# cmd and feedback scaled to hertz
218+
.br
219+
setp coolant.scale-cmd 1
220+
.br
221+
setp coolant.scale-fb 1
222+
.br
223+
# command full speed
224+
.br
225+
setp coolant.motor-cmd 60
226+
.br
227+
# allows us to see status
228+
.br
229+
setp coolant.monitor 1
230+
.br
231+
net estop-out coolant.estop
232+
233+
.SH ISSUES
234+
235+
some models (eg E500) cannot monitor status, so set the
236+
monitor pin to false In this case pins such as up-to-speed,
237+
amps, alarm and status bits are not useful.
238+

src/hal/user_comps/mitsub_vfd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def __setitem__(self, item, value):
341341
--port is optional as it defaults to ttyS0'''
342342
print
343343
print ''' Sample linuxcnc code
344-
loadusr -Wn coolant mitsub_vfd.py spindle=02 coolant=01
344+
loadusr -Wn coolant mitsub_vfd spindle=02 coolant=01
345345
# **************** Spindle VFD setup slave 2 *********************
346346
net spindle-vel-cmd spindle.motor-cmd
347347
net spindle-cw spindle.fwd

0 commit comments

Comments
 (0)