Skip to content

Commit b36440a

Browse files
committed
2 parents 470799e + 3001c90 commit b36440a

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,6 @@ double value = robot.Snpx.Registers.Read(1);
125125
robot.Snpx.Registers.Write(2, 123.45);
126126
```
127127

128-
#### 🔹 Get alarm history
129-
130-
```csharp
131-
var alarms = robot.Snpx.Alarms.GetActiveAlarms();
132-
foreach (var alarm in alarms)
133-
{
134-
Console.WriteLine($"Alarm {alarm.Code}: {alarm.Message}");
135-
}
136-
```
137-
138128
#### 🔹 Read and control robot signals (UI, UO, GI, GO)
139129

140130
```csharp
@@ -145,6 +135,21 @@ bool UI1 = robot.Snpx.UI.Read(1);
145135
robot.Snpx.UO.Write(3, true);
146136
```
147137

138+
#### Clear alarms
139+
140+
```csharp
141+
// Clear alarms
142+
robot.Snpx.ClearAlarms();
143+
```
144+
145+
#### Get current position
146+
```csharp
147+
// Read current joint and cartesian position
148+
Position position = robot.Snpx.CurrentPosition.ReadWorldPosition();
149+
150+
// Read User frame cartesian position
151+
robot.Snpx.CurrentPosition.ReadUserFramePosition(1);
152+
```
148153
---
149154

150155
### 📂 **3. File & Variable Management via FTP Memory Access**

0 commit comments

Comments
 (0)