SIG real-valued function SIG real-valued function Syntax SIG (signal_num, ..., signal_num) Function Returns the logical AND of the states of the indicated digital signals. Parameter signal_num Real-valued expression that evaluates to a digital I/O or internal signal number. A negative value indicates negative logic for that signal. Details Returns a TRUE (-1) or FALSE (0) value obtained by performing a logical AND of the states of all the indicated digital signals. That is, SIG will return TRUE if all the specified signal states are TRUE. Otherwise, SIG will return FALSE. The magnitude of each signal_num parameter determines which digital or internal signal is to be considered.
Signals 1 - 8 and 33 - 512 are digital outputs. Signals 1001 - 1012 and 1033 - 1512 are digital inputs. Signals 2001 to 2512 are internal (software) inputs or outputs. Only digital signals that are actually installed can be used. You can use the IO monitor command (or the SIG.INS function) to check your current digital I/O configuration. Signals 3001 and 3002 refer to the robot selected by the current task. Signal 3001 is the state of the hand-close solenoid. Signal 3002 is the state of the hand-open solenoid. If the sign of a signal_num parameter is positive, the signal is interpreted as being TRUE if it has a high value.
If the sign of a signal_num parameter is negative, the signal is interpreted as being TRUE if it has a low value. NOTE: SIG(0) returns a value of TRUE. Example Assume that the following digital I/O signals are installed and have the indicated values. l Input signal 1001 is On l Input signal 1004 is Off l Input signal 33 is Off The following SIG function references return the indicated values: eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 470