Hey guys, I'm taking a look at the code, and I've got a small question. On this part:
Code:
'========== MAIN PROGRAM =====================================================
'=============================================================================
'---------- Input & Output Declarations --------------------------------------
Output COMB
Input COMA
Input COMC
Output 7 'define Basic Run LED on RC => out7
Output 8 'define Robot Feedback LED => out8 => PWM1 Green
Output 9 'define Robot Feedback LED => out9 => PWM1 Red
Output 10 'define Robot Feedback LED => out10 => PWM2 Green
Output 11 'define Robot Feedback LED => out11 => PWM2 Red
Output 12 'define Robot Feedback LED => out12 => Relay1 Red
Output 13 'define Robot Feedback LED => out13 => Relay1 Green
Output 14 'define Robot Feedback LED => out14 => Relay2 Red
Output 15 'define Robot Feedback LED => out15 => Relay2 Green
'---------- Initialize Inputs & Outputs --------------------------------------
Out7 = 1 'Basic Run LED on RC
Out8 = 0 'PWM1 LED - Green
Out9 = 0 'PWM1 LED - Red
Out10 = 0 'PWM2 LED - Green
Out11 = 0 'PWM2 LED - Red
Out12 = 0 'Relay1 LED - Red
Out13 = 0 'Relay1 LED - Green
Out14 = 0 'Relay2 LED - Red
Out15 = 0 'Relay2 LED - Green
I know this part controls the LEDs, but I've got two questions. First of all, what does "Output" do? Meaning, what does it mean when the code says, "Output 7". And my second question, whats the relationship between "Output 7" and "Out7 = 1"? I take it 1 means the LED goes on and 0 means the LED is off, but how does it know that "Out7" sends to the "Basic Run LED"?