omron — STATE real-valued function

STATE real-valued function When select = 40, the function returns a flag that is set to nonzero when the currently selected robot is tracking a belt. Example The following example shows how the STATE function can be used to determine whether or not a REACTI was triggered during a robot motion: REACTI 1001 ;Setup the reaction MOVES final ;Start the robot motion BREAK ;Wait for the motion to complete CASE STATE(2) OF ;Decide what happened VALUE 2: TYPE "Motion completed normally" VALUE 6: TYPE "Motion stopped by REACTI" VALUE 8:

TYPE "Motion stopped by panic button" END Related Keywords SELECT program instruction SELECT real-valued function STATUS monitor command STATUS real-valued function eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 506 Value Interpretation (select = 30) 1 Light is on. 2 Light is blinking at 4 Hz. 3 Light is blinking at 1 Hz.