beautypg.com

Command translation – Rockwell Automation 6008-SI IBM PC I/O SCNNR 6008-SI User Manual

Page 112

background image

Chapter 9

General Support Features

9-5

sysstamp

creates a date and time stamp in printable form.

Calling sequence:

sptr = sysstamp( );

Arguments:

none.

Returned values:

a character pointer, whose object is a 24-character string (23 plus the

terminating zero byte) containing the year in yy/mm/dd form, a space,
the word at followed by another space, and the time in hh:mm:ss form,
and a zero byte.

Example:

printf(“%s\n”, sysstamp( ));

would produce output in this form:

90/01/05 at 9:15:21.30

xlat_cmd

Translate the command byte. This function converts a command byte
value to English.

Calling sequence:

explan = xlat_cmd(

command

);

Arguments:

command

, an integer containing a command.

Returned values:

a character pointer whose object is a string suitable for printing.

Command Translation