Announcement

Collapse
No announcement yet.

test attachment

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts


  • test attachment

    test attachment





    Attached Files
    PERCUSSIVE MAINTENANCE: The fine art of whacking the devil out of an electronic device to get it to work again.

    Vaughn


  • #2
    I'm embarrassed

    Reply to test

    PLC 06

    // Rung 1
    // Address 0
    #BEGIN COMMENT
    "Ibox command loads analog signal inputs from slot 1 (K1) into V2000-V2017. This data is "
    "in BCD format (K0)."
    #END
    ANLGIN K0 K1 K8 K0 V2000

    // Rung 2
    // Address 38
    #BEGIN COMMENT
    "Ibox command loads analog signal inputs from slot 2 (K2) into V2020-V2037. This data is "
    "in BCD format (K0)."
    #END
    ANLGIN K0 K2 K8 K0 V2020

    // Rung 3
    // Address 76
    #BEGIN COMMENT
    "Constants are loaded into V3000 and V3002 to later be used for converting digital "
    "information back to analog values"
    #END
    STR SP0
    LDD K10
    OUTD V3000
    LDD K65535
    OUTD V3002

    // Rung 4
    // Address 83
    #BEGIN COMMENT
    "Signal is converted from Digital value to Analog value"
    #END
    STR SP1
    LDD V2002
    MULD V3000
    DIVD V3002
    OUTD V2042

    // Rung 5
    // Address 90
    #BEGIN COMMENT
    "Constant of 12 is loaded into memory. This constant is to be used in transfer function from "
    "voltage to sensor measurement (in this case, angle in degrees)"
    #END
    STR SP0
    LDD K12
    OUTD V3004

    // Rung 6
    // Address 94
    #BEGIN COMMENT
    "Analog value is converted into degrees"
    #END
    STR SP1
    LDD V2042
    MULD V3004
    OUTD V2102

    // Rung 7
    // Address 99
    END

    // Rung 8
    // Address 100
    NOP


    #BEGIN ELEMENT_DOC
    "UB0","LC1","",""
    "V2102","_v2102","",""

    #END
    PERCUSSIVE MAINTENANCE: The fine art of whacking the devil out of an electronic device to get it to work again.

    Vaughn

    Comment

    Working...
    X