adccommunitymod (AutomationDirect) asked a question.

dl06 convertions

Created Date: August 14,2010

Created By: rodtech35

**** 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 am needing to use double word in the ladder program. it shows up in the data view when i switch it to double word but it shows up in ladder program as a zero. is there a way to use double as a greater than or equal to???


  • adccommunitymod (AutomationDirect)

    Created Date: August 14,2010

    Created by: milldrone

    rodtech35,

    Try this

    PLC 06

    // Rung 1

    // Address 0

    STR SP0

    LD K400

    OUT V700

    LDA O2000

    OUT V701

    // Rung 2

    // Address 5

    STR SP1

    LD K5000

    MUL V2000

    DIV K4095

    MUL K100

    OUTD V2030

    // Rung 3

    // Address 11

    STR SP1

    TMR T0 K80

    // Rung 4

    // Address 15

    STR SP4

    AND T0

    OUT C100

    // Rung 5

    // Address 18

    STR C100

    STR CT0

    CNT CT0 V2060

    // Rung 6

    // Address 22

    STRE CTA0 V2061

    OUT C102

    // Rung 7

    // Address 25

    #BEGIN COMMENT

    "Making a presumption that V3000 is a double word also. If it is not a double word then "

    "V3001 must contain zero "

    " "

    "You must use the SP61 SP62 or SP63 special relays before another function uses them "

    #END

    STR SP1

    LDD V2030

    CMPD V3000

    STR SP62

    OR SP61

    ANDSTR

    OUT C41

    // Rung 8

    // Address 32

    #BEGIN COMMENT

    "You can also do a LDF (load formatted) and a OUTF (out formatted) to save the bits for "

    "use later in the logic if needed. In this case SP60, SP61, SP63, are saved to C1000, "

    "C1001, C1002 "

    #END

    STR SP1

    LDF SP60 K3

    OUTF C1000 K3

    // Rung 9

    // Address 37

    END

    // Rung 10

    // Address 38

    STR V2030 V3000

    OUT C41

    // Rung 11

    // Address 41

    END

    // Rung 12

    // Address 42

    NOP

    #BEGIN ELEMENT_DOC

    "C41 ", " ", " ", "HIGH SAND LEVEL "

    "C1000 ", " ", " ", "less than the instruction value SAVED "

    "C1001 ", " ", " ", "equal to the instruction value SAVED "

    "C1002 ", " ", " ", "greater than the instruction value SAVED "

    "V2030 ", " ", " ", "SCALED LEVEL "

    "V3000 ", " ", " ", "sand alarm "

    "SP60 ", " ", " ", "less than the instruction value "

    "SP61 ", " ", " ", "equal to the instruction value "

    "SP62 ", " ", " ", "greater than the instruction value "

    #END

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: August 14,2010

    Created by: rodtech35

    Thank you very much is there somewhere in the manual it explain how you came up with that???? just wondering for future project. never had to scale this high before.:eek: By the way v3000 was double also

  • adccommunitymod (AutomationDirect)

    Created Date: August 14,2010

    Created by: milldrone

    is there somewhere in the manual it explain how you came up with that?

    Page 5-82, an index for the functions is on page 5-2, 5-3, and 5-4. I paid for the hardcopy version of the manual and those three pages are very dirty and dogeared.

  • adccommunitymod (AutomationDirect)

    Created Date: August 14,2010

    Created by: rodtech35

    i am needing to use double word in the ladder program. it shows up in the data view when i switch it to double word but it shows up in ladder program as a zero. is there a way to use double as a greater than or equal to???