2/4/2016 8:01 AM | |
Joined: 1/15/2015 Last visit: 3/22/2022 Posts: 66 Rating:
|
Dear friends i have another question please What is the difference between these two instructions: Note that :IN1 declared as a pointer of the address of DB18.DBX128.0 (16#84000400) FIRST INSTRUCTION : L P##IN1 //NOW THE VALUE IN ACC1=16#85000010,AND THE VALUE IN ACC2=16#84000400 SECOND INSTRUCTION: LAR1 P##IN1 //NOW THE VALUE IN ACC1=16#84000400,AND THE VALUE IN ACC2=16#84000400 Why this happen, both instruction should give same result in both accumulators,But in the first instruction ACC1=16#8500001 which is the address of DI2.0(instance data block 2.0),and ACC2=16#84000400 which is the address of DB18.DBX128.0 ------------------------------------------------------------------------------------------ |
Last edited by: Min_Moderator at: 2/4/2016 1:18:21 PMNew subject after splitting Last edited by: IZ ALJABRE-JORDAN at: 2/4/2016 1:49:16 PM |
|
2/5/2016 2:13 PM | |
Joined: 1/15/2015 Last visit: 3/22/2022 Posts: 66 Rating:
|
Yes Exactly DI is Instance DB please see the attached shots. In FB364(which has DI364) i'm calling FB9. Now in FB9,IN15 points to DI2 not to DI364 AttachmentAttachment.zip (111 Downloads) |
Follow us on