YASKAWA MP920 User Manual page 289

Machine controller
Table of Contents

Advertisement

Appendix C C Language Sample Programs
C.2.1 TCP (When Using Extended MEMOBUS Protocol)
// Extended MEMOBUS Data Length
memex_len = (unsigned short)((unsigned char)rbuf[13]) << 8;
memex_len += (unsigned short)((unsigned char)rbuf[12]);
// Checks the extended MEMOBUS data length.
if (( data_len - 14) != memex_len )
// Extended MEMOBUS data length
// Extended MEMOBUS length (2 bytes)
{
}
// Checks the MFC.
if ( rbuf[14] != 0x20 )// MFC is fixed to 0x20.
{
}
// Checks the SFC.
// Checks within mk_rsp_data().
return( rc );
}
¼
rc = -3;
return( rc );
rc = -4;
return( rc );
-
Total data length
218 header (12 bytes)
C-14
-

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents