Hi, with some small tweaks in my code i can read all the variables from a s7-1500 with the 0.3 version. I will switch to 0.3.1 after release.
Thx for this awesome library. Below some proof :) timestamp driveSetFreqInPercent currentDrivePercent currentSpeedInRpm 1551966078526 50 50.0 690.0 1551966079540 50 50.0 690.0 On 3/6/19 1:51 PM, Tim Mitsch wrote: Hello Gunther This bug is known and we fixed it already in development branch. The problem is not the amount of variables rather than one-byte variables like BOOL,BYTE,USINT, ... - Simens uses a filling-byte when acquiring a single one-byte request Right now we have the bugfix-release 0.3.1 as RC1 in vote, so you can try using a checkout development-branch from GitHub or just wait a few days until vote is finished and the version is available on MavenCentral. Or you can use the staging-repository by integrating that in your pom and change plc4x-version to 0.3.1: https://repository.apache.org/content/repositories/orgapacheplc4x-1008 Best Tim Am 06.03.19, 13:40 schrieb "Gunther Gruber" <[email protected]><mailto:[email protected]>: I try to read multiple variables synchronous from a S7-1500 and get a exception. I use the code from the hello world example. When i split up the variables into smaller units like 5-8 it works. any suggestion on this? Is there a limit to the number of variables? Gunther String vars = "%Q73:WORD,%Q75:WORD,%I73:WORD,%I75:WORD,%I74:WORD,%I77:WORD,%F81.1:BOOL,%Q82:REAL,%F86:INT,%F89:REAL,%I40:INT,%Q2.5:BOOL,%Q3:INT,%I66:WORD,%Q20:REAL,%I61:WORD,%Q25:WORD,%I58.0:BOOL,%F1:BYTE,%F1.0:BOOL,%F1.1:BOOL,%F1.2:BOOL,%F1.3:BOOL,%F28.0:BOOL,%I58:WORD,%F0.7:BOOL,%F0.6:BOOL,%F0.5:BOOL,%F0.4:BOOL,%F0.3:BOOL,%F0.2:BOOL,%F0.1:BOOL,%F0.0:BOOL,%F0:BYTE"; for (String item : splitVariables(vars)){ variables.add(item); }
