March 25, 2019, 02:19:01 PM
Robotforum | Industrial Robots Community

 Help programming IF statement

Author Topic:  Help programming IF statement  (Read 211 times)

0 Members and 1 Guest are viewing this topic.

March 06, 2019, 06:58:25 PM
Read 211 times
Offline

devilstang


I have an OTC/Daihen welding package with an AX-21 controller. I have it setup on a rotary table with a side A and Side B. I want to have different programs on each side. I was trying to use an IF statement depending on which side the robot was on, it would call the appropriate program. I don't understand the variable part of it. I have input going to the robot so that it knows which side it is on.

Today at 02:19:01 PM
Reply #1

Advertisement

Guest

March 07, 2019, 02:00:55 AM
Reply #1
Offline

bsrr


See below example with IF statement for Input 1
IF I1=1 THEN 2 ELSE 3   'Input 1 is high Prog 2 else Prog 3
CALLP 2
CALLP 3
END

March 12, 2019, 10:20:50 AM
Reply #2
Offline

knnklnc


You can make that with a few way.
One of them is, using variable for program selection.
If it's little bit complicate for you, you can use station function.

You need only 2 digital inputs for this operation.
Firstly you should select number of station.

Constant Setting > Operation Constant > Number of Station > 10 > Complete

Then, you should select condition of starter.

Constant Setting > Operation Constant > Condition of Multi Station Starter



Share via facebook Share via linkedin Share via pinterest Share via reddit Share via twitter

xx
XRC IF Statement Insertion when programming

Started by Mustangdan on Yaskawa Motoman Robot Forum

6 Replies
3975 Views
Last post January 18, 2013, 10:08:03 AM
by potis
xx
Declare global variable + online programming FOR statement

Started by iDio on KUKA Robot Forum

5 Replies
1895 Views
Last post April 09, 2016, 05:23:28 PM
by RS
xx
Restarting a run statement

Started by DanN on Fanuc Robot Forum

8 Replies
1318 Views
Last post February 14, 2018, 04:19:19 PM
by moln4r
xx
Creating an IF statement using DO

Started by BwillieS on ABB Robot Forum

4 Replies
3303 Views
Last post August 08, 2014, 11:49:47 AM
by fulvioromano