beautypg.com

Class attributes, Instance attributes, Class attributes 2.3.1.2. instance attributes – Comtrol UP DeviceMaster User Guide User Manual

Page 15

background image

DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I

Chapter 2. Programming Interface - 15

Class Attributes

2.3.1.1. Class Attributes

2.3.1.2. Instance Attributes

Note: Get returns the last command sent.

Attribute ID

Name

Data Type

Data Value(s)

Access Rule

1

Revision

UINT

1

Get

2

Max Instance

UINT

Number of ports on the DeviceMaster UP

Get

3

Num Instances

UINT

Number of ports on the DeviceMaster UP

Get

Attribute ID

Name

Data

Type

Data Value(s)

Access

Rule

1

(Default=0)

Serial Port Device Type

UDINT

0=Raw Data Device

Set/Get

2

(Default=0)

Serial Port Commands

DWORD

1=Reset Serial Port

2=Save in Flash

4=Clear Sequence Counters

8=Clear Statistics Counters

Set/Get

3

(Default=9600)

Baud Rate

UDINT

Valid rates:

300, 600, 1200, 2400, 4800, 9600
(default), 19200, 38400, 57600, 115200,
230400

Set/Get

4

(Default=0

RS-232)

Interface Mode

USINT

0=RS-232 (Default)

1=RS-422

2=RS-485

Set/Get

5

(Default=0

None)

Parity

USINT

0=None (Default)

1=Even

2=Odd

Set/Get

6

(Default=8)

Data Bits

USINT

Valid Values: 5-8

Set/Get

7

(Default=1)

Stop Bits

USINT

Valid Values: 1 or 2

Set/Get

8

(Default=0

None)

Flow Control

USINT

0=None (Default)

1=RTS/CTS

2=XON/XOFF

3=Half Duplex

Set/Get

9

(Default=0

Off)

DTR Control

USINT

0=Off (Default)

1=On

Set/Get