You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This document has only the specific information about the device connection settings and its address syntax.

Refer to the User Guide for more information on the Device Module.

On this page:


Summary

CDU protocol driver implements communication with any device using CDU protocol on TCP/IP or serial networks. The communications blocks are dynamically created according the pooling cycle defined on the AccessType for each Device Point.

Communication Driver Information

Driver name

CDU

Assembly Name

T.ProtocolDriver.CDU

Assembly Version

1.0.0.0

Available for Linux

False

Devices supported 

Any device compatible with CDU Protocol

Protocol

Serial and TCP/IP

PC Requirements

Ethernet port


Configuration

Channels 

Protocol Options

BlockSize: Defines the maximum amount of characters, the default value is 250.

StartChar:  Defines the start character  of coming message.

EndChar:  Defines the end character  of coming message.

Settings

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:

  • BaudRate: 9600
  • DataBits: 8
  • StopBits: 1
  • Parity: None

Nodes

Station Configuration

Serial channels:

  • Nothing

TCP/IP channels:

  • Station syntax: <IP address> ; <Port number>

Where :

  • <IP address> = IP address of the slave device in the ASCII network
  • <Port number> = TCP port where the slave device is listening (default is 502)

E.g.:  192.168.1.101 ; 502


Points

The syntax for the ASCII communication points is: <SequenceId>:<SizeOf>

Where:

  • <SequenceId> indicates the data order where the TX message will be created:
  • <SizeOf> indicates the characters amount from the configured tag

Usually is used as “0:46”, so it will starts to read in index 0, and read 46 char, this is, the whole message.


Access Point

Not necessary to do any setting.


Usage

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


Driver Revision History

CDU Revision History

Version 

Notes

1.0.0.0

Initial release published according to the new documentation standards.


In this section:

Error rendering macro 'pagetree'

null

  • No labels