erik.carlsen (Customer) asked a question.

Programming as GS20 Drive internal PLC with GS Logic- LD# Contacts- the greater than, less than, etc. comparisons won't compile. Why????

Error is-

"This model does not support this instruction or input instruction is incorrect"

 

No comparisons I've tried work with any data formats. Tried lots of combinations.

??? Very poor fit for my application without this instruction. All other instructions function, compile, run on the drive fine.

 

Thanks to anyone that might have some insight on this.


  • ADC Community_02 (Automationdirect.com)

    It appears that when using a LD compare instruction with a conditional contact in front of it is causing the compile error. Possible bug with the software but has not been confirmed as of yet.

     

    There is a workaround that if you write the ladder like below with the conditional contact after the LD compare instruction it will compile with no errors. I have reported this to our Drives Product Manager.

     

    image

    Expand Post
    Selected as Best
  • ADC Community_02 (Automationdirect.com)

    I wrote a couple of rungs using both less than and greater than and compiles with no errors:

    • What version software are you using?
    • Can you provide a screenshot or attach the .gslg file of your code?
  • erik.carlsen (Customer)

    Thanks for the reply.

     

    I've had a lot of success with many click PLCs but I'm not super savvy at ladder logic operations. GS logic is more coding like and less user friendly, which is fine but hard to learn. I'm sure I'm screwing up the data types or something. I read all the help files and examples. I've tried many different operations, data types, etc. No go, won't compile with any comparison logic. All other ops load fine, can read, write PLC, monitor registers no problem. Newest version running, just downloaded. GS20 drive not GS4

     

    Screenshot attached.

     

    Here's what I'd like to do- An input to the drive runs a pumping operation. I've got a 4-20ma signal coming in as pressure sense, setup in the drive as "AI2" or "Special Function" D1029. Signal is configured as I want/need ,easy to do with drive parameters, tested/works/data is live. I'd like to have the drive run under D0129 <K20 to trigger drive set/ D1029> K25 to reset. Or I'd like to use registers I can change to vary pressure settings. This should drive my pump and I have done this with lots of other projects. Maybe you know a better way.

     

    Any help or advice is very appreciated. GS logic screen shot

    Expand Post
  • erik.carlsen (Customer)

    Also might be worth mentioning-

    This is operation would be so easy to do with an external plc commanding the drive.

    I have six drives and pumps I want to run completely independently/redundantly and not share any components. If I had to have six PLCs to have true independence that's more expensive, lots of wiring, plus power supply etc.

     

    Fantastic it has a built in PLC to do this as one unit...I just need to learn and understand how to program this great feature.

    Expand Post
  • erik.carlsen (Customer)

    Watched every GS-20 and GS4 video available on youtube which has many great example uses.

    It seems the drive parameters are suited to performing the basic pumping operation I desire via the sleep and wake functions thru PID or straight from the analog input as a non functional PID control feedback PV. That would allow a simple run/ stop, pressure based control.

     

    Would still really like to know how to do the ladder logic for custom functions and greater control.

     

    By all means, those with any relevant experience, please chime in.

     

    Thanks.

    Expand Post
  • ADC Community_02 (Automationdirect.com)

    It appears that when using a LD compare instruction with a conditional contact in front of it is causing the compile error. Possible bug with the software but has not been confirmed as of yet.

     

    There is a workaround that if you write the ladder like below with the conditional contact after the LD compare instruction it will compile with no errors. I have reported this to our Drives Product Manager.

     

    image

    Expand Post
    Selected as Best
  • erik.carlsen (Customer)

    It's an echo chamber in here. That's OK. Maybe this will help someone someday.

     

    As with most everything, it was something easy/simple preventing a comparison instruction from working.

    Outside of convention known to me, GS logic comparisons can only be in the far left column at the beginning of the rung. You can't place any contact ahead of the instruction, only behind to enable etc. Mostly just a change of work flow vs the way I've used Click PLCs.

    Expand Post
  • erik.carlsen (Customer)

    Thanks ADC Community_02

     

    After a lot of experimentation I arrived at the same conclusion.

    Is a little easier to string contacts in parallel on rungs. If possible please update if the bug is there and if a new release will resolve.

     

    Automation Direct has a fantastic culture of tech support. This is really appreciated.

     

     

    Expand Post