Output example

Output example

Output_example
#include <io> #include <read> #include <float> #include <string> #include <core> #include <write> #include <define> new OutputStatus = 0; main(){ while(1){ set_val(Sensor_OUT1, 1); // Trun On Output 1 OutputStatus = get_val(Sensor_OUT1); // Read Output 1 status into OutputStatus variable Delay(500); // Delay 500ms set_val(Sensor_OUT1, 0); // Trun Off Output 1 OutputStatus = get_val(Sensor_OUT1); // Read Output 1 status into OutputStatus variable Delay(500); // Delay 500ms set_val(Sensor_OUT2, 1); // Trun On Output 2 OutputStatus = get_val(Sensor_OUT2); // Read Output 2 status into OutputStatus variable Delay(500); // Delay 500ms set_val(Sensor_OUT2, 0); // Turn Off Output 2 OutputStatus = get_val(Sensor_OUT2); // Read Output 2 status into OutputStatus variable Delay(500); // Delay 500ms } }