Dear all, glad to be here and I hope that we all can benefit from this great community.
I am trying to send and receive data between two Mico850 controllers, however my data types are different (Real, INT, and BOOL). Should I create more than Msg_modbus2, each for each type of data or one read and another write Msg_modbus2 are enough.
Moreover, the data carried in the msg_modbus2 are in WORD format, I can convert INT to WORD using the Convert function (any to word) and (any to int) directly, but how about converting the REAL and BOOL data types?
I can do without REAL as INT can be enough, but how to deal with BOOL data. Should I use some sort of arrays or what?
Please help me as I am frustrated.
Best,
Anwar
I am trying to send and receive data between two Mico850 controllers, however my data types are different (Real, INT, and BOOL). Should I create more than Msg_modbus2, each for each type of data or one read and another write Msg_modbus2 are enough.
Moreover, the data carried in the msg_modbus2 are in WORD format, I can convert INT to WORD using the Convert function (any to word) and (any to int) directly, but how about converting the REAL and BOOL data types?
I can do without REAL as INT can be enough, but how to deal with BOOL data. Should I use some sort of arrays or what?
Please help me as I am frustrated.
Best,
Anwar