pin "pyvcp.XXX" does not exist

More
2 years 4 months ago #303836 by greg23_78
I have a problem with pyvcp commands.
am I missing something?

XML file
Code:
<labelframe text="TAILSTOCK">        <font>("Helvetica",16)</font>         <!-- le bouton de jog de la poupee mobile -->         <hbox>             <relief>RAISED</relief>             <bd>3</bd>             <button>                 <font>("Helvetica",20)</font>                 <width>3</width>                 <halpin>"tailstock-plus"</halpin>                 <text>"H+"</text>             </button>             <button>                 <font>("Helvetica",20)</font>                 <width>3</width>                 <halpin>"tailstock-moins"</halpin>                 <text>"H-"</text>             </button>         </hbox>     </labelframe>     <labelframe text="CONVOYOR">        <font>("Helvetica",16)</font>         <!-- le bouton de jog de la poupee mobile -->         <hbox>             <relief>RAISED</relief>             <bd>3</bd>             <button>                 <font>("Helvetica",20)</font>                 <width>3</width>                 <halpin>"convoyor-rev"</halpin>                 <text>"RV"</text>             </button>             <button>                 <font>("Helvetica",20)</font>                 <width>3</width>                 <halpin>"convoyor-fwd"</halpin>                 <text>"FW"</text>             </button>         </hbox>     </labelframe>
INI file
Code:
HAL] HALFILE = main.hal HALFILE = io.hal HALFILE = sserial.hal HALFILE = custom.hal HALFILE = Carousel.hal POSTGUI_HALFILE = postgui.hal SHUTDOWN = shutdown.hal HALUI = halui

Postgui file
Code:
show pin # Put HAL commands in this file that you want to run after the GUI loads net tailstock-moins     =>      pyvcp.tailstock-moins net tailstock-plus      =>      pyvcp.tailstock-plus net convoyor-rev        =>      pyvcp.convoyor-rev net convoyor-fwd        =>      pyvcp.convoyor-fwd

Hal file
Code:
# PyVCP button # loadrt and2 names=and2_tailstock_manu_moins,and2_tailstock_manu_plus loadrt or2 names=or2_tailstock_manu_auto_moins,or2_tailstock_manu_auto_plus addf and2_tailstock_manu_moins           servo-thread addf and2_tailstock_manu_plus            servo-thread addf or2_tailstock_manu_auto_moins       servo-thread addf or2_tailstock_manu_auto_plus        servo-thread net program_no_running     halui.program.is-idle net program_no_running        and2_tailstock_manu_moins.in0 net program_no_running     and2_tailstock_manu_plus.in0 # headstock net my-jogtailstock-moins-auto            motion.digital-out-00 net my-jogtailstock-moins                 tailstock-moins and2_tailstock_manu_moins.in1 net my-jogtailstock-moins-manu            and2_tailstock_manu_moins.out => or2_tailstock_manu_auto_moins.in0 net my-jogtailstock-moins-manu-auto       or2_tailstock_manu_auto_moins.out => hm2_7i97.0.7i84.0.0.output-00 net my-jogtailstock-plus-auto            motion.digital-out-01 net my-jogtailstock-plus                 tailstock-plus and2_tailstock_manu_plus.in1 net my-jogtailstock-plus-manu            and2_tailstock_manu_plus.out => or2_tailstock_manu_auto_plus.in0 net my-jogtailstock-plus-manu-auto       or2_tailstock_manu_auto_plus.out => hm2_7i97.0.7i84.0.0.output-01 # convoyor net my-jogconvoyor-rev     hm2_7i97.0.7i84.0.0.output-02 <= convoyor-rev net my-jogconvoyor-fwd     hm2_7i97.0.7i84.0.0.output-03 <= convoyor-fwd

Please Log in to join the conversation.

More
2 years 4 months ago #303842 by roland
Missing entry in the DISPLAY section of the iNI file?

Please Log in to join the conversation.

More
2 years 4 months ago #303844 by greg23_78
Code:
[DISPLAY] DISPLAY = axis EDITOR = mousepad PROGRAM_PREFIX = /home/cnc/linuxcnc/nc_files POSITION_OFFSET = RELATIVE POSITION_FEEDBACK = ACTUAL MAX_FEED_OVERRIDE = 1.2 MIN_LINEAR_VELOCITY = 0.5 DEFAULT_LINEAR_VELOCITY = 6.0 MAX_LINEAR_VELOCITY = 133.3 INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm CYCLE_TIME = 0.1 INTRO_GRAPHIC = emc2.gif INTRO_TIME = 3 OPEN_FILE = "" PYVCP = cnc_samua.xml LATHE = 1

name of my xml file : cnc_samua.xml

Please Log in to join the conversation.

More
2 years 4 months ago #303850 by Aciera
Have you tried to start your config from a terminal to check for error messages in the output?

$ linuxcnc

Please Log in to join the conversation.

More
2 years 4 months ago #303851 by greg23_78
Code:
cnc@cnc:~$ linuxcnc LINUXCNC - 2.9.2 Machine configuration directory is '/home/cnc/linuxcnc/configs/cnc_samua' Machine configuration file is 'cnc_samua.ini' Starting LinuxCNC... linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod Note: Using POSIX realtime Found file(REL): ./main.hal hm2: loading Mesa HostMot2 driver version 0.15 hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2 hm2_eth: 10.10.10.10: INFO: Hardware address (MAC): 00:60:1b:17:80:02 hm2_eth: discovered 7I97T hm2/hm2_7i97.0: Low Level init 0.15 hm2/hm2_7i97.0: Smart Serial Firmware Version 43 Board hm2_7i97.0.7i84.0.0 Hardware Mode 0 = standard Board hm2_7i97.0.7i84.0.0 Software Mode 0 = input_output Board hm2_7i97.0.7i84.0.0 Software Mode 1 = io_analog_fieldvoltage Board hm2_7i97.0.7i84.0.0 Software Mode 2 = io_encoder_analog hm2/hm2_7i97.0: 51 I/O Pins used: hm2/hm2_7i97.0:     IO Pin 000 (TB3-04): PWMGen #0, pin Out0 (PWM or Up) (Output) hm2/hm2_7i97.0:     IO Pin 001 (TB3-08): PWMGen #1, pin Out0 (PWM or Up) (Output) hm2/hm2_7i97.0:     IO Pin 002 (TB3-12): PWMGen #2, pin Out0 (PWM or Up) (Output) hm2/hm2_7i97.0:     IO Pin 003 (TB3-16): PWMGen #3, pin Out0 (PWM or Up) (Output) hm2/hm2_7i97.0:     IO Pin 004 (TB3-20): PWMGen #4, pin Out0 (PWM or Up) (Output) hm2/hm2_7i97.0:     IO Pin 005 (AN_ENA4): PWMGen #4, pin Not-Enable (Output) hm2/hm2_7i97.0:     IO Pin 006 (TB3-24): PWMGen #5, pin Out0 (PWM or Up) (Output) hm2/hm2_7i97.0:     IO Pin 007 (AN_ENA5): PWMGen #5, pin Not-Enable (Output) hm2/hm2_7i97.0:     IO Pin 008 (AN-ENA0..3): PWMGen #0, pin Not-Enable (Output) hm2/hm2_7i97.0:     IO Pin 009 (TB1-01/TB1-09): Muxed Encoder #0, pin Muxed A (Input) hm2/hm2_7i97.0:     IO Pin 010 (TB1-04/TB1-12): Muxed Encoder #0, pin Muxed B (Input) hm2/hm2_7i97.0:     IO Pin 011 (TB1-07/TB1-15): Muxed Encoder #0, pin Muxed Index (Input) hm2/hm2_7i97.0:     IO Pin 012 (TB1-17/TB2-01): Muxed Encoder #1, pin Muxed A (Input) hm2/hm2_7i97.0:     IO Pin 013 (TB1-20/TB2-04): Muxed Encoder #1, pin Muxed B (Input) hm2/hm2_7i97.0:     IO Pin 014 (TB1-23/TB2-07): Muxed Encoder #1, pin Muxed Index (Input) hm2/hm2_7i97.0:     IO Pin 015 (TB2-09/TB2-17): Muxed Encoder #2, pin Muxed A (Input) hm2/hm2_7i97.0:     IO Pin 016 (TB2-12/TB2-20): Muxed Encoder #2, pin Muxed B (Input) hm2/hm2_7i97.0:     IO Pin 017 (TB2-15/TB2-23): Muxed Encoder #2, pin Muxed Index (Input) hm2/hm2_7i97.0:     IO Pin 018 (Internal EncMux): Muxed Encoder Select #0, pin Mux Select 0 (Output) hm2/hm2_7i97.0:     IO Pin 019 (TB5-13/TB5-14): SSR #0, pin Out-00 (Output) hm2/hm2_7i97.0:     IO Pin 020 (TB5-15/TB5-16): SSR #0, pin Out-01 (Output) hm2/hm2_7i97.0:     IO Pin 021 (TB5-17/TB5-18): SSR #0, pin Out-02 (Output) hm2/hm2_7i97.0:     IO Pin 022 (TB5-19/TB5-20): SSR #0, pin Out-03 (Output) hm2/hm2_7i97.0:     IO Pin 023 (TB5-21/TB5-22): SSR #0, pin Out-04 (Output) hm2/hm2_7i97.0:     IO Pin 024 (TB5-23/TB5-24): SSR #0, pin Out-05 (Output) hm2/hm2_7i97.0:     IO Pin 025 (Internal InMux0): SSR #0, pin AC Ref (internal) (Output) hm2/hm2_7i97.0:     IO Pin 026 (Internal InMux1): InMux Input Mux #0, pin addr0 (Output) hm2/hm2_7i97.0:     IO Pin 027 (Internal InMux2): InMux Input Mux #0, pin addr1 (Output) hm2/hm2_7i97.0:     IO Pin 028 (Internal InMux3): InMux Input Mux #0, pin addr2 (Output) hm2/hm2_7i97.0:     IO Pin 029 (Internal InMuxData): InMux Input Mux #0, pin addr3 (Output) hm2/hm2_7i97.0:     IO Pin 030 (TB4-15/TB4-16): InMux Input Mux #0, pin muxdata (Input) hm2/hm2_7i97.0:     IO Pin 031 (TB4-17/TB4-18): Smart Serial Interface #0, pin rx0 (Input) hm2/hm2_7i97.0:     IO Pin 032 (TB4-17/TB4-18): Smart Serial Interface #0, pin tx0 (Output) hm2/hm2_7i97.0:     IO Pin 033 (P1-01/DB25-01): Smart Serial Interface #0, pin txen0 (Output) hm2/hm2_7i97.0:     IO Pin 034 (P1-02/DB25-14): IOPort hm2/hm2_7i97.0:     IO Pin 035 (P1-03/DB25-02): IOPort hm2/hm2_7i97.0:     IO Pin 036 (P1-04/DB25-15): IOPort hm2/hm2_7i97.0:     IO Pin 037 (P1-05/DB25-03): IOPort hm2/hm2_7i97.0:     IO Pin 038 (P1-06/DB25-16): IOPort hm2/hm2_7i97.0:     IO Pin 039 (P1-07/DB25-04): IOPort hm2/hm2_7i97.0:     IO Pin 040 (P1-08/DB25-17): IOPort hm2/hm2_7i97.0:     IO Pin 041 (P1-09/DB25-05): IOPort hm2/hm2_7i97.0:     IO Pin 042 (P1-11/DB25-06): IOPort hm2/hm2_7i97.0:     IO Pin 043 (P1-13/DB25-07): IOPort hm2/hm2_7i97.0:     IO Pin 044 (P1-15/DB25-08): IOPort hm2/hm2_7i97.0:     IO Pin 045 (P1-17/DB25-09): IOPort hm2/hm2_7i97.0:     IO Pin 046 (P1-19/DB25-10): IOPort hm2/hm2_7i97.0:     IO Pin 047 (P1-21/DB25-11): IOPort hm2/hm2_7i97.0:     IO Pin 048 (P1-23/DB25-12): IOPort hm2/hm2_7i97.0:     IO Pin 049 (P1-25/DB25-13): IOPort hm2/hm2_7i97.0: registered ./main.hal:176: Pin 'convoyor-rev' does not exist Shutting down and cleaning up LinuxCNC... Running HAL shutdown script iov2: exiting hm2_eth: in hm2_eth_reset hm2_eth: HostMot2 ethernet driver unloaded hm2: unloading Note: Using POSIX realtime LinuxCNC terminated with an error.  You can find more information in the log:     /home/cnc/linuxcnc_debug.txt and     /home/cnc/linuxcnc_print.txt as well as in the output of the shell command 'dmesg' and in the terminal

Please Log in to join the conversation.

More
2 years 4 months ago #303852 by greg23_78
I commented on the tailstock part for the test.
That's why the error is on the conveyor.

Please Log in to join the conversation.

More
2 years 4 months ago #303853 by tommylight
Code:
# convoyor net my-jogconvoyor-rev hm2_7i97.0.7i84.0.0.output-02 <= convoyor-rev net my-jogconvoyor-fwd hm2_7i97.0.7i84.0.0.output-03 <= convoyor-fwd
Both lines at the end, you can not just make up pins, those must exist before connecting them:
- my-jogconvoyor-rev <<< this is OK a pin you are creating, think of it as a bus bar with that name
- convoyor-rev <<< at the end is not OK as it does not exist
-- net means "connect", so you connect the hm2_7i97.0.7i84.0.0.output-02 to the bus bar named "my-jogconvoyor-rev" and you also tried to connect the convoyor-rev that does not exist
-
Two options:
1- remove the 2 non existing names/pins and use the existing pins in your PyVCP hal file
2- rename the existing pins with the non existing ones.

Please Log in to join the conversation.

Time to create page: 0.094 seconds
Powered by Kunena Forum