EasyManuals Logo

COTRUST CTH200 Series User Manual

COTRUST CTH200 Series
350 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #315 background imageLoading...
Page #315 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the COTRUST CTH200 Series and is the answer not in the manual?

COTRUST CTH200 Series Specifications

General IconGeneral
BrandCOTRUST
ModelCTH200 Series
CategoryController
LanguageEnglish