Professional Documents
Culture Documents
ADVANCED FUNCTIONS
PROG TEST1
1: ! Send Event 42
2: ! The PC knows which menu we want
3: ! Automatically wait for PC
4: Request Menu(42,0)
PROG TEST2
1: ! Send Event 42
2: ! The PC knows which menu we want
3: ! Wait for the operator to select
4: ! something on the menu. The Pc
5: ! reports what was selected in R[6]
6: Request Menu(43,6)
7: IF R[6]<9999,JMP LBL[10]
8: ! Error in macro
9: !
10: LBL[10]
Sending time is better with this function if one of the following Main boards, with a fast
communication processor (COMM CPU), is ordered.
14–493
14. ADVANCED FUNCTIONS MAROUHT9307191E REV B
• Main board F (Force sensor I/F, fast communication processor, I/O Link i slave compliant)
A05B-2600-H006
Data is sent by the robot controller through the Ethernet port UDP communication to the external
device every communication interval of this function regardless of the selected COMM CPU. The
current communication interval is set by means of the system variable $RSI.$INTERVAL.
There are 2 types of Cartesian positional data that this option sends: Measured and Forward. Both
are represented in XYZWPR format.
The Measured Position is the actual position to which the robot moved. The Measured Position is
abbreviated as M_*, where * are each of the XYZWPR positional elements.
The Forward Position is the robot pre-planned position; by default, three interpolation times ahead
of the actual (or Measured) position. Forward Position is abbreviated as F_*, where * are each of
the XYZWPR positional elements.
Figure 14–194 depicts the relationship between the Forward Position and the Measured Position
When the target position is planned in the robot controller, the target position data is immediately
sent to the external device via RSI, but the actual move is delayed by the delay time contained in a
variable ($AVC_GRP[1].$AVC_MODE[2]). Therefore, there may be a delay when this function is
enabled and the delay time is set. The cycle time may become slightly longer; the communication
interval time is set in $RSI.$INTERVAL (units in milliseconds).
Time Before and Distance Before functions would consequently shift by the same amount.
When this option is not ordered, the robot will move just after the target position is internally
planned by the robot controller.
The robot sends XML data that looks like the following:
14–494
MAROUHT9307191E REV B 14. ADVANCED FUNCTIONS
<Rob Type=”FANUC”>
<M_X>-2851.123</M_X>
<M_Y>1931.863</M_Y>
<M_Z>1295.158</M_Z>
<M_W>-91.728728</M_W>
<M_P>17.543543</M_P>
<M_R>177.519519</M_R>
<F_X>2856.183</F_X>
<F_Y>1931.863</F_Y>
<F_Z>1295.158</F_Z>
<F_W>-91.728728</F_W>
<F_P>17.543543/F_P>
<F_R>177.519519</F_R>
<IPOStat>0</IPOStat>
<BMode>3</BMode>
<TRG>0</TRG>
<myRob>0</myRob>
<IPOC>27189883</IPOC>
</Rob>
14–495
14. ADVANCED FUNCTIONS MAROUHT9307191E REV B
W,P,R: degree
F_* Forward position -
X,Y,Z: mm
W,P,R: degree
IPOStat Status of the path 0
interpolator. Currently
always 0.
BMode Describes the status of 3 -
mode switch of the robot. 1: T1
2: T2
3: AUTO
TRG Signal "TRIGGER" for - 0/1
device. Static and as a
pulse.
myRob Describes what the robot is -
handling. 0: Workpiece
1: RSI device
IPOC This is incremented at every ms
frame by communication e.g. 16
interval time. possibility to
detect any missing frames. (3rd frames, when
communication interval
is 8ms. This value is 0 when
1st frame.)
14.48.2 Setting
Set the robot controller IP address and subnet mask etc. in the screen displayed by pressing the
following key sequence; MENU -> 6 SETUP -> Host Comm. -> TCP/IP.
Set the following system variables. To enable the change in settings, perform a COLD START
or HOT START.
$AVC_GRP[1].$AVC_MODE[1] Default : 1
14–496
MAROUHT9307191E REV B 14. ADVANCED FUNCTIONS
Delay time
F_* is 3 communication interval faster than M_* when this variable is set to 0.
When you set n to this variable, F_* becomes (n+3) communication interval faster than M_*.
$RSI.$INT_PORT Default:2
$RSI.$INTERVAL
Communication interval is showed to this variable with ms unit. Value is set at power-on time.
$RSI.$PRIORITY Default:16
If jitter performance is not enough, change this system variable to lower value.
1 is highest priority.
$RSI.$PORT_NUM Default:31439
On a PC, using any text editor, create the following configuration XML file and copy it manually
to the controller at the main root of FR:
Its file name can be selected by using RSI_CREATE, which is a KAREL program used to set
the communication setting (Section 14.48.3 ).
e.g. abc.xml
14–497
14. ADVANCED FUNCTIONS MAROUHT9307191E REV B
<CONFIG>
<IP_NUMBER>136.230.168.112</IP_NUMBER>
<PORT>6008</PORT>
<SENTYPE>IPFO</SENTYPE>
<ONLYSEND>TRUE</ONLYSEND>
</CONFIG>
Remarks:
Start tag and end tag should be exactly same case sensitive.
If you ordered “RSI Interface” (J802), KAREL programs, the following builtins are loaded on the
controller. The name of the KAREL programs do not contain the “_I” from the builtin name (e.g.
RSI_CREATE_I -> RSI_CREATE) because it is not acceptable to name the KAREL program and
the builtin the same thing. The arguments of KAREL programs are same as with builtins. There
is no value returned from KAREL programs. If you want to use the following builtins, please
include rsi.ev (environment file) by writing “%ENVIRONMENT RSI” in your KAREL program.
14.48.3.1 RSI_CREATE_I ()
14–498
MAROUHT9307191E REV B 14. ADVANCED FUNCTIONS
Element Description
RET
Type: INTETGER
Return values:
14.48.3.2 RSI_DELETE_I ()
Element Description
RET
Type: INTEGER
Return values:
14.48.3.3 RSI_RESET_I ()
14–499
14. ADVANCED FUNCTIONS MAROUHT9307191E REV B
Element Description
RET
Type: INTEGER
Return values:
14.48.3.4 RSI_ON_I ()
Element Description
RET
Type: INTEGER
Return values:
Correction mode:
14–500
MAROUHT9307191E REV B 14. ADVANCED FUNCTIONS
14.48.3.5 RSI_OFF_I ()
Element Description
RET
Type: INTEGER
Return values:
14.48.3.6 RSI_WRXML_I ()
14–501
14. ADVANCED FUNCTIONS MAROUHT9307191E REV B
Element Description
RET
Type: INTEGER
Return values:
This supports only “myRob ” and “TRG” for XML attribute and the value should be 1 character
at present.
The tag to change (write) is specified by argument 1. to changing multiple tags, this program
should be called n times with a different 1st argument, which means XML attribute.
If a non support tag is set to the XML attribute (1st argument), the STOP global alarm “HOST-391
RSI: 1st argument in RSI_WRXML_I is not supported” will occur.
If the value of the 2nd argument is larger than 1 character, the STOP global alarm “HOST-392
RSI: 2nd argument in RSI_WRXML_I should be 1 character” will occur.
14.48.4 Details
14–502