Page properties | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
|
DanLoad6000 driver implements communication with Daniel Measurement and Control on TCP/IP or serial networks. Device compatible with CDU Protocol
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
On This Page:
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
The CDU Protocol Driver facilitates communication between a Control and Display Unit (CDU) and connected systems over TCP/IP or serial interfaces. It enables data exchange by structuring messages based on defined polling cycles, allowing operators to send commands and receive responses. The driver supports ASCII-based interactions, simulating button inputs for remote control. It ensures proper data transmission by managing block sizes, delimiters, and device addressing.
CDU protocol driver implements communication with any device using CDU protocol DanLoad6000 driver implements communication with Daniel Measurement and Control on TCP/IP or serial networks.
Communication Driver Information | |
---|---|
Driver name |
DanLoad6000 | |
Assembly Name | T.ProtocolDriver. |
DanLoad6000 | |
Assembly Version | 1.0. |
2.0 | |
Available for Linux | False |
Interface | TCP/IP, Serial and MultiSerial |
PLC types supported |
Any PLC compatible with |
DanLoad6000 Protocol |
Protocol
Serial and TCP/IP
PC Requirements
Ethernet port
Serial configures settings like BaudRate, Comm, and DataBits, while TCP does not require specific settings, but both require the following:
ServerMode: True
AcceptUnsolicited: True
ListeningPort: This port has to be different for each channel you create. For example. if you have 2 CDU channels, one has to be for example 502, and the other 503, as long as those ports are not being used.
Serial and MultiSerial channels, default configuration:
Multi-threading | User configurable |
Max number of nodes | User defined |
PC Hardware requirements | Standard PC Ethernet interface board, RS485 or RS232 port |
Supported Operands | Q - Query Commnad / R - Reply Command |
BlockSize: Defines the maximum amount of items per group, the default value is 250.
If the communication points are configured in sequence and the BlockSize equals to 250, the driver can create the internal groups with 125 Registers or 2000 Coils.
Default configuration:
DataBits: 8.
StopBits: 1 if parity is used, 2 if no parity.
Set the other fields according to your Serial or MultiSerial port configuration.
NodeConnections: Defines the maximum number of parallel requests that will be sent to each node (asynchronous communication).
SlaveId: Set this field with the address of the slave device in the DanLoad6000 Network. They can be addressed from 1 to 247 for serial nodes, or 0 to 255 for TCP/IP nodes. The address 0 is used for the broadcast.
Station syntax: <SlaveId>
Ex: 1
Station syntax: <ComPort>;<SlaveId>
Where : <ComPort> = COM Port of the slave device in the DanLoad6000 network (default is com1).
Ex: com1;1
Serial channels:
NothingStation syntax: <IP address>;<Port number>;<SlaveId>
Where :
<IP address> = IP address of the slave device in the
ASCII network<Port number>DanLoad6000 network < Port number > = TCP port where the slave device is listening (default is 502).
Ex:
192.168.1.
1011;502;1
The syntax for the ASCII DanLoad6000 communication points is: <SequenceId>:<SizeOf> <Operand><Address>
Where:
<SequenceId><Operand> indicates the
data order where the TX message will be created:Usually is used as “0:46”, so it will starts to read in index 0, and read 46 char, this is, the whole message.
Not necessary to do any setting.
command executed:
<Address> indicates the parameters inside the data struct to send ou receive
Ex: Q001 (Query Command, Parameter = 1)
All commands must use the Read Pooling or Read Trigger.
Block Command: Number of command to be executed:
Example:
08 – Prompt Reset (08h)
56 – Clear Display (38h)
39 – ConfigRecipe (27h)
35 – Set Program Value (23h)
25 – Request Meter (19h)
Data Structs from DanLoad6000 Communication Specification
Request Selected Recipe – 02h
Code Block | ||
---|---|---|
| ||
Struct Tasq {
Unsigned char dfl (ignored)
Unsigned char cmdcode (ignored)
}
Struct Tasr {
Unsigned char dfl (ignored)
Unsigned char cmdcode (ignored)
Int recipenumber (parameter 1)
} |
Driver configuration
Block Command: 02
Operand: Q
Address: 001
The status of the driver execution can be observed through the platform built-in diagnostic tools. Refer to the Using Diagnostic Tools topic in Devices Communication page.
DanLoad6000 protocol error codes:
Error | Name | Description |
---|---|---|
1 | ILLEGAL FUNCTION | The function code received in the query is not allowable. |
2 | ILLEGAL DATA ADDRESS | The data address received in the query is not allowable. |
3 | ILLEGAL DATA VALUE | A value contained in the query data field is not allowable. |
DanLoad6000 Driver |
---|
How to use CDU in the equipment?
When you want to move in the menu, you just have to write the ASCII value below in the tag. In summary, if you want the action of “Pushbutton”, you write the “Ascii Value”.
Pushbutton | Dec Value | Ascii Value | Hex Value | Data Sent to PLC |
---|---|---|---|---|
Up | 65 | A | 41 | 1b 5b 41 |
Down | 66 | B | 42 | 1b 5b 42 |
Right | 67 | C | 43 | 1b 5b 43 |
Left | 68 | D | 44 | 1b 5b 44 |
0 | 48 | 0 | 30 | 30 |
1 | 49 | 1 | 31 | 31 |
2 | 50 | 2 | 32 | 32 |
3 | 51 | 3 | 33 | 33 |
4 | 52 | 4 | 34 | 34 |
5 | 53 | 5 | 35 | 35 |
6 | 54 | 6 | 36 | 36 |
7 | 55 | 7 | 37 | 37 |
8 | 56 | 8 | 38 | 38 |
9 | 57 | 9 | 39 | 39 |
Enter | 13 | CR | 0d | 0d |
Cancel | 27 | ESC | 1b | 1b |
Revision History | |
---|---|
Version | Notes |
1.0. |
2.0 | Initial release |
on new documentation standards |
Page Tree | ||
---|---|---|
|