Long serialputstring(const char *string), Serial status, Long serialcleartosend(void) – Rockwell Automation 2098-IPD-xxx Ultra5000 C Programming using the Motion Library User Manual

Page 57: Long serialdataready(void), Long serialreceiverfull(void), Long serialtransmitterempty(void), Timer services, Long timeraccumulated(long channel), Long timerenable(long channel, long preset), Long serialputstring(const char *string); -17

Advertising
background image

Publication 2098-PM001E-EN-P — July 2002

Referencing the Motion Library

2-17

long SerialPutString(const char *string);

Puts a character string into the ASCII transmit buffer.

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

Serial Status

long SerialClearToSend(void);

Returns non-zero if space is available in ASCII transmit buffer.

long SerialDataReady(void);

Returns non-zero if data is available in ASCII receive buffer.

long SerialReceiverFull(void);

Returns non-zero if ASCII receive buffer is full.

long SerialTransmitterEmpty(void);

Returns non-zero if ASCII transmit buffer is empty.

Timer Services

long TimerAccumulated(long channel);

Returns the time accumulated by the specified timer channel.
Accumulated time is in milliseconds. Valid channel arguments are 1 -
8.

long TimerEnable(long channel, long preset);

initializes the specified timer with the specified preset. Preset is in
milliseconds. Valid channel arguments are 1 - 8.

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

Advertising