Skip to content

Commit 32cde6b

Browse files
committed
feat: add new instruction types for C++ and C# APIs (RDK-1094)
1 parent ce74869 commit 32cde6b

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

C#/API/Model/InstructionType.cs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,27 @@
4040

4141

4242

43+
using System;
44+
4345
namespace RoboDk.API.Model
4446
{
4547
// Instruction types
4648
public enum InstructionType
4749
{
4850
Invalid = -1,
4951
Move = 0,
50-
Movec = 1,
51-
Changespeed = 2,
52-
Changeframe = 3,
53-
Changetool = 4,
54-
Changerobot = 5,
52+
MoveC = 1,
53+
ChangeSpeed = 2,
54+
ChangeFrame = 3,
55+
ChangeTool = 4,
56+
ChangeRobot = 5,
5557
Pause = 6,
5658
Event = 7,
5759
Code = 8,
58-
Print = 9
60+
Print = 9,
61+
Rounding = 10,
62+
IO = 11,
63+
Custom = 12
5964
}
6065
}
6166

C#/Example/RoboDKSampleProject/RoboDK.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,6 +1715,9 @@ public RDKException(string Message)
17151715
public const int INS_TYPE_EVENT = 7;
17161716
public const int INS_TYPE_CODE = 8;
17171717
public const int INS_TYPE_PRINT = 9;
1718+
public const int INS_TYPE_ROUNDING = 10;
1719+
public const int INS_TYPE_IO = 11;
1720+
public const int INS_TYPE_CUSTOM = 12;
17181721

17191722
// Move types
17201723
public const int MOVE_TYPE_INVALID = -1;

C++/robodk_api.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,16 @@ class ROBODK RoboDK {
14151415
INS_TYPE_CODE = 8,
14161416

14171417
/// Display message on the teach pendant.
1418-
INS_TYPE_PRINT = 9
1418+
INS_TYPE_PRINT = 9,
1419+
1420+
/// Rounding instruction.
1421+
INS_TYPE_ROUNDING = 10,
1422+
1423+
/// Set or Wait I/O instruction.
1424+
INS_TYPE_IO = 11,
1425+
1426+
/// Custom instruction.
1427+
INS_TYPE_CUSTOM = 12
14191428
};
14201429

14211430
/// Movement types

0 commit comments

Comments
 (0)