The program is divided into 6 actions and is created in programming language CFC. (continuous function chart). All actions will be called on each program execution.
By the program code in this action the status word of the device is read via Modbus SL using the FB READ_VAR.
The Modbus communication is managed internally with the variable GVL.wModbusToken
. The token is used to control the execution of all Modbus function blocks configured in the project. The token is being reserved by the active Modbus function block until the Modbus operation has been completed. If the read process of the status word is possible, the variable GVL.wModbusToken will be reserved (the slave address is written on it), until the request is completed.
The value of the status word is assigned to corresponding variables which have been declared in the GVL.
The program code in this action controls the contactors for selection if a motor shall be controlled either by the drive or by the direct online motor starter. The logic in this Device Module allows only one motor controlled by the drive at the same time. The commands for selecting the different control modes for both motors are assigned to corresponding variables which have been declared in the GVL_<module name>.
By the program code in this action the motor control FB for motor 1 is called.
Implemented features are:
Mapping the manual commands into the control word.
FB instance (MOT2D1S) call with assigned parameters.
Extracting of the status word (detailed alarm and alert information) to boolean variables.
By the program code in this action the motor control FB for motor 2 is called.
Implemented features are:
Mapping the manual commands into the control word.
FB instance (MOT2D1S) call with assigned parameters.
Extracting of the status word (detailed alarm and alert information) to boolean variables.
By the program code in this action the control word of the device is written via Modbus SL using the FB WRITE_VAR
.
The Modbus communication is managed internally with the variable GVL.wModbusToken
. The token is used to control the execution of all Modbus function blocks configured in the project. The token is being reserved by the active Modbus function block until the Modbus operation has been completed. If the write process of the control word is possible, the GVL.wModbusToken will be reserved (the slave address is written on it) until the request is completed.