![NANOTEC ELECTRONIC N5 Technical Manual Download Page 128](http://html.mh-extra.com/html/nanotec-electronic/n5/n5_technical-manual_705153128.webp)
Technical Manual N5 (CANopen)
9 Programming with NanoJ
index
Index of the object to be read in the object dictionary
subindex
Subindex of the object to be read in the object dictionary
Output value
Content of the OD entry
Note
Active waiting for a value in the object dictionary should always be associated with a
yield()
.
Example
while (od_read(2400,2) != 0) // wait until 2400:2 is set
{ yield(); }
9.3.2 Process control
void
yield
()
This function returns the processor time to the operating system. In the next time slot, the program
continues at the location after the call.
void
sleep
(U32 ms)
This function returns the processor time to the operating system for the specified number of
milliseconds. The user program is then continued at the location after the call.
ms
Time to be waited in milliseconds
Version: 2.0.1 / FIR-v1650
128