gmoccapy user created message HAL pins?

More
23 Jul 2015 10:19 #60841 by LearningLinuxCNC
In the gmoccapy manual section it references that there are user created message HAL pins but I don't seem them in my configuration. How do I get them added to my configuration? How do I change the message displayed? Does not appear to be much information on this topic but I have a use for it if it does exist.
5.8. User Created Message HAL Pins

gmoccapy may react to external errors, using 3 different user messages:
All are HAL_BIT pin.

Status

    gmoccapy.messages.statustest

Yesnodialog

    gmoccapy.messages.yesnodialog

    gmoccapy.messages.yesnodialog-waiting

    gmoccapy.messages.yesnodialog-responce

Okdialog

    gmoccapy.messages.okdialog

    gmoccapy.messages.okdialog-waiting

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

More
23 Jul 2015 12:09 #60842 by cmorley
you add them to the INI file.
www.linuxcnc.org/docs/2.6/html/gui/gmocc...he_display_section_a
scroll down that a bit...

hris M
The following user(s) said Thank You: LearningLinuxCNC

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

More
23 Jul 2015 19:58 #60855 by LearningLinuxCNC

you add them to the INI file.
www.linuxcnc.org/docs/2.6/html/gui/gmocc...he_display_section_a
scroll down that a bit...

hris M


Yep I remember seeing that now. Can we put a reference to the definition section in the hal pin section in the documentation so it is easier to follow.

It is amazing how much you can read and not comprehend until you have an application to use it for. Maybe it is just me. :silly:

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

More
24 Jul 2015 05:33 #60870 by BigJohnT

It is amazing how much you can read and not comprehend until you have an application to use it for. Maybe it is just me. :silly:


Nope, you only grasp about 10% each time you read. The trick is knowing where to look to answer your questions.

JT

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

More
24 Jul 2015 22:55 #60888 by LAIR82

In the gmoccapy manual section it references that there are user created message HAL pins but I don't seem them in my configuration. How do I get them added to my configuration? How do I change the message displayed? Does not appear to be much information on this topic but I have a use for it if it does exist.
5.8. User Created Message HAL Pins

gmoccapy may react to external errors, using 3 different user messages:
All are HAL_BIT pin.

Status

    gmoccapy.messages.statustest

Yesnodialog

    gmoccapy.messages.yesnodialog

    gmoccapy.messages.yesnodialog-waiting

    gmoccapy.messages.yesnodialog-responce

Okdialog

    gmoccapy.messages.okdialog

    gmoccapy.messages.okdialog-waiting



You create these in your INI " DISPLAY " section and then connect them in your post-gui file, here's an example,

INI Entries,

MESSAGE_BOLDTEXT = LUBE SYSTEM FAULT
MESSAGE_TEXT = LUBE FAULT
MESSAGE_TYPE = okdialog
MESSAGE_PINNAME = lube-fault

MESSAGE_BOLDTEXT = NONE
MESSAGE_TEXT = X SHEAR PIN BROKEN
MESSAGE_TYPE = status
MESSAGE_PINNAME = xpin

Post Gui Entries,

net gmoccapy-lube-fault gmoccapy.messages.lube-fault
net gmoccapy-lube-fault-waiting gmoccapy.messages.lube-fault-waiting
net gmoccapy-xpin gmoccapy.messages.xpin


I have about 20-30 of these on each of my 4 machines that are using Gmoccapy or Gscreen.

Rick
The following user(s) said Thank You: LearningLinuxCNC

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

More
26 Jul 2015 01:27 #60924 by LearningLinuxCNC
Rick,

Thanks for the examples. It is very helpful.

Jim

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

Moderators: newbynobiHansU
Time to create page: 0.220 seconds
Powered by Kunena Forum