// ***************************************************************************** // * Config_SIOC ver 3.5 - By Manolo Vélez - www.opencockpits.com // ***************************************************************************** // * FileName : ejemplo switch.txt // * Date : 11/12/2008 Var 0001, Link IOCARD_SW, Input 1 // SW-1 { CALL V0009 // Check status of all SW } Var 0002, Link IOCARD_SW, Input 2 // SW-2 { CALL V0009 // Check status of all SW } Var 0003, Link IOCARD_SW, Input 3 // SW-3 { CALL V0009 // Check status of all SW } Var 0004, Link IOCARD_OUT, Output 11 // Led-1 Var 0009, Link SUBRUTINE // Check if LED should be ON or OFF { L0 = 0 // Default L0=0 IF V0001 = 1 { IF V0002 = 1 { IF V0003 = 1 { L0 = 1 // Only L0 is 1 if all SW = 1 } } } V0004 = L0 // Led = L0 (ON or OFF) }