Adding Device Module to the Project

Instantiation of the Device Module

The instantiation of this Device Module requires that a Modbus manager be added to the serial interface of your controller.

Using Add Function from Template for this Device Module, you can:

  • map variables to physical inputs and outputs of your configuration

  • adjust initial values for selected variables which are part of the template

Variables selected for I/O mapping (input):

Variable

Data Type

Default Value

Description

GVL_<modul name>.xMcbRdyDrive

BOOL

Indicates the state of Motor Circuit Breaker (MCB).

GVL_<modul name>.xMcbRdyBypass1

BOOL

Indicates the state of the MCB of the direct online motor starter of motor 1.

GVL_<modul name>.xMcbRdyBypass2

BOOL

Indicates the state of the MCB of the direct online motor starter of motor 2.

GVL_<modul name>.xContactorActvMot1

BOOL

Indicates one of the contactors of motor 1 is energized.

GVL_<modul name>.xContactorActvMot2

BOOL

Indicates one of the contactors of motor 2 is energized.

Variables selected for I/O mapping (output):

Variable

Data Type

Default Value

Description

GVL_<modul name>.xCmdActvBypassContactMot1

BOOL

Activates the contactor of the direct online motor starter of motor 1.

GVL_<modul name>.xCmdActvBypassContactMot2

BOOL

Activates the contactor of the direct online motor starter of motor 2.

GVL_<modul name>.xCmdActvDriveContactMot1

BOOL

Activates the contactor which links the motor 1 to the drive.

GVL_<modul name>.xCmdActvDriveContactMot2

BOOL

Activates the contactor which links the motor 2 to the drive.

Variables selected for parameterization (constant):

Variable

Data Type

Default Value

Description

Prg_<modul name>.wAddr

WORD

1

Modbus slave address.

Prg_<module name>.c_byChanNb

BYTE

1

Communication port of the controller.

Prg_<modul name>.xEnFbckCtrlMot1

BOOL

TRUE

Enables the monitoring of the feedback signals of the motor 1 run state.

Prg_<modul name>.c_iDlyTimeFbckCtrlMot1

INT

2

Delay time in seconds to determine that the feedback signal from motor 1 is inoperable and to activate an alarm.

Prg_<modul name>.c_iDlyTimeRevsMot1

INT

2

Delay time in seconds to invert the direction of the running motor 1.

Prg_<modul name>.c_xEnFbckCtrlMot2

BOOL

TRUE

Enables the monitoring of the feedback signals of the motor 2 run state.

Prg_<modul name>.c_iDlyTimeFbckCtrlMot2

INT

2

Delay time in seconds to determine that the feedback signal from motor 2 is inoperable and to activate an alarm.

Prg_<modul name>.iDlyTimeRevsMot2

INT

2

Delay time in seconds to invert the direction of the running motor 2.