← Back

rawmode

Normal write V1 DRV700

Enable or disable compact binary reception on DRV700.

Usage

>> rawmode
0
>> rawmode 1
1
>> rawmode 0
0

Without an argument, return the current state. Write 1 to enable the compact iraw packet, or 0 to disable it. Each write returns the resulting state. Other values are rejected without changing the state.

Notes

The setting starts at 0 after every boot and is session-only. It is not saved to nonvolatile memory. Changing it requires normal write access and does not change the current setpoint.

Enabling gives compact packets exclusive control of the current setpoint. Startup must have finished, dithering must be disabled with dithon 0, and analog modulation must be disabled with imodgain 0. If these conditions are not met, enabling is rejected and the response remains 0.

While enabled, text writes to iraw and iout, enabling dithering, and enabling analog modulation are rejected. Sequencer current writes are rejected too; stop sequences that write current before enabling. Other text commands, output switching, and protection functions remain available. Disable compact reception before returning current control to these other sources.

Text commands remain available between complete compact packets. For the lowest latency, wait for each text command’s complete response before resuming binary packets. Queued packets retain their position behind preceding commands and responses. Compact packets must be unaddressed; addressed compact packets are rejected and require stream recovery. See compact binary writes.

Wait for the enable response before sending binary packets. Before disabling, finish the last packet and stop sending binary data. Do not send compact packets while disabled.

A malformed compact code, packet timeout, or detected receive fault disables compact reception. A failed output transfer also disables it and shuts down the current controller. To reset an uncertain or incomplete stream, stop transmission, send a UART break, then send four carriage returns as described in compact-packet recovery. Reception remains disabled after recovery; enable it explicitly when ready to resume.

This text command cannot interrupt an unfinished binary packet or bypass recovery. Enabling, disabling, and recovery do not clear recorded errors; use err to inspect them.