MODBUS line

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

MODBUS line

The Modbus line provides the functions necessary to operate a Modbus TCP controller.

The following topics are covered in this section:

Modbus process objects

Modbus access types

Modbus event types

Modbus communication

Modbus process objects

The following process objects are needed to access a Modbus variable:

Name

Type

Connection

Usage

Line object

Line

"LNMODBUS"

Modbus line.

Device object

Device

Device parameter

Modbus communication device.

Station object

Station

Station parameters

Modbus station (bus connector).

Variable object

Pvar

Variable name

Modbus variable.

Allowed object structure for Modbus process objects:

pvilnmodbusobjectstruktur

Modbus access types

The following table shows an overview of all access types which are regulated via a line. All access types not listed here as well as access types to the PVI base object are executed by PVI Manager and therefore work independently of the line being used. The corresponding process object type is listed in the "Type" column.

Access types

Type

Special features

POBJ_ACC_VERSION

Line

Version of the line DLL.

POBJ_ACC_LIST_EXTERN

Line

Device

Station

Lists all installed Modbus devices

Lists all stations (bus controllers) specified in the configuration file

Lists all process variables available in the configuration file for a station

POBJ_ACC_DATA

Variable

Access to a variable's data.

POBJ_ACC_STATUS

Variable

Access to a variable's status.

POBJ_ACC_TYPE_EXTERN

Variable

Reads a variable's data type.

POBJ_ACC_UPLOAD

 

Not supported

POBJ_ACC_DOWNLOAD

 

Not supported

POBJ_ACC_DATE_TIME

 

Not supported

POBJ_ACC_MEM_DELETE

 

Not supported

POBJ_ACC_MEM_INFO

 

Not supported

POBJ_ACC_MOD_TYPE

 

Not supported

POBJ_ACC_UPLOAD_STM

 

Not supported

POBJ_ACC_DOWNLOAD_STM

 

Not supported

POBJ_ACC_MOD_DATA

 

Not supported

POBJ_ACC_MOD_DELETE

 

Not supported

POBJ_ACC_LIST_STATION

Device

Lists all defined stations.

POBJ_ACC_LIST_CPU

 

Not supported

POBJ_ACC_LIST_MODULE

 

Not supported

POBJ_ACC_LIST_TASK

 

Not supported

POBJ_ACC_LIST_PVAR

Station

Lists all available process variables.

POBJ_ACC_CPU_INFO

 

Not supported

Access type > 255

 

Not supported

Modbus event types

The following table shows an overview of all event types which can be generated from a line. All event types which are not listed are generated by PVI Manager and therefore work independently of the line being used.

Event types

Special features

POBJ_EVENT_STATUS

Not supported

POBJ_EVENT_PROCEEDING

Not supported

Event type > 255

Not supported