STEP7 Professional V13; FB Declaration Static: Data type TON Not Allowed

T

Thread Starter

Traloch

Product: STEP7 Professional V13
Reference: FB Declaration Static: Data type TON is not allowed here
Description:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Hi,
I'm using Step7 Prof V13 SP1 upd7 & WinCC Adv V13 SP1 upd7.

In my project I'm using a 312CPU, Article No.: 6ES7 312-1AE14-0AB0, Version: V3.3 & TP1500 Comfort, Article No.:6AV2 124-0QC02-0AX0, Version:13.0.1.0

My Issue:
I've taken previously used FB from my Global library and inserted it into my new Project. In this FB I've declared an IEC Timer (TON) in the static section of the FB. When I go to upload to the PLC afterTIA carries out the compilation I get error message 'Data type TON is not allowed here'. I've tried creating a new FB to test and had same issue for CTU,CTD,TOF.

Unfortunately I can't upload screenshots to this forum so hope its clear what the issue is.

This is really strange as it has always functioned before! Has anyone seen or heard of this issue before?

I'd appreciate any help, Cheers.

<b>Moderator's Note:</b> you can use a public share site like Dropbox to post screen shots.
 
We are interested to know too.

Unless I'm mistaken you are using engineering software in the TIA (Totally Integrated Automation) Portal..

Your mistake maybe that you've taken an FB from an archive which is built from S7 v4/v5.5.

Can I suggest you open a new FB then cut and paste code from your software library.

If that does not work then open a new FB then hand write code identical to what you have in your software library.

My understanding of using engineering software in the TIA Portal is for new projects with new coded software.
 
Top