diff --git a/server/src/Peripherals/RotaryEncoderClient.cs b/server/src/Peripherals/RotaryEncoderClient.cs index 078e744..02f4798 100644 --- a/server/src/Peripherals/RotaryEncoderClient.cs +++ b/server/src/Peripherals/RotaryEncoderClient.cs @@ -6,7 +6,7 @@ namespace Peripherals.RotaryEncoderClient; class RotaryEncoderCtrlAddr { - public const UInt32 BASE = 0xB0_00_00_20; + public const UInt32 BASE = 0xB0_00_00_30; public const UInt32 ENABLE = BASE; } diff --git a/src/components/equipments/EC11RotaryEncoder.vue b/src/components/equipments/EC11RotaryEncoder.vue index 19f0a5e..29f5a69 100644 --- a/src/components/equipments/EC11RotaryEncoder.vue +++ b/src/components/equipments/EC11RotaryEncoder.vue @@ -258,6 +258,8 @@ watchEffect(() => { watch( () => rotationStep.value, (newStep, oldStep) => { + if (!props.enableDigitalTwin) return; + if (newStep > oldStep) { rotataryEncoderStore.rotateOnce( props.encoderNumber,