Need Help with S7-1500

ControlsDude17

Supporting Member
Join Date
Apr 2021
Location
Toledo, OH
Posts
19
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):p AND 16#F) > 7 OR BYTE_TO_INT(%EB(#Axis.iAdrProIn + 1):p AND 16#F) < 5 THEN//DriveStat

Screenshot 2023-12-28 114324.png
 

Similar Topics

Hello. 1) Selco M3000 configured to 4-20mA on input 41 to read temperature from PT100 2) PT100 connected through M1500 transmitter (connected...
Replies
2
Views
1,443
Hello, this is my first project using a panelview + with anything other than controllogix. I setup my runtime and design connections, and it adds...
Replies
6
Views
1,996
Hi Again, I have a pool wall line that I would like to update. It consists of a payout reel, corrugator, 2 punch presses, a shear, and a take-up...
Replies
3
Views
3,487
I'm trying to save the recipe file from the plc to the PC, I have tried saving while online but I don't see it when I'm offline. The recipes are...
Replies
3
Views
2,040
Hey Guys, I need help with configuring the communications between a micrologix 1500 and a nematron hmi. I'm trying to connect it to channel 1...
Replies
7
Views
4,783
Back
Top Bottom