ControlsDude17
Supporting Member
Hello,
I am programming in S7-1500, V17.
I have some blocks from a drive manufacturer that are not compiling and giving me an error "Invalid function or invalid function block".
They all essentially are following the same example as shown below.
Anyone have any idea on how to solve? (error line is underline and bold)
0: (*idle state*)
IF #Forward OR #Backward THEN
IF #Axis.iAccessID < 0 THEN
IF #Axis.wErrorNo = 0 THEN
#Axis.wErrorNo := #Axis.ErrorNumbers.Axis_Busy;
END_IF;
#Error := TRUE;
#iState := 100;
#bLeave := TRUE;
ELSIF BYTE_TO_INT(%EB(#Axis.iAdrProIn + 1) AND 16#F) > 7 OR BYTE_TO_INT(%EB(#Axis.iAdrProIn + 1) AND 16#F) < 5 THEN//DriveStat
I am programming in S7-1500, V17.
I have some blocks from a drive manufacturer that are not compiling and giving me an error "Invalid function or invalid function block".
They all essentially are following the same example as shown below.
Anyone have any idea on how to solve? (error line is underline and bold)
0: (*idle state*)
IF #Forward OR #Backward THEN
IF #Axis.iAccessID < 0 THEN
IF #Axis.wErrorNo = 0 THEN
#Axis.wErrorNo := #Axis.ErrorNumbers.Axis_Busy;
END_IF;
#Error := TRUE;
#iState := 100;
#bLeave := TRUE;
ELSIF BYTE_TO_INT(%EB(#Axis.iAdrProIn + 1) AND 16#F) > 7 OR BYTE_TO_INT(%EB(#Axis.iAdrProIn + 1) AND 16#F) < 5 THEN//DriveStat