Interrupt if TWO DO's are high
SteveMob
✭
Hello,
I have a interrupt that is activated based on a Digital Output being set to high:
ISignalDO do1, 1, sig1int;
My question is, can I have this interrupt occur if TWO digital outputs are high? For example can I do something along the lines of this:
ISignalDO do1, 1, AND do2, 1, sig1int;
Would doing a group of signals be the way to go? If that's the case, can someone show me how to do it that way?
Thanks for any help!
SM
I have a interrupt that is activated based on a Digital Output being set to high:
ISignalDO do1, 1, sig1int;
My question is, can I have this interrupt occur if TWO digital outputs are high? For example can I do something along the lines of this:
ISignalDO do1, 1, AND do2, 1, sig1int;
Would doing a group of signals be the way to go? If that's the case, can someone show me how to do it that way?
Thanks for any help!
SM
Post edited by SteveMob on
Tagged:
0
Comments
-
Hello,
the way to go is to use cross connection, you define a virtual signal (like normal IO but not assign a device) and make a cross connection for this virtual signal to your 2 real signals.
then you use this virtual signal in your interrupt.0 -
But I need to trigger the interrupt if 1 of the 2 real signals are high, so how would the virtual signal help me for the real controller? Or is it used as more of like a temporary signal type thing?
Thanks,
SM
0 -
So, what you want is to trigger the same TRAP procedure from two different signals.
You can do it connecting your intnum var to the same trap.
the TRAP will be triggered when any condition will meet.
best regards,
Daniel M.0 -
@SteveMob -- the virtual signal is setup in the real controller -- just like any other signal just instead of being tied to a physical bus like DeviceNet, it is connected to a virtual bus -- so as @Peter1 says and cross connect the two real signals to a virtual signal and look for that virtual signal in your RAPID.
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings