Jump to content

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.


Recommended Posts

Posted

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.

 

Posted
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!

Posted
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)

Posted

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...