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 #150 background imageLoading...
Page #150 background image
Applications
140
Using a standard cable to connect the PC with UDP_PPI master (CTH200).
Step 2: Set communication
Create a new project in MagicWorks PLC and add a CTH200 station, refer to chapter 2.2
Communicate with CTH200 PLC Communication Settings to establish a communication
connection between CTH200 PLC and PC.
Step 3: Program for UDP_PPI master (CTH200)
There are two methods to Read/Write the UDP_PPI Master.
Using UDP_NETR/UDP_NETW Instructions to program for the UDP_PPI Master
Parameter table for UDP_NETR/UDP_NETW Instruction:
D
A
E
0
Error Code
0
The 1st byte for IP Address
1
The 2nd byte for IP Address
2
The 3rd byte for IP Address
3
The 4th byte for IP Address
4
The upper byte for port number
5
The lower byte for port number
6
The 1st byte for remote station pointer <I, Q, M, V, DB> (4 bytes)
7
The 2nd byte for remote station pointer
8
The 3rd byte for remote station pointer
9
The 4th byte for remote station pointer
10
Data length
11
Data byte 0
12
Data byte 1
13
...
...
Data byte 199
211
D: Done (Function completely), 0= No, 1=Yes
A: Active (function sequence), 0=No, 1=Yes
E: Error, 0=No, 1=Yes
The lower 4 bits of the 1st byte is error code, defined as following:
Error Code
Description
0
No error
1
Timeout Error; no response from remote station
2
Receive error; validation, frame or checksum error in the response
3
Offline error; duplicate address or Conflicts resulted by hardware fault
4
Queue overflow error; activated more than 8 UDP_NETR/UDP_NETW
block
6
illegal parameter; UDP_NETR/UDP_NETW table contains an illegal or
invalid value
7
No resources; the remote station is busy (uploading or downloading
sequences)
8
Error in layer 7; violate the application protocol
9
Information error; Data address error or Data length incorrect

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