Skip to content

Commit 7ab8d73

Browse files
# v0.8.13
## BUILD 1505 - Fixed a bug with `WriteAnalog` on `UR` devices.
1 parent 746ab69 commit 7ab8d73

5 files changed

Lines changed: 10 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
- [ ] `noTool` gets declared on every ABB program, even if not used. Fix this, and probably use `tool0` on compilation?
2929
- [ ] Review if second attachments produce a TCP transformation without undoing the previous tool.
3030

31+
32+
# v0.8.13
33+
## BUILD 1505
34+
- Fixed a bug with `WriteAnalog` on `UR` devices.
35+
3136
# v0.8.12b
3237
## BUILD 1504
3338
`Action.Id` generation comes from a `static` counter in the `Action` class. This had a couple problems:

dist/Machina_v0.8.13.zip

569 KB
Binary file not shown.

src/Machina/Drivers/Communication/Protocols/URCommunicationProtocol.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class URCommunicationProtocol : Base
4444
// internal const int INST_POPUP = 11 // [ID, CODE, MSG] (in (string) "msg" + STR_MESSAGE_END_CHAR) (NOT IMPLEMENTED)
4545
internal const int INST_SET_TOOL = 12; // [ID, CODE, X, Y, Z, RX, RY, RZ, KG] (in (int) M * FACTOR_M, RAD * FACTOR_RAD, KG * FACTOR_KG)
4646
internal const int INST_SET_DIGITAL_OUT = 13; // [ID, CODE, PIN, ON, TOOL] (in (int), bool)
47-
internal const int INST_SET_ANALOG_OUT = 14; // [ID, CODE, PIN, VOLTAGE, TOOL] (in (int) VOLTAGE * FACTOR_VOLT) (there is no analog out on the tool)
47+
internal const int INST_SET_ANALOG_OUT = 14; // [ID, CODE, PIN, VOLTAGE] (in (int) VOLTAGE * FACTOR_VOLT) (there is no analog out on the tool)
4848
// This value sets the same speed value for TCP and Q, taken as mm/s and deg/s. E.g: if setting to 20 mm/s or deg/s, the received value should be 0.02 m/s * FACTOR_M, and this will be converted internally to 0.349 rad/s (=20 deg/s)
4949
internal const int INST_ALL_SPEED = 15; // [ID, CODE, VEL] (in (int) M/S * FACTOR_M)
5050
// Similarly here, a received value in "puffed" m/s^2 will be internally translated to rad/s^2

src/Machina/Resources/DriverModules/UR/machina_ur_driver.script

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def machina_ur_driver():
4141
# INST_POPUP = 11 # [ID, CODE, MSG] (in (string) "msg" + STR_MESSAGE_END_CHAR) (NOT IMPLEMENTED)
4242
INST_SET_TOOL = 12 # [ID, CODE, X, Y, Z, RX, RY, RZ, KG] (in (int) M * FACTOR_M, RAD * FACTOR_RAD, KG * FACTOR_KG)
4343
INST_SET_DIGITAL_OUT = 13 # [ID, CODE, PIN, ON, TOOL] (in (int), bool)
44-
INST_SET_ANALOG_OUT = 14 # [ID, CODE, PIN, VOLTAGE, TOOL] (in (int) VOLTAGE * FACTOR_VOLT) (there is no analog out on the tool)
44+
INST_SET_ANALOG_OUT = 14 # [ID, CODE, PIN, VOLTAGE] (in (int) VOLTAGE * FACTOR_VOLT) (there is no analog out on the tool)
4545
# This value sets the same speed value for TCP and Q, taken as mm/s and deg/s. E.g: if setting to 20 mm/s or deg/s, the received value should be 0.02 m/s * FACTOR_M, and this will be converted internally to 0.349 rad/s (=20 deg/s)
4646
INST_ALL_SPEED = 15 # [ID, CODE, VEL] (in (int) M/S * FACTOR_M)
4747
# Similarly here, a received value in "puffed" m/s^2 will be internally translated to rad/s^2
@@ -193,7 +193,7 @@ def machina_ur_driver():
193193
end
194194

195195
elif action_code == INST_SET_ANALOG_OUT:
196-
params3 = socket_read_binary_integer(3)
196+
params3 = socket_read_binary_integer(2)
197197
set_standard_analog_out(params3[1], params3[2] / FACTOR_VOLT)
198198

199199
elif action_code == INST_ALL_SPEED:

src/Machina/Robot.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ public class Robot
3939
/// <summary>
4040
/// Build number.
4141
/// </summary>
42-
public static readonly int Build = 1504;
42+
public static readonly int Build = 1505;
4343

4444
/// <summary>
4545
/// Version number.
4646
/// </summary>
47-
public static readonly string Version = "0.8.12." + Build;
47+
public static readonly string Version = "0.8.13." + Build;
4848

4949
/// <summary>
5050
/// A nickname for this Robot.

0 commit comments

Comments
 (0)