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. Yaskawa Motoman 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

I'm trying to send an integer to a PLC as an output that can then be displayed on HMI

  • Maxx Dull
  • October 4, 2021 at 9:59 PM
  • Thread is Unresolved
  • Maxx Dull
    Trophies
    2
    Posts
    5
    • October 4, 2021 at 9:59 PM
    • #1

    I have an integer counting how many times I do something (Usually 50 or 100). I have the Integers as I001 and I002.

    I want to send that integer to a PLC so that it can be displayed on an HMI, but am having the darndest time.

    Anyone have some ideas?

  • swilliams13
    Reactions Received
    4
    Trophies
    3
    Posts
    39
    • October 4, 2021 at 10:50 PM
    • #2

    I'm not familiar with Yaskawa(although I just bought a new one, so i will be soon), and i'm not sure if this is the easiest way, but you should just be able to wire an output to the PLC and trigger the output in your program every time said thing happens. if you are just counting by 1, pulse the output and have the PLC do all the math. This is how i would do it, not sure if that is the best way or not.

  • 95devils
    Reactions Received
    229
    Trophies
    8
    Posts
    1,928
    • October 5, 2021 at 12:20 AM
    • #3

    I have all kinds of ideas. What generation of controller? Some are easier than others. What is the maximum value your counter can be?

    I know a thing or two, because I’ve seen a thing or two. Don't even ask about a third thing. I won't know it.

  • robotics.cx
    Trophies
    2
    Posts
    5
    • October 5, 2021 at 11:50 AM
    • #4

    1,你可以通过梯形图功能,将变量的值通过组信号的方式发给PLC。

    2,你可以使用以太网通讯tcp协议的socket将数据发送给PLC。

    学海无涯,回头是岸!:winking_face:

  • Maxx Dull
    Trophies
    2
    Posts
    5
    • October 5, 2021 at 1:19 PM
    • #5

    Controller is YRC 1000. The current max value I want the counter to be is 100

  • 95devils
    Reactions Received
    229
    Trophies
    8
    Posts
    1,928
    • October 5, 2021 at 1:49 PM
    • #6

    Since your maximum value is well within the range of a Byte variable I'd use it. It makes your life very easy. You could use the INC (increment instruction) B-whatever address. To send it to the plc you could use the DOUT or the PULSE instruction.

    Example:

    INC B000

    DOUT OG#( x ) B000

    or

    INC B000

    PULSE OG#( x ) B000 T=1.00

    The x in the OG#( ) is whatever group you want to use that is on your network between the robot controller and plc.

    I know a thing or two, because I’ve seen a thing or two. Don't even ask about a third thing. I won't know it.

  • TSGIR
    Reactions Received
    81
    Trophies
    6
    Posts
    713
    • October 5, 2021 at 6:43 PM
    • #7
    Quote from robotics.cx

    1,你可以通过梯形图功能,将变量的值通过组信号的方式发给PLC。

    2,你可以使用以太网通讯tcp协议的socket将数据发送给PLC。

    Do you have sample for socket?

    You said the data can send from robot controller to PLC via socket, please explain more and send sample. I like to test it.

  • robotics.cx
    Trophies
    2
    Posts
    5
    • October 6, 2021 at 12:25 PM
    • #8
    Quote from TSGIR

    你有插座的样品吗?

    你说数据可以通过socket从机器人控制器发送到PLC,请解释更多并发送样本。我喜欢测试它。

    1,你需要根据对应型号的控制柜加载motoplus开发的相关通讯的.out文件。

    2,机器人需要开启motoplus功能,开启功能。

    3、相关文件可以联系安川厂家让他们提供给你。

    学海无涯,回头是岸!:winking_face:

  • TSGIR
    Reactions Received
    81
    Trophies
    6
    Posts
    713
    • October 6, 2021 at 1:45 PM
    • #9
    Quote from robotics.cx

    1,你需要根据对应型号的控制柜加载motoplus开发的相关通讯的.out文件。

    2,机器人需要开启motoplus功能,开启功能。

    3、相关文件可以联系安川厂家让他们提供给你。

    I think you don't understand my problem yet.

    the problem is not load out file or active motoplus.

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

Tags

  • output
  • hmi
  • input
  • integer

Users Viewing This Thread

  • 1 Guest
  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