Modifying the Value of Robot R Register by PLC

Forum Forums Visual Components 4.1 General Product Questions Modifying the Value of Robot R Register by PLC

Tagged: 

This topic contains 5 replies, has 3 voices, and was last updated by Avatar jouha 2 months, 2 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #16402
    Avatar
    dada123
    Participant

    Hello!
    My PLC has communicated with VC. I want to use PLC to modify the value of robot R register in simulation. Robot performs corresponding tasks according to the corresponding value of R register, but I did not find the robot R register when matching variables.

    Attachments:
    You must be logged in to view attached files.
    #16443
    Keke
    Keke
    Moderator

    Hi,

    Connectivity doesn’t recognize routine variables. But you can create a component property which will work with connectivity and you can also use it as a global variable in program expressions like in IF statement.

    -k

    Attachments:
    You must be logged in to view attached files.
    #16450
    Avatar
    dada123
    Participant

    I am successful, thank you very much!

    #16555
    Avatar
    dada123
    Participant

    Hello, I use your way to achieve the value of the plc modify register. Normally, after the plc modifies the value of the register, the robot will reset the value of the register to zero after executing the corresponding subroutine, but modify the register in this program. The value is not working. Can you help me solve this problem?

    Attachments:
    You must be logged in to view attached files.
    #16563
    Keke
    Keke
    Moderator

    It sounds like you have problem in that R1 is getting assignments from both the robot and PLC. So it’s both input and output. I would consider using separate variables for inputs and outputs. So something like in the attachment picture where R1 is only an input for the robot and R_ACK is used to output the PLC that task was received. PLC logic is not shown here but hopefully you understand the idea.

    -k

     

    Attachments:
    You must be logged in to view attached files.
    #16636
    Avatar
    jouha
    Moderator

    Hi,

    One alternative might be worth trying. That is to use the “Int-Bool-Int Signal Mapper” under “Misc” in eCatalog that converts integer input signals (R1…n) to boolean output signal to the corresponding output port.

    So just connect signals of the mapper outputs to the robot inputs and inputs of the mapper to the PLC and poll the signals in the robot’s main routine as shown in the image:

     

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.