[r78]: / trunk / Monarco / Monarco_FB / private / DI / getDInBool / svnobj  Maximize  Restore  History

Download this file

13 lines (12 with data), 1.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
//  Read the Digital In channel value's as seperate booleans
METHOD PRIVATE getDInBool : MNR.eMonarcoComStatus;
VAR_OUTPUT
	xDIn0 : BOOL;
	xDIn1 : BOOL;
	xDIn2 : BOOL;
	xDIn3 : BOOL;
END_VAR
xDIn0 := THIS^._abyIntRxBuf[7].0;
xDIn1 := THIS^._abyIntRxBuf[7].1;
xDIn2 := THIS^._abyIntRxBuf[7].2;
xDIn3 := THIS^._abyIntRxBuf[7].3;