[r67]: / trunk / IoDrvMEGAIO / IoDrvFB / ICmpIoDrv / IoDrvReadInputs / svnobj  Maximize  Restore  History

Download this file

20 lines (19 with data), 2.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
METHOD IoDrvReadInputs : UDINT
VAR_INPUT
	pConnectorMapList : POINTER TO IoConfigConnectorMap;
	nCount : DINT;
END_VAR
VAR
IoDrvReadInputs_Count := IoDrvReadInputs_Count + 1;
IF pConnectorMapList = 0 OR nCount = 0 THEN
	IoDrvReadInputs := Errors.ERR_PARAMETER;
	RETURN;
END_IF
FOR i:=0 TO nCount - 1 DO
	IF (pConnectorMapList[i].dwNumOfChannels = 0) THEN
		CONTINUE;
	END_IF
		IoMgrCopyInputLE(ADR(pConnectorMapList[i].pChannelMapList[j]), pConnectorMapList[i].pChannelMapList[j].pParameter^.dwDriverSpecific);
	END_FOR	
END_FOR
IoDrvReadInputs := Errors.ERR_OK;