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

AAD04A analog input card - negative voltage?

  • cja7928
  • March 24, 2014 at 4:36 PM
  • Thread is Resolved
  • cja7928
    Trophies
    3
    Posts
    13
    • March 24, 2014 at 4:36 PM
    • #1

    I have an R2000 210 with R30ia controller. Im using an AAD04A analog input card with a laser sensor with output range of -10vdc to +10vdc. according to the fanuc manual the analog input card should accept -10vdc to +10vdc and return a digital output range of -2000 to +2000. So given what the manual shows I would expect to get -2000 counts at -10vdc and +2000 counts at +10vdc but what I am seeing is at -10vdc im getting 2098 counts and as i move the object in closer the the laser and the voltage climes from -10 to zero the digital value climbs to 4098 counts just before zero volts then at zero the digital outputs drops to 0 and them climbs to +2000 as I would expect as I move the object closer to the laser so basically the laser starts at 2098 climbs to 4098 drops to zero then climbs to 2000. has anyone had experience with this? I would like to get the linear values of -2000 to +2000 the manual says I should. I called fanuc and all they could tell me is that it should work as the manual says.

    Images

    • analoginput.jpg
      • 250.36 kB
      • 528 × 633
      • 74

    Files

    analoginput.jpg_thumb 23.78 kB – 123 Downloads
  • Racermike123
    Reactions Received
    13
    Trophies
    4
    Posts
    901
    • March 24, 2014 at 6:54 PM
    • #2

    How do you have the Input card wired and how are reading the voltage and analog signal?

  • leopard
    Reactions Received
    4
    Trophies
    3
    Posts
    73
    • March 24, 2014 at 7:24 PM
    • #3

    cja,
    That board is 12bit ADC. The MSB (D11) is the sign bit. (check the next page in your manual).
    This is what I found by testing:
    V=0v, AI=0.
    V=10.24V, AI=2047.
    V=-0.01V, AI=4095.
    V=-10.24, AI=2048.
    Linear in between.
    So the actual input can be -10.24v to 10.24v.
    You need to write something like background program to convert the input reading 0, 4095 to -2048, +2048 in a register for an example.
    When AI<=2047, R=AI
    When AI>2047, R=AI-4096
    I did not try the program though.
    I only read positive voltage, so this was not problem for me.

  • cja7928
    Trophies
    3
    Posts
    13
    • March 24, 2014 at 7:41 PM
    • #4
    Quote from leopard


    cja,
    That board is 12bit ADC. The MSB (D11) is the sign bit. (check the next page in your manual).
    This is what I found by testing:
    V=0v, AI=0.
    V=10.24V, AI=2047.
    V=-0.01V, AI=4095.
    V=-10.24, AI=2048.
    Linear in between.
    So the actual input can be -10.24v to 10.24v.
    You need to write something like background program to convert the input reading 0, 4095 to -2048, +2048 in a register for an example.
    When AI<=2047, R=AI
    When AI>2047, R=AI-4096
    I did not try the program though.
    I only read positive voltage, so this was not problem for me.

    Display More

    thank you very much. I appreciate you taking the time to verify. I was under the impression it might be possible to get a continuous return from -2000 to +2000. your reply answers my question.

  • leopard
    Reactions Received
    4
    Trophies
    3
    Posts
    73
    • March 24, 2014 at 8:20 PM
    • #5

    You are welcome.
    Actually, those testing numbers were in my notebook taken years ago when I was curious how the voltage was read. You can find the related article in wikipedia. Look for "Signed number representations" and this ADC board use "Two's complement". Because in the board manual, it is said: "D11-n corresponds to the sign bit in the complementary representation 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
  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