I just woke up.
I tried control q. Isn't this the same as hitting the label button on the tool bar?
In any case my SFC14 and SFC15 don't have symbolic labels yet.
I still must enter the any pointers in this format.
P#DB85.DBX0.0 BYTE 128
I thought Step7 supported symbols. I tried control q. I hit the label button in the tool bar. There is a menu item where I have all the symbols enabled. I will get the program to run today. I made a FB85 that has the SFC14 and SFC15. The 128 input and output bytes are stored in stat variables InRegs and OutRegs is where the commands and date is to be transfered to the controller.
BTW, many years ago I complained about how to create the DBs for the FBs. This time I remembered that clicking on the ??? above the FB85. This generates the DB85 but that is the problem. Why not right click on the FB?. You need to remember the secret click places to use Step7.
In the diagnostic buffer screen, click on IStack. This probably the most useful debugging tool in S7. I've never had to remove lines of code to troubleshoot code.
I will look for that. I know about the diagnostic buffer. I didn't see any errors listed in the dialog box. Our product pops up a message from the status bar that you click on and it opens the event log so you must go out of your way to ignore the errors.
There is sort of a ping function. From Simatic Manager, there is a "Display Accessible Nodes" function. If you can't see the PLC there, then you simply don't have a connection.
Yes, but it doesn't tell you if the hardware is working or the software just isn't configured. Step7 was telling me the hardware was damaged.
jeebs said:
So this is how I would do it.
1: Create project
2: Insert PLC-station (I take it you have a S7-313C 2DP, so select S7-300 station)
I have a S7-315 2DP. My customer has a S7-313 2DP
3: In the S7-300 station double click on Hardware
4: Once HWConfig is open, right pane, navigate to the S7-300, then rack and Double click on rail.
What I can't drag a connection to the S7 Icon? What about right clicking.
What tells me that is what I need to do next.
5: On right pane navigate to S7-300 CPU's, select S7-313C 2DP, drag it to Slot nr 2.
[/quote]
So I am magically supposed to know I can drag it instead of double click.
What tells me that is what I need to do that next.
6: Upon dragging the CPU here a pop-up window appears asking for the specifics of your Profibus DP network. Add new network with the Add button, configure it as you would in NetPro. Once configured, select that network, select PLC node adress and click ok.
7: I'm assuming the GSD is installed, if not install it now.
8: Right pane > Profibus DP > Additional Field Devices > Motion-Controller > Select RMC150 and drag it to the newly created Profibus DP master system, shown in the upper window.
9: Pop-up window appears asking for Node adress, select 5, I think you wanted and click ok
10: Right pane double click on I/O Mode (32 regs)
I will check this out. What bothers me is that in step 8 it shows the motion controller but not all the configuration options.
11: In the bottom window you should now see the I/O Mode (32 regs) and their adress, being 256-383. Double click that line and change the adress to your liking. Taking into account the CPU range and the already used adresses. Click ok
12: Save and Compile
13: Download
I forgot to add the step where I need to right click on the RMC Icon and go to object properties and set the word order. The word order is not part of the Profibus DP specification. It is in the DPV1 spec. The word order must be set to MSW.
Jeebs, I will try your streamlined version and try doing this without the Netpro. Now that I have done it and documented it this should take about 5 minutes the next time. I am willing to do this in the effort to save our customers hours.
Now where is this procedure in the S7 help? There are bits a pieces but nothing that strings the whole procedure together. That is my complaint.
I tried using LAD. I will remake the project using STL so I can cut and paste it into here if I still have problems after today.
In response to a long criticism against STEP7 in particular and praise of PCs and the C language:
Actually, PCs are on my s-list too. I am getting rid of my Dell running Vista at work. I am going to buy a Mac Pro today and will install Fusion and Win XP for when I must do windows things. My current 2.4 Mhz dual core Dell pi$$ed me off for the last time too. It is running Vista. It is slow and goes to sleep for a minute at a time even while the idle is at 99%. My IT guy says it has 'issues'. I have been torturing the IT guy with every little problem that Vista has. I am sure it contributed to my problems with getting the MPI adapter to work. I refuse to work with inferior tools and I don't put up with much and would be unemployable if I didn't work for Delta. I moved my virtual machine to my laptop that runs XP as the host. Then the MPI adapter started to work. I like working on my desktop because I have 2 24 inch monitors whereas the laptop has only a 17 inch screen.
I have an Mac at home and it has been the most reliable computer I have ever had. My Dell at home has never run for more than a year without crashing and needing to be re-installed. I use it now only for cruising the web and playing games so if it crashes nothing important is lost.
I am an equal opportunity discriminator. Tools are there to help. Tools that cost you more time than the save are not tools, they are garbage.