HMI Problem
-
I have tried to do the function block
But i just get "build fail."
Do I have to write any more parameter in the block or matter it works directlyFUNCTION_BLOCK IntlToSec VAR_INPUT seconds_int: int; END_VAR VAR_OUTPUT out_time : TIME; END_VAR out_time := mul_time(time#1s, seconds_int); END_FUNCTION_BLOCK -
@zorro_66 is there any more info for the message Build fail?
-
Indicates that it is wrong in any column
But the error changes depending on where I have the cursor standing

-
@zorro_66 Could you share the project? That might be easier to debug...
-
How can I send the project to you i tried to mail but it did not work.
I can not upload this one has no privileges so it's enough -
@zorro_66 Zip the archive and send me a link to google drive/dropbox or any other file sharing service...
-
Hello
Tomas, you've probably got a link to Dropbox and my project
Sorry it took some time to fix but i have been on vacation -
@zorro_66 All input variables of a function block has to be connected or checked as not visible and set a default value. That is missing in your BD13_SwitchOffDelay of Interlocks program.
The second issue is, that in the PLC program mapping, you have mapped two programs that do not exist...

-
Thanks for the quick reply Tomas
Well, I know I had nothing connected to that block but did not think it was the fault.
Because it's on the position my time_Converter was supposed to enter.
Which two programs have I mapped that are not available -
@zorro_66 if you double click on the error in the result table, it will usually show you where the issue is... Or just read what it says.

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login