Ошибка 4268 необходимо выражение codesys
Обновлено: 04.11.2024
I am currently working on ABB PLC, I tried to upload the program from PLC but I cann't make it. Now I got the backup program which have number of errors. The errors are
Error4268:RECIPE(32):Expression expected.
Error4052:RECIPE(32):"must be a declared instance of function block'ADDSUB'
Please help me on this. How to remove this error?
Lifetime Supporting Member Join Date: Apr 2004 Location: Israel Posts: 615Can you upload the code?
Which PLC are you using?
Member Join Date: Nov 2011 Location: Aurangabad Posts: 9I am using CPU PM571, with CD522, DC522, AX521 modules.
Code is attached here with
Member Join Date: Dec 2012 Location: Koprivnica, HR Posts: 418 Quote: Originally Posted by kamError4268:RECIPE(32):Expression expected.
Error4052:RECIPE(32):"must be a declared instance of function block'ADDSUB'
Please help me on this. How to remove this error?
First error was probably due to forgotten semicolon at the end or = instead of :=
Second error: you forgot to declare function block instance as variable:
balash |
View Public Profile |
Find More Posts by balash |
I checked program many times, we have given all necessary punctuation marks. Also we have declared each function block.
For ex. TRAVERS_MTR: AC500_REAL_AO;
SPOOLADD: ADDSUB;
Program.zip (40.2 KB, 17 views) |
well i can't really much compile cause i have codesys integrated with control builder, and i miss lots of your custom libraries and PLC conf but.
if i am not wrong i think you forgot to name the instance of "addsub" box in rung 32. every functionblock box must have instance that is name of the functionblock box.
that would solve one problem i guess.
not much help with second problem cause i'm cripled without conf and libs needed.
balash |
View Public Profile |
Find More Posts by balash |
Thanks for your reply.
I have resolved all the errors by following steps.
1. If you observe the PLC configuration you won't found CD522 module, so to insert this module I upgraded my CoDeSys.
2. The programmer have declared the Function Blocks by some variable name, but forgot to give that variable name to certain block.
For ex. in OUTPUT (11) he used AC500_REAL_AO, but didn't give the variable name to this function block, but he declared this block by 'LEFT SPOOLER3'. So I give the same name to function block. and Bingo.
But not while going online I am going through a error. I have attached this for reference.
Читайте также: