beautypg.com

Appendix c c language sample programs, Appendix c, C language sample programs – Yaskawa MP920 Communications Module User Manual

Page 277

background image

C-1

C

Appendix C

C Language Sample Programs

This appendix shows samples of the C language programs used for communi-
cation between a 218IF-01 Module and a personal computer or a workstation.

C.1 Sample Programs for Master Station - - - - - - - - - - - - - - - - C-2

C.1.1 TCP (When Using Extended MEMOBUS Protocol (SFC = 09)) - - - - - C-2
C.1.2 UDP (When Using Extended MEMOBUS Protocol (SFC = 09)) - - - - C-7

C.2 Sample Programs for Slave Station - - - - - - - - - - - - - - - - - C-9

C.2.1 TCP (When Using Extended MEMOBUS Protocol) - - - - - - - - - - - - - C-9
C.2.2 UDP (When Using Extended MEMOBUS Protocol) - - - - - - - - - - - - C-15