I feel slightly stupid right now (Step 7, S7-300 processor).

Tharon

Member
Join Date
Jan 2007
Location
Other
Posts
1,430
So, I was reworking a machine that was inherited. Very little documentation and absolutely no comments in the program (just uploaded, without a copy), and it used Step 7, which I had very little knowledge about.

I dissected the program, found out what it was doing, and re-wrote and added to it, filling in the comments and symbols. Once finished, I was very happy with the way the program looked.

I go out to the machine and try to download the program and I cannot. Turns out my addresses were to high (I used some M300+ addresses). Apparently I can only use up to 256? I wish it had told me this before when I was saving my work. I guess it only checks syntax, and not whether or not the addresses are even possible for the chosen processor.

So here I am, lesson learned, re-writing my program. Cursing Step 7 under my breath for not warning me in advance while knowing it's really my fault for not having proper training.
 
Did you use symbols for the M addresses ? If so generate source code for all your blocks (using symbolic representation), change the M addresses in the symbol table then re-compile. No re-writing required.
 
Did you use symbols for the M addresses ? If so generate source code for all your blocks (using symbolic representation), change the M addresses in the symbol table then re-compile. No re-writing required.

Ah. Here I already changed the symbol table to represent the new addresses. It's not that much I have to change luckily, just a handful of M addresses sprinkled throughout the program, luckily most of the long stuff I wrote was still in the correct range.

I'll keep that on record though for future reference.
 

Similar Topics

FYI, I have a BSL that may need to shift its Source's bits on contiguous scan cycles; a single BSL will not do that because it only executes a...
Replies
6
Views
1,900
Hey all, I've recently been asked to help spec some SCADAPack controllers for a project. I'm specifically being asked if the E series...
Replies
12
Views
7,969
Well I've been programming different things for the past few years but today I remoted into a client's site to adjust some logic I put in for them...
Replies
3
Views
2,198
I made an application in flex Runtime for entering batches. Can be stored in csv and transfered to the machine. But, when entering data in an...
Replies
2
Views
1,717
in my experience, they dont work well in my field, which is oil and gas production. ive worked with rosemount apex, rosemount 3300, k-tec...
Replies
5
Views
3,888
Back
Top Bottom