JVL Industri Elektronik A/S - User Manual - Ethernet for MAC and MIS motors 135
5.7 Examples
5.7.5 Relative positioning.
There are a number of ways to do relative positioning, but the one explained here is very
simple, and can be used with a constant distance, or exchangeable distance, to move
every time it is requested.
Preconditions:
Place the module command register (register 983040 in MacTalk) in the cyclic write list.
The cyclic setup, could for example look like this:
Procedure in the PLC:
1. Set up register P7 in motor to requested relative offset.
2. Make sure one net cycle has passed, so P7 resides in the motor.
3. Issue command 0x800000F1 (0x80000071 if the MIS/MILxxxxxxELxxxx motor is
used) in module command register (register 983040 in MacTalk).
4. Make sure one net cycle has passed, so command is interpreted by the motor.
5. Set module command register to zero. This will prepare the Ethernet module for
new commands.
6. If needed then monitor register 35 (Error status): When bit 4 is set (in position), then
the move is finished.
7. When a new relative move is requested, go to step 3.
You may also have the P7 register in the cyclic write list, thereby enabling easy change of
the relative distance to move.