Merge pull request #4 from fbarresi/master

Fixed variable length for double types
This commit is contained in:
Alexander Seminjakiw
2022-08-21 09:14:44 +02:00
committed by GitHub
3 changed files with 6 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ Scenario: Parsing variable name for bool
| Db | 5 | 887 | 20 | 0 | String |
| Db | 506 | 216 | 1 | 0 | Byte |
| Db | 506 | 216 | 5 | 0 | Byte |
| Db | 506 | 216 | 0 | 0 | Double |
| Db | 506 | 216 | 4 | 0 | Double |
| Db | 506 | 216 | 4 | 0 | DInteger |
| Db | 506 | 216 | 2 | 0 | Integer |
| Db | 506 | 216 | 2 | 0 | Integer |

View File

@@ -186,7 +186,7 @@ this.ScenarioInitialize(scenarioInfo);
"Db",
"506",
"216",
"0",
"4",
"0",
"Double"});
table2.AddRow(new string[] {

View File

@@ -74,6 +74,10 @@ namespace Sharp7.Rx
{
s7VariableAddress.Length = 8;
}
else if (type == DbType.Double)
{
s7VariableAddress.Length = 4;
}
return s7VariableAddress;
}