DVP-15MC Series Motion Controller Operation Manual
8-230
8.14.2.14 Ehternet Free Protocol Example
Programming Example
Example of how to use ETH_Socket_Config instruction:
Variable table and the program
Variable name Address Data type Initial value
TEST_BEGIN BOOL
ETH_Socket_Manage0 ETH_Socket_Manage
M_En BOOL
M_SEN BOOL
M_Valid BOOL
M_SR BOOL
M_LErr BOOL
ETH_Socket_Config0 ETH_Socket_Config
CON_Ex BOOL
CON_PType USINT 1
CON_IP1 USINT 192
CON_IP2 USINT 168
CON_IP3 USINT 1
CON_IP4 USINT 10
CON_RP UINT 502
CON_LP UINT 502
CON_KT UINT 30
CON_Done BOOL
CON_Bsy BOOL
CON_Err BOOL
CON_ErrID WORD
ETH_Socket_Open0 ETH_Socket_Open
O_Ex BOOL
O_SMode BOOL TRUE
O_Done BOOL
O_Bsy BOOL
O_Err BOOL
O_ErrID WORD
ETH_Socket_Send0 ETH_Socket_Send
S_Ex BOOL
S_Abort BOOL
S_CR BOOL TRUE
S_CT UINT 100