Yaskawa MP920 Communications Module User Manual
Page 282
Advertising
Appendix C C Language Sample Programs
C.1.1 TCP (When Using Extended MEMOBUS Protocol (SFC = 09))
C-6
// Checks the number of registers.
if (( rbuf[18] != 0x0A ) || (rbuf[19] != 0x00))// Not 10 words.
{
rc = -8;
return( rc );
}
// Reads the register data rbuf[20] and the data that follows.
return( rc );
}
Advertising