Skip to main content



      Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Issue with IEC 61131-3 FIND (string conversion) function block
Issue with IEC 61131-3 FIND (string conversion) function block [message #1784497] Wed, 28 March 2018 12:52 Go to next message
Eclipse UserFriend
Hello,

I'd like to double check and get some clarifications whether the source code of the IEC 61131-3 FIND function block (in String Conversion) from Git has correct implementation. I recently attempt to recompile FORTE using the original source code from Git. When I try to download a very simple application that uses the FIND function block in FORTE_PC and try to watch the inputs and outputs of the FIND function block, the watch mechanism stops working as it is supposed to be. Meanwhile, the FORTE 1.8.4 exe doesn't produce such behavior and using that exe, the FIND function block works as it supposed to. Also, in my compiled FORTE executable, the LEFT and DELETE function blocks work as it supposed to and I can perform watch normally. Can anyone please clarify regarding this issue?

Regards,
Re: Issue with IEC 61131-3 FIND (string conversion) function block [message #1784610 is a reply to message #1784497] Fri, 30 March 2018 07:16 Go to previous messageGo to next message
Eclipse UserFriend
hi,

I'm not sure what clearly sure what problem you have. But we recently fixed an issue with monitoring when generic data types where involved (e.g., ANY_STRING, ANY_INT) [1]. As these are used in the FIND FB this may affected you. However I also tested the F_FIND FB and I noticed that the output was not correctly forwarded from the FIND function. I fixed this now [2] and I hope that the F_FIND is now working for you.

Generally I think that from a performance perspective functions as FIND are more suitable to be used in ST algorithms then in a FBNetwork.

Furthermore it shows that we need more FB tests. Here we would really need support as writing all this test is a huge effort. Thanks in advance for any support. We also want to make it easier to write tests for FBs [3].



[1] http://git.eclipse.org/c/4diac/org.eclipse.4diac.forte.git/commit/?h=1.9.x&id=437d0a54af1a389c6f2b9cab7cd5d9caed969765
[2] http://git.eclipse.org/c/4diac/org.eclipse.4diac.forte.git/commit/?h=1.9.x&id=f94235d781aafbb38637a3d1a9e00c66c6a7c097
[3] https://bugs.eclipse.org/bugs/show_bug.cgi?id=533054
Re: Issue with IEC 61131-3 FIND (string conversion) function block [message #1784621 is a reply to message #1784610] Fri, 30 March 2018 11:01 Go to previous message
Eclipse UserFriend
Hello Alois,

Thank you so much! I'll look into it and see if it solves the problem.

Btw, the FIND function in the ST appears to produce ANY_INT data type. How can I convert it to another INT type, e.g., DINT, or INT, with ST in 4DIAC? I assume there is the function or syntax in 4DIAC which allows me to do so, but I'm still unable to find it.

Regards,
Previous Topic:Did not correctly import old projects (1.8.4) into 1.9.0
Next Topic:Palette misses components - 4DIAC 1.9.0 RC3
Goto Forum:
  


Current Time: Fri Jul 04 08:31:00 EDT 2025

Powered by FUDForum. Page generated in 0.07865 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top