May 26, 2019, 09:19:18 AM
Robotforum | Industrial Robots Community

 Help programming IF statement

normal_post Author Topic:  Help programming IF statement  (Read 586 times)

0 Members and 1 Guest are viewing this topic.

March 06, 2019, 06:58:25 PM
Read 586 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 09:19:18 AM
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


April 09, 2019, 02:31:03 PM
Reply #3
Offline

BillPbody


I too need help with the IF statements but within a program that jumps steps if an input/inputs are true. Just need examples to refresh my memory lol

April 19, 2019, 06:05:14 AM
Reply #4
Offline

Stephannie Baker


Try using multiple If's statements for various problems.
Let's Have some fun


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
4113 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
1947 Views
Last post April 09, 2016, 05:23:28 PM
by RS
xx
BG Logic - if statement

Started by WojciechL on Fanuc Robot Forum

3 Replies
3798 Views
Last post May 04, 2016, 10:40:36 PM
by DonkeyKong
xx
IFAND Statement?

Started by fazza85 on KUKA Robot Forum

3 Replies
2002 Views
Last post June 20, 2014, 02:43:30 PM
by fazza85