Skip to content

Commit

Permalink
fix limit for writing parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ThKindler committed Apr 16, 2024
1 parent 7408463 commit 5ada968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Blocks/Drives/classWriteDriveParams.st
Original file line number Diff line number Diff line change
Expand Up @@ -630,13 +630,13 @@ NAMESPACE Simatic.Ax.LAcycCom
VAR_TEMP
tempLoopIndex : Int;
end_VAR
If element_no = -1 and statCountOfElements < LAcycComConstantsInt#LACYCCOM_READ_PARAMETERS_UPPER_LIM Then
If element_no = -1 and statCountOfElements < LAcycComConstantsInt#LACYCCOM_WRITE_PARAMETERS_UPPER_LIM Then
dataset[statCountOfElements] :=datasetItem;
AddatasetItem := statCountOfElements;
statCountOfElements := statCountOfElements + 1;

elsif element_no > -1 and
element_no < LAcycComConstantsInt#LACYCCOM_READ_PARAMETERS_UPPER_LIM and
element_no < LAcycComConstantsInt#LACYCCOM_WRITE_PARAMETERS_UPPER_LIM and
element_no <= statCountOfElements Then
dataset[element_no] :=datasetItem;
If element_no = statCountOfElements Then
Expand Down

0 comments on commit 5ada968

Please sign in to comment.