This function block manages the Controlword, Statusword, reference velocity and the direction of movement for the drive.
This function block requires an Adaptation of the I/O Mapping.
Library name: GMC Independent Altivar
Namespace: GIATV
Input |
Data Type |
Description |
---|---|---|
i_xEn |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. Command for activating or deactivating the function block. oFALSE: Deactivate the function block oTRUE: Activate the function block |
i_xKeepOpEn |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. oFALSE: Power stage is disabled if no command is active. oTRUE: Power stage remains enabled if no command is active. |
i_xFwd |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. oFALSE: Stops a movement in positive direction. oTRUE: If the drive is in the operating state "Switched On" and if there is no local forcing active, a movement is started in negative direction (Reverse) with the velocity reference value i_wSpdRef. The command "Reverse" is triggered with a rising edge. The movement stops when the level is FALSE. |
i_xRev |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. oFALSE: Stops a movement in negative direction. oTRUE: If the drive is in the operating state "Switched On" and if there is no local forcing active, a movement is started in positive direction (Forward) with the velocity reference value i_wSpdRef. The command "Forward" is triggered with a rising edge. The movement stops when the level is FALSE. |
i_xQckStop |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. oFALSE: If there is a motor movement, the drive triggers a "Quick Stop". oTRUE: No triggering of a "Quick Stop". After a Quick Stop, the drive automatically switches to the operating state "Switched On" when the actual velocity and the actual current values have reached a value of zero and if the commands Forward and Reverse are both FALSE. The Quick Stop must be deactivated (set i_xQckStop to TRUE) to restart the movement. |
i_xFreeWhl |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. oFALSE: If there is a motor movement, the drive triggers a "Free Wheel Stop". oTRUE: No triggering of a "Free Wheel Stop". |
i_xFltRst |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. oFALSE: No triggering of a "Fault Reset". oTRUE: The drive triggers a "Fault Reset". |
i_wSpdRef |
WORD |
Value range: Default value: 0 Reference velocity for the drive. |
Output |
Data Type |
Description |
---|---|---|
q_xEn |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. Function block activated/deactivated. Direct copy from i_xEn. |
q_xAlrm |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. Is set to FALSE when the function block is deactivated and when the drive transitions to operating state "Switch On Disabled". Is set to TRUE when the drive detects an error (bit 3 of the status word). |
Input/Output |
Data Type |
Description |
---|---|---|
Axis |
Axis_Ref |
Reference to the axis (instance) for which the function block is to be executed (corresponds to the name of the axis). The name of the axis must be defined in the EcoStruxure Machine Expert Devices tree. |
If you have activated this function block, simultaneous use of other function blocks of the library leads to unintended behavior.
|
UNINTENDED EQUIPMENT OPERATION |
oOnly activate this function block when all of the following function blocks are inactive: oMC_Power oMC_Jog oMC_MoveVelocity oVelocityControlAnalogInput_ATV oVelocityControlSelectAI_ATV oMC_Stop oMC_Reset oDeactivate this function block before activating any of the function blocks listed above. |
Failure to follow these instructions can result in death, serious injury, or equipment damage. |
Note the following:
After a "Quick Stop", the operating state "Quick Stop Active" is automatically left when the actual velocity and the actual current values have reached a value of zero and if the commands “Forward” and “Reverse” are both FALSE. To restart the movement, deactivate the Quick Stop (set i_xQckStop to TRUE).
A "Quick Stop" has a higher priority than a regular stop ("Forward" and "Reverse" set to FALSE).
A "Free Wheel Stop" has a higher priority than a "Quick Stop".
If the drive displays the flashing message (COF) on the 7-segment display after a download of an application to the drive, a rising edge and then a falling edge are required at the “Fault Reset” input (i_xFltRst) to restart proper communication with the drive.
Adaptation of the I/O Mapping (EtherNet/IP and Modbus/TCP)
If you are using EtherNet/IP or Modbus/TCP, you need to adjust the I/O mapping of the drive in order to use this function block.
The I/O mapping of the drive can only be adjusted with the DTM commissioning software. See EcoStruxure Machine Expert - Device Type Manager (DTM) - User Guide for additional information on the DTM.
For EtherNet/IP, the library uses the assemblies 100 and 101 and requires the following mapping:
oAssembly 100 (controller to drive):
oFirst word: CMD, logic address 8501 (factory setting)
oSecond word: LFRD, logic address 8602 (factory setting)
oAssembly 101 (drive to controller):
oFirst word: ETA, logic address 3201 (factory setting)
oSecond word: RFRD, logic address 8604 (factory setting)
oThird word: LCR, logic address 3204 (needs to be added to the mapping)
For Modbus/TCP, the library uses the I/O scanning service and requires the following mapping:
oI/O scanner output setting (controller to drive):
oOutput 1: CMD, logic address 8501 (factory setting)
oOutput 2: LFRD, logic address 8602 (factory setting)
oI/O scanner input setting (drive to controller):
oInput 1: ETA, logic address 3201 (factory setting)
oInput 2: RFRD, logic address 8604 (factory setting)
oInput 3: LCR, logic address 3204 (needs to be added to the mapping)
Step |
Action |
---|---|
1 |
Deactivate "Free Wheel": Set i_xFreeWhl to TRUE. |
2 |
Deactivate "Quick Stop": Set i_xQckStop to TRUE. |
3 |
Activate the function block: Set i_xEn to TRUE. |
4 |
Set a reference velocity: Set i_wSpdRef to a value not equal to zero. |
5 |
Start a movement in positive ("Forward") or negative ("Reverse") direction: Set i_xFwd or i_xRev to TRUE. |
Visualization of function block Control_ATV:
See Programming with SoMachine > Visualization for additional information on the visualization of a function block.
With the above minimum configuration, the visualization of this function block can be used to control the drive. After the I/O mapping of the 5 data specified above, the drive can be started with the following sequence of steps:
Step |
Action |
---|---|
1 |
Click the button Enable to activate the function block. |
2 |
Click the button Quick Stop to deactivate "Quick Stop". |
3 |
Click the button Free Wheel to deactivate "Free Wheel". |
4 |
Enter a velocity value not equal to zero in revolutions per minute (in the field next to the Force Speed button). |
5 |
Click the button Force Speed. |
6 |
Click the button Forward or Reverse: The motor performs a movement in positive or negative direction. |