Help PLZ, confused in Data Comparison

Thanx LD. Thanx alot...!

I have simulated your code, it is working properly. But i am confused in some of your STL text that why have you written these. For example in FC1, why u have written first nine lines.

Can you write comment in front of these. I mean purpose of each line....? Remaining program i have got completely. But only these lines are confusing.

FC1.jpg
 
OK.

It means you have used DB POINTERS. DB Pointer contains both the DATA BLOCK NUMBER and DATA ELEMENT ADDRESS.

DATA BLOCK NUMBER is a 16-bit Integer Value.
DATA ELEMENT ADDRESS is a 32-bit AREA CROSSING POINTER.

U have initially wrote this command:

L P##pLookUp

// pLookUp is a local input Variable And you have assigned this value DB1.DBX0.0

LAR1

// Load the value (DB1.DBX0.0) in Address Register-1

L W[AR1, P#0.0]

// This instruction means that LOAD the Accumulator with the contents of Marker Word addressed by the sum of AR1 and the Offset P#0.0.
Then how to get the DB number from the above instruction............?

T #iDB
// Transfer the DB number for next time opening the DB......it is OK.

L D [AR1, P#2.0]

// Also how this instruction get area pointer by summing AR1 & P#2.0........?
Plz explain more about these two instruction.
 

Similar Topics

Hi Can I get the programming software and data cable name for allen bredly servo drive which model is 2098-DSD-020x?
Replies
4
Views
2,225
I need some assistance to any Siemens Gurus' who can help me convert the following from STL to Lad. I have tried all the old tricks I can...
Replies
4
Views
4,314
Any body here to help me regarding S7-300
Replies
4
Views
1,359
hey evry one i have this problem In the system with S5 CPU 927 it is work ok, but i try to run another four CPU 927 for backup but no one of the...
Replies
10
Views
3,903
sir plz tell me how to interface servo motor with abb micrologoc 1400b plc plz give me detail of instruction and wht type driver may i use or tell...
Replies
5
Views
2,523
Back
Top Bottom