omron — SWITCH program instruction

SWITCH program instruction Example The following program statements show how the SWITCH real-valued function and instruction can be used to save the setting of a system switch, and later restore it, respectively: old.upper = SWITCH(UPPER) ;Save the current setting . . ;Instructions that may change the . ;setting of the UPPER switch. SWITCH UPPER = old.upper ;Restore the initial setting Related Keywords DISABLE monitor command DISABLE program instruction ENABLE monitor command ENABLE program instruction SWITCH monitor command SWITCH real-valued function eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 514