markrit@hotmail.com

MrPLC Member
  • Content count

    3
  • Joined

  • Last visited

Posts posted by markrit@hotmail.com


  1. On 9/12/2019 at 4:40 AM, PenneyInstruments said:

    Hi All,

    I am currently doing a very large scale project please see below a list of items I have not found a solution to:

    1.) Having Sysmac Studio automatically reset their Ethercat errors on their own. Like another guy said in his post, if an Ethercat module is not online before the PLC goes into a run state, it will throw an error and not communicate with the Ethercat module even after it comes online. (I am talking about the ECC-203.) This was frustrating to learn after purchasing 7 of the Ethercat units along with the NX701.

     

    2.) Indirect addressing. It seems as though the NA screen is very limiting in its power compared to the NS screen. Of course, this statement seems to only hold true if you are not familiar with VB NET programming. It seems that you can get behind the code of some buttons to create your own routines and such which is nice if you already know the language. Not so nice if you have to learn from scratch. Anyway, a normal Boolean button seems to not allow you to put a UINT variable inside of the brackets to have a pointer for an array type. For example, I had over 100 VFD's and I had just created a structure to handle all of the data for these as well as a custom function block. I would then make an array of this structure. Each index of the array would hold the data for one VFD. This way, I would only need to create one hand off auto screen and have a data edit to point all of my buttons to the correct index.

     

    3.) After making a change to a custom function block, is there a way to mass update all of the current instances of the function blocks already within the program?

     

    4.) Being able to compare two identical structures, but only one being an array. So I would like to compare one index of that data structure to another identical non-aray variable of the same data structure. See example of two variables

    Variable: Mode_Select_HMI
    Datatype: Mode_Sel

    Variable: Mode_Select_Set
    Datatype: ARRAY [0..50] OF Mode_Sel

     

    If any of these suggestions are already solved and I am not aware of the solution, I would appreciate an explanation as I am fairly new to the software.

     

    Thanks,
    C

    the only way I have found to mass update function blocks is by updating the FB via online edit.

    For the Structure comparison I would use an ADDDelimiter function to create a String then For Loop thru the array creating a ADDDelimiter  on each member of the array for comaprison

     


  2. Is anyone aware of a method (ST, FB, LD, etc) of using a string from an external file, DB, etc. to retrieve the value of an internal or global variable tag. For example if I have a tag called Pointer of type = String and the value of ‘Cyc_Count’ is there a method to retrieve the value of the tag called Cyc_Count’ of type Integer using the value in tag Pointer?