Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fix in Parsing of FB and Datablocks and Proper S7Attribute Parsing #75

Merged
merged 2 commits into from
Jul 28, 2017
Merged

Bug Fix in Parsing of FB and Datablocks and Proper S7Attribute Parsing #75

merged 2 commits into from
Jul 28, 2017

Conversation

StefanHasensperling
Copy link
Contributor

Bug fix when parsing the FB or DB Interface, the the Actual values where not available

Added BlockAttributes and BlockVersion to the S7Block.

I encountered an problem when parsing the Block Version. With my testing data, the blocks have always been Version 1 (0.1) even though they should have had a different version. This was al ready like this in the raw MC7 code on Byte 2. So either the BLock version is stored at an different offset, or something else is going wrong.

…ues present.

Added BlockAttributes and BlockVersion to the S7Block.

I encountered an problem when parsing the Block Version. With my testing data, the blocks have always been Version 1 (0.1) even though they should have had a different version. This was al ready like this in the raw MC7 code on Byte 2. So either the BLock version is stored at an differnet offset, or something else is going wrong.
@StefanHasensperling
Copy link
Contributor Author

Just for information. The bit 0 in the attributes is true if the block is linked and false if not (made some tests). This is actually different from what the simatic manager shows. The simatic manager essentially shows this status reversed, it has an unlinked attribute instead an linked attribute.

@jogibear9988 jogibear9988 merged commit 746b100 into dotnetprojects:master Jul 28, 2017
@jogibear9988
Copy link
Member

Thanks again!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants