Results 1 to 3 of 3

Thread: FladderIII

  1. #1
    Join Date
    Jul 2012
    Posts
    13
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default FladderIII

    does anybody know how to properly use a DECB function so that I can decode an M30 Function?

    I have a programming book that explains the DECB function and I hooked it up loaded into the CNC but it still is not turning on the output I want.
    this is what i have:
    DECB: 0002
    F0007
    000030
    R0027
    MF
    I I------------------DECB25---------------------------------

    R0027 Y000.0
    I I-----------------------------------------------O----------

    Is this right? must not be cause when the M30 is commanded i see the rung 1 come on but rung 2 does not...

  2. #2
    Join Date
    Nov 2006
    Location
    Lewisville(New Castle Area), Indiana
    Posts
    234
    Thanks
    0
    Thanked 25 Times in 13 Posts

    Default Re: FladderIII

    Quote Originally Posted by bill4807 View Post
    does anybody know how to properly use a DECB function so that I can decode an M30 Function?

    I have a programming book that explains the DECB function and I hooked it up loaded into the CNC but it still is not turning on the output I want.
    this is what i have:
    DECB: 0002
    F0007
    000030
    R0027
    MF
    I I------------------DECB25---------------------------------

    R0027 Y000.0
    I I-----------------------------------------------O----------

    Is this right? must not be cause when the M30 is commanded i see the rung 1 come on but rung 2 does not...
    No, this isn't correct. From what you put above, it looks like you're trying to move Byte F7 and 8 into R27 and 28, and the MF signal you have driving the function is part of the same byte you're trying to move. There are several signals within Byte F7 that are totally unrelated to M-Codes.

    MF or F7.0 is your auxiliary function strobe, or M function strobe 1. F8.4 is M function strobe 2, and F8.5 is M function strobe 3.

    F10-F13 are M-Codes 00-31, F14-15, are M200-215, F16-17 are M300-315.

    Now the question should be "Hey, wait what about M32-M199?" That's where the constant in the function comes into play. You can move the same F10-F17 multiple times with a different constant to produce different results for M-Codes. That's a discussion I can't go into to much depth about right now, but can certainly take some time later to go into.

    Try this instead:

    MF
    I I-------------DECB

    DECB:
    4
    F010
    0
    R27

    MF
    I I-------------DECB

    DECB:
    4
    F010
    8
    R28

    MF
    I I-------------DECB

    DECB:
    4
    F010
    16
    R29

    MF
    I I-------------DECB

    DECB:
    4
    F010
    24
    R30

    As long as those R bytes are unused, you should get:
    R27.0=M00
    R27.1=M01
    R27.2=M02
    R27.3=M03
    R27.4=M04
    R27.5=M05
    R27.6=M06
    R27.7=M07
    R28.0=M08
    R28.1=M09
    R28.2=M10
    R28.3=M11
    R28.4=M12
    R28.5=M13
    R28.6=M14
    R28.7=M15
    R29.0=M16
    R29.1=M17
    R29.2=M18
    R29.3=M19
    R29.4=M20
    R29.5=M21
    R29.6=M22
    R29.7=M23
    R30.0=M24
    R30.1=M25
    R30.2=M26
    R30.3=M27
    R30.4=M28
    R30.5=M29
    R30.6=M30
    R30.7=M31
    Cody Stamper



    (Note: The opinions expressed in this post are my own and are not necessarily those of cnc-professional-forum.com and its management)

  3. #3
    Join Date
    Jul 2012
    Posts
    13
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default Re: FladderIII

    Hi Codyst,
    Thank you for your reply. I was skimming this website and saw my own post. lol. I must have forgotten and not have checked back after I posted it. I know there are not alot of PMC programmers out there so this is greatly appreciated. I definitely need to continue to study up. Other than reading the manuals it is hard to see this work. I do alot of fanuc controls and PMC troubleshooting so from that I somewhat know whats going on but I would really like to know how to do simple things for small integration's.
    For example a cycle counter to an electronic display. Be able to grab like a cycle start, estop signal or an m30 and output to my third party PLC controlling other things and display.
    I am well versed with AB. But I really like the Fanuc control and want to get into that as well.

    Quote Originally Posted by codyst View Post
    No, this isn't correct. From what you put above, it looks like you're trying to move Byte F7 and 8 into R27 and 28, and the MF signal you have driving the function is part of the same byte you're trying to move. There are several signals within Byte F7 that are totally unrelated to M-Codes.

    MF or F7.0 is your auxiliary function strobe, or M function strobe 1. F8.4 is M function strobe 2, and F8.5 is M function strobe 3.

    F10-F13 are M-Codes 00-31, F14-15, are M200-215, F16-17 are M300-315.

    Now the question should be "Hey, wait what about M32-M199?" That's where the constant in the function comes into play. You can move the same F10-F17 multiple times with a different constant to produce different results for M-Codes. That's a discussion I can't go into to much depth about right now, but can certainly take some time later to go into.

    Try this instead:

    MF
    I I-------------DECB

    DECB:
    4
    F010
    0
    R27

    MF
    I I-------------DECB

    DECB:
    4
    F010
    8
    R28

    MF
    I I-------------DECB

    DECB:
    4
    F010
    16
    R29

    MF
    I I-------------DECB

    DECB:
    4
    F010
    24
    R30

    As long as those R bytes are unused, you should get:
    R27.0=M00
    R27.1=M01
    R27.2=M02
    R27.3=M03
    R27.4=M04
    R27.5=M05
    R27.6=M06
    R27.7=M07
    R28.0=M08
    R28.1=M09
    R28.2=M10
    R28.3=M11
    R28.4=M12
    R28.5=M13
    R28.6=M14
    R28.7=M15
    R29.0=M16
    R29.1=M17
    R29.2=M18
    R29.3=M19
    R29.4=M20
    R29.5=M21
    R29.6=M22
    R29.7=M23
    R30.0=M24
    R30.1=M25
    R30.2=M26
    R30.3=M27
    R30.4=M28
    R30.5=M29
    R30.6=M30
    R30.7=M31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •