@@ -364,12 +364,15 @@ def __setitem__(self, item, value):
364364 baud = p
365365 elif o in ['-h' ,'--help' ]:
366366 print ('Mitsubishi VFD COMPUTER-LINK interface' )
367- print ('This does NOT use the MODBUS protocol.' )
368- print (' User space component for controlling a mitsubishi inverter over the serial port using the rs485 standard' )
369- print (' specifically the A500 F500 E500 A500 D700 E700 F700 series - others may work or need small adjustments' )
367+ print ()
368+ print (' This does NOT use the MODBUS protocol.' )
369+ print (' This is a user space component for controlling a mitsubishi inverter over the serial port using the rs485 standard' )
370+ print (' Specifically for the A500 F500 E500 A500 D700 E700 F700 series - others may work or need small adjustments.' )
370371 print (''' I referenced manual 'communication option reference manual' and A500 technical manual for 500 series.''' )
371- print (''' 'Fr-A700 F700 E700 D700 technical manual' for the 700 series''' )
372- print ()
372+ print (''' Fr-A700 F700 E700 D700 technical manual' for the 700 series''' )
373+ print ()
374+ print ('#################################################################################' )
375+ print ()
373376 print (' The inverter must be set manually for communication ( you may have to set PR 77 to 1 to unlock PR modification )' )
374377 print (' You must power cycle the inverter for some of these to register eg 79' )
375378 print (' PR 79 - 1 or 0 sets the inverter to respond to the PU/computer-link' )
@@ -388,20 +391,36 @@ def __setitem__(self, item, value):
388391-That the status bit 3 is up to speed
389392-That the status bit 7 is alarm
390393''' )
391- print ()
394+ print ('''#################################################################################
395+
396+ You must have permission to use the serial port - on some systems this may require
397+ commands similar to this:
398+
399+ sudo su
400+ <type your password>
401+ cd /
402+ cd dev
403+ chown <username> ttyUSB0
404+
405+ #################################################################################
406+ ''' )
392407 print ('''some models (eg E500) cannot monitor status -set the monitor pin to false
393408in this case pins such as up-to-speed, amps, alarm and status bits are not useful.
394409''' )
395410 print ('''HAL command used to load: ''' )
396- print ('''loadusr mitsub_vfd --baud 4800 --port /dev/ttyUSB0 NAME=SLAVE_NUMBER
411+ print ('''loadusr mitsub_vfd --baud 4800 --port /dev/ttyUSB0 NAME=SLAVE_NUMBER
412+
397413 -NAME is user selectable (usually a description of controlled device)
398414 -SLAVE_NUMBER is the slave number that was set on the VFD
399415 -NAME=SLAVE_NUMBER can be repeated for multiple VFD's connected together
400416 --baud is optional as it defaults to 9600
401417 all networked vfds must be set to the same baudrate
402418 --port is optional as it defaults to ttyS0''' )
403419 print ()
420+ print ('#################################################################################' )
421+ print ()
404422 print (''' Sample linuxcnc code
423+
405424loadusr -Wn coolant mitsub_vfd spindle=02 coolant=01
406425# **************** Spindle VFD setup slave 2 *********************
407426net spindle-vel-cmd spindle.motor-cmd
0 commit comments