Veganic

MrPLC Member
  • Content count

    471
  • Joined

  • Last visited

Posts posted by Veganic


  1. @dunc

     

    GS385 Script Monitoring TimeSet

    the monitoring time for one script in units of seconds. 
    If a script does not end even when the set time has elapsed after the start of the script, the script processing stops. (Error code: 15) 
    The setting range is [1] (second) to [300] (seconds). 
    If 0 or any value greater than 301 is set, the value is processed as 10 seconds. 

     

    The following shows examples of settings.
    ・When 0 is set for GS385, the monitoring time is 10 seconds.
    ・When 1 is set for GS385, the monitoring time is 1 second.
    ・When 10 is set for GS385, the monitoring time is 10 seconds.
    ・When 11 is set for GS385, the monitoring time is 11 seconds.
    ・When 301 is set for GS385, the monitoring time is 10 seconds.

     

    You can check for errors here:

    GS16 to GS47
    Script Error DataStores the script Nos. and error codes of the script where an error has occurred are stored in order from the upper address of the storage area. 
    When an error occurs, the script No. and the error code are stored in 2-word unit as a history. 
    If 15 or more errors occur, the upper addresses are overwritten in order.

     


  2. OK.

    This modified version of your first example works with an ordinary trigger:

    //if login level above 0 or login above 0 and login time count at 0
    if (([w:GD0] > 0) || (([w:GD0] > 0) && ([w:GD1] <= 0)))  {
    //set GOT seconds to login time count
    [w:GD1]=[w:GS7];}
    //while login level is above 0
    while ([w:GD0] > 0) {
    [w:GD2]=[w:GD2]+1; //increment GD2 to show we are in the loop
    //if 60 seconds elapsed
    [w:GD3]=([w:GS7]-[w:GD1]); //check the calc
    if([w:GS7]-[w:GD1]>=10){
    //set login level to 0
    [w:GD0]=0;}}

     

    Only tried it with the simulator.

     

    EDIT:

    This is pretty much identical to your first example.  I have added some parts to help with debugging.  GD2 is incremented every scan of the HMI when the while loop is active. GD3 calculated GS7 - GD1 just to check if there was a problem with the this calcuation.

    It now works with the additions edited out so that it is back to your original version as far as I can tell

     

    Edit2:

    If I cut and paste your original code it fails to work on the simulator.

    Oh the simulator the while statement seems to block the screen refresh.

     

    @dunc


  3. Which security method are you using? Level or operator?

    LEVEL:

    Setting the security level device will log-out and even elevate the security level when changed in the controller. Well it does in the simulation I have tried.

    OPERATOR:

    The manual explains out to log out an operator - I haven't simulated this one.

     

    It seems that control from the PLC should be possible.


  4. GX works 3 has SFC?

    You mean using the Sxx labels in ladder? Defeats the object for me, I like graphical boxes and steps.  No many fans of SFC so probably a good thing to let it go.

     

    Too much choice is a real time-waster.  If I want a 7" screen my needs are simple.  I don't need it to be anything other than 24VDC.  I don't need a choice of colours. I don't need a choice of screen resolution. I don't need a bargain range, or a horrible wide screen option.  Or new models every other week.  I don't think I've used the same GOT screen twice (slight exaggeration).  For example, a quick look at a recent brochure:

    8.4" screens:

    GT2308-VTBA

    GT2308-VTBD

    GT2708-STBA

    GT2708-STBD 

    GT2708-VTBA

    GT2708-VTBD

    GT2508-VTBA

    GT2508-VTBD

    GT2508-VTWA

    GT2508-VTWD

    Then there is the GT21s, the GS 7", the older but still available GT1000s.

    </rant>  :)

     


  5. After a recent update I am getting an error when I start GX works 2 and try to open a FX project.

    The error starts "GX cofigurator2-DP could not be loaded..."  Sometimes it can be clicked away, sometimes it just hangs.

    Now I am not using Profibus and have no plans to so why would this happen? 

    Is this bit of software hidden somewhere on the DVDs?

    Is this just the way it is now?

     

    Thanks


  6. "Since I only have a FX3U 24MR unit available, I'll need an transistor output module."

    do you mean a transistor ouput expansion block on the side of the existing FX3U?

    I think you may need FX3U transistor output base unit.

    If you need to use the high speed output commands PLSY, DRVI,DRVA etc I think you can only use Y0 to Y2?

    I think DRVI would do what you want without the need for encoder feedback.

    See attached.

     

     

     

     

    position prg.JPG


  7. That isn't really how ladder logic works, it doesn't really do 'else' unless as suggested you go for a PLC with structured text (ST) language option.

    In ladder one options would be:

     

    IF

    --[> DB*** DB###]------------------------------------(M1)---

    THEN

    --|M1|-------------------------------------------------(Y0)-----

    ELSE

    --|/ M1|------------------------------------------------(Y1)-----

     

     

    1 person likes this

  8. Thanks for confirming my suspicions.

    Battery low from the HMI, but it looks like that  isn't the issue if the GDs aren't retained.

    Strangley this PLC has no retentive registers. It has some flash memory you can write to with a special function but that is a bit risky given the possible number of writes.

    I will use some external memory and a recipe.

    Webpages? Sounds like too much hard work.  Is VNC free on GOTs yet? 


  9. Can the contents of GOT2000 internal registers be retained after power down / power up?

    Also,and possible related, how do I get a bettery low warning?

    Finally, what are VGD registers?

    I've tried the manuals and can't find anything, apologies for such basic questions.


  10. Has anyone used a GOT2000 as a Modbus TCP client over ethernet?

    I have a Modbus server which works with an e-series HMI and also with PC modbus polling software.

    I can not get the GOT2000 to even look like it is trying - nothing vaguely modbus in wireshark.

     

     

    Edit : I can connect to a simulated server on my PC by disabling the firewall so there is hope!

     

    Edit no.2 :  OK, so I have it working but there is over a second delay when updating a value to it appearing on screen. Strange.