step-7

harrydeharry

Member
Join Date
May 2008
Location
Delhi
Posts
237
Dear All,
I write the below lines and I found only in first byte of db the data is moving it does not shift to db2.dbx1.0 from db2.dbx0.7.
is it the right way of doing or not.

AN DB100.DBX 722.0 // object scanned
R DB2.DBX 16.6

A DB100.DBX 722.0
AN DB2.DBX 16.6
JCN end
L DB2.DBD 0
SLD 1
T DB2.DBD 0
S DB2.DBX 16.6
A DB100.DBX 722.1 // quality code ok if 1 rejected if 0
S DB2.DBX 0.0

end: NOP 0
 
The bit pattern would be as below:

DB2.DBB0........DB2.DBB1.........DB2.DBB2..........DB2.DBB3.......
7.6.5.4.3.2.1.0 .7.6.5.4.3.2.1.0 .7.6.5.4.3.2.1.0 .7.6.5.4.3.2.1.0

To make SDL work, you would need to put the initial bit in DB2.DBX3.0

the bit would move from .0 to .7 in DB2.DBB3 then to DB2.DBX2.0.

so this bit
A DB100.DBX 722.1 // quality code ok if 1 rejected if 0
S DB2.DBX 0.0

should be
A DB100.DBX 722.1 // quality code ok if 1 rejected if 0
S DB2.DBX 3.0
 
Last edited:

Similar Topics

I am having a step7 v5.4 program where the blocks are encrypted and locked. And the manufacturer is stopped the support. Is there any ways to...
Replies
2
Views
229
Good Morning, Hoping someone with some Siemens experience can give me a hand with this one. Customer has a S7-200 cpu, which has a 6GK7...
Replies
0
Views
271
HI! HOW COULD I OBTAIN THE NAMES OF THE STEPS OF A ROUTINE IN SFC LANGUAGE IN STUDIO5000? Or is there a system variable that gives me those...
Replies
0
Views
364
I'm just trying to figure out the right method of adding a DO card to an existing rack. It's not the *next* open slot, but I have to move the AO...
Replies
5
Views
601
Hi Siemens Experts, I am hoping someone can shed some light on my issue. I have uploaded the code from a S7-300 (317-2PN/DP) using Step 7...
Replies
9
Views
746
Back
Top Bottom