Long latchreset(long channel), Latchoninput • latchreset – Rockwell Automation 2098-IPD-xxx Ultra5000 C Programming using the Motion Library User Manual

Page 95

Advertising
background image

Publication 2098-PM001E-EN-P — July 2002

Referencing the Motion Library

2-55

long LatchOnInput(long channel, long input, long rising);

Arms a latch to trigger on an digital input signal.

Valid channel arguments are:

• 1 = Primary motor latch
• 2 = Secondary motor latch
• 3 = Primary auxiliary latch
• 4 = Secondary auxiliary latch

Valid input arguments are 1 through 16.

Valid rising arguments are:

• 0 = Falling edge of digital input signal

(This is the default argument.)

• Non-zero = Rising edge of digital input signal

Returns 0 if successful, or -1 on an error.

long LatchReset(long channel);

Rearms a latch and sets its counter to zero. The channel argument
selects the channel latch counter to reset.

Valid channel arguments are:

• 1 = Primary motor latch
• 2 = Secondary motor latch
• 3 = Primary auxiliary latch
• 4 = Secondary auxiliary latch

Returns 0 if successful, or -1 on an error.

Advertising