Andy_P

MrPLC Member
  • Content count

    336
  • Joined

  • Last visited

Posts posted by Andy_P


  1. On 08/11/2017 at 5:39 AM, Crossbow said:

    I screen shot in the simulator.  That way it looks just like the end result.

    Fair enough, and I do it that way too. Would be nice to have a button to push that generates them all for you, especially if you have a lot of them. First world problem perhaps :)

     


  2. Can we have an improved method of generating screenshots?

     

    Currently, printing a page only prints what is directly on that page and does not include any background pages associated with it.

    i.e. If you use a background page for a common set of controls for example - these are not included.

    This makes producing screenshots for documentation a pain.


  3. 23 hours ago, Crossbow said:

    You can always say no to upgrading the OS on the terminal.

     

    This might be a dumb question, but how do you do that?

    The couple of times I have tried it after the upgrade pop-up appeared and tried to carry on without doing it, the connection to the HMI didn't complete.

    Or maybe I imagined it, which is entirely possible...     :/


  4. When you update Sysmac Studio, there are potentially upgrades to the operating system of NA HMI's included. If so, the next time you connect to an NA with an older OS, Sysmac Studio wants to upgrade it.

    Fair enough, but doing so wipes any retained memory.

    Is there a way to export/import the data first, or even postpone the upgrade operation?


  5. In the NJ, TestABit only works on data types of the following format: BYTE, WORD, DWORD & LWORD.

     

    Perform a conversion of your UINT to a WORD first, then use TestABit with this, or just change your UINT variable to a WORD to begin with if you can.


  6. I couldn't find a solution to this, so I have moved all the strings from retained memory in the NJ into retained memory in the NA.

    This works, as the NA can now For..Next loop through internal memory instead of reading each one from the NJ.

    However, this means I now have a bit of a disconnect between the data stored in the NJ and what is now stored in the NA. This is a bit annoying, but it is a solution of sorts for my application at present.


  7. 19 hours ago, innoaloe said:

    Unfortunately you cannot change the Text inside ListBox object dynamically. Same goes for ComboBox/DropDown.

    There is no way to do so in NA. It's kind of suck, eventhough the IDE utilizes Visual Basic, the functionality is very limited.

     

    Yes you can. I am doing it by:

    ListBox0.SetItems(arrayOfObjects)

     

    The array has to be an array of Objects, (and not strings, integers, etc.) because that is all the Compact .NET Framework in the NA supports.


  8. I have an array of 1000 strings in an NJ controller, and I wish to read them into an NA HMI.

    To do this at the moment I am using Array.Copy within some vb code, but this seems to hang the screen as it takes way too long, if it ever completes at all.

    i.e. Array.Copy(NJ_array, NA_array, 1000)

    also, the docs for Array.Copy state that the destination array needs to be greater in size than the source array, which seems bizarre.

    Any recommendations on how to do this more efficiently?


  9. The ability to reference a WORD, DWORD, etc at the bit level directly.

     

    e.g. if myVar is of type DWORD, then being able to do this would be good:

    myVar.1 := TRUE;

    myVar.31 := FALSE;

    etc.

     

    (Yes, I know you can use OutABit, SetABit etc, but this would look a lot more elegant and user-friendly, IMHO.)


  10. 10 hours ago, Michael Walsh said:

    One thing about Omron, they are a stickler for the rules.

     

    Fair enough. However in this case, it means that either Omron is not telling the whole truth, or Beckhoff is not sticking to the rules.

    In each case, neither side is admitting to any mistakes. That puts end-users in a no-win situation.