Skip to content

Commit

Permalink
change 104 IOA to start at 1 (sandialabs#24)
Browse files Browse the repository at this point in the history
Co-authored-by: jarwils <[email protected]>
  • Loading branch information
spitfirejmw and spitfirejmw authored Mar 25, 2024
1 parent af7c8ef commit d4f3f95
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ class Register:
TYPE['iec60870-5-104'] = {
'analog-read': 'analog-input', 'analog-read-write': 'analog-output',
'binary-read': 'binary-input', 'binary-read-write': 'binary-output'}
addresses = {'dnp3': 0, 'dnp3-serial': 0, 'bacnet': 0, 'iec60870-5-104': 0,
addresses = {'dnp3': 0, 'dnp3-serial': 0, 'bacnet': 0, 'iec60870-5-104': 1,
'input-register': 30000, 'holding-register': 40000, 'discrete-input': 10000,
'coil': 0, 'float-point': 1000, 'single-point': 3000}

Expand Down Expand Up @@ -634,6 +634,6 @@ def __init__(self, devname, field, fieldtype, devtype, protocol, range_, reg_con

@staticmethod
def reset_addresses():
Register.addresses = {'dnp3': 0, 'dnp3-serial': 0, 'bacnet': 0, 'iec60870-5-104': 0, 'input-register': 30000,
Register.addresses = {'dnp3': 0, 'dnp3-serial': 0, 'bacnet': 0, 'iec60870-5-104': 1, 'input-register': 30000,
'holding-register': 40000, 'discrete-input': 10000, 'coil': 0,
'float-point': 1000, 'single-point': 3000}

0 comments on commit d4f3f95

Please sign in to comment.