Send current counts (cnts) fanuc line tracking to PLC

  • Hello everyone


    How to send data current count (cnts) from line tracking fanuc to PLC?

    I want to know data current counts (cnts) and actual speed conveyor from encoder to integrate to the aother conveyor.

  • Hello there.
    first Question, what is the protocol connection between your robot and the PLC?
    if you are using CC-link, you can transfer the Line tracking count to the Register at first then your PLC can read the Register. or you can use the Modbus TCP and using LAN Cable ethernet to connect between your PLC to your robot, the basic thinking is same, your PLC will read the robot register.


    then you can make a program to store the encoder count to the register
    or you can make background logic using Variable

  • Hi Diey


    Yes, I use CC-link. How to store the encoder count to register ?


    thanks.

  • Hi!

    for the simple program, you can use RUN Command in the INST function, this function will let you run 2 programs at the same time (multi-tasking function). But, your RUN program must consist of zero movements, only logic.


    1. Make a program, and put "*" in all your group mask
    2. Make a logic like this


    - LBL [1]

    - LINECOUNT [1] R[1] ==>> this instruction will lead you to store the count of the encoder to the Register number 1

    - IF DI [1] = ON JMP LBL [999]

    - JMP LBL [1]

    - LBL[999]


    3. go to your main program and input RUN command then calling your program with above logic


    it will give you an actual encoder counting to your Register number one.


    please try.

  • Okey. I will try it in my workshop.


    Thank you master :smiling_face:

Advertising from our partners