Skip to content

Commit a84db96

Browse files
authored
Merge pull request #2555 from smoe/docs29_mac_101
Whatever I found while reviewing translations (smoe:Docs29 mac 101)
2 parents a2796eb + 5cf56c6 commit a84db96

File tree

8 files changed

+860
-1481
lines changed

8 files changed

+860
-1481
lines changed

docs/src/drivers/gm.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ Currently GM produced power amplifiers has upper level driver which export pins
406406
They receive position reference and provide encoder feedback via CAN bus.
407407

408408
The frames are standard (11 bit) ID frames, with 4 byte data length.
409-
The BAUD rate is 1 Mbit/s.
409+
The baud rate is 1 Mbit/s.
410410
The position command IDs for axis 0..5 are 0x10..0x15.
411411
The position feedback IDs for axis 0..5 are 0x20..0x25.
412412

docs/src/gui/gladevcp.adoc

Lines changed: 449 additions & 813 deletions
Large diffs are not rendered by default.

docs/src/hal/parallel-port.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ so if you like to 'get under the hood' and re-arrange things, be sure to check t
198198
* `parport.<p>.pin-`__<n>__`-in` (bit) Tracks a physical input pin.
199199
* `parport.<p>.pin-`__<n>__`-in-not` (bit) Tracks a physical input pin, but inverted.
200200

201-
For each pin, _<p>_ is the port number, and '<n>' is the physical pin number in the 25 pin D-shell connector.
201+
For each pin, _<p>_ is the port number, and _<n>_ is the physical pin number in the 25 pin D-shell connector.
202202

203203
For each physical output pin, the driver creates a single HAL pin, for example: `parport.0.pin-14-out`.
204204

@@ -220,7 +220,7 @@ If `-invert` is TRUE, then setting the HAL `-out` pin TRUE will drive the physic
220220
[[sub:parport-functions]]
221221
== Functions
222222

223-
* `parport.`__<p>__`.read' (funct) Reads physical input pins of port number _<p>_ and updates HAL `-in` and `-in-not` pins.
223+
* `parport.`__<p>__`.read` (funct) Reads physical input pins of port number _<p>_ and updates HAL `-in` and `-in-not` pins.
224224
* `parport.read-all` (funct) Reads physical input pins of all ports and updates HAL `-in` and `-in-not` pins.
225225
* `parport.`__<p>__`.write` (funct) Reads HAL `-out` pins of port number _<p>_ and updates that port's physical output pins.
226226
* `parport.write-all` (funct) Reads HAL `-out` pins of all ports and updates all physical output pins.

docs/src/hal/rtcomps.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ The component exports two functions. Each function acts on all of the PWM genera
262262
The high speed function `pwmgen.make-pulses` should be run in the base (fastest) thread, from 10 to 50&#8239;µs depending on the capabilities of the computer.
263263
That thread's period determines the maximum PWM carrier frequency, as well as the resolution of the PWM or PDM signals.
264264
If the base thread is 50,000&#8239;ns then every 50&#8239;µs the module decides if it is time to change the state of the output.
265-
At 50% duty cycle and 25&#9239;Hz PWM frequency this means that the output changes state every (1/25)&#8239;s / 50&#8239;µs * 50% = 400 iterations.
265+
At 50% duty cycle and 25&#8239;Hz PWM frequency this means that the output changes state every (1/25)&#8239;s / 50&#8239;µs * 50% = 400 iterations.
266266
This also means that you have a 800 possible duty cycle values (without dithering).
267267
* (funct) `pwmgen.update` - Low speed function to scale and limit value and handle other parameters.
268268
This is the function of the module that does the more complicated mathematics to work out how many base-periods the output should be high for, and how many it should be low for.
@@ -346,7 +346,7 @@ halcmd: unloadrt encoder
346346
It is also unaffected by reset or the index pulse.
347347
* `encoder._<chan>_.reset` (bit, In) - When True, force 'counts' and 'position' to zero immediately.
348348
* `encoder._<chan>_.velocity` (float, Out) - Velocity in scaled units per second.
349-
`encoder' uses an algorithm that greatly reduces quantization noise as compared to simply differentiating the 'position' output.
349+
`encoder` uses an algorithm that greatly reduces quantization noise as compared to simply differentiating the 'position' output.
350350
When the magnitude of the true velocity is below min-speed-estimate, the velocity output is 0.
351351
* `encoder._<chan>_.x4-mode` (bit, I/O) (default: TRUE) - Enables times-4 mode.
352352
When true, the counter counts each edge of the quadrature waveform (four counts per full cycle).

docs/src/ladder/classic-ladder.adoc

Lines changed: 274 additions & 464 deletions
Large diffs are not rendered by default.

docs/src/man/man1/hy_gt_vfd.1.adoc

Lines changed: 77 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -13,50 +13,42 @@ hy_gt_vfd - HAL non-realtime component for Huanyang GT-series VFDs
1313

1414
== DESCRIPTION
1515

16-
The hy_gt_vfd component interfaces a Huanyang GT-series VFD to the
17-
LinuxCNC HAL. The VFD is connected via RS-485 serial to the LinuxCNC
18-
computer.
16+
The hy_gt_vfd component interfaces a Huanyang GT-series VFD to the LinuxCNC HAL.
17+
The VFD is connected via RS-485 serial to the LinuxCNC computer.
1918

2019

2120
== Hardware setup
2221

23-
At least some Huanyang GT VFDs must be physically modified to enable
24-
Modbus communication.
22+
At least some Huanyang GT VFDs must be physically modified to enable Modbus communication.
2523

26-
The circuit board location marked "SW1" is identified in the manual as
27-
"Switch of terminal resistor for RS485 communication". On the only
28-
VFD I have experience with, the circuit board contained no switch at
29-
that location, instead holding a pair of crossed jumper wires (top-left
30-
pad connected to bottom-right pad, top-right to bottom-left). In this
31-
configuration, no Modbus communication is possible. We had to desolder
32-
the two crossed jumper wires and re-solder them parallel to each other
33-
(top-left to bottom-left, top-right to bottom-right).
24+
The circuit board location marked "SW1" is identified in the manual as "Switch of terminal resistor for RS485 communication".
25+
On the only VFD I have experience with, the circuit board contained no switch at that location, instead holding a pair of crossed jumper wires (top-left pad connected to bottom-right pad, top-right to bottom-left).
26+
In this configuration, no Modbus communication is possible.
27+
We had to desolder the two crossed jumper wires and re-solder them parallel to each other (top-left to bottom-left, top-right to bottom-right).
3428

3529

3630
== Firmware setup
3731

38-
The Huanyang GT VFD must be configure via the faceplate to talk Modbus
39-
with LinuxCNC. Consult the Operation section of the Huanyang GT-series
40-
Inverter Manual for details. Set the following parameters:
32+
The Huanyang GT VFD must be configure via the faceplate to talk Modbus with LinuxCNC.
33+
Consult the Operation section of the Huanyang GT-series Inverter Manual for details.
34+
Set the following parameters:
4135

4236
P0.01 = 2::
4337

4438
Set Run Command Source to Modbus serial port.
4539

4640
P0.03::
4741

48-
Set Maximum Frequency to the maximum frequency you want the VFD to
49-
output, in Hz.
42+
Set Maximum Frequency to the maximum frequency you want the VFD to output, in Hz.
5043

5144
P0.04::
5245

53-
Set Upper Frequency Limit to the maximum frequency you want the VFD
54-
to output, in Hz. This should be the same as the value in P0.03.
46+
Set Upper Frequency Limit to the maximum frequency you want the VFD to output, in Hz.
47+
This should be the same as the value in P0.03.
5548

5649
P0.05::
5750

58-
Set Lower Frequency Limit to the minimum frequency you want the VFD
59-
to output, in Hz.
51+
Set Lower Frequency Limit to the minimum frequency you want the VFD to output, in Hz.
6052

6153
P0.07 = 7::
6254

@@ -72,8 +64,7 @@ P2.02 = ???::
7264

7365
P2.03 = ???::
7466

75-
Set Motor Rated Speed to the motor's speed in RPM at its rated
76-
maximum frequency.
67+
Set Motor Rated Speed to the motor's speed in RPM at its rated maximum frequency.
7768

7869
P2.04 = ???::
7970

@@ -85,13 +76,13 @@ P2.05 = ???::
8576

8677
PC.00 = 1::
8778

88-
Set Local Address to 1. This matches the default in the hy_gt_vfd
89-
driver, change this if your setup has special needs.
79+
Set Local Address to 1.
80+
This matches the default in the hy_gt_vfd driver, change this if your setup has special needs.
9081

9182
PC.01 = 5::
9283

93-
Set Baud Rate Selection to 5 (38400 bps). This matches the default
94-
in the hy_gt_vfd driver, change this if your setup has special needs.
84+
Set baud rate selection to 5 (38400 bps).
85+
This matches the default in the hy_gt_vfd driver, change this if your setup has special needs.
9586

9687
0 = 1200
9788
1 = 2400
@@ -102,181 +93,167 @@ PC.01 = 5::
10293

10394
PC.02 = 0::
10495

105-
Set Data Format (8n1 RTU). This matches the default in the hy_gt_vfd
106-
driver, change this if your setup has special needs.
96+
Set Data Format (8n1 RTU).
97+
This matches the default in the hy_gt_vfd driver, change this if your setup has special needs.
10798

10899
PC.03 = 1::
109100

110-
Set Communication Delay Time to 1 ms. This is expected by the
111-
hy_gt_vfd driver.
101+
Set Communication Delay Time to 1 ms.
102+
This is expected by the hy_gt_vfd driver.
112103

113104

114105
== OPTIONS
115106

116107
*-b*, *--bits* _N_::
117108

118-
(default 8) For Modbus communication. Set number of data bits
119-
to _N_. _N_ must be between 5 and 8 inclusive.
109+
(default 8) For Modbus communication.
110+
Set number of data bits to _N_.
111+
_N_ must be between 5 and 8 inclusive.
120112

121113
*-p*, *--parity* [Even,Odd,None]
122114

123-
(default None) For Modbus communication. Set serial parity to Even,
124-
Odd, or None.
115+
(default None) For Modbus communication.
116+
Set serial parity to Even, Odd, or None.
125117

126118
*-r*, *--rate* _N_::
127119

128-
(default 38400) For Modbus communication. Set baud rate to _N_.
129-
It is an error if the rate is not one of the following: 1200,
130-
2400, 4800, 9600, 19200, 38400
120+
(default 38400) For Modbus communication.
121+
Set baud rate to _N_.
122+
It is an error if the rate is not one of the following: 1200, 2400, 4800, 9600, 19200, 38400
131123

132124
*-s*, *--stopbits* [1,2]::
133125

134-
(default 1) For Modbus communication. Set serial stop bits to 1
135-
or 2.
126+
(default 1) For Modbus communication.
127+
Set serial stop bits to 1 or 2.
136128

137129
*-t*, *--target* _N_::
138130

139-
(default 1) For Modbus communication. Set Modbus target (slave)
140-
number. This must match the device number you set on the Huanyang
141-
GT VFD.
131+
(default 1) For Modbus communication.
132+
Set Modbus target (slave) number.
133+
This must match the device number you set on the Huanyang GT VFD.
142134

143135
*-d*, *--device* _PATH_::
144136

145-
(default /dev/ttyS0) For Modbus communication. Set the name of
146-
the serial device node to use.
137+
(default /dev/ttyS0) For Modbus communication.
138+
Set the name of the serial device node to use.
147139

148140
*-v*, *--verbose*::
149141

150-
Turn on verbose mode.
142+
Turn on verbose mode.
151143

152144
*-S*, *--motor-max-speed* _RPM_::
153145

154-
The motor's max speed in RPM. This must match the motor speed value
155-
configured in VFD register P2.03.
146+
The motor's max speed in RPM.
147+
This must match the motor speed value configured in VFD register P2.03.
156148

157149
*-F*, *--max-frequency* _HZ_::
158150

159-
This is the maximum output frequency of the VFD in Hz. It should
160-
correspond to the motor's rated max frequency, and to the maximum
161-
and upper limit output frequency configured in VFD register P0.03
162-
and P0.04.
151+
This is the maximum output frequency of the VFD in Hz.
152+
It should correspond to the motor's rated max frequency, and to the maximum and upper limit output frequency configured in VFD register P0.03 and P0.04.
163153

164154
*-f*, *--min-frequency* _HZ_::
165155

166-
This is the minimum output frequency of the VFD in Hz. It should
167-
correspond to the minimum output frequency configured in VFD
168-
register P0.05.
156+
This is the minimum output frequency of the VFD in Hz.
157+
It should correspond to the minimum output frequency configured in VFD register P0.05.
169158

170159

171160
== PINS
172161

173162

174163
*hy_gt_vfd.period* (float, in)::
175164

176-
The period for the driver's update cycle, in seconds. This is
177-
how frequently the driver will wake up, check its HAL pins, and
178-
communicate with the VFD. Must be between 0.001 and 2.000 seconds.
179-
Default: 0.1 seconds.
165+
The period for the driver's update cycle, in seconds. This is
166+
how frequently the driver will wake up, check its HAL pins, and
167+
communicate with the VFD. Must be between 0.001 and 2.000 seconds.
168+
Default: 0.1 seconds.
180169

181170
*hy_gt_vfd.speed-cmd* (float, in)::
182171

183-
The requested motor speed, in RPM.
172+
The requested motor speed, in RPM.
184173

185174
*hy_gt_vfd.speed-fb* (float, out)::
186175

187-
The motor's current speed, in RPM, reported by the VFD.
176+
The motor's current speed, in RPM, reported by the VFD.
188177

189178
*hy_gt_vfd.at-speed* (bit, out)::
190179

191-
True when the drive is on and at the commanded speed (within 2%),
192-
False otherwise.
180+
True when the drive is on and at the commanded speed (within 2%),
181+
False otherwise.
193182

194183
*hy_gt_vfd.freq-cmd* (float, out)::
195184

196-
The requested output frequency, in Hz. This is set from the
197-
.speed-cmd value, and is just shown for debugging purposes.
185+
The requested output frequency, in Hz.
186+
This is set from the .speed-cmd value, and is just shown for debugging purposes.
198187

199188
*hy_gt_vfd.freq-fb* (float, out)::
200189

201-
The current output frequency of the VFD, in Hz. This is reported
202-
from the VFD to the driver.
190+
The current output frequency of the VFD, in Hz.
191+
This is reported from the VFD to the driver.
203192

204193
*hy_gt_vfd.spindle-on* (bit, in)::
205194

206-
Set this pin True to command the spindle on, at the speed requested
207-
on the .speed-cmd pin. Set this pin False to command the spindle
208-
off.
195+
Set this pin True to command the spindle on, at the speed requested on the .speed-cmd pin.
196+
Set this pin False to command the spindle off.
209197

210198
*hy_gt_vfd.output-voltage* (float, out)::
211199

212-
The voltage that the VFD is current providing to the motor,
213-
in Volts.
200+
The voltage that the VFD is current providing to the motor, in Volts.
214201

215202
*hy_gt_vfd.output-current* (float, out)::
216203

217-
The current that the motor is currently drawing from the VFD,
218-
in Amperes.
204+
The current that the motor is currently drawing from the VFD, in Ampères.
219205

220206
*hy_gt_vfd.output-power* (float, out)::
221207

222-
The power that the motor is currently drawing from the VFD,
223-
in Watts.
208+
The power that the motor is currently drawing from the VFD, in Watts.
224209

225210
*hy_gt_vfd.dc-bus-volts* (float, out)::
226211

227-
The current voltage of the VFD's internal DC power supply, in Volts.
212+
The current voltage of the VFD's internal DC power supply, in Volts.
228213

229214
*hy_gt_vfd.modbus-errors* (u32, out)::
230215

231-
A count of the number of modbus communication errors between the
232-
driver and the VFD. The driver is resilient against communication
233-
errors, but a large or growing number here indicates a problem
234-
that should be investigated.
216+
A count of the number of modbus communication errors between the driver and the VFD.
217+
The driver is resilient against communication errors, but a large or growing number here indicates a problem that should be investigated.
235218

236219
*hy_gt_vfd.input-terminal* (float, out)::
237220

238-
The VFD's input terminal register.
221+
The VFD's input terminal register.
239222

240223
*hy_gt_vfd.output-terminal* (float, out)::
241224

242-
The VFD's output terminal register.
225+
The VFD's output terminal register.
243226

244227
*hy_gt_vfd.AI1* (float, out)::
245228

246-
The VFD's AI1 register.
229+
The VFD's AI1 register.
247230

248231
*hy_gt_vfd.AI2* (float, out)::
249232

250-
The VFD's AI2 register.
233+
The VFD's AI2 register.
251234

252235
*hy_gt_vfd.HDI-frequency* (float, out)::
253236

254-
The VFD's HDI-frequency register.
237+
The VFD's HDI-frequency register.
255238

256239
*hy_gt_vfd.external-counter* (float, out)::
257240

258-
The VFD's external counter register.
241+
The VFD's external counter register.
259242

260243
*hy_gt_vfd.fault-info* (float, out)::
261244

262-
The VFD's fault info register.
245+
The VFD's fault info register.
263246

264247

265248
== ISSUES
266249

267-
The VFD produces the output frequency that it sends to the motor by adding
268-
a manually specified offset to the frequency command it gets over modbus.
250+
The VFD produces the output frequency that it sends to the motor by adding a manually specified offset to the frequency command it gets over modbus.
269251

270-
The manual offset is controlled by pressing the Up/Down arrows on the
271-
faceplate while the VFD is turning the motor.
252+
The manual offset is controlled by pressing the Up/Down arrows on the faceplate while the VFD is turning the motor.
272253

273-
If you command a speed on the .speed-cmd pin and get a different speed
274-
reported on the .speed-fb pin, first verify that the VFD registers
275-
listed in the FIRMWARE SETUP section above and the driver's command-line
276-
arguments all agree with the info on the motor's name plate. If you
277-
still aren't getting the speed you expect, zero the VFD's frequency
278-
offset by starting the motor running, then pressing the Up/Down buttons
279-
to zero the offset.
254+
If you command a speed on the .speed-cmd pin and get a different speed reported on the .speed-fb pin, first verify that the VFD registers listed in the FIRMWARE SETUP section above and
255+
the driver's command-line arguments all agree with the info on the motor's name plate.
256+
If you still aren't getting the speed you expect, zero the VFD's frequency offset by starting the motor running, then pressing the Up/Down buttons to zero the offset.
280257

281258
== AUTHOR
282259

0 commit comments

Comments
 (0)