The Merovingian (Customer) asked a question.

Can two separate subroutines use the same bit address?

I am creating a logic file using CLICK Programming Software Version 2.60 for use with a C0-01DD1-D with two C0-08ND3 input modules and two C0-08TD1 output modules. My problem is "warning C1001". I currently have two subroutines that manipulate the same bit address. I want the first subroutine to run, manipulate bit 1 and then return to the main program. I then want the second subroutine to run, manipulate bit 1 and then return to the main program. It seems the syntax clashes when attempting this. What I am doing wrong?


  • ADC_PLC_ENG (AutomationDirect)

    In this case the last subroutine to be executed would always control "bit 1". To do what you are wanting to do use different internal bits in the subroutine (bit 1 and bit 2 for instance) and then have those two bits control the main bit (bit 3 for instance) in the main logic after both subroutines have been executed.

  • Tinker (Customer)

    Note that it is a "warning" not an "error"

    While there is a risk of unexpected results doing that, it is allowed. If have reason you want to do it that way you can, you just need to be careful. But generally it probably would be best to avoid it. Note that you can have multiple SET and RST without warnings so that might be an option

  • The Merovingian (Customer)

    Thank you all! I created a file that utilizes multiple internal bits to manipulate the main bits I need to turn on.

  • MikeMc1 (Customer)

    The warning is normal when you have two points controlling the same output. The only way on the click you can do this is with set/reset output instructions. As they said the last command executed gets the prize.