How to get GladeVCP or pyVCP buttons and indicators working

More
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?
Attachments:

Please Log in or Create an account to join the conversation.

More
29 Mar 2020 12:41 #161963 by bbsr_5a
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

Please Log in or Create an account to join the conversation.

More
30 Mar 2020 14:02 #162114 by AndrewL
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

Please Log in or Create an account to join the conversation.

More
30 Mar 2020 18:50 #162133 by cmorley
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.

More
30 Mar 2020 19:32 #162135 by AndrewL
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

Please Log in or Create an account to join the conversation.

More
31 Mar 2020 06:45 #162204 by cmorley
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

Please Log in or Create an account to join the conversation.

More
31 Mar 2020 12:53 #162254 by AndrewL
Thanks for your help. The attached files work for the first few IOs that have been connected, the rest should follow suit.
Attachments:

Please Log in or Create an account to join the conversation.

More
31 Mar 2020 12:56 #162256 by cmorley
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.
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.210 seconds
Powered by Kunena Forum