Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
IF function with signalDI
iuliaam
✭
Hi,
I am currently working on the communication between an Allen-Bradley PLC and an ABB teach pendant. I am activating the digital input (Ri_09) of the abb from the plc using device net communication. The Ri_09 becomes 1 in ABB so all good. But then I am try ing to say : if Ri_09 equals 1 then call that routine. My problem is that the IF function doesn't let me put the ''=1'' after ''Ri_09'' and it says that the data type should be a bool ... From there, I am lost and I need help to find a way so that the Digital inputs work with the IF functions.
Thank you !
0
Comments
-
Not sure why you need to post this again as @lemster68 already provided the solution to your problem on robot-forum.
"TestDI(RI_09) will return TRUE if the DI is on.IF TestDI(RI_09) THEN
ENDIF"
https://www.robot-forum.com/robotforum/thread/38419-if-function-in-abb-teach-pendant/
0 -
Probably their post was delayed for approval.Lee Justice0
-
I have the same problem. The query manual has been resolved.You can refer to the manual numbered "3HAC050917-001".This can be achieced using the "DIntput".
IF DInput(RI_09) = 1THEN
<SMT>
ENDIF0
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings
