MotorTwoDirections - Functional Description
Type: |
Function block |
Available as of: |
V2.0.3.0 |
The function block MotorTwoDirections is used to manage a motor in two directions (forward and reverse).
Input |
Data type |
Description |
---|---|---|
iq_TeSysIslandRef |
FB_TeSys_island |
Reference to the TeSys island device. |
i_sAvatarName |
Reference to the avatar defined in the TeSys island configuration. |
|
i_xEnable |
BOOL |
A rising edge at the input i_xEnable starts the cyclic data exchange between the function block and the selected avatar. As long as i_xEnable is TRUE the cyclic data is exchanged every controller cycle. A falling edge at the input i_xEnable stops the data exchange. Refer to Behavior of the Function Blocks with the Input i_xEnable. |
i_xResetTrip |
BOOL |
If this input is set to TRUE, an avatar trip event is reset. |
i_xRunFwd |
BOOL |
If this input is set to TRUE, the avatar forward switch is closed. |
i_xRunRev |
BOOL |
If this input is set to TRUE, the avatar reverse switch is closed. |
Output |
Data type |
Description |
---|---|---|
q_xActive |
BOOL |
If the function block is active, this output is set to TRUE. |
q_xError |
BOOL |
If this output is set to TRUE, an error has been detected. For details, refer to q_etResult and q_etResultMsg. |
q_etResult |
Provides diagnostic and status information as a numeric value. |
|
q_sResultMsg |
STRING[30] |
Provides additional diagnostic and status information as a text message. |
q_xReady |
BOOL |
Indicates TRUE if the function block is ready to receive an execute command. |
q_xUpstreamVltg1 |
BOOL |
If this output is set to TRUE, the avatar has detected that upstream main power of the first device is present (circuit breaker closed). |
q_xUpstreamVltg2 |
BOOL |
If this output is set to TRUE, the avatar has detected that upstream main power of the second device is present. |
q_xRunFwd |
BOOL |
If this output is set to TRUE, the avatar forward switch is closed. |
q_xRunRev |
BOOL |
If this output is set to TRUE, the avatar reverse switch is closed. |
q_xLoadStarting |
BOOL |
If this output is set to TRUE, the motor is in start phase. |
q_xLoadRunning |
BOOL |
If this output is set to TRUE, a Run or Close command has been executed and current is flowing in the poles (equivalent to motor running but also for non-motor avatars). (Unit: mA) |
q_xBypass |
BOOL |
Indicates the bypass command status. |
q_xLocalFwd |
BOOL |
Indicates the local command forward status. |
q_xLocalRev |
BOOL |
Indicates the local command reverse status. |
q_xManualModeOverride |
BOOL |
Indicates the manual mode override status. |
q_iPvI0 |
INT |
Indicates the process variables input 0. |
q_iPvI1 |
INT |
Indicates the process variables input 1. |
q_iPvI2 |
INT |
Indicates the process variables input 2. |
q_iPvI3 |
INT |
Indicates the process variables input 3. |
q_iPvI4 |
INT |
Indicates the process variables input 4. |
q_xPvSwitch0 |
BOOL |
Indicates the process variables switch 0. |
q_xPvSwitch1 |
BOOL |
Indicates the process variables switch 1. |
q_xPvSwitch2 |
BOOL |
Indicates the process variables switch 2. |
q_xPvSwitch3 |
BOOL |
Indicates the process variables switch 3. |
q_xPvSwitch4 |
BOOL |
Indicates the process variables switch 4. |
q_udiAvgIRMS |
UDINT |
Indicates the lifetime average current measured by the device. (Unit: mA) |
q_xAlarm |
BOOL |
If this output is set to TRUE, a protection event has been detected by the avatar. |
q_xTripped |
BOOL |
If this output is set to TRUE, a protection trip event has been detected by the avatar. |
q_xReadyToReset |
BOOL |
If this output is set to TRUE, the avatar meets the trip reset conditions and can be reset with a trip reset command. |
q_xAssetAlarm |
BOOL |
If this output is set to TRUE, a power device or SIL Interface Module within the avatar have reached or exceeded 90% of the rated number of operations (per avatar parameter). |