8/26/2010 4:18 PM | |
Joined: 9/3/2009 Last visit: 8/9/2022 Posts: 11 Rating:
|
Dear all, i have converted S5 program to S7 Program, in that they have not used any analog input or analog output or any counter, the Cpu used here is 95U,inbuilt module address used, I 32.0 to I 32.7 & I 33.0 to I 33.7 I 64.0 to I 64.7 & I 65.0 to I 65.7 in S5 OB13 L PY32 T IB32 what this PY32 is moving to IB32, now what i want to move exactly in S7, to avoide the programming error, please find the program for your reference AttachmentNONAMEST.zip (67 Downloads) |
8/27/2010 1:12 AM | |
Joined: 10/7/2005 Last visit: 6/5/2023 Posts: 2966 Rating:
|
Hello Yokesh Kumar S "L PY32" loads Input Byte 32 directly from the Periphery(i.e. it grabs the latest/current status of the inputs, whereas a "L IB 32" command on the other hand grabsInput Byte 32from the Process Image of the Inputs which was last refreshed before OB1 started a new cycle). What your logicin OB13 (cyclic interupt OB that could kick in at any time) does is to refresh the Process Image of IB 32 with the latest/current status of the inputs. The S5 to S7 converter should have converted this to: L PIB 32 T IB 32 but does tend to fail with the English "PY" mnemonic (its a known "bug" in the S5 converter). You can find out more about "Process Image" and "Peripheral"access in Step 7 helps as well asinlink below: Where and when do you need peripheral addressing? I hope this helps |
Cheers |
|
This contribution was helpful to
2 thankful Users |
Follow us on