JVL MAC050 User Manual page 277

Integrated servo motors
Hide thumbs Also See for MAC050:
Table of Contents

Advertisement

5.8
Expansion Module MAC00-FP2/FP4
5.8.4
Write to a register example
If a new velocity need to be written to the motor it is done after this step by step proce-
dure.
1.
2.
3.
4.
Definitions:
Toggle:
JVL A/S - User Manual - Integrated Servo Motors MAC050 - 4500
Write the new speed value to the 4 data bytes (32 bits) on address 0 to 3.
Setup the register number where the data must be written to.
In this case it is the velocity register which is register 5 so this number must be
written into the "write register selector" address 4.
In the "Command" register at address 7 the "Write 32bit" and the "Write tog-
gle" must be toggled.
Wait until the "Write toggle" bit in the "Command status" register is the same
as the "write toggle" in the "Command" register. Only when they are equal the
write cycle is completely finished.
Change to opposite state. (from 0 to 1 or from 1 to 0). On bit level it corre-
spond to making an inverse of the bit.
273

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents