Skip to content

Commit 45e4e2f

Browse files
committed
Updated the Maximum Read/Write Length to ushort
1 parent bac7586 commit 45e4e2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RICADO.Omron/OmronPLC.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ public int Retries
109109

110110
public string ControllerVersion => _controllerVersion;
111111

112-
public int MaximumReadWordLength => _plcType == enPLCType.CP1 ? 499 : 999;
112+
public ushort MaximumReadWordLength => _plcType == enPLCType.CP1 ? 499 : 999;
113113

114-
public int MaximumWriteWordLength => _plcType == enPLCType.CP1 ? 496 : 996;
114+
public ushort MaximumWriteWordLength => _plcType == enPLCType.CP1 ? 496 : 996;
115115

116116
#endregion
117117

0 commit comments

Comments
 (0)