12/11/2020 5:21 PM | |
Joined: 9/27/2006 Last visit: 9/10/2024 Posts: 12282 Rating:
|
Hello Josz; The following page from the FM 451 Positioning Module manual will show you hints: https://support.industry.siemens.com/cs/ww/en/view/48814087/14032914571 You can access the parameters of the channel DB of the FM 451 directly through the peripheral addtesses (using English mnemonics, PIW reading or PQW, writing). Note that yu cannot access bit addresses individually with peripheral addresses, you must write an hexadecimal value to the whole byte or word or Dword. The peripheral address of each parameter depends on the start address for the FM 451 as given in the HWConfig editor; the example in the manual implies that the module starts addresses is given as 512. For more information on peripheral addressing: Where and when do you need peripheral addressing? https://support.industry.siemens.com/cs/tn/en/view/18325417 Note also that it is stated in the manual that ABS_INIT and ABS_CTRL should only be called once when restarting the CPU, so it might be a good idea to call them in OB 100 "Warm Restart". Functions called in OB 100 are executed once, before OB 1 is called (and the program cycle is initiated) and only once. Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 12/11/2020 17:24:25Last edited by: dchartier at: 12/11/2020 17:25:53 |
|
Follow us on