Ralf

CP2E 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.

8 posts in this topic

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

63062cf643364_mrplcprobleemerrors.thumb.

 

Share this post


Link to post
Share on other sites

You cant add a string like that. Instead use CONCAT.

Share this post


Link to post
Share on other sites

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 by BITS N BYTES
Update attchment

Share this post


Link to post
Share on other sites
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

I think its the CASE statement as well.

Edited by photovoltaic

Share this post


Link to post
Share on other sites
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

Note that for the CP2E function block cannot use STRING data types.

 

CP2E FB Data Restrictions.jpg

Share this post


Link to post
Share on other sites

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now