April 24, 2019, 10:11:02 PM
Robotforum | Industrial Robots Community

 Object Oriented RAPID

Author Topic:  Object Oriented RAPID  (Read 229 times)

0 Members and 1 Guest are viewing this topic.

February 11, 2019, 05:49:48 AM
Read 229 times
Offline

dangalg


Hey, I am trying to figure out if RAPID is object oriented.
I cannot figure out how to create something like a class and have instances of it.
Any help will be appreciated. Thanks!
 :yesyesyes:

Today at 10:11:02 PM
Reply #1

Advertisement

Guest

February 11, 2019, 06:31:19 AM
Reply #1
Offline

yolo

Moderator
Check out "RECORD" for your data.

Sent from my S41 using Tapatalk


February 11, 2019, 07:51:56 AM
Reply #2
Offline

dangalg



I cannot find anything about RECORD.
can you give an example?

February 11, 2019, 12:47:26 PM
Reply #3
Offline

Lemster68


This comes from dispenseware:

! Definition of open datatypes for RobotWare Dispense
!     
  RECORD beaddata
    string info;
    num flow1;
    num flow2;
    num flow1_type;
    num flow2_type;
    num equip_no;
    num gun_no;
  ENDRECORD     

  RECORD equipdata
    string info;
    num on_time;
    num off_time;
    num ref_speed;
    num acc_max;
    num decel_max;
    num fl1_on_time;
    num fl1_off_time;
    num fl1_inc_time;
    num fl1_dec_time;
    num fl1_delay;
    num fl1_corr;
    num fl2_on_time;
    num fl2_off_time;
    num fl2_inc_time;
    num fl2_dec_time;
    num fl2_delay;
    num fl2_corr;
  ENDRECORD

Make sure that it is declared at the very top of the module, rapid will give a lot of errors if you don't declare it first.


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

xx
RSI object ST_MOVESENS

Started by jane3von on KUKA Robot Forum

7 Replies
4125 Views
Last post February 12, 2014, 04:29:24 PM
by SkyeFire
xx
picking object

Started by jjf on KUKA Robot Forum

2 Replies
376 Views
Last post October 08, 2018, 05:04:09 PM
by panic mode
xx
RSI object ST_Ethernet

Started by jane3von on KUKA Robot Forum

3 Replies
1821 Views
Last post January 15, 2014, 07:09:34 AM
by jane3von
xx
Work Object

Started by angorgus on ABB Robot Forum

42 Replies
10426 Views
Last post February 28, 2017, 09:58:28 PM
by jarm