Program - Prg_<name device module>

Program Contained in the VSD_HW_2Motors_2D2S Device Module

The program is divided into 2 actions and is created in programming language CFC (Continuous Function Chart).

Both actions will be called on each program execution

oAction - A01_MotorSelect

oAction - A02_MotorControl

Action - A01_MotorSelect

By the program code in this action the switching between motor 1 and motor 2 is realized. The logic in this Device Module allows only one motor being controlled by the variable speed drive at the same time. For switching between the motors, the momentary selected motor is deselected automatically, if the motor is not running.

Action - A02_MotorControl

By the program code in this action motor control FB is called.

Implemented features are:

1.Mapping the manual commands into the control word.

2.FB instance (MOT2D2S) call with assigned parameters.

3.Extracting of the status word (detailed alarm and alert information) to boolean variable.