Long latchsetautomode(long channel, long mode), Latch status, Long latchtriggered(long channel) – Rockwell Automation 2098-IPD-xxx Ultra5000 C Programming using the Motion Library User Manual
Page 96: Latch status -56, Long latchtriggered(long channel); -56, Latchsetautomode, Latchtriggered
![background image](/manuals/580132/96/background.png)
Publication 2098-PM001E-EN-P — July 2002
2-56
Referencing the Motion Library
long LatchSetAutoMode(long channel, long mode);
Sets the auto mode of a latch. Enabling auto mode allows the latch to
automatically rearm after detecting a latch. The latch count is read
with the LatchGetCount function.
Valid channel arguments are:
• 1 = Primary motor latch
• 2 = Secondary motor latch
• 3 = Primary auxiliary latch
• 4 = Secondary auxiliary latch
Valid mode arguments are:
• 0 = Disabled
• 1 = Enabled
Returns 0 if successful, or -1 on an error.
long LatchTriggered(long channel);
Determines if a latch has been triggered. The channel argument
selects the latch channel.
Valid channel arguments are:
• 1 = Primary motor latch
• 2 = Secondary motor latch
• 3 = Primary auxiliary latch
• 4 = Secondary auxiliary latch
Returns non-zero value if latch is triggered.