Dear All,
i am trying to connect Danfoss inverter with s7 200 cpu 226.but microwin shows following error at DATA Ptr.i assigned different VB memory (etc vb100,vb1100,vb0) but always show same error
Compiling Program Block...
MAIN (OB1)
Network 2, row 1, col 2: ERROR 36: (operand 5) The size or data type is not valid for the instruction operand.
SBR_0 (SBR0)
MBUS_CTRL (SBR1)
MBUS_MSG (SBR2)
MBUSM1 (SBR3)
INT_0 (INT0)
MBUSM2 (INT1)
Block Size = 0 (bytes), 1 errors
I haven't used the Modbus library, so can only give a rough guide, a 'Pointer' in Microwin is shown by using the '&' symbol, so using VB100 is no good, it would need to be &VB100. I don't know if there is any other setting up you would have to do to be able to use that memory location as a pointer. Here is the Siemens Manual for the S7-200 , chapter 12 covers using the Modbus library, and if you search in the pdf for 'pointer' you will get a load of hits.