1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. Fanuc Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Fanuc R-J3ib Controller Spindle I/O Output

  • rpgemployee
  • July 20, 2023 at 10:50 PM
  • Thread is Resolved
  • rpgemployee
    Reactions Received
    1
    Trophies
    1
    Posts
    20
    • July 20, 2023 at 10:50 PM
    • #1

    Hello everyone,

    I started a new job recently and my first task was to get a pre-owned M-16ib arm with R-j3ib controller working. I have no previous experience with robotics in the slightest. Attached to the arm is a spindle that takes tools placed in collets (saws, drill bits, router bits, etc). So far, I've managed to figure out how to jog the robot, make basic programs, toggle various outputs such as spindle air cooling/clamp/unclamp the spindle, things like this. However, we can't seem to get the spindle to forward or reverse using the digital output, either through simulating or through programmatically changing the status of the DO register. When I try to force an output in the menu, it only stays on for half a second or so and then immediately switches back to OFF.

    We've verified that the spindle itself functions by using a manual override on the speed controller for the spindle. I've also noticed that digital inputs related to the spindle, namely two that define if the spindle is clamped or if the spindle is unclamped, do not update accordingly when it clamps or unclamps. My suspicion is that there's some communication error between the controller and the spindle with regards to the I/O connections. Any tips on how I can troubleshoot this? Thanks.

  • rpgemployee
    Reactions Received
    1
    Trophies
    1
    Posts
    20
    • July 20, 2023 at 11:11 PM
    • #2

    I should also note that the spindle does NOT move when the digital outputs are toggled (and then switch back to OFF almost immediately).

  • kwakisaki July 20, 2023 at 11:37 PM

    Approved the thread.
  • HawkME
    Reactions Received
    568
    Trophies
    11
    Posts
    3,268
    • July 21, 2023 at 3:22 AM
    • #3

    We have no knowledge of your spindle or how it is controlled unless you provide that info.

    I would start by searching for BG Logic to see if that's turning off your output.

  • rpgemployee
    Reactions Received
    1
    Trophies
    1
    Posts
    20
    • July 21, 2023 at 3:04 PM
    • #4

    The spindle is a Colombo RC 73/22 spindle and it is controlled by a Commander SE variable speed drive that is located inside of the top cabinet of the R-j3ib controller. I'll do some poking around and see if I can find any background logic that's affecting the I/O status in the meantime. Is it possible that these outputs are interconnected with other I/O?

  • rpgemployee
    Reactions Received
    1
    Trophies
    1
    Posts
    20
    • July 21, 2023 at 5:47 PM
    • #5

    I think I've confirmed that there's no background logic going on. The teach pendant doesn't have any options for checking or setting background logic (our controller is from ~2003 or so; I've heard the older models tend to not have this option). I've also checked the $PWR-NORMAL system variable - this was uninitialized. I also checked for any interconnections between inputs and outputs - these were also all disabled and were default values. When the outputs are toggled you can see their respective LEDs light up briefly on the output module that's plugged into the IO rack but only for a split second. I think there might be a loose or broken connection between the spindle controller and the teach pendant. We're going to try to check continuity between the connections and see if that might be an issue.

  • Online
    SkyeFire
    Reactions Received
    1,052
    Trophies
    12
    Posts
    9,429
    • July 21, 2023 at 6:01 PM
    • #6
    Quote from rpgemployee

    When the outputs are toggled you can see their respective LEDs light up briefly on the output module that's plugged into the IO rack but only for a split second.

    This is important: on the robot pendant, does the Output stay on, or does it also only turn on for a split second?

    If the DO turns itself back off when you turn it on, then something in the robot is turning the DO off. The robot outputs can't be turned back off by a bad wire.

    This sounds more like a BG Logic program (how did you determine no BGL is running?), or possible a KAREL program running invisibly in the background.

    For example, I've often seen developers write background software that cyclically turn off the outputs to spindle tools whenever the robot's motors are off, or the program is not actively running. This is usually regarded as a way to avoid leaving the tool spinning against material when the robot stops moving for any reason.

    If you've just been turning on the DOs from the pendant manually so far, I suggest writing a small program that just turns on the DOs you need, and try running that program in both Teach and Auto modes. If it's a background program turning off the outputs, there should be a set of conditions that will get that background program to stop turning off the outputs.

  • rpgemployee
    Reactions Received
    1
    Trophies
    1
    Posts
    20
    • July 21, 2023 at 6:15 PM
    • #7

    The DOs in the teach pendant display do not stay on - they will also only stay ON for a split second before switching back to OFF. We have a small program that we are supposed to run before using the robot for production that warms the spindle up for ~15 minutes or so. This program turns on the needed outputs and sets the spindle speed via analog output. The outputs don't stay enabled even if they are enabled in a program like you described.

    Is there a way to more thoroughly check if we have background logic running? Our teach pendant doesn't have any options to set/enable background logic programs in either Menu -> Setup or in the Menu -> System menus. I was doing some perusing through other posts in this forum - common consensus is that a lot of the older models don't have this specific option for background logic. I think that the system variable $PWR_NORMAL can be used to do something similar to background logic but it was uninitialized when I checked it.

  • rpgemployee
    Reactions Received
    1
    Trophies
    1
    Posts
    20
    • July 21, 2023 at 8:31 PM
    • #8

    So it looks like that the spindle controller does receive output from the teach pendant. The LED for spindle forward stays lit up on the output module when the warmup program runs in Auto and the controller does register a (albeit very small) load. The controller display says that it's only outputting ~1.2% of the motor rated active current and the spindle does not move.

  • HawkME
    Reactions Received
    568
    Trophies
    11
    Posts
    3,268
    • July 21, 2023 at 9:01 PM
    • #9

    Have you checked the settings on your VFD?

  • TitusLepic
    Reactions Received
    112
    Trophies
    6
    Posts
    442
    • July 21, 2023 at 9:21 PM
    • #10
    Quote from rpgemployee

    I've also noticed that digital inputs related to the spindle, namely two that define if the spindle is clamped or if the spindle is unclamped, do not update accordingly when it clamps or unclamps.

    My guess is that this is your problem. I'm guessing (and this is just a guess) that you have a karel program running in the background that's turning off the DOs because the spindle shouldn't be running without a tool clamped.

    The clamp/unclamp sensors should be a pair of prox sensors reading the back of the drawbar. Probably under a cover. Check them and see why they aren't reading.

  • Online
    SkyeFire
    Reactions Received
    1,052
    Trophies
    12
    Posts
    9,429
    • July 21, 2023 at 10:12 PM
    • #11
    Quote from rpgemployee

    Is there a way to more thoroughly check if we have background logic running?

    I'm not sure if there's a 100% surefire way. For regular BGL, you can go to Menu>Setup>BG LOGIC. If that menu option doesn't exist, your robot may not have it.

    For background KAREL programs, the first thing I can think of is to go to Menu>System>Config, and check the entries that have Autoexec Program in them.

    I've used that in the past to have a KAREL program running in the background, loaded during boot.

    The other thing would be to make a backup of the robot, and look for any .PC files. You can't examine their program code, but hopefully someone picked names for them that suggest what they do.

    You can also do an ASCII backup, and use a search program like BareGrep to search for any occurrences of DO[1] (or whatever your outputs are). That would at least get you a list of any TP programs that are trying to control those outputs. BG Logic programs are just TP programs with some extra constraints.

  • rpgemployee
    Reactions Received
    1
    Trophies
    1
    Posts
    20
    • July 21, 2023 at 10:18 PM
    • #12
    Quote from SkyeFire

    For background KAREL programs, the first thing I can think of is to go to Menu>System>Config, and check the entries that have Autoexec Program in them.

    I've also checked these - both have no values. I think the ASCII backup is a great idea. I'll first look into whether the proximity sensors on the spindle are working properly and then figure out how to do an ASCII backup. Great advice everyone, I really appreciate the help.

  • TitusLepic
    Reactions Received
    112
    Trophies
    6
    Posts
    442
    • July 21, 2023 at 11:21 PM
    • #13

    Do you know who the original integrator for your robot was? And when you start it up, does it show that you're running routerware instead of handlingtool?

  • Skooter
    Reactions Received
    169
    Trophies
    6
    Posts
    2,026
    • July 22, 2023 at 10:05 PM
    • #14
    Quote from TitusLepic

    And when you start it up, does it show that you're running routerware instead of handlingtool?

    To answer TitusLepic, need to post the software application and version. Posting the summary.dg file from your 'All Above' backup will answer a lot questions regarding this and setup at the robot end.

    Quote from rpgemployee

    I think the ASCII backup is a great idea. I'll first look into whether the proximity sensors on the spindle are working properly and then figure out how to do an ASCII backup. Great advice everyone, I really appreciate the help.

    A quick way to get a readable info from R-J3iB programs and many variables is to Copy MD to MC. Here's how:

    Insert empty MC card

    File menu > F5 [Util] > Set Device > Select MD & press Enter

    Press Next > select Copy > F4 [Choice] with cursor at 'To Device' > select MC & press Enter

    Press DoCopy and since you started with an blank MC, answer Yes to the Overwrite question.

    This copy will take up to 10 minutes depending on how many programs - be patient.

    Once complete, I always press Next > F5 [Util] > Set Device > select MC & press Enter. Leaving device set to MD is NOT safe or good housekeeping.

    On your computer, look at the files copied and you can now read the text versions (*.LS, *.DG, *.VA). I personally use Open with and select 'Always use' WordPad.

  • TitusLepic
    Reactions Received
    112
    Trophies
    6
    Posts
    442
    • July 24, 2023 at 7:52 PM
    • #15
    Quote from Skooter

    To answer TitusLepic, need to post the software application and version. Posting the summary.dg file from your 'All Above' backup will answer a lot questions regarding this and setup at the robot end.

    If my suspicion is correct (that RPT was the integrator), summary.dg will show HandlingTool as the software application/version but they replaced the shell so the TP will show that Routerware is the software application

  • Skooter
    Reactions Received
    169
    Trophies
    6
    Posts
    2,026
    • July 24, 2023 at 8:48 PM
    • #16

    The old RPT is now Shape Process Automation. If it was made by RPT, they should still have info - they've been great in the past whenever I've needed their help.

  • rpgemployee
    Reactions Received
    1
    Trophies
    1
    Posts
    20
    • July 24, 2023 at 10:34 PM
    • #17
    Quote from Skooter

    The old RPT is now Shape Process Automation. If it was made by RPT, they should still have info - they've been great in the past whenever I've needed their help.

    They were indeed the previous integrator. I've gotten into contact with them. It's taking them some time to find everything since it was configured almost 2 decades ago but they've been super helpful.

    Quote from TitusLepic

    Do you know who the original integrator for your robot was? And when you start it up, does it show that you're running routerware instead of handlingtool?

    On the main browser window it says that we're running HandlingTool v6.3140. I'm still working on getting an ASCII backup - the machine is almost as old as I am so it's a bit of a learning curve to say the least.

  • rpgemployee
    Reactions Received
    1
    Trophies
    1
    Posts
    20
    • July 26, 2023 at 3:07 PM
    • #18

    We were able to get it to work. The issue was whoever owned the robot before swapped the spindles out and their specifications didn't match. The one installed prior had a thermistor but the current one does not. They also swapped the unclamp and clamped inputs during installation so we swapped them back in the cabinet. We ended up just pulling out and capping the wire that controls the the thermistor input to the controller and everything seemed to work correctly. Appreciate the input by everyone here!

  • rpgemployee
    Reactions Received
    1
    Trophies
    1
    Posts
    20
    • July 31, 2023 at 5:19 PM
    • #19
    Quote from Skooter

    To answer TitusLepic, need to post the software application and version. Posting the summary.dg file from your 'All Above' backup will answer a lot questions regarding this and setup at the robot end.

    A quick way to get a readable info from R-J3iB programs and many variables is to Copy MD to MC. Here's how:

    Insert empty MC card

    File menu > F5 [Util] > Set Device > Select MD & press Enter

    Press Next > select Copy > F4 [Choice] with cursor at 'To Device' > select MC & press Enter

    Press DoCopy and since you started with an blank MC, answer Yes to the Overwrite question.

    This copy will take up to 10 minutes depending on how many programs - be patient.

    Once complete, I always press Next > F5 [Util] > Set Device > select MC & press Enter. Leaving device set to MD is NOT safe or good housekeeping.

    On your computer, look at the files copied and you can now read the text versions (*.LS, *.DG, *.VA). I personally use Open with and select 'Always use' WordPad.

    Display More

    I know that this was resolved but I am trying to get a backup of the controller and we're running into issues. We are using PCMCIA -> SDHC. I created a 64mb FAT-16 partition on the SD card but the card cannot formatted by the controller. When I try to copy from MD->MC as per your instructions the card cannot be detected despite the alert bar saying that a card is detected. Should we just switch to PCMCIA->CF instead?

  • Skooter
    Reactions Received
    169
    Trophies
    6
    Posts
    2,026
    • August 1, 2023 at 1:04 AM
    • #20

    This is picture from eBay of what you need. The CF card can be 64MB up to 512MB - buy at least 2 CF cards. There are plenty of options on eBay & Amazon.

    SANDISK 512MB Compact Flash +ATA PC card PCMCIA Adapter JANOME Machine - Picture 1 of 2

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Users Viewing This Thread

  • 4 Guests
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download