NAIS PLC function call

TEOWK

Member
Join Date
Oct 2004
Location
Batu Pahat
Posts
38
Dear All,
I was trying to write a function and call that function in NAIS FPWIN Pro Structure text format. In FUNCTION BLOCK format it works well. However, when I work with structure text, the erroe "No overloading of funtion FUN1 takes 3 parameters". PLease advise.

FUN1(BOOL):
DATA TYPE: BOOL1, BOOL2 , BOOL3 are VAR_IN

FUN1:= BOOL1 AND BOOL2 AND BOOL3;

MAIN PROGRAM:
DATA TYPE: Result is Boolean BOOL

Result:=FUN1(X1, X2, X3)

Thank you.
 
Hi,

I would suggest to transfer the three X1,2,3 in internal VARs, make a function call by using these VARs and compile again. I also want to check the way you declare your function. No ";" missing in your main code?

Let us know your programming tool version pls and post some ASCII code if you need more.

Laurent
 
NAIS Fuction CALL

Thanks.

The software version is Control FPWIN Pro4, Service Pack:--The IEC 61131-3 Programming System.

If I call the function in Ladder diagram format, a function block will prompt out and all we need to do is fill in the variable input and variable output. But if I use Structured Text format,

OUTPUT := fun ( INPUT1, INPUT2, INPUT3 )

The error "No overloading of fun takes 3 parameters" comes out. In short, I failed to apply the correct way to call that function.
 

Similar Topics

So I started working on this old italian machine and it has an FP0 plc, I am using the fpwin gr 2.7 software and it lets me connect to it and...
Replies
2
Views
3,143
Good morning, Spent some time over the weekend looking for a manual for this thing. Anyone have any info or link to manual? I have a spare unit...
Replies
0
Views
1,371
Hi, I'm new to this Forum. Can anybody help me with following. I want to reprogram an old Matsushita (Panasonic) NAiS FP3 PLC. CPU model no...
Replies
3
Views
3,123
Has anyone used citect to control a NAIS FP0 plc before and if so whats the I/O addressing in citect
Replies
7
Views
2,249
Dear all, I am a student. Please share on the right wiring of the attached PLC (Panasonic Nais FP1-C40. I am using AC connection and able to...
Replies
7
Views
3,634
Back
Top Bottom