Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

ABB IRC5 - Problem with I/O

#8
Hi Nox,

I took a look at the situation and I think I found the way to activate your digital output.

The code should look a bit like this for the SetDo.
Code:
Var dionum DIO_Value;


num1 := COM_ReadNum();
num2 := COM_ReadNum();


IF num2 = 0 OR num2 = 1 THEN
DIO_Value := num2;
ENDIF

%"SetDO DO_Signal_" + NumToStr(num1) + ", DIO_Value;"%

And for the WaitDI.
Code:
%"WaitDI DI_Signal_" + NumToStr(num1) + ", DIO_Value;"%

There is still some integration to be done.
Inside your controller parameters, you need to correctly map your I/Os.
You also need to give names to your I/O that match the "DO_Signal_X" and "DI_Signal_X" found in the code.
(See data type "signalxx" from the RAPID manual :https://library.e.abb.com/public/688894b...evJ_en.pdf)

请注意,我idn't test that code, some modification may be needed.

Have a good day.
Jeremy


Messages In This Thread
ABB IRC5 - Problem with I/O - byNox- 06-30-2019, 10:15 AM
RE: ABB IRC5 - Problem with I/O - byAlbert- 07-01-2019, 09:36 PM
RE: ABB IRC5 - Problem with I/O - byNox- 07-02-2019, 06:35 AM
RE: ABB IRC5 - Problem with I/O - byJeremy- 07-02-2019, 02:00 PM
RE: ABB IRC5 - Problem with I/O - byNox- 07-03-2019, 02:42 AM
RE: ABB IRC5 - Problem with I/O - byJeremy- 07-03-2019, 03:16 AM
RE: ABB IRC5 - Problem with I/O - byNox- 07-03-2019, 07:02 AM
RE: ABB IRC5 - Problem with I/O - byJeremy- 07-03-2019, 03:21 PM
RE: ABB IRC5 - Problem with I/O - byNox- 07-03-2019, 11:57 PM
RE: ABB IRC5 - Problem with I/O - byNox- 07-04-2019, 03:14 AM
RE: ABB IRC5 - Problem with I/O - byAlbert- 07-04-2019,上午10:10
RE: ABB IRC5 - Problem with I/O - byNox- 07-05-2019, 08:35 AM
RE: ABB IRC5 - Problem with I/O - bygrunftz- 05-26-2022, 12:04 PM



Users browsing this thread:
1 Guest(s)