RTC
®
4 PC Interface Board
Rev. 1.3 e
10 Commands And Functions
85
innovators for industry
Ctrl Command get_serial_number
Function returns the individual serial number of the RTC
®
4 board
Result RTC
®
4 serial number as an unsigned 16-bit value
Integration Pascal:
function get_serial_number: word;
C:
unsigned short get_serial_number(void);
Basic:
function get_serial_number()%
Comments • The command is helpful when using several RTC
®
4 boards in one computer.
See chapter 5.4, page 43.
Ctrl Command get_startstop_info
Function provides information about internal and external list starts and stops, as well as
information about the laser signals
Result Status signal word (unsigned 16-bit value):
Bit #0 (LSB) = 1: An internal START has been executed since the last get_startstop_info command was called.
Bit #1 = 1: An external START has been executed since the last get_startstop_info command was called.
Bit #2 = 1: An internal STOP (command stop_execution) has been executed since the last
get_startstop_info command was called.
Bit #3 = 1: An external STOP has been executed since the last get_startstop_info command was called.
Bit #4 logical AND operation of the signals /STOP and /STOP2:
= 1: The external /STOP input (and the /STOP2 input of the MARKING ON THE FLY connector) are
currently set to HIGH or not connected.
= 0: The external /STOP input (or the /STOP2 input of the MARKING ON THE FLY connector) are
currently set to LOW.
Bit #9 Enable Laser Status. Bit = 1: Laser is enabled. See enable_laser and disable_laser.
Bit #10 TTL Laser Signal Status. Bit = 1: Laser signals are active-low (Jumper X10 is open; see page 59).
Bit #12 logical AND operation of the signals /START and /START2:
= 1: The external /START input (and the /START2 input of the MARKING ON THE FLY connector)
are currently set to HIGH or not connected.
= 0: The external /START input (or the /START2 input of the MARKING ON THE FLY connector) are
currently set to LOW.
The remaining bits are reserved.
Integration Pascal:
function get_startstop_info: word;
C:
unsigned short get_startstop_info(void);
Basic:
function get_startstop_info()%
Comments • The status bits #0 … #3 are reset after the command is executed.
References get_counts, get_status