EasyManua.ls Logo

COTRUST CTH200 Series - K Instructions of ETHERNET_SET; M Programming Cable

COTRUST CTH200 Series
350 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CTH200 Series PLC User Manual
305
K Instructions of ETHERNET_SET
K.1 Instruction
Instructions ETHERNET_SET (V1.2) is used to set the remote communication parameters of
MagicWorks PLC system block, you can set and get the IP address, MAC address and device
name of the EtherNET PLC without stopping CPU, as well as remote program and monitor PLC
via MICO.
K.2 Instruction Explanation
Its available for free download the ETHERNET_set library file from COTRUST official website:
www.co-trust.com.
The library file includes the following parameters:
Get IP address library
Library name: GIP_ADDR
Function: Get IP address.
Parameters
Name
IN/OUT
Data
Type
Explanation
EN
IN
BOOL
Enable, SM0.0 is allowed to
invoke.
STATUS
OUT
BYTE
Status word
bit0=1, means successfully
acquired the address.
bit1=1 means failed to get the
address.
IP_ADDR
OUT
DWORD
IP address, four bytes in total,
each byte shows the IP address
from low to high.
MASK
OUT
DWORD
Subnet mask, four bytes in total,
each byte shows the subnet
mask number from low to high.
GATE
OUT
DWORD
Gateway, four bytes in total,
each byte shows the gateway
number from low to high.
Set IP address library
Library name: SIP_ADDR
Function: Set IP address.

Table of Contents