How to get GladeVCP or pyVCP buttons and indicators working
28 Mar 2020 14:06 #161808
by AndrewL
I've attempted to modify some existing Glade VCP and pyVCP panels to get the buttons and indicators to communicate with my hardware's IOs.
Here's where I'm at now:
pyVCP: Test_7i76_7i74_B4.02.03
The pyVCP panel will fire up the GS1 VFD I'm using over modbus but none of the other IOs are communicating with the panel
the glade
GladeVCP: Test_7i76_7i74_B4.02.05
None of the buttons and indicators will communicate
What am I missing?
Here's where I'm at now:
pyVCP: Test_7i76_7i74_B4.02.03
The pyVCP panel will fire up the GS1 VFD I'm using over modbus but none of the other IOs are communicating with the panel
the glade
GladeVCP: Test_7i76_7i74_B4.02.05
None of the buttons and indicators will communicate
What am I missing?
Please Log in or Create an account to join the conversation.
29 Mar 2020 12:41 #161963
by bbsr_5a
Replied by bbsr_5a on topic How to get GladeVCP or pyVCP buttons and indicators working
you need to connect the pins inside the machine hal
as of external comunication i prefer to connect them in a postgui halfile so it is not at the machine base insted it is on the gui base
as of external comunication i prefer to connect them in a postgui halfile so it is not at the machine base insted it is on the gui base
Please Log in or Create an account to join the conversation.
30 Mar 2020 14:02 #162114
by AndrewL
Replied by AndrewL on topic How to get GladeVCP or pyVCP buttons and indicators working
I don't know how to connect the pins in the hal. What does that look like?
Based on some other posts, I've changed this line in the hal file:
net pyvcp.in00 <= hm2_7i76e.0.7i70.1.1.input-00
To this (which crashes):
net din-00 <= hm2_7i76e.0.7i70.1.1.input-00
net din-00 => pyvcp.in00
Based on some other posts, I've changed this line in the hal file:
net pyvcp.in00 <= hm2_7i76e.0.7i70.1.1.input-00
To this (which crashes):
net din-00 <= hm2_7i76e.0.7i70.1.1.input-00
net din-00 => pyvcp.in00
Please Log in or Create an account to join the conversation.
30 Mar 2020 18:50 #162133
by cmorley
Replied by cmorley on topic How to get GladeVCP or pyVCP buttons and indicators working
surely it crashes with an error message that would help us to diagnose the problem.
Please Log in or Create an account to join the conversation.
30 Mar 2020 19:32 #162135
by AndrewL
Replied by AndrewL on topic How to get GladeVCP or pyVCP buttons and indicators working
Debug file information:
Note: Using POSIX realtime
modprobe: ERROR: could not insert 'ip_tables': Operation not permitted
iptables v1.6.0: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: ERROR: could not insert 'ip_tables': Operation not permitted
iptables v1.6.0: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
./Test_7i76_7i74_B4.02.03.hal:41: Pin 'pyvcp.in00' does not exist
25254
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Note: Using POSIX realtime
modprobe: ERROR: could not insert 'ip_tables': Operation not permitted
iptables v1.6.0: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: ERROR: could not insert 'ip_tables': Operation not permitted
iptables v1.6.0: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
./Test_7i76_7i74_B4.02.03.hal:41: Pin 'pyvcp.in00' does not exist
25254
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Please Log in or Create an account to join the conversation.
31 Mar 2020 06:45 #162204
by cmorley
Replied by cmorley on topic How to get GladeVCP or pyVCP buttons and indicators working
So looking at ypur config -
you don't have any pyvcp loading command or pyvcp XML file
You do have a gladevcp load command and you do seem to have a gladevcp.ui file.
but you can't connect to pyvcp or gladevcp pins in the main HAL file as the vcp pins are not made yet; so get rid of those commands in Test_7i76_7i74_B4.02.03.hal
connect your gladevcp pins in gvcp_option.hal like you already have started to.
Try that and report back with new information please
you don't have any pyvcp loading command or pyvcp XML file
You do have a gladevcp load command and you do seem to have a gladevcp.ui file.
but you can't connect to pyvcp or gladevcp pins in the main HAL file as the vcp pins are not made yet; so get rid of those commands in Test_7i76_7i74_B4.02.03.hal
connect your gladevcp pins in gvcp_option.hal like you already have started to.
Try that and report back with new information please
Please Log in or Create an account to join the conversation.
31 Mar 2020 12:53 #162254
by AndrewL
Replied by AndrewL on topic How to get GladeVCP or pyVCP buttons and indicators working
Thanks for your help. The attached files work for the first few IOs that have been connected, the rest should follow suit.
Please Log in or Create an account to join the conversation.
31 Mar 2020 12:56 #162256
by cmorley
Replied by cmorley on topic How to get GladeVCP or pyVCP buttons and indicators working
So you are good? excellent.
I can't test your config cause I don;t have the hardware, but thanks for posting the whole thing faster then asking a million questions.
I can't test your config cause I don;t have the hardware, but thanks for posting the whole thing faster then asking a million questions.
The following user(s) said Thank You: AndrewL
Please Log in or Create an account to join the conversation.
Moderators: HansU
Time to create page: 0.127 seconds