omron — SIG.INS real-valued function

SIG.INS real-valued function SIG.INS real-valued function Syntax SIG.INS (signal_num) Function Return an indication of whether a digital I/O signal is installed in the system, or whether a software signal is available in the system. Parameter signal_num Real-valued expression that defines the number of the digital I/O or software signal to check. (The absolute value is used, so negative signal numbers are allowed.) Details This function returns TRUE (-1) if the specified digital I/O or software signal is available for use by the system. Otherwise, FALSE (0.0) is returned. The function always returns TRUE if signal_number is zero.

This function can be used to make sure the digital I/O signals are installed as expected by the application program. Example The following program segment checks whether digital I/O signal #12 is installed as an input signal (referenced as signal #1012). A message is displayed on the system terminal if the signal is not configured correctly: in.sig = 1012 IF NOT SIG.INS(in.sig) THEN TYPE "Digital I/O signal ", in.sig, "is not installed" END Related Keywords BITS monitor command BITS program instruction BITS real-valued function IO monitor command RESET monitor command RUNSIG program instruction eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 472