gs2_vfd(1)

๐Ÿ“ฆ
version 2.9.4 ยท 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

๐ŸŒธ 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, --bits n โ€” (default 8) sets the number of data bits to n, and n has to be from 5 to 8 inclusive. no rogue bit counts. the range is the range. โœ‹
  • -d, --device path โ€” (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, --name string โ€” (default gs2_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] โ€” (default odd) sets serial parity to even, odd, or none. pick your fighter โš”๏ธ
  • -r, --rate n โ€” (default 38400) 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] โ€” (default 1) sets serial stop bits to 1 or 2. two options. that's it. choose wisely ๐ŸŒธ
  • -t, --target n โ€” (default 1) 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-seconds n โ€” (default 10.0) seconds to accelerate the spindle from 0 to Max RPM. zoom zoom โœจ
  • -D, --decel-seconds n โ€” (default 0.0) seconds to decelerate the spindle from Max RPM to 0. if set to 0.0 the 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 Parameter 6.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 reports 0 Hz 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) โ€” 1 for FWD and 0 for REV sent to VFD
  • <name>.spindle-on (bit, in) โ€” 1 for ON and 0 for OFF sent to VFD, only on when running
  • <name>.spindle-rev (bit, in) โ€” 1 for ON and 0 for 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 a 163 which means the drive is in the run mode is the sum of 3 (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 (default 0.1)
  • <name>.nameplate-HZ (float, RW) โ€” Nameplate Hz of motor (default 60)
  • <name>.nameplate-RPM (float, RW) โ€” Nameplate RPM of motor (default 1730)
  • <name>.retval (s32, RW) โ€” the return value of an error in HAL
  • <name>.tolerance (float, RW) โ€” speed tolerance (default 0.01)
  • <name>.ack-delay (s32, RW) โ€” number of read/write cycles before checking at-speed (default 2)

โœจ 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