T
Dear all,
STEP7 offers the possibility, do structure data blocks by means of STRUCTs or user defined datatypes.
I receive data from a Profibus slave that has the following structure:
BYTE state1
WORD value1
BYTE state2
WORD value2
....
It is no problem to read the 1st state using L DBB 0 and the 1st value using L DBW 1. But for the sake of documentation (symbols, comments) I should like to declare this structure in the data block.
If I try to do so and after declaring the first BYTE member, Step7 (V 5.0, service pack 2) insists on placing the next member at address 2.
Am I doing something wrong?
STEP7 offers the possibility, do structure data blocks by means of STRUCTs or user defined datatypes.
I receive data from a Profibus slave that has the following structure:
BYTE state1
WORD value1
BYTE state2
WORD value2
....
It is no problem to read the 1st state using L DBB 0 and the 1st value using L DBW 1. But for the sake of documentation (symbols, comments) I should like to declare this structure in the data block.
If I try to do so and after declaring the first BYTE member, Step7 (V 5.0, service pack 2) insists on placing the next member at address 2.
Am I doing something wrong?