ABB IRC5 Applications Manual page 30

Hide thumbs Also See for IRC5:
Table of Contents

Advertisement

4 Configuration examples
4.2 Example configuration
Continued
RAPID configuration
This is an example for an RRI implementation. The out data uses an array of 18
num (robdata). The in data receives a string and an array of 18 num (sensdata).
This needs to defined according the file configuration.xml.
Continues on next page
30
RECORD applicationdata
num Item1;
num Item2;
num Item3;
num Item4;
num Item5;
num Item6;
num Item7;
num Item8;
num Item9;
num Item10;
num Item11;
num Item12;
num Item13;
num Item14;
num Item15;
num Item16;
num Item17;
num Item18;
ENDRECORD
RECORD robdata
applicationdata AppData;
ENDRECORD
RECORD sensdata
string ErrString;applicationdata AppData;
ENDRECORD
! Sensor Declarations
PERS sensor AnyDevice := [1,4,0];
PERS robdata DataOut := [[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]];
PERS sensdata DataIn :=
["No",[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]];
! Setup Interface Procedure
PROC RRI_Open()
SiConnect AnyDevice;
! Send and receive data cyclic with 64 ms rate
SiGetCyclic AnyDevice, DataIn, 64;
SiSetCyclic AnyDevice, DataOut, 64;
ENDPROC
! Close Interface Procedure
PROC RRI_Close()
! Close the connection
SiClose RsMaster;
ENDPROC
ENDMODULE
© Copyright 2008-2009,2013 ABB. All rights reserved.
3HAC031973-001 Revision: F

Advertisement

Table of Contents
loading

Table of Contents