Hi
I started programming in step7 but I'm not very skilled in it yet... I think that the question at my answer will be very simple for many of you..
I have to set a number of BITS (for example: the first 20 bits of a data block) in a data block using a pointer.
In all the examples that I found on the web, pointers refers to BYTES or WORD, so I don't know how I can increment the pointer. This is what I did:
Is it correct?
thank you
I started programming in step7 but I'm not very skilled in it yet... I think that the question at my answer will be very simple for many of you..
I have to set a number of BITS (for example: the first 20 bits of a data block) in a data block using a pointer.
In all the examples that I found on the web, pointers refers to BYTES or WORD, so I don't know how I can increment the pointer. This is what I did:
Code:
L P#0.0
T #Generic_Pointer
AUF DB9
SDBB: S DBX [#Generic_Pointer]
L P#0.1
L #Generic_Pointer
+D
T #Generic_Pointer
L #number_of_bits_to_be_set
LOOP SDBB
Is it correct?
thank you