cagliostro
Member
Hi guys,
I need realize some modification on CPU947-155U.
The main problem I'm facing is write the code to make a function as SFC20 in S7.
I try to explane better the situation,
I 've the Data block destination (DB180)with 80 words having different format (eg: KT,KH,KF etc. etc.)
So in particular condition, I need to move all the words of the Data block source (DB181) to the DB180.
The data block are exactly the same about the lenght of data and the format also.
So I don't like use for every single word the code:
A DB181
L DW0
A DB180
T DW0
.....
.........
............
.............
I know is possible use the instruction TNB, but really I don't know how to start, for me the Siemens example using the indirect addresses in S5 not very clear.
SO anyone pleasure can send or attach a code example....
Thanks advance
I need realize some modification on CPU947-155U.
The main problem I'm facing is write the code to make a function as SFC20 in S7.
I try to explane better the situation,
I 've the Data block destination (DB180)with 80 words having different format (eg: KT,KH,KF etc. etc.)
So in particular condition, I need to move all the words of the Data block source (DB181) to the DB180.
The data block are exactly the same about the lenght of data and the format also.
So I don't like use for every single word the code:
A DB181
L DW0
A DB180
T DW0
.....
.........
............
.............
I know is possible use the instruction TNB, but really I don't know how to start, for me the Siemens example using the indirect addresses in S5 not very clear.
SO anyone pleasure can send or attach a code example....
Thanks advance