Posted 24 Aug 2022 Hello. I am writing a function block and i am getting the following error: ERROR: STRING type or an Input Output variable is not supported by the PLC of this unit version. Check the unit version in program check options. When i try to remove the string i get error: instruction is not available for current plc Is there somewhere where i can see which instructions i can use? Or is it not the string or one of my in or outputs I am doing something wrong with? Kind regards, Ralf Share this post Link to post Share on other sites
Posted 24 Aug 2022 You cant add a string like that. Instead use CONCAT. Share this post Link to post Share on other sites
Posted 24 Aug 2022 (edited) There ARE some restrictions on the CP2E series PLC's relating to Function Blocks and Structured Text. See manual W614. Attached is extract from manual for ST. This MAY be causing your issue. W614-E1-01.pdf Apologies, original attachment was not working W614-E1-01-Extract.pdf Edited 24 Aug 2022 by BITS N BYTES Update attchment Share this post Link to post Share on other sites
Posted 24 Aug 2022 1 hour ago, photovoltaic said: You cant add a string like that. Instead use CONCAT. This did not solve my issue but no doubt prevented a future not yet identified issue so thanks! 55 minutes ago, BITS N BYTES said: There ARE some restrictions on the CP2E series PLC's relating to Function Blocks and Structured Text. See manual W614. Attached is extract from manual for ST. This MAY be causing your issue. W614-E1-01.pdf I will look into this and update with findings, thank you! Share this post Link to post Share on other sites
Posted 24 Aug 2022 (edited) I think its the CASE statement as well. Edited 24 Aug 2022 by photovoltaic Share this post Link to post Share on other sites
Posted 25 Aug 2022 17 hours ago, BITS N BYTES said: There ARE some restrictions on the CP2E series PLC's relating to Function Blocks and Structured Text. See manual W614. Attached is extract from manual for ST. This MAY be causing your issue. W614-E1-01.pdf Apologies, original attachment was not working W614-E1-01-Extract.pdf Hey it says "number-string conversion functions no" and since i'm turning WORDS into strings i am assuming that's what is going on. The TXD does require me to input a string. is it possible to write and read into the D memory from FB? I googled but couldn't find this. Then it would be possible for me to do what i want (i would have less functionality in the fb which would be slightly annoying during programming but it's a concession i'd have to make) Share this post Link to post Share on other sites
Posted 25 Aug 2022 Note that for the CP2E function block cannot use STRING data types. Share this post Link to post Share on other sites
Posted 25 Aug 2022 Yes i found that out now! I no longer use strings. Not exactly the function block functionality i had in mind but it compiles all good and well i'll use tomorrow for testing. Thanks for all of your help! Share this post Link to post Share on other sites