14.01.2015 Views

Gemini GV6K and Gemini GT6K Programmer's Guide

Gemini GV6K and Gemini GT6K Programmer's Guide

Gemini GV6K and Gemini GT6K Programmer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Enter/Exit<br />

Following Mode<br />

While Moving<br />

Pause <strong>and</strong><br />

Continue<br />

TVEL <strong>and</strong> TVELA<br />

Comm<strong>and</strong>s<br />

TASF, TAS & AS<br />

Axis Status Bits<br />

Changing<br />

Feedback Sources<br />

(Servo Axes only)<br />

Following <strong>and</strong><br />

Other Motion<br />

Conditional<br />

Statements Using<br />

PMAS<br />

The FOLENØ comm<strong>and</strong> may be executed while a follower axis is moving at constant ratio. In<br />

this case, the current velocity becomes the constant velocity, <strong>and</strong> the follower may accelerate<br />

or decelerate to other velocities. The FOLEN1 comm<strong>and</strong> may not be executed while the<br />

follower axis is moving in the non-Following mode. Attempting to do so will result in the<br />

error response “MOTION IN PROGRESS”.<br />

A program may be paused <strong>and</strong> continued, even if configured as a follower. The program does<br />

not lose track of the master input, even though motion is stopped. As usual, if a program<br />

finishes normally, or if COMEXS is set to zero (COMEXSØ), the program may not be continued.<br />

If a program is resumed, partially completed Following moves will be completed; however, the<br />

remainder of the move is completed over the entire original master distance (FOLMD value).<br />

The TVEL <strong>and</strong> VEL comm<strong>and</strong>s have always reported an unsigned value (i.e. magnitude),<br />

consistent with the fact that the V comm<strong>and</strong> is always positive, even if the move direction is<br />

negative. When Following is enabled (FOLEN1), TVEL <strong>and</strong> VEL report the net magnitude of<br />

comm<strong>and</strong>ed velocity due to following <strong>and</strong>/or shifting. For example, if the follower axis is<br />

Following in the positive direction at 1 rps, TVEL reports 1.000. If a shift in the negative<br />

direction of 1.5 rps is then comm<strong>and</strong>ed, TVEL will report 0.5 – still positive, even though the<br />

net direction is negative.<br />

By contrast, TVELA <strong>and</strong> VELA have always been signed. In the above example, TVELA will<br />

report -0.5.<br />

Axis Status (TASF, TAS <strong>and</strong> AS) bits 1-4 represent the motion status of an axis. Bits 1 <strong>and</strong> 2<br />

represent the moving <strong>and</strong> direction status of the net motion of an axis, including the<br />

combination of following <strong>and</strong> shifting.<br />

Bits 3 <strong>and</strong> 4 represent acceleration <strong>and</strong> velocity, respectively. With Following disabled<br />

(FOLENØ), the accel <strong>and</strong> velocity can only be due to a comm<strong>and</strong>ed time-based profile. With<br />

Following enabled (FOLEN1), the net comm<strong>and</strong>ed velocity <strong>and</strong> accel could be due to<br />

following the master <strong>and</strong>/or a simultaneous shift (time-based profile). Bits 3 <strong>and</strong> 4 only reflect<br />

the acceleration <strong>and</strong> velocity status of the time-based profile, not the combined comm<strong>and</strong>.<br />

For example, if the follower axis is Following in the positive direction at 1 rps, TAS reports<br />

1ØØØ. If a continuous shift (FSHFC2) of 0.8 rps in the negative direction is then comm<strong>and</strong>ed,<br />

TAS will report 1Ø1Ø, while the shaft is decelerating to 0.2 rps. When the continuous shift<br />

velocity is reached, TAS will report 1ØØ1.<br />

Changing feedback sources (SFB) may result in a follower axis Following its own feedback.<br />

For this reason, changing feedback sources is not allowed while a master is specified<br />

(FOLMAS).<br />

Following motion is initiated with the GO comm<strong>and</strong>, just like normal motion. Other motion,<br />

which does not depend on the motion of an external master, may not be used while a follower<br />

axis is in Following mode (FOLEN1). These motion types include jog mode, joystick mode,<br />

<strong>and</strong> homing. To use these motion types, Following must be disabled (FOLENØ) — see<br />

Enter/Exit Following Mode While Moving above for precautions.<br />

The master cycle position (PMAS) value may be used in the comparison argument of these<br />

comm<strong>and</strong>s:<br />

• WAIT & GOWHEN: If it is desired to WAIT or GOWHEN on a master cycle position of the<br />

next master cycle, one master cycle length (value of FMCLEN) should be added to the<br />

master cycle position specified in the argument. This allows comm<strong>and</strong>s that sequence<br />

follower axis events through a master cycle to be placed in a loop. The WAIT or<br />

GOWHEN comm<strong>and</strong> at the top of the loop could execute, even though the actual master<br />

Chapter 7. Multi-Tasking 195

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!