IF function with signalDI
Options
![iuliaam](https://secure.gravatar.com/avatar/f2598972be32ca59ddff073104f70eea/?default=https%3A%2F%2Fus.v-cdn.net%2F5020483%2Fuploads%2Fdefaultavatar%2FK2266OAKOLNC.jpg&rating=g&size=200)
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
Categories
- All Categories
- 5.4K RobotStudio
- 388 UpFeed
- 16 Tutorials
- 12 RobotApps
- 294 PowerPacs
- 404 RobotStudio S4
- 1.8K Developer Tools
- 248 ScreenMaker
- 2.7K Robot Controller
- 293 IRC5
- 52 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 752 RAPID Programming
- 16 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings