RSI Manual
RSI Manual
FANUC Robot series R-30iB/ R-30iB Mate CONTROLLER Optional Function OPERATOR’S MANUAL
Spec.No./Ed. B-83284EN-2/05
2.Summary of Change
New, Add,
Applicable
Group Name/Outline Correct,
Date
Delete
Basic
Optional
About RSI interface function Add Immediately
Function
Unit
Maintenance
Parts
Notice
Correction
Another
Title
About RSI interface function
Sheet 1/8
Edit Date Design Description FANUC CORPORATION
Followings are added as chapter 58.
58 RSI INTERFACE
“RSI“ is abbreviated from ”Remote Sensor Interface”. This is a function to communicate with RSI
device. This function sends position data etc. to device, which supports RSI, in real time.
The order of this function is “RSI Interface” (J802).
Jitter of sending time becomes better by ordering following Main board, which has fast COMM CPU
(communication processor).
- Main board C (Force sensor I/F, fast communication processor) A05B-2600-H003
- Main board F (Force sensor I/F, fast communication processor, I/O Link i slave compliant)
A05B-2600-H006
Data are sent by the robot controller through Ethernet port UDP communication to the external device
every communication interval of this function regardless the selected COMM CPU. Current
communication interval is set to system variable $RSI.$INTERVAL.
There are 2 types of Cartesian positional data this option send to: Measured and Forward. Both are
represented in XYZWPR format.
Forward Position is the robot pre-planned position by default 3 interpolation times ahead of actual (or
Measured) position.
Forward Position is abbreviated as F_* where * are each of the XYZWPR positional elements
Scheme below depicts relationship between Forward Position and Measured Position.
Forward
Ft0+2 will be reached at t0+2
Ft0 will be reached at t0
M_*
Mt0-3 Mt0-2 Mt0-1 Mt0 Mt0+1 Mt0+2
Measured
When the target position is planned in the robot controller, the target position data is immediately sent to
external device via RSI but actual moving is waited for delay time ($AVC_GRP[1].$AVC_MODE[2]).
Therefore there may be a delay when this function is enabled and delay time is set, hence cycle time
becomes slightly longer, whose unit is communication interval, and the communication interval time is
set to $RSI.$INTERVAL with millisecond unit.
Time Before and Distance Before functions would consequently shift by same amount too.
Title
About RSI interface function
Sheet 2/8
Edit Date Design Description FANUC CORPORATION
When this option is not ordered, the robot will move just after target position is internally planned by the
robot controller.
Title
About RSI interface function
Sheet 3/8
Edit Date Design Description FANUC CORPORATION
Description of each tag
XML Tag Description unit Value
Rob Type Identifier of the robot manufacturer - FANUC
58.2 SETTING
Set the robot controller IP address and subnet mask etc. in the screen displayed by MENU key -> 6
SETUP -> Host Comm. -> TCP/IP.
$AVC_GRP[1].$AVC_MODE[1] Default : 1
0: Disable this function (no robot data will be streamed to device)
1: Enable this function
$RSI.$INT_PORT Default:2
1: Using Main board Ethernet port 1 (CD38A)
2: Using Main board Ethernet port 2 (CD38B)
$RSI.$INTERVAL
Communication interval is showed to this variable with ms unit. Value is set at power-on time.
This system variable can’t be changed.
$RSI.$PRIORITY Default:16
Priority of communication task in COMM CPU.
If jitter performance is not enough, change this system variable to lower value.
Title
About RSI interface function
Sheet 4/8
Edit Date Design Description FANUC CORPORATION
1 is highest priority.
255 is lowest priority. (Not running.)
$RSI.$PORT_NUM Default:31439
Source port number of the robot in UDP communication.
e.g. abc.xml
<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.
IP_NUMBER = IP address of the RSI device
PORT = Port number of the RSI device.
SENTYPE = Any name describing external device.
ONLYSEND = Unidirectional (TRUE) or bidirectional (FALSE) data connection. Unidirectional
(TRUE) is only supported. If ONLYSEND is set to other than TRUE, STOP global
alarm “HOST-390 RSI: ONLYSEND in RSI configuration XML should be TRUE” will
happen.
58.3.1 RSI_CREATE_I( )
This function sets communication setting.
Element Description
RET Type: INTEGER
Return values:
Title
About RSI interface function
Sheet 5/8
Edit Date Design Description FANUC CORPORATION
OK(0): Function executed successfully
If alarm happens, KAREL program will stop with “INTP-103(RSI_CREATE, 22) Program error” and
the detail (cause code) indicates the reason.
File:IN Type: STRING
Path and name of the configuration XML file: Ex .fr:abc.xml
58.3.2 RSI_DELETE_I( )
This function deletes communication setting.
Element Description
RET Type: INTEGER
Return values:
OK(0): Function executed successfully
If function is not executed successfully the program is stopping by error.
58.3.3 RSI_RESET_I( )
This function do absolutely same thing with RSI_DELETE_I( ).
Element Description
RET Type: INTEGER
Return values:
OK(0): Function executed successfully
If function is not executed successfully the program is stopping by error.
58.3.4 RSI_ON_I ( )
Data are sent every communication interval after this function is done.
The value of IPOC tag is reset to 0 by doing this function.
Element Description
RET Type: INTEGER
Return values:
OK(0): Function executed successfully
If function is not executed successfully the program is stopping by error.
Correction Type: INTEGER
mode:IN Correction mode:
ABSOLUTE (1) : Absolute correction
Coordinate Type: INTEGER
system: Reference coordinate system
IN BASE (1) : active UTOOL is used
UFRAME (2) : active UFRAME and UTOOL is used
Title
About RSI interface function
Sheet 6/8
Edit Date Design Description FANUC CORPORATION
UTOOL (3) : active UTOOL is used, referenced from the time of activation RSI_ON_I(). See
a following sketch example to show offset behavior.
Position at RSI_ON_I( )
58.3.5 RSI_OFF_I ( )
Data are not sent after this function is done.
Element Description
RET Type: INTEGER
Return values:
OK(0): Function executed successfully
If function is not executed successfully the program is stopping by error.
58.3.6 RSI_WRXML_I ( )
This function changes the value of XML tag.
Element Description
RET Type: INTEGER
Return values:
OK(0): Function executed successfully
If function is not executed successfully the program is stopping by error.
XML Type: STRING
attribute:IN This argument indicates which XML tag to write (e.g. ‘TRG’). Case sensitive.
Value:IN Type: STRING
This argument indicates which value to write in the selected XML tag
This supports only “myRob” and “TRG” for XML attribute and value should be 1 character now.
The tag to change (write) is specified by argument 1. For changing multiple tags this program should be
called n times with different 1st argument, which means XML attribute.
If not supporting tag is set to XML attribute (1st argument), STOP global alarm “HOST-391 RSI: 1st
argument in RSI_WRXML_I is not supported” will happen.
Title
About RSI interface function
Sheet 7/8
Edit Date Design Description FANUC CORPORATION
If value (2nd argument) is larger than 1 character, STOP global alarm “HOST-392 RSI: 2nd argument in
RSI_WRXML_I should be 1 character” will happen.
58.4 DETAILS
- Variables under $RSI are saved to rsi.sv.
- If this function J802 is ordered, $KAREL_ENB becomes 1 as default then karel can be used as
default.
- FR:¥RSI*.xml are saved and loaded for all backup. * can be no character or any number or any
characters.
- Karel programs, which are RSI_CREATE, RSI_DELETE, RSI_RESET, RSI_ON, RSI_OFF, and
RSI_WRXML, are write protected.
Title
About RSI interface function
Sheet 8/8
Edit Date Design Description FANUC CORPORATION