Hi Guys!
I'm trying to implement the Explicit message function Get (or Set) Scattered.
It works like a charm as long as my values are below 32767, but if I get above that value I get negative values as a result.
My Msg function is set up like this:
Message Type: CIP Generic
Service Type: Custom
Service Code: 4Bh
Class: 64h
Instance: 100d
Attribute: 0h
Source Length: 10 bytes
I'm trying to read the Stator resistance on a motor connected to a Danfoss FC302 drive using EthernetIP. The Stator Resistance is located in Parameter 1-30 and it is a 32 bit value.
I have a Request Tag, that is an array of 30 Integer. In Req[0] I have 130.
Am I doing something wrong? To me it seems as if the response should contain:
Res[0]: 130
Res[1]: LSW
Res[2]: MSW
But I only get a value in Res[0] and Res[1] (130 and -30226) the resistance is 3.3510
Best regards,
Michal
I'm trying to implement the Explicit message function Get (or Set) Scattered.
It works like a charm as long as my values are below 32767, but if I get above that value I get negative values as a result.
My Msg function is set up like this:
Message Type: CIP Generic
Service Type: Custom
Service Code: 4Bh
Class: 64h
Instance: 100d
Attribute: 0h
Source Length: 10 bytes
I'm trying to read the Stator resistance on a motor connected to a Danfoss FC302 drive using EthernetIP. The Stator Resistance is located in Parameter 1-30 and it is a 32 bit value.
I have a Request Tag, that is an array of 30 Integer. In Req[0] I have 130.
Am I doing something wrong? To me it seems as if the response should contain:
Res[0]: 130
Res[1]: LSW
Res[2]: MSW
But I only get a value in Res[0] and Res[1] (130 and -30226) the resistance is 3.3510
Best regards,
Michal