STEP7 Professional V13; FB Declaration Static: Data type TON is not allowed here

Traloch

Member
Join Date
Feb 2013
Location
Stuttgart
Posts
29
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 after TIA 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.

See attached pics

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. :site:

Compile_error_TON.jpg Static_error_FB.jpg
 
I was thinking that as well. Just started new one and no issues after compiling!
I think I know what happened, but don't understand why.
I started the project using an example project: smart server for a comfort panel from siemens.
 

Similar Topics

Hello, Dear Friends. i am in need of help , please guide me. i want to download install Siemens step7 Professional edition 2010 5.5 . i have the...
Replies
4
Views
3,013
Hi! I am desperately looking for some simple sample programs to learn Step7. Something like the manual of Working with Step7...
Replies
52
Views
20,329
Dear experts, Two queries: 1) Step7 professional 2010 has to be installed on a PC with Windows 7 Ultimate 32 bit. Later, step 7 v5.5 will be...
Replies
3
Views
4,232
Dear All, Here I got new problem.I installed my STEP7 professional edition upgrade 2006 in my freshly formatted HP Laptop.I move my licence from...
Replies
2
Views
4,331
Back
Top Bottom