gs2_vfd(1)
๐ธ gs2_vfd โ the LinuxCNC manual page, bestie edition ๐ธ
okay so you opened the man page for gs2_vfd and honestly? you came to the right place. this is the gs2_vfd(1) page from the LinuxCNC Documentation and i'm gonna walk you through every single crumb of it. no skipping. no "you get the gist." we're doing the whole thing. ๐
โจ NAME โจ
gs2_vfd โ a HAL non-realtime component for Automation Direct GS2 VFDs. that's the whole vibe. that's the assignment. ๐ฆ
โจ SYNOPSIS โจ
gs2_vfd [OPTIONS]
yep. that's it. options in, magic out. ๐
โจ DESCRIPTION โจ
so this manual page explains the gs2_vfd component, fr fr. it reads and writes to the GS2 over a modbus connection. that's the relationship. mutual. communicative. iconic. ๐
and listen โ gs2_vfd is for use with LinuxCNC. that's its whole purpose, its main character arc, its reason for existing. ๐
โจ OPTIONS โจ
bestie, there are a LOT of them. i'm giving you every single one. sit down, hydrate, let's go ๐
-b,--bitsn โ (default8) sets the number of data bits to n, and n has to be from5to8inclusive. no rogue bit counts. the range is the range. โ-d,--devicepath โ (default/dev/ttyS0) sets the path to the file that represents the serial device you wanna use. tell it where the plug lives ๐-v,--verboseโ turns on verbose mode. it's giving "tell me everything" ๐ฃ๏ธ-g,--debugโ turns on debug messages. heads up tho: if there are serial errors, this may become annoying. debug mode will cause all modbus messages to be printed in hex on the terminal. so cute but so loud ๐-n,--namestring โ (defaultgs2_vfd) sets the name of the HAL module. the HAL comp name will be set to string, and all pin and parameter names will begin with string. so like, everything gets that last name. family name. ๐ซถ-p,--parity[even,odd,none]โ (defaultodd) sets serial parity toeven,odd, ornone. pick your fighter โ๏ธ-r,--raten โ (default38400) sets the baud rate to n. it is an error if the rate is not one of the following:110,300,600,1200,2400,4800,9600,19200,38400,57600,115200. that's the guest list and there's no plus-one ๐-s,--stopbits[1,2]โ (default1) sets serial stop bits to1or2. two options. that's it. choose wisely ๐ธ-t,--targetn โ (default1) sets the MODBUS target (slave) number. this must match the device number you set on the GS2. they have to be matching or it's not gonna work, iykyk ๐-A,--accel-secondsn โ (default10.0) seconds to accelerate the spindle from0to Max RPM. zoom zoom โจ-D,--decel-secondsn โ (default0.0) seconds to decelerate the spindle from Max RPM to0. if set to0.0the spindle will be allowed to coast to a stop without controlled deceleration. free-spirited. no brakes. ๐-R,--braking-resistorโ this argument should be used when a braking resistor is installed on the GS2 VFD (see Appendix A of the GS2 manual). it disables deceleration over-voltage stall prevention (see GS2 modbus Parameter6.05), allowing the VFD to keep braking even in situations where the motor is regenerating high voltage. the regenerated voltage gets safely dumped into the braking resistor. it's literally the safety net of the operation ๐ฅ
โจ PINS โจ
these all start with <name> because remember that -n thing up there? yeah. everything's got the family name. ๐
<name>.DC-bus-volts(float, out) โ from the VFD<name>.at-speed(bit, out) โ when drive is at commanded speed<name>.err-reset(bit, in) โ reset errors sent to VFD<name>.firmware-revision(s32, out) โ from the VFD<name>.frequency-command(float, out) โ from the VFD<name>.frequency-out(float, out) โ from the VFD<name>.is-stopped(bit, out) โ when the VFD reports0Hz output<name>.load-percentage(float, out) โ from the VFD<name>.motor-RPM(float, out) โ from the VFD<name>.output-current(float, out) โ from the VFD<name>.output-voltage(float, out) โ from the VFD<name>.power-factor(float, out) โ from the VFD<name>.scale-frequency(float, out) โ from the VFD<name>.speed-command(float, in) โ speed sent to VFD in RPM. it is an error to send a speed faster than the Motor Max RPM as set in the VFD. do not do that. respect the ceiling ๐ซ<name>.spindle-fwd(bit, in) โ1for FWD and0for REV sent to VFD<name>.spindle-on(bit, in) โ1for ON and0for OFF sent to VFD, only on when running<name>.spindle-rev(bit, in) โ1for ON and0for OFF, only on when running<name>.status-1(s32, out) โ Drive Status of the VFD (see the GS2 manual)<name>.status-2(s32, out) โ Drive Status of the VFD (see the GS2 manual). note that the value is a sum of all the bits that are on. so a163which means the drive is in the run mode is the sum of3(run) +32(freq set by serial) +128(operation set by serial). math girlies rise ๐งฎโจ
โจ PARAMETERS โจ
<name>.error-count(s32, RW)<name>.loop-time(float, RW) โ how often the modbus is polled (default0.1)<name>.nameplate-HZ(float, RW) โ Nameplate Hz of motor (default60)<name>.nameplate-RPM(float, RW) โ Nameplate RPM of motor (default1730)<name>.retval(s32, RW) โ the return value of an error in HAL<name>.tolerance(float, RW) โ speed tolerance (default0.01)<name>.ack-delay(s32, RW) โ number of read/write cycles before checking at-speed (default2)
โจ SEE ALSO โจ
- GS2 Driver in the LinuxCNC documentation โ for a full description of the GS2 syntax ๐
- GS2 Examples in the LinuxCNC documentation โ for examples using the GS2 component ๐ง
go read them. they're right there. i'm literally pointing at them. ๐โจ
โจ BUGS โจ
bestieโฆ it's empty. there are no bugs listed here. nothing. silence. the void. not a single crumb. ๐
โจ AUTHOR โจ
John Thornton โ thank you for your service ๐ซก๐
โจ LICENSE โจ
GPL โ free as in freedom, slay ๐
okay so that's the whole page, and now the cute lil sign-off: this is the GS2 VFD manual, dated January 1, 2009, and it lives at gs2_vfd(1). old but iconic. vintage but valid. periodt. ๐๐
๐
๐ฆ where this page comes from
- debian trixie: linuxcnc-uspace 1:2.9.4-2+deb13u1 ยท GFDL-1.1-or-later
- ubuntu questing: linuxcnc-uspace 1:2.9.4-2ubuntu2
- ubuntu resolute: linuxcnc-uspace 1:2.9.4-2ubuntu4 ยท GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace 1:2.9.4-2ubuntu4 ยท GFDL-1.1-or-later
- Copyright (c) 2009 John Thornton
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms