Jump to content
OMRON Forums

gshort

Members
  • Posts

    53
  • Joined

  • Last visited

Everything posted by gshort

  1. Your example shows it working from a PLC, which I can get working without any problem. What I was asking was whether it is possible to access this structure from a background program, using the pointer returned by GetSharedMemPtr(). What I've found by experiment is that I can set quite a few fields of the CompTable structure, but not the Target[] or indeed the Data[] fields. I've worked around the problem by using a series of GetResponse calls from the background program. It would have been nicer to have been able to access the structure directly, but I suspect this is not possible. What I was hoping for was a definitive answer as to whether it is possible or not. Thanks Graham
  2. Is it possible to set up a CompTable entry from a background program. I seem to be able to set up a majority of the fields in the table from a background program and view them from a gpascii terminal and they all seem to be initialised as I expect. The one field that is not correct, however is the Target[] fields which I'm attempting to initialise to Motor[].CompPos.a. I've tried a variety of ways of doing this. However whenever I initialise Target[] from the background program it always appears to be 0 afterwards. Is this because the Target[] pointers are not accessible or am I just doing it wrong ! Thanks Graham
×
×
  • Create New...