ID : 9260
SafetyInfo
Function
Returns the system information of the Safety Motion–equipped controller.
Syntax
SafetyInfo(index number )
Guaranteed Entry
- Index number
- Specify an index number with integer type data.
Return Value
Returns a Data Types corresponding to the specified index number to a variable specified with Variant Type data.
Description
The following system information can be acquired.
| Index number | System information | Data type |
|---|---|---|
| 0 | Status of the Safety Motion function -1: Undefined |
Integer type |
| 1 | Tool number (0 to 15) recognized by the Safety Motion function |
Integer type |
| 2 | Tool definition of a tool number (0 to 15) recognized by the Safety Motion function |
Array of single-precision real number type data |
| 3 | Speed limit recognized by the Safety Motion function 0: None |
Integer type |
| 4 | Input state of each Motion I/O, assigned to each bit When an I/O is ON, “1” is assigned to the corresponding bit. When an I/O is “OFF”, “0” is assigned to the bit.
|
Integer type |
| 5 | Output state of each Motion I/O, assigned to each bit With the I/O 4 corresponding to the Bit 1, when an I/O is ON, “1” is assigned to the corresponding bit. When an I/O is “OFF”, “0” is assigned to the bit. |
Integer type |
| 6 | Angle (J-type) of each of eight axes recognized by the Safety Motion function |
Array of single-precision real number type data |
| 7 | Safety parameter ID |
Integer type |
Related Terms
-
Attention
-
Example
'!TITLE "Pro2"
Sub Main
TakeArm Keep = 0
Dim aaa As Variant
aaa = SafetyInfo( 0 ) 'State of Safety motion function
PrintDbg aaa
aaa = SafetyInfo( 3 ) 'Speed limit being set
PrintDbg aaa
End Sub
ID : 9260

