Subject: | Bug in Modbus Client.pm exception table |
Date: | Tue, 30 Jul 2013 09:46:51 -0600 |
To: | bug-Modbus-Client [...] rt.cpan.org |
From: | Tyler Brandon <tbrandon [...] gmail.com> |
In Modbus/Client.pm
my @exception = ("", # 0 == no exception
"ILLEGAL FUNCTION",
"ILLEGAL DATA ADRESS",
"ILLEGAL DATA VALUE". <-- Bug here (see the dot)
"SLAVE DEVICE FAILURE",
"ACKNOWLEDGE",
"SLAVE DEVICE BUSY",
"NEGATIVE ACKNOWLEDGE",
"MEMORY PARITY ERROR",
);
Also this table is inaccurate regarding Modbus exceptions.
The table should be:
my @exception = ("", # 0 == no exception
"ILLEGAL FUNCTION", # 01
"ILLEGAL DATA ADRESS", # 02
"ILLEGAL DATA VALUE", # 03
"SLAVE DEVICE FAILURE", # 04
"ACKNOWLEDGE", # 05
"SLAVE DEVICE BUSY", # 06
"UNKNOWN", # 07
"MEMORY PARITY ERROR", # 08
"UNKNOWN", # 09
"GATEWAY PATH UNAVAILABLE", # 0A
"GATEWAY TARGET FAILED TO RESPOND", # 0B
);
Thanks.