Artz

MrPLC Member
  • Content count

    80
  • Joined

  • Last visited

Posts posted by Artz


  1. Hi

    On a NA programming page subroutine I was testing if something like this works but throws an error:

     

    Sub getVariableName ()
    
    Dim theVariableToWorkWith as Integer
    
    showMeVariableName = NameOf(theVariableToWorkWith)
    
    End sub

    First thing was to make a global variable : "showMeVariableName" as String (this variable will be assigned to a Data_Display).

    On page event whenever is itself displayed just call getVariableName sub and so, display "theVariableToWorkWith" text on a Data_Display object (it's text expression is the variable 'showMeVariablename'). As simple as that.

    So it's not possible or there's another way to get it?


  2. Hi

    Apologies in advance, this is probably something very much asked in forums, but my mind does not get why this issue is happening.

    My variable: ERROR_LECTURA_REF_OVERVOLT[1] is not reset whenever my Temp_ten_ref_o_1_h TON output reachs the coil on the '203' rung. But instead making use of BTN_HMI_ADV_VOLT_READ_OK variable works right.

    Why is this?

    State 1 :

    img]fY71NS9.png

    State 2: Setting a high value for LECTURA_REF_LTS_OUT triggers the coil

    WimqdAD.png

    State 3: Rung '203' TON Q output reachs the coil ERROR_LECTURA_REF_OVERVOLT[1], this variable state stays active until I set down LECTURA_REF_LTS_OUT value on rung '66'

    RWsqUAI.png

    State 4: ERROR_LECTURA_REF_OVERVOLT[1] is not reset despite the coil at rung '66' is not active (Why?)

    A7e48YJ.png

    State 5: Input BTN_HMI_ADV_VOLT_READ_OK is set to true and once is false ERROR_LECTURA_REF_OVERVOLT[1] is reset

    Fx9S7H8.png

    Final state (state1):

    fY71NS9.png


  3. 12 hours ago, Lipton said:

    Iam running 1.44.

    @Artz I agree with you.

    In your sysmac project is there Safety,PLC,HMI into one file ?

    Hmm, what do you mean? The project is constantly exported into one file every so often, but I open it through the sysmac saved projects. Both controller and HMI are in the same project.


  4. My project is quite heavy and I have to deal with constant lag and slowness while navigating specially through HMI windows. It is becoming a real problem since I cannot afford to get a better comp. Version 1.43

    I would like to know if there's any way to liberate load to the project.


  5. Thank you

    I'm going to stick to the basics for the moment, that's all I can do with my limited knowlegde. Also I don't have a router or a server to connect my controller or NA to, so I cannot opt to many of these methods. I was hoping for a way to convert somehow that csv to a readable file (currently it's just a column with all the data) via any function by either controller or NA and also display it somehow on a NA page. Anyways I suppose I need to check some tutorials about all this matter.


  6. Things I tried with an error as result:

    • "line1" & vbCrLf & "line2"
    • "line1" + vbCrLf + "line2"
    • "line1" & ch(13) & "line2"
    • "line1" + ch(13) + "line2"

    I found the correct property to add so for those looking for the same the code would be:

    anyStringVariable = "This is Line 1" & Environment.NewLine & "This is Line 2"

     


  7. 16 hours ago, sergeFR said:

    hi ,

    yes , you can but with  &

    var = "Hello" & newline & " How are you ?"

     

    Sorry, maybe I didn't explain it correctly.

    newline is not a variable. What I want to do is insert a carry return so I can visualize two lines, on the first one with "hello" and the second one "how are you" as an example.

    Showing it later on a DataDisplay with multiple lines. I need to know if there is a special character available in VB .net on sysmac studio.


  8. On 27/11/2020 at 8:42 PM, Crossbow said:

    You need to be looking at PC-based data collection options, such as SCADA for a more powerful interface.

    Alright, but how? What technologies can I implement to do this? Is SCADA compatible with my already programmed HMI pages? Does the generated CSV via NA USB offer any solution like import the info into a Database? Or is more recommended to use function blocks on NJ to send the data I want via some communication protocol? Like send it to a server?

    Thank you


  9. Hi

    I'm a bit lost here. I work with Sysmac studio with a NJ101 Controller along with a NA5 HMI. I show a page with a trendGraph some of the variables values (turned into %) in real time that come as inputs from the NX-Units. Also save this data trace into a USB connected to the NA so it turns into a csv.

    And that's it. But this does not give me a solution. I don't know if there's better ways for this. This seems not even a first step for a solid client side professional software.

    So, I need some help here. I read somewhere I can also monitorize with function blocks on ladder and then later save the data on a SDCard and then later send that data to a server?. But I want to keep the visual page so I have to use a trendGraph and somehow connect both sides (controller and hmi)

    What kind of solutions can Omron offer regarding Data Monitoring. I don't want to stop on having just a USB with a csv. file that a client has no idea on how to process that data.

    What are some examples of a good Data tracing system with sysmac studio?

    Thank in advance


  10. Hi

    It is possible to specify a newline on a vb page on a NA Series Page?

    Sub subroutine
    
    Dim var as string
    
    var = "Hello" + (insert newline) + "How are you?"
    
    End sub

    Edit: forgot to specify that the variable is Global (so no DIm...) and later used as a expression for a dataDisplay control.

    Thank you in advance


  11. Hello

    Any way I can check which resources are being used on page elements / alarms / etc. and which not?

    I feel like my project is getting slower to load because of the thousands of strings I have in resources but probably using 30% of them.

    Any method for fast cleaning? If I go one by one checking if it's being used... pff... I would prefer to delete all and rewrite all strings... both methods looks too tedious for big projects...

    Ideas? Any other reasons why my project loads are so slow? (got more than 50 pages, recipes... alarms)

    Or any way to release the project file size?

    Thank you.


  12. Hi I was wondering if it's possible to connect two NJ controllers (using Sysmac Studio) through a W4S1 Ethernet port switch so I could monitorize variables by using one as slave which could visualize a certain number of variables from the master.

    I'm checking W506-E1-15 NJ_NX-series CPU Unit Built-in EtherNetIP Port User's Manual but I can't anything for the moment.

    Thank you


  13. Hi

    I'm not versed in code (ST or VB) with timers, I work on a NJ101-9000 and a NA5 as interface with Sysmac studio. I just need a counter that goes on whenever a bit is true (work on) and goes off when bit is false. The counter would show working Hours and Minutes on a Display control on HMI. Also store the counter variable with Retain attribute on the NJ101 memory and reset whenever desired.

    Thanks in advance

     

    Made it quite simple almost all on ladder diagram.


  14. Hola

    No he profundizado en tu problema. Pero yo he tenido un problema, sino igual, similar el cual no me permitia asignar variables del controlador en una receta.

    Lo que hice es crear una estructura idéntica en el hmi que funcione de puente entre las recetas y la structura del controlador.

    Lo que yo hacia en el codigo vb de las paginas era un metodo "AssignFrom" para pasar los valores de una estructura a otra siempre que el nombre de las variables en ambas estructuras fuesen los mismos.

    Suerte

     

    PD: I hope it's ok for the admins if I write in spanish since he seems to be from Spain too. I can translate to english If necessary.


  15. Short question: Can I somehow export one proyect image resources from a HMI NA5 to a system folder or another proyect? If so... how?

     

    Edit: Woops made it by just copy-paste-ing from one project to another, but be sure to match the language and language order on settings.


  16. Hi, newbie question... on a NA5 HMI on sysmac studio...

    Can I declare a Global Variable through a Page subroutine or a Global subroutine? If so, how?

    Theres no such thing as:

    Public myVar as Integer

    Is it?

    Yes, I know I can use Global Variables window on Data. It is just curiosity...