yes that is the modbus protocol you are seeing.
I am assuming PLC since you havent said what your sending to. ON the PLC side on your com port tick off Hex values not ascii.
In your PLC Drop the number into a register then if from that point you need to change its type do so there. I.e. Load it out, change it to Binary, real, The or whatever and then send that value to the display. If you display requires Ascii you may need to change the register value trough an Ascii filter, then to your display.
If your using Peters board, then ask Peter.
scott
Scott,
The line;
X-Axis DRO = 65535.0000 -> Modbus "02 06 00 00 FF FF 88 49"
is a dump of the Modbus data leaving the PC. The slave device has nothing to do with this yet.
The line is showing what is being sent out of the PC. It shows that the Brain is converting 65535.0000 to the integer 65536 (FFFF hex). and is writing it to address 0000. The problem is that this is not what is wanted.
The line
Mach3 X-Axis DRO shows +9.9750 and send "02 06 00 00 00 09 49 FF" over Modbus
.
Shows that reals are being converted to integers as the decimal part is being truncated.
The line,
X-Axis DRO = 65536.0000 -> Modbus "02 06 00 00 00 00 89 F9"
Shows that brains can only handle 16 bit integers as 65536 equates to 10000 hex and as such the leading 1 is lost. This is not such an issue as 16 bits is the standard integer size.
Either the brain needs to convert the value to a floating point number that the Modbus slave understands, or the brain needs to convert it to ascii characters that the slave can display. This is what the ModIO would require.
It really comes down to the functionality that Brains can provide. The macropump scripting had a function to convert a string and sent it out via Modbus. Very useful for displaying DRO etc.
I don't think that Brains has anything like this. At this stage the functionality of Brains is very primitive compared to what the MacroPump could do.
To do the ascii conversion in Brains would require a lot of runs just to conver a single DRO.
Cheers,
Peter.
Cheers,
Peter.