9/15/2009 10:23 AM | |
Joined: 10/7/2005 Last visit: 4/26/2024 Posts: 3004 Rating: (1046) |
It depends on the S5 you are using dear swing7. 115U: Addresses are either fixedbased on the Slot (if no expansion rack exists or an IM305 is used) OR they are setable per Slot via DIP switches of an IM306 (if an IM306 exist). Either way, shifting an I/O card into a different Slot will affect its address, if you have an Im306 you can however adjust the Slot address. 135U/155U: Shift I/O cards as much as you like, addresses are set on the DIP switch of each I/O card and "travel" with the shifted I/O card.
Just a couple of pointers to get you started: 1.) IW 0 is "made up" of IB0 and IB 1. The next input WORD starts at IW 2 2.) QW8 is"located" in the internal PIQ memory area (Process Image of the Outputs). Its contents will be automatically transfered to Peripheral Output Word 8by the operating system of your S5 after each OB1 scan is finished. Doing L QW8 - T PW8 simply speeds this process up but I have a feeling it is NOT what you actually want to achieve. I don't exactly know why your S5 goes into Stop, but it could be becauseyou areusing I/O addresses that do NOT exist. TheISTACK (interrupt Stack) of your S5 will tell you more about the cause of the crash. I suggest you do the following: 1.) Note down all of the existing/occupied I/O addresses of your S5 (without the IM308C). This thread has some possibly useful info on how to determine what addresses are used: IM308C addressing Make sure you do NOT use these inyour IM308C configurationand instead find spare addresses. 2.) Consider using the extended I/O area for your IM308C if you don't have anough spares in the peripheral I/O area. This extended I/O area isthe so called "Q area" (instead of "P" for peripheral area) andcontains another 256 Bytes of Inputs and Outputs. Note that declaration of I/O's in the "Q area" is done via using an "Q" in the IM308C config (e.g. Q 052) and using "O"in your S5 program (e.g.T OW52). 3.) Check too if your S5 has an Address list DB1 in it. If so - and should youuse the P area for your IM308C - add anynew IM308C addresses that exist in the P area of Byte 0 - 127 to it. I hope this helps to to at least get you started. Let us know how it goes and if you have follow up questions please post the type of S5 (CPU)that you are using and ideally post the S5 program together with your COM Profibus configuration file. |
Cheers |
|
9/15/2009 11:08 AM | |
Posts: 15 Rating: (0) |
Dear fritz, Thanks for the information provided!! I will be trying them out and hopefully something will work. Thank u again. Have a good day. |
9/24/2009 10:16 AM | |
Joined: 10/7/2005 Last visit: 4/26/2024 Posts: 3004 Rating: (1046) |
Hello again swing7 you are correct, there are certain limits that apply in your case which are: 1.) A maximum16 I/O modules can be configured for a DP-DP coupler. 2.) 244 Bytes is the maximum number of OUTPUTS (for P and Q area usage& NO consistency, relevant for what you want to do) 3.) 122 Bytesis the maximum number of INPUTS(for P and Q area usage, consistent or not). This means that you should have no problems with your required 224 Bytes of OUTPUTS, attached is also a screendump which shows and example config as well as the "limits" table 6.1 from the ET200/IM308C manual which you can download HERE (just in case you don't have it yet). Note too that an extra IM308C will not help (the DP-DP coupler is a DP-Slave of ONE IM308-C and can't be "shared", so you'll need another DP-DP coupler too and then you are still "limited" by your S5 address range). Should you need to transfer more I/O add only another DP-DP coupler to the same IM308C and find more "spare" I/O's in theS5 P & Q address range or go for (more cumbersome) FB192DP-Window addressing and/or page addressing (and read the manual and notes in it very CAREFULLY if you know whatI mean). I hope this helps, but if you still have problems with your config I suggest you post your COM Profibus file here for analyses. |
Cheers |
|
9/30/2009 10:35 AM | |
Joined: 10/7/2005 Last visit: 4/26/2024 Posts: 3004 Rating: (1046) |
Oops, nevermind whatI wrote before then (must have been wishful thinking on my behalf,I typically use DP-DP couplers for this purpose). Anyway,you should in this case have no problems using/configuring 244 Bytes of Inputs and 244 Bytes of Outputs for the IM308C DP Slave. If you can't, please attach the COM Profibus *.pb5 file (rather than just a screendump of it). |
Cheers |
|
Follow us on