adccommunitymod (AutomationDirect) asked a question.

Multiple GS2 on DL06

Created Date: May 20,2008

Created By: NavInc

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

I'm still a novice, I was able to connect my two GS2 to the DLo6, (start/stop preset speed as show in P5-19). I wish to have their speed tie to an FO-2AD2DA-2 using the pointer method. I'm able to control one drive but not the second one. I use the MWX and MRX where the drive #1 is V2000 and drive #2 is V3000, the Fo-.... is set up that the LDA is on o2000( V701).This will run the drive #1 If I set the LDA to o3000 the drive #2 will run. How can I set multiple drive to go on the same V memory, I tried different solution with no luck. I checked the manual (dlo6, Option Module and GS2 ) with no answer. I was able to go that far with your help and this last step is blocking me, I may miss the point somewhere.


  • adccommunitymod (AutomationDirect)

    Created Date: May 20,2008

    Created by: milldrone

    NavInc,

    Is there a special reason for using both the coms and a analog out?

    Unless I'm missing something you could accomplish the speed at the same time as you were turning the drives on and off with the com port.

    Vaughn

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 20,2008

    Created by: NavInc

    That what I try to do, I just the analog Input , I found out that if all the slave are on the same V-memory they will both work, but the plan is to have the drives having their own address, for fault reference.

    I download the two sample but still not got it .I really wish I could speak with somebody.Or have a clear sample. :0(.

  • adccommunitymod (AutomationDirect)

    Created Date: May 21,2008

    Created by: bcarlton

    It's unclear to me the relationship of the analog input to the MODBUS communications to/from the drives.

    Are you bringing in a speed reference, perhaps from a potentiometer, through the analog card and wish to send a reference to the drives via MODBUS communications?

    If the program or at least the section dealing with the control of the drives, is small you could export that to a text file then cut from the text file and paste it to a post here. That may help give us a better picture.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 21,2008

    Created by: milldrone

    NavInc,

    It doesn't get any better than this! Bernie (bcarlton) has offered to help if you post your code. Do not miss this opportunity.

    PS. to get the code in text form go to file, export, program, save as something you can remember and find. Open this file in notepad copy it and paste it in your response.

    Vaughn

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 21,2008

    Created by: NavInc

    Sorry for the late reply, here is what I have so far

    "This ladder example works with the new MWX and MRX instructions found in the DL06 "

    "and DL260 plc platforms. Remember that the DL06 and the DL260 can do RS485 directly "

    "out of port 2 directly to several drives. "

    #END

    STR SP116

    STR CT0

    OR SP0

    CNT CT0 K9999

    // Rung 2

    // Address 6

    STR SP117

    STR CT1

    OR SP0

    CNT CT1 K9999

    // Rung 3

    // Address 12

    #BEGIN COMMENT

    "A valuble shift register example can be found in chapter 3 of H24-ECOM-M manual. "

    #END

    STR SP2

    STRN SP116

    STR SP2

    SR C200 C207

    // Rung 4

    // Address 17

    #BEGIN COMMENT

    "Writing to drive #1 (GS1, GS2, or GS3) "

    #END

    STRN SP116

    ANDPD C200

    MWX K0 K0 K2 K1 K16 K402331 V2000 K2 K0 V400

    // Rung 5

    // Address 25

    #BEGIN COMMENT

    "Reading from drive #1 "

    #END

    STRN SP116

    ANDPD C201

    MRX K0 K0 K2 K1 K3 K408449 V2010 K7 K0 V404

    // Rung 6

    // Address 33

    #BEGIN COMMENT

    "Writing to drive #2 "

    #END

    STRN SP116

    ANDPD C202

    MWX K0 K0 K2 K2 K16 K402331 V3000 K2 K0 V410

    // Rung 7

    // Address 41

    #BEGIN COMMENT

    "Reading from drive #2 "

    #END

    STRN SP116

    ANDPD C203

    MRX K0 K0 K2 K2 K3 K408449 V3010 K7 K0 V414

    // Rung 8

    // Address 49

    #BEGIN COMMENT

    "This rung resets the communications sequence once the last communications instruction "

    "has completed. "

    #END

    STR C204

    OR SP0

    SET C200

    RST C204

    // Rung 9

    // Address 53

    STR X0

    LD K1

    OUT V2001

    OUT V3001

    // Rung 10

    // Address 57

    STR X1

    LD K0

    OUT V2001

    OUT V3001

    // Rung 11

    // Address 61

    STR X2

    LD K8282

    OUT V730

    LDA O2000

    OUT V731

    LDA O3000

    OUT V732

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 21,2008

    Created by: milldrone

    NavInc,

    Give this a try

    PLC 06

    // Rung 1

    // Address 0

    #BEGIN COMMENT

    "THIS INFORMATION PROVIDED BY AUTOMATIONDIRECT.COM TECHNICAL "

    "SUPPORT IS PROVIDED " "AS IS " " WITHOUT A GUARANTEE OF ANY KIND. "

    "These documents are provided by our technical support department to assist others. We "

    "do not guarantee that the data is suitable for your particular application, nor do we "

    "assume any responsibility for them in your application. "

    " "

    "GS Network MODBUS Example Program "

    " "

    "This ladder example works with the new MWX and MRX instructions found in the DL06 "

    "and DL260 plc platforms. Remember that the DL06 and the DL260 can do RS485 directly "

    "out of port 2 directly to several drives. "

    #END

    STR SP116

    STR CT0

    OR SP0

    CNT CT0 K9999

    // Rung 2

    // Address 6

    STR SP117

    STR CT1

    OR SP0

    CNT CT1 K9999

    // Rung 3

    // Address 12

    #BEGIN COMMENT

    "A valuble shift register example can be found in chapter 3 of H24-ECOM-M manual. "

    #END

    STR SP2

    STRN SP116

    STR SP2

    SR C200 C207

    // Rung 4

    // Address 17

    #BEGIN COMMENT

    "Writing to drive #1 (GS1, GS2, or GS3) "

    " "

    " "

    " "

    "I changed the starting slave address from 402331 to 42331 "

    #END

    STRN SP116

    ANDPD C200

    MWX K0 K0 K2 K1 K16 K42331 V2000 K2 K0 V400

    // Rung 5

    // Address 25

    #BEGIN COMMENT

    "Reading from drive #1 "

    " "

    " "

    " "

    "I changed the starting slave address from 408449 to 48449 "

    " "

    " "

    " "

    #END

    STRN SP116

    ANDPD C201

    MRX K0 K0 K2 K1 K3 K48449 V2010 K7 K0 V404

    // Rung 6

    // Address 33

    #BEGIN COMMENT

    "Writing to drive #2 "

    " "

    " "

    " "

    " "

    "I changed the starting slave address from 402331 to 42331 "

    #END

    STRN SP116

    ANDPD C202

    MWX K0 K0 K2 K2 K16 K42331 V3000 K2 K0 V410

    // Rung 7

    // Address 41

    #BEGIN COMMENT

    "Reading from drive #2 "

    " "

    " "

    " "

    "I changed the starting slave address from 408449 to 48449 "

    #END

    STRN SP116

    ANDPD C203

    MRX K0 K0 K2 K2 K3 K48449 V3010 K7 K0 V414

    // Rung 8

    // Address 49

    #BEGIN COMMENT

    "This rung resets the communications sequence once the last communications instruction "

    "has completed. "

    #END

    STR C204

    OR SP0

    SET C200

    RST C204

    // Rung 9

    // Address 53

    #BEGIN COMMENT

    " OK this looks like when X0 is on you want the drives to run is this correct? "

    #END

    STR X0

    LD K1

    OUT V2001

    OUT V3001

    // Rung 10

    // Address 57

    #BEGIN COMMENT

    " This rung looks like you want the drives to stop when x1 is on "

    " "

    "This combination looks very odd to me but if it works thats fine. "

    " "

    "You do realize that if both inputs are on the drive will stop because " "the last one out wins " " "

    #END

    STR X1

    LD K0

    OUT V2001

    OUT V3001

    // Rung 11

    // Address 61

    #BEGIN COMMENT

    "I made a guess that when X2 is on you want the drives to run at 60 hz "

    #END

    STR X2

    ANDN X1

    LD K600

    OUT V2000

    OUT V3000

    // Rung 12

    // Address 66

    #BEGIN COMMENT

    "I made another guess that when x2 is off you want the drives to run at 15 hz "

    #END

    STRN X2

    ANDN X1

    LD K150

    OUT V2000

    OUT V3000

    // Rung 13

    // Address 71

    #BEGIN COMMENT

    "This rung loads zero into the speed registers when the drive is stopped "

    #END

    STR X1

    LD K0

    OUT V2000

    OUT V3000

    // Rung 14

    // Address 75

    #BEGIN COMMENT

    "I put an end rung here because there is not enough for me to go on regarding your analog "

    "out "

    #END

    END

    // Rung 15

    // Address 76

    STR X2

    LD K8282

    OUT V730

    LDA O2000

    OUT V731

    LDA O3000

    OUT V732

    // Rung 16

    // Address 83

    END

    // Rung 17

    // Address 84

    NOP

    #BEGIN ELEMENT_DOC

    "X1 ", "stop ", " ", " "

    "C200 ", " ", " ", "1st bit shift "

    "C201 ", " ", " ", "2nd bit shift "

    "C202 ", " ", " ", "3rd bit shift "

    "C203 ", " ", " ", "4th bit shift "

    "C204 ", " ", " ", "5th bit shift "

    "C205 ", " ", " ", "6th bit shift "

    "C206 ", " ", " ", "7th bit shift "

    "C207 ", " ", " ", "8th bit shift "

    "CT0 ", " ", " ", "com tries counter "

    "CT1 ", " ", " ", "com failure counter "

    "V2000 ", " ", " ", "drive #1 speed register "

    "V3000 ", " ", " ", "drive #2 speed register "

    "SP116 ", " ", " ", "comm port busy "

    "SP117 ", " ", " ", "comm port error "

    #END

    I changed some starting addresses in the mwx and mrx boxes. If you get a "CE03 " error on the drives change them back.

    Here is a quote from the options manual explaining why you were only able to get one drive to work on analog.

    This loads an octal value for the first V-memory location that will be used

    to store the output data. For example, O2010 entered here using the

    LDA instruction would designate the following addresses: Ch1 â€" V2010,

    Ch2 â€" V2011

    So when you used v2000 that went to the first analog channel and v2001 went to the second analog channel if you had the drive running there would have been a 1 in v2001. This would give you almost no voltage on the analog out channel #2

    Vaughn

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 22,2008

    Created by: NavInc

    PLC 06

    // Rung 1

    // Address 0

    #BEGIN COMMENT

    "GS Network MODBUS Example Program "

    " "

    "This ladder example works with the new MWX and MRX instructions found in the DL06 "

    "and DL260 plc platforms. Remember that the DL06 and the DL260 can do RS485 directly "

    "out of port 2 directly to several drives. "

    #END

    STR SP116

    STR CT0

    OR SP0

    CNT CT0 K9999

    // Rung 2

    // Address 6

    STR SP117

    STR CT1

    OR SP0

    CNT CT1 K9999

    // Rung 3

    // Address 12

    #END

    STR SP2

    STRN SP116

    STR SP2

    SR C200 C207

    // Rung 4

    // Address 17

    #BEGIN COMMENT

    " tried without and have no response "

    #END

    STRN SP116

    ANDPD C200

    MWX K0 K0 K2 K1 K16 K42331 V2000 K2 K0 V400

    // Rung 5

    // Address 25

    #BEGIN COMMENT

    "Reading from drive #1 "

    " "

    " "

    " "

    "Same comment "

    " "

    " "

    " "

    #END

    STRN SP116

    ANDPD C201

    MRX K0 K0 K2 K1 K3 K48449 V2010 K7 K0 V404

    // Rung 6

    // Address 33

    #BEGIN COMMENT

    "Writing to drive #2 "

    " "

    " "

    " "

    " "

    "Same comment "

    #END

    STRN SP116

    ANDPD C202

    MWX K0 K0 K2 K2 K16 K42331 V3000 K2 K0 V410

    // Rung 7

    // Address 41

    #BEGIN COMMENT

    "Reading from drive #2 "

    " "

    " "

    " "

    "Same comment "

    #END

    STRN SP116

    ANDPD C203

    MRX K0 K0 K2 K2 K3 K48449 V3010 K7 K0 V414

    // Rung 8

    // Address 49

    #BEGIN COMMENT

    "This rung resets the communications sequence once the last communications instruction "

    "has completed. "

    #END

    STR C204

    OR SP0

    SET C200

    RST C204

    // Rung 9

    // Address 53

    #BEGIN COMMENT

    " XO is on for the system, no matter analog input "

    #END

    STR X0

    LD K1

    OUT V2001

    OUT V3001

    // Rung 10

    // Address 57

    #BEGIN COMMENT

    " X1 is supposed to be to stop the system, if I understand you good a switch N.0. could do the same job, energize =system ON , de-energize system of "

    #END

    STR X1

    LD K0

    OUT V2001

    OUT V3001

    // Rung 11

    // Address 61

    #BEGIN COMMENT

    "I have no clue how this end there, I do not want any preset speed, but I tried this as per the GS2 book, using the BIN and booth drive was work, same MRX&MWX, I guess this rung can be deleted "

    #END

    STR X2

    ANDN X1

    LD K600

    OUT V2000

    OUT V3000

    // Rung 12

    // Address 66

    #BEGIN COMMENT

    "Same comment "

    #END

    STRN X2

    ANDN X1

    LD K150

    OUT V2000

    OUT V3000

    // Rung 13

    // Address 71

    #BEGIN COMMENT

    "This rung loads zero into the speed registers when the drive is stopped, is this a duplicate of the XO, If I understand good I could use a "KO " to stop the drive "

    #END

    STR X1

    LD K0

    OUT V2000

    OUT V3000

    // Rung 14

    // Address 75

    #BEGIN COMMENT

    "this one can be deleted "

    "out "

    #END

    END

    // Rung 15

    // Address 76

    #BEGIN COMMENT

    "LDA load to drive #1 and LDA o300 to drive #2, but only one drive work, and the pot in CH2 input need to give a slight voltage, to avoid the drive #1 to flicker on and off, this is where my knowledge lack, see below "

    STR X2

    LD K8282

    OUT V730

    LDA O2000

    OUT V731

    LDA O3000

    OUT V732

    // Rung 16

    // Address 83

    END

    // Rung 17

    // Address 84

    NOP

    #BEGIN ELEMENT_DOC

    "X1 ", "stop ", " ", " "

    "C200 ", " ", " ", "1st bit shift "

    "C201 ", " ", " ", "2nd bit shift "

    "C202 ", " ", " ", "3rd bit shift "

    "C203 ", " ", " ", "4th bit shift "

    "C204 ", " ", " ", "5th bit shift "

    "C205 ", " ", " ", "6th bit shift "

    "C206 ", " ", " ", "7th bit shift "

    "C207 ", " ", " ", "8th bit shift "

    "CT0 ", " ", " ", "com tries counter "

    "CT1 ", " ", " ", "com failure counter "

    "V2000 ", " ", " ", "drive #1 speed register "

    "V3000 ", " ", " ", "drive #2 speed register "

    "SP116 ", " ", " ", "comm port busy "

    "SP117 ", " ", " ", "comm port error "

    #END

    I changed some starting addresses in the mwx and mrx boxes. If you get a "CE03 " error on the drives change them back.( I do not have an error, it just don't work)

    Here is a quote from the options manual explaining why you were only able to get one drive to work on analog.

    quote:This loads an octal value for the first V-memory location that will be used

    to store the output data. For example, O2010 entered here using the

    LDA instruction would designate the following addresses: Ch1 â€" V2010,

    Ch2 â€" V2011

    So when you used v2000 that went to the first analog channel and v2001 went to the second analog channel if you had the drive running there would have been a 1 in v2001. This would give you almost no voltage on the analog out channel #2

    Vaughn

    Vaugh thanks for your time, here is what should happen, X0 turn the system on, X1 turn it off no matter what the analog input in CH1 is.( not using Ch2 in or out)

    NOW where I get confuse is how to use my analog signal to start multiple drive, if drive # 1 is V2000, speed reference and drive # 2 is V3000, my main problem is that I can not find out, lack of sample and mostly knowledge, is how to use the pointer system.

    The LDA o2000 will load on the V2000 memory, who is here the same V memory than the drive #1. How can I take V2000 and load it on a V3000 (Drive#2, and V4000 & V5000 drive # 3 &4;future drive)?.

    I tried to use an IB-201 and IB-200 with no luck, basically I need help to find a way to copy a Vmemory to an another V memory.

    One more time thanks for your time and patience.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 22,2008

    Created by: Bob S BN

    On another rung use the always on contact SP1 to LD box v2000 and OUT box v3000 and in the future OUT v4000 and OUT v5000

  • adccommunitymod (AutomationDirect)

    Created Date: May 22,2008

    Created by: NavInc

    I got it working, I change the LDA to O1500, and made the rung like you said Sp1 LDv1500 and out to v2000 and V3000, I'm able now to start stop the system and change the speed with the pot. Thanks for your help, you guys rock.

    Bruno.

  • adccommunitymod (AutomationDirect)

    Created Date: May 20,2008

    Created by: NavInc

    I'm still a novice, I was able to connect my two GS2 to the DLo6, (start/stop preset speed as show in P5-19). I wish to have their speed tie to an FO-2AD2DA-2 using the pointer method. I'm able to control one drive but not the second one.

    I use the MWX and MRX where the drive #1 is V2000 and drive #2 is V3000, the Fo-.... is set up that the LDA is on o2000( V701).This will run the drive #1

    If I set the LDA to o3000 the drive #2 will run.

    How can I set multiple drive to go on the same V memory, I tried different solution with no luck.

    I checked the manual (dlo6, Option Module and GS2 ) with no answer.

    I was able to go that far with your help and this last step is blocking me, I may miss the point somewhere.

    Expand Post