[r6]: / trunk / Test_FB_1 / Test_FB / connector / AfterReadInputs / svnobj  Maximize  Restore  History

Download this file

22 lines (21 with data), 2.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
METHOD AfterReadInputs : INT
VAR
	udiBufSize : UDINT;    
	i : UINT := 0;     
SUPER^.AfterReadInputs();
CASE _iState OF
	10:	//debug counter
		_AfterReadInputs := _AfterReadInputs + 1;
END_CASE
// Write simulation here ..
stIn.dacVoltage := stIn.dacVoltage + 1;
FOR i:=0 TO 7 DO
	IF i <= 3 THEN
		stIn.openDrainState[i] := NOT(stIn.openDrainState[i]);
	END_IF
	IF i <= 5 THEN
		stIn.gpioOut[i] := NOT(stIn.gpioOut[i]);
		stIn.gpioDir[i] := NOT(stIn.gpioDir[i]);
	END_IF;
	stIn.relayState[i] := NOT(stIn.relayState[i]);
END_FOR