SF_GetStatus Function

Returns the status bit of the safety function.

Syntax
SF_GetStatus (index)

Parameters

index
Specify the index of the information to be retrieved as an integer value.

Return Values
An integer containing the specified information of index.

Description
The return values bit information is shown in the following table.

Index Bit Value Description
0 0-6 - Reserved
7 &H80 Failure detection of safety board
1 0 &H1 SLS_1 is enabled
1 &H2 SLS_2 is enabled
2 &H4 SLS_3 is enabled
3-7 - Reserved
2 0 &H1 SLP_A is enabled
1 &H2 SLP_B is enabled
2 &H4 SLP_C is enabled
3-6 - Reserved
7 &H80 Soft Axis Limiting is enabled (always on)
3 0 &H1 SAFETY_IN1 signal is High (the function is off) *1
1 &H2 SAFETY_IN2 signal is High (the function is off) *1
2 &H4 SAFETY_IN3 signal is High (the function is off) *1
3 &H8 SAFETY_IN4 signal is High (the function is off) *1
4 &H10 SAFETY_IN5 signal is High (the function is off) *1
5-7 - Reserved
4 0 &H1 SAFETY_OUT1 signal is High (the function is off) *2
1 &H2 SAFETY_OUT2 signal is High (the function is off) *2
2 &H4 SAFETY_OUT3 signal is High (the function is off) *2
3-7 - Reserved
5 0 &H1 SLP_A *3
1 &H2 SLP_B *3
2 &H4 SLP_C *3
3-6 - Reserved
7 &H80 SLP_J *3
6 to 11 0-7 - Reserved
12 0-7 - STF_ID
13 0-7 - STF_DET_L
14 0-7 - STF_DET_U
15 0-7 - Reserved
*1 The safety input signal is negative logic (Active Low).
If a signal level High is input to the safety input, this function will return 1 and the function assigned to the safety input will not operate.
If a signal level Low is input to the safety input, this function will return 0 and the function assigned to the safety input will operate. This occurs if a device is not connected to the safety input.
*2 The safety output signal is negative logic (Active Low).
If one of the functions assigned to the safety output is operating, the safety output will be enabled, the signal level at the safety output will be Low, and this function will return 0.
If none of the functions assigned to the safety output are operating, the safety output will be disabled, the signal level at the safety output will be High, and this function will return 1.
If no function is assigned to the safety output, the signal level at the safety output will be Low and this function will return 0.
*3 If the target enters the monitored position, this function will return 1 regardless of whether or not the SLP function is assigned to the safety input as well as the input signal is enabled.

The cause of an error can be checked using STF_ID, STF_DET_L, or STF_DET_H. How to check using SPEL+ will be described later. The information for STF_ID, STF_DET_L, and STF_DET_H is as follows.

STF_ID Error STF_DET_L STF_DET_U
100

Stop notification

Safety input

Safety input port

SAFETY_IN1 0×01

SAFETY_IN2 0×02

SAFETY_IN3 0×04

SAFETY_IN4 0×08

SAFETY_IN5 0×10

Not used
101

Stop notification

SLS_1 speed exceeded

Joint

Joint number

J1 0×01 / J2 0×02

J3 0×04 / J4 0×08

J5 0×10 / J6 0×20

Not used
102

Stop notification

SLS_1 speed exceeded

Part

Part

Hand 0×01 / Elbow 0×02 *1

Wrist 0×04 / Shoulder 0×08 *1

Not used
103

Stop notification

SLS_2 speed exceeded

Joint

Joint number

J1 0×01 / J2 0×02

J3 0×04 / J4 0×08

J5 0×10 / J6 0×20

Not used
104

Stop notification

SLS_2 speed exceeded

Part

Part

Hand 0×01 / Elbow 0×02 *1

Wrist 0×04 / Shoulder 0×08 *1

Not used
105

Stop notification

SLS_3 speed exceeded

Joint

Joint number

J1 0×01 / J2 0×02

J3 0×04 / J4 0×08

J5 0×10 / J6 0×20

Not used
106

Stop notification

SLS_3 speed exceeded

Part

Part

Hand 0×01 / Elbow 0×02 *1

Wrist 0×04 / Shoulder 0×08 *1

Not used
107

Stop notification

SLS_T speed exceeded

Joint

Joint number

J1 0×01 / J2 0×02

J3 0×04 / J4 0×08

J5 0×10 / J6 0×20

Not used
108

Stop notification

SLS_T speed exceeded

Part

Part

Hand 0×01 / Elbow 0×02 *1

Wrist 0×04 / Shoulder 0×08 *1

Not used
109

Stop notification

SLS_T2 speed exceeded

Joint

Joint number

J1 0×01 / J2 0×02

J3 0×04 / J4 0×08

J5 0×10 / J6 0×20

Not used
110

Stop notification

SLS_T2 speed exceeded

Part

Part

Hand 0×01 / Elbow 0×02 *1

Wrist 0×04 / Shoulder 0×08 *1

Not used
115

Stop notification

SLP_A position exceedance

Monitored position

Monitored position

YL 0×01 / YU 0×02

XL 0×04 / XU 0×08

ZL 0×10 / ZU 0×20 *2

Joint number

J6 0×08

J5 0×04

J3 0×02

J2 0×01

116

Stop notification

SLP_B position exceedance

Monitored position

Monitored position

YL 0×01 / YU 0×02

XL 0×04 / XU 0×08

ZL 0×10 / ZU 0×20 *2

Joint number

J6 0×08

J5 0×04

J3 0×02

J2 0×01

117

Stop notification

SLP_C position exceedance

Monitored position

Monitored position

YL 0×01 / YU 0×02

XL 0×04 / XU 0×08

ZL 0×10 / ZU 0×20 *2

Joint number

J6 0×08

J5 0×04

J3 0×02

J2 0×01

118

Stop notification

Soft Axis Limiting

Joint number

J1 0×01 / J2 0×02

J3 0×04 / J4 0×08

J5 0×10 / J6 0×20

Not used
121

Stop notification

Switch input

Switch number

Enable switch 0×01

Emergency stop switch (Teach Pendant) 0×02

Emergency stop switch (Controller connection) 0×04

Not used
122

Stop notification

Mode control

Mode

Parameter communication permission 0×08

Disable Safety Function (Safety Board) 0×04

Switch Operation mode 0×02

Parameter setting verified 0×01

Not used
123

Stop notification

Deceleration monitoring

Detection error

Abnormal deceleration 0×08, 0×04

Deceleration completed 0×02

After the monitoring time 0×01

Not used
124

Stop notification

Joint angle monitoring

Joint number

J1 0×01 / J2 0×02

J3 0×04 / J4 0×08

J5 0×10 / J6 0×20

Not used
131

Failure and stop notification

Encoder communication failure

Joint number

J1 0×01 / J2 0×02

J3 0×04 / J4 0×08

J5 0×10 / J6 0×20

Not used
132

Failure and stop notification

Position error

Joint number

J1 0×01 / J2 0×02

J3 0×04 / J4 0×08

J5 0×10 / J6 0×20

Not used
133

Failure and stop notification

Double input error

Error detected part

Safety input port

SAFETY_IN 1 0×01

SAFETY_IN 2 0×02

SAFETY_IN 3 0×04

SAFETY_IN 4 0×08

SAFETY_IN 5 0×10

Enable switch 0×20

Emergency stop switch (Teach Pendant) 0×40

Emergency stop switch (Controller connection) 0×80

Not used
134

Failure and stop notification

Double output error

Error detected part

Safety output port

SAFETY_OUT 1 0×01

SAFETY_OUT 2 0×02

SAFETY_OUT 3 0×04

STO 0×80

Not used
135

Failure and stop notification

Safety Board error

Error detected part

Communication bus 0×20

Power (3.3V) 0×08

Power (5V) 0×04

Watchdog timer detection 0×02

Relay welding 0×01

Not used
136

Failure and stop notification

Safety Board

MCU error

Error detected part

Sequence monitor 0×10

CPU 0×08

RAM 0×04

Program ROM 0×02

Data ROM 0×01

When DET_L = 0×01

(Date ROM)

0×00 - 0×FE

Data failure part

0×FF

Parameter failure

137

Failure and stop notification

Safety Board

Duplication internal abnormality

Error detected part

TCP position not matched 0×02

Status not matched 0×01

Not used
138

Failure and stop notification

Encoder

Internal abnormality

Joint number

J1 0×01 / J2 0×02

J3 0×04 / J4 0×08

J5 0×10 / J6 0×20

Not used
139

Failure and stop notification

Controller

Internal abnormality

Error detected part

Operation mode receive error 0×01

Not used

*1 The correspondence between the monitored parts J2, J3, J5 for Safety Limited Speed in Safety Function Manager and the speed exceeded parts hand, wrist, elbow, and shoulder referred in this manual is as follows:

  • SCARA robots
    • J2: Elbow
    • J3: Not applicable
    • J5: Not applicable
    • Hand: Hand
  • 6-axis robots
    • J2: Shoulder
    • J3: Elbow
    • J5: Wrist
    • Hand: Hand

*2 The correspondence between the monitored position X1, X2, Y1, Y2, Z1, Z2 for Safety Limited Position in Safety Function Manager and the monitored position XL, XU, YL, YU, ZL, ZU referred in this manual is as follows:

  • When "Wall" is selected for the monitored position
    • X1 = XL, X2 = XU
    • Y1 = YL, Y2 = YU
    • Z1 = ZL, Z2 = ZU (6-axis robots only)
  • When "Restricted Area" is selected for the monitored position
    • X1 = XU, X2 = XL
    • Y1 = YU, Y2 = YL
    • Z1 = ZL, Z2 = ZU (6-axis robots only)

How to check the cause of an error using STF_ID, STF_DET_L and STF_DET_H

Enter and confirm the commands in the following order in the command window and so on.

> SF_GetStatus (12)
115    'Indicates the error of "Stop notification SLP_A position exceedance".
> SF_GetStatus (13)
1    'Indicates that "YL" direction monitored position has been exceeded. (Check for STF_ID: 115.)
> SF_GetStatus (14)
1    'Indicates the "J2Flag" exceeded. (Check for STF_ID: 115.)

To summarize the above, we can see that the error occurred because "the J2Flag cross the monitored position in the YL of SLP_A."

Error information is also recorded in the Epson RC+ system history. The cause of the error is recorded in "Additional information". See SPEL+ error messages in the SPEL+ Language Reference manual.

This command can be used with the Controllers with Safety Board.

SF_GetStatus Function Example

If (SF_GetStatus(3) And &H1) = &H1 Then
Print "SAFETY_IN1 is High"
Else
Print "SAFETY_IN1 is Low"
EndIf